mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
feat(core): pricing plans ai subscription ui (#6449)
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
mutation cancelSubscription($idempotencyKey: String!) {
|
||||
cancelSubscription(idempotencyKey: $idempotencyKey) {
|
||||
mutation cancelSubscription(
|
||||
$idempotencyKey: String!
|
||||
$plan: SubscriptionPlan = Pro
|
||||
) {
|
||||
cancelSubscription(idempotencyKey: $idempotencyKey, plan: $plan) {
|
||||
id
|
||||
status
|
||||
nextBillAt
|
||||
|
||||
@@ -96,8 +96,8 @@ export const cancelSubscriptionMutation = {
|
||||
definitionName: 'cancelSubscription',
|
||||
containsFile: false,
|
||||
query: `
|
||||
mutation cancelSubscription($idempotencyKey: String!) {
|
||||
cancelSubscription(idempotencyKey: $idempotencyKey) {
|
||||
mutation cancelSubscription($idempotencyKey: String!, $plan: SubscriptionPlan = Pro) {
|
||||
cancelSubscription(idempotencyKey: $idempotencyKey, plan: $plan) {
|
||||
id
|
||||
status
|
||||
nextBillAt
|
||||
@@ -614,8 +614,8 @@ export const resumeSubscriptionMutation = {
|
||||
definitionName: 'resumeSubscription',
|
||||
containsFile: false,
|
||||
query: `
|
||||
mutation resumeSubscription($idempotencyKey: String!) {
|
||||
resumeSubscription(idempotencyKey: $idempotencyKey) {
|
||||
mutation resumeSubscription($idempotencyKey: String!, $plan: SubscriptionPlan = Pro) {
|
||||
resumeSubscription(idempotencyKey: $idempotencyKey, plan: $plan) {
|
||||
id
|
||||
status
|
||||
nextBillAt
|
||||
@@ -768,10 +768,11 @@ export const updateSubscriptionMutation = {
|
||||
definitionName: 'updateSubscriptionRecurring',
|
||||
containsFile: false,
|
||||
query: `
|
||||
mutation updateSubscription($recurring: SubscriptionRecurring!, $idempotencyKey: String!) {
|
||||
mutation updateSubscription($idempotencyKey: String!, $plan: SubscriptionPlan = Pro, $recurring: SubscriptionRecurring!) {
|
||||
updateSubscriptionRecurring(
|
||||
recurring: $recurring
|
||||
idempotencyKey: $idempotencyKey
|
||||
plan: $plan
|
||||
recurring: $recurring
|
||||
) {
|
||||
id
|
||||
plan
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
mutation resumeSubscription($idempotencyKey: String!) {
|
||||
resumeSubscription(idempotencyKey: $idempotencyKey) {
|
||||
mutation resumeSubscription(
|
||||
$idempotencyKey: String!
|
||||
$plan: SubscriptionPlan = Pro
|
||||
) {
|
||||
resumeSubscription(idempotencyKey: $idempotencyKey, plan: $plan) {
|
||||
id
|
||||
status
|
||||
nextBillAt
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
mutation updateSubscription(
|
||||
$recurring: SubscriptionRecurring!
|
||||
$idempotencyKey: String!
|
||||
$plan: SubscriptionPlan = Pro
|
||||
$recurring: SubscriptionRecurring!
|
||||
) {
|
||||
updateSubscriptionRecurring(
|
||||
recurring: $recurring
|
||||
idempotencyKey: $idempotencyKey
|
||||
plan: $plan
|
||||
recurring: $recurring
|
||||
) {
|
||||
id
|
||||
plan
|
||||
|
||||
@@ -173,6 +173,7 @@ export type AllBlobSizesQuery = {
|
||||
|
||||
export type CancelSubscriptionMutationVariables = Exact<{
|
||||
idempotencyKey: Scalars['String']['input'];
|
||||
plan?: InputMaybe<SubscriptionPlan>;
|
||||
}>;
|
||||
|
||||
export type CancelSubscriptionMutation = {
|
||||
@@ -619,6 +620,7 @@ export type RemoveAvatarMutation = {
|
||||
|
||||
export type ResumeSubscriptionMutationVariables = Exact<{
|
||||
idempotencyKey: Scalars['String']['input'];
|
||||
plan?: InputMaybe<SubscriptionPlan>;
|
||||
}>;
|
||||
|
||||
export type ResumeSubscriptionMutation = {
|
||||
@@ -758,8 +760,9 @@ export type SubscriptionQuery = {
|
||||
};
|
||||
|
||||
export type UpdateSubscriptionMutationVariables = Exact<{
|
||||
recurring: SubscriptionRecurring;
|
||||
idempotencyKey: Scalars['String']['input'];
|
||||
plan?: InputMaybe<SubscriptionPlan>;
|
||||
recurring: SubscriptionRecurring;
|
||||
}>;
|
||||
|
||||
export type UpdateSubscriptionMutation = {
|
||||
|
||||
Reference in New Issue
Block a user