Skip to content

Commit

Permalink
feat: PageSize enum
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarenaldi committed Nov 28, 2024
1 parent e05c249 commit 09700ac
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/graphql/src/enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
}
2 changes: 2 additions & 0 deletions packages/graphql/src/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<{
Expand All @@ -44,6 +45,7 @@ export const graphql = initGraphQLTada<{
Int: number;
LegacyProfileId: LegacyProfileId;
LegacyRefreshToken: CompactJwt;
PageSize: PageSize;
PostId: PostId;
RefreshToken: RefreshToken;
Signature: Signature;
Expand Down

0 comments on commit 09700ac

Please sign in to comment.