Skip to content

Commit

Permalink
fix: update fetch registration queries
Browse files Browse the repository at this point in the history
  • Loading branch information
Nil20 committed Jan 10, 2025
1 parent dab6a4d commit 2a8d83f
Show file tree
Hide file tree
Showing 2 changed files with 89 additions and 10 deletions.
52 changes: 47 additions & 5 deletions e2e/testcases/birth/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,31 @@ export const GET_BIRTH_REGISTRATION_FOR_REVIEW = print(gql`
contactRelationship
contactPhoneNumber
contactEmail
assignment {
practitionerId
firstName
lastName
officeName
avatarURL
}
certificates {
hasShowedVerifiedDocument
certificateTemplateId
collector {
relationship
otherRelationship
name {
use
firstNames
familyName
}
telecom {
system
value
use
}
}
}
duplicates {
compositionId
trackingId
Expand Down Expand Up @@ -207,6 +232,7 @@ export const GET_BIRTH_REGISTRATION_FOR_REVIEW = print(gql`
requesterOther
noSupportingDocumentationRequired
hasShowedVerifiedDocument
certificateTemplateId
date
action
regStatus
Expand Down Expand Up @@ -250,13 +276,13 @@ export const GET_BIRTH_REGISTRATION_FOR_REVIEW = print(gql`
user {
id
role {
_id
labels {
lang
label
id
label {
id
defaultMessage
description
}
}
systemRole
name {
firstNames
familyName
Expand Down Expand Up @@ -295,6 +321,7 @@ export const GET_BIRTH_REGISTRATION_FOR_REVIEW = print(gql`
}
certificates {
hasShowedVerifiedDocument
certificateTemplateId
collector {
relationship
otherRelationship
Expand All @@ -309,6 +336,21 @@ export const GET_BIRTH_REGISTRATION_FOR_REVIEW = print(gql`
use
}
}
certifier {
name {
use
firstNames
familyName
}
role {
id
label {
id
defaultMessage
description
}
}
}
}
duplicateOf
potentialDuplicates
Expand Down
47 changes: 42 additions & 5 deletions e2e/testcases/death/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,24 @@ export const GET_DEATH_REGISTRATION_FOR_REVIEW = print(gql`
contactRelationship
contactPhoneNumber
contactEmail
certificates {
hasShowedVerifiedDocument
certificateTemplateId
collector {
relationship
otherRelationship
name {
use
firstNames
familyName
}
telecom {
system
value
use
}
}
}
duplicates {
compositionId
trackingId
Expand Down Expand Up @@ -287,7 +305,9 @@ export const GET_DEATH_REGISTRATION_FOR_REVIEW = print(gql`
}
otherReason
requester
requesterOther
hasShowedVerifiedDocument
certificateTemplateId
noSupportingDocumentationRequired
date
action
Expand Down Expand Up @@ -318,13 +338,14 @@ export const GET_DEATH_REGISTRATION_FOR_REVIEW = print(gql`
user {
id
role {
_id
labels {
lang
label
id
label {
id
defaultMessage
description
}
}
systemRole
name {
firstNames
familyName
Expand Down Expand Up @@ -363,6 +384,7 @@ export const GET_DEATH_REGISTRATION_FOR_REVIEW = print(gql`
}
certificates {
hasShowedVerifiedDocument
certificateTemplateId
collector {
relationship
otherRelationship
Expand All @@ -377,6 +399,21 @@ export const GET_DEATH_REGISTRATION_FOR_REVIEW = print(gql`
use
}
}
certifier {
name {
use
firstNames
familyName
}
role {
id
label {
id
defaultMessage
description
}
}
}
}
duplicateOf
potentialDuplicates
Expand Down

0 comments on commit 2a8d83f

Please sign in to comment.