From efc5bb258fd4a168bf075fd651fadcc081ab5ec3 Mon Sep 17 00:00:00 2001 From: Igor Lobanov Date: Sat, 4 Nov 2023 16:56:46 +0100 Subject: [PATCH] updated graphql types --- src/graphql/types.gen.ts | 564 ++++++++++++++++++++------------------- 1 file changed, 284 insertions(+), 280 deletions(-) diff --git a/src/graphql/types.gen.ts b/src/graphql/types.gen.ts index dee75532..415462da 100644 --- a/src/graphql/types.gen.ts +++ b/src/graphql/types.gen.ts @@ -4,105 +4,109 @@ export type InputMaybe = Maybe export type Exact = { [K in keyof T]: T[K] } export type MakeOptional = Omit & { [SubKey in K]?: Maybe } export type MakeMaybe = Omit & { [SubKey in K]: Maybe } +export type MakeEmpty = { [_ in K]?: never } +export type Incremental = + | T + | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never } /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string - String: string - Boolean: boolean - Int: number - Float: number - DateTime: any + ID: { input: string; output: string } + String: { input: string; output: string } + Boolean: { input: boolean; output: boolean } + Int: { input: number; output: number } + Float: { input: number; output: number } + DateTime: { input: any; output: any } } export type AuthResult = { - error?: Maybe - token?: Maybe + error?: Maybe + token?: Maybe user?: Maybe } export type Author = { - about?: Maybe - bio?: Maybe - caption?: Maybe - createdAt?: Maybe - id: Scalars['Int'] - lastSeen?: Maybe - links?: Maybe>> - name: Scalars['String'] + about?: Maybe + bio?: Maybe + caption?: Maybe + createdAt?: Maybe + id: Scalars['Int']['output'] + lastSeen?: Maybe + links?: Maybe>> + name: Scalars['String']['output'] roles?: Maybe>> - slug: Scalars['String'] + slug: Scalars['String']['output'] stat?: Maybe - userpic?: Maybe + userpic?: Maybe } export type AuthorStat = { - commented?: Maybe - followers?: Maybe - followings?: Maybe - rating?: Maybe - shouts?: Maybe + commented?: Maybe + followers?: Maybe + followings?: Maybe + rating?: Maybe + shouts?: Maybe } export type AuthorsBy = { - createdAt?: InputMaybe - days?: InputMaybe - lastSeen?: InputMaybe - name?: InputMaybe - order?: InputMaybe - slug?: InputMaybe - stat?: InputMaybe - topic?: InputMaybe + createdAt?: InputMaybe + days?: InputMaybe + lastSeen?: InputMaybe + name?: InputMaybe + order?: InputMaybe + slug?: InputMaybe + stat?: InputMaybe + topic?: InputMaybe } export type Chat = { - admins?: Maybe>> - createdAt: Scalars['Int'] - createdBy: Scalars['Int'] - description?: Maybe - id: Scalars['String'] + admins?: Maybe>> + createdAt: Scalars['Int']['output'] + createdBy: Scalars['Int']['output'] + description?: Maybe + id: Scalars['String']['output'] members?: Maybe>> messages?: Maybe>> - private?: Maybe - title?: Maybe - unread?: Maybe - updatedAt: Scalars['Int'] - users?: Maybe>> + private?: Maybe + title?: Maybe + unread?: Maybe + updatedAt: Scalars['Int']['output'] + users?: Maybe>> } export type ChatInput = { - description?: InputMaybe - id: Scalars['String'] - title?: InputMaybe + description?: InputMaybe + id: Scalars['String']['input'] + title?: InputMaybe } export type ChatMember = { - id: Scalars['Int'] - lastSeen?: Maybe - name: Scalars['String'] - online?: Maybe - slug: Scalars['String'] - userpic?: Maybe + id: Scalars['Int']['output'] + lastSeen?: Maybe + name: Scalars['String']['output'] + online?: Maybe + slug: Scalars['String']['output'] + userpic?: Maybe } export type Collection = { - amount?: Maybe - createdAt: Scalars['DateTime'] + amount?: Maybe + createdAt: Scalars['DateTime']['output'] createdBy: User - desc?: Maybe - id: Scalars['Int'] - publishedAt?: Maybe - slug: Scalars['String'] - title: Scalars['String'] + desc?: Maybe + id: Scalars['Int']['output'] + publishedAt?: Maybe + slug: Scalars['String']['output'] + title: Scalars['String']['output'] } export type Community = { - createdAt: Scalars['DateTime'] + createdAt: Scalars['DateTime']['output'] createdBy: User - desc?: Maybe - id: Scalars['Int'] - name: Scalars['String'] - pic: Scalars['String'] - slug: Scalars['String'] + desc?: Maybe + id: Scalars['Int']['output'] + name: Scalars['String']['output'] + pic: Scalars['String']['output'] + slug: Scalars['String']['output'] } export enum FollowingEntity { @@ -113,35 +117,35 @@ export enum FollowingEntity { } export type LoadShoutsFilters = { - author?: InputMaybe - body?: InputMaybe - days?: InputMaybe - excludeLayout?: InputMaybe - layout?: InputMaybe - reacted?: InputMaybe - title?: InputMaybe - topic?: InputMaybe - visibility?: InputMaybe + author?: InputMaybe + body?: InputMaybe + days?: InputMaybe + excludeLayout?: InputMaybe + layout?: InputMaybe + reacted?: InputMaybe + title?: InputMaybe + topic?: InputMaybe + visibility?: InputMaybe } export type LoadShoutsOptions = { filters?: InputMaybe - limit: Scalars['Int'] - offset?: InputMaybe - order_by?: InputMaybe - order_by_desc?: InputMaybe - with_author_captions?: InputMaybe + limit: Scalars['Int']['input'] + offset?: InputMaybe + order_by?: InputMaybe + order_by_desc?: InputMaybe + with_author_captions?: InputMaybe } export type Message = { - author: Scalars['Int'] - body: Scalars['String'] - chatId: Scalars['String'] - createdAt: Scalars['Int'] - id: Scalars['Int'] - replyTo?: Maybe - seen?: Maybe - updatedAt?: Maybe + author: Scalars['Int']['output'] + body: Scalars['String']['output'] + chatId: Scalars['String']['output'] + createdAt: Scalars['Int']['output'] + id: Scalars['Int']['output'] + replyTo?: Maybe + seen?: Maybe + updatedAt?: Maybe } export enum MessageStatus { @@ -151,12 +155,12 @@ export enum MessageStatus { } export type MessagesBy = { - author?: InputMaybe - body?: InputMaybe - chat?: InputMaybe - days?: InputMaybe - order?: InputMaybe - stat?: InputMaybe + author?: InputMaybe + body?: InputMaybe + chat?: InputMaybe + days?: InputMaybe + order?: InputMaybe + stat?: InputMaybe } export type Mutation = { @@ -189,18 +193,18 @@ export type Mutation = { } export type MutationConfirmEmailArgs = { - token: Scalars['String'] + token: Scalars['String']['input'] } export type MutationCreateChatArgs = { - members: Array> - title?: InputMaybe + members: Array> + title?: InputMaybe } export type MutationCreateMessageArgs = { - body: Scalars['String'] - chat: Scalars['String'] - replyTo?: InputMaybe + body: Scalars['String']['input'] + chat: Scalars['String']['input'] + replyTo?: InputMaybe } export type MutationCreateReactionArgs = { @@ -216,59 +220,59 @@ export type MutationCreateTopicArgs = { } export type MutationDeleteChatArgs = { - chatId: Scalars['String'] + chatId: Scalars['String']['input'] } export type MutationDeleteMessageArgs = { - chatId: Scalars['String'] - id: Scalars['Int'] + chatId: Scalars['String']['input'] + id: Scalars['Int']['input'] } export type MutationDeleteReactionArgs = { - id: Scalars['Int'] + id: Scalars['Int']['input'] } export type MutationDeleteShoutArgs = { - shout_id: Scalars['Int'] + shout_id: Scalars['Int']['input'] } export type MutationDestroyTopicArgs = { - slug: Scalars['String'] + slug: Scalars['String']['input'] } export type MutationFollowArgs = { - slug: Scalars['String'] + slug: Scalars['String']['input'] what: FollowingEntity } export type MutationMarkAsReadArgs = { - chatId: Scalars['String'] - ids: Array> + chatId: Scalars['String']['input'] + ids: Array> } export type MutationMarkNotificationAsReadArgs = { - notification_id: Scalars['Int'] + notification_id: Scalars['Int']['input'] } export type MutationRateUserArgs = { - slug: Scalars['String'] - value: Scalars['Int'] + slug: Scalars['String']['input'] + value: Scalars['Int']['input'] } export type MutationRegisterUserArgs = { - email: Scalars['String'] - name?: InputMaybe - password?: InputMaybe + email: Scalars['String']['input'] + name?: InputMaybe + password?: InputMaybe } export type MutationSendLinkArgs = { - email: Scalars['String'] - lang?: InputMaybe - template?: InputMaybe + email: Scalars['String']['input'] + lang?: InputMaybe + template?: InputMaybe } export type MutationUnfollowArgs = { - slug: Scalars['String'] + slug: Scalars['String']['input'] what: FollowingEntity } @@ -277,9 +281,9 @@ export type MutationUpdateChatArgs = { } export type MutationUpdateMessageArgs = { - body: Scalars['String'] - chatId: Scalars['String'] - id: Scalars['Int'] + body: Scalars['String']['input'] + chatId: Scalars['String']['input'] + id: Scalars['Int']['input'] } export type MutationUpdateProfileArgs = { @@ -287,13 +291,13 @@ export type MutationUpdateProfileArgs = { } export type MutationUpdateReactionArgs = { - id: Scalars['Int'] + id: Scalars['Int']['input'] reaction: ReactionInput } export type MutationUpdateShoutArgs = { - publish?: InputMaybe - shout_id: Scalars['Int'] + publish?: InputMaybe + shout_id: Scalars['Int']['input'] shout_input?: InputMaybe } @@ -307,13 +311,13 @@ export type MySubscriptionsQueryResult = { } export type Notification = { - createdAt: Scalars['DateTime'] - data?: Maybe - id: Scalars['Int'] - occurrences: Scalars['Int'] - reaction?: Maybe - seen: Scalars['Boolean'] - shout?: Maybe + createdAt: Scalars['DateTime']['output'] + data?: Maybe + id: Scalars['Int']['output'] + occurrences: Scalars['Int']['output'] + reaction?: Maybe + seen: Scalars['Boolean']['output'] + shout?: Maybe type: NotificationType } @@ -323,40 +327,40 @@ export enum NotificationType { } export type NotificationsQueryParams = { - limit?: InputMaybe - offset?: InputMaybe + limit?: InputMaybe + offset?: InputMaybe } export type NotificationsQueryResult = { notifications: Array> - totalCount: Scalars['Int'] - totalUnreadCount: Scalars['Int'] + totalCount: Scalars['Int']['output'] + totalUnreadCount: Scalars['Int']['output'] } export type Operation = { - id: Scalars['Int'] - name: Scalars['String'] + id: Scalars['Int']['output'] + name: Scalars['String']['output'] } export type Permission = { - operation: Scalars['Int'] - resource: Scalars['Int'] + operation: Scalars['Int']['output'] + resource: Scalars['Int']['output'] } export type ProfileInput = { - about?: InputMaybe - bio?: InputMaybe - links?: InputMaybe>> - name?: InputMaybe - slug?: InputMaybe - userpic?: InputMaybe + about?: InputMaybe + bio?: InputMaybe + links?: InputMaybe>> + name?: InputMaybe + slug?: InputMaybe + userpic?: InputMaybe } export type Query = { authorsAll: Array> getAuthor?: Maybe getTopic?: Maybe - isEmailUsed: Scalars['Boolean'] + isEmailUsed: Scalars['Boolean']['output'] loadAuthorsBy: Array> loadChats: Result loadDrafts: Array> @@ -367,7 +371,7 @@ export type Query = { loadRecipients: Result loadShout?: Maybe loadShouts: Array> - markdownBody: Scalars['String'] + markdownBody: Scalars['String']['output'] myFeed?: Maybe>> searchMessages: Result searchRecipients: Result @@ -383,32 +387,32 @@ export type Query = { } export type QueryGetAuthorArgs = { - slug: Scalars['String'] + slug: Scalars['String']['input'] } export type QueryGetTopicArgs = { - slug: Scalars['String'] + slug: Scalars['String']['input'] } export type QueryIsEmailUsedArgs = { - email: Scalars['String'] + email: Scalars['String']['input'] } export type QueryLoadAuthorsByArgs = { by?: InputMaybe - limit?: InputMaybe - offset?: InputMaybe + limit?: InputMaybe + offset?: InputMaybe } export type QueryLoadChatsArgs = { - limit?: InputMaybe - offset?: InputMaybe + limit?: InputMaybe + offset?: InputMaybe } export type QueryLoadMessagesByArgs = { by: MessagesBy - limit?: InputMaybe - offset?: InputMaybe + limit?: InputMaybe + offset?: InputMaybe } export type QueryLoadNotificationsArgs = { @@ -417,18 +421,18 @@ export type QueryLoadNotificationsArgs = { export type QueryLoadReactionsByArgs = { by: ReactionBy - limit?: InputMaybe - offset?: InputMaybe + limit?: InputMaybe + offset?: InputMaybe } export type QueryLoadRecipientsArgs = { - limit?: InputMaybe - offset?: InputMaybe + limit?: InputMaybe + offset?: InputMaybe } export type QueryLoadShoutArgs = { - shout_id?: InputMaybe - slug?: InputMaybe + shout_id?: InputMaybe + slug?: InputMaybe } export type QueryLoadShoutsArgs = { @@ -436,7 +440,7 @@ export type QueryLoadShoutsArgs = { } export type QueryMarkdownBodyArgs = { - body: Scalars['String'] + body: Scalars['String']['input'] } export type QueryMyFeedArgs = { @@ -445,85 +449,85 @@ export type QueryMyFeedArgs = { export type QuerySearchMessagesArgs = { by: MessagesBy - limit?: InputMaybe - offset?: InputMaybe + limit?: InputMaybe + offset?: InputMaybe } export type QuerySearchRecipientsArgs = { - limit?: InputMaybe - offset?: InputMaybe - query: Scalars['String'] + limit?: InputMaybe + offset?: InputMaybe + query: Scalars['String']['input'] } export type QuerySignInArgs = { - email: Scalars['String'] - lang?: InputMaybe - password?: InputMaybe + email: Scalars['String']['input'] + lang?: InputMaybe + password?: InputMaybe } export type QueryTopicsByAuthorArgs = { - author: Scalars['String'] + author: Scalars['String']['input'] } export type QueryTopicsByCommunityArgs = { - community: Scalars['String'] + community: Scalars['String']['input'] } export type QueryTopicsRandomArgs = { - amount?: InputMaybe + amount?: InputMaybe } export type QueryUserFollowedAuthorsArgs = { - slug: Scalars['String'] + slug: Scalars['String']['input'] } export type QueryUserFollowedTopicsArgs = { - slug: Scalars['String'] + slug: Scalars['String']['input'] } export type QueryUserFollowersArgs = { - slug: Scalars['String'] + slug: Scalars['String']['input'] } export type Rating = { - rater: Scalars['String'] - value: Scalars['Int'] + rater: Scalars['String']['output'] + value: Scalars['Int']['output'] } export type Reaction = { - body?: Maybe - createdAt: Scalars['DateTime'] + body?: Maybe + createdAt: Scalars['DateTime']['output'] createdBy: User - deletedAt?: Maybe + deletedAt?: Maybe deletedBy?: Maybe - id: Scalars['Int'] + id: Scalars['Int']['output'] kind: ReactionKind - old_id?: Maybe - old_thread?: Maybe - range?: Maybe - replyTo?: Maybe + old_id?: Maybe + old_thread?: Maybe + range?: Maybe + replyTo?: Maybe shout: Shout stat?: Maybe - updatedAt?: Maybe + updatedAt?: Maybe } export type ReactionBy = { - comment?: InputMaybe - createdBy?: InputMaybe - days?: InputMaybe - search?: InputMaybe - shout?: InputMaybe - shouts?: InputMaybe>> - sort?: InputMaybe - topic?: InputMaybe + comment?: InputMaybe + createdBy?: InputMaybe + days?: InputMaybe + search?: InputMaybe + shout?: InputMaybe + shouts?: InputMaybe>> + sort?: InputMaybe + topic?: InputMaybe } export type ReactionInput = { - body?: InputMaybe + body?: InputMaybe kind: ReactionKind - range?: InputMaybe - replyTo?: InputMaybe - shout: Scalars['Int'] + range?: InputMaybe + replyTo?: InputMaybe + shout: Scalars['Int']['input'] } export enum ReactionKind { @@ -552,14 +556,14 @@ export enum ReactionStatus { } export type ReactionUpdating = { - error?: Maybe + error?: Maybe reaction?: Maybe status?: Maybe } export type Resource = { - id: Scalars['Int'] - name: Scalars['String'] + id: Scalars['Int']['output'] + name: Scalars['String']['output'] } export type Result = { @@ -569,7 +573,7 @@ export type Result = { chats?: Maybe>> communities?: Maybe>> community?: Maybe - error?: Maybe + error?: Maybe members?: Maybe>> message?: Maybe messages?: Maybe>> @@ -577,121 +581,121 @@ export type Result = { reactions?: Maybe>> shout?: Maybe shouts?: Maybe>> - slugs?: Maybe>> + slugs?: Maybe>> topic?: Maybe topics?: Maybe>> } export type Role = { - community: Scalars['String'] - desc?: Maybe - id: Scalars['Int'] - name: Scalars['String'] + community: Scalars['String']['output'] + desc?: Maybe + id: Scalars['Int']['output'] + name: Scalars['String']['output'] permissions: Array } export type Shout = { authors?: Maybe>> - body: Scalars['String'] - community?: Maybe - cover?: Maybe - createdAt: Scalars['DateTime'] - deletedAt?: Maybe + body: Scalars['String']['output'] + community?: Maybe + cover?: Maybe + createdAt: Scalars['DateTime']['output'] + deletedAt?: Maybe deletedBy?: Maybe - description?: Maybe - id: Scalars['Int'] - lang?: Maybe - layout?: Maybe - lead?: Maybe - mainTopic?: Maybe - media?: Maybe - publishedAt?: Maybe - slug: Scalars['String'] + description?: Maybe + id: Scalars['Int']['output'] + lang?: Maybe + layout?: Maybe + lead?: Maybe + mainTopic?: Maybe + media?: Maybe + publishedAt?: Maybe + slug: Scalars['String']['output'] stat?: Maybe - subtitle?: Maybe - title?: Maybe + subtitle?: Maybe + title?: Maybe topics?: Maybe>> - updatedAt?: Maybe + updatedAt?: Maybe updatedBy?: Maybe - versionOf?: Maybe - visibility?: Maybe + versionOf?: Maybe + visibility?: Maybe } export type ShoutInput = { - authors?: InputMaybe>> - body?: InputMaybe - community?: InputMaybe - cover?: InputMaybe - description?: InputMaybe - layout?: InputMaybe - lead?: InputMaybe + authors?: InputMaybe>> + body?: InputMaybe + community?: InputMaybe + cover?: InputMaybe + description?: InputMaybe + layout?: InputMaybe + lead?: InputMaybe mainTopic?: InputMaybe - media?: InputMaybe - slug?: InputMaybe - subtitle?: InputMaybe - title?: InputMaybe + media?: InputMaybe + slug?: InputMaybe + subtitle?: InputMaybe + title?: InputMaybe topics?: InputMaybe>> } export type Stat = { - commented?: Maybe - ranking?: Maybe - rating?: Maybe - reacted?: Maybe - viewed?: Maybe + commented?: Maybe + ranking?: Maybe + rating?: Maybe + reacted?: Maybe + viewed?: Maybe } export type Token = { - createdAt: Scalars['DateTime'] - expiresAt?: Maybe - id: Scalars['Int'] - ownerId: Scalars['Int'] - usedAt?: Maybe - value: Scalars['String'] + createdAt: Scalars['DateTime']['output'] + expiresAt?: Maybe + id: Scalars['Int']['output'] + ownerId: Scalars['Int']['output'] + usedAt?: Maybe + value: Scalars['String']['output'] } export type Topic = { - body?: Maybe - id: Scalars['Int'] - oid?: Maybe - pic?: Maybe - slug: Scalars['String'] + body?: Maybe + id: Scalars['Int']['output'] + oid?: Maybe + pic?: Maybe + slug: Scalars['String']['output'] stat?: Maybe - title?: Maybe + title?: Maybe } export type TopicInput = { - body?: InputMaybe - id?: InputMaybe - pic?: InputMaybe - slug: Scalars['String'] - title?: InputMaybe + body?: InputMaybe + id?: InputMaybe + pic?: InputMaybe + slug: Scalars['String']['input'] + title?: InputMaybe } export type TopicStat = { - authors: Scalars['Int'] - followers: Scalars['Int'] - shouts: Scalars['Int'] + authors: Scalars['Int']['output'] + followers: Scalars['Int']['output'] + shouts: Scalars['Int']['output'] } export type User = { - about?: Maybe - bio?: Maybe - communities?: Maybe>> - createdAt: Scalars['DateTime'] - email?: Maybe - emailConfirmed?: Maybe - id: Scalars['Int'] - lastSeen?: Maybe - links?: Maybe>> - muted?: Maybe - name?: Maybe - oauth?: Maybe - oid?: Maybe - password?: Maybe + about?: Maybe + bio?: Maybe + communities?: Maybe>> + createdAt: Scalars['DateTime']['output'] + email?: Maybe + emailConfirmed?: Maybe + id: Scalars['Int']['output'] + lastSeen?: Maybe + links?: Maybe>> + muted?: Maybe + name?: Maybe + oauth?: Maybe + oid?: Maybe + password?: Maybe ratings?: Maybe>> - slug: Scalars['String'] - updatedAt?: Maybe - username: Scalars['String'] - userpic?: Maybe + slug: Scalars['String']['output'] + updatedAt?: Maybe + username: Scalars['String']['output'] + userpic?: Maybe }