Skip to content

Commit

Permalink
Update generated files
Browse files Browse the repository at this point in the history
  • Loading branch information
XanderVertegaal committed Oct 30, 2024
1 parent 0a127be commit db97afd
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
41 changes: 41 additions & 0 deletions frontend/generated/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,7 @@ export type Mutation = {
updateAgent?: Maybe<UpdateAgentMutation>;
updateEpisode?: Maybe<UpdateEpisodeMutation>;
updateEpisodeEntityLink?: Maybe<UpdateEpisodeEntityLinkMutation>;
updateEpisodeOrder?: Maybe<UpdateEpisodeOrderMutation>;
updateGift?: Maybe<UpdateGiftMutation>;
updateLetter?: Maybe<UpdateLetterMutation>;
updateOrCreateSource?: Maybe<UpdateOrCreateSourceMutation>;
Expand Down Expand Up @@ -557,6 +558,11 @@ export type MutationUpdateEpisodeEntityLinkArgs = {
};


export type MutationUpdateEpisodeOrderArgs = {
episodeIds: Array<Scalars['ID']['input']>;
};


export type MutationUpdateGiftArgs = {
giftData: UpdateGiftInput;
};
Expand Down Expand Up @@ -987,6 +993,12 @@ export type UpdateEpisodeMutation = {
ok: Scalars['Boolean']['output'];
};

export type UpdateEpisodeOrderMutation = {
__typename?: 'UpdateEpisodeOrderMutation';
errors: Array<LettercraftErrorType>;
ok: Scalars['Boolean']['output'];
};

export type UpdateGiftInput = {
book?: InputMaybe<Scalars['String']['input']>;
categories?: InputMaybe<Array<Scalars['ID']['input']>>;
Expand Down Expand Up @@ -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']> | Scalars['ID']['input'];
}>;


export type DataEntryUpdateEpisodeOrderMutation = { __typename?: 'Mutation', updateEpisodeOrder?: { __typename?: 'UpdateEpisodeOrderMutation', ok: boolean, errors: Array<{ __typename?: 'LettercraftErrorType', field: string, messages: Array<string> }> } | null };

export type DataEntrySourceListQueryVariables = Exact<{ [key: string]: never; }>;


Expand Down Expand Up @@ -2589,6 +2608,28 @@ export const DataEntrySourceDetailDocument = gql`
export class DataEntrySourceDetailGQL extends Apollo.Query<DataEntrySourceDetailQuery, DataEntrySourceDetailQueryVariables> {
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<DataEntryUpdateEpisodeOrderMutation, DataEntryUpdateEpisodeOrderMutationVariables> {
override document = DataEntryUpdateEpisodeOrderDocument;

constructor(apollo: Apollo.Apollo) {
super(apollo);
}
Expand Down
9 changes: 9 additions & 0 deletions frontend/generated/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -839,6 +843,11 @@ type UpdateEpisodeMutation {
ok: Boolean!
}

type UpdateEpisodeOrderMutation {
errors: [LettercraftErrorType!]!
ok: Boolean!
}

input UpdateGiftInput {
book: String
categories: [ID!]
Expand Down

0 comments on commit db97afd

Please sign in to comment.