@bcrumbs.net/inbox 0.0.51 → 0.0.55

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 (182) hide show
  1. package/assets/ar/inbox.json +20 -3
  2. package/assets/en/inbox.json +22 -5
  3. package/index.cjs.js +3955 -1472
  4. package/index.esm.js +3958 -1477
  5. package/package.json +4 -4
  6. package/src/app/ai/components/Crumby/index.d.ts +2 -0
  7. package/src/app/ai/components/CrumbySettings/AutoTagRulesSection.d.ts +14 -0
  8. package/src/app/ai/components/CrumbySettings/tagRuleUtils.d.ts +28 -0
  9. package/src/app/ai/components/playground/Thread.d.ts +5 -1
  10. package/src/app/ai/components/playground/ThreadWelcome.d.ts +4 -1
  11. package/src/app/ai/components/playground/TooltipIconButton.d.ts +1 -1
  12. package/src/app/ai/pages/AiPreferencesPrompts.d.ts +2 -0
  13. package/src/app/auth/components/UserAvatar/AccountSettingsDropdown.d.ts +2 -1
  14. package/src/app/auth/components/UserAvatar/index.d.ts +2 -1
  15. package/src/app/auth/pages/CheckAuth.d.ts +10 -0
  16. package/src/app/auth/pages/Forget.d.ts +1 -3
  17. package/src/app/auth/pages/Login.d.ts +2 -12
  18. package/src/app/auth/pages/Password.d.ts +0 -1
  19. package/src/app/auth/pages/Profile.d.ts +0 -1
  20. package/src/app/auth/pages/Register.d.ts +2 -13
  21. package/src/app/auth/redux/actions/forgetPasswordAction.d.ts +1 -1
  22. package/src/app/auth/redux/actions/logoutAction.d.ts +2 -2
  23. package/src/app/auth/redux/actions/registerAction.d.ts +1 -1
  24. package/src/app/auth/redux/actions/resetPasswordAction.d.ts +2 -2
  25. package/src/app/auth/redux/auth.types.d.ts +6 -2
  26. package/src/app/billing/components/NotAccessible.d.ts +10 -0
  27. package/src/app/billing/components/Timeline.d.ts +20 -0
  28. package/src/app/billing/components/checkout/AddNewPaymentCard.d.ts +6 -0
  29. package/src/app/billing/components/checkout/CheckoutSummary.d.ts +20 -0
  30. package/src/app/billing/components/checkout/ExceedPaymentUpdateTriesModal.d.ts +8 -0
  31. package/src/app/billing/components/checkout/ExistingCardPayment.d.ts +10 -0
  32. package/src/app/billing/components/checkout/PaymentForm.d.ts +11 -0
  33. package/src/app/billing/components/checkout/PaymentFormExp.d.ts +9 -0
  34. package/src/app/billing/components/checkout/PaymentMethod.d.ts +8 -0
  35. package/src/app/billing/components/checkout/PaymentMethodCard.d.ts +9 -0
  36. package/src/app/billing/components/checkout/PaywithCredits.d.ts +9 -0
  37. package/src/app/billing/components/invoices/BCLogo.d.ts +5 -0
  38. package/src/app/billing/components/invoices/Invoice.d.ts +5 -0
  39. package/src/app/billing/components/planStyles.d.ts +9 -0
  40. package/src/app/billing/components/styles.d.ts +21 -0
  41. package/src/app/billing/components/subscription/PlanDetail.d.ts +11 -0
  42. package/src/app/billing/components/subscription/SubscriptionPausedWarning.d.ts +3 -0
  43. package/src/app/billing/components/transactions/TransactionHistoryTable.d.ts +15 -0
  44. package/src/app/billing/context/SubscriptionContext.d.ts +8 -1
  45. package/src/app/billing/hooks/useGetPaidToday.d.ts +9 -0
  46. package/src/app/billing/hooks/usePendingPayments.d.ts +51 -0
  47. package/src/app/billing/hooks/useSetupPayment.d.ts +15 -0
  48. package/src/app/billing/hooks/useSetupPaymentMethod.d.ts +12 -0
  49. package/src/app/billing/pages/checkout.d.ts +2 -0
  50. package/src/app/billing/pages/done.d.ts +1 -0
  51. package/src/app/billing/pages/invoice.d.ts +1 -0
  52. package/src/app/billing/pages/invoices.d.ts +2 -0
  53. package/src/app/billing/pages/payment.d.ts +1 -0
  54. package/src/app/billing/utils/getStripe.d.ts +3 -0
  55. package/src/app/billing/utils/openArticleModal.d.ts +1 -0
  56. package/src/app/billing/utils/paymentProvider.d.ts +3 -0
  57. package/src/app/billing/utils/pendingPlanPurchaseStorage.d.ts +10 -0
  58. package/src/app/billing/utils/stripeUtils.d.ts +2 -0
  59. package/src/app/broadcast/components/BroadcastAnalysisReciepientsHeader.d.ts +6 -1
  60. package/src/app/broadcast/components/BroadcastAnalysisReciepientsTable.d.ts +5 -1
  61. package/src/app/broadcast/components/BroadcastInfoHeader.d.ts +2 -1
  62. package/src/app/broadcast/components/BroadcastTargetingComplianceNotice.d.ts +2 -0
  63. package/src/app/broadcast/components/WorkspaceBroadcastAnalysisRecipients.d.ts +7 -0
  64. package/src/app/broadcast/hooks/useExportWorkspaceBroadcastDelivery.d.ts +6 -0
  65. package/src/app/broadcast/pages/WorkspaceBroadcastDeliveryReportPage.d.ts +2 -0
  66. package/src/app/broadcast/utils/helper.d.ts +4 -0
  67. package/src/app/contact/components/ContactFormFields.d.ts +2 -1
  68. package/src/app/contact/config/contactForm.d.ts +4 -0
  69. package/src/app/dashboard/components/AgentCard.d.ts +11 -0
  70. package/src/app/dashboard/components/AgentPerformanceCard.d.ts +9 -0
  71. package/src/app/dashboard/components/AgentsCard.d.ts +9 -0
  72. package/src/app/dashboard/components/AgentsCardSkeleton.d.ts +2 -0
  73. package/src/app/dashboard/components/BroadcastAnalyticsCard.d.ts +11 -0
  74. package/src/app/dashboard/components/BroadcastCampaignProgressCard.d.ts +10 -0
  75. package/src/app/dashboard/components/BroadcastDashboard.d.ts +6 -0
  76. package/src/app/dashboard/components/BroadcastDashboardStatsCards.d.ts +14 -0
  77. package/src/app/dashboard/components/BroadcastRecipientsCard.d.ts +8 -0
  78. package/src/app/dashboard/components/BroadcastStatusDistributionCard.d.ts +6 -0
  79. package/src/app/dashboard/components/ConversationAnalyticsCard.d.ts +11 -0
  80. package/src/app/dashboard/components/DashboardSections.d.ts +24 -0
  81. package/src/app/dashboard/components/DashboardStatsCards.d.ts +10 -0
  82. package/src/app/dashboard/components/InboxDashboard.d.ts +10 -0
  83. package/src/app/dashboard/components/OpenedChatsCard.d.ts +8 -0
  84. package/src/app/dashboard/pages/DashboardNewPage.d.ts +2 -0
  85. package/src/app/dashboard/utils/buildBroadcastReportOverviewAnalytics.d.ts +19 -0
  86. package/src/app/dashboard/utils/buildRecipientsAnalytics.d.ts +12 -0
  87. package/src/app/dashboard/utils/dateHelpers.d.ts +24 -0
  88. package/src/app/generic/components/HeaderImageInput.d.ts +9 -0
  89. package/src/app/generic/components/MessagePreview.d.ts +3 -1
  90. package/src/app/generic/components/PhoneNumberInput.d.ts +13 -0
  91. package/src/app/generic/components/PreviewHeaderImage.d.ts +2 -1
  92. package/src/app/generic/components/TemplateParameterInputs.d.ts +2 -1
  93. package/src/app/generic/components/ToggleSetting.d.ts +3 -2
  94. package/src/app/generic/hooks/useGetProviderIcon.d.ts +2 -1
  95. package/src/app/generic/utils/logout.d.ts +1 -1
  96. package/src/app/inbox/components/Chat/ChatContent.d.ts +2 -3
  97. package/src/app/inbox/components/Chat/ChatHeader.d.ts +5 -1
  98. package/src/app/inbox/components/Chat/NoResultsFound.d.ts +3 -0
  99. package/src/app/inbox/components/Chat/index.d.ts +4 -1
  100. package/src/app/inbox/components/NewConvList/FilterDrawer.d.ts +17 -0
  101. package/src/app/inbox/components/NewConvList/HeaderSection.d.ts +6 -2
  102. package/src/app/inbox/components/NewConvList/index.d.ts +6 -2
  103. package/src/app/inbox/components/NewDetails/ChatDetails.d.ts +3 -2
  104. package/src/app/inbox/components/NewDetails/ChatDetailsAndTimeline.d.ts +3 -2
  105. package/src/app/inbox/components/NewDetails/ClientInfo.d.ts +3 -2
  106. package/src/app/inbox/components/NewDetails/ConversationOverview.d.ts +3 -2
  107. package/src/app/inbox/components/NewDetails/EditClientInfo.d.ts +3 -2
  108. package/src/app/inbox/components/NewDetails/index.d.ts +3 -2
  109. package/src/app/inbox/components/Shared/Inbox.d.ts +9 -7
  110. package/src/app/inbox/components/Shared/MobileActionSheet.d.ts +9 -0
  111. package/src/app/inbox/components/Shared/MobileMenu.d.ts +8 -0
  112. package/src/app/inbox/components/Shared/SharedStyle.d.ts +7 -0
  113. package/src/app/inbox/components/Shared/mobileMenuStyles.d.ts +20 -0
  114. package/src/app/inbox/constants/index.d.ts +1 -1
  115. package/src/app/inbox/hooks/useConversationById.d.ts +8 -0
  116. package/src/app/inbox/hooks/useConversationsPerodicFetch.d.ts +10 -0
  117. package/src/app/inbox/hooks/useInboxAssignableAis.d.ts +3 -0
  118. package/src/app/inbox/hooks/useMyAgent.d.ts +8 -0
  119. package/src/app/inbox/hooks/useNewSortedEvents.d.ts +1 -1
  120. package/src/app/inbox/utils/convs.d.ts +14 -5
  121. package/src/app/inbox/utils/inboxAssignableAis.d.ts +10 -0
  122. package/src/app/inbox/utils/mobileInboxStyles.d.ts +6 -0
  123. package/src/app/layout/components/CommandPalette.d.ts +16 -0
  124. package/src/app/layout/components/Header.d.ts +3 -5
  125. package/src/app/layout/constants/index.d.ts +24 -2
  126. package/src/app/layout/constants/subMenu.d.ts +34 -4
  127. package/src/app/layout/context/EmbeddedInboxContext.d.ts +3 -0
  128. package/src/app/layout/context/MobileInboxNavContext.d.ts +9 -0
  129. package/src/app/layout/hooks/useImportContactsEnabled.d.ts +1 -0
  130. package/src/app/layout/hooks/useMobileInboxVersion.d.ts +1 -3
  131. package/src/app/managemnet/components/CreateCrmWebhook.d.ts +6 -0
  132. package/src/app/managemnet/components/CreateQuickReply.d.ts +8 -0
  133. package/src/app/managemnet/components/channels/AddChannelDialog.d.ts +10 -0
  134. package/src/app/managemnet/components/channels/ChannelItem.d.ts +11 -0
  135. package/src/app/managemnet/components/channels/ChannelTypeCard.d.ts +15 -0
  136. package/src/app/managemnet/components/channels/EditChannelDialog.d.ts +11 -0
  137. package/src/app/managemnet/config/quickReplyDefinition.d.ts +4 -0
  138. package/src/app/managemnet/pages/crmIntegrations/index.d.ts +2 -0
  139. package/src/app/managemnet/pages/quickReplies/index.d.ts +2 -0
  140. package/src/app/onboarding/components/OnboardingChecklistGuideContent.d.ts +8 -0
  141. package/src/app/onboarding/components/OnboardingChecklistWidget.d.ts +2 -0
  142. package/src/app/onboarding/utils/onboardingChecklistStorage.d.ts +43 -0
  143. package/src/app/resources/components/Integrations/ChannelDialogLayout.d.ts +24 -0
  144. package/src/app/resources/components/Integrations/Custom/index.d.ts +7 -0
  145. package/src/app/resources/components/Integrations/Facebook/NoPagesFoundPopup.d.ts +2 -1
  146. package/src/app/resources/components/Integrations/Facebook/PagePickerPopup.d.ts +2 -1
  147. package/src/app/resources/components/Integrations/Facebook/index.d.ts +4 -1
  148. package/src/app/resources/components/Integrations/Instagram/index.d.ts +4 -1
  149. package/src/app/resources/components/Integrations/RenderCorrectIntegrationFlow.d.ts +11 -2
  150. package/src/app/resources/components/Integrations/Telegram/index.d.ts +4 -1
  151. package/src/app/resources/components/Integrations/WaGupshup/index.d.ts +7 -0
  152. package/src/app/resources/components/Integrations/WhatsApp/index.d.ts +4 -1
  153. package/src/app/subscriptions/components/Plans/PlanCard.d.ts +10 -23
  154. package/src/app/subscriptions/components/Plans/ShowcasePlans.d.ts +8 -4
  155. package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionHeader.d.ts +1 -9
  156. package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionPlanLabel.d.ts +8 -0
  157. package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionProfile.d.ts +1 -0
  158. package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionProfileCard.d.ts +14 -0
  159. package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionUsageCard.d.ts +7 -0
  160. package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionUsers.d.ts +3 -3
  161. package/src/app/subscriptions/components/SubscriptionSwitcher/Switcher.d.ts +4 -1
  162. package/src/app/subscriptions/components/SubscriptionSwitcher/index.d.ts +3 -1
  163. package/src/app/subscriptions/components/SubscriptionsList.d.ts +1 -0
  164. package/src/app/subscriptions/constants/Plans.d.ts +9 -6
  165. package/src/app/subscriptions/pages/Upgrade.d.ts +6 -9
  166. package/src/assets/locales/translations.d.ts +354 -5
  167. package/src/config/azure.d.ts +2 -0
  168. package/src/environments/types.d.ts +3 -0
  169. package/src/graphql.autogenerated.d.ts +2179 -1225
  170. package/src/graphql.billing.autogenerated.d.ts +683 -7
  171. package/src/lib/EmbeddedMobileMenu.d.ts +9 -0
  172. package/src/lib/conversation-chat.d.ts +11 -0
  173. package/src/lib/index.d.ts +4 -0
  174. package/src/main.d.ts +2 -0
  175. package/src/utils/formatFailureReason.d.ts +5 -0
  176. package/src/utils/globalHelper.d.ts +3 -0
  177. package/src/utils/integration.d.ts +6 -0
  178. package/src/utils/localStorage.d.ts +2 -0
  179. package/src/utils/textUtils.d.ts +3 -1
  180. package/src/app/resources/components/Integrations/Facebook/LoginPopup.d.ts +0 -4
  181. package/src/app/resources/components/Integrations/Instagram/LoginPopup.d.ts +0 -4
  182. 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'];
@@ -382,12 +591,27 @@ export type SubscriptionPlan = {
382
591
  reactivationPeriodLeft?: Maybe<Scalars['BigInt']['output']>;
383
592
  renewalInProgress: Scalars['Boolean']['output'];
384
593
  renewalsPaid: Scalars['Int']['output'];
594
+ skipUsageLimitEnforcement: Scalars['Boolean']['output'];
385
595
  startDate: Scalars['DateTime']['output'];
596
+ status?: Maybe<SubscriptionStatus>;
597
+ stripeCustomerId?: Maybe<Scalars['String']['output']>;
598
+ stripePriceId?: Maybe<Scalars['String']['output']>;
599
+ stripeSubscriptionId?: Maybe<Scalars['String']['output']>;
386
600
  term: Term;
387
601
  updatedAt: Scalars['DateTime']['output'];
388
602
  updatingPaymentTries: Scalars['Int']['output'];
389
603
  workspaceId: Scalars['Int']['output'];
390
604
  };
605
+ /** SubscriptionStatus represents the current state of a subscription. */
606
+ export declare const SubscriptionStatus: {
607
+ readonly ACTIVE: "active";
608
+ readonly CANCELED: "canceled";
609
+ readonly PAST_DUE: "past_due";
610
+ readonly PAUSED: "paused";
611
+ readonly TRIALING: "trialing";
612
+ readonly UNPAID: "unpaid";
613
+ };
614
+ export type SubscriptionStatus = typeof SubscriptionStatus[keyof typeof SubscriptionStatus];
391
615
  /** Term represents the subscription billing period. */
392
616
  export declare const Term: {
393
617
  readonly MONTHLY: "monthly";
@@ -421,6 +645,9 @@ export type TransactionInput = {
421
645
  export type TransactionsInput = {
422
646
  workspaceId: Scalars['Int']['input'];
423
647
  };
648
+ export type UnpauseSubscriptionInput = {
649
+ workspaceId: Scalars['Int']['input'];
650
+ };
424
651
  /** UpdateBillingInfoInput is an input for updating billing info (creates or updates by workspace). */
425
652
  export type UpdateBillingInfoInput = {
426
653
  address?: InputMaybe<Scalars['String']['input']>;
@@ -428,6 +655,19 @@ export type UpdateBillingInfoInput = {
428
655
  name?: InputMaybe<Scalars['String']['input']>;
429
656
  workspaceId: Scalars['Int']['input'];
430
657
  };
658
+ /** VerifyPolarSessionInput is an input for verifying a Polar checkout session. */
659
+ export type VerifyPolarSessionInput = {
660
+ sessionId: Scalars['String']['input'];
661
+ workspaceId: Scalars['Int']['input'];
662
+ };
663
+ /** VerifyStripeSessionInput is an input for verifying a Stripe checkout session. */
664
+ export type VerifyStripeSessionInput = {
665
+ sessionId: Scalars['String']['input'];
666
+ workspaceId: Scalars['Int']['input'];
667
+ };
668
+ export type WorkspacePlansInput = {
669
+ workspaceId: Scalars['Int']['input'];
670
+ };
431
671
  export type BillingInfoQueryVariables = Exact<{
432
672
  input: BillingInfoInput;
433
673
  }>;
@@ -491,8 +731,9 @@ export type PaymentMethodQuery = {
491
731
  stripeCard?: {
492
732
  __typename?: 'StripeCard';
493
733
  id: number;
494
- cardId: string;
495
- cardFingerprint?: string | null;
734
+ brand?: string | null;
735
+ last4?: string | null;
736
+ expireAt?: any | null;
496
737
  } | null;
497
738
  } | null;
498
739
  };
@@ -514,8 +755,9 @@ export type PaymentMethodsQuery = {
514
755
  stripeCard?: {
515
756
  __typename?: 'StripeCard';
516
757
  id: number;
517
- cardId: string;
518
- cardFingerprint?: string | null;
758
+ brand?: string | null;
759
+ last4?: string | null;
760
+ expireAt?: any | null;
519
761
  } | null;
520
762
  }>;
521
763
  };
@@ -561,6 +803,74 @@ export type PendingPaymentsQuery = {
561
803
  completedAt?: any | null;
562
804
  }>;
563
805
  };
806
+ export type PlanQueryVariables = Exact<{
807
+ input: PlanInput;
808
+ }>;
809
+ export type PlanQuery = {
810
+ __typename?: 'Query';
811
+ plan?: {
812
+ __typename?: 'Plan';
813
+ id: number;
814
+ userId: string;
815
+ planType: PlanType;
816
+ aiEnabled: boolean;
817
+ convCount: number;
818
+ broadcastMessageCount: number;
819
+ userCount: number;
820
+ monthlyPrice: number;
821
+ yearlyPrice: number;
822
+ isConvUsed?: boolean | null;
823
+ isBroadcastUsed?: boolean | null;
824
+ lastUseDate?: any | null;
825
+ isConv80PercentUsed?: boolean | null;
826
+ isConv100PercentUsed?: boolean | null;
827
+ isConv120PercentUsed?: boolean | null;
828
+ isBroadcast80PercentUsed?: boolean | null;
829
+ isBroadcast100PercentUsed?: boolean | null;
830
+ isBroadcast120PercentUsed?: boolean | null;
831
+ createdAt: any;
832
+ updatedAt: any;
833
+ deletedAt?: any | null;
834
+ } | null;
835
+ };
836
+ export type PlanPricingQueryVariables = Exact<{
837
+ input: PlanPricingInput;
838
+ }>;
839
+ export type PlanPricingQuery = {
840
+ __typename?: 'Query';
841
+ planPricing: {
842
+ __typename?: 'PlanPricing';
843
+ discountPercentage: number;
844
+ nonDiscountedPrice: number;
845
+ price: number;
846
+ paidToday: number;
847
+ creditsAdded: number;
848
+ creditsUsed: number;
849
+ promoDiscount: number;
850
+ };
851
+ };
852
+ export type PolarCheckoutMutationVariables = Exact<{
853
+ input: PolarCheckoutInput;
854
+ }>;
855
+ export type PolarCheckoutMutation = {
856
+ __typename?: 'Mutation';
857
+ polarCheckout: {
858
+ __typename?: 'PolarCheckoutResult';
859
+ sessionId: string;
860
+ sessionUrl: string;
861
+ };
862
+ };
863
+ export type PolarPortalSessionMutationVariables = Exact<{
864
+ input: PolarPortalSessionInput;
865
+ }>;
866
+ export type PolarPortalSessionMutation = {
867
+ __typename?: 'Mutation';
868
+ polarPortalSession: {
869
+ __typename?: 'PolarPortalSessionResult';
870
+ sessionId: string;
871
+ sessionUrl: string;
872
+ };
873
+ };
564
874
  export type RenewMutationVariables = Exact<{
565
875
  input: RenewInput;
566
876
  }>;
@@ -590,6 +900,28 @@ export type SetupPaymentMethodMutation = {
590
900
  stripeSetupIntent: string;
591
901
  };
592
902
  };
903
+ export type StripeCheckoutMutationVariables = Exact<{
904
+ input: StripeCheckoutInput;
905
+ }>;
906
+ export type StripeCheckoutMutation = {
907
+ __typename?: 'Mutation';
908
+ stripeCheckout: {
909
+ __typename?: 'StripeCheckoutResult';
910
+ sessionId: string;
911
+ sessionUrl: string;
912
+ };
913
+ };
914
+ export type StripePortalSessionMutationVariables = Exact<{
915
+ input: StripePortalSessionInput;
916
+ }>;
917
+ export type StripePortalSessionMutation = {
918
+ __typename?: 'Mutation';
919
+ stripePortalSession: {
920
+ __typename?: 'StripePortalSessionResult';
921
+ sessionId: string;
922
+ sessionUrl: string;
923
+ };
924
+ };
593
925
  export type SubscriptionQueryVariables = Exact<{
594
926
  input: SubscriptionInput;
595
927
  }>;
@@ -599,6 +931,8 @@ export type SubscriptionQuery = {
599
931
  __typename?: 'SubscriptionPlan';
600
932
  id: number;
601
933
  workspaceId: number;
934
+ status?: SubscriptionStatus | null;
935
+ stripeCustomerId?: string | null;
602
936
  freeCredits: number;
603
937
  planId: number;
604
938
  term: Term;
@@ -619,6 +953,7 @@ export type SubscriptionQuery = {
619
953
  promoType?: string | null;
620
954
  promoValue?: number | null;
621
955
  isUsed?: boolean | null;
956
+ skipUsageLimitEnforcement: boolean;
622
957
  createdAt: any;
623
958
  updatedAt: any;
624
959
  plan?: {
@@ -626,6 +961,7 @@ export type SubscriptionQuery = {
626
961
  id: number;
627
962
  userId: string;
628
963
  planType: PlanType;
964
+ aiEnabled: boolean;
629
965
  convCount: number;
630
966
  broadcastMessageCount: number;
631
967
  userCount: number;
@@ -636,8 +972,10 @@ export type SubscriptionQuery = {
636
972
  lastUseDate?: any | null;
637
973
  isConv80PercentUsed?: boolean | null;
638
974
  isConv100PercentUsed?: boolean | null;
975
+ isConv120PercentUsed?: boolean | null;
639
976
  isBroadcast80PercentUsed?: boolean | null;
640
977
  isBroadcast100PercentUsed?: boolean | null;
978
+ isBroadcast120PercentUsed?: boolean | null;
641
979
  createdAt: any;
642
980
  updatedAt: any;
643
981
  deletedAt?: any | null;
@@ -708,6 +1046,80 @@ export type UpdateBillingInfoMutation = {
708
1046
  updatedAt?: any | null;
709
1047
  };
710
1048
  };
1049
+ export type VerifyPolarSessionQueryVariables = Exact<{
1050
+ input: VerifyPolarSessionInput;
1051
+ }>;
1052
+ export type VerifyPolarSessionQuery = {
1053
+ __typename?: 'Query';
1054
+ verifyPolarSession: {
1055
+ __typename?: 'PolarSessionResult';
1056
+ customerId?: string | null;
1057
+ subscriptionId?: string | null;
1058
+ paymentStatus: string;
1059
+ metadata?: {
1060
+ __typename?: 'PolarSessionMetadata';
1061
+ workspaceId?: string | null;
1062
+ planType?: string | null;
1063
+ term?: string | null;
1064
+ userId?: string | null;
1065
+ } | null;
1066
+ lineItems: Array<{
1067
+ __typename?: 'PolarSessionLineItem';
1068
+ priceId?: string | null;
1069
+ productId?: string | null;
1070
+ description?: string | null;
1071
+ quantity?: number | null;
1072
+ unitAmount?: number | null;
1073
+ currency?: string | null;
1074
+ }>;
1075
+ plan?: {
1076
+ __typename?: 'PolarSessionPlanInfo';
1077
+ planType?: PlanType | null;
1078
+ term?: Term | null;
1079
+ convCount?: number | null;
1080
+ broadcastMessageCount?: number | null;
1081
+ userCount?: number | null;
1082
+ monthlyPrice?: number | null;
1083
+ } | null;
1084
+ };
1085
+ };
1086
+ export type VerifyStripeSessionQueryVariables = Exact<{
1087
+ input: VerifyStripeSessionInput;
1088
+ }>;
1089
+ export type VerifyStripeSessionQuery = {
1090
+ __typename?: 'Query';
1091
+ verifyStripeSession: {
1092
+ __typename?: 'StripeSessionResult';
1093
+ customerId?: string | null;
1094
+ subscriptionId?: string | null;
1095
+ paymentStatus: string;
1096
+ metadata?: {
1097
+ __typename?: 'StripeSessionMetadata';
1098
+ workspaceId?: string | null;
1099
+ planType?: string | null;
1100
+ term?: string | null;
1101
+ userId?: string | null;
1102
+ } | null;
1103
+ lineItems: Array<{
1104
+ __typename?: 'StripeSessionLineItem';
1105
+ priceId?: string | null;
1106
+ productId?: string | null;
1107
+ description?: string | null;
1108
+ quantity?: number | null;
1109
+ unitAmount?: number | null;
1110
+ currency?: string | null;
1111
+ }>;
1112
+ plan?: {
1113
+ __typename?: 'StripeSessionPlanInfo';
1114
+ planType?: PlanType | null;
1115
+ term?: Term | null;
1116
+ convCount?: number | null;
1117
+ broadcastMessageCount?: number | null;
1118
+ userCount?: number | null;
1119
+ monthlyPrice?: number | null;
1120
+ } | null;
1121
+ };
1122
+ };
711
1123
  export declare const BillingInfoDocument: Apollo.DocumentNode;
712
1124
  /**
713
1125
  * __useBillingInfoQuery__
@@ -963,6 +1375,138 @@ export declare function refetchPendingPaymentsQuery(variables: PendingPaymentsQu
963
1375
  input: PendingPaymentsInput;
964
1376
  }>;
965
1377
  };
1378
+ export declare const PlanDocument: Apollo.DocumentNode;
1379
+ /**
1380
+ * __usePlanQuery__
1381
+ *
1382
+ * To run a query within a React component, call `usePlanQuery` and pass it any options that fit your needs.
1383
+ * When your component renders, `usePlanQuery` returns an object from Apollo Client that contains loading, error, and data properties
1384
+ * you can use to render your UI.
1385
+ *
1386
+ * @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;
1387
+ *
1388
+ * @example
1389
+ * const { data, loading, error } = usePlanQuery({
1390
+ * variables: {
1391
+ * input: // value for 'input'
1392
+ * },
1393
+ * });
1394
+ */
1395
+ export declare function usePlanQuery(baseOptions: Apollo.QueryHookOptions<PlanQuery, PlanQueryVariables> & ({
1396
+ variables: PlanQueryVariables;
1397
+ skip?: boolean;
1398
+ } | {
1399
+ skip: boolean;
1400
+ })): Apollo.QueryResult<PlanQuery, Exact<{
1401
+ input: PlanInput;
1402
+ }>>;
1403
+ export declare function usePlanLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<PlanQuery, PlanQueryVariables>): Apollo.LazyQueryResultTuple<PlanQuery, Exact<{
1404
+ input: PlanInput;
1405
+ }>>;
1406
+ export declare function usePlanSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<PlanQuery, PlanQueryVariables>): Apollo.UseSuspenseQueryResult<PlanQuery | undefined, Exact<{
1407
+ input: PlanInput;
1408
+ }>>;
1409
+ export type PlanQueryHookResult = ReturnType<typeof usePlanQuery>;
1410
+ export type PlanLazyQueryHookResult = ReturnType<typeof usePlanLazyQuery>;
1411
+ export type PlanSuspenseQueryHookResult = ReturnType<typeof usePlanSuspenseQuery>;
1412
+ export type PlanQueryResult = Apollo.QueryResult<PlanQuery, PlanQueryVariables>;
1413
+ export declare function refetchPlanQuery(variables: PlanQueryVariables): {
1414
+ query: Apollo.DocumentNode;
1415
+ variables: Exact<{
1416
+ input: PlanInput;
1417
+ }>;
1418
+ };
1419
+ export declare const PlanPricingDocument: Apollo.DocumentNode;
1420
+ /**
1421
+ * __usePlanPricingQuery__
1422
+ *
1423
+ * To run a query within a React component, call `usePlanPricingQuery` and pass it any options that fit your needs.
1424
+ * When your component renders, `usePlanPricingQuery` returns an object from Apollo Client that contains loading, error, and data properties
1425
+ * you can use to render your UI.
1426
+ *
1427
+ * @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;
1428
+ *
1429
+ * @example
1430
+ * const { data, loading, error } = usePlanPricingQuery({
1431
+ * variables: {
1432
+ * input: // value for 'input'
1433
+ * },
1434
+ * });
1435
+ */
1436
+ export declare function usePlanPricingQuery(baseOptions: Apollo.QueryHookOptions<PlanPricingQuery, PlanPricingQueryVariables> & ({
1437
+ variables: PlanPricingQueryVariables;
1438
+ skip?: boolean;
1439
+ } | {
1440
+ skip: boolean;
1441
+ })): Apollo.QueryResult<PlanPricingQuery, Exact<{
1442
+ input: PlanPricingInput;
1443
+ }>>;
1444
+ export declare function usePlanPricingLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<PlanPricingQuery, PlanPricingQueryVariables>): Apollo.LazyQueryResultTuple<PlanPricingQuery, Exact<{
1445
+ input: PlanPricingInput;
1446
+ }>>;
1447
+ export declare function usePlanPricingSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<PlanPricingQuery, PlanPricingQueryVariables>): Apollo.UseSuspenseQueryResult<PlanPricingQuery | undefined, Exact<{
1448
+ input: PlanPricingInput;
1449
+ }>>;
1450
+ export type PlanPricingQueryHookResult = ReturnType<typeof usePlanPricingQuery>;
1451
+ export type PlanPricingLazyQueryHookResult = ReturnType<typeof usePlanPricingLazyQuery>;
1452
+ export type PlanPricingSuspenseQueryHookResult = ReturnType<typeof usePlanPricingSuspenseQuery>;
1453
+ export type PlanPricingQueryResult = Apollo.QueryResult<PlanPricingQuery, PlanPricingQueryVariables>;
1454
+ export declare function refetchPlanPricingQuery(variables: PlanPricingQueryVariables): {
1455
+ query: Apollo.DocumentNode;
1456
+ variables: Exact<{
1457
+ input: PlanPricingInput;
1458
+ }>;
1459
+ };
1460
+ export declare const PolarCheckoutDocument: Apollo.DocumentNode;
1461
+ export type PolarCheckoutMutationFn = Apollo.MutationFunction<PolarCheckoutMutation, PolarCheckoutMutationVariables>;
1462
+ /**
1463
+ * __usePolarCheckoutMutation__
1464
+ *
1465
+ * To run a mutation, you first call `usePolarCheckoutMutation` within a React component and pass it any options that fit your needs.
1466
+ * When your component renders, `usePolarCheckoutMutation` returns a tuple that includes:
1467
+ * - A mutate function that you can call at any time to execute the mutation
1468
+ * - An object with fields that represent the current status of the mutation's execution
1469
+ *
1470
+ * @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;
1471
+ *
1472
+ * @example
1473
+ * const [polarCheckoutMutation, { data, loading, error }] = usePolarCheckoutMutation({
1474
+ * variables: {
1475
+ * input: // value for 'input'
1476
+ * },
1477
+ * });
1478
+ */
1479
+ export declare function usePolarCheckoutMutation(baseOptions?: Apollo.MutationHookOptions<PolarCheckoutMutation, PolarCheckoutMutationVariables>): Apollo.MutationTuple<PolarCheckoutMutation, Exact<{
1480
+ input: PolarCheckoutInput;
1481
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
1482
+ export type PolarCheckoutMutationHookResult = ReturnType<typeof usePolarCheckoutMutation>;
1483
+ export type PolarCheckoutMutationResult = Apollo.MutationResult<PolarCheckoutMutation>;
1484
+ export type PolarCheckoutMutationOptions = Apollo.BaseMutationOptions<PolarCheckoutMutation, PolarCheckoutMutationVariables>;
1485
+ export declare const PolarPortalSessionDocument: Apollo.DocumentNode;
1486
+ export type PolarPortalSessionMutationFn = Apollo.MutationFunction<PolarPortalSessionMutation, PolarPortalSessionMutationVariables>;
1487
+ /**
1488
+ * __usePolarPortalSessionMutation__
1489
+ *
1490
+ * To run a mutation, you first call `usePolarPortalSessionMutation` within a React component and pass it any options that fit your needs.
1491
+ * When your component renders, `usePolarPortalSessionMutation` returns a tuple that includes:
1492
+ * - A mutate function that you can call at any time to execute the mutation
1493
+ * - An object with fields that represent the current status of the mutation's execution
1494
+ *
1495
+ * @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;
1496
+ *
1497
+ * @example
1498
+ * const [polarPortalSessionMutation, { data, loading, error }] = usePolarPortalSessionMutation({
1499
+ * variables: {
1500
+ * input: // value for 'input'
1501
+ * },
1502
+ * });
1503
+ */
1504
+ export declare function usePolarPortalSessionMutation(baseOptions?: Apollo.MutationHookOptions<PolarPortalSessionMutation, PolarPortalSessionMutationVariables>): Apollo.MutationTuple<PolarPortalSessionMutation, Exact<{
1505
+ input: PolarPortalSessionInput;
1506
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
1507
+ export type PolarPortalSessionMutationHookResult = ReturnType<typeof usePolarPortalSessionMutation>;
1508
+ export type PolarPortalSessionMutationResult = Apollo.MutationResult<PolarPortalSessionMutation>;
1509
+ export type PolarPortalSessionMutationOptions = Apollo.BaseMutationOptions<PolarPortalSessionMutation, PolarPortalSessionMutationVariables>;
966
1510
  export declare const RenewDocument: Apollo.DocumentNode;
967
1511
  export type RenewMutationFn = Apollo.MutationFunction<RenewMutation, RenewMutationVariables>;
968
1512
  /**
@@ -1013,6 +1557,56 @@ export declare function useSetupPaymentMethodMutation(baseOptions?: Apollo.Mutat
1013
1557
  export type SetupPaymentMethodMutationHookResult = ReturnType<typeof useSetupPaymentMethodMutation>;
1014
1558
  export type SetupPaymentMethodMutationResult = Apollo.MutationResult<SetupPaymentMethodMutation>;
1015
1559
  export type SetupPaymentMethodMutationOptions = Apollo.BaseMutationOptions<SetupPaymentMethodMutation, SetupPaymentMethodMutationVariables>;
1560
+ export declare const StripeCheckoutDocument: Apollo.DocumentNode;
1561
+ export type StripeCheckoutMutationFn = Apollo.MutationFunction<StripeCheckoutMutation, StripeCheckoutMutationVariables>;
1562
+ /**
1563
+ * __useStripeCheckoutMutation__
1564
+ *
1565
+ * To run a mutation, you first call `useStripeCheckoutMutation` within a React component and pass it any options that fit your needs.
1566
+ * When your component renders, `useStripeCheckoutMutation` returns a tuple that includes:
1567
+ * - A mutate function that you can call at any time to execute the mutation
1568
+ * - An object with fields that represent the current status of the mutation's execution
1569
+ *
1570
+ * @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;
1571
+ *
1572
+ * @example
1573
+ * const [stripeCheckoutMutation, { data, loading, error }] = useStripeCheckoutMutation({
1574
+ * variables: {
1575
+ * input: // value for 'input'
1576
+ * },
1577
+ * });
1578
+ */
1579
+ export declare function useStripeCheckoutMutation(baseOptions?: Apollo.MutationHookOptions<StripeCheckoutMutation, StripeCheckoutMutationVariables>): Apollo.MutationTuple<StripeCheckoutMutation, Exact<{
1580
+ input: StripeCheckoutInput;
1581
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
1582
+ export type StripeCheckoutMutationHookResult = ReturnType<typeof useStripeCheckoutMutation>;
1583
+ export type StripeCheckoutMutationResult = Apollo.MutationResult<StripeCheckoutMutation>;
1584
+ export type StripeCheckoutMutationOptions = Apollo.BaseMutationOptions<StripeCheckoutMutation, StripeCheckoutMutationVariables>;
1585
+ export declare const StripePortalSessionDocument: Apollo.DocumentNode;
1586
+ export type StripePortalSessionMutationFn = Apollo.MutationFunction<StripePortalSessionMutation, StripePortalSessionMutationVariables>;
1587
+ /**
1588
+ * __useStripePortalSessionMutation__
1589
+ *
1590
+ * To run a mutation, you first call `useStripePortalSessionMutation` within a React component and pass it any options that fit your needs.
1591
+ * When your component renders, `useStripePortalSessionMutation` returns a tuple that includes:
1592
+ * - A mutate function that you can call at any time to execute the mutation
1593
+ * - An object with fields that represent the current status of the mutation's execution
1594
+ *
1595
+ * @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;
1596
+ *
1597
+ * @example
1598
+ * const [stripePortalSessionMutation, { data, loading, error }] = useStripePortalSessionMutation({
1599
+ * variables: {
1600
+ * input: // value for 'input'
1601
+ * },
1602
+ * });
1603
+ */
1604
+ export declare function useStripePortalSessionMutation(baseOptions?: Apollo.MutationHookOptions<StripePortalSessionMutation, StripePortalSessionMutationVariables>): Apollo.MutationTuple<StripePortalSessionMutation, Exact<{
1605
+ input: StripePortalSessionInput;
1606
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
1607
+ export type StripePortalSessionMutationHookResult = ReturnType<typeof useStripePortalSessionMutation>;
1608
+ export type StripePortalSessionMutationResult = Apollo.MutationResult<StripePortalSessionMutation>;
1609
+ export type StripePortalSessionMutationOptions = Apollo.BaseMutationOptions<StripePortalSessionMutation, StripePortalSessionMutationVariables>;
1016
1610
  export declare const SubscriptionDocument: Apollo.DocumentNode;
1017
1611
  /**
1018
1612
  * __useSubscriptionQuery__
@@ -1161,3 +1755,85 @@ export declare function useUpdateBillingInfoMutation(baseOptions?: Apollo.Mutati
1161
1755
  export type UpdateBillingInfoMutationHookResult = ReturnType<typeof useUpdateBillingInfoMutation>;
1162
1756
  export type UpdateBillingInfoMutationResult = Apollo.MutationResult<UpdateBillingInfoMutation>;
1163
1757
  export type UpdateBillingInfoMutationOptions = Apollo.BaseMutationOptions<UpdateBillingInfoMutation, UpdateBillingInfoMutationVariables>;
1758
+ export declare const VerifyPolarSessionDocument: Apollo.DocumentNode;
1759
+ /**
1760
+ * __useVerifyPolarSessionQuery__
1761
+ *
1762
+ * To run a query within a React component, call `useVerifyPolarSessionQuery` and pass it any options that fit your needs.
1763
+ * When your component renders, `useVerifyPolarSessionQuery` returns an object from Apollo Client that contains loading, error, and data properties
1764
+ * you can use to render your UI.
1765
+ *
1766
+ * @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;
1767
+ *
1768
+ * @example
1769
+ * const { data, loading, error } = useVerifyPolarSessionQuery({
1770
+ * variables: {
1771
+ * input: // value for 'input'
1772
+ * },
1773
+ * });
1774
+ */
1775
+ export declare function useVerifyPolarSessionQuery(baseOptions: Apollo.QueryHookOptions<VerifyPolarSessionQuery, VerifyPolarSessionQueryVariables> & ({
1776
+ variables: VerifyPolarSessionQueryVariables;
1777
+ skip?: boolean;
1778
+ } | {
1779
+ skip: boolean;
1780
+ })): Apollo.QueryResult<VerifyPolarSessionQuery, Exact<{
1781
+ input: VerifyPolarSessionInput;
1782
+ }>>;
1783
+ export declare function useVerifyPolarSessionLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<VerifyPolarSessionQuery, VerifyPolarSessionQueryVariables>): Apollo.LazyQueryResultTuple<VerifyPolarSessionQuery, Exact<{
1784
+ input: VerifyPolarSessionInput;
1785
+ }>>;
1786
+ export declare function useVerifyPolarSessionSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<VerifyPolarSessionQuery, VerifyPolarSessionQueryVariables>): Apollo.UseSuspenseQueryResult<VerifyPolarSessionQuery | undefined, Exact<{
1787
+ input: VerifyPolarSessionInput;
1788
+ }>>;
1789
+ export type VerifyPolarSessionQueryHookResult = ReturnType<typeof useVerifyPolarSessionQuery>;
1790
+ export type VerifyPolarSessionLazyQueryHookResult = ReturnType<typeof useVerifyPolarSessionLazyQuery>;
1791
+ export type VerifyPolarSessionSuspenseQueryHookResult = ReturnType<typeof useVerifyPolarSessionSuspenseQuery>;
1792
+ export type VerifyPolarSessionQueryResult = Apollo.QueryResult<VerifyPolarSessionQuery, VerifyPolarSessionQueryVariables>;
1793
+ export declare function refetchVerifyPolarSessionQuery(variables: VerifyPolarSessionQueryVariables): {
1794
+ query: Apollo.DocumentNode;
1795
+ variables: Exact<{
1796
+ input: VerifyPolarSessionInput;
1797
+ }>;
1798
+ };
1799
+ export declare const VerifyStripeSessionDocument: Apollo.DocumentNode;
1800
+ /**
1801
+ * __useVerifyStripeSessionQuery__
1802
+ *
1803
+ * To run a query within a React component, call `useVerifyStripeSessionQuery` and pass it any options that fit your needs.
1804
+ * When your component renders, `useVerifyStripeSessionQuery` returns an object from Apollo Client that contains loading, error, and data properties
1805
+ * you can use to render your UI.
1806
+ *
1807
+ * @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;
1808
+ *
1809
+ * @example
1810
+ * const { data, loading, error } = useVerifyStripeSessionQuery({
1811
+ * variables: {
1812
+ * input: // value for 'input'
1813
+ * },
1814
+ * });
1815
+ */
1816
+ export declare function useVerifyStripeSessionQuery(baseOptions: Apollo.QueryHookOptions<VerifyStripeSessionQuery, VerifyStripeSessionQueryVariables> & ({
1817
+ variables: VerifyStripeSessionQueryVariables;
1818
+ skip?: boolean;
1819
+ } | {
1820
+ skip: boolean;
1821
+ })): Apollo.QueryResult<VerifyStripeSessionQuery, Exact<{
1822
+ input: VerifyStripeSessionInput;
1823
+ }>>;
1824
+ export declare function useVerifyStripeSessionLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<VerifyStripeSessionQuery, VerifyStripeSessionQueryVariables>): Apollo.LazyQueryResultTuple<VerifyStripeSessionQuery, Exact<{
1825
+ input: VerifyStripeSessionInput;
1826
+ }>>;
1827
+ export declare function useVerifyStripeSessionSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<VerifyStripeSessionQuery, VerifyStripeSessionQueryVariables>): Apollo.UseSuspenseQueryResult<VerifyStripeSessionQuery | undefined, Exact<{
1828
+ input: VerifyStripeSessionInput;
1829
+ }>>;
1830
+ export type VerifyStripeSessionQueryHookResult = ReturnType<typeof useVerifyStripeSessionQuery>;
1831
+ export type VerifyStripeSessionLazyQueryHookResult = ReturnType<typeof useVerifyStripeSessionLazyQuery>;
1832
+ export type VerifyStripeSessionSuspenseQueryHookResult = ReturnType<typeof useVerifyStripeSessionSuspenseQuery>;
1833
+ export type VerifyStripeSessionQueryResult = Apollo.QueryResult<VerifyStripeSessionQuery, VerifyStripeSessionQueryVariables>;
1834
+ export declare function refetchVerifyStripeSessionQuery(variables: VerifyStripeSessionQueryVariables): {
1835
+ query: Apollo.DocumentNode;
1836
+ variables: Exact<{
1837
+ input: VerifyStripeSessionInput;
1838
+ }>;
1839
+ };