@@ -178,12 +178,12 @@ export type CliniciansQuery = { __typename: 'Queries', clinicians: { __typename:
178
178
179
179
export type FormSchemaFragment = { __typename : 'FormSchemaNode' , id : string , jsonSchema : any , type : string , uiSchema : any } ;
180
180
181
- export type FormSchemaQueryVariables = Types . Exact < {
181
+ export type FormSchemasQueryVariables = Types . Exact < {
182
182
filter ?: Types . InputMaybe < Types . FormSchemaFilterInput > ;
183
183
} > ;
184
184
185
185
186
- export type FormSchemaQuery = { __typename : 'Queries' , formSchema ? : { __typename : 'FormSchemaNode' , id : string , jsonSchema : any , type : string , uiSchema : any } | null } ;
186
+ export type FormSchemasQuery = { __typename : 'Queries' , formSchemas : { __typename : 'FormSchemaConnector' , nodes : Array < { __typename : ' FormSchemaNode', id : string , jsonSchema : any , type : string , uiSchema : any } > } } ;
187
187
188
188
export type ActiveProgramEventsQueryVariables = Types . Exact < {
189
189
at ?: Types . InputMaybe < Types . Scalars [ 'String' ] [ 'input' ] > ;
@@ -603,11 +603,16 @@ export const CliniciansDocument = gql`
603
603
}
604
604
}
605
605
${ ClinicianFragmentDoc } ` ;
606
- export const FormSchemaDocument = gql `
607
- query formSchema($filter: FormSchemaFilterInput) {
608
- formSchema(filter: $filter) {
609
- __typename
610
- ...FormSchema
606
+ export const FormSchemasDocument = gql `
607
+ query formSchemas($filter: FormSchemaFilterInput) {
608
+ formSchemas(filter: $filter) {
609
+ ... on FormSchemaConnector {
610
+ __typename
611
+ nodes {
612
+ __typename
613
+ ...FormSchema
614
+ }
615
+ }
611
616
}
612
617
}
613
618
${ FormSchemaFragmentDoc } ` ;
@@ -690,8 +695,8 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper =
690
695
clinicians ( variables : CliniciansQueryVariables , requestHeaders ?: GraphQLClientRequestHeaders ) : Promise < CliniciansQuery > {
691
696
return withWrapper ( ( wrappedRequestHeaders ) => client . request < CliniciansQuery > ( CliniciansDocument , variables , { ...requestHeaders , ...wrappedRequestHeaders } ) , 'clinicians' , 'query' ) ;
692
697
} ,
693
- formSchema ( variables ?: FormSchemaQueryVariables , requestHeaders ?: GraphQLClientRequestHeaders ) : Promise < FormSchemaQuery > {
694
- return withWrapper ( ( wrappedRequestHeaders ) => client . request < FormSchemaQuery > ( FormSchemaDocument , variables , { ...requestHeaders , ...wrappedRequestHeaders } ) , 'formSchema ' , 'query' ) ;
698
+ formSchemas ( variables ?: FormSchemasQueryVariables , requestHeaders ?: GraphQLClientRequestHeaders ) : Promise < FormSchemasQuery > {
699
+ return withWrapper ( ( wrappedRequestHeaders ) => client . request < FormSchemasQuery > ( FormSchemasDocument , variables , { ...requestHeaders , ...wrappedRequestHeaders } ) , 'formSchemas ' , 'query' ) ;
695
700
} ,
696
701
activeProgramEvents ( variables : ActiveProgramEventsQueryVariables , requestHeaders ?: GraphQLClientRequestHeaders ) : Promise < ActiveProgramEventsQuery > {
697
702
return withWrapper ( ( wrappedRequestHeaders ) => client . request < ActiveProgramEventsQuery > ( ActiveProgramEventsDocument , variables , { ...requestHeaders , ...wrappedRequestHeaders } ) , 'activeProgramEvents' , 'query' ) ;
@@ -993,16 +998,16 @@ export const mockCliniciansQuery = (resolver: ResponseResolver<GraphQLRequest<Cl
993
998
* @param resolver a function that accepts a captured request and may return a mocked response.
994
999
* @see https://mswjs.io/docs/basics/response-resolver
995
1000
* @example
996
- * mockFormSchemaQuery ((req, res, ctx) => {
1001
+ * mockFormSchemasQuery ((req, res, ctx) => {
997
1002
* const { filter } = req.variables;
998
1003
* return res(
999
- * ctx.data({ formSchema })
1004
+ * ctx.data({ formSchemas })
1000
1005
* )
1001
1006
* })
1002
1007
*/
1003
- export const mockFormSchemaQuery = ( resolver : ResponseResolver < GraphQLRequest < FormSchemaQueryVariables > , GraphQLContext < FormSchemaQuery > , any > ) =>
1004
- graphql . query < FormSchemaQuery , FormSchemaQueryVariables > (
1005
- 'formSchema ' ,
1008
+ export const mockFormSchemasQuery = ( resolver : ResponseResolver < GraphQLRequest < FormSchemasQueryVariables > , GraphQLContext < FormSchemasQuery > , any > ) =>
1009
+ graphql . query < FormSchemasQuery , FormSchemasQueryVariables > (
1010
+ 'formSchemas ' ,
1006
1011
resolver
1007
1012
)
1008
1013
0 commit comments