feat(core): payment backend

This commit is contained in:
forehalo
2023-10-19 10:06:34 +08:00
parent 493b815b7b
commit df054ac7f6
18 changed files with 1260 additions and 8 deletions

View File

@@ -32,6 +32,14 @@ export interface Scalars {
Upload: { input: File; output: File };
}
export enum InvoiceStatus {
Draft = 'Draft',
Open = 'Open',
Paid = 'Paid',
Uncollectible = 'Uncollectible',
Void = 'Void',
}
export enum NewFeaturesKind {
EarlyAccess = 'EarlyAccess',
}
@@ -44,6 +52,29 @@ export enum Permission {
Write = 'Write',
}
export enum SubscriptionPlan {
Enterprise = 'Enterprise',
Free = 'Free',
Pro = 'Pro',
Team = 'Team',
}
export enum SubscriptionRecurring {
Monthly = 'Monthly',
Yearly = 'Yearly',
}
export enum SubscriptionStatus {
Active = 'Active',
Canceled = 'Canceled',
Incomplete = 'Incomplete',
IncompleteExpired = 'IncompleteExpired',
PastDue = 'PastDue',
Paused = 'Paused',
Trialing = 'Trialing',
Unpaid = 'Unpaid',
}
export interface UpdateWorkspaceInput {
id: Scalars['ID']['input'];
/** is Public workspace */
@@ -173,7 +204,7 @@ export type GetCurrentUserQuery = {
avatarUrl: string | null;
createdAt: string | null;
token: { __typename?: 'TokenType'; sessionToken: string | null };
};
} | null;
};
export type GetInviteInfoQueryVariables = Exact<{