Skip to content

Commit

Permalink
update graphql types
Browse files Browse the repository at this point in the history
  • Loading branch information
lukavdplas committed Aug 6, 2024
1 parent 0b066eb commit f0aa3e5
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
19 changes: 19 additions & 0 deletions frontend/generated/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export type AgentDescriptionType = {
book: Scalars['String']['output'];
/** The chapter or chapters in the source */
chapter: Scalars['String']['output'];
contributors?: Maybe<Array<Maybe<UserType>>>;
describes?: Maybe<Array<Maybe<HistoricalPersonType>>>;
/** Longer description to help identify this object */
description: Scalars['String']['output'];
Expand Down Expand Up @@ -80,6 +81,7 @@ export type EpisodeType = {
book: Scalars['String']['output'];
/** The chapter or chapters in the source */
chapter: Scalars['String']['output'];
contributors?: Maybe<Array<Maybe<UserType>>>;
/** Longer description to help identify this object */
description: Scalars['String']['output'];
/** Relevant (Latin) terminology used to describe this entity in the source text */
Expand Down Expand Up @@ -141,6 +143,7 @@ export type GiftDescriptionType = {
categorisations: Array<GiftDescriptionCategoryType>;
/** The chapter or chapters in the source */
chapter: Scalars['String']['output'];
contributors?: Maybe<Array<Maybe<UserType>>>;
/** Longer description to help identify this object */
description: Scalars['String']['output'];
/** Relevant (Latin) terminology used to describe this entity in the source text */
Expand Down Expand Up @@ -197,6 +200,7 @@ export type LetterDescriptionType = {
categorisations: Array<LetterDescriptionCategoryType>;
/** The chapter or chapters in the source */
chapter: Scalars['String']['output'];
contributors?: Maybe<Array<Maybe<UserType>>>;
/** Longer description to help identify this object */
description: Scalars['String']['output'];
/** Relevant (Latin) terminology used to describe this entity in the source text */
Expand Down Expand Up @@ -423,6 +427,8 @@ export type Query = {
sources: Array<SourceType>;
spaceDescription?: Maybe<SpaceDescriptionType>;
spaceDescriptions: Array<SpaceDescriptionType>;
userDescription?: Maybe<UserType>;
userDescriptions: Array<UserType>;
};


Expand Down Expand Up @@ -483,6 +489,11 @@ export type QuerySpaceDescriptionsArgs = {
sourceId?: InputMaybe<Scalars['ID']['input']>;
};


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

export type RegionFieldType = {
__typename?: 'RegionFieldType';
/** How certain are you of this value? */
Expand Down Expand Up @@ -588,6 +599,7 @@ export type SpaceDescriptionType = {
book: Scalars['String']['output'];
/** The chapter or chapters in the source */
chapter: Scalars['String']['output'];
contributors?: Maybe<Array<Maybe<UserType>>>;
/** Longer description to help identify this object */
description: Scalars['String']['output'];
/** Relevant (Latin) terminology used to describe this entity in the source text */
Expand Down Expand Up @@ -737,6 +749,13 @@ export type UpdateOrCreateSourceMutation = {
source?: Maybe<SourceType>;
};

export type UserType = {
__typename?: 'UserType';
firstName: Scalars['String']['output'];
id: Scalars['ID']['output'];
lastName: Scalars['String']['output'];
};

export type DataEntrySourceDetailQueryVariables = Exact<{
id: Scalars['ID']['input'];
}>;
Expand Down
13 changes: 13 additions & 0 deletions frontend/generated/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ type AgentDescriptionType {

"""The chapter or chapters in the source"""
chapter: String!
contributors: [UserType]
describes: [HistoricalPersonType]

"""Longer description to help identify this object"""
Expand Down Expand Up @@ -79,6 +80,7 @@ type EpisodeType {

"""The chapter or chapters in the source"""
chapter: String!
contributors: [UserType]

"""Longer description to help identify this object"""
description: String!
Expand Down Expand Up @@ -155,6 +157,7 @@ type GiftDescriptionType {

"""The chapter or chapters in the source"""
chapter: String!
contributors: [UserType]

"""Longer description to help identify this object"""
description: String!
Expand Down Expand Up @@ -224,6 +227,7 @@ type LetterDescriptionType {

"""The chapter or chapters in the source"""
chapter: String!
contributors: [UserType]

"""Longer description to help identify this object"""
description: String!
Expand Down Expand Up @@ -488,6 +492,8 @@ type Query {
sources: [SourceType!]!
spaceDescription(id: ID!): SpaceDescriptionType
spaceDescriptions(sourceId: ID): [SpaceDescriptionType!]!
userDescription(id: ID!): UserType
userDescriptions: [UserType!]!
}

type RegionFieldType {
Expand Down Expand Up @@ -619,6 +625,7 @@ type SpaceDescriptionType {

"""The chapter or chapters in the source"""
chapter: String!
contributors: [UserType]

"""Longer description to help identify this object"""
description: String!
Expand Down Expand Up @@ -794,4 +801,10 @@ input UpdateCreateSourceInput {
type UpdateOrCreateSourceMutation {
errors: [String]
source: SourceType
}

type UserType {
firstName: String!
id: ID!
lastName: String!
}

0 comments on commit f0aa3e5

Please sign in to comment.