From db97afdf6c78c20d76141c2440ce5952aed6a194 Mon Sep 17 00:00:00 2001 From: Xander Vertegaal Date: Wed, 30 Oct 2024 17:08:05 +0100 Subject: [PATCH] Update generated files --- frontend/generated/graphql.ts | 41 +++++++++++++++++++++++++++++++ frontend/generated/schema.graphql | 9 +++++++ 2 files changed, 50 insertions(+) diff --git a/frontend/generated/graphql.ts b/frontend/generated/graphql.ts index ed149043..48e83720 100644 --- a/frontend/generated/graphql.ts +++ b/frontend/generated/graphql.ts @@ -462,6 +462,7 @@ export type Mutation = { updateAgent?: Maybe; updateEpisode?: Maybe; updateEpisodeEntityLink?: Maybe; + updateEpisodeOrder?: Maybe; updateGift?: Maybe; updateLetter?: Maybe; updateOrCreateSource?: Maybe; @@ -557,6 +558,11 @@ export type MutationUpdateEpisodeEntityLinkArgs = { }; +export type MutationUpdateEpisodeOrderArgs = { + episodeIds: Array; +}; + + export type MutationUpdateGiftArgs = { giftData: UpdateGiftInput; }; @@ -987,6 +993,12 @@ export type UpdateEpisodeMutation = { ok: Scalars['Boolean']['output']; }; +export type UpdateEpisodeOrderMutation = { + __typename?: 'UpdateEpisodeOrderMutation'; + errors: Array; + ok: Scalars['Boolean']['output']; +}; + export type UpdateGiftInput = { book?: InputMaybe; categories?: InputMaybe>; @@ -1390,6 +1402,13 @@ export type DataEntrySourceDetailQueryVariables = Exact<{ export type DataEntrySourceDetailQuery = { __typename?: 'Query', source: { __typename?: 'SourceType', id: string, name: string, episodes: Array<{ __typename?: 'EpisodeType', id: string, name: string, description: string, summary: string, book: string, chapter: string, page: string, contributors: Array<{ __typename?: 'UserType', id: string, fullName: string }>, agents: Array<{ __typename?: 'AgentDescriptionType', id: string, name: string, isGroup: boolean, identified: boolean }>, gifts: Array<{ __typename?: 'GiftDescriptionType', id: string, name: string }>, letters: Array<{ __typename?: 'LetterDescriptionType', id: string, name: string }>, spaces: Array<{ __typename?: 'SpaceDescriptionType', id: string, name: string, hasIdentifiableFeatures: boolean }> }> } }; +export type DataEntryUpdateEpisodeOrderMutationVariables = Exact<{ + episodeIds: Array | Scalars['ID']['input']; +}>; + + +export type DataEntryUpdateEpisodeOrderMutation = { __typename?: 'Mutation', updateEpisodeOrder?: { __typename?: 'UpdateEpisodeOrderMutation', ok: boolean, errors: Array<{ __typename?: 'LettercraftErrorType', field: string, messages: Array }> } | null }; + export type DataEntrySourceListQueryVariables = Exact<{ [key: string]: never; }>; @@ -2589,6 +2608,28 @@ export const DataEntrySourceDetailDocument = gql` export class DataEntrySourceDetailGQL extends Apollo.Query { override document = DataEntrySourceDetailDocument; + constructor(apollo: Apollo.Apollo) { + super(apollo); + } + } +export const DataEntryUpdateEpisodeOrderDocument = gql` + mutation DataEntryUpdateEpisodeOrder($episodeIds: [ID!]!) { + updateEpisodeOrder(episodeIds: $episodeIds) { + ok + errors { + field + messages + } + } +} + `; + + @Injectable({ + providedIn: 'root' + }) + export class DataEntryUpdateEpisodeOrderGQL extends Apollo.Mutation { + override document = DataEntryUpdateEpisodeOrderDocument; + constructor(apollo: Apollo.Apollo) { super(apollo); } diff --git a/frontend/generated/schema.graphql b/frontend/generated/schema.graphql index ff9dea8d..60f80d6d 100644 --- a/frontend/generated/schema.graphql +++ b/frontend/generated/schema.graphql @@ -452,6 +452,10 @@ type Mutation { updateAgent(agentData: UpdateAgentInput!): UpdateAgentMutation updateEpisode(episodeData: UpdateEpisodeInput!): UpdateEpisodeMutation updateEpisodeEntityLink(data: UpdateEpisodeEntityLinkInput!): UpdateEpisodeEntityLinkMutation + updateEpisodeOrder( + """Ordered list of episode IDs""" + episodeIds: [ID!]! + ): UpdateEpisodeOrderMutation updateGift(giftData: UpdateGiftInput!): UpdateGiftMutation updateLetter(letterData: UpdateLetterInput!): UpdateLetterMutation updateOrCreateSource(sourceData: UpdateCreateSourceInput!): UpdateOrCreateSourceMutation @@ -839,6 +843,11 @@ type UpdateEpisodeMutation { ok: Boolean! } +type UpdateEpisodeOrderMutation { + errors: [LettercraftErrorType!]! + ok: Boolean! +} + input UpdateGiftInput { book: String categories: [ID!]