From e598b97ef38091667cedc0932b485721de47a017 Mon Sep 17 00:00:00 2001 From: naftis Date: Tue, 12 Nov 2024 14:52:22 +0200 Subject: [PATCH] fix: don't require identifiers --- packages/gateway/src/features/registration/schema.graphql | 2 +- packages/gateway/src/graphql/schema.d.ts | 2 +- packages/gateway/src/graphql/schema.graphql | 2 +- packages/gateway/src/workflow/index.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/gateway/src/features/registration/schema.graphql b/packages/gateway/src/features/registration/schema.graphql index 9b8d52ab4d8..a5992899db7 100644 --- a/packages/gateway/src/features/registration/schema.graphql +++ b/packages/gateway/src/features/registration/schema.graphql @@ -575,7 +575,7 @@ input IdentifierInput { input ConfirmRegistrationInput { registrationNumber: String! error: String - identifiers: [IdentifierInput!]! + identifiers: [IdentifierInput!] } input RejectRegistrationInput { diff --git a/packages/gateway/src/graphql/schema.d.ts b/packages/gateway/src/graphql/schema.d.ts index ac26fe40fbb..6d9a27bf80b 100644 --- a/packages/gateway/src/graphql/schema.d.ts +++ b/packages/gateway/src/graphql/schema.d.ts @@ -580,7 +580,7 @@ export interface GQLReinstated { export interface GQLConfirmRegistrationInput { registrationNumber: string error?: string - identifiers: Array + identifiers?: Array } export interface GQLRejectRegistrationInput { diff --git a/packages/gateway/src/graphql/schema.graphql b/packages/gateway/src/graphql/schema.graphql index 7cf3c82c2ec..ab6ae7b7952 100644 --- a/packages/gateway/src/graphql/schema.graphql +++ b/packages/gateway/src/graphql/schema.graphql @@ -701,7 +701,7 @@ type Reinstated { input ConfirmRegistrationInput { registrationNumber: String! error: String - identifiers: [IdentifierInput!]! + identifiers: [IdentifierInput!] } input RejectRegistrationInput { diff --git a/packages/gateway/src/workflow/index.ts b/packages/gateway/src/workflow/index.ts index 720f84ec31d..fe44e60e818 100644 --- a/packages/gateway/src/workflow/index.ts +++ b/packages/gateway/src/workflow/index.ts @@ -246,7 +246,7 @@ export async function confirmRegistration( details: { error: string | undefined registrationNumber: string - identifiers: IdentifierInput[] + identifiers?: IdentifierInput[] } ) { const res: ReadyForReviewRecord = await createRequest(