@schematichq/schematic-components 2.17.1 → 2.19.0

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.
@@ -49,6 +49,30 @@ declare interface AvailablePlanOptions {
49
49
  useSelectedPeriod?: boolean;
50
50
  }
51
51
 
52
+ /**
53
+ *
54
+ * @export
55
+ */
56
+ declare const BillingCreditAutoTopupAvailability: {
57
+ readonly Off: "off";
58
+ readonly Automatic: "automatic";
59
+ readonly UserControlled: "user_controlled";
60
+ };
61
+
62
+ declare type BillingCreditAutoTopupAvailability = (typeof BillingCreditAutoTopupAvailability)[keyof typeof BillingCreditAutoTopupAvailability];
63
+
64
+ /**
65
+ *
66
+ * @export
67
+ */
68
+ declare const BillingCreditAutoTopupAvailability_2: {
69
+ readonly Off: "off";
70
+ readonly Automatic: "automatic";
71
+ readonly UserControlled: "user_controlled";
72
+ };
73
+
74
+ declare type BillingCreditAutoTopupAvailability_2 = (typeof BillingCreditAutoTopupAvailability_2)[keyof typeof BillingCreditAutoTopupAvailability_2];
75
+
52
76
  /**
53
77
  *
54
78
  * @export
@@ -294,7 +318,9 @@ declare type BillingCreditGrantReason = (typeof BillingCreditGrantReason)[keyof
294
318
  * @export
295
319
  */
296
320
  declare const BillingCreditGrantZeroedOutReason: {
321
+ readonly CustomerArchived: "customer_archived";
297
322
  readonly Expired: "expired";
323
+ readonly IntegrationUninstalled: "integration_uninstalled";
298
324
  readonly Manual: "manual";
299
325
  readonly PlanChange: "plan_change";
300
326
  readonly PlanPeriodReset: "plan_period_reset";
@@ -885,7 +911,9 @@ declare interface BillingLinkedResourceResponseData_2 {
885
911
  */
886
912
  declare const BillingPlanCreditGrantResetCadence: {
887
913
  readonly Daily: "daily";
914
+ readonly Every6Months: "every_6_months";
888
915
  readonly Monthly: "monthly";
916
+ readonly Quarterly: "quarterly";
889
917
  readonly Weekly: "weekly";
890
918
  readonly Yearly: "yearly";
891
919
  };
@@ -898,7 +926,9 @@ declare type BillingPlanCreditGrantResetCadence = (typeof BillingPlanCreditGrant
898
926
  */
899
927
  declare const BillingPlanCreditGrantResetCadence_2: {
900
928
  readonly Daily: "daily";
929
+ readonly Every6Months: "every_6_months";
901
930
  readonly Monthly: "monthly";
931
+ readonly Quarterly: "quarterly";
902
932
  readonly Weekly: "weekly";
903
933
  readonly Yearly: "yearly";
904
934
  };
@@ -969,8 +999,15 @@ declare interface BillingPlanCreditGrantResponseData {
969
999
  autoTopupAmountType?: string | null;
970
1000
  /**
971
1001
  *
1002
+ * @type {BillingCreditAutoTopupAvailability}
1003
+ * @memberof BillingPlanCreditGrantResponseData
1004
+ */
1005
+ autoTopupAvailability: BillingCreditAutoTopupAvailability;
1006
+ /**
1007
+ * Derived from auto_topup_availability; use that instead.
972
1008
  * @type {boolean}
973
1009
  * @memberof BillingPlanCreditGrantResponseData
1010
+ * @deprecated
974
1011
  */
975
1012
  autoTopupEnabled: boolean;
976
1013
  /**
@@ -992,9 +1029,10 @@ declare interface BillingPlanCreditGrantResponseData {
992
1029
  */
993
1030
  autoTopupExpiryUnitCount?: number | null;
994
1031
  /**
995
- *
1032
+ * Derived from auto_topup_availability; use that instead.
996
1033
  * @type {boolean}
997
1034
  * @memberof BillingPlanCreditGrantResponseData
1035
+ * @deprecated
998
1036
  */
999
1037
  autoTopupSelfService: boolean;
1000
1038
  /**
@@ -1009,6 +1047,12 @@ declare interface BillingPlanCreditGrantResponseData {
1009
1047
  * @memberof BillingPlanCreditGrantResponseData
1010
1048
  */
1011
1049
  autoTopupThresholdPercent?: number | null;
1050
+ /**
1051
+ * Whether buyers can purchase one-time credit bundles on this grant, independent of auto top-up availability.
1052
+ * @type {boolean}
1053
+ * @memberof BillingPlanCreditGrantResponseData
1054
+ */
1055
+ canBuyBundles: boolean;
1012
1056
  /**
1013
1057
  *
1014
1058
  * @type {Date}
@@ -2916,6 +2960,19 @@ export declare interface BypassConfig {
2916
2960
  * { planId: "plan_abc", payInAdvanceQuantities: { feat_seats: 3 } }
2917
2961
  */
2918
2962
  payInAdvanceQuantities?: Record<string, number>;
2963
+ /**
2964
+ * Promotion code to pre-apply to the checkout (a Stripe promotion code such
2965
+ * as "SUMMER20" — the customer-facing code, not the underlying coupon id).
2966
+ *
2967
+ * The discount is applied on load: the previewed charges reflect it and it is
2968
+ * sent with the final checkout request. The customer can still change or
2969
+ * clear it via the discount field in the checkout form. Invalid codes are
2970
+ * rejected by the backend the same way a manually entered code would be.
2971
+ *
2972
+ * @example
2973
+ * { planId: "plan_abc", promoCode: "SUMMER20" }
2974
+ */
2975
+ promoCode?: string;
2919
2976
  }
2920
2977
 
2921
2978
  export declare const Card: ForwardRefExoticComponent<CardProps & RefAttributes<HTMLDivElement | null>>;
@@ -2945,6 +3002,12 @@ declare interface ChangeSubscriptionRequestBody {
2945
3002
  * @memberof ChangeSubscriptionRequestBody
2946
3003
  */
2947
3004
  autoTopupOverrides: Array<UpdateAutoTopupOverrideRequestBody>;
3005
+ /**
3006
+ *
3007
+ * @type {string}
3008
+ * @memberof ChangeSubscriptionRequestBody
3009
+ */
3010
+ billingEntityId?: string | null;
2948
3011
  /**
2949
3012
  *
2950
3013
  * @type {string}
@@ -3035,7 +3098,7 @@ declare type ChargeType_2 = (typeof ChargeType_2)[keyof typeof ChargeType_2];
3035
3098
 
3036
3099
  export declare const Checkbox: IStyledComponentBase<"web", FastOmit<FastOmit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, keyof ClassAttributes<HTMLInputElement> | keyof InputHTMLAttributes<HTMLInputElement>> & ClassAttributes<HTMLInputElement> & InputHTMLAttributes<HTMLInputElement>, "type"> & Partial<Pick<FastOmit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, keyof ClassAttributes<HTMLInputElement> | keyof InputHTMLAttributes<HTMLInputElement>> & ClassAttributes<HTMLInputElement> & InputHTMLAttributes<HTMLInputElement>, "type">>> & string;
3037
3100
 
3038
- export declare const Checkout: ({ customCheckoutFields, customFieldValues, isPaymentMethodRequired, onCustomFieldChange, optInRequired, optInTitle, optInText, optInAccepted, setOptInAccepted, setPaymentMethodId, updatePromoCode, confirmPaymentIntentProps, financeData, onPaymentMethodSaved, }: CheckoutProps) => JSX.Element | null;
3101
+ export declare const Checkout: ({ customCheckoutFields, customFieldValues, isPaymentMethodRequired, onCustomFieldChange, optInRequired, optInTitle, optInText, optInAccepted, setOptInAccepted, setPaymentMethodId, promoCode, updatePromoCode, confirmPaymentIntentProps, financeData, onPaymentMethodSaved, }: CheckoutProps) => JSX.Element | null;
3039
3102
 
3040
3103
  /**
3041
3104
  * Host-provided initial values used to pre-populate the checkout payment form.
@@ -3172,6 +3235,7 @@ declare interface CheckoutProps {
3172
3235
  optInAccepted: boolean;
3173
3236
  setOptInAccepted: (accepted: boolean) => void;
3174
3237
  setPaymentMethodId: (id: string) => void;
3238
+ promoCode?: string | null;
3175
3239
  updatePromoCode: (code: string) => void;
3176
3240
  confirmPaymentIntentProps?: ConfirmPaymentIntentProps_2 | null | undefined;
3177
3241
  financeData?: PreviewSubscriptionFinanceResponseData | null;
@@ -3448,6 +3512,7 @@ export declare type CheckoutState = {
3448
3512
  showCurrencySelector?: boolean;
3449
3513
  startTrialIfAvailable?: boolean;
3450
3514
  payInAdvanceQuantities?: Record<string, number>;
3515
+ promoCode?: string;
3451
3516
  };
3452
3517
 
3453
3518
  /**
@@ -3919,6 +3984,12 @@ declare interface CompanyPlanCreditGrantView {
3919
3984
  * @memberof CompanyPlanCreditGrantView
3920
3985
  */
3921
3986
  billingCreditAutoTopupAmountType?: string | null;
3987
+ /**
3988
+ *
3989
+ * @type {BillingCreditAutoTopupAvailability}
3990
+ * @memberof CompanyPlanCreditGrantView
3991
+ */
3992
+ billingCreditAutoTopupAvailability?: BillingCreditAutoTopupAvailability | null;
3922
3993
  /**
3923
3994
  *
3924
3995
  * @type {boolean}
@@ -3961,6 +4032,12 @@ declare interface CompanyPlanCreditGrantView {
3961
4032
  * @memberof CompanyPlanCreditGrantView
3962
4033
  */
3963
4034
  billingCreditAutoTopupThresholdPercent?: number | null;
4035
+ /**
4036
+ *
4037
+ * @type {boolean}
4038
+ * @memberof CompanyPlanCreditGrantView
4039
+ */
4040
+ billingCreditCanBuyBundles: boolean;
3964
4041
  /**
3965
4042
  *
3966
4043
  * @type {number}
@@ -4179,6 +4256,12 @@ declare interface CompanyPlanDetailResponseData {
4179
4256
  * @memberof CompanyPlanDetailResponseData
4180
4257
  */
4181
4258
  companyId?: string | null;
4259
+ /**
4260
+ *
4261
+ * @type {string}
4262
+ * @memberof CompanyPlanDetailResponseData
4263
+ */
4264
+ companyLogoUrl?: string | null;
4182
4265
  /**
4183
4266
  *
4184
4267
  * @type {string}
@@ -4209,6 +4292,12 @@ declare interface CompanyPlanDetailResponseData {
4209
4292
  * @memberof CompanyPlanDetailResponseData
4210
4293
  */
4211
4294
  createdAt: Date;
4295
+ /**
4296
+ *
4297
+ * @type {Array<BillingCreditResponseData>}
4298
+ * @memberof CompanyPlanDetailResponseData
4299
+ */
4300
+ credits: Array<BillingCreditResponseData>;
4212
4301
  /**
4213
4302
  *
4214
4303
  * @type {Array<PlanCurrencyPricesResponseData>}
@@ -6374,6 +6463,7 @@ export declare interface EmbedContextProps extends EmbedState {
6374
6463
  setCheckoutState: (state: CheckoutState) => void;
6375
6464
  clearCheckoutState: () => void;
6376
6465
  initializeWithPlan: (config: string | BypassConfig) => void;
6466
+ requestUnsubscribe: () => void;
6377
6467
  setData: (data: HydrateDataWithCompanyContext) => void;
6378
6468
  updateSettings: (settings: DeepPartial<EmbedSettings>, options?: {
6379
6469
  update?: boolean;
@@ -8328,6 +8418,7 @@ export declare const initialContext: {
8328
8418
  setCheckoutState: () => never;
8329
8419
  clearCheckoutState: () => never;
8330
8420
  initializeWithPlan: () => never;
8421
+ requestUnsubscribe: () => never;
8331
8422
  setData: () => never;
8332
8423
  updateSettings: () => never;
8333
8424
  debug: () => never;
@@ -8931,6 +9022,12 @@ declare interface PlanCreditGrantView {
8931
9022
  * @memberof PlanCreditGrantView
8932
9023
  */
8933
9024
  billingCreditAutoTopupAmountType?: string | null;
9025
+ /**
9026
+ *
9027
+ * @type {BillingCreditAutoTopupAvailability}
9028
+ * @memberof PlanCreditGrantView
9029
+ */
9030
+ billingCreditAutoTopupAvailability?: BillingCreditAutoTopupAvailability | null;
8934
9031
  /**
8935
9032
  *
8936
9033
  * @type {boolean}
@@ -8973,6 +9070,12 @@ declare interface PlanCreditGrantView {
8973
9070
  * @memberof PlanCreditGrantView
8974
9071
  */
8975
9072
  billingCreditAutoTopupThresholdPercent?: number | null;
9073
+ /**
9074
+ *
9075
+ * @type {boolean}
9076
+ * @memberof PlanCreditGrantView
9077
+ */
9078
+ billingCreditCanBuyBundles: boolean;
8976
9079
  /**
8977
9080
  *
8978
9081
  * @type {Date}
@@ -9124,6 +9227,12 @@ declare interface PlanCreditGrantView_2 {
9124
9227
  * @memberof PlanCreditGrantView
9125
9228
  */
9126
9229
  billingCreditAutoTopupAmountType?: string | null;
9230
+ /**
9231
+ *
9232
+ * @type {BillingCreditAutoTopupAvailability}
9233
+ * @memberof PlanCreditGrantView
9234
+ */
9235
+ billingCreditAutoTopupAvailability?: BillingCreditAutoTopupAvailability_2 | null;
9127
9236
  /**
9128
9237
  *
9129
9238
  * @type {boolean}
@@ -9166,6 +9275,12 @@ declare interface PlanCreditGrantView_2 {
9166
9275
  * @memberof PlanCreditGrantView
9167
9276
  */
9168
9277
  billingCreditAutoTopupThresholdPercent?: number | null;
9278
+ /**
9279
+ *
9280
+ * @type {boolean}
9281
+ * @memberof PlanCreditGrantView
9282
+ */
9283
+ billingCreditCanBuyBundles: boolean;
9169
9284
  /**
9170
9285
  *
9171
9286
  * @type {Date}
@@ -9430,6 +9545,12 @@ declare interface PlanDetailResponseData {
9430
9545
  * @memberof PlanDetailResponseData
9431
9546
  */
9432
9547
  companyId?: string | null;
9548
+ /**
9549
+ *
9550
+ * @type {string}
9551
+ * @memberof PlanDetailResponseData
9552
+ */
9553
+ companyLogoUrl?: string | null;
9433
9554
  /**
9434
9555
  *
9435
9556
  * @type {string}
@@ -9454,6 +9575,12 @@ declare interface PlanDetailResponseData {
9454
9575
  * @memberof PlanDetailResponseData
9455
9576
  */
9456
9577
  createdAt: Date;
9578
+ /**
9579
+ *
9580
+ * @type {Array<BillingCreditResponseData>}
9581
+ * @memberof PlanDetailResponseData
9582
+ */
9583
+ credits: Array<BillingCreditResponseData>;
9457
9584
  /**
9458
9585
  *
9459
9586
  * @type {Array<PlanCurrencyPricesResponseData>}
@@ -9758,6 +9885,12 @@ declare interface PlanEntitlementResponseData {
9758
9885
  * @memberof PlanEntitlementResponseData
9759
9886
  */
9760
9887
  valueType: EntitlementValueType;
9888
+ /**
9889
+ *
9890
+ * @type {Array<WarningTierResponseData>}
9891
+ * @memberof PlanEntitlementResponseData
9892
+ */
9893
+ warningTiers: Array<WarningTierResponseData>;
9761
9894
  }
9762
9895
 
9763
9896
  /**
@@ -9940,6 +10073,12 @@ declare interface PlanEntitlementResponseData_2 {
9940
10073
  * @memberof PlanEntitlementResponseData
9941
10074
  */
9942
10075
  valueType: EntitlementValueType_2;
10076
+ /**
10077
+ *
10078
+ * @type {Array<WarningTierResponseData>}
10079
+ * @memberof PlanEntitlementResponseData
10080
+ */
10081
+ warningTiers: Array<WarningTierResponseData_2>;
9943
10082
  }
9944
10083
 
9945
10084
  /**
@@ -10448,6 +10587,12 @@ declare interface PlanViewPublicResponseData {
10448
10587
  * @memberof PlanViewPublicResponseData
10449
10588
  */
10450
10589
  companyId?: string | null;
10590
+ /**
10591
+ *
10592
+ * @type {string}
10593
+ * @memberof PlanViewPublicResponseData
10594
+ */
10595
+ companyLogoUrl?: string | null;
10451
10596
  /**
10452
10597
  *
10453
10598
  * @type {string}
@@ -10478,6 +10623,12 @@ declare interface PlanViewPublicResponseData {
10478
10623
  * @memberof PlanViewPublicResponseData
10479
10624
  */
10480
10625
  createdAt: Date;
10626
+ /**
10627
+ *
10628
+ * @type {Array<BillingCreditResponseData>}
10629
+ * @memberof PlanViewPublicResponseData
10630
+ */
10631
+ credits: Array<BillingCreditResponseData_2>;
10481
10632
  /**
10482
10633
  *
10483
10634
  * @type {Array<PlanCurrencyPricesResponseData>}
@@ -12540,4 +12691,78 @@ export declare interface ViewportProps extends React.HTMLProps<HTMLDivElement> {
12540
12691
  portal?: HTMLElement | null;
12541
12692
  }
12542
12693
 
12694
+ /**
12695
+ * Schematic API
12696
+ * Schematic API
12697
+ *
12698
+ * The version of the OpenAPI document: 0.1
12699
+ *
12700
+ *
12701
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12702
+ * https://openapi-generator.tech
12703
+ * Do not edit the class manually.
12704
+ */
12705
+ /**
12706
+ *
12707
+ * @export
12708
+ * @interface WarningTierResponseData
12709
+ */
12710
+ declare interface WarningTierResponseData {
12711
+ /**
12712
+ *
12713
+ * @type {string}
12714
+ * @memberof WarningTierResponseData
12715
+ */
12716
+ id: string;
12717
+ /**
12718
+ *
12719
+ * @type {string}
12720
+ * @memberof WarningTierResponseData
12721
+ */
12722
+ key: string;
12723
+ /**
12724
+ *
12725
+ * @type {number}
12726
+ * @memberof WarningTierResponseData
12727
+ */
12728
+ value: number;
12729
+ }
12730
+
12731
+ /**
12732
+ * Schematic API
12733
+ * Schematic API
12734
+ *
12735
+ * The version of the OpenAPI document: 0.1
12736
+ *
12737
+ *
12738
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12739
+ * https://openapi-generator.tech
12740
+ * Do not edit the class manually.
12741
+ */
12742
+ /**
12743
+ *
12744
+ * @export
12745
+ * @interface WarningTierResponseData
12746
+ */
12747
+ declare interface WarningTierResponseData_2 {
12748
+ /**
12749
+ *
12750
+ * @type {string}
12751
+ * @memberof WarningTierResponseData
12752
+ */
12753
+ id: string;
12754
+ /**
12755
+ *
12756
+ * @type {string}
12757
+ * @memberof WarningTierResponseData
12758
+ */
12759
+ key: string;
12760
+ /**
12761
+ *
12762
+ * @type {number}
12763
+ * @memberof WarningTierResponseData
12764
+ */
12765
+ value: number;
12766
+ }
12767
+
12543
12768
  export { }