@outseta/react 0.4.38 → 0.4.40

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,
@@ -3946,6 +3946,10 @@ var AccountWebhookEntityCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = {
3946
3946
  Uncollectible: 6,
3947
3947
  Processing: 7
3948
3948
  };
3949
+ var AccountWebhookEntityTenantBillingSystem = {
3950
+ Outseta: 1,
3951
+ Stripe: 2
3952
+ };
3949
3953
  var AccountWebhookEntityLatestSubscriptionBillingRenewalTerm = {
3950
3954
  Monthly: 1,
3951
3955
  Yearly: 2,
@@ -4012,6 +4016,10 @@ var PersonWebhookEntityAccountAccountStage = {
4012
4016
  Paused: 9,
4013
4017
  Created: 10
4014
4018
  };
4019
+ var PersonWebhookEntityAccountTenantBillingSystem = {
4020
+ Outseta: 1,
4021
+ Stripe: 2
4022
+ };
4015
4023
  var PersonWebhookEntityEmailListPersonItemEmailListSubscriberStatus = {
4016
4024
  Subscribed: 1,
4017
4025
  Unsubscribed: 2,
@@ -4033,6 +4041,10 @@ var DealWebhookEntityAccountAccountStage = {
4033
4041
  Paused: 9,
4034
4042
  Created: 10
4035
4043
  };
4044
+ var DealWebhookEntityAccountTenantBillingSystem = {
4045
+ Outseta: 1,
4046
+ Stripe: 2
4047
+ };
4036
4048
  var DealWebhookEntityOwnerOAuthIntegrationStatus = {
4037
4049
  None: 0,
4038
4050
  Gmail: 1
@@ -4084,6 +4096,7 @@ export {
4084
4096
  AccountWebhookEntitySubscriptionsItemPlanAccountRegistrationMode,
4085
4097
  AccountWebhookEntitySubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType,
4086
4098
  AccountWebhookEntitySubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm,
4099
+ AccountWebhookEntityTenantBillingSystem,
4087
4100
  ActivityType,
4088
4101
  AddOnChangeType,
4089
4102
  AddOnWebhookEntityBillingAddOnType,
@@ -4104,6 +4117,7 @@ export {
4104
4117
  ContentGroupItemMatchMode,
4105
4118
  DatabaseType,
4106
4119
  DealWebhookEntityAccountAccountStage,
4120
+ DealWebhookEntityAccountTenantBillingSystem,
4107
4121
  DealWebhookEntityOwnerOAuthIntegrationStatus,
4108
4122
  DeserializationStatus,
4109
4123
  EmailListButton,
@@ -4121,6 +4135,7 @@ export {
4121
4135
  PaymentsGatewayActivationStatus,
4122
4136
  PaymentsMode,
4123
4137
  PersonWebhookEntityAccountAccountStage,
4138
+ PersonWebhookEntityAccountTenantBillingSystem,
4124
4139
  PersonWebhookEntityEmailListPersonItemEmailListSubscriberStatus,
4125
4140
  PersonWebhookEntityOAuthIntegrationStatus,
4126
4141
  PersonWebhookEntityPersonAccountItemRole,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@outseta/react",
3
- "version": "0.4.38",
3
+ "version": "0.4.40",
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.44"
21
+ "@outseta/api-client": "0.3.46"
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
@@ -4390,6 +4397,24 @@ export const BroadcastCampaignStatus = {
4390
4397
  Archived: 10,
4391
4398
  } as const;
4392
4399
 
4400
+ /**
4401
+ * @nullable
4402
+ */
4403
+ export type BroadcastPreviewRequestBroadcastCampaign = BroadcastCampaign | null;
4404
+
4405
+ /**
4406
+ * Request body for POST /api/v1/email/campaigns/broadcasts/preview.
4407
+ */
4408
+ export interface BroadcastPreviewRequest {
4409
+ /** @nullable */
4410
+ BroadcastCampaign?: BroadcastPreviewRequestBroadcastCampaign;
4411
+ /**
4412
+ * The person to render the broadcast for. When empty, only the tokens are returned.
4413
+ * @nullable
4414
+ */
4415
+ PersonUid?: string | null;
4416
+ }
4417
+
4393
4418
  /**
4394
4419
  * @nullable
4395
4420
  */
@@ -4449,6 +4474,35 @@ export const BackGroundTaskType = {
4449
4474
  UpdateStripeSubscriptionApplicationFeePercentTask: 22,
4450
4475
  } as const;
4451
4476
 
4477
+ /**
4478
+ * Request body for POST /api/v1/crm/registrations/complete: the client secret
4479
+ of the Stripe intent, from the setup_intent_client_secret or
4480
+ payment_intent_client_secret querystring value Stripe returns the user with.
4481
+ */
4482
+ export interface RegistrationCompleteRequest {
4483
+ /** @nullable */
4484
+ ClientSecret?: string | null;
4485
+ }
4486
+
4487
+ /**
4488
+ * @nullable
4489
+ */
4490
+ export type RegistrationStateRequestAccount = Account | null;
4491
+
4492
+ /**
4493
+ * Request body for POST /api/v1/crm/registrations/state: the account to
4494
+ register, the client secret of the Stripe intent the user is about to confirm,
4495
+ and optionally the primary contact's profile image as a PNG or JPEG data URL.
4496
+ */
4497
+ export interface RegistrationStateRequest {
4498
+ /** @nullable */
4499
+ Account?: RegistrationStateRequestAccount;
4500
+ /** @nullable */
4501
+ ClientSecret?: string | null;
4502
+ /** @nullable */
4503
+ ProfileImage?: string | null;
4504
+ }
4505
+
4452
4506
  /**
4453
4507
  * @nullable
4454
4508
  */
@@ -6685,6 +6739,19 @@ export type AccountWebhookEntityCurrentSubscription = {
6685
6739
  Rate?: number | null;
6686
6740
  } | null;
6687
6741
 
6742
+ /**
6743
+ * `1` - Outseta, `2` - Stripe
6744
+ * @nullable
6745
+ */
6746
+ export type AccountWebhookEntityTenantBillingSystem = typeof AccountWebhookEntityTenantBillingSystem[keyof typeof AccountWebhookEntityTenantBillingSystem] | null;
6747
+
6748
+
6749
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
6750
+ export const AccountWebhookEntityTenantBillingSystem = {
6751
+ Outseta: 1,
6752
+ Stripe: 2,
6753
+ } as const;
6754
+
6688
6755
  /**
6689
6756
  * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time
6690
6757
  */
@@ -7508,6 +7575,11 @@ export interface AccountWebhookEntity {
7508
7575
  CurrentSubscription?: AccountWebhookEntityCurrentSubscription;
7509
7576
  /** @nullable */
7510
7577
  DomainName?: string | null;
7578
+ /**
7579
+ * `1` - Outseta, `2` - Stripe
7580
+ * @nullable
7581
+ */
7582
+ TenantBillingSystem?: AccountWebhookEntityTenantBillingSystem;
7511
7583
  HasLoggedIn?: boolean;
7512
7584
  /** @nullable */
7513
7585
  LatestSubscription?: AccountWebhookEntityLatestSubscription;
@@ -7947,6 +8019,19 @@ export const PersonWebhookEntityAccountAccountStage = {
7947
8019
  Created: 10,
7948
8020
  } as const;
7949
8021
 
8022
+ /**
8023
+ * `1` - Outseta, `2` - Stripe
8024
+ * @nullable
8025
+ */
8026
+ export type PersonWebhookEntityAccountTenantBillingSystem = typeof PersonWebhookEntityAccountTenantBillingSystem[keyof typeof PersonWebhookEntityAccountTenantBillingSystem] | null;
8027
+
8028
+
8029
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
8030
+ export const PersonWebhookEntityAccountTenantBillingSystem = {
8031
+ Outseta: 1,
8032
+ Stripe: 2,
8033
+ } as const;
8034
+
7950
8035
  /**
7951
8036
  * @nullable
7952
8037
  */
@@ -8063,6 +8148,11 @@ export type PersonWebhookEntityAccount = {
8063
8148
  CurrentStripeProducts?: string | null;
8064
8149
  /** @nullable */
8065
8150
  DomainName?: string | null;
8151
+ /**
8152
+ * `1` - Outseta, `2` - Stripe
8153
+ * @nullable
8154
+ */
8155
+ TenantBillingSystem?: PersonWebhookEntityAccountTenantBillingSystem;
8066
8156
  HasLoggedIn?: boolean;
8067
8157
  LifetimeRevenue?: number;
8068
8158
  /** @nullable */
@@ -8547,6 +8637,19 @@ export const DealWebhookEntityAccountAccountStage = {
8547
8637
  Created: 10,
8548
8638
  } as const;
8549
8639
 
8640
+ /**
8641
+ * `1` - Outseta, `2` - Stripe
8642
+ * @nullable
8643
+ */
8644
+ export type DealWebhookEntityAccountTenantBillingSystem = typeof DealWebhookEntityAccountTenantBillingSystem[keyof typeof DealWebhookEntityAccountTenantBillingSystem] | null;
8645
+
8646
+
8647
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
8648
+ export const DealWebhookEntityAccountTenantBillingSystem = {
8649
+ Outseta: 1,
8650
+ Stripe: 2,
8651
+ } as const;
8652
+
8550
8653
  /**
8551
8654
  * @nullable
8552
8655
  */
@@ -8663,6 +8766,11 @@ export type DealWebhookEntityAccount = {
8663
8766
  CurrentStripeProducts?: string | null;
8664
8767
  /** @nullable */
8665
8768
  DomainName?: string | null;
8769
+ /**
8770
+ * `1` - Outseta, `2` - Stripe
8771
+ * @nullable
8772
+ */
8773
+ TenantBillingSystem?: DealWebhookEntityAccountTenantBillingSystem;
8666
8774
  HasLoggedIn?: boolean;
8667
8775
  LifetimeRevenue?: number;
8668
8776
  /** @nullable */