@outseta/react 0.4.37 → 0.4.39

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.
package/dist/index.js CHANGED
@@ -3583,6 +3583,10 @@ var CancelationStatus = {
3583
3583
  Removed: 3,
3584
3584
  Deleted: 4
3585
3585
  };
3586
+ var BillingSystem = {
3587
+ Outseta: 1,
3588
+ Stripe: 2
3589
+ };
3586
3590
  var TeamRole = {
3587
3591
  Admin: 1,
3588
3592
  Member: 2,
@@ -3598,10 +3602,6 @@ var EmailListSubscriberStatus = {
3598
3602
  Cleaned: 3,
3599
3603
  Confirmed: 4
3600
3604
  };
3601
- var BillingSystem = {
3602
- Outseta: 1,
3603
- Stripe: 2
3604
- };
3605
3605
  var SupportCaseStatus = {
3606
3606
  Open: 1,
3607
3607
  Closed: 2,
@@ -3655,6 +3655,8 @@ var QcountConfigSettingType = {
3655
3655
  TwoFactorAuthenticationEnabled: 140,
3656
3656
  ForceTwoFactorAuthentication: 142,
3657
3657
  MagicLinkLoginEnabled: 143,
3658
+ GoogleAnalyticsMeasurementId: 170,
3659
+ GoogleAnalyticsApiSecret: 171,
3658
3660
  Stripe_TaxEnabled: 190,
3659
3661
  Stripe_TaxIdTypes: 192,
3660
3662
  Stripe_ApplePayMerchantIdDomainAssociation: 193,
@@ -3944,6 +3946,10 @@ var AccountWebhookEntityCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = {
3944
3946
  Uncollectible: 6,
3945
3947
  Processing: 7
3946
3948
  };
3949
+ var AccountWebhookEntityTenantBillingSystem = {
3950
+ Outseta: 1,
3951
+ Stripe: 2
3952
+ };
3947
3953
  var AccountWebhookEntityLatestSubscriptionBillingRenewalTerm = {
3948
3954
  Monthly: 1,
3949
3955
  Yearly: 2,
@@ -4010,6 +4016,10 @@ var PersonWebhookEntityAccountAccountStage = {
4010
4016
  Paused: 9,
4011
4017
  Created: 10
4012
4018
  };
4019
+ var PersonWebhookEntityAccountTenantBillingSystem = {
4020
+ Outseta: 1,
4021
+ Stripe: 2
4022
+ };
4013
4023
  var PersonWebhookEntityEmailListPersonItemEmailListSubscriberStatus = {
4014
4024
  Subscribed: 1,
4015
4025
  Unsubscribed: 2,
@@ -4031,6 +4041,10 @@ var DealWebhookEntityAccountAccountStage = {
4031
4041
  Paused: 9,
4032
4042
  Created: 10
4033
4043
  };
4044
+ var DealWebhookEntityAccountTenantBillingSystem = {
4045
+ Outseta: 1,
4046
+ Stripe: 2
4047
+ };
4034
4048
  var DealWebhookEntityOwnerOAuthIntegrationStatus = {
4035
4049
  None: 0,
4036
4050
  Gmail: 1
@@ -4082,6 +4096,7 @@ export {
4082
4096
  AccountWebhookEntitySubscriptionsItemPlanAccountRegistrationMode,
4083
4097
  AccountWebhookEntitySubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType,
4084
4098
  AccountWebhookEntitySubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm,
4099
+ AccountWebhookEntityTenantBillingSystem,
4085
4100
  ActivityType,
4086
4101
  AddOnChangeType,
4087
4102
  AddOnWebhookEntityBillingAddOnType,
@@ -4102,6 +4117,7 @@ export {
4102
4117
  ContentGroupItemMatchMode,
4103
4118
  DatabaseType,
4104
4119
  DealWebhookEntityAccountAccountStage,
4120
+ DealWebhookEntityAccountTenantBillingSystem,
4105
4121
  DealWebhookEntityOwnerOAuthIntegrationStatus,
4106
4122
  DeserializationStatus,
4107
4123
  EmailListButton,
@@ -4119,6 +4135,7 @@ export {
4119
4135
  PaymentsGatewayActivationStatus,
4120
4136
  PaymentsMode,
4121
4137
  PersonWebhookEntityAccountAccountStage,
4138
+ PersonWebhookEntityAccountTenantBillingSystem,
4122
4139
  PersonWebhookEntityEmailListPersonItemEmailListSubscriberStatus,
4123
4140
  PersonWebhookEntityOAuthIntegrationStatus,
4124
4141
  PersonWebhookEntityPersonAccountItemRole,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@outseta/react",
3
- "version": "0.4.37",
3
+ "version": "0.4.39",
4
4
  "description": "React hooks and components for the Outseta API",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -18,7 +18,7 @@
18
18
  }
19
19
  },
20
20
  "dependencies": {
21
- "@outseta/api-client": "0.3.43"
21
+ "@outseta/api-client": "0.3.45"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "react": "^18.0.0 || ^19.0.0"
@@ -461,6 +461,11 @@ export type AccountAllOfPaymentInformation = PaymentInformation | null;
461
461
  */
462
462
  export type AccountAllOfCurrentSubscription = Subscription | null;
463
463
 
464
+ /**
465
+ * @nullable
466
+ */
467
+ export type AccountAllOfTenantBillingSystem = BillingSystem | null;
468
+
464
469
  /**
465
470
  * @nullable
466
471
  */
@@ -605,6 +610,8 @@ export type AccountAllOf = {
605
610
  CurrentSubscription?: AccountAllOfCurrentSubscription;
606
611
  /** @nullable */
607
612
  DomainName?: string | null;
613
+ /** @nullable */
614
+ TenantBillingSystem?: AccountAllOfTenantBillingSystem;
608
615
  HasLoggedIn?: boolean;
609
616
  /** @nullable */
610
617
  LatestSubscription?: AccountAllOfLatestSubscription;
@@ -2638,6 +2645,18 @@ export type AbstractStripeBeanOfTaxIdAllOf = {
2638
2645
 
2639
2646
  export type AbstractStripeBeanOfTaxId = AbstractSchemaLessBean & AbstractStripeBeanOfTaxIdAllOf;
2640
2647
 
2648
+ /**
2649
+ * `1` - Outseta, `2` - Stripe
2650
+ */
2651
+ export type BillingSystem = typeof BillingSystem[keyof typeof BillingSystem];
2652
+
2653
+
2654
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
2655
+ export const BillingSystem = {
2656
+ Outseta: 1,
2657
+ Stripe: 2,
2658
+ } as const;
2659
+
2641
2660
  export type AbstractStripeBeanOfCustomerAllOf = {
2642
2661
  /**
2643
2662
  * @maxLength 255
@@ -2985,18 +3004,6 @@ export type NoCodeSettingsAllOf = {
2985
3004
 
2986
3005
  export type NoCodeSettings = AbstractQcountBean & NoCodeSettingsAllOf;
2987
3006
 
2988
- /**
2989
- * `1` - Outseta, `2` - Stripe
2990
- */
2991
- export type BillingSystem = typeof BillingSystem[keyof typeof BillingSystem];
2992
-
2993
-
2994
- // eslint-disable-next-line @typescript-eslint/no-redeclare
2995
- export const BillingSystem = {
2996
- Outseta: 1,
2997
- Stripe: 2,
2998
- } as const;
2999
-
3000
3007
  export type ClientApplicationAllOf = {
3001
3008
  /**
3002
3009
  * @maxLength 20
@@ -3449,7 +3456,7 @@ export type QcountConfigAllOf = {
3449
3456
  export type QcountConfig = AbstractQcountBean & QcountConfigAllOf;
3450
3457
 
3451
3458
  /**
3452
- * `100` - Slack, `102` - MagicLinkApiKey, `103` - MagicLinkApiKeySecret, `104` - OAuth_HideCreateAccountLink, `105` - Chat_IsOffline, `106` - HostedPageCustomCode, `107` - RegistrationConfirmationEmailDelaySeconds, `108` - AccountCancellationReasons, `110` - WebhookSignatureKey, `111` - HostedProfileBackLink, `112` - AccountCancellationReasonRequired, `114` - Email_OutsetaBrandingDisabled, `119` - Email_BlacklistedInboundEmails, `121` - PasswordPolicy, `123` - CRM_FieldSortingEnabled, `124` - CRM_RegistrationCallbackLocations, `125` - KnowledgeBaseVersion, `126` - Support_SpamThreshold, `127` - Email_RestrictedPhrases, `128` - KnowledgeBaseLanguage, `130` - Billing_System, `131` - Billing_RestrictSubscriptionActions, `140` - TwoFactorAuthenticationEnabled, `142` - ForceTwoFactorAuthentication, `143` - MagicLinkLoginEnabled, `190` - Stripe_TaxEnabled, `192` - Stripe_TaxIdTypes, `193` - Stripe_ApplePayMerchantIdDomainAssociation, `194` - Stripe_WebhookSecret, `195` - Stripe_OnlySyncOutsetaCustomers, `196` - Stripe_Checkout_RequireBillingAddress, `197` - Stripe_Checkout_RequireConsentTermsOfService, `200` - Webflow_AccessToken, `201` - Webflow_SyncEnabled, `202` - Webflow_SyncConfiguration, `203` - Webflow_ApiVersion, `550` - CopyQcount_AddOnMap, `551` - CopyQcount_AccountMap, `552` - CopyQcount_DiscountCouponMap, `553` - CopyQcount_InvoiceMap, `554` - CopyQcount_PersonMap, `555` - CopyQcount_PlanMap, `556` - CopyQcount_PlanFamilyMap, `557` - CopyQcount_SubscriptionMap, `558` - CopyQcount_TransactionMap, `570` - StripeMigration_LastAccountId, `571` - StripeMigration_LastInvoiceId, `572` - StripeMigration_LastExpiredSubscriptionId, `573` - StripeMigration_LastPostExportSubscriptionId, `574` - StripeMigration_LastUsageId, `575` - StripeMigration_SubscriptionExportDate, `576` - StripeMigration_SubscriptionExportIds, `577` - StripeMigration_SubscriptionAddOnExportIds, `578` - StripeMigration_SubscriptionCutoverDate, `579` - StripeMigration_LastPreCutoverExportSubscriptionId
3459
+ * `100` - Slack, `102` - MagicLinkApiKey, `103` - MagicLinkApiKeySecret, `104` - OAuth_HideCreateAccountLink, `105` - Chat_IsOffline, `106` - HostedPageCustomCode, `107` - RegistrationConfirmationEmailDelaySeconds, `108` - AccountCancellationReasons, `110` - WebhookSignatureKey, `111` - HostedProfileBackLink, `112` - AccountCancellationReasonRequired, `114` - Email_OutsetaBrandingDisabled, `119` - Email_BlacklistedInboundEmails, `121` - PasswordPolicy, `123` - CRM_FieldSortingEnabled, `124` - CRM_RegistrationCallbackLocations, `125` - KnowledgeBaseVersion, `126` - Support_SpamThreshold, `127` - Email_RestrictedPhrases, `128` - KnowledgeBaseLanguage, `130` - Billing_System, `131` - Billing_RestrictSubscriptionActions, `140` - TwoFactorAuthenticationEnabled, `142` - ForceTwoFactorAuthentication, `143` - MagicLinkLoginEnabled, `170` - GoogleAnalyticsMeasurementId, `171` - GoogleAnalyticsApiSecret, `190` - Stripe_TaxEnabled, `192` - Stripe_TaxIdTypes, `193` - Stripe_ApplePayMerchantIdDomainAssociation, `194` - Stripe_WebhookSecret, `195` - Stripe_OnlySyncOutsetaCustomers, `196` - Stripe_Checkout_RequireBillingAddress, `197` - Stripe_Checkout_RequireConsentTermsOfService, `200` - Webflow_AccessToken, `201` - Webflow_SyncEnabled, `202` - Webflow_SyncConfiguration, `203` - Webflow_ApiVersion, `550` - CopyQcount_AddOnMap, `551` - CopyQcount_AccountMap, `552` - CopyQcount_DiscountCouponMap, `553` - CopyQcount_InvoiceMap, `554` - CopyQcount_PersonMap, `555` - CopyQcount_PlanMap, `556` - CopyQcount_PlanFamilyMap, `557` - CopyQcount_SubscriptionMap, `558` - CopyQcount_TransactionMap, `570` - StripeMigration_LastAccountId, `571` - StripeMigration_LastInvoiceId, `572` - StripeMigration_LastExpiredSubscriptionId, `573` - StripeMigration_LastPostExportSubscriptionId, `574` - StripeMigration_LastUsageId, `575` - StripeMigration_SubscriptionExportDate, `576` - StripeMigration_SubscriptionExportIds, `577` - StripeMigration_SubscriptionAddOnExportIds, `578` - StripeMigration_SubscriptionCutoverDate, `579` - StripeMigration_LastPreCutoverExportSubscriptionId
3453
3460
  */
3454
3461
  export type QcountConfigSettingType = typeof QcountConfigSettingType[keyof typeof QcountConfigSettingType];
3455
3462
 
@@ -3481,6 +3488,8 @@ export const QcountConfigSettingType = {
3481
3488
  TwoFactorAuthenticationEnabled: 140,
3482
3489
  ForceTwoFactorAuthentication: 142,
3483
3490
  MagicLinkLoginEnabled: 143,
3491
+ GoogleAnalyticsMeasurementId: 170,
3492
+ GoogleAnalyticsApiSecret: 171,
3484
3493
  Stripe_TaxEnabled: 190,
3485
3494
  Stripe_TaxIdTypes: 192,
3486
3495
  Stripe_ApplePayMerchantIdDomainAssociation: 193,
@@ -4447,6 +4456,35 @@ export const BackGroundTaskType = {
4447
4456
  UpdateStripeSubscriptionApplicationFeePercentTask: 22,
4448
4457
  } as const;
4449
4458
 
4459
+ /**
4460
+ * Request body for POST /api/v1/crm/registrations/complete: the client secret
4461
+ of the Stripe intent, from the setup_intent_client_secret or
4462
+ payment_intent_client_secret querystring value Stripe returns the user with.
4463
+ */
4464
+ export interface RegistrationCompleteRequest {
4465
+ /** @nullable */
4466
+ ClientSecret?: string | null;
4467
+ }
4468
+
4469
+ /**
4470
+ * @nullable
4471
+ */
4472
+ export type RegistrationStateRequestAccount = Account | null;
4473
+
4474
+ /**
4475
+ * Request body for POST /api/v1/crm/registrations/state: the account to
4476
+ register, the client secret of the Stripe intent the user is about to confirm,
4477
+ and optionally the primary contact's profile image as a PNG or JPEG data URL.
4478
+ */
4479
+ export interface RegistrationStateRequest {
4480
+ /** @nullable */
4481
+ Account?: RegistrationStateRequestAccount;
4482
+ /** @nullable */
4483
+ ClientSecret?: string | null;
4484
+ /** @nullable */
4485
+ ProfileImage?: string | null;
4486
+ }
4487
+
4450
4488
  /**
4451
4489
  * @nullable
4452
4490
  */
@@ -6683,6 +6721,19 @@ export type AccountWebhookEntityCurrentSubscription = {
6683
6721
  Rate?: number | null;
6684
6722
  } | null;
6685
6723
 
6724
+ /**
6725
+ * `1` - Outseta, `2` - Stripe
6726
+ * @nullable
6727
+ */
6728
+ export type AccountWebhookEntityTenantBillingSystem = typeof AccountWebhookEntityTenantBillingSystem[keyof typeof AccountWebhookEntityTenantBillingSystem] | null;
6729
+
6730
+
6731
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
6732
+ export const AccountWebhookEntityTenantBillingSystem = {
6733
+ Outseta: 1,
6734
+ Stripe: 2,
6735
+ } as const;
6736
+
6686
6737
  /**
6687
6738
  * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time
6688
6739
  */
@@ -7506,6 +7557,11 @@ export interface AccountWebhookEntity {
7506
7557
  CurrentSubscription?: AccountWebhookEntityCurrentSubscription;
7507
7558
  /** @nullable */
7508
7559
  DomainName?: string | null;
7560
+ /**
7561
+ * `1` - Outseta, `2` - Stripe
7562
+ * @nullable
7563
+ */
7564
+ TenantBillingSystem?: AccountWebhookEntityTenantBillingSystem;
7509
7565
  HasLoggedIn?: boolean;
7510
7566
  /** @nullable */
7511
7567
  LatestSubscription?: AccountWebhookEntityLatestSubscription;
@@ -7945,6 +8001,19 @@ export const PersonWebhookEntityAccountAccountStage = {
7945
8001
  Created: 10,
7946
8002
  } as const;
7947
8003
 
8004
+ /**
8005
+ * `1` - Outseta, `2` - Stripe
8006
+ * @nullable
8007
+ */
8008
+ export type PersonWebhookEntityAccountTenantBillingSystem = typeof PersonWebhookEntityAccountTenantBillingSystem[keyof typeof PersonWebhookEntityAccountTenantBillingSystem] | null;
8009
+
8010
+
8011
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
8012
+ export const PersonWebhookEntityAccountTenantBillingSystem = {
8013
+ Outseta: 1,
8014
+ Stripe: 2,
8015
+ } as const;
8016
+
7948
8017
  /**
7949
8018
  * @nullable
7950
8019
  */
@@ -8061,6 +8130,11 @@ export type PersonWebhookEntityAccount = {
8061
8130
  CurrentStripeProducts?: string | null;
8062
8131
  /** @nullable */
8063
8132
  DomainName?: string | null;
8133
+ /**
8134
+ * `1` - Outseta, `2` - Stripe
8135
+ * @nullable
8136
+ */
8137
+ TenantBillingSystem?: PersonWebhookEntityAccountTenantBillingSystem;
8064
8138
  HasLoggedIn?: boolean;
8065
8139
  LifetimeRevenue?: number;
8066
8140
  /** @nullable */
@@ -8545,6 +8619,19 @@ export const DealWebhookEntityAccountAccountStage = {
8545
8619
  Created: 10,
8546
8620
  } as const;
8547
8621
 
8622
+ /**
8623
+ * `1` - Outseta, `2` - Stripe
8624
+ * @nullable
8625
+ */
8626
+ export type DealWebhookEntityAccountTenantBillingSystem = typeof DealWebhookEntityAccountTenantBillingSystem[keyof typeof DealWebhookEntityAccountTenantBillingSystem] | null;
8627
+
8628
+
8629
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
8630
+ export const DealWebhookEntityAccountTenantBillingSystem = {
8631
+ Outseta: 1,
8632
+ Stripe: 2,
8633
+ } as const;
8634
+
8548
8635
  /**
8549
8636
  * @nullable
8550
8637
  */
@@ -8661,6 +8748,11 @@ export type DealWebhookEntityAccount = {
8661
8748
  CurrentStripeProducts?: string | null;
8662
8749
  /** @nullable */
8663
8750
  DomainName?: string | null;
8751
+ /**
8752
+ * `1` - Outseta, `2` - Stripe
8753
+ * @nullable
8754
+ */
8755
+ TenantBillingSystem?: DealWebhookEntityAccountTenantBillingSystem;
8664
8756
  HasLoggedIn?: boolean;
8665
8757
  LifetimeRevenue?: number;
8666
8758
  /** @nullable */