From 3f4afec76231ced09526a053881f38dd0f77a4eb Mon Sep 17 00:00:00 2001 From: jawndiego Date: Tue, 13 Feb 2024 10:19:13 -0500 Subject: [PATCH 1/6] 200mb file upload limit client side --- apps/site/components/client/ItemDropzone.tsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/apps/site/components/client/ItemDropzone.tsx b/apps/site/components/client/ItemDropzone.tsx index 96e362c2d..e2c264d13 100644 --- a/apps/site/components/client/ItemDropzone.tsx +++ b/apps/site/components/client/ItemDropzone.tsx @@ -63,6 +63,18 @@ export function ItemDropzone({ channel }: { channel: Channel }) { setIsUploading(true) for (const [index, file] of acceptedFiles.entries()) { + // Check file size (200MB = 200 * 1024 * 1024 bytes) + if (file.size > 200 * 1024 * 1024) { + setProgressInfo({ + fileIndex: index + 1, + totalFiles: acceptedFiles.length, + statusHeader: 'Error', + statusMessage: `${file.name} is too large. Max file size is 200MB.`, + showLoadingIcon: false, + }) + continue + } + setProgressInfo({ fileIndex: index + 1, totalFiles: acceptedFiles.length, From b507ed6a80de6e1d061b50011bd8dcd12f3b268e Mon Sep 17 00:00:00 2001 From: jawndiego Date: Tue, 13 Feb 2024 11:14:24 -0500 Subject: [PATCH 2/6] removing item query and relying solely on getChannelWithId --- apps/site/app/channel/[id]/[index]/page.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/apps/site/app/channel/[id]/[index]/page.tsx b/apps/site/app/channel/[id]/[index]/page.tsx index 747f18f7f..794aa7188 100644 --- a/apps/site/app/channel/[id]/[index]/page.tsx +++ b/apps/site/app/channel/[id]/[index]/page.tsx @@ -49,10 +49,6 @@ export default async function ItemPage({ const reversedIndex = totalItems - Number(params.index) const itemToRender = channel?.adds?.items?.[reversedIndex] - const { itemPage } = await getItemPage({ - id: `${channel?.id}/${itemToRender?.itemId}`, - }) - const itemMetadata = await kv.get['value']>( itemToRender?.item.uri as string, ) @@ -128,7 +124,7 @@ export default async function ItemPage({
Date: Tue, 13 Feb 2024 13:15:23 -0500 Subject: [PATCH 3/6] removing size --- apps/site/components/client/ItemDropzone.tsx | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/apps/site/components/client/ItemDropzone.tsx b/apps/site/components/client/ItemDropzone.tsx index e2c264d13..96e362c2d 100644 --- a/apps/site/components/client/ItemDropzone.tsx +++ b/apps/site/components/client/ItemDropzone.tsx @@ -63,18 +63,6 @@ export function ItemDropzone({ channel }: { channel: Channel }) { setIsUploading(true) for (const [index, file] of acceptedFiles.entries()) { - // Check file size (200MB = 200 * 1024 * 1024 bytes) - if (file.size > 200 * 1024 * 1024) { - setProgressInfo({ - fileIndex: index + 1, - totalFiles: acceptedFiles.length, - statusHeader: 'Error', - statusMessage: `${file.name} is too large. Max file size is 200MB.`, - showLoadingIcon: false, - }) - continue - } - setProgressInfo({ fileIndex: index + 1, totalFiles: acceptedFiles.length, From 79a5ba23820cb71e195434101ced1ae821412902 Mon Sep 17 00:00:00 2001 From: jawndiego Date: Thu, 15 Feb 2024 21:45:21 -0500 Subject: [PATCH 4/6] remove getItemPage --- apps/site/app/channel/[id]/[index]/page.tsx | 2 +- apps/site/gql/requests/getItemPage.ts | 9 - apps/site/gql/requests/index.ts | 1 - apps/site/gql/sdk.generated.ts | 1894 ++++++++----------- 4 files changed, 813 insertions(+), 1093 deletions(-) delete mode 100644 apps/site/gql/requests/getItemPage.ts diff --git a/apps/site/app/channel/[id]/[index]/page.tsx b/apps/site/app/channel/[id]/[index]/page.tsx index 794aa7188..e8d6ba29e 100644 --- a/apps/site/app/channel/[id]/[index]/page.tsx +++ b/apps/site/app/channel/[id]/[index]/page.tsx @@ -1,7 +1,7 @@ import { AudioPlayer, VideoPlayer } from '@/client' import { ItemSidebar } from '@/server' import { Typography, Flex, Stack } from '@/design-system' -import { getItemPage, getChannelWithId } from '@/gql' +import { getChannelWithId } from '@/gql' import { type MediaAssetObject, ipfsUrlToCid, diff --git a/apps/site/gql/requests/getItemPage.ts b/apps/site/gql/requests/getItemPage.ts deleted file mode 100644 index d8054cf9d..000000000 --- a/apps/site/gql/requests/getItemPage.ts +++ /dev/null @@ -1,9 +0,0 @@ -import sdk from '../client' - -export async function getItemPage({ id }: { id: string }) { - const response = await sdk.itemPage({ - id: id, - }) - - return { itemPage: response.adds } -} diff --git a/apps/site/gql/requests/index.ts b/apps/site/gql/requests/index.ts index 80847fe5c..74905db2f 100644 --- a/apps/site/gql/requests/index.ts +++ b/apps/site/gql/requests/index.ts @@ -4,7 +4,6 @@ export * from './getAllItems' export * from './getAllUsers' export * from './getChannelsItemsWithUser' export * from './getChannelWithId' -export * from './getItemPage' export * from './getItemWithId' export * from './getTxnHash' export * from './getUserId' diff --git a/apps/site/gql/sdk.generated.ts b/apps/site/gql/sdk.generated.ts index da0b3955c..0914d45f1 100644 --- a/apps/site/gql/sdk.generated.ts +++ b/apps/site/gql/sdk.generated.ts @@ -1,1045 +1,896 @@ -import type { DocumentNode } from 'graphql/language/ast' -import { GraphQLClient } from 'graphql-request' -import { GraphQLClientRequestHeaders } from 'graphql-request/build/cjs/types' -import gql from 'graphql-tag' -export type Maybe = T | null -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< - T extends { [key: string]: unknown }, - K extends keyof T, -> = { [_ in K]?: never } -export type Incremental = - | T - | { - [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never - } +import type { DocumentNode } from "graphql/language/ast"; +import { GraphQLClient } from 'graphql-request'; +import { GraphQLClientRequestHeaders } from 'graphql-request/build/cjs/types'; +import gql from 'graphql-tag'; +export type Maybe = T | null; +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: { input: string; output: string } - String: { input: string; output: string } - Boolean: { input: boolean; output: boolean } - Int: { input: number; output: number } - Float: { input: number; output: number } - BigInt: { input: any; output: 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; } + BigInt: { input: any; output: any; } +}; export type Adds = { - __typename?: 'Adds' - addedBy: User - addedById: Scalars['BigInt']['output'] - channel: Channel - channelId: Scalars['String']['output'] - id: Scalars['String']['output'] - item: Item - itemId: Scalars['String']['output'] - message: Message - messageId: Scalars['String']['output'] - removed?: Maybe - removedById?: Maybe - timestamp: Scalars['BigInt']['output'] -} + __typename?: 'Adds'; + addedBy: User; + addedById: Scalars['BigInt']['output']; + channel: Channel; + channelId: Scalars['String']['output']; + id: Scalars['String']['output']; + item: Item; + itemId: Scalars['String']['output']; + message: Message; + messageId: Scalars['String']['output']; + removed?: Maybe; + removedById?: Maybe; + timestamp: Scalars['BigInt']['output']; +}; export type AddsFilter = { - addedById?: InputMaybe - addedById_gt?: InputMaybe - addedById_gte?: InputMaybe - addedById_in?: InputMaybe>> - addedById_lt?: InputMaybe - addedById_lte?: InputMaybe - addedById_not?: InputMaybe - addedById_not_in?: InputMaybe>> - channelId?: InputMaybe - channelId_contains?: InputMaybe - channelId_ends_with?: InputMaybe - channelId_in?: InputMaybe>> - channelId_not?: InputMaybe - channelId_not_contains?: InputMaybe - channelId_not_ends_with?: InputMaybe - channelId_not_in?: InputMaybe>> - channelId_not_starts_with?: InputMaybe - channelId_starts_with?: InputMaybe - id?: InputMaybe - id_contains?: InputMaybe - id_ends_with?: InputMaybe - id_in?: InputMaybe>> - id_not?: InputMaybe - id_not_contains?: InputMaybe - id_not_ends_with?: InputMaybe - id_not_in?: InputMaybe>> - id_not_starts_with?: InputMaybe - id_starts_with?: InputMaybe - itemId?: InputMaybe - itemId_contains?: InputMaybe - itemId_ends_with?: InputMaybe - itemId_in?: InputMaybe>> - itemId_not?: InputMaybe - itemId_not_contains?: InputMaybe - itemId_not_ends_with?: InputMaybe - itemId_not_in?: InputMaybe>> - itemId_not_starts_with?: InputMaybe - itemId_starts_with?: InputMaybe - messageId?: InputMaybe - messageId_contains?: InputMaybe - messageId_ends_with?: InputMaybe - messageId_in?: InputMaybe>> - messageId_not?: InputMaybe - messageId_not_contains?: InputMaybe - messageId_not_ends_with?: InputMaybe - messageId_not_in?: InputMaybe>> - messageId_not_starts_with?: InputMaybe - messageId_starts_with?: InputMaybe - removed?: InputMaybe - removedById?: InputMaybe - removedById_gt?: InputMaybe - removedById_gte?: InputMaybe - removedById_in?: InputMaybe>> - removedById_lt?: InputMaybe - removedById_lte?: InputMaybe - removedById_not?: InputMaybe - removedById_not_in?: InputMaybe>> - removed_in?: InputMaybe>> - removed_not?: InputMaybe - removed_not_in?: InputMaybe>> - timestamp?: InputMaybe - timestamp_gt?: InputMaybe - timestamp_gte?: InputMaybe - timestamp_in?: InputMaybe>> - timestamp_lt?: InputMaybe - timestamp_lte?: InputMaybe - timestamp_not?: InputMaybe - timestamp_not_in?: InputMaybe>> -} + addedById?: InputMaybe; + addedById_gt?: InputMaybe; + addedById_gte?: InputMaybe; + addedById_in?: InputMaybe>>; + addedById_lt?: InputMaybe; + addedById_lte?: InputMaybe; + addedById_not?: InputMaybe; + addedById_not_in?: InputMaybe>>; + channelId?: InputMaybe; + channelId_contains?: InputMaybe; + channelId_ends_with?: InputMaybe; + channelId_in?: InputMaybe>>; + channelId_not?: InputMaybe; + channelId_not_contains?: InputMaybe; + channelId_not_ends_with?: InputMaybe; + channelId_not_in?: InputMaybe>>; + channelId_not_starts_with?: InputMaybe; + channelId_starts_with?: InputMaybe; + id?: InputMaybe; + id_contains?: InputMaybe; + id_ends_with?: InputMaybe; + id_in?: InputMaybe>>; + id_not?: InputMaybe; + id_not_contains?: InputMaybe; + id_not_ends_with?: InputMaybe; + id_not_in?: InputMaybe>>; + id_not_starts_with?: InputMaybe; + id_starts_with?: InputMaybe; + itemId?: InputMaybe; + itemId_contains?: InputMaybe; + itemId_ends_with?: InputMaybe; + itemId_in?: InputMaybe>>; + itemId_not?: InputMaybe; + itemId_not_contains?: InputMaybe; + itemId_not_ends_with?: InputMaybe; + itemId_not_in?: InputMaybe>>; + itemId_not_starts_with?: InputMaybe; + itemId_starts_with?: InputMaybe; + messageId?: InputMaybe; + messageId_contains?: InputMaybe; + messageId_ends_with?: InputMaybe; + messageId_in?: InputMaybe>>; + messageId_not?: InputMaybe; + messageId_not_contains?: InputMaybe; + messageId_not_ends_with?: InputMaybe; + messageId_not_in?: InputMaybe>>; + messageId_not_starts_with?: InputMaybe; + messageId_starts_with?: InputMaybe; + removed?: InputMaybe; + removedById?: InputMaybe; + removedById_gt?: InputMaybe; + removedById_gte?: InputMaybe; + removedById_in?: InputMaybe>>; + removedById_lt?: InputMaybe; + removedById_lte?: InputMaybe; + removedById_not?: InputMaybe; + removedById_not_in?: InputMaybe>>; + removed_in?: InputMaybe>>; + removed_not?: InputMaybe; + removed_not_in?: InputMaybe>>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>>; +}; export type AddsPage = { - __typename?: 'AddsPage' - items?: Maybe> - pageInfo?: Maybe -} + __typename?: 'AddsPage'; + items?: Maybe>; + pageInfo?: Maybe; +}; export type Channel = { - __typename?: 'Channel' - adds?: Maybe - createdBy: User - createdById: Scalars['BigInt']['output'] - description: Scalars['String']['output'] - id: Scalars['String']['output'] - message: Message - messageId: Scalars['String']['output'] - name: Scalars['String']['output'] - roles?: Maybe - timestamp: Scalars['BigInt']['output'] - uri: Scalars['String']['output'] -} + __typename?: 'Channel'; + adds?: Maybe; + createdBy: User; + createdById: Scalars['BigInt']['output']; + description: Scalars['String']['output']; + id: Scalars['String']['output']; + message: Message; + messageId: Scalars['String']['output']; + name: Scalars['String']['output']; + roles?: Maybe; + timestamp: Scalars['BigInt']['output']; + uri: Scalars['String']['output']; +}; + export type ChannelAddsArgs = { - after?: InputMaybe - before?: InputMaybe - limit?: InputMaybe - orderBy?: InputMaybe - orderDirection?: InputMaybe - timestamp?: InputMaybe -} + after?: InputMaybe; + before?: InputMaybe; + limit?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + timestamp?: InputMaybe; +}; + export type ChannelRolesArgs = { - after?: InputMaybe - before?: InputMaybe - limit?: InputMaybe - orderBy?: InputMaybe - orderDirection?: InputMaybe - timestamp?: InputMaybe -} + after?: InputMaybe; + before?: InputMaybe; + limit?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + timestamp?: InputMaybe; +}; export type ChannelFilter = { - createdById?: InputMaybe - createdById_gt?: InputMaybe - createdById_gte?: InputMaybe - createdById_in?: InputMaybe>> - createdById_lt?: InputMaybe - createdById_lte?: InputMaybe - createdById_not?: InputMaybe - createdById_not_in?: InputMaybe>> - description?: InputMaybe - description_contains?: InputMaybe - description_ends_with?: InputMaybe - description_in?: InputMaybe>> - description_not?: InputMaybe - description_not_contains?: InputMaybe - description_not_ends_with?: InputMaybe - description_not_in?: InputMaybe>> - description_not_starts_with?: InputMaybe - description_starts_with?: InputMaybe - id?: InputMaybe - id_contains?: InputMaybe - id_ends_with?: InputMaybe - id_in?: InputMaybe>> - id_not?: InputMaybe - id_not_contains?: InputMaybe - id_not_ends_with?: InputMaybe - id_not_in?: InputMaybe>> - id_not_starts_with?: InputMaybe - id_starts_with?: InputMaybe - messageId?: InputMaybe - messageId_contains?: InputMaybe - messageId_ends_with?: InputMaybe - messageId_in?: InputMaybe>> - messageId_not?: InputMaybe - messageId_not_contains?: InputMaybe - messageId_not_ends_with?: InputMaybe - messageId_not_in?: InputMaybe>> - messageId_not_starts_with?: InputMaybe - messageId_starts_with?: InputMaybe - name?: InputMaybe - name_contains?: InputMaybe - name_ends_with?: InputMaybe - name_in?: InputMaybe>> - name_not?: InputMaybe - name_not_contains?: InputMaybe - name_not_ends_with?: InputMaybe - name_not_in?: InputMaybe>> - name_not_starts_with?: InputMaybe - name_starts_with?: InputMaybe - timestamp?: InputMaybe - timestamp_gt?: InputMaybe - timestamp_gte?: InputMaybe - timestamp_in?: InputMaybe>> - timestamp_lt?: InputMaybe - timestamp_lte?: InputMaybe - timestamp_not?: InputMaybe - timestamp_not_in?: InputMaybe>> - uri?: InputMaybe - uri_contains?: InputMaybe - uri_ends_with?: InputMaybe - uri_in?: InputMaybe>> - uri_not?: InputMaybe - uri_not_contains?: InputMaybe - uri_not_ends_with?: InputMaybe - uri_not_in?: InputMaybe>> - uri_not_starts_with?: InputMaybe - uri_starts_with?: InputMaybe -} + createdById?: InputMaybe; + createdById_gt?: InputMaybe; + createdById_gte?: InputMaybe; + createdById_in?: InputMaybe>>; + createdById_lt?: InputMaybe; + createdById_lte?: InputMaybe; + createdById_not?: InputMaybe; + createdById_not_in?: InputMaybe>>; + description?: InputMaybe; + description_contains?: InputMaybe; + description_ends_with?: InputMaybe; + description_in?: InputMaybe>>; + description_not?: InputMaybe; + description_not_contains?: InputMaybe; + description_not_ends_with?: InputMaybe; + description_not_in?: InputMaybe>>; + description_not_starts_with?: InputMaybe; + description_starts_with?: InputMaybe; + id?: InputMaybe; + id_contains?: InputMaybe; + id_ends_with?: InputMaybe; + id_in?: InputMaybe>>; + id_not?: InputMaybe; + id_not_contains?: InputMaybe; + id_not_ends_with?: InputMaybe; + id_not_in?: InputMaybe>>; + id_not_starts_with?: InputMaybe; + id_starts_with?: InputMaybe; + messageId?: InputMaybe; + messageId_contains?: InputMaybe; + messageId_ends_with?: InputMaybe; + messageId_in?: InputMaybe>>; + messageId_not?: InputMaybe; + messageId_not_contains?: InputMaybe; + messageId_not_ends_with?: InputMaybe; + messageId_not_in?: InputMaybe>>; + messageId_not_starts_with?: InputMaybe; + messageId_starts_with?: InputMaybe; + name?: InputMaybe; + name_contains?: InputMaybe; + name_ends_with?: InputMaybe; + name_in?: InputMaybe>>; + name_not?: InputMaybe; + name_not_contains?: InputMaybe; + name_not_ends_with?: InputMaybe; + name_not_in?: InputMaybe>>; + name_not_starts_with?: InputMaybe; + name_starts_with?: InputMaybe; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>>; + uri?: InputMaybe; + uri_contains?: InputMaybe; + uri_ends_with?: InputMaybe; + uri_in?: InputMaybe>>; + uri_not?: InputMaybe; + uri_not_contains?: InputMaybe; + uri_not_ends_with?: InputMaybe; + uri_not_in?: InputMaybe>>; + uri_not_starts_with?: InputMaybe; + uri_starts_with?: InputMaybe; +}; export type ChannelPage = { - __typename?: 'ChannelPage' - items?: Maybe> - pageInfo?: Maybe -} + __typename?: 'ChannelPage'; + items?: Maybe>; + pageInfo?: Maybe; +}; export type ChannelRoles = { - __typename?: 'ChannelRoles' - channel: Channel - channelId: Scalars['String']['output'] - id: Scalars['String']['output'] - rid: Scalars['BigInt']['output'] - role: Scalars['BigInt']['output'] - timestamp: Scalars['BigInt']['output'] -} + __typename?: 'ChannelRoles'; + channel: Channel; + channelId: Scalars['String']['output']; + id: Scalars['String']['output']; + rid: Scalars['BigInt']['output']; + role: Scalars['BigInt']['output']; + timestamp: Scalars['BigInt']['output']; +}; export type ChannelRolesFilter = { - channelId?: InputMaybe - channelId_contains?: InputMaybe - channelId_ends_with?: InputMaybe - channelId_in?: InputMaybe>> - channelId_not?: InputMaybe - channelId_not_contains?: InputMaybe - channelId_not_ends_with?: InputMaybe - channelId_not_in?: InputMaybe>> - channelId_not_starts_with?: InputMaybe - channelId_starts_with?: InputMaybe - id?: InputMaybe - id_contains?: InputMaybe - id_ends_with?: InputMaybe - id_in?: InputMaybe>> - id_not?: InputMaybe - id_not_contains?: InputMaybe - id_not_ends_with?: InputMaybe - id_not_in?: InputMaybe>> - id_not_starts_with?: InputMaybe - id_starts_with?: InputMaybe - rid?: InputMaybe - rid_gt?: InputMaybe - rid_gte?: InputMaybe - rid_in?: InputMaybe>> - rid_lt?: InputMaybe - rid_lte?: InputMaybe - rid_not?: InputMaybe - rid_not_in?: InputMaybe>> - role?: InputMaybe - role_gt?: InputMaybe - role_gte?: InputMaybe - role_in?: InputMaybe>> - role_lt?: InputMaybe - role_lte?: InputMaybe - role_not?: InputMaybe - role_not_in?: InputMaybe>> - timestamp?: InputMaybe - timestamp_gt?: InputMaybe - timestamp_gte?: InputMaybe - timestamp_in?: InputMaybe>> - timestamp_lt?: InputMaybe - timestamp_lte?: InputMaybe - timestamp_not?: InputMaybe - timestamp_not_in?: InputMaybe>> -} + channelId?: InputMaybe; + channelId_contains?: InputMaybe; + channelId_ends_with?: InputMaybe; + channelId_in?: InputMaybe>>; + channelId_not?: InputMaybe; + channelId_not_contains?: InputMaybe; + channelId_not_ends_with?: InputMaybe; + channelId_not_in?: InputMaybe>>; + channelId_not_starts_with?: InputMaybe; + channelId_starts_with?: InputMaybe; + id?: InputMaybe; + id_contains?: InputMaybe; + id_ends_with?: InputMaybe; + id_in?: InputMaybe>>; + id_not?: InputMaybe; + id_not_contains?: InputMaybe; + id_not_ends_with?: InputMaybe; + id_not_in?: InputMaybe>>; + id_not_starts_with?: InputMaybe; + id_starts_with?: InputMaybe; + rid?: InputMaybe; + rid_gt?: InputMaybe; + rid_gte?: InputMaybe; + rid_in?: InputMaybe>>; + rid_lt?: InputMaybe; + rid_lte?: InputMaybe; + rid_not?: InputMaybe; + rid_not_in?: InputMaybe>>; + role?: InputMaybe; + role_gt?: InputMaybe; + role_gte?: InputMaybe; + role_in?: InputMaybe>>; + role_lt?: InputMaybe; + role_lte?: InputMaybe; + role_not?: InputMaybe; + role_not_in?: InputMaybe>>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>>; +}; export type ChannelRolesPage = { - __typename?: 'ChannelRolesPage' - items?: Maybe> - pageInfo?: Maybe -} + __typename?: 'ChannelRolesPage'; + items?: Maybe>; + pageInfo?: Maybe; +}; export type Item = { - __typename?: 'Item' - adds?: Maybe - createdBy: User - createdById: Scalars['BigInt']['output'] - id: Scalars['String']['output'] - message: Message - messageId: Scalars['String']['output'] - timestamp: Scalars['BigInt']['output'] - uri: Scalars['String']['output'] -} + __typename?: 'Item'; + adds?: Maybe; + createdBy: User; + createdById: Scalars['BigInt']['output']; + id: Scalars['String']['output']; + message: Message; + messageId: Scalars['String']['output']; + timestamp: Scalars['BigInt']['output']; + uri: Scalars['String']['output']; +}; + export type ItemAddsArgs = { - after?: InputMaybe - before?: InputMaybe - limit?: InputMaybe - orderBy?: InputMaybe - orderDirection?: InputMaybe - timestamp?: InputMaybe -} + after?: InputMaybe; + before?: InputMaybe; + limit?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + timestamp?: InputMaybe; +}; export type ItemFilter = { - createdById?: InputMaybe - createdById_gt?: InputMaybe - createdById_gte?: InputMaybe - createdById_in?: InputMaybe>> - createdById_lt?: InputMaybe - createdById_lte?: InputMaybe - createdById_not?: InputMaybe - createdById_not_in?: InputMaybe>> - id?: InputMaybe - id_contains?: InputMaybe - id_ends_with?: InputMaybe - id_in?: InputMaybe>> - id_not?: InputMaybe - id_not_contains?: InputMaybe - id_not_ends_with?: InputMaybe - id_not_in?: InputMaybe>> - id_not_starts_with?: InputMaybe - id_starts_with?: InputMaybe - messageId?: InputMaybe - messageId_contains?: InputMaybe - messageId_ends_with?: InputMaybe - messageId_in?: InputMaybe>> - messageId_not?: InputMaybe - messageId_not_contains?: InputMaybe - messageId_not_ends_with?: InputMaybe - messageId_not_in?: InputMaybe>> - messageId_not_starts_with?: InputMaybe - messageId_starts_with?: InputMaybe - timestamp?: InputMaybe - timestamp_gt?: InputMaybe - timestamp_gte?: InputMaybe - timestamp_in?: InputMaybe>> - timestamp_lt?: InputMaybe - timestamp_lte?: InputMaybe - timestamp_not?: InputMaybe - timestamp_not_in?: InputMaybe>> - uri?: InputMaybe - uri_contains?: InputMaybe - uri_ends_with?: InputMaybe - uri_in?: InputMaybe>> - uri_not?: InputMaybe - uri_not_contains?: InputMaybe - uri_not_ends_with?: InputMaybe - uri_not_in?: InputMaybe>> - uri_not_starts_with?: InputMaybe - uri_starts_with?: InputMaybe -} + createdById?: InputMaybe; + createdById_gt?: InputMaybe; + createdById_gte?: InputMaybe; + createdById_in?: InputMaybe>>; + createdById_lt?: InputMaybe; + createdById_lte?: InputMaybe; + createdById_not?: InputMaybe; + createdById_not_in?: InputMaybe>>; + id?: InputMaybe; + id_contains?: InputMaybe; + id_ends_with?: InputMaybe; + id_in?: InputMaybe>>; + id_not?: InputMaybe; + id_not_contains?: InputMaybe; + id_not_ends_with?: InputMaybe; + id_not_in?: InputMaybe>>; + id_not_starts_with?: InputMaybe; + id_starts_with?: InputMaybe; + messageId?: InputMaybe; + messageId_contains?: InputMaybe; + messageId_ends_with?: InputMaybe; + messageId_in?: InputMaybe>>; + messageId_not?: InputMaybe; + messageId_not_contains?: InputMaybe; + messageId_not_ends_with?: InputMaybe; + messageId_not_in?: InputMaybe>>; + messageId_not_starts_with?: InputMaybe; + messageId_starts_with?: InputMaybe; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>>; + uri?: InputMaybe; + uri_contains?: InputMaybe; + uri_ends_with?: InputMaybe; + uri_in?: InputMaybe>>; + uri_not?: InputMaybe; + uri_not_contains?: InputMaybe; + uri_not_ends_with?: InputMaybe; + uri_not_in?: InputMaybe>>; + uri_not_starts_with?: InputMaybe; + uri_starts_with?: InputMaybe; +}; export type ItemPage = { - __typename?: 'ItemPage' - items?: Maybe> - pageInfo?: Maybe -} + __typename?: 'ItemPage'; + items?: Maybe>; + pageInfo?: Maybe; +}; export type ItemRoles = { - __typename?: 'ItemRoles' - id: Scalars['String']['output'] - item: Item - itemId: Scalars['String']['output'] - rid: Scalars['BigInt']['output'] - role: Scalars['BigInt']['output'] -} + __typename?: 'ItemRoles'; + id: Scalars['String']['output']; + item: Item; + itemId: Scalars['String']['output']; + rid: Scalars['BigInt']['output']; + role: Scalars['BigInt']['output']; +}; export type ItemRolesFilter = { - id?: InputMaybe - id_contains?: InputMaybe - id_ends_with?: InputMaybe - id_in?: InputMaybe>> - id_not?: InputMaybe - id_not_contains?: InputMaybe - id_not_ends_with?: InputMaybe - id_not_in?: InputMaybe>> - id_not_starts_with?: InputMaybe - id_starts_with?: InputMaybe - itemId?: InputMaybe - itemId_contains?: InputMaybe - itemId_ends_with?: InputMaybe - itemId_in?: InputMaybe>> - itemId_not?: InputMaybe - itemId_not_contains?: InputMaybe - itemId_not_ends_with?: InputMaybe - itemId_not_in?: InputMaybe>> - itemId_not_starts_with?: InputMaybe - itemId_starts_with?: InputMaybe - rid?: InputMaybe - rid_gt?: InputMaybe - rid_gte?: InputMaybe - rid_in?: InputMaybe>> - rid_lt?: InputMaybe - rid_lte?: InputMaybe - rid_not?: InputMaybe - rid_not_in?: InputMaybe>> - role?: InputMaybe - role_gt?: InputMaybe - role_gte?: InputMaybe - role_in?: InputMaybe>> - role_lt?: InputMaybe - role_lte?: InputMaybe - role_not?: InputMaybe - role_not_in?: InputMaybe>> -} + id?: InputMaybe; + id_contains?: InputMaybe; + id_ends_with?: InputMaybe; + id_in?: InputMaybe>>; + id_not?: InputMaybe; + id_not_contains?: InputMaybe; + id_not_ends_with?: InputMaybe; + id_not_in?: InputMaybe>>; + id_not_starts_with?: InputMaybe; + id_starts_with?: InputMaybe; + itemId?: InputMaybe; + itemId_contains?: InputMaybe; + itemId_ends_with?: InputMaybe; + itemId_in?: InputMaybe>>; + itemId_not?: InputMaybe; + itemId_not_contains?: InputMaybe; + itemId_not_ends_with?: InputMaybe; + itemId_not_in?: InputMaybe>>; + itemId_not_starts_with?: InputMaybe; + itemId_starts_with?: InputMaybe; + rid?: InputMaybe; + rid_gt?: InputMaybe; + rid_gte?: InputMaybe; + rid_in?: InputMaybe>>; + rid_lt?: InputMaybe; + rid_lte?: InputMaybe; + rid_not?: InputMaybe; + rid_not_in?: InputMaybe>>; + role?: InputMaybe; + role_gt?: InputMaybe; + role_gte?: InputMaybe; + role_in?: InputMaybe>>; + role_lt?: InputMaybe; + role_lte?: InputMaybe; + role_not?: InputMaybe; + role_not_in?: InputMaybe>>; +}; export type ItemRolesPage = { - __typename?: 'ItemRolesPage' - items?: Maybe> - pageInfo?: Maybe -} + __typename?: 'ItemRolesPage'; + items?: Maybe>; + pageInfo?: Maybe; +}; export type Message = { - __typename?: 'Message' - id: Scalars['String']['output'] - msgBody: Scalars['String']['output'] - msgType: Scalars['BigInt']['output'] - rid: Scalars['BigInt']['output'] - timestamp: Scalars['BigInt']['output'] -} + __typename?: 'Message'; + id: Scalars['String']['output']; + msgBody: Scalars['String']['output']; + msgType: Scalars['BigInt']['output']; + rid: Scalars['BigInt']['output']; + timestamp: Scalars['BigInt']['output']; +}; export type MessageFilter = { - id?: InputMaybe - id_contains?: InputMaybe - id_ends_with?: InputMaybe - id_in?: InputMaybe>> - id_not?: InputMaybe - id_not_contains?: InputMaybe - id_not_ends_with?: InputMaybe - id_not_in?: InputMaybe>> - id_not_starts_with?: InputMaybe - id_starts_with?: InputMaybe - msgBody?: InputMaybe - msgBody_gt?: InputMaybe - msgBody_gte?: InputMaybe - msgBody_in?: InputMaybe>> - msgBody_lt?: InputMaybe - msgBody_lte?: InputMaybe - msgBody_not?: InputMaybe - msgBody_not_in?: InputMaybe>> - msgType?: InputMaybe - msgType_gt?: InputMaybe - msgType_gte?: InputMaybe - msgType_in?: InputMaybe>> - msgType_lt?: InputMaybe - msgType_lte?: InputMaybe - msgType_not?: InputMaybe - msgType_not_in?: InputMaybe>> - rid?: InputMaybe - rid_gt?: InputMaybe - rid_gte?: InputMaybe - rid_in?: InputMaybe>> - rid_lt?: InputMaybe - rid_lte?: InputMaybe - rid_not?: InputMaybe - rid_not_in?: InputMaybe>> - timestamp?: InputMaybe - timestamp_gt?: InputMaybe - timestamp_gte?: InputMaybe - timestamp_in?: InputMaybe>> - timestamp_lt?: InputMaybe - timestamp_lte?: InputMaybe - timestamp_not?: InputMaybe - timestamp_not_in?: InputMaybe>> -} + id?: InputMaybe; + id_contains?: InputMaybe; + id_ends_with?: InputMaybe; + id_in?: InputMaybe>>; + id_not?: InputMaybe; + id_not_contains?: InputMaybe; + id_not_ends_with?: InputMaybe; + id_not_in?: InputMaybe>>; + id_not_starts_with?: InputMaybe; + id_starts_with?: InputMaybe; + msgBody?: InputMaybe; + msgBody_gt?: InputMaybe; + msgBody_gte?: InputMaybe; + msgBody_in?: InputMaybe>>; + msgBody_lt?: InputMaybe; + msgBody_lte?: InputMaybe; + msgBody_not?: InputMaybe; + msgBody_not_in?: InputMaybe>>; + msgType?: InputMaybe; + msgType_gt?: InputMaybe; + msgType_gte?: InputMaybe; + msgType_in?: InputMaybe>>; + msgType_lt?: InputMaybe; + msgType_lte?: InputMaybe; + msgType_not?: InputMaybe; + msgType_not_in?: InputMaybe>>; + rid?: InputMaybe; + rid_gt?: InputMaybe; + rid_gte?: InputMaybe; + rid_in?: InputMaybe>>; + rid_lt?: InputMaybe; + rid_lte?: InputMaybe; + rid_not?: InputMaybe; + rid_not_in?: InputMaybe>>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>>; +}; export type MessagePage = { - __typename?: 'MessagePage' - items?: Maybe> - pageInfo?: Maybe -} + __typename?: 'MessagePage'; + items?: Maybe>; + pageInfo?: Maybe; +}; export type PageInfo = { - __typename?: 'PageInfo' - endCursor?: Maybe - hasNextPage: Scalars['Boolean']['output'] - hasPreviousPage: Scalars['Boolean']['output'] - startCursor?: Maybe -} + __typename?: 'PageInfo'; + endCursor?: Maybe; + hasNextPage: Scalars['Boolean']['output']; + hasPreviousPage: Scalars['Boolean']['output']; + startCursor?: Maybe; +}; export type Post = { - __typename?: 'Post' - hash: Scalars['String']['output'] - hashType: Scalars['BigInt']['output'] - id: Scalars['String']['output'] - message: Message - messageId: Scalars['String']['output'] - relayer: Scalars['String']['output'] - sig: Scalars['String']['output'] - sigType: Scalars['BigInt']['output'] - signer: Scalars['String']['output'] -} + __typename?: 'Post'; + hash: Scalars['String']['output']; + hashType: Scalars['BigInt']['output']; + id: Scalars['String']['output']; + message: Message; + messageId: Scalars['String']['output']; + relayer: Scalars['String']['output']; + sig: Scalars['String']['output']; + sigType: Scalars['BigInt']['output']; + signer: Scalars['String']['output']; +}; export type PostFilter = { - hash?: InputMaybe - hashType?: InputMaybe - hashType_gt?: InputMaybe - hashType_gte?: InputMaybe - hashType_in?: InputMaybe>> - hashType_lt?: InputMaybe - hashType_lte?: InputMaybe - hashType_not?: InputMaybe - hashType_not_in?: InputMaybe>> - hash_gt?: InputMaybe - hash_gte?: InputMaybe - hash_in?: InputMaybe>> - hash_lt?: InputMaybe - hash_lte?: InputMaybe - hash_not?: InputMaybe - hash_not_in?: InputMaybe>> - id?: InputMaybe - id_contains?: InputMaybe - id_ends_with?: InputMaybe - id_in?: InputMaybe>> - id_not?: InputMaybe - id_not_contains?: InputMaybe - id_not_ends_with?: InputMaybe - id_not_in?: InputMaybe>> - id_not_starts_with?: InputMaybe - id_starts_with?: InputMaybe - messageId?: InputMaybe - messageId_contains?: InputMaybe - messageId_ends_with?: InputMaybe - messageId_in?: InputMaybe>> - messageId_not?: InputMaybe - messageId_not_contains?: InputMaybe - messageId_not_ends_with?: InputMaybe - messageId_not_in?: InputMaybe>> - messageId_not_starts_with?: InputMaybe - messageId_starts_with?: InputMaybe - relayer?: InputMaybe - relayer_gt?: InputMaybe - relayer_gte?: InputMaybe - relayer_in?: InputMaybe>> - relayer_lt?: InputMaybe - relayer_lte?: InputMaybe - relayer_not?: InputMaybe - relayer_not_in?: InputMaybe>> - sig?: InputMaybe - sigType?: InputMaybe - sigType_gt?: InputMaybe - sigType_gte?: InputMaybe - sigType_in?: InputMaybe>> - sigType_lt?: InputMaybe - sigType_lte?: InputMaybe - sigType_not?: InputMaybe - sigType_not_in?: InputMaybe>> - sig_gt?: InputMaybe - sig_gte?: InputMaybe - sig_in?: InputMaybe>> - sig_lt?: InputMaybe - sig_lte?: InputMaybe - sig_not?: InputMaybe - sig_not_in?: InputMaybe>> - signer?: InputMaybe - signer_gt?: InputMaybe - signer_gte?: InputMaybe - signer_in?: InputMaybe>> - signer_lt?: InputMaybe - signer_lte?: InputMaybe - signer_not?: InputMaybe - signer_not_in?: InputMaybe>> -} + hash?: InputMaybe; + hashType?: InputMaybe; + hashType_gt?: InputMaybe; + hashType_gte?: InputMaybe; + hashType_in?: InputMaybe>>; + hashType_lt?: InputMaybe; + hashType_lte?: InputMaybe; + hashType_not?: InputMaybe; + hashType_not_in?: InputMaybe>>; + hash_gt?: InputMaybe; + hash_gte?: InputMaybe; + hash_in?: InputMaybe>>; + hash_lt?: InputMaybe; + hash_lte?: InputMaybe; + hash_not?: InputMaybe; + hash_not_in?: InputMaybe>>; + id?: InputMaybe; + id_contains?: InputMaybe; + id_ends_with?: InputMaybe; + id_in?: InputMaybe>>; + id_not?: InputMaybe; + id_not_contains?: InputMaybe; + id_not_ends_with?: InputMaybe; + id_not_in?: InputMaybe>>; + id_not_starts_with?: InputMaybe; + id_starts_with?: InputMaybe; + messageId?: InputMaybe; + messageId_contains?: InputMaybe; + messageId_ends_with?: InputMaybe; + messageId_in?: InputMaybe>>; + messageId_not?: InputMaybe; + messageId_not_contains?: InputMaybe; + messageId_not_ends_with?: InputMaybe; + messageId_not_in?: InputMaybe>>; + messageId_not_starts_with?: InputMaybe; + messageId_starts_with?: InputMaybe; + relayer?: InputMaybe; + relayer_gt?: InputMaybe; + relayer_gte?: InputMaybe; + relayer_in?: InputMaybe>>; + relayer_lt?: InputMaybe; + relayer_lte?: InputMaybe; + relayer_not?: InputMaybe; + relayer_not_in?: InputMaybe>>; + sig?: InputMaybe; + sigType?: InputMaybe; + sigType_gt?: InputMaybe; + sigType_gte?: InputMaybe; + sigType_in?: InputMaybe>>; + sigType_lt?: InputMaybe; + sigType_lte?: InputMaybe; + sigType_not?: InputMaybe; + sigType_not_in?: InputMaybe>>; + sig_gt?: InputMaybe; + sig_gte?: InputMaybe; + sig_in?: InputMaybe>>; + sig_lt?: InputMaybe; + sig_lte?: InputMaybe; + sig_not?: InputMaybe; + sig_not_in?: InputMaybe>>; + signer?: InputMaybe; + signer_gt?: InputMaybe; + signer_gte?: InputMaybe; + signer_in?: InputMaybe>>; + signer_lt?: InputMaybe; + signer_lte?: InputMaybe; + signer_not?: InputMaybe; + signer_not_in?: InputMaybe>>; +}; export type PostPage = { - __typename?: 'PostPage' - items?: Maybe> - pageInfo?: Maybe -} + __typename?: 'PostPage'; + items?: Maybe>; + pageInfo?: Maybe; +}; export type Query = { - __typename?: 'Query' - adds?: Maybe - addss?: Maybe - channel?: Maybe - channelRoles?: Maybe - channelRoless?: Maybe - channels?: Maybe - item?: Maybe - itemRoles?: Maybe - itemRoless?: Maybe - items?: Maybe - message?: Maybe - messages?: Maybe - post?: Maybe - posts?: Maybe - txn?: Maybe - txns?: Maybe - user?: Maybe - users?: Maybe -} + __typename?: 'Query'; + adds?: Maybe; + addss?: Maybe; + channel?: Maybe; + channelRoles?: Maybe; + channelRoless?: Maybe; + channels?: Maybe; + item?: Maybe; + itemRoles?: Maybe; + itemRoless?: Maybe; + items?: Maybe; + message?: Maybe; + messages?: Maybe; + post?: Maybe; + posts?: Maybe; + txn?: Maybe; + txns?: Maybe; + user?: Maybe; + users?: Maybe; +}; + export type QueryAddsArgs = { - id: Scalars['String']['input'] - timestamp?: InputMaybe -} + id: Scalars['String']['input']; + timestamp?: InputMaybe; +}; + export type QueryAddssArgs = { - after?: InputMaybe - before?: InputMaybe - limit?: InputMaybe - orderBy?: InputMaybe - orderDirection?: InputMaybe - timestamp?: InputMaybe - where?: InputMaybe -} + after?: InputMaybe; + before?: InputMaybe; + limit?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + timestamp?: InputMaybe; + where?: InputMaybe; +}; + export type QueryChannelArgs = { - id: Scalars['String']['input'] - timestamp?: InputMaybe -} + id: Scalars['String']['input']; + timestamp?: InputMaybe; +}; + export type QueryChannelRolesArgs = { - id: Scalars['String']['input'] - timestamp?: InputMaybe -} + id: Scalars['String']['input']; + timestamp?: InputMaybe; +}; + export type QueryChannelRolessArgs = { - after?: InputMaybe - before?: InputMaybe - limit?: InputMaybe - orderBy?: InputMaybe - orderDirection?: InputMaybe - timestamp?: InputMaybe - where?: InputMaybe -} + after?: InputMaybe; + before?: InputMaybe; + limit?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + timestamp?: InputMaybe; + where?: InputMaybe; +}; + export type QueryChannelsArgs = { - after?: InputMaybe - before?: InputMaybe - limit?: InputMaybe - orderBy?: InputMaybe - orderDirection?: InputMaybe - timestamp?: InputMaybe - where?: InputMaybe -} + after?: InputMaybe; + before?: InputMaybe; + limit?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + timestamp?: InputMaybe; + where?: InputMaybe; +}; + export type QueryItemArgs = { - id: Scalars['String']['input'] - timestamp?: InputMaybe -} + id: Scalars['String']['input']; + timestamp?: InputMaybe; +}; + export type QueryItemRolesArgs = { - id: Scalars['String']['input'] - timestamp?: InputMaybe -} + id: Scalars['String']['input']; + timestamp?: InputMaybe; +}; + export type QueryItemRolessArgs = { - after?: InputMaybe - before?: InputMaybe - limit?: InputMaybe - orderBy?: InputMaybe - orderDirection?: InputMaybe - timestamp?: InputMaybe - where?: InputMaybe -} + after?: InputMaybe; + before?: InputMaybe; + limit?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + timestamp?: InputMaybe; + where?: InputMaybe; +}; + export type QueryItemsArgs = { - after?: InputMaybe - before?: InputMaybe - limit?: InputMaybe - orderBy?: InputMaybe - orderDirection?: InputMaybe - timestamp?: InputMaybe - where?: InputMaybe -} + after?: InputMaybe; + before?: InputMaybe; + limit?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + timestamp?: InputMaybe; + where?: InputMaybe; +}; + export type QueryMessageArgs = { - id: Scalars['String']['input'] - timestamp?: InputMaybe -} + id: Scalars['String']['input']; + timestamp?: InputMaybe; +}; + export type QueryMessagesArgs = { - after?: InputMaybe - before?: InputMaybe - limit?: InputMaybe - orderBy?: InputMaybe - orderDirection?: InputMaybe - timestamp?: InputMaybe - where?: InputMaybe -} + after?: InputMaybe; + before?: InputMaybe; + limit?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + timestamp?: InputMaybe; + where?: InputMaybe; +}; + export type QueryPostArgs = { - id: Scalars['String']['input'] - timestamp?: InputMaybe -} + id: Scalars['String']['input']; + timestamp?: InputMaybe; +}; + export type QueryPostsArgs = { - after?: InputMaybe - before?: InputMaybe - limit?: InputMaybe - orderBy?: InputMaybe - orderDirection?: InputMaybe - timestamp?: InputMaybe - where?: InputMaybe -} + after?: InputMaybe; + before?: InputMaybe; + limit?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + timestamp?: InputMaybe; + where?: InputMaybe; +}; + export type QueryTxnArgs = { - id: Scalars['String']['input'] - timestamp?: InputMaybe -} + id: Scalars['String']['input']; + timestamp?: InputMaybe; +}; + export type QueryTxnsArgs = { - after?: InputMaybe - before?: InputMaybe - limit?: InputMaybe - orderBy?: InputMaybe - orderDirection?: InputMaybe - timestamp?: InputMaybe - where?: InputMaybe -} + after?: InputMaybe; + before?: InputMaybe; + limit?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + timestamp?: InputMaybe; + where?: InputMaybe; +}; + export type QueryUserArgs = { - id: Scalars['BigInt']['input'] - timestamp?: InputMaybe -} + id: Scalars['BigInt']['input']; + timestamp?: InputMaybe; +}; + export type QueryUsersArgs = { - after?: InputMaybe - before?: InputMaybe - limit?: InputMaybe - orderBy?: InputMaybe - orderDirection?: InputMaybe - timestamp?: InputMaybe - where?: InputMaybe -} + after?: InputMaybe; + before?: InputMaybe; + limit?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + timestamp?: InputMaybe; + where?: InputMaybe; +}; export type Txn = { - __typename?: 'Txn' - id: Scalars['String']['output'] -} + __typename?: 'Txn'; + id: Scalars['String']['output']; +}; export type TxnFilter = { - id?: InputMaybe - id_gt?: InputMaybe - id_gte?: InputMaybe - id_in?: InputMaybe>> - id_lt?: InputMaybe - id_lte?: InputMaybe - id_not?: InputMaybe - id_not_in?: InputMaybe>> -} + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>>; +}; export type TxnPage = { - __typename?: 'TxnPage' - items?: Maybe> - pageInfo?: Maybe -} + __typename?: 'TxnPage'; + items?: Maybe>; + pageInfo?: Maybe; +}; export type User = { - __typename?: 'User' - from: Scalars['String']['output'] - id: Scalars['BigInt']['output'] - recovery: Scalars['String']['output'] - to: Scalars['String']['output'] - userId: Scalars['BigInt']['output'] -} + __typename?: 'User'; + from: Scalars['String']['output']; + id: Scalars['BigInt']['output']; + recovery: Scalars['String']['output']; + to: Scalars['String']['output']; + userId: Scalars['BigInt']['output']; +}; export type UserFilter = { - from?: InputMaybe - from_gt?: InputMaybe - from_gte?: InputMaybe - from_in?: InputMaybe>> - from_lt?: InputMaybe - from_lte?: InputMaybe - from_not?: InputMaybe - from_not_in?: InputMaybe>> - id?: InputMaybe - id_gt?: InputMaybe - id_gte?: InputMaybe - id_in?: InputMaybe>> - id_lt?: InputMaybe - id_lte?: InputMaybe - id_not?: InputMaybe - id_not_in?: InputMaybe>> - recovery?: InputMaybe - recovery_gt?: InputMaybe - recovery_gte?: InputMaybe - recovery_in?: InputMaybe>> - recovery_lt?: InputMaybe - recovery_lte?: InputMaybe - recovery_not?: InputMaybe - recovery_not_in?: InputMaybe>> - to?: InputMaybe - to_gt?: InputMaybe - to_gte?: InputMaybe - to_in?: InputMaybe>> - to_lt?: InputMaybe - to_lte?: InputMaybe - to_not?: InputMaybe - to_not_in?: InputMaybe>> - userId?: InputMaybe - userId_gt?: InputMaybe - userId_gte?: InputMaybe - userId_in?: InputMaybe>> - userId_lt?: InputMaybe - userId_lte?: InputMaybe - userId_not?: InputMaybe - userId_not_in?: InputMaybe>> -} + from?: InputMaybe; + from_gt?: InputMaybe; + from_gte?: InputMaybe; + from_in?: InputMaybe>>; + from_lt?: InputMaybe; + from_lte?: InputMaybe; + from_not?: InputMaybe; + from_not_in?: InputMaybe>>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>>; + recovery?: InputMaybe; + recovery_gt?: InputMaybe; + recovery_gte?: InputMaybe; + recovery_in?: InputMaybe>>; + recovery_lt?: InputMaybe; + recovery_lte?: InputMaybe; + recovery_not?: InputMaybe; + recovery_not_in?: InputMaybe>>; + to?: InputMaybe; + to_gt?: InputMaybe; + to_gte?: InputMaybe; + to_in?: InputMaybe>>; + to_lt?: InputMaybe; + to_lte?: InputMaybe; + to_not?: InputMaybe; + to_not_in?: InputMaybe>>; + userId?: InputMaybe; + userId_gt?: InputMaybe; + userId_gte?: InputMaybe; + userId_in?: InputMaybe>>; + userId_lt?: InputMaybe; + userId_lte?: InputMaybe; + userId_not?: InputMaybe; + userId_not_in?: InputMaybe>>; +}; export type UserPage = { - __typename?: 'UserPage' - items?: Maybe> - pageInfo?: Maybe -} + __typename?: 'UserPage'; + items?: Maybe>; + pageInfo?: Maybe; +}; -export type AllAddsQueryVariables = Exact<{ [key: string]: never }> - -export type AllAddsQuery = { - __typename?: 'Query' - addss?: { - __typename?: 'AddsPage' - items?: Array<{ - __typename?: 'Adds' - addedById: any - removed?: boolean | null - channelId: string - item: { - __typename?: 'Item' - id: string - timestamp: any - createdById: any - uri: string - } - channel: { - __typename?: 'Channel' - name: string - adds?: { - __typename?: 'AddsPage' - items?: Array<{ __typename?: 'Adds'; itemId: string }> | null - } | null - } - }> | null - } | null -} +export type AllAddsQueryVariables = Exact<{ [key: string]: never; }>; -export type AllChannelsQueryVariables = Exact<{ [key: string]: never }> - -export type AllChannelsQuery = { - __typename?: 'Query' - channels?: { - __typename?: 'ChannelPage' - items?: Array<{ - __typename?: 'Channel' - id: string - timestamp: any - createdById: any - uri: string - name: string - description: string - roles?: { - __typename?: 'ChannelRolesPage' - items?: Array<{ - __typename?: 'ChannelRoles' - timestamp: any - rid: any - role: any - }> | null - } | null - }> | null - } | null -} -export type AllItemsQueryVariables = Exact<{ [key: string]: never }> +export type AllAddsQuery = { __typename?: 'Query', addss?: { __typename?: 'AddsPage', items?: Array<{ __typename?: 'Adds', addedById: any, removed?: boolean | null, channelId: string, item: { __typename?: 'Item', id: string, timestamp: any, createdById: any, uri: string }, channel: { __typename?: 'Channel', name: string, adds?: { __typename?: 'AddsPage', items?: Array<{ __typename?: 'Adds', itemId: string }> | null } | null } }> | null } | null }; -export type AllItemsQuery = { - __typename?: 'Query' - items?: { - __typename?: 'ItemPage' - items?: Array<{ __typename?: 'Item'; id: string }> | null - } | null -} +export type AllChannelsQueryVariables = Exact<{ [key: string]: never; }>; -export type AllUsersQueryVariables = Exact<{ [key: string]: never }> -export type AllUsersQuery = { - __typename?: 'Query' - users?: { - __typename?: 'UserPage' - items?: Array<{ __typename?: 'User'; id: any }> | null - } | null -} +export type AllChannelsQuery = { __typename?: 'Query', channels?: { __typename?: 'ChannelPage', items?: Array<{ __typename?: 'Channel', id: string, timestamp: any, createdById: any, uri: string, name: string, description: string, roles?: { __typename?: 'ChannelRolesPage', items?: Array<{ __typename?: 'ChannelRoles', timestamp: any, rid: any, role: any }> | null } | null }> | null } | null }; + +export type AllItemsQueryVariables = Exact<{ [key: string]: never; }>; + + +export type AllItemsQuery = { __typename?: 'Query', items?: { __typename?: 'ItemPage', items?: Array<{ __typename?: 'Item', id: string }> | null } | null }; + +export type AllUsersQueryVariables = Exact<{ [key: string]: never; }>; + + +export type AllUsersQuery = { __typename?: 'Query', users?: { __typename?: 'UserPage', items?: Array<{ __typename?: 'User', id: any }> | null } | null }; export type ChannelWithIdQueryVariables = Exact<{ - id: Scalars['String']['input'] -}> - -export type ChannelWithIdQuery = { - __typename?: 'Query' - channel?: { - __typename?: 'Channel' - id: string - timestamp: any - createdById: any - uri: string - name: string - description: string - roles?: { - __typename?: 'ChannelRolesPage' - items?: Array<{ - __typename?: 'ChannelRoles' - timestamp: any - rid: any - role: any - }> | null - } | null - adds?: { - __typename?: 'AddsPage' - items?: Array<{ - __typename?: 'Adds' - timestamp: any - channelId: string - itemId: string - addedById: any - removed?: boolean | null - item: { - __typename?: 'Item' - id: string - uri: string - timestamp: any - createdById: any - } - channel: { - __typename?: 'Channel' - name: string - adds?: { - __typename?: 'AddsPage' - items?: Array<{ __typename?: 'Adds'; itemId: string }> | null - } | null - } - }> | null - } | null - } | null -} + id: Scalars['String']['input']; +}>; + + +export type ChannelWithIdQuery = { __typename?: 'Query', channel?: { __typename?: 'Channel', id: string, timestamp: any, createdById: any, uri: string, name: string, description: string, roles?: { __typename?: 'ChannelRolesPage', items?: Array<{ __typename?: 'ChannelRoles', timestamp: any, rid: any, role: any }> | null } | null, adds?: { __typename?: 'AddsPage', items?: Array<{ __typename?: 'Adds', timestamp: any, channelId: string, itemId: string, addedById: any, removed?: boolean | null, item: { __typename?: 'Item', id: string, uri: string, timestamp: any, createdById: any }, channel: { __typename?: 'Channel', name: string, adds?: { __typename?: 'AddsPage', items?: Array<{ __typename?: 'Adds', itemId: string }> | null } | null } }> | null } | null } | null }; export type ChannelsItemsWithUserQueryVariables = Exact<{ - userId: Scalars['BigInt']['input'] -}> - -export type ChannelsItemsWithUserQuery = { - __typename?: 'Query' - channels?: { - __typename?: 'ChannelPage' - items?: Array<{ - __typename?: 'Channel' - id: string - name: string - description: string - createdById: any - adds?: { - __typename?: 'AddsPage' - items?: Array<{ - __typename?: 'Adds' - timestamp: any - removed?: boolean | null - item: { __typename?: 'Item'; uri: string } - }> | null - } | null - }> | null - } | null - items?: { - __typename?: 'ItemPage' - items?: Array<{ __typename?: 'Item'; timestamp: any; uri: string }> | null - } | null -} + userId: Scalars['BigInt']['input']; +}>; + + +export type ChannelsItemsWithUserQuery = { __typename?: 'Query', channels?: { __typename?: 'ChannelPage', items?: Array<{ __typename?: 'Channel', id: string, name: string, description: string, createdById: any, adds?: { __typename?: 'AddsPage', items?: Array<{ __typename?: 'Adds', timestamp: any, removed?: boolean | null, item: { __typename?: 'Item', uri: string } }> | null } | null }> | null } | null, items?: { __typename?: 'ItemPage', items?: Array<{ __typename?: 'Item', timestamp: any, uri: string }> | null } | null }; export type ItemPageQueryVariables = Exact<{ - id: Scalars['String']['input'] -}> - -export type ItemPageQuery = { - __typename?: 'Query' - adds?: { - __typename?: 'Adds' - addedById: any - timestamp: any - itemId: string - channelId: string - channel: { __typename?: 'Channel'; name: string } - item: { __typename?: 'Item'; uri: string; createdById: any } - } | null -} + id: Scalars['String']['input']; +}>; + + +export type ItemPageQuery = { __typename?: 'Query', adds?: { __typename?: 'Adds', addedById: any, timestamp: any, itemId: string, channelId: string, channel: { __typename?: 'Channel', name: string }, item: { __typename?: 'Item', uri: string, createdById: any } } | null }; export type ItemWithIdQueryVariables = Exact<{ - id: Scalars['String']['input'] -}> - -export type ItemWithIdQuery = { - __typename?: 'Query' - item?: { - __typename?: 'Item' - id: string - timestamp: any - createdById: any - uri: string - } | null -} + id: Scalars['String']['input']; +}>; + + +export type ItemWithIdQuery = { __typename?: 'Query', item?: { __typename?: 'Item', id: string, timestamp: any, createdById: any, uri: string } | null }; export type TxnHashQueryVariables = Exact<{ - hash: Scalars['String']['input'] -}> + hash: Scalars['String']['input']; +}>; -export type TxnHashQuery = { - __typename?: 'Query' - txn?: { __typename?: 'Txn'; id: string } | null -} + +export type TxnHashQuery = { __typename?: 'Query', txn?: { __typename?: 'Txn', id: string } | null }; export type UserIdQueryVariables = Exact<{ - custodyAddress: Scalars['String']['input'] -}> - -export type UserIdQuery = { - __typename?: 'Query' - users?: { - __typename?: 'UserPage' - items?: Array<{ - __typename?: 'User' - id: any - userId: any - to: string - recovery: string - from: string - }> | null - } | null -} + custodyAddress: Scalars['String']['input']; +}>; + + +export type UserIdQuery = { __typename?: 'Query', users?: { __typename?: 'UserPage', items?: Array<{ __typename?: 'User', id: any, userId: any, to: string, recovery: string, from: string }> | null } | null }; + export const AllAddsDocument = gql` query allAdds { @@ -1065,7 +916,7 @@ export const AllAddsDocument = gql` } } } - ` + `; export const AllChannelsDocument = gql` query allChannels { channels(orderBy: "timestamp", orderDirection: "desc") { @@ -1086,7 +937,7 @@ export const AllChannelsDocument = gql` } } } - ` + `; export const AllItemsDocument = gql` query allItems { items(orderDirection: "desc", orderBy: "timestamp") { @@ -1095,7 +946,7 @@ export const AllItemsDocument = gql` } } } - ` + `; export const AllUsersDocument = gql` query allUsers { users(orderDirection: "desc") { @@ -1104,7 +955,7 @@ export const AllUsersDocument = gql` } } } - ` + `; export const ChannelWithIdDocument = gql` query channelWithId($id: String!) { channel(id: $id) { @@ -1146,7 +997,7 @@ export const ChannelWithIdDocument = gql` } } } - ` + `; export const ChannelsItemsWithUserDocument = gql` query channelsItemsWithUser($userId: BigInt!) { channels( @@ -1181,7 +1032,7 @@ export const ChannelsItemsWithUserDocument = gql` } } } - ` + `; export const ItemPageDocument = gql` query itemPage($id: String!) { adds(id: $id) { @@ -1198,7 +1049,7 @@ export const ItemPageDocument = gql` } } } - ` + `; export const ItemWithIdDocument = gql` query itemWithId($id: String!) { item(id: $id) { @@ -1208,14 +1059,14 @@ export const ItemWithIdDocument = gql` uri } } - ` + `; export const TxnHashDocument = gql` query txnHash($hash: String!) { txn(id: $hash) { id } } - ` + `; export const UserIdDocument = gql` query UserId($custodyAddress: String!) { users(where: {to: $custodyAddress}) { @@ -1228,166 +1079,45 @@ export const UserIdDocument = gql` } } } - ` - -export type SdkFunctionWrapper = ( - action: (requestHeaders?: Record) => Promise, - operationName: string, - operationType?: string, -) => Promise - -const defaultWrapper: SdkFunctionWrapper = ( - action, - _operationName, - _operationType, -) => action() - -export function getSdk( - client: GraphQLClient, - withWrapper: SdkFunctionWrapper = defaultWrapper, -) { + `; + +export type SdkFunctionWrapper = (action: (requestHeaders?:Record) => Promise, operationName: string, operationType?: string) => Promise; + + +const defaultWrapper: SdkFunctionWrapper = (action, _operationName, _operationType) => action(); + +export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) { return { - allAdds( - variables?: AllAddsQueryVariables, - requestHeaders?: GraphQLClientRequestHeaders, - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request(AllAddsDocument, variables, { - ...requestHeaders, - ...wrappedRequestHeaders, - }), - 'allAdds', - 'query', - ) + allAdds(variables?: AllAddsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(AllAddsDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'allAdds', 'query'); }, - allChannels( - variables?: AllChannelsQueryVariables, - requestHeaders?: GraphQLClientRequestHeaders, - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request(AllChannelsDocument, variables, { - ...requestHeaders, - ...wrappedRequestHeaders, - }), - 'allChannels', - 'query', - ) + allChannels(variables?: AllChannelsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(AllChannelsDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'allChannels', 'query'); }, - allItems( - variables?: AllItemsQueryVariables, - requestHeaders?: GraphQLClientRequestHeaders, - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request(AllItemsDocument, variables, { - ...requestHeaders, - ...wrappedRequestHeaders, - }), - 'allItems', - 'query', - ) + allItems(variables?: AllItemsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(AllItemsDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'allItems', 'query'); }, - allUsers( - variables?: AllUsersQueryVariables, - requestHeaders?: GraphQLClientRequestHeaders, - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request(AllUsersDocument, variables, { - ...requestHeaders, - ...wrappedRequestHeaders, - }), - 'allUsers', - 'query', - ) + allUsers(variables?: AllUsersQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(AllUsersDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'allUsers', 'query'); }, - channelWithId( - variables: ChannelWithIdQueryVariables, - requestHeaders?: GraphQLClientRequestHeaders, - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request(ChannelWithIdDocument, variables, { - ...requestHeaders, - ...wrappedRequestHeaders, - }), - 'channelWithId', - 'query', - ) + channelWithId(variables: ChannelWithIdQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(ChannelWithIdDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'channelWithId', 'query'); }, - channelsItemsWithUser( - variables: ChannelsItemsWithUserQueryVariables, - requestHeaders?: GraphQLClientRequestHeaders, - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request( - ChannelsItemsWithUserDocument, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'channelsItemsWithUser', - 'query', - ) + channelsItemsWithUser(variables: ChannelsItemsWithUserQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(ChannelsItemsWithUserDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'channelsItemsWithUser', 'query'); }, - itemPage( - variables: ItemPageQueryVariables, - requestHeaders?: GraphQLClientRequestHeaders, - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request(ItemPageDocument, variables, { - ...requestHeaders, - ...wrappedRequestHeaders, - }), - 'itemPage', - 'query', - ) + itemPage(variables: ItemPageQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(ItemPageDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'itemPage', 'query'); }, - itemWithId( - variables: ItemWithIdQueryVariables, - requestHeaders?: GraphQLClientRequestHeaders, - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request(ItemWithIdDocument, variables, { - ...requestHeaders, - ...wrappedRequestHeaders, - }), - 'itemWithId', - 'query', - ) + itemWithId(variables: ItemWithIdQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(ItemWithIdDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'itemWithId', 'query'); }, - txnHash( - variables: TxnHashQueryVariables, - requestHeaders?: GraphQLClientRequestHeaders, - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request(TxnHashDocument, variables, { - ...requestHeaders, - ...wrappedRequestHeaders, - }), - 'txnHash', - 'query', - ) + txnHash(variables: TxnHashQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(TxnHashDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'txnHash', 'query'); }, - UserId( - variables: UserIdQueryVariables, - requestHeaders?: GraphQLClientRequestHeaders, - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request(UserIdDocument, variables, { - ...requestHeaders, - ...wrappedRequestHeaders, - }), - 'UserId', - 'query', - ) - }, - } + UserId(variables: UserIdQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(UserIdDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UserId', 'query'); + } + }; } -export type Sdk = ReturnType +export type Sdk = ReturnType; \ No newline at end of file From cfb06a177157ed8517dadbd313b7d6e825959a42 Mon Sep 17 00:00:00 2001 From: jawndiego Date: Thu, 15 Feb 2024 21:51:43 -0500 Subject: [PATCH 5/6] generated --- apps/site/gql/sdk.generated.ts | 233 ++++++++++++++++++++++++++++++++- 1 file changed, 232 insertions(+), 1 deletion(-) diff --git a/apps/site/gql/sdk.generated.ts b/apps/site/gql/sdk.generated.ts index 0914d45f1..6bee4dbaa 100644 --- a/apps/site/gql/sdk.generated.ts +++ b/apps/site/gql/sdk.generated.ts @@ -147,6 +147,48 @@ export type ChannelRolesArgs = { timestamp?: InputMaybe; }; +export type ChannelCounter = { + __typename?: 'ChannelCounter'; + counter: Scalars['BigInt']['output']; + id: Scalars['String']['output']; + lastUpdated: Scalars['BigInt']['output']; +}; + +export type ChannelCounterFilter = { + counter?: InputMaybe; + counter_gt?: InputMaybe; + counter_gte?: InputMaybe; + counter_in?: InputMaybe>>; + counter_lt?: InputMaybe; + counter_lte?: InputMaybe; + counter_not?: InputMaybe; + counter_not_in?: InputMaybe>>; + id?: InputMaybe; + id_contains?: InputMaybe; + id_ends_with?: InputMaybe; + id_in?: InputMaybe>>; + id_not?: InputMaybe; + id_not_contains?: InputMaybe; + id_not_ends_with?: InputMaybe; + id_not_in?: InputMaybe>>; + id_not_starts_with?: InputMaybe; + id_starts_with?: InputMaybe; + lastUpdated?: InputMaybe; + lastUpdated_gt?: InputMaybe; + lastUpdated_gte?: InputMaybe; + lastUpdated_in?: InputMaybe>>; + lastUpdated_lt?: InputMaybe; + lastUpdated_lte?: InputMaybe; + lastUpdated_not?: InputMaybe; + lastUpdated_not_in?: InputMaybe>>; +}; + +export type ChannelCounterPage = { + __typename?: 'ChannelCounterPage'; + items?: Maybe>; + pageInfo?: Maybe; +}; + export type ChannelFilter = { createdById?: InputMaybe; createdById_gt?: InputMaybe; @@ -307,6 +349,48 @@ export type ItemAddsArgs = { timestamp?: InputMaybe; }; +export type ItemCounter = { + __typename?: 'ItemCounter'; + counter: Scalars['BigInt']['output']; + id: Scalars['String']['output']; + lastUpdated: Scalars['BigInt']['output']; +}; + +export type ItemCounterFilter = { + counter?: InputMaybe; + counter_gt?: InputMaybe; + counter_gte?: InputMaybe; + counter_in?: InputMaybe>>; + counter_lt?: InputMaybe; + counter_lte?: InputMaybe; + counter_not?: InputMaybe; + counter_not_in?: InputMaybe>>; + id?: InputMaybe; + id_contains?: InputMaybe; + id_ends_with?: InputMaybe; + id_in?: InputMaybe>>; + id_not?: InputMaybe; + id_not_contains?: InputMaybe; + id_not_ends_with?: InputMaybe; + id_not_in?: InputMaybe>>; + id_not_starts_with?: InputMaybe; + id_starts_with?: InputMaybe; + lastUpdated?: InputMaybe; + lastUpdated_gt?: InputMaybe; + lastUpdated_gte?: InputMaybe; + lastUpdated_in?: InputMaybe>>; + lastUpdated_lt?: InputMaybe; + lastUpdated_lte?: InputMaybe; + lastUpdated_not?: InputMaybe; + lastUpdated_not_in?: InputMaybe>>; +}; + +export type ItemCounterPage = { + __typename?: 'ItemCounterPage'; + items?: Maybe>; + pageInfo?: Maybe; +}; + export type ItemFilter = { createdById?: InputMaybe; createdById_gt?: InputMaybe; @@ -421,6 +505,7 @@ export type Message = { id: Scalars['String']['output']; msgBody: Scalars['String']['output']; msgType: Scalars['BigInt']['output']; + parentPostId: Scalars['String']['output']; rid: Scalars['BigInt']['output']; timestamp: Scalars['BigInt']['output']; }; @@ -452,6 +537,16 @@ export type MessageFilter = { msgType_lte?: InputMaybe; msgType_not?: InputMaybe; msgType_not_in?: InputMaybe>>; + parentPostId?: InputMaybe; + parentPostId_contains?: InputMaybe; + parentPostId_ends_with?: InputMaybe; + parentPostId_in?: InputMaybe>>; + parentPostId_not?: InputMaybe; + parentPostId_not_contains?: InputMaybe; + parentPostId_not_ends_with?: InputMaybe; + parentPostId_not_in?: InputMaybe>>; + parentPostId_not_starts_with?: InputMaybe; + parentPostId_starts_with?: InputMaybe; rid?: InputMaybe; rid_gt?: InputMaybe; rid_gte?: InputMaybe; @@ -579,10 +674,14 @@ export type Query = { adds?: Maybe; addss?: Maybe; channel?: Maybe; + channelCounter?: Maybe; + channelCounters?: Maybe; channelRoles?: Maybe; channelRoless?: Maybe; channels?: Maybe; item?: Maybe; + itemCounter?: Maybe; + itemCounters?: Maybe; itemRoles?: Maybe; itemRoless?: Maybe; items?: Maybe; @@ -593,6 +692,8 @@ export type Query = { txn?: Maybe; txns?: Maybe; user?: Maybe; + userCounter?: Maybe; + userCounters?: Maybe; users?: Maybe; }; @@ -620,6 +721,23 @@ export type QueryChannelArgs = { }; +export type QueryChannelCounterArgs = { + id: Scalars['String']['input']; + timestamp?: InputMaybe; +}; + + +export type QueryChannelCountersArgs = { + after?: InputMaybe; + before?: InputMaybe; + limit?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + timestamp?: InputMaybe; + where?: InputMaybe; +}; + + export type QueryChannelRolesArgs = { id: Scalars['String']['input']; timestamp?: InputMaybe; @@ -654,6 +772,23 @@ export type QueryItemArgs = { }; +export type QueryItemCounterArgs = { + id: Scalars['String']['input']; + timestamp?: InputMaybe; +}; + + +export type QueryItemCountersArgs = { + after?: InputMaybe; + before?: InputMaybe; + limit?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + timestamp?: InputMaybe; + where?: InputMaybe; +}; + + export type QueryItemRolesArgs = { id: Scalars['String']['input']; timestamp?: InputMaybe; @@ -739,6 +874,23 @@ export type QueryUserArgs = { }; +export type QueryUserCounterArgs = { + id: Scalars['String']['input']; + timestamp?: InputMaybe; +}; + + +export type QueryUserCountersArgs = { + after?: InputMaybe; + before?: InputMaybe; + limit?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + timestamp?: InputMaybe; + where?: InputMaybe; +}; + + export type QueryUsersArgs = { after?: InputMaybe; before?: InputMaybe; @@ -776,10 +928,53 @@ export type User = { from: Scalars['String']['output']; id: Scalars['BigInt']['output']; recovery: Scalars['String']['output']; + timestamp: Scalars['BigInt']['output']; to: Scalars['String']['output']; userId: Scalars['BigInt']['output']; }; +export type UserCounter = { + __typename?: 'UserCounter'; + counter: Scalars['BigInt']['output']; + id: Scalars['String']['output']; + lastUpdated: Scalars['BigInt']['output']; +}; + +export type UserCounterFilter = { + counter?: InputMaybe; + counter_gt?: InputMaybe; + counter_gte?: InputMaybe; + counter_in?: InputMaybe>>; + counter_lt?: InputMaybe; + counter_lte?: InputMaybe; + counter_not?: InputMaybe; + counter_not_in?: InputMaybe>>; + id?: InputMaybe; + id_contains?: InputMaybe; + id_ends_with?: InputMaybe; + id_in?: InputMaybe>>; + id_not?: InputMaybe; + id_not_contains?: InputMaybe; + id_not_ends_with?: InputMaybe; + id_not_in?: InputMaybe>>; + id_not_starts_with?: InputMaybe; + id_starts_with?: InputMaybe; + lastUpdated?: InputMaybe; + lastUpdated_gt?: InputMaybe; + lastUpdated_gte?: InputMaybe; + lastUpdated_in?: InputMaybe>>; + lastUpdated_lt?: InputMaybe; + lastUpdated_lte?: InputMaybe; + lastUpdated_not?: InputMaybe; + lastUpdated_not_in?: InputMaybe>>; +}; + +export type UserCounterPage = { + __typename?: 'UserCounterPage'; + items?: Maybe>; + pageInfo?: Maybe; +}; + export type UserFilter = { from?: InputMaybe; from_gt?: InputMaybe; @@ -805,6 +1000,14 @@ export type UserFilter = { recovery_lte?: InputMaybe; recovery_not?: InputMaybe; recovery_not_in?: InputMaybe>>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>>; to?: InputMaybe; to_gt?: InputMaybe; to_gte?: InputMaybe; @@ -877,6 +1080,11 @@ export type ItemWithIdQueryVariables = Exact<{ export type ItemWithIdQuery = { __typename?: 'Query', item?: { __typename?: 'Item', id: string, timestamp: any, createdById: any, uri: string } | null }; +export type MarqueeDataQueryVariables = Exact<{ [key: string]: never; }>; + + +export type MarqueeDataQuery = { __typename?: 'Query', userCounters?: { __typename?: 'UserCounterPage', items?: Array<{ __typename?: 'UserCounter', counter: any }> | null } | null, itemCounters?: { __typename?: 'ItemCounterPage', items?: Array<{ __typename?: 'ItemCounter', counter: any }> | null } | null, channelCounters?: { __typename?: 'ChannelCounterPage', items?: Array<{ __typename?: 'ChannelCounter', counter: any }> | null } | null }; + export type TxnHashQueryVariables = Exact<{ hash: Scalars['String']['input']; }>; @@ -965,7 +1173,7 @@ export const ChannelWithIdDocument = gql` uri name description - roles(orderBy: "timestamp", orderDirection: "desc") { + roles(orderBy: "role", orderDirection: "desc") { items { timestamp rid @@ -1025,6 +1233,7 @@ export const ChannelsItemsWithUserDocument = gql` where: {createdById: $userId} orderBy: "timestamp" orderDirection: "desc" + limit: 100 ) { items { timestamp @@ -1060,6 +1269,25 @@ export const ItemWithIdDocument = gql` } } `; +export const MarqueeDataDocument = gql` + query marqueeData { + userCounters { + items { + counter + } + } + itemCounters { + items { + counter + } + } + channelCounters { + items { + counter + } + } +} + `; export const TxnHashDocument = gql` query txnHash($hash: String!) { txn(id: $hash) { @@ -1112,6 +1340,9 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = itemWithId(variables: ItemWithIdQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise { return withWrapper((wrappedRequestHeaders) => client.request(ItemWithIdDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'itemWithId', 'query'); }, + marqueeData(variables?: MarqueeDataQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(MarqueeDataDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'marqueeData', 'query'); + }, txnHash(variables: TxnHashQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise { return withWrapper((wrappedRequestHeaders) => client.request(TxnHashDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'txnHash', 'query'); }, From 8d8205be533b5b3f2527b15419f26fc5bfab5c37 Mon Sep 17 00:00:00 2001 From: jawndiego Date: Sun, 18 Feb 2024 16:43:27 -0500 Subject: [PATCH 6/6] page fix --- apps/site/app/channel/[id]/[index]/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/site/app/channel/[id]/[index]/page.tsx b/apps/site/app/channel/[id]/[index]/page.tsx index 0bcc4638c..5a12ab83b 100644 --- a/apps/site/app/channel/[id]/[index]/page.tsx +++ b/apps/site/app/channel/[id]/[index]/page.tsx @@ -124,7 +124,7 @@ export default async function ItemPage({