mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
feat(core): billing history pagination (#4787)
This commit is contained in:
@@ -359,6 +359,19 @@ query getWorkspaces {
|
||||
}`,
|
||||
};
|
||||
|
||||
export const getInvoicesCountQuery = {
|
||||
id: 'getInvoicesCountQuery' as const,
|
||||
operationName: 'getInvoicesCount',
|
||||
definitionName: 'currentUser',
|
||||
containsFile: false,
|
||||
query: `
|
||||
query getInvoicesCount {
|
||||
currentUser {
|
||||
invoiceCount
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
export const invoicesQuery = {
|
||||
id: 'invoicesQuery' as const,
|
||||
operationName: 'invoices',
|
||||
|
||||
5
packages/frontend/graphql/src/graphql/invoices-count.gql
Normal file
5
packages/frontend/graphql/src/graphql/invoices-count.gql
Normal file
@@ -0,0 +1,5 @@
|
||||
query getInvoicesCount {
|
||||
currentUser {
|
||||
invoiceCount
|
||||
}
|
||||
}
|
||||
@@ -359,6 +359,13 @@ export type GetWorkspacesQuery = {
|
||||
workspaces: Array<{ __typename?: 'WorkspaceType'; id: string }>;
|
||||
};
|
||||
|
||||
export type GetInvoicesCountQueryVariables = Exact<{ [key: string]: never }>;
|
||||
|
||||
export type GetInvoicesCountQuery = {
|
||||
__typename?: 'Query';
|
||||
currentUser: { __typename?: 'UserType'; invoiceCount: number } | null;
|
||||
};
|
||||
|
||||
export type InvoicesQueryVariables = Exact<{
|
||||
take: Scalars['Int']['input'];
|
||||
skip: Scalars['Int']['input'];
|
||||
@@ -693,6 +700,11 @@ export type Queries =
|
||||
variables: GetWorkspacesQueryVariables;
|
||||
response: GetWorkspacesQuery;
|
||||
}
|
||||
| {
|
||||
name: 'getInvoicesCountQuery';
|
||||
variables: GetInvoicesCountQueryVariables;
|
||||
response: GetInvoicesCountQuery;
|
||||
}
|
||||
| {
|
||||
name: 'invoicesQuery';
|
||||
variables: InvoicesQueryVariables;
|
||||
|
||||
Reference in New Issue
Block a user