diff --git a/packages/graphql/src/enums.ts b/packages/graphql/src/enums.ts index b11de3e7c..1549215a5 100644 --- a/packages/graphql/src/enums.ts +++ b/packages/graphql/src/enums.ts @@ -7,3 +7,11 @@ export enum Role { OnboardingUser = 'ONBOARDING_USER', Builder = 'BUILDER', } + +/** + * Enum for the different page sizes available. + */ +export enum PageSize { + Ten = 'TEN', + Fifty = 'FIFTY', +} diff --git a/packages/graphql/src/graphql.ts b/packages/graphql/src/graphql.ts index 509689693..6c237b296 100644 --- a/packages/graphql/src/graphql.ts +++ b/packages/graphql/src/graphql.ts @@ -23,6 +23,7 @@ import { never, } from '@lens-protocol/types'; import { type DocumentDecoration, type FragmentOf, initGraphQLTada } from 'gql.tada'; +import type { PageSize } from './enums'; import type { introspection } from './graphql-env'; export const graphql = initGraphQLTada<{ @@ -44,6 +45,7 @@ export const graphql = initGraphQLTada<{ Int: number; LegacyProfileId: LegacyProfileId; LegacyRefreshToken: CompactJwt; + PageSize: PageSize; PostId: PostId; RefreshToken: RefreshToken; Signature: Signature;