mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-23 13:29:02 +08:00
feat(core): impl billing settings (#4652)
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
mutation createCustomerPortal {
|
||||
createCustomerPortal
|
||||
}
|
||||
@@ -138,6 +138,17 @@ mutation checkout($recurring: SubscriptionRecurring!) {
|
||||
}`,
|
||||
};
|
||||
|
||||
export const createCustomerPortalMutation = {
|
||||
id: 'createCustomerPortalMutation' as const,
|
||||
operationName: 'createCustomerPortal',
|
||||
definitionName: 'createCustomerPortal',
|
||||
containsFile: false,
|
||||
query: `
|
||||
mutation createCustomerPortal {
|
||||
createCustomerPortal
|
||||
}`,
|
||||
};
|
||||
|
||||
export const createWorkspaceMutation = {
|
||||
id: 'createWorkspaceMutation' as const,
|
||||
operationName: 'createWorkspace',
|
||||
@@ -365,6 +376,7 @@ query invoices($take: Int!, $skip: Int!) {
|
||||
amount
|
||||
reason
|
||||
lastPaymentError
|
||||
link
|
||||
createdAt
|
||||
}
|
||||
}
|
||||
@@ -416,6 +428,23 @@ mutation removeAvatar {
|
||||
}`,
|
||||
};
|
||||
|
||||
export const resumeSubscriptionMutation = {
|
||||
id: 'resumeSubscriptionMutation' as const,
|
||||
operationName: 'resumeSubscription',
|
||||
definitionName: 'resumeSubscription',
|
||||
containsFile: false,
|
||||
query: `
|
||||
mutation resumeSubscription {
|
||||
resumeSubscription {
|
||||
id
|
||||
status
|
||||
nextBillAt
|
||||
start
|
||||
end
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
export const revokeMemberPermissionMutation = {
|
||||
id: 'revokeMemberPermissionMutation' as const,
|
||||
operationName: 'revokeMemberPermission',
|
||||
|
||||
@@ -9,6 +9,7 @@ query invoices($take: Int!, $skip: Int!) {
|
||||
amount
|
||||
reason
|
||||
lastPaymentError
|
||||
link
|
||||
createdAt
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
mutation resumeSubscription {
|
||||
resumeSubscription {
|
||||
id
|
||||
status
|
||||
nextBillAt
|
||||
start
|
||||
end
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user