mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 05:14:54 +00:00
feat(core): add workspace billing (#9043)
This commit is contained in:
@@ -2014,6 +2014,29 @@ export type GetWorkspacePublicPagesQuery = {
|
||||
};
|
||||
};
|
||||
|
||||
export type GetWorkspaceSubscriptionQueryVariables = Exact<{
|
||||
workspaceId: Scalars['String']['input'];
|
||||
}>;
|
||||
|
||||
export type GetWorkspaceSubscriptionQuery = {
|
||||
__typename?: 'Query';
|
||||
workspace: {
|
||||
__typename?: 'WorkspaceType';
|
||||
subscription: {
|
||||
__typename?: 'SubscriptionType';
|
||||
id: string | null;
|
||||
status: SubscriptionStatus;
|
||||
plan: SubscriptionPlan;
|
||||
recurring: SubscriptionRecurring;
|
||||
start: string;
|
||||
end: string | null;
|
||||
nextBillAt: string | null;
|
||||
canceledAt: string | null;
|
||||
variant: SubscriptionVariant | null;
|
||||
} | null;
|
||||
};
|
||||
};
|
||||
|
||||
export type GetWorkspaceQueryVariables = Exact<{
|
||||
id: Scalars['String']['input'];
|
||||
}>;
|
||||
@@ -2627,6 +2650,31 @@ export type RevokeInviteLinkMutation = {
|
||||
revokeInviteLink: boolean;
|
||||
};
|
||||
|
||||
export type WorkspaceInvoicesQueryVariables = Exact<{
|
||||
take: Scalars['Int']['input'];
|
||||
skip: Scalars['Int']['input'];
|
||||
workspaceId: Scalars['String']['input'];
|
||||
}>;
|
||||
|
||||
export type WorkspaceInvoicesQuery = {
|
||||
__typename?: 'Query';
|
||||
workspace: {
|
||||
__typename?: 'WorkspaceType';
|
||||
invoiceCount: number;
|
||||
invoices: Array<{
|
||||
__typename?: 'InvoiceType';
|
||||
id: string | null;
|
||||
status: InvoiceStatus;
|
||||
currency: string;
|
||||
amount: number;
|
||||
reason: string;
|
||||
lastPaymentError: string | null;
|
||||
link: string | null;
|
||||
createdAt: string;
|
||||
}>;
|
||||
};
|
||||
};
|
||||
|
||||
export type WorkspaceQuotaQueryVariables = Exact<{
|
||||
id: Scalars['String']['input'];
|
||||
}>;
|
||||
@@ -2813,6 +2861,11 @@ export type Queries =
|
||||
variables: GetWorkspacePublicPagesQueryVariables;
|
||||
response: GetWorkspacePublicPagesQuery;
|
||||
}
|
||||
| {
|
||||
name: 'getWorkspaceSubscriptionQuery';
|
||||
variables: GetWorkspaceSubscriptionQueryVariables;
|
||||
response: GetWorkspaceSubscriptionQuery;
|
||||
}
|
||||
| {
|
||||
name: 'getWorkspaceQuery';
|
||||
variables: GetWorkspaceQueryVariables;
|
||||
@@ -2883,6 +2936,11 @@ export type Queries =
|
||||
variables: ListWorkspaceFeaturesQueryVariables;
|
||||
response: ListWorkspaceFeaturesQuery;
|
||||
}
|
||||
| {
|
||||
name: 'workspaceInvoicesQuery';
|
||||
variables: WorkspaceInvoicesQueryVariables;
|
||||
response: WorkspaceInvoicesQuery;
|
||||
}
|
||||
| {
|
||||
name: 'workspaceQuotaQuery';
|
||||
variables: WorkspaceQuotaQueryVariables;
|
||||
|
||||
Reference in New Issue
Block a user