@rechargeapps/storefront-client 1.9.0 → 1.10.1
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/cjs/api/auth.js +8 -8
- package/dist/cjs/api/auth.js.map +1 -1
- package/dist/cjs/api/customer.js.map +1 -1
- package/dist/cjs/constants/api.js +32 -3
- package/dist/cjs/constants/api.js.map +1 -1
- package/dist/cjs/utils/init.js +2 -1
- package/dist/cjs/utils/init.js.map +1 -1
- package/dist/cjs/utils/request.js +2 -2
- package/dist/cjs/utils/request.js.map +1 -1
- package/dist/esm/api/auth.js +8 -8
- package/dist/esm/api/auth.js.map +1 -1
- package/dist/esm/api/customer.js.map +1 -1
- package/dist/esm/constants/api.js +32 -3
- package/dist/esm/constants/api.js.map +1 -1
- package/dist/esm/utils/init.js +2 -1
- package/dist/esm/utils/init.js.map +1 -1
- package/dist/esm/utils/request.js +2 -2
- package/dist/esm/utils/request.js.map +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/umd/recharge-client.min.js +4 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -396,6 +396,7 @@ interface BundleSelection {
|
|
|
396
396
|
type BundleSelectionItemRequiredCreateProps = 'collection_id' | 'collection_source' | 'external_product_id' | 'external_variant_id' | 'quantity';
|
|
397
397
|
interface CreateBundleSelectionRequest {
|
|
398
398
|
purchase_item_id: number;
|
|
399
|
+
plan_id?: number;
|
|
399
400
|
items: Pick<BundleSelectionItem, BundleSelectionItemRequiredCreateProps>[];
|
|
400
401
|
}
|
|
401
402
|
interface UpdateBundleSelectionRequest extends CreateBundleSelectionRequest {
|
|
@@ -419,6 +420,7 @@ interface UpdateBundlePurchaseItem extends UpdateSubscriptionRequest {
|
|
|
419
420
|
external_variant_id: {
|
|
420
421
|
ecommerce: string;
|
|
421
422
|
};
|
|
423
|
+
plan_id?: number;
|
|
422
424
|
items: Pick<BundleSelectionItem, BundleSelectionItemRequiredCreateProps>[];
|
|
423
425
|
}
|
|
424
426
|
interface BundlePurchaseItem extends Subscription {
|
|
@@ -2259,9 +2261,10 @@ interface OnetimeListParams extends ListParams<OnetimesSortBy> {
|
|
|
2259
2261
|
}
|
|
2260
2262
|
|
|
2261
2263
|
/** @internal */
|
|
2262
|
-
type StorefrontEnvironment = 'stage' | 'prod';
|
|
2264
|
+
type StorefrontEnvironment = 'stage' | 'prod' | 'prestage' | 'preprod';
|
|
2263
2265
|
/** @internal */
|
|
2264
2266
|
interface StorefrontOptions {
|
|
2267
|
+
/** On Shopify this should be your myshopify.com domain */
|
|
2265
2268
|
storeIdentifier: string;
|
|
2266
2269
|
/** Recharge storefront access token used for Recharge Storefront API access */
|
|
2267
2270
|
storefrontAccessToken?: string;
|
|
@@ -2275,8 +2278,11 @@ interface StorefrontOptions {
|
|
|
2275
2278
|
loginRetryFn?: () => Promise<Session | undefined>;
|
|
2276
2279
|
/** This is only for internal use. Sets the environment where data is fetched from. */
|
|
2277
2280
|
environment: StorefrontEnvironment;
|
|
2281
|
+
/** This is only for internal use. Sets the environment host for prestage/preprod environment. */
|
|
2282
|
+
environmentUri?: string;
|
|
2278
2283
|
}
|
|
2279
2284
|
interface InitOptions {
|
|
2285
|
+
/** On Shopify this should be your myshopify.com domain */
|
|
2280
2286
|
storeIdentifier?: string;
|
|
2281
2287
|
/** Recharge storefront access token used for Recharge Storefront API access */
|
|
2282
2288
|
storefrontAccessToken?: string;
|