@schematichq/schematic-components 2.19.0 → 2.21.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.
@@ -321,6 +321,7 @@ declare const BillingCreditGrantZeroedOutReason: {
321
321
  readonly CustomerArchived: "customer_archived";
322
322
  readonly Expired: "expired";
323
323
  readonly IntegrationUninstalled: "integration_uninstalled";
324
+ readonly LicenseRetired: "license_retired";
324
325
  readonly Manual: "manual";
325
326
  readonly PlanChange: "plan_change";
326
327
  readonly PlanPeriodReset: "plan_period_reset";
@@ -4232,6 +4233,12 @@ declare interface CompanyPlanDetailResponseData {
4232
4233
  * @memberof CompanyPlanDetailResponseData
4233
4234
  */
4234
4235
  billingStrategy: BillingStrategy;
4236
+ /**
4237
+ *
4238
+ * @type {Array<PlanCatalogMembershipResponseData>}
4239
+ * @memberof CompanyPlanDetailResponseData
4240
+ */
4241
+ catalogs?: Array<PlanCatalogMembershipResponseData>;
4235
4242
  /**
4236
4243
  *
4237
4244
  * @type {ChargeType}
@@ -5167,6 +5174,12 @@ declare interface ComponentResponseData {
5167
5174
  ast?: {
5168
5175
  [key: string]: number;
5169
5176
  };
5177
+ /**
5178
+ *
5179
+ * @type {string}
5180
+ * @memberof ComponentResponseData
5181
+ */
5182
+ catalogId?: string | null;
5170
5183
  /**
5171
5184
  *
5172
5185
  * @type {Date}
@@ -6480,7 +6493,7 @@ export declare interface EmbedProps {
6480
6493
  accessToken?: string;
6481
6494
  }
6482
6495
 
6483
- export declare const EmbedProvider: ({ children, apiKey, apiConfig, currencyFilter, checkoutPrefill, ...options }: EmbedProviderProps) => JSX.Element;
6496
+ export declare const EmbedProvider: ({ children, apiKey, apiConfig, currencyFilter, warningThresholdConfig, checkoutPrefill, ...options }: EmbedProviderProps) => JSX.Element;
6484
6497
 
6485
6498
  export declare interface EmbedProviderProps {
6486
6499
  children: React.ReactNode;
@@ -6494,6 +6507,12 @@ export declare interface EmbedProviderProps {
6494
6507
  * ISO-4217 codes; case-insensitive. Omit to disable filtering.
6495
6508
  */
6496
6509
  currencyFilter?: string[];
6510
+ /**
6511
+ * Controls how entitlement warning thresholds are displayed across components.
6512
+ * Set `{ showAsLimit: true }` to display the configured warning threshold in
6513
+ * place of an entitlement's hard limit. Omit to keep the default behavior.
6514
+ */
6515
+ warningThresholdConfig?: WarningThresholdConfig;
6497
6516
  checkoutPrefill?: CheckoutPrefill;
6498
6517
  }
6499
6518
 
@@ -6516,6 +6535,7 @@ export declare interface EmbedState {
6516
6535
  layout: EmbedLayout;
6517
6536
  checkoutState?: CheckoutState;
6518
6537
  currencyFilter?: string[];
6538
+ warningThresholdConfig?: WarningThresholdConfig;
6519
6539
  checkoutPrefill?: CheckoutPrefill;
6520
6540
  }
6521
6541
 
@@ -7173,6 +7193,12 @@ declare interface FeatureEntitlement {
7173
7193
  * @memberof FeatureEntitlement
7174
7194
  */
7175
7195
  valueType: EntitlementValueType;
7196
+ /**
7197
+ * Customer-defined usage warning thresholds configured on this entitlement
7198
+ * @type {Array<WarningTier>}
7199
+ * @memberof FeatureEntitlement
7200
+ */
7201
+ warningTiers?: Array<WarningTier>;
7176
7202
  }
7177
7203
 
7178
7204
  /**
@@ -7235,6 +7261,12 @@ declare interface FeatureInPlanResponseData {
7235
7261
  * @memberof FeatureInPlanResponseData
7236
7262
  */
7237
7263
  id: string;
7264
+ /**
7265
+ * The license sold through this feature. Set only on features of type license, and created automatically with them.
7266
+ * @type {string}
7267
+ * @memberof FeatureInPlanResponseData
7268
+ */
7269
+ licenseId?: string | null;
7238
7270
  /**
7239
7271
  *
7240
7272
  * @type {FeatureLifecyclePhase}
@@ -7289,6 +7321,12 @@ declare interface FeatureInPlanResponseData {
7289
7321
  * @memberof FeatureInPlanResponseData
7290
7322
  */
7291
7323
  updatedAt: Date;
7324
+ /**
7325
+ * Set when the feature carries a pay-in-advance quantity. Provisioned lazily for other feature types, and at creation for license features.
7326
+ * @type {string}
7327
+ * @memberof FeatureInPlanResponseData
7328
+ */
7329
+ usageLimitTraitId?: string | null;
7292
7330
  }
7293
7331
 
7294
7332
  /**
@@ -7351,6 +7389,12 @@ declare interface FeatureInPlanResponseData_2 {
7351
7389
  * @memberof FeatureInPlanResponseData
7352
7390
  */
7353
7391
  id: string;
7392
+ /**
7393
+ * The license sold through this feature. Set only on features of type license, and created automatically with them.
7394
+ * @type {string}
7395
+ * @memberof FeatureInPlanResponseData
7396
+ */
7397
+ licenseId?: string | null;
7354
7398
  /**
7355
7399
  *
7356
7400
  * @type {FeatureLifecyclePhase}
@@ -7405,6 +7449,12 @@ declare interface FeatureInPlanResponseData_2 {
7405
7449
  * @memberof FeatureInPlanResponseData
7406
7450
  */
7407
7451
  updatedAt: Date;
7452
+ /**
7453
+ * Set when the feature carries a pay-in-advance quantity. Provisioned lazily for other feature types, and at creation for license features.
7454
+ * @type {string}
7455
+ * @memberof FeatureInPlanResponseData
7456
+ */
7457
+ usageLimitTraitId?: string | null;
7408
7458
  }
7409
7459
 
7410
7460
  /**
@@ -7485,6 +7535,12 @@ declare interface FeatureResponseData {
7485
7535
  * @memberof FeatureResponseData
7486
7536
  */
7487
7537
  id: string;
7538
+ /**
7539
+ * The license sold through this feature. Set only on features of type license, and created automatically with them.
7540
+ * @type {string}
7541
+ * @memberof FeatureResponseData
7542
+ */
7543
+ licenseId?: string | null;
7488
7544
  /**
7489
7545
  *
7490
7546
  * @type {FeatureLifecyclePhase}
@@ -7527,6 +7583,12 @@ declare interface FeatureResponseData {
7527
7583
  * @memberof FeatureResponseData
7528
7584
  */
7529
7585
  updatedAt: Date;
7586
+ /**
7587
+ * Set when the feature carries a pay-in-advance quantity. Provisioned lazily for other feature types, and at creation for license features.
7588
+ * @type {string}
7589
+ * @memberof FeatureResponseData
7590
+ */
7591
+ usageLimitTraitId?: string | null;
7530
7592
  }
7531
7593
 
7532
7594
  /**
@@ -7571,6 +7633,12 @@ declare interface FeatureResponseData_2 {
7571
7633
  * @memberof FeatureResponseData
7572
7634
  */
7573
7635
  id: string;
7636
+ /**
7637
+ * The license sold through this feature. Set only on features of type license, and created automatically with them.
7638
+ * @type {string}
7639
+ * @memberof FeatureResponseData
7640
+ */
7641
+ licenseId?: string | null;
7574
7642
  /**
7575
7643
  *
7576
7644
  * @type {FeatureLifecyclePhase}
@@ -7613,6 +7681,12 @@ declare interface FeatureResponseData_2 {
7613
7681
  * @memberof FeatureResponseData
7614
7682
  */
7615
7683
  updatedAt: Date;
7684
+ /**
7685
+ * Set when the feature carries a pay-in-advance quantity. Provisioned lazily for other feature types, and at creation for license features.
7686
+ * @type {string}
7687
+ * @memberof FeatureResponseData
7688
+ */
7689
+ usageLimitTraitId?: string | null;
7616
7690
  }
7617
7691
 
7618
7692
  /**
@@ -7622,6 +7696,7 @@ declare interface FeatureResponseData_2 {
7622
7696
  declare const FeatureType: {
7623
7697
  readonly Boolean: "boolean";
7624
7698
  readonly Event: "event";
7699
+ readonly License: "license";
7625
7700
  readonly Trait: "trait";
7626
7701
  };
7627
7702
 
@@ -7634,6 +7709,7 @@ declare type FeatureType = (typeof FeatureType)[keyof typeof FeatureType];
7634
7709
  declare const FeatureType_2: {
7635
7710
  readonly Boolean: "boolean";
7636
7711
  readonly Event: "event";
7712
+ readonly License: "license";
7637
7713
  readonly Trait: "trait";
7638
7714
  };
7639
7715
 
@@ -8432,6 +8508,7 @@ export declare const initialContext: {
8432
8508
  layout: EmbedLayout;
8433
8509
  checkoutState?: CheckoutState;
8434
8510
  currencyFilter?: string[];
8511
+ warningThresholdConfig?: WarningThresholdConfig;
8435
8512
  checkoutPrefill?: CheckoutPrefill;
8436
8513
  };
8437
8514
 
@@ -8507,6 +8584,12 @@ declare interface InvoiceResponseData {
8507
8584
  * @memberof InvoiceResponseData
8508
8585
  */
8509
8586
  dueDate?: Date | null;
8587
+ /**
8588
+ *
8589
+ * @type {number}
8590
+ * @memberof InvoiceResponseData
8591
+ */
8592
+ endingBalance: number;
8510
8593
  /**
8511
8594
  *
8512
8595
  * @type {string}
@@ -8537,6 +8620,12 @@ declare interface InvoiceResponseData {
8537
8620
  * @memberof InvoiceResponseData
8538
8621
  */
8539
8622
  providerType: BillingProviderType;
8623
+ /**
8624
+ *
8625
+ * @type {number}
8626
+ * @memberof InvoiceResponseData
8627
+ */
8628
+ startingBalance: number;
8540
8629
  /**
8541
8630
  *
8542
8631
  * @type {InvoiceStatus}
@@ -9004,6 +9093,68 @@ export declare const Plan: ({ portal, isLoading, plans, selectedPlan, period, se
9004
9093
 
9005
9094
  declare type Plan_2 = CompanyPlanDetailResponseData;
9006
9095
 
9096
+ /**
9097
+ * Schematic API
9098
+ * Schematic API
9099
+ *
9100
+ * The version of the OpenAPI document: 0.1
9101
+ *
9102
+ *
9103
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9104
+ * https://openapi-generator.tech
9105
+ * Do not edit the class manually.
9106
+ */
9107
+ /**
9108
+ *
9109
+ * @export
9110
+ * @interface PlanCatalogMembershipResponseData
9111
+ */
9112
+ declare interface PlanCatalogMembershipResponseData {
9113
+ /**
9114
+ *
9115
+ * @type {string}
9116
+ * @memberof PlanCatalogMembershipResponseData
9117
+ */
9118
+ id: string;
9119
+ /**
9120
+ *
9121
+ * @type {string}
9122
+ * @memberof PlanCatalogMembershipResponseData
9123
+ */
9124
+ name: string;
9125
+ }
9126
+
9127
+ /**
9128
+ * Schematic API
9129
+ * Schematic API
9130
+ *
9131
+ * The version of the OpenAPI document: 0.1
9132
+ *
9133
+ *
9134
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9135
+ * https://openapi-generator.tech
9136
+ * Do not edit the class manually.
9137
+ */
9138
+ /**
9139
+ *
9140
+ * @export
9141
+ * @interface PlanCatalogMembershipResponseData
9142
+ */
9143
+ declare interface PlanCatalogMembershipResponseData_2 {
9144
+ /**
9145
+ *
9146
+ * @type {string}
9147
+ * @memberof PlanCatalogMembershipResponseData
9148
+ */
9149
+ id: string;
9150
+ /**
9151
+ *
9152
+ * @type {string}
9153
+ * @memberof PlanCatalogMembershipResponseData
9154
+ */
9155
+ name: string;
9156
+ }
9157
+
9007
9158
  /**
9008
9159
  *
9009
9160
  * @export
@@ -9527,6 +9678,12 @@ declare interface PlanDetailResponseData {
9527
9678
  * @memberof PlanDetailResponseData
9528
9679
  */
9529
9680
  billingStrategy: BillingStrategy;
9681
+ /**
9682
+ *
9683
+ * @type {Array<PlanCatalogMembershipResponseData>}
9684
+ * @memberof PlanDetailResponseData
9685
+ */
9686
+ catalogs?: Array<PlanCatalogMembershipResponseData>;
9530
9687
  /**
9531
9688
  *
9532
9689
  * @type {ChargeType}
@@ -10569,6 +10726,12 @@ declare interface PlanViewPublicResponseData {
10569
10726
  * @memberof PlanViewPublicResponseData
10570
10727
  */
10571
10728
  billingStrategy: BillingStrategy_2;
10729
+ /**
10730
+ *
10731
+ * @type {Array<PlanCatalogMembershipResponseData>}
10732
+ * @memberof PlanViewPublicResponseData
10733
+ */
10734
+ catalogs?: Array<PlanCatalogMembershipResponseData_2>;
10572
10735
  /**
10573
10736
  *
10574
10737
  * @type {ChargeType}
@@ -11077,6 +11240,91 @@ declare interface PreviewSubscriptionChangeResponseData {
11077
11240
  usageViolations: Array<FeatureUsageResponseData>;
11078
11241
  }
11079
11242
 
11243
+ /**
11244
+ * Schematic API
11245
+ * Schematic API
11246
+ *
11247
+ * The version of the OpenAPI document: 0.1
11248
+ *
11249
+ *
11250
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11251
+ * https://openapi-generator.tech
11252
+ * Do not edit the class manually.
11253
+ */
11254
+ /**
11255
+ *
11256
+ * @export
11257
+ * @interface PreviewSubscriptionDiscountResponseData
11258
+ */
11259
+ declare interface PreviewSubscriptionDiscountResponseData {
11260
+ /**
11261
+ *
11262
+ * @type {number}
11263
+ * @memberof PreviewSubscriptionDiscountResponseData
11264
+ */
11265
+ amountOff?: number | null;
11266
+ /**
11267
+ *
11268
+ * @type {string}
11269
+ * @memberof PreviewSubscriptionDiscountResponseData
11270
+ */
11271
+ couponName: string;
11272
+ /**
11273
+ *
11274
+ * @type {string}
11275
+ * @memberof PreviewSubscriptionDiscountResponseData
11276
+ */
11277
+ currency?: string | null;
11278
+ /**
11279
+ *
11280
+ * @type {string}
11281
+ * @memberof PreviewSubscriptionDiscountResponseData
11282
+ */
11283
+ customerFacingCode?: string | null;
11284
+ /**
11285
+ *
11286
+ * @type {string}
11287
+ * @memberof PreviewSubscriptionDiscountResponseData
11288
+ */
11289
+ duration: string;
11290
+ /**
11291
+ *
11292
+ * @type {number}
11293
+ * @memberof PreviewSubscriptionDiscountResponseData
11294
+ */
11295
+ durationInMonths?: number | null;
11296
+ /**
11297
+ *
11298
+ * @type {Date}
11299
+ * @memberof PreviewSubscriptionDiscountResponseData
11300
+ */
11301
+ endedAt?: Date | null;
11302
+ /**
11303
+ *
11304
+ * @type {boolean}
11305
+ * @memberof PreviewSubscriptionDiscountResponseData
11306
+ */
11307
+ isActive: boolean;
11308
+ /**
11309
+ *
11310
+ * @type {number}
11311
+ * @memberof PreviewSubscriptionDiscountResponseData
11312
+ */
11313
+ percentOff?: number | null;
11314
+ /**
11315
+ *
11316
+ * @type {string}
11317
+ * @memberof PreviewSubscriptionDiscountResponseData
11318
+ */
11319
+ promoCodeExternalId?: string | null;
11320
+ /**
11321
+ *
11322
+ * @type {Date}
11323
+ * @memberof PreviewSubscriptionDiscountResponseData
11324
+ */
11325
+ startedAt: Date;
11326
+ }
11327
+
11080
11328
  /**
11081
11329
  *
11082
11330
  * @export
@@ -11089,6 +11337,12 @@ declare interface PreviewSubscriptionFinanceResponseData {
11089
11337
  * @memberof PreviewSubscriptionFinanceResponseData
11090
11338
  */
11091
11339
  amountOff: number;
11340
+ /**
11341
+ *
11342
+ * @type {Array<PreviewSubscriptionDiscountResponseData>}
11343
+ * @memberof PreviewSubscriptionFinanceResponseData
11344
+ */
11345
+ discounts: Array<PreviewSubscriptionDiscountResponseData>;
11092
11346
  /**
11093
11347
  *
11094
11348
  * @type {number}
@@ -11107,6 +11361,12 @@ declare interface PreviewSubscriptionFinanceResponseData {
11107
11361
  * @memberof PreviewSubscriptionFinanceResponseData
11108
11362
  */
11109
11363
  percentOff: number;
11364
+ /**
11365
+ *
11366
+ * @type {Date}
11367
+ * @memberof PreviewSubscriptionFinanceResponseData
11368
+ */
11369
+ periodEnd: Date;
11110
11370
  /**
11111
11371
  *
11112
11372
  * @type {Date}
@@ -12691,6 +12951,52 @@ export declare interface ViewportProps extends React.HTMLProps<HTMLDivElement> {
12691
12951
  portal?: HTMLElement | null;
12692
12952
  }
12693
12953
 
12954
+ /**
12955
+ * Consumer-level configuration for how entitlement warning thresholds are
12956
+ * displayed. Set once at the EmbedProvider (`<EmbedProvider
12957
+ * warningThresholdConfig={{ showAsLimit: true }} />`) and read by any element
12958
+ * that renders an entitlement limit.
12959
+ */
12960
+ export declare interface WarningThresholdConfig {
12961
+ /**
12962
+ * When true, display an entitlement's configured warning threshold in place of
12963
+ * its hard limit (the advertised number in a fair-use setup). Falls back to the
12964
+ * hard limit for entitlements without a threshold. Defaults to false.
12965
+ */
12966
+ showAsLimit?: boolean;
12967
+ }
12968
+
12969
+ /**
12970
+ * Schematic API
12971
+ * Schematic API
12972
+ *
12973
+ * The version of the OpenAPI document: 0.1
12974
+ *
12975
+ *
12976
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12977
+ * https://openapi-generator.tech
12978
+ * Do not edit the class manually.
12979
+ */
12980
+ /**
12981
+ *
12982
+ * @export
12983
+ * @interface WarningTier
12984
+ */
12985
+ declare interface WarningTier {
12986
+ /**
12987
+ * A customer-defined identifier for the warning tier
12988
+ * @type {string}
12989
+ * @memberof WarningTier
12990
+ */
12991
+ key: string;
12992
+ /**
12993
+ * The warning threshold, in the entitlement's usage units
12994
+ * @type {number}
12995
+ * @memberof WarningTier
12996
+ */
12997
+ value: number;
12998
+ }
12999
+
12694
13000
  /**
12695
13001
  * Schematic API
12696
13002
  * Schematic API