@schematichq/schematic-components 2.26.0 → 2.28.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.
@@ -3380,6 +3380,12 @@ declare interface ChangeSubscriptionRequestBody {
3380
3380
  * @memberof ChangeSubscriptionRequestBody
3381
3381
  */
3382
3382
  creditBundles: Array<UpdateCreditBundleRequestBody>;
3383
+ /**
3384
+ * ISO 4217 currency this cart is being built in. Prices are still selected by id; this records the intent, and a cart that prices in another currency is reported as a problem.
3385
+ * @type {string}
3386
+ * @memberof ChangeSubscriptionRequestBody
3387
+ */
3388
+ currency?: string | null;
3383
3389
  /**
3384
3390
  *
3385
3391
  * @type {Array<CheckoutFieldValue>}
@@ -7201,6 +7207,13 @@ export declare interface EmbedContextProps extends Omit<EmbedState, SettingsLaye
7201
7207
  hydrate: () => DebouncedApiPromise<HydrateDataWithCompanyContext>;
7202
7208
  hydrateComponent: (id: string) => DebouncedApiPromise<HydrateDataWithCompanyContext>;
7203
7209
  hydrateExternal: (fn: () => Promise<HydrateDataWithCompanyContext>) => DebouncedApiPromise<HydrateDataWithCompanyContext>;
7210
+ /**
7211
+ * Re-fetch the mounted `SchematicEmbed`'s component with extra params,
7212
+ * without swapping the embed for its loading state. Resolves with the new
7213
+ * data once it's applied. Rejects if the fetch fails, or if no component has
7214
+ * been hydrated yet.
7215
+ */
7216
+ rehydrateWithParams: (params: RehydrateParams) => Promise<HydrateDataWithCompanyContext>;
7204
7217
  getUpcomingInvoice: (id: string) => DebouncedApiPromise<HydrateUpcomingInvoiceResponse>;
7205
7218
  getCustomerBalance: () => DebouncedApiPromise<FetchCustomerBalanceResponse>;
7206
7219
  listInvoices: () => DebouncedApiPromise<ListInvoicesResponse>;
@@ -9624,6 +9637,7 @@ export declare const initialContext: {
9624
9637
  hydrate: () => never;
9625
9638
  hydrateComponent: () => never;
9626
9639
  hydrateExternal: () => never;
9640
+ rehydrateWithParams: () => never;
9627
9641
  getUpcomingInvoice: () => never;
9628
9642
  getCustomerBalance: () => never;
9629
9643
  listInvoices: () => never;
@@ -12663,6 +12677,12 @@ declare interface PreviewSubscriptionFinanceResponseData {
12663
12677
  * @memberof PreviewSubscriptionFinanceResponseData
12664
12678
  */
12665
12679
  amountOff: number;
12680
+ /**
12681
+ * ISO 4217 currency every amount in this block is denominated in.
12682
+ * @type {string}
12683
+ * @memberof PreviewSubscriptionFinanceResponseData
12684
+ */
12685
+ currency: string;
12666
12686
  /**
12667
12687
  *
12668
12688
  * @type {number}
@@ -12923,6 +12943,20 @@ declare interface QuantityProps {
12923
12943
  currency?: string;
12924
12944
  }
12925
12945
 
12946
+ /**
12947
+ * Extra params for {@link EmbedContextProps.rehydrateWithParams}.
12948
+ */
12949
+ export declare interface RehydrateParams {
12950
+ /**
12951
+ * Add-on IDs to offer in the checkout even when they aren't live in the
12952
+ * catalog, such as an add-on created for a single purchase. Including an
12953
+ * add-on doesn't select it; pass it in `initializeWithPlan`'s `addOnIds` for
12954
+ * that. An ID that isn't an add-on with a billing product is left out, with
12955
+ * a console warning.
12956
+ */
12957
+ includeAddOnIds?: string[];
12958
+ }
12959
+
12926
12960
  declare interface RequestContext {
12927
12961
  fetch: FetchAPI;
12928
12962
  url: string;