@bcrumbs.net/inbox 0.0.51 → 0.0.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/{cb9c022b3cf80e0f.svg → 2998ffe42c3436c0.svg} +43 -43
  2. package/{594c01a9720e0657.svg → 396ba1d86a9997b1.svg} +42 -42
  3. package/assets/ar/inbox.json +256 -246
  4. package/assets/en/inbox.json +258 -248
  5. package/index.cjs.d.ts +1 -1
  6. package/index.cjs.js +11726 -919
  7. package/index.esm.d.ts +1 -1
  8. package/index.esm.js +11727 -920
  9. package/package.json +4 -4
  10. package/src/app/ai/components/Crumby/index.d.ts +2 -0
  11. package/src/app/ai/components/playground/Thread.d.ts +5 -1
  12. package/src/app/ai/components/playground/ThreadWelcome.d.ts +4 -1
  13. package/src/app/ai/components/playground/TooltipIconButton.d.ts +1 -1
  14. package/src/app/ai/pages/AiPreferencesPrompts.d.ts +2 -0
  15. package/src/app/auth/pages/Login.d.ts +2 -12
  16. package/src/app/auth/pages/Register.d.ts +2 -13
  17. package/src/app/auth/redux/actions/registerAction.d.ts +1 -1
  18. package/src/app/auth/redux/auth.types.d.ts +1 -1
  19. package/src/app/billing/components/NotAccessible.d.ts +10 -0
  20. package/src/app/billing/components/Timeline.d.ts +20 -0
  21. package/src/app/billing/components/checkout/AddNewPaymentCard.d.ts +6 -0
  22. package/src/app/billing/components/checkout/CheckoutSummary.d.ts +20 -0
  23. package/src/app/billing/components/checkout/ExceedPaymentUpdateTriesModal.d.ts +8 -0
  24. package/src/app/billing/components/checkout/ExistingCardPayment.d.ts +10 -0
  25. package/src/app/billing/components/checkout/PaymentForm.d.ts +11 -0
  26. package/src/app/billing/components/checkout/PaymentFormExp.d.ts +9 -0
  27. package/src/app/billing/components/checkout/PaymentMethod.d.ts +8 -0
  28. package/src/app/billing/components/checkout/PaymentMethodCard.d.ts +9 -0
  29. package/src/app/billing/components/checkout/PaywithCredits.d.ts +9 -0
  30. package/src/app/billing/components/invoices/BCLogo.d.ts +5 -0
  31. package/src/app/billing/components/invoices/Invoice.d.ts +5 -0
  32. package/src/app/billing/components/planStyles.d.ts +9 -0
  33. package/src/app/billing/components/styles.d.ts +21 -0
  34. package/src/app/billing/components/subscription/PlanDetail.d.ts +11 -0
  35. package/src/app/billing/components/subscription/SubscriptionPausedWarning.d.ts +3 -0
  36. package/src/app/billing/components/transactions/TransactionHistoryTable.d.ts +15 -0
  37. package/src/app/billing/context/SubscriptionContext.d.ts +5 -0
  38. package/src/app/billing/hooks/useGetPaidToday.d.ts +9 -0
  39. package/src/app/billing/hooks/usePendingPayments.d.ts +51 -0
  40. package/src/app/billing/hooks/useSetupPayment.d.ts +15 -0
  41. package/src/app/billing/hooks/useSetupPaymentMethod.d.ts +12 -0
  42. package/src/app/billing/pages/checkout.d.ts +2 -0
  43. package/src/app/billing/pages/done.d.ts +1 -0
  44. package/src/app/billing/pages/invoice.d.ts +1 -0
  45. package/src/app/billing/pages/invoices.d.ts +2 -0
  46. package/src/app/billing/pages/payment.d.ts +1 -0
  47. package/src/app/billing/utils/getStripe.d.ts +3 -0
  48. package/src/app/billing/utils/openArticleModal.d.ts +1 -0
  49. package/src/app/billing/utils/paymentProvider.d.ts +3 -0
  50. package/src/app/billing/utils/stripeUtils.d.ts +2 -0
  51. package/src/app/broadcast/components/BroadcastAnalysisReciepientsHeader.d.ts +6 -1
  52. package/src/app/broadcast/components/BroadcastAnalysisReciepientsTable.d.ts +5 -1
  53. package/src/app/broadcast/components/BroadcastInfoHeader.d.ts +2 -1
  54. package/src/app/broadcast/components/BroadcastTargetingComplianceNotice.d.ts +2 -0
  55. package/src/app/broadcast/components/WorkspaceBroadcastAnalysisRecipients.d.ts +7 -0
  56. package/src/app/broadcast/hooks/useExportWorkspaceBroadcastDelivery.d.ts +6 -0
  57. package/src/app/broadcast/pages/WorkspaceBroadcastDeliveryReportPage.d.ts +2 -0
  58. package/src/app/broadcast/utils/helper.d.ts +4 -0
  59. package/src/app/dashboard/components/AgentCard.d.ts +11 -0
  60. package/src/app/dashboard/components/AgentPerformanceCard.d.ts +9 -0
  61. package/src/app/dashboard/components/AgentsCard.d.ts +9 -0
  62. package/src/app/dashboard/components/AgentsCardSkeleton.d.ts +2 -0
  63. package/src/app/dashboard/components/BroadcastAnalyticsCard.d.ts +10 -0
  64. package/src/app/dashboard/components/BroadcastCampaignProgressCard.d.ts +10 -0
  65. package/src/app/dashboard/components/BroadcastDashboard.d.ts +6 -0
  66. package/src/app/dashboard/components/BroadcastDashboardStatsCards.d.ts +14 -0
  67. package/src/app/dashboard/components/BroadcastRecipientsCard.d.ts +8 -0
  68. package/src/app/dashboard/components/BroadcastStatusDistributionCard.d.ts +6 -0
  69. package/src/app/dashboard/components/ConversationAnalyticsCard.d.ts +11 -0
  70. package/src/app/dashboard/components/DashboardSections.d.ts +24 -0
  71. package/src/app/dashboard/components/DashboardStatsCards.d.ts +10 -0
  72. package/src/app/dashboard/components/InboxDashboard.d.ts +10 -0
  73. package/src/app/dashboard/components/OpenedChatsCard.d.ts +8 -0
  74. package/src/app/dashboard/pages/DashboardNewPage.d.ts +2 -0
  75. package/src/app/dashboard/utils/buildBroadcastReportOverviewAnalytics.d.ts +17 -0
  76. package/src/app/dashboard/utils/buildRecipientsAnalytics.d.ts +12 -0
  77. package/src/app/dashboard/utils/dateHelpers.d.ts +7 -0
  78. package/src/app/generic/components/HeaderImageInput.d.ts +8 -0
  79. package/src/app/generic/components/PhoneNumberInput.d.ts +13 -0
  80. package/src/app/generic/components/TemplateParameterInputs.d.ts +2 -1
  81. package/src/app/generic/components/ToggleSetting.d.ts +3 -2
  82. package/src/app/generic/hooks/useGetProviderIcon.d.ts +2 -1
  83. package/src/app/inbox/components/Chat/ChatContent.d.ts +2 -1
  84. package/src/app/inbox/components/NewConvList/FilterDrawer.d.ts +18 -0
  85. package/src/app/inbox/components/NewConvList/HeaderSection.d.ts +4 -1
  86. package/src/app/inbox/components/NewConvList/index.d.ts +6 -2
  87. package/src/app/inbox/hooks/useConversationsPerodicFetch.d.ts +10 -0
  88. package/src/app/inbox/hooks/useNewSortedEvents.d.ts +1 -1
  89. package/src/app/inbox/utils/convs.d.ts +10 -1
  90. package/src/app/layout/components/CommandPalette.d.ts +16 -0
  91. package/src/app/layout/components/Header.d.ts +3 -1
  92. package/src/app/layout/constants/index.d.ts +24 -2
  93. package/src/app/layout/constants/subMenu.d.ts +22 -2
  94. package/src/app/layout/hooks/useImportContactsEnabled.d.ts +1 -0
  95. package/src/app/managemnet/components/CreateCrmWebhook.d.ts +6 -0
  96. package/src/app/managemnet/components/channels/AddChannelDialog.d.ts +10 -0
  97. package/src/app/managemnet/components/channels/ChannelItem.d.ts +11 -0
  98. package/src/app/managemnet/components/channels/ChannelTypeCard.d.ts +15 -0
  99. package/src/app/managemnet/components/channels/EditChannelDialog.d.ts +11 -0
  100. package/src/app/managemnet/pages/crmIntegrations/index.d.ts +2 -0
  101. package/src/app/onboarding/components/OnboardingChecklistGuideContent.d.ts +8 -0
  102. package/src/app/onboarding/components/OnboardingChecklistWidget.d.ts +2 -0
  103. package/src/app/onboarding/utils/onboardingChecklistStorage.d.ts +39 -0
  104. package/src/app/resources/components/Integrations/ChannelDialogLayout.d.ts +24 -0
  105. package/src/app/resources/components/Integrations/Custom/index.d.ts +7 -0
  106. package/src/app/resources/components/Integrations/Facebook/index.d.ts +4 -1
  107. package/src/app/resources/components/Integrations/Instagram/index.d.ts +4 -1
  108. package/src/app/resources/components/Integrations/RenderCorrectIntegrationFlow.d.ts +11 -2
  109. package/src/app/resources/components/Integrations/Telegram/index.d.ts +4 -1
  110. package/src/app/resources/components/Integrations/WaGupshup/index.d.ts +7 -0
  111. package/src/app/resources/components/Integrations/WhatsApp/index.d.ts +4 -1
  112. package/src/app/subscriptions/components/Plans/PlanCard.d.ts +3 -3
  113. package/src/app/subscriptions/components/Plans/ShowcasePlans.d.ts +5 -2
  114. package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionHeader.d.ts +2 -1
  115. package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionProfile.d.ts +1 -0
  116. package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionUsers.d.ts +0 -1
  117. package/src/app/subscriptions/constants/Plans.d.ts +9 -6
  118. package/src/app/subscriptions/pages/Upgrade.d.ts +6 -9
  119. package/src/assets/locales/translations.d.ts +292 -5
  120. package/src/config/azure.d.ts +2 -0
  121. package/src/environments/types.d.ts +3 -0
  122. package/src/graphql.autogenerated.d.ts +1649 -1234
  123. package/src/graphql.billing.autogenerated.d.ts +680 -7
  124. package/src/main.d.ts +2 -0
  125. package/src/utils/formatFailureReason.d.ts +5 -0
  126. package/src/utils/globalHelper.d.ts +3 -0
  127. package/src/utils/localStorage.d.ts +2 -0
  128. package/src/utils/textUtils.d.ts +3 -1
  129. package/src/app/resources/components/Integrations/Facebook/LoginPopup.d.ts +0 -4
  130. package/src/app/resources/components/Integrations/Instagram/LoginPopup.d.ts +0 -4
  131. package/src/app/resources/components/Integrations/WhatsApp/LoginPopup.d.ts +0 -4
@@ -148,10 +148,22 @@ export type Mutation = {
148
148
  cancelPendingPayment: CancelPendingPaymentResult;
149
149
  /** Purchase a new plan (checkout). */
150
150
  checkout: CheckoutResult;
151
+ /** Pause the subscription. */
152
+ pauseSubscription: SubscriptionPlan;
153
+ /** Create a Polar-hosted checkout session for purchasing a plan. */
154
+ polarCheckout: PolarCheckoutResult;
155
+ /** Create a Polar customer portal session for subscription management. */
156
+ polarPortalSession: PolarPortalSessionResult;
151
157
  /** Renew the current subscription plan. */
152
158
  renew: CheckoutResult;
153
159
  /** Set up a new payment method (creates a setup intent). */
154
160
  setupPaymentMethod: SetupPaymentMethodResult;
161
+ /** Create a Stripe-hosted checkout session for purchasing a plan. */
162
+ stripeCheckout: StripeCheckoutResult;
163
+ /** Create a Stripe billing portal session for subscription management. */
164
+ stripePortalSession: StripePortalSessionResult;
165
+ /** Unpause the subscription. */
166
+ unpauseSubscription: SubscriptionPlan;
155
167
  /** Create or update billing info for a workspace. */
156
168
  updateBillingInfo: BillingInfo;
157
169
  };
@@ -161,12 +173,30 @@ export type MutationCancelPendingPaymentArgs = {
161
173
  export type MutationCheckoutArgs = {
162
174
  input: CheckoutInput;
163
175
  };
176
+ export type MutationPauseSubscriptionArgs = {
177
+ input: PauseSubscriptionInput;
178
+ };
179
+ export type MutationPolarCheckoutArgs = {
180
+ input: PolarCheckoutInput;
181
+ };
182
+ export type MutationPolarPortalSessionArgs = {
183
+ input: PolarPortalSessionInput;
184
+ };
164
185
  export type MutationRenewArgs = {
165
186
  input: RenewInput;
166
187
  };
167
188
  export type MutationSetupPaymentMethodArgs = {
168
189
  input: SetupPaymentMethodInput;
169
190
  };
191
+ export type MutationStripeCheckoutArgs = {
192
+ input: StripeCheckoutInput;
193
+ };
194
+ export type MutationStripePortalSessionArgs = {
195
+ input: StripePortalSessionInput;
196
+ };
197
+ export type MutationUnpauseSubscriptionArgs = {
198
+ input: UnpauseSubscriptionInput;
199
+ };
170
200
  export type MutationUpdateBillingInfoArgs = {
171
201
  input: UpdateBillingInfoInput;
172
202
  };
@@ -194,6 +224,10 @@ export type PageInfoInput = {
194
224
  /** The query to filter the results. */
195
225
  query?: InputMaybe<Scalars['String']['input']>;
196
226
  };
227
+ export type PauseSubscriptionInput = {
228
+ durationInDays?: InputMaybe<Scalars['Int']['input']>;
229
+ workspaceId: Scalars['Int']['input'];
230
+ };
197
231
  /** PaymentMethod represents a payment method linked to a workspace. */
198
232
  export type PaymentMethod = {
199
233
  __typename?: 'PaymentMethod';
@@ -258,6 +292,7 @@ export type PendingPaymentsInput = {
258
292
  /** Plan represents a subscription plan. */
259
293
  export type Plan = {
260
294
  __typename?: 'Plan';
295
+ aiEnabled: Scalars['Boolean']['output'];
261
296
  broadcastMessageCount: Scalars['Int']['output'];
262
297
  convCount: Scalars['Int']['output'];
263
298
  createdAt: Scalars['DateTime']['output'];
@@ -265,9 +300,11 @@ export type Plan = {
265
300
  id: Scalars['Int']['output'];
266
301
  isBroadcast80PercentUsed?: Maybe<Scalars['Boolean']['output']>;
267
302
  isBroadcast100PercentUsed?: Maybe<Scalars['Boolean']['output']>;
303
+ isBroadcast120PercentUsed?: Maybe<Scalars['Boolean']['output']>;
268
304
  isBroadcastUsed?: Maybe<Scalars['Boolean']['output']>;
269
305
  isConv80PercentUsed?: Maybe<Scalars['Boolean']['output']>;
270
306
  isConv100PercentUsed?: Maybe<Scalars['Boolean']['output']>;
307
+ isConv120PercentUsed?: Maybe<Scalars['Boolean']['output']>;
271
308
  isConvUsed?: Maybe<Scalars['Boolean']['output']>;
272
309
  lastUseDate?: Maybe<Scalars['DateTime']['output']>;
273
310
  monthlyPrice: Scalars['Float']['output'];
@@ -275,17 +312,102 @@ export type Plan = {
275
312
  updatedAt: Scalars['DateTime']['output'];
276
313
  userCount: Scalars['Int']['output'];
277
314
  userId: Scalars['String']['output'];
315
+ workspaceId?: Maybe<Scalars['Int']['output']>;
278
316
  yearlyPrice: Scalars['Float']['output'];
279
317
  };
318
+ /** PlanInput is an input for retrieving a specific plan by ID. */
319
+ export type PlanInput = {
320
+ id: Scalars['Int']['input'];
321
+ };
322
+ /** PlanPricing represents the pricing details for a plan. */
323
+ export type PlanPricing = {
324
+ __typename?: 'PlanPricing';
325
+ creditsAdded: Scalars['Float']['output'];
326
+ creditsUsed: Scalars['Float']['output'];
327
+ discountPercentage: Scalars['Float']['output'];
328
+ nonDiscountedPrice: Scalars['Float']['output'];
329
+ paidToday: Scalars['Float']['output'];
330
+ price: Scalars['Float']['output'];
331
+ promoDiscount: Scalars['Float']['output'];
332
+ };
333
+ /** PlanPricingInput is an input for retrieving plan pricing details. */
334
+ export type PlanPricingInput = {
335
+ planType: PlanType;
336
+ term: Term;
337
+ workspaceId: Scalars['Int']['input'];
338
+ };
280
339
  /** PlanType represents the type of subscription plan. */
281
340
  export declare const PlanType: {
341
+ readonly AUTOMATE: "automate";
342
+ readonly AUTOMATE_MAX: "automate_max";
343
+ readonly AUTOMATE_PLUS: "automate_plus";
282
344
  readonly BASIC: "basic";
345
+ readonly BUSINESS: "business";
283
346
  readonly CUSTOM: "custom";
284
- readonly ENTERPRISE: "enterprise";
285
347
  readonly FREE: "free";
286
348
  readonly PREMIUM: "premium";
287
349
  };
288
350
  export type PlanType = typeof PlanType[keyof typeof PlanType];
351
+ /** PolarCheckoutInput is an input for creating a Polar-hosted checkout session. */
352
+ export type PolarCheckoutInput = {
353
+ planType: PlanType;
354
+ term: Term;
355
+ workspaceId: Scalars['Int']['input'];
356
+ };
357
+ /** PolarCheckoutResult represents the result of creating a Polar checkout session. */
358
+ export type PolarCheckoutResult = {
359
+ __typename?: 'PolarCheckoutResult';
360
+ sessionId: Scalars['String']['output'];
361
+ sessionUrl: Scalars['String']['output'];
362
+ };
363
+ /** PolarPortalSessionInput is an input for creating a Polar customer portal session. */
364
+ export type PolarPortalSessionInput = {
365
+ workspaceId: Scalars['Int']['input'];
366
+ };
367
+ /** PolarPortalSessionResult represents the result of creating a Polar customer portal session. */
368
+ export type PolarPortalSessionResult = {
369
+ __typename?: 'PolarPortalSessionResult';
370
+ sessionId: Scalars['String']['output'];
371
+ sessionUrl: Scalars['String']['output'];
372
+ };
373
+ /** PolarSessionLineItem represents a line item in a Polar checkout session. */
374
+ export type PolarSessionLineItem = {
375
+ __typename?: 'PolarSessionLineItem';
376
+ currency?: Maybe<Scalars['String']['output']>;
377
+ description?: Maybe<Scalars['String']['output']>;
378
+ priceId?: Maybe<Scalars['String']['output']>;
379
+ productId?: Maybe<Scalars['String']['output']>;
380
+ quantity?: Maybe<Scalars['Int']['output']>;
381
+ unitAmount?: Maybe<Scalars['Float']['output']>;
382
+ };
383
+ /** PolarSessionMetadata represents the metadata attached to a Polar checkout session. */
384
+ export type PolarSessionMetadata = {
385
+ __typename?: 'PolarSessionMetadata';
386
+ planType?: Maybe<Scalars['String']['output']>;
387
+ term?: Maybe<Scalars['String']['output']>;
388
+ userId?: Maybe<Scalars['String']['output']>;
389
+ workspaceId?: Maybe<Scalars['String']['output']>;
390
+ };
391
+ /** PolarSessionPlanInfo represents the plan information derived from a Polar checkout session. */
392
+ export type PolarSessionPlanInfo = {
393
+ __typename?: 'PolarSessionPlanInfo';
394
+ broadcastMessageCount?: Maybe<Scalars['Int']['output']>;
395
+ convCount?: Maybe<Scalars['Int']['output']>;
396
+ monthlyPrice?: Maybe<Scalars['Float']['output']>;
397
+ planType?: Maybe<PlanType>;
398
+ term?: Maybe<Term>;
399
+ userCount?: Maybe<Scalars['Int']['output']>;
400
+ };
401
+ /** PolarSessionResult represents the result of verifying a Polar checkout session. */
402
+ export type PolarSessionResult = {
403
+ __typename?: 'PolarSessionResult';
404
+ customerId?: Maybe<Scalars['String']['output']>;
405
+ lineItems: Array<PolarSessionLineItem>;
406
+ metadata?: Maybe<PolarSessionMetadata>;
407
+ paymentStatus: Scalars['String']['output'];
408
+ plan?: Maybe<PolarSessionPlanInfo>;
409
+ subscriptionId?: Maybe<Scalars['String']['output']>;
410
+ };
289
411
  export type Query = {
290
412
  __typename?: 'Query';
291
413
  /** Get billing info for a workspace. */
@@ -298,12 +420,22 @@ export type Query = {
298
420
  pendingPayment?: Maybe<PendingPayment>;
299
421
  /** List pending payments for a workspace with optional filters. */
300
422
  pendingPayments: Array<PendingPayment>;
423
+ /** Get a plan by ID. */
424
+ plan?: Maybe<Plan>;
425
+ /** Get pricing details for a plan type and term. */
426
+ planPricing: PlanPricing;
301
427
  /** Get the current subscription for a workspace. */
302
428
  subscription: SubscriptionPlan;
303
429
  /** Get a transaction by ID. */
304
430
  transaction?: Maybe<Transaction>;
305
431
  /** List all transactions for a workspace. */
306
432
  transactions: Array<Transaction>;
433
+ /** Verify a Polar checkout session by session ID. */
434
+ verifyPolarSession: PolarSessionResult;
435
+ /** Verify a Stripe checkout session by session ID. */
436
+ verifyStripeSession: StripeSessionResult;
437
+ /** Plan rows for a workspace (including historical snapshots), newest first. */
438
+ workspacePlans: Array<Plan>;
307
439
  };
308
440
  export type QueryBillingInfoArgs = {
309
441
  input: BillingInfoInput;
@@ -320,6 +452,12 @@ export type QueryPendingPaymentArgs = {
320
452
  export type QueryPendingPaymentsArgs = {
321
453
  input: PendingPaymentsInput;
322
454
  };
455
+ export type QueryPlanArgs = {
456
+ input: PlanInput;
457
+ };
458
+ export type QueryPlanPricingArgs = {
459
+ input: PlanPricingInput;
460
+ };
323
461
  export type QuerySubscriptionArgs = {
324
462
  input: SubscriptionInput;
325
463
  };
@@ -329,6 +467,15 @@ export type QueryTransactionArgs = {
329
467
  export type QueryTransactionsArgs = {
330
468
  input: TransactionsInput;
331
469
  };
470
+ export type QueryVerifyPolarSessionArgs = {
471
+ input: VerifyPolarSessionInput;
472
+ };
473
+ export type QueryVerifyStripeSessionArgs = {
474
+ input: VerifyStripeSessionInput;
475
+ };
476
+ export type QueryWorkspacePlansArgs = {
477
+ input: WorkspacePlansInput;
478
+ };
332
479
  /** RenewInput is an input for renewing a subscription plan. */
333
480
  export type RenewInput = {
334
481
  paymentMethod?: InputMaybe<Scalars['String']['input']>;
@@ -351,9 +498,70 @@ export type SetupPaymentMethodResult = {
351
498
  /** StripeCard represents a credit card stored in Stripe. */
352
499
  export type StripeCard = {
353
500
  __typename?: 'StripeCard';
354
- cardFingerprint?: Maybe<Scalars['String']['output']>;
355
- cardId: Scalars['String']['output'];
501
+ brand?: Maybe<Scalars['String']['output']>;
502
+ expireAt?: Maybe<Scalars['DateTime']['output']>;
356
503
  id: Scalars['Int']['output'];
504
+ last4?: Maybe<Scalars['String']['output']>;
505
+ };
506
+ /** StripeCheckoutInput is an input for creating a Stripe-hosted checkout session. */
507
+ export type StripeCheckoutInput = {
508
+ planType: PlanType;
509
+ term: Term;
510
+ workspaceId: Scalars['Int']['input'];
511
+ };
512
+ /** StripeCheckoutResult represents the result of creating a Stripe checkout session. */
513
+ export type StripeCheckoutResult = {
514
+ __typename?: 'StripeCheckoutResult';
515
+ sessionId: Scalars['String']['output'];
516
+ sessionUrl: Scalars['String']['output'];
517
+ };
518
+ /** StripePortalSessionInput is an input for creating a Stripe billing portal session. */
519
+ export type StripePortalSessionInput = {
520
+ workspaceId: Scalars['Int']['input'];
521
+ };
522
+ /** StripePortalSessionResult represents the result of creating a Stripe billing portal session. */
523
+ export type StripePortalSessionResult = {
524
+ __typename?: 'StripePortalSessionResult';
525
+ sessionId: Scalars['String']['output'];
526
+ sessionUrl: Scalars['String']['output'];
527
+ };
528
+ /** StripeSessionLineItem represents a line item in a Stripe checkout session. */
529
+ export type StripeSessionLineItem = {
530
+ __typename?: 'StripeSessionLineItem';
531
+ currency?: Maybe<Scalars['String']['output']>;
532
+ description?: Maybe<Scalars['String']['output']>;
533
+ priceId?: Maybe<Scalars['String']['output']>;
534
+ productId?: Maybe<Scalars['String']['output']>;
535
+ quantity?: Maybe<Scalars['Int']['output']>;
536
+ unitAmount?: Maybe<Scalars['Float']['output']>;
537
+ };
538
+ /** StripeSessionMetadata represents the metadata attached to a Stripe checkout session. */
539
+ export type StripeSessionMetadata = {
540
+ __typename?: 'StripeSessionMetadata';
541
+ planType?: Maybe<Scalars['String']['output']>;
542
+ term?: Maybe<Scalars['String']['output']>;
543
+ userId?: Maybe<Scalars['String']['output']>;
544
+ workspaceId?: Maybe<Scalars['String']['output']>;
545
+ };
546
+ /** StripeSessionPlanInfo represents the plan information derived from a Stripe checkout session. */
547
+ export type StripeSessionPlanInfo = {
548
+ __typename?: 'StripeSessionPlanInfo';
549
+ broadcastMessageCount?: Maybe<Scalars['Int']['output']>;
550
+ convCount?: Maybe<Scalars['Int']['output']>;
551
+ monthlyPrice?: Maybe<Scalars['Float']['output']>;
552
+ planType?: Maybe<PlanType>;
553
+ term?: Maybe<Term>;
554
+ userCount?: Maybe<Scalars['Int']['output']>;
555
+ };
556
+ /** StripeSessionResult represents the result of verifying a Stripe checkout session. */
557
+ export type StripeSessionResult = {
558
+ __typename?: 'StripeSessionResult';
559
+ customerId?: Maybe<Scalars['String']['output']>;
560
+ lineItems: Array<StripeSessionLineItem>;
561
+ metadata?: Maybe<StripeSessionMetadata>;
562
+ paymentStatus: Scalars['String']['output'];
563
+ plan?: Maybe<StripeSessionPlanInfo>;
564
+ subscriptionId?: Maybe<Scalars['String']['output']>;
357
565
  };
358
566
  /** SubscriptionInput is an input for the subscription query. */
359
567
  export type SubscriptionInput = {
@@ -370,6 +578,7 @@ export type SubscriptionPlan = {
370
578
  failedPaymentTimes: Scalars['Int']['output'];
371
579
  freeCredits: Scalars['Float']['output'];
372
580
  id: Scalars['Int']['output'];
581
+ isBusiness: Scalars['Boolean']['output'];
373
582
  isUsed?: Maybe<Scalars['Boolean']['output']>;
374
583
  lastPausedDate?: Maybe<Scalars['DateTime']['output']>;
375
584
  paused: Scalars['Boolean']['output'];
@@ -383,11 +592,25 @@ export type SubscriptionPlan = {
383
592
  renewalInProgress: Scalars['Boolean']['output'];
384
593
  renewalsPaid: Scalars['Int']['output'];
385
594
  startDate: Scalars['DateTime']['output'];
595
+ status?: Maybe<SubscriptionStatus>;
596
+ stripeCustomerId?: Maybe<Scalars['String']['output']>;
597
+ stripePriceId?: Maybe<Scalars['String']['output']>;
598
+ stripeSubscriptionId?: Maybe<Scalars['String']['output']>;
386
599
  term: Term;
387
600
  updatedAt: Scalars['DateTime']['output'];
388
601
  updatingPaymentTries: Scalars['Int']['output'];
389
602
  workspaceId: Scalars['Int']['output'];
390
603
  };
604
+ /** SubscriptionStatus represents the current state of a subscription. */
605
+ export declare const SubscriptionStatus: {
606
+ readonly ACTIVE: "active";
607
+ readonly CANCELED: "canceled";
608
+ readonly PAST_DUE: "past_due";
609
+ readonly PAUSED: "paused";
610
+ readonly TRIALING: "trialing";
611
+ readonly UNPAID: "unpaid";
612
+ };
613
+ export type SubscriptionStatus = typeof SubscriptionStatus[keyof typeof SubscriptionStatus];
391
614
  /** Term represents the subscription billing period. */
392
615
  export declare const Term: {
393
616
  readonly MONTHLY: "monthly";
@@ -421,6 +644,9 @@ export type TransactionInput = {
421
644
  export type TransactionsInput = {
422
645
  workspaceId: Scalars['Int']['input'];
423
646
  };
647
+ export type UnpauseSubscriptionInput = {
648
+ workspaceId: Scalars['Int']['input'];
649
+ };
424
650
  /** UpdateBillingInfoInput is an input for updating billing info (creates or updates by workspace). */
425
651
  export type UpdateBillingInfoInput = {
426
652
  address?: InputMaybe<Scalars['String']['input']>;
@@ -428,6 +654,19 @@ export type UpdateBillingInfoInput = {
428
654
  name?: InputMaybe<Scalars['String']['input']>;
429
655
  workspaceId: Scalars['Int']['input'];
430
656
  };
657
+ /** VerifyPolarSessionInput is an input for verifying a Polar checkout session. */
658
+ export type VerifyPolarSessionInput = {
659
+ sessionId: Scalars['String']['input'];
660
+ workspaceId: Scalars['Int']['input'];
661
+ };
662
+ /** VerifyStripeSessionInput is an input for verifying a Stripe checkout session. */
663
+ export type VerifyStripeSessionInput = {
664
+ sessionId: Scalars['String']['input'];
665
+ workspaceId: Scalars['Int']['input'];
666
+ };
667
+ export type WorkspacePlansInput = {
668
+ workspaceId: Scalars['Int']['input'];
669
+ };
431
670
  export type BillingInfoQueryVariables = Exact<{
432
671
  input: BillingInfoInput;
433
672
  }>;
@@ -491,8 +730,9 @@ export type PaymentMethodQuery = {
491
730
  stripeCard?: {
492
731
  __typename?: 'StripeCard';
493
732
  id: number;
494
- cardId: string;
495
- cardFingerprint?: string | null;
733
+ brand?: string | null;
734
+ last4?: string | null;
735
+ expireAt?: any | null;
496
736
  } | null;
497
737
  } | null;
498
738
  };
@@ -514,8 +754,9 @@ export type PaymentMethodsQuery = {
514
754
  stripeCard?: {
515
755
  __typename?: 'StripeCard';
516
756
  id: number;
517
- cardId: string;
518
- cardFingerprint?: string | null;
757
+ brand?: string | null;
758
+ last4?: string | null;
759
+ expireAt?: any | null;
519
760
  } | null;
520
761
  }>;
521
762
  };
@@ -561,6 +802,74 @@ export type PendingPaymentsQuery = {
561
802
  completedAt?: any | null;
562
803
  }>;
563
804
  };
805
+ export type PlanQueryVariables = Exact<{
806
+ input: PlanInput;
807
+ }>;
808
+ export type PlanQuery = {
809
+ __typename?: 'Query';
810
+ plan?: {
811
+ __typename?: 'Plan';
812
+ id: number;
813
+ userId: string;
814
+ planType: PlanType;
815
+ aiEnabled: boolean;
816
+ convCount: number;
817
+ broadcastMessageCount: number;
818
+ userCount: number;
819
+ monthlyPrice: number;
820
+ yearlyPrice: number;
821
+ isConvUsed?: boolean | null;
822
+ isBroadcastUsed?: boolean | null;
823
+ lastUseDate?: any | null;
824
+ isConv80PercentUsed?: boolean | null;
825
+ isConv100PercentUsed?: boolean | null;
826
+ isConv120PercentUsed?: boolean | null;
827
+ isBroadcast80PercentUsed?: boolean | null;
828
+ isBroadcast100PercentUsed?: boolean | null;
829
+ isBroadcast120PercentUsed?: boolean | null;
830
+ createdAt: any;
831
+ updatedAt: any;
832
+ deletedAt?: any | null;
833
+ } | null;
834
+ };
835
+ export type PlanPricingQueryVariables = Exact<{
836
+ input: PlanPricingInput;
837
+ }>;
838
+ export type PlanPricingQuery = {
839
+ __typename?: 'Query';
840
+ planPricing: {
841
+ __typename?: 'PlanPricing';
842
+ discountPercentage: number;
843
+ nonDiscountedPrice: number;
844
+ price: number;
845
+ paidToday: number;
846
+ creditsAdded: number;
847
+ creditsUsed: number;
848
+ promoDiscount: number;
849
+ };
850
+ };
851
+ export type PolarCheckoutMutationVariables = Exact<{
852
+ input: PolarCheckoutInput;
853
+ }>;
854
+ export type PolarCheckoutMutation = {
855
+ __typename?: 'Mutation';
856
+ polarCheckout: {
857
+ __typename?: 'PolarCheckoutResult';
858
+ sessionId: string;
859
+ sessionUrl: string;
860
+ };
861
+ };
862
+ export type PolarPortalSessionMutationVariables = Exact<{
863
+ input: PolarPortalSessionInput;
864
+ }>;
865
+ export type PolarPortalSessionMutation = {
866
+ __typename?: 'Mutation';
867
+ polarPortalSession: {
868
+ __typename?: 'PolarPortalSessionResult';
869
+ sessionId: string;
870
+ sessionUrl: string;
871
+ };
872
+ };
564
873
  export type RenewMutationVariables = Exact<{
565
874
  input: RenewInput;
566
875
  }>;
@@ -590,6 +899,28 @@ export type SetupPaymentMethodMutation = {
590
899
  stripeSetupIntent: string;
591
900
  };
592
901
  };
902
+ export type StripeCheckoutMutationVariables = Exact<{
903
+ input: StripeCheckoutInput;
904
+ }>;
905
+ export type StripeCheckoutMutation = {
906
+ __typename?: 'Mutation';
907
+ stripeCheckout: {
908
+ __typename?: 'StripeCheckoutResult';
909
+ sessionId: string;
910
+ sessionUrl: string;
911
+ };
912
+ };
913
+ export type StripePortalSessionMutationVariables = Exact<{
914
+ input: StripePortalSessionInput;
915
+ }>;
916
+ export type StripePortalSessionMutation = {
917
+ __typename?: 'Mutation';
918
+ stripePortalSession: {
919
+ __typename?: 'StripePortalSessionResult';
920
+ sessionId: string;
921
+ sessionUrl: string;
922
+ };
923
+ };
593
924
  export type SubscriptionQueryVariables = Exact<{
594
925
  input: SubscriptionInput;
595
926
  }>;
@@ -599,6 +930,7 @@ export type SubscriptionQuery = {
599
930
  __typename?: 'SubscriptionPlan';
600
931
  id: number;
601
932
  workspaceId: number;
933
+ stripeCustomerId?: string | null;
602
934
  freeCredits: number;
603
935
  planId: number;
604
936
  term: Term;
@@ -626,6 +958,7 @@ export type SubscriptionQuery = {
626
958
  id: number;
627
959
  userId: string;
628
960
  planType: PlanType;
961
+ aiEnabled: boolean;
629
962
  convCount: number;
630
963
  broadcastMessageCount: number;
631
964
  userCount: number;
@@ -636,8 +969,10 @@ export type SubscriptionQuery = {
636
969
  lastUseDate?: any | null;
637
970
  isConv80PercentUsed?: boolean | null;
638
971
  isConv100PercentUsed?: boolean | null;
972
+ isConv120PercentUsed?: boolean | null;
639
973
  isBroadcast80PercentUsed?: boolean | null;
640
974
  isBroadcast100PercentUsed?: boolean | null;
975
+ isBroadcast120PercentUsed?: boolean | null;
641
976
  createdAt: any;
642
977
  updatedAt: any;
643
978
  deletedAt?: any | null;
@@ -708,6 +1043,80 @@ export type UpdateBillingInfoMutation = {
708
1043
  updatedAt?: any | null;
709
1044
  };
710
1045
  };
1046
+ export type VerifyPolarSessionQueryVariables = Exact<{
1047
+ input: VerifyPolarSessionInput;
1048
+ }>;
1049
+ export type VerifyPolarSessionQuery = {
1050
+ __typename?: 'Query';
1051
+ verifyPolarSession: {
1052
+ __typename?: 'PolarSessionResult';
1053
+ customerId?: string | null;
1054
+ subscriptionId?: string | null;
1055
+ paymentStatus: string;
1056
+ metadata?: {
1057
+ __typename?: 'PolarSessionMetadata';
1058
+ workspaceId?: string | null;
1059
+ planType?: string | null;
1060
+ term?: string | null;
1061
+ userId?: string | null;
1062
+ } | null;
1063
+ lineItems: Array<{
1064
+ __typename?: 'PolarSessionLineItem';
1065
+ priceId?: string | null;
1066
+ productId?: string | null;
1067
+ description?: string | null;
1068
+ quantity?: number | null;
1069
+ unitAmount?: number | null;
1070
+ currency?: string | null;
1071
+ }>;
1072
+ plan?: {
1073
+ __typename?: 'PolarSessionPlanInfo';
1074
+ planType?: PlanType | null;
1075
+ term?: Term | null;
1076
+ convCount?: number | null;
1077
+ broadcastMessageCount?: number | null;
1078
+ userCount?: number | null;
1079
+ monthlyPrice?: number | null;
1080
+ } | null;
1081
+ };
1082
+ };
1083
+ export type VerifyStripeSessionQueryVariables = Exact<{
1084
+ input: VerifyStripeSessionInput;
1085
+ }>;
1086
+ export type VerifyStripeSessionQuery = {
1087
+ __typename?: 'Query';
1088
+ verifyStripeSession: {
1089
+ __typename?: 'StripeSessionResult';
1090
+ customerId?: string | null;
1091
+ subscriptionId?: string | null;
1092
+ paymentStatus: string;
1093
+ metadata?: {
1094
+ __typename?: 'StripeSessionMetadata';
1095
+ workspaceId?: string | null;
1096
+ planType?: string | null;
1097
+ term?: string | null;
1098
+ userId?: string | null;
1099
+ } | null;
1100
+ lineItems: Array<{
1101
+ __typename?: 'StripeSessionLineItem';
1102
+ priceId?: string | null;
1103
+ productId?: string | null;
1104
+ description?: string | null;
1105
+ quantity?: number | null;
1106
+ unitAmount?: number | null;
1107
+ currency?: string | null;
1108
+ }>;
1109
+ plan?: {
1110
+ __typename?: 'StripeSessionPlanInfo';
1111
+ planType?: PlanType | null;
1112
+ term?: Term | null;
1113
+ convCount?: number | null;
1114
+ broadcastMessageCount?: number | null;
1115
+ userCount?: number | null;
1116
+ monthlyPrice?: number | null;
1117
+ } | null;
1118
+ };
1119
+ };
711
1120
  export declare const BillingInfoDocument: Apollo.DocumentNode;
712
1121
  /**
713
1122
  * __useBillingInfoQuery__
@@ -963,6 +1372,138 @@ export declare function refetchPendingPaymentsQuery(variables: PendingPaymentsQu
963
1372
  input: PendingPaymentsInput;
964
1373
  }>;
965
1374
  };
1375
+ export declare const PlanDocument: Apollo.DocumentNode;
1376
+ /**
1377
+ * __usePlanQuery__
1378
+ *
1379
+ * To run a query within a React component, call `usePlanQuery` and pass it any options that fit your needs.
1380
+ * When your component renders, `usePlanQuery` returns an object from Apollo Client that contains loading, error, and data properties
1381
+ * you can use to render your UI.
1382
+ *
1383
+ * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
1384
+ *
1385
+ * @example
1386
+ * const { data, loading, error } = usePlanQuery({
1387
+ * variables: {
1388
+ * input: // value for 'input'
1389
+ * },
1390
+ * });
1391
+ */
1392
+ export declare function usePlanQuery(baseOptions: Apollo.QueryHookOptions<PlanQuery, PlanQueryVariables> & ({
1393
+ variables: PlanQueryVariables;
1394
+ skip?: boolean;
1395
+ } | {
1396
+ skip: boolean;
1397
+ })): Apollo.QueryResult<PlanQuery, Exact<{
1398
+ input: PlanInput;
1399
+ }>>;
1400
+ export declare function usePlanLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<PlanQuery, PlanQueryVariables>): Apollo.LazyQueryResultTuple<PlanQuery, Exact<{
1401
+ input: PlanInput;
1402
+ }>>;
1403
+ export declare function usePlanSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<PlanQuery, PlanQueryVariables>): Apollo.UseSuspenseQueryResult<PlanQuery | undefined, Exact<{
1404
+ input: PlanInput;
1405
+ }>>;
1406
+ export type PlanQueryHookResult = ReturnType<typeof usePlanQuery>;
1407
+ export type PlanLazyQueryHookResult = ReturnType<typeof usePlanLazyQuery>;
1408
+ export type PlanSuspenseQueryHookResult = ReturnType<typeof usePlanSuspenseQuery>;
1409
+ export type PlanQueryResult = Apollo.QueryResult<PlanQuery, PlanQueryVariables>;
1410
+ export declare function refetchPlanQuery(variables: PlanQueryVariables): {
1411
+ query: Apollo.DocumentNode;
1412
+ variables: Exact<{
1413
+ input: PlanInput;
1414
+ }>;
1415
+ };
1416
+ export declare const PlanPricingDocument: Apollo.DocumentNode;
1417
+ /**
1418
+ * __usePlanPricingQuery__
1419
+ *
1420
+ * To run a query within a React component, call `usePlanPricingQuery` and pass it any options that fit your needs.
1421
+ * When your component renders, `usePlanPricingQuery` returns an object from Apollo Client that contains loading, error, and data properties
1422
+ * you can use to render your UI.
1423
+ *
1424
+ * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
1425
+ *
1426
+ * @example
1427
+ * const { data, loading, error } = usePlanPricingQuery({
1428
+ * variables: {
1429
+ * input: // value for 'input'
1430
+ * },
1431
+ * });
1432
+ */
1433
+ export declare function usePlanPricingQuery(baseOptions: Apollo.QueryHookOptions<PlanPricingQuery, PlanPricingQueryVariables> & ({
1434
+ variables: PlanPricingQueryVariables;
1435
+ skip?: boolean;
1436
+ } | {
1437
+ skip: boolean;
1438
+ })): Apollo.QueryResult<PlanPricingQuery, Exact<{
1439
+ input: PlanPricingInput;
1440
+ }>>;
1441
+ export declare function usePlanPricingLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<PlanPricingQuery, PlanPricingQueryVariables>): Apollo.LazyQueryResultTuple<PlanPricingQuery, Exact<{
1442
+ input: PlanPricingInput;
1443
+ }>>;
1444
+ export declare function usePlanPricingSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<PlanPricingQuery, PlanPricingQueryVariables>): Apollo.UseSuspenseQueryResult<PlanPricingQuery | undefined, Exact<{
1445
+ input: PlanPricingInput;
1446
+ }>>;
1447
+ export type PlanPricingQueryHookResult = ReturnType<typeof usePlanPricingQuery>;
1448
+ export type PlanPricingLazyQueryHookResult = ReturnType<typeof usePlanPricingLazyQuery>;
1449
+ export type PlanPricingSuspenseQueryHookResult = ReturnType<typeof usePlanPricingSuspenseQuery>;
1450
+ export type PlanPricingQueryResult = Apollo.QueryResult<PlanPricingQuery, PlanPricingQueryVariables>;
1451
+ export declare function refetchPlanPricingQuery(variables: PlanPricingQueryVariables): {
1452
+ query: Apollo.DocumentNode;
1453
+ variables: Exact<{
1454
+ input: PlanPricingInput;
1455
+ }>;
1456
+ };
1457
+ export declare const PolarCheckoutDocument: Apollo.DocumentNode;
1458
+ export type PolarCheckoutMutationFn = Apollo.MutationFunction<PolarCheckoutMutation, PolarCheckoutMutationVariables>;
1459
+ /**
1460
+ * __usePolarCheckoutMutation__
1461
+ *
1462
+ * To run a mutation, you first call `usePolarCheckoutMutation` within a React component and pass it any options that fit your needs.
1463
+ * When your component renders, `usePolarCheckoutMutation` returns a tuple that includes:
1464
+ * - A mutate function that you can call at any time to execute the mutation
1465
+ * - An object with fields that represent the current status of the mutation's execution
1466
+ *
1467
+ * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
1468
+ *
1469
+ * @example
1470
+ * const [polarCheckoutMutation, { data, loading, error }] = usePolarCheckoutMutation({
1471
+ * variables: {
1472
+ * input: // value for 'input'
1473
+ * },
1474
+ * });
1475
+ */
1476
+ export declare function usePolarCheckoutMutation(baseOptions?: Apollo.MutationHookOptions<PolarCheckoutMutation, PolarCheckoutMutationVariables>): Apollo.MutationTuple<PolarCheckoutMutation, Exact<{
1477
+ input: PolarCheckoutInput;
1478
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
1479
+ export type PolarCheckoutMutationHookResult = ReturnType<typeof usePolarCheckoutMutation>;
1480
+ export type PolarCheckoutMutationResult = Apollo.MutationResult<PolarCheckoutMutation>;
1481
+ export type PolarCheckoutMutationOptions = Apollo.BaseMutationOptions<PolarCheckoutMutation, PolarCheckoutMutationVariables>;
1482
+ export declare const PolarPortalSessionDocument: Apollo.DocumentNode;
1483
+ export type PolarPortalSessionMutationFn = Apollo.MutationFunction<PolarPortalSessionMutation, PolarPortalSessionMutationVariables>;
1484
+ /**
1485
+ * __usePolarPortalSessionMutation__
1486
+ *
1487
+ * To run a mutation, you first call `usePolarPortalSessionMutation` within a React component and pass it any options that fit your needs.
1488
+ * When your component renders, `usePolarPortalSessionMutation` returns a tuple that includes:
1489
+ * - A mutate function that you can call at any time to execute the mutation
1490
+ * - An object with fields that represent the current status of the mutation's execution
1491
+ *
1492
+ * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
1493
+ *
1494
+ * @example
1495
+ * const [polarPortalSessionMutation, { data, loading, error }] = usePolarPortalSessionMutation({
1496
+ * variables: {
1497
+ * input: // value for 'input'
1498
+ * },
1499
+ * });
1500
+ */
1501
+ export declare function usePolarPortalSessionMutation(baseOptions?: Apollo.MutationHookOptions<PolarPortalSessionMutation, PolarPortalSessionMutationVariables>): Apollo.MutationTuple<PolarPortalSessionMutation, Exact<{
1502
+ input: PolarPortalSessionInput;
1503
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
1504
+ export type PolarPortalSessionMutationHookResult = ReturnType<typeof usePolarPortalSessionMutation>;
1505
+ export type PolarPortalSessionMutationResult = Apollo.MutationResult<PolarPortalSessionMutation>;
1506
+ export type PolarPortalSessionMutationOptions = Apollo.BaseMutationOptions<PolarPortalSessionMutation, PolarPortalSessionMutationVariables>;
966
1507
  export declare const RenewDocument: Apollo.DocumentNode;
967
1508
  export type RenewMutationFn = Apollo.MutationFunction<RenewMutation, RenewMutationVariables>;
968
1509
  /**
@@ -1013,6 +1554,56 @@ export declare function useSetupPaymentMethodMutation(baseOptions?: Apollo.Mutat
1013
1554
  export type SetupPaymentMethodMutationHookResult = ReturnType<typeof useSetupPaymentMethodMutation>;
1014
1555
  export type SetupPaymentMethodMutationResult = Apollo.MutationResult<SetupPaymentMethodMutation>;
1015
1556
  export type SetupPaymentMethodMutationOptions = Apollo.BaseMutationOptions<SetupPaymentMethodMutation, SetupPaymentMethodMutationVariables>;
1557
+ export declare const StripeCheckoutDocument: Apollo.DocumentNode;
1558
+ export type StripeCheckoutMutationFn = Apollo.MutationFunction<StripeCheckoutMutation, StripeCheckoutMutationVariables>;
1559
+ /**
1560
+ * __useStripeCheckoutMutation__
1561
+ *
1562
+ * To run a mutation, you first call `useStripeCheckoutMutation` within a React component and pass it any options that fit your needs.
1563
+ * When your component renders, `useStripeCheckoutMutation` returns a tuple that includes:
1564
+ * - A mutate function that you can call at any time to execute the mutation
1565
+ * - An object with fields that represent the current status of the mutation's execution
1566
+ *
1567
+ * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
1568
+ *
1569
+ * @example
1570
+ * const [stripeCheckoutMutation, { data, loading, error }] = useStripeCheckoutMutation({
1571
+ * variables: {
1572
+ * input: // value for 'input'
1573
+ * },
1574
+ * });
1575
+ */
1576
+ export declare function useStripeCheckoutMutation(baseOptions?: Apollo.MutationHookOptions<StripeCheckoutMutation, StripeCheckoutMutationVariables>): Apollo.MutationTuple<StripeCheckoutMutation, Exact<{
1577
+ input: StripeCheckoutInput;
1578
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
1579
+ export type StripeCheckoutMutationHookResult = ReturnType<typeof useStripeCheckoutMutation>;
1580
+ export type StripeCheckoutMutationResult = Apollo.MutationResult<StripeCheckoutMutation>;
1581
+ export type StripeCheckoutMutationOptions = Apollo.BaseMutationOptions<StripeCheckoutMutation, StripeCheckoutMutationVariables>;
1582
+ export declare const StripePortalSessionDocument: Apollo.DocumentNode;
1583
+ export type StripePortalSessionMutationFn = Apollo.MutationFunction<StripePortalSessionMutation, StripePortalSessionMutationVariables>;
1584
+ /**
1585
+ * __useStripePortalSessionMutation__
1586
+ *
1587
+ * To run a mutation, you first call `useStripePortalSessionMutation` within a React component and pass it any options that fit your needs.
1588
+ * When your component renders, `useStripePortalSessionMutation` returns a tuple that includes:
1589
+ * - A mutate function that you can call at any time to execute the mutation
1590
+ * - An object with fields that represent the current status of the mutation's execution
1591
+ *
1592
+ * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
1593
+ *
1594
+ * @example
1595
+ * const [stripePortalSessionMutation, { data, loading, error }] = useStripePortalSessionMutation({
1596
+ * variables: {
1597
+ * input: // value for 'input'
1598
+ * },
1599
+ * });
1600
+ */
1601
+ export declare function useStripePortalSessionMutation(baseOptions?: Apollo.MutationHookOptions<StripePortalSessionMutation, StripePortalSessionMutationVariables>): Apollo.MutationTuple<StripePortalSessionMutation, Exact<{
1602
+ input: StripePortalSessionInput;
1603
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
1604
+ export type StripePortalSessionMutationHookResult = ReturnType<typeof useStripePortalSessionMutation>;
1605
+ export type StripePortalSessionMutationResult = Apollo.MutationResult<StripePortalSessionMutation>;
1606
+ export type StripePortalSessionMutationOptions = Apollo.BaseMutationOptions<StripePortalSessionMutation, StripePortalSessionMutationVariables>;
1016
1607
  export declare const SubscriptionDocument: Apollo.DocumentNode;
1017
1608
  /**
1018
1609
  * __useSubscriptionQuery__
@@ -1161,3 +1752,85 @@ export declare function useUpdateBillingInfoMutation(baseOptions?: Apollo.Mutati
1161
1752
  export type UpdateBillingInfoMutationHookResult = ReturnType<typeof useUpdateBillingInfoMutation>;
1162
1753
  export type UpdateBillingInfoMutationResult = Apollo.MutationResult<UpdateBillingInfoMutation>;
1163
1754
  export type UpdateBillingInfoMutationOptions = Apollo.BaseMutationOptions<UpdateBillingInfoMutation, UpdateBillingInfoMutationVariables>;
1755
+ export declare const VerifyPolarSessionDocument: Apollo.DocumentNode;
1756
+ /**
1757
+ * __useVerifyPolarSessionQuery__
1758
+ *
1759
+ * To run a query within a React component, call `useVerifyPolarSessionQuery` and pass it any options that fit your needs.
1760
+ * When your component renders, `useVerifyPolarSessionQuery` returns an object from Apollo Client that contains loading, error, and data properties
1761
+ * you can use to render your UI.
1762
+ *
1763
+ * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
1764
+ *
1765
+ * @example
1766
+ * const { data, loading, error } = useVerifyPolarSessionQuery({
1767
+ * variables: {
1768
+ * input: // value for 'input'
1769
+ * },
1770
+ * });
1771
+ */
1772
+ export declare function useVerifyPolarSessionQuery(baseOptions: Apollo.QueryHookOptions<VerifyPolarSessionQuery, VerifyPolarSessionQueryVariables> & ({
1773
+ variables: VerifyPolarSessionQueryVariables;
1774
+ skip?: boolean;
1775
+ } | {
1776
+ skip: boolean;
1777
+ })): Apollo.QueryResult<VerifyPolarSessionQuery, Exact<{
1778
+ input: VerifyPolarSessionInput;
1779
+ }>>;
1780
+ export declare function useVerifyPolarSessionLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<VerifyPolarSessionQuery, VerifyPolarSessionQueryVariables>): Apollo.LazyQueryResultTuple<VerifyPolarSessionQuery, Exact<{
1781
+ input: VerifyPolarSessionInput;
1782
+ }>>;
1783
+ export declare function useVerifyPolarSessionSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<VerifyPolarSessionQuery, VerifyPolarSessionQueryVariables>): Apollo.UseSuspenseQueryResult<VerifyPolarSessionQuery | undefined, Exact<{
1784
+ input: VerifyPolarSessionInput;
1785
+ }>>;
1786
+ export type VerifyPolarSessionQueryHookResult = ReturnType<typeof useVerifyPolarSessionQuery>;
1787
+ export type VerifyPolarSessionLazyQueryHookResult = ReturnType<typeof useVerifyPolarSessionLazyQuery>;
1788
+ export type VerifyPolarSessionSuspenseQueryHookResult = ReturnType<typeof useVerifyPolarSessionSuspenseQuery>;
1789
+ export type VerifyPolarSessionQueryResult = Apollo.QueryResult<VerifyPolarSessionQuery, VerifyPolarSessionQueryVariables>;
1790
+ export declare function refetchVerifyPolarSessionQuery(variables: VerifyPolarSessionQueryVariables): {
1791
+ query: Apollo.DocumentNode;
1792
+ variables: Exact<{
1793
+ input: VerifyPolarSessionInput;
1794
+ }>;
1795
+ };
1796
+ export declare const VerifyStripeSessionDocument: Apollo.DocumentNode;
1797
+ /**
1798
+ * __useVerifyStripeSessionQuery__
1799
+ *
1800
+ * To run a query within a React component, call `useVerifyStripeSessionQuery` and pass it any options that fit your needs.
1801
+ * When your component renders, `useVerifyStripeSessionQuery` returns an object from Apollo Client that contains loading, error, and data properties
1802
+ * you can use to render your UI.
1803
+ *
1804
+ * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
1805
+ *
1806
+ * @example
1807
+ * const { data, loading, error } = useVerifyStripeSessionQuery({
1808
+ * variables: {
1809
+ * input: // value for 'input'
1810
+ * },
1811
+ * });
1812
+ */
1813
+ export declare function useVerifyStripeSessionQuery(baseOptions: Apollo.QueryHookOptions<VerifyStripeSessionQuery, VerifyStripeSessionQueryVariables> & ({
1814
+ variables: VerifyStripeSessionQueryVariables;
1815
+ skip?: boolean;
1816
+ } | {
1817
+ skip: boolean;
1818
+ })): Apollo.QueryResult<VerifyStripeSessionQuery, Exact<{
1819
+ input: VerifyStripeSessionInput;
1820
+ }>>;
1821
+ export declare function useVerifyStripeSessionLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<VerifyStripeSessionQuery, VerifyStripeSessionQueryVariables>): Apollo.LazyQueryResultTuple<VerifyStripeSessionQuery, Exact<{
1822
+ input: VerifyStripeSessionInput;
1823
+ }>>;
1824
+ export declare function useVerifyStripeSessionSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<VerifyStripeSessionQuery, VerifyStripeSessionQueryVariables>): Apollo.UseSuspenseQueryResult<VerifyStripeSessionQuery | undefined, Exact<{
1825
+ input: VerifyStripeSessionInput;
1826
+ }>>;
1827
+ export type VerifyStripeSessionQueryHookResult = ReturnType<typeof useVerifyStripeSessionQuery>;
1828
+ export type VerifyStripeSessionLazyQueryHookResult = ReturnType<typeof useVerifyStripeSessionLazyQuery>;
1829
+ export type VerifyStripeSessionSuspenseQueryHookResult = ReturnType<typeof useVerifyStripeSessionSuspenseQuery>;
1830
+ export type VerifyStripeSessionQueryResult = Apollo.QueryResult<VerifyStripeSessionQuery, VerifyStripeSessionQueryVariables>;
1831
+ export declare function refetchVerifyStripeSessionQuery(variables: VerifyStripeSessionQueryVariables): {
1832
+ query: Apollo.DocumentNode;
1833
+ variables: Exact<{
1834
+ input: VerifyStripeSessionInput;
1835
+ }>;
1836
+ };