Skip to content

Commit

Permalink
fix: update graphql schema
Browse files Browse the repository at this point in the history
KK-1128
  • Loading branch information
nikomakela committed May 29, 2024
1 parent 3586163 commit 4751302
Showing 1 changed file with 150 additions and 1 deletion.
151 changes: 150 additions & 1 deletion src/domain/api/generatedTypes/graphql.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,12 @@ export type AddVenueMutationPayload = {

export type AdminNode = Node & {
__typename?: 'AdminNode';
email: Scalars['String']['output'];
/** The ID of the object. */
id: Scalars['ID']['output'];
projects: Maybe<ProjectNodeConnection>;
/** Vaaditaan. Enintään 150 merkkiä. Vain kirjaimet, numerot ja @/./+/-/_ ovat sallittuja. */
username: Scalars['String']['output'];
};


Expand All @@ -151,6 +154,7 @@ export type AssignTicketSystemPasswordMutationPayload = {
password: Maybe<Scalars['String']['output']>;
};

/** A new Child input */
export type ChildInput = {
birthyear: Scalars['Int']['input'];
languagesSpokenAtHome?: InputMaybe<Array<Scalars['ID']['input']>>;
Expand Down Expand Up @@ -318,6 +322,15 @@ export type ChildNodeEdge = {
node: Maybe<ChildNode>;
};

/** Node for handling child's notes separately from their other data. */
export type ChildNotesNode = Node & {
__typename?: 'ChildNotesNode';
childId: Maybe<Scalars['ID']['output']>;
/** The ID of the object. */
id: Scalars['ID']['output'];
notes: Scalars['String']['output'];
};

export type DeleteChildMutationInput = {
clientMutationId?: InputMaybe<Scalars['String']['input']>;
id: Scalars['ID']['input'];
Expand Down Expand Up @@ -657,9 +670,20 @@ export type FreeSpotNotificationSubscriptionNodeEdge = {
node: Maybe<FreeSpotNotificationSubscriptionNode>;
};

export type GuardianCommunicationSubscriptionsNode = Node & {
__typename?: 'GuardianCommunicationSubscriptionsNode';
firstName: Scalars['String']['output'];
hasAcceptedCommunication: Scalars['Boolean']['output'];
/** The ID of the object. */
id: Scalars['ID']['output'];
language: Scalars['String']['output'];
lastName: Scalars['String']['output'];
};

export type GuardianInput = {
email?: InputMaybe<Scalars['String']['input']>;
firstName: Scalars['String']['input'];
hasAcceptedCommunication?: InputMaybe<Scalars['Boolean']['input']>;
language: Language;
languagesSpokenAtHome?: InputMaybe<Array<Scalars['ID']['input']>>;
lastName: Scalars['String']['input'];
Expand All @@ -673,6 +697,7 @@ export type GuardianNode = Node & {
/** If left blank, will be populated with the user's email. */
email: Scalars['String']['output'];
firstName: Scalars['String']['output'];
hasAcceptedCommunication: Scalars['Boolean']['output'];
/** The ID of the object. */
id: Scalars['ID']['output'];
language: Language;
Expand Down Expand Up @@ -957,17 +982,32 @@ export type Mutation = {
importTicketSystemPasswords: Maybe<ImportTicketSystemPasswordsMutationPayload>;
publishEvent: Maybe<PublishEventMutationPayload>;
publishEventGroup: Maybe<PublishEventGroupMutationPayload>;
requestEmailUpdateToken: Maybe<RequestEmailUpdateTokenMutationPayload>;
sendMessage: Maybe<SendMessageMutationPayload>;
setEnrolmentAttendance: Maybe<SetEnrolmentAttendanceMutationPayload>;
/** This is the first mutation one needs to execute to start using the service. After that this mutation cannot be used anymore. */
submitChildrenAndGuardian: Maybe<SubmitChildrenAndGuardianMutationPayload>;
subscribeToFreeSpotNotification: Maybe<SubscribeToFreeSpotNotificationMutationPayload>;
unenrolOccurrence: Maybe<UnenrolOccurrenceMutationPayload>;
/**
* Unsubscribe user from all the notifications.
*
* NOTE: This mutation deletes the user's FreeSpotNotifications,
* which are linked to a Child and Occurrence instances.
* **It should be noted that the current model architecture allows
* that a child can have multiple guardians, so unsubscribe can delete
* some notifications from other users as well. However, the UI apps
* has never allowed more than 1 guardian for a child.**
*/
unsubscribeFromAllNotifications: Maybe<UnsubscribeFromAllNotificationsMutationPayload>;
unsubscribeFromFreeSpotNotification: Maybe<UnsubscribeFromFreeSpotNotificationMutationPayload>;
updateChild: Maybe<UpdateChildMutationPayload>;
updateChildNotes: Maybe<UpdateChildNotesMutationPayload>;
updateEvent: Maybe<UpdateEventMutationPayload>;
updateEventGroup: Maybe<UpdateEventGroupMutationPayload>;
updateMessage: Maybe<UpdateMessageMutationPayload>;
updateMyCommunicationSubscriptions: Maybe<UpdateMyCommunicationSubscriptionsMutationPayload>;
updateMyEmail: Maybe<UpdateMyEmailMutationPayload>;
updateMyProfile: Maybe<UpdateMyProfileMutationPayload>;
updateOccurrence: Maybe<UpdateOccurrenceMutationPayload>;
updateVenue: Maybe<UpdateVenueMutationPayload>;
Expand Down Expand Up @@ -1059,6 +1099,11 @@ export type MutationPublishEventGroupArgs = {
};


export type MutationRequestEmailUpdateTokenArgs = {
input: RequestEmailUpdateTokenMutationInput;
};


export type MutationSendMessageArgs = {
input: SendMessageMutationInput;
};
Expand All @@ -1084,6 +1129,11 @@ export type MutationUnenrolOccurrenceArgs = {
};


export type MutationUnsubscribeFromAllNotificationsArgs = {
input: UnsubscribeFromAllNotificationsMutationInput;
};


export type MutationUnsubscribeFromFreeSpotNotificationArgs = {
input: UnsubscribeFromFreeSpotNotificationMutationInput;
};
Expand All @@ -1094,6 +1144,11 @@ export type MutationUpdateChildArgs = {
};


export type MutationUpdateChildNotesArgs = {
input: UpdateChildNotesMutationInput;
};


export type MutationUpdateEventArgs = {
input: UpdateEventMutationInput;
};
Expand All @@ -1109,6 +1164,16 @@ export type MutationUpdateMessageArgs = {
};


export type MutationUpdateMyCommunicationSubscriptionsArgs = {
input: UpdateMyCommunicationSubscriptionsMutationInput;
};


export type MutationUpdateMyEmailArgs = {
input: UpdateMyEmailMutationInput;
};


export type MutationUpdateMyProfileArgs = {
input: UpdateMyProfileMutationInput;
};
Expand Down Expand Up @@ -1301,6 +1366,7 @@ export type PublishEventMutationPayload = {
export type Query = {
__typename?: 'Query';
child: Maybe<ChildNode>;
childNotes: Maybe<ChildNotesNode>;
children: Maybe<ChildNodeConnection>;
event: Maybe<EventNode>;
eventGroup: Maybe<EventGroupNode>;
Expand All @@ -1312,6 +1378,7 @@ export type Query = {
message: Maybe<MessageNode>;
messages: Maybe<MessageNodeConnection>;
myAdminProfile: Maybe<AdminNode>;
myCommunicationSubscriptions: Maybe<GuardianCommunicationSubscriptionsNode>;
myProfile: Maybe<GuardianNode>;
occurrence: Maybe<OccurrenceNode>;
occurrences: Maybe<OccurrenceNodeConnection>;
Expand All @@ -1328,6 +1395,11 @@ export type QueryChildArgs = {
};


export type QueryChildNotesArgs = {
id: Scalars['ID']['input'];
};


export type QueryChildrenArgs = {
after: InputMaybe<Scalars['String']['input']>;
before: InputMaybe<Scalars['String']['input']>;
Expand Down Expand Up @@ -1411,6 +1483,11 @@ export type QueryMessagesArgs = {
};


export type QueryMyCommunicationSubscriptionsArgs = {
authToken: InputMaybe<Scalars['String']['input']>;
};


export type QueryOccurrenceArgs = {
id: Scalars['ID']['input'];
};
Expand Down Expand Up @@ -1512,6 +1589,18 @@ export enum RelationshipTypeEnum {
Parent = 'PARENT'
}

export type RequestEmailUpdateTokenMutationInput = {
clientMutationId?: InputMaybe<Scalars['String']['input']>;
email: Scalars['String']['input'];
};

export type RequestEmailUpdateTokenMutationPayload = {
__typename?: 'RequestEmailUpdateTokenMutationPayload';
clientMutationId: Maybe<Scalars['String']['output']>;
email: Maybe<Scalars['String']['output']>;
emailUpdateTokenRequested: Maybe<Scalars['Boolean']['output']>;
};

export type SendMessageMutationInput = {
clientMutationId?: InputMaybe<Scalars['String']['input']>;
id: Scalars['ID']['input'];
Expand Down Expand Up @@ -1624,6 +1713,29 @@ export type UnenrolOccurrenceMutationPayload = {
occurrence: Maybe<OccurrenceNode>;
};

export type UnsubscribeFromAllNotificationsMutationInput = {
/** Auth token can be used to authorize the action without logging in as a user. */
authToken?: InputMaybe<Scalars['String']['input']>;
clientMutationId?: InputMaybe<Scalars['String']['input']>;
};

/**
* Unsubscribe user from all the notifications.
*
* NOTE: This mutation deletes the user's FreeSpotNotifications,
* which are linked to a Child and Occurrence instances.
* **It should be noted that the current model architecture allows
* that a child can have multiple guardians, so unsubscribe can delete
* some notifications from other users as well. However, the UI apps
* has never allowed more than 1 guardian for a child.**
*/
export type UnsubscribeFromAllNotificationsMutationPayload = {
__typename?: 'UnsubscribeFromAllNotificationsMutationPayload';
clientMutationId: Maybe<Scalars['String']['output']>;
guardian: Maybe<GuardianNode>;
unsubscribed: Maybe<Scalars['Boolean']['output']>;
};

export type UnsubscribeFromFreeSpotNotificationMutationInput = {
childId: Scalars['ID']['input'];
clientMutationId?: InputMaybe<Scalars['String']['input']>;
Expand Down Expand Up @@ -1652,6 +1764,18 @@ export type UpdateChildMutationPayload = {
clientMutationId: Maybe<Scalars['String']['output']>;
};

export type UpdateChildNotesMutationInput = {
childId: Scalars['ID']['input'];
clientMutationId?: InputMaybe<Scalars['String']['input']>;
notes: Scalars['String']['input'];
};

export type UpdateChildNotesMutationPayload = {
__typename?: 'UpdateChildNotesMutationPayload';
childNotes: Maybe<ChildNotesNode>;
clientMutationId: Maybe<Scalars['String']['output']>;
};

export type UpdateEventGroupMutationInput = {
clientMutationId?: InputMaybe<Scalars['String']['input']>;
id: Scalars['ID']['input'];
Expand Down Expand Up @@ -1708,10 +1832,35 @@ export type UpdateMessageMutationPayload = {
message: Maybe<MessageNode>;
};

export type UpdateMyCommunicationSubscriptionsMutationInput = {
/** Auth token can be used to authorize the action without logging in as a user. */
authToken?: InputMaybe<Scalars['String']['input']>;
clientMutationId?: InputMaybe<Scalars['String']['input']>;
hasAcceptedCommunication: Scalars['Boolean']['input'];
};

export type UpdateMyCommunicationSubscriptionsMutationPayload = {
__typename?: 'UpdateMyCommunicationSubscriptionsMutationPayload';
clientMutationId: Maybe<Scalars['String']['output']>;
guardian: Maybe<GuardianCommunicationSubscriptionsNode>;
};

export type UpdateMyEmailMutationInput = {
clientMutationId?: InputMaybe<Scalars['String']['input']>;
email: Scalars['String']['input'];
verificationToken: Scalars['String']['input'];
};

export type UpdateMyEmailMutationPayload = {
__typename?: 'UpdateMyEmailMutationPayload';
clientMutationId: Maybe<Scalars['String']['output']>;
myProfile: Maybe<GuardianNode>;
};

export type UpdateMyProfileMutationInput = {
clientMutationId?: InputMaybe<Scalars['String']['input']>;
email?: InputMaybe<Scalars['String']['input']>;
firstName?: InputMaybe<Scalars['String']['input']>;
hasAcceptedCommunication?: InputMaybe<Scalars['Boolean']['input']>;
language?: InputMaybe<Language>;
languagesSpokenAtHome?: InputMaybe<Array<Scalars['ID']['input']>>;
lastName?: InputMaybe<Scalars['String']['input']>;
Expand Down

0 comments on commit 4751302

Please sign in to comment.