From 20f50368c92ed38119ece2da1c25d814b1db6689 Mon Sep 17 00:00:00 2001 From: Loewy Date: Fri, 1 May 2026 13:15:18 -0700 Subject: [PATCH] remove return url --- src/index.tsx | 11 +++-------- src/operations/payments.gql | 4 ++-- src/schema.gql | 4 +--- 3 files changed, 6 insertions(+), 13 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 5c9870e..88ff9ac 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -2457,10 +2457,6 @@ export type MutationCreateChallengeArgs = { startDate: Scalars["DateTime"]["input"]; }; -export type MutationCreateCustomerPortalSessionArgs = { - returnUrl?: InputMaybe; -}; - export type MutationCreateRuleSetArgs = { description?: InputMaybe; name: Scalars["String"]["input"]; @@ -4712,7 +4708,7 @@ export type CreateSubscriptionMutation = { }; export type CreateCustomerPortalSessionMutationVariables = Exact<{ - returnUrl?: InputMaybe; + [key: string]: never; }>; export type CreateCustomerPortalSessionMutation = { @@ -9612,8 +9608,8 @@ export type CreateSubscriptionMutationOptions = Apollo.BaseMutationOptions< CreateSubscriptionMutationVariables >; export const CreateCustomerPortalSessionDocument = gql` - mutation CreateCustomerPortalSession($returnUrl: String) { - createCustomerPortalSession(returnUrl: $returnUrl) { + mutation CreateCustomerPortalSession { + createCustomerPortalSession { portalUrl } } @@ -9636,7 +9632,6 @@ export type CreateCustomerPortalSessionMutationFn = Apollo.MutationFunction< * @example * const [createCustomerPortalSessionMutation, { data, loading, error }] = useCreateCustomerPortalSessionMutation({ * variables: { - * returnUrl: // value for 'returnUrl' * }, * }); */ diff --git a/src/operations/payments.gql b/src/operations/payments.gql index 1921323..09b087e 100644 --- a/src/operations/payments.gql +++ b/src/operations/payments.gql @@ -20,8 +20,8 @@ mutation CreateSubscription($priceId: String!) { } } -mutation CreateCustomerPortalSession($returnUrl: String) { - createCustomerPortalSession(returnUrl: $returnUrl) { +mutation CreateCustomerPortalSession { + createCustomerPortalSession { portalUrl } } diff --git a/src/schema.gql b/src/schema.gql index 553fd5c..b41a99e 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -1117,9 +1117,7 @@ type Mutation { ensureStripeCustomerExists: UserGQL! deleteUser: Boolean! createSubscription(priceId: String!): CreateSubscriptionResultGQL! - createCustomerPortalSession( - returnUrl: String = null - ): CreateCustomerPortalSessionResultGQL! + createCustomerPortalSession: CreateCustomerPortalSessionResultGQL! cancelSubscription: UserSubscriptionStatusGQL! grantManualEntitlement( userId: Int!