@rechargeapps/storefront-client 1.83.0 → 1.84.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.
@@ -181,7 +181,7 @@ async function rechargeAdminRequest(method, url, { id, query, data, headers } =
181
181
  ...storefrontAccessToken ? { "X-Recharge-Storefront-Access-Token": storefrontAccessToken } : {},
182
182
  ...appName ? { "X-Recharge-Sdk-App-Name": appName } : {},
183
183
  ...appVersion ? { "X-Recharge-Sdk-App-Version": appVersion } : {},
184
- "X-Recharge-Sdk-Version": "1.83.0",
184
+ "X-Recharge-Sdk-Version": "1.84.0",
185
185
  ...headers ? headers : {}
186
186
  };
187
187
  return request.request(method, `${rechargeBaseUrl}${url}`, { id, query, data, headers: reqHeaders });
@@ -15,7 +15,7 @@ async function loadFromOnlineStore(id, country_code) {
15
15
  const { appName, appVersion } = options.getOptions();
16
16
  const headers = {
17
17
  "X-Recharge-Sdk-Fn": "loadFromOnlineStore",
18
- "X-Recharge-Sdk-Version": "1.83.0",
18
+ "X-Recharge-Sdk-Version": "1.84.0",
19
19
  ...appName ? { "X-Recharge-Sdk-App-Name": appName } : {},
20
20
  ...appVersion ? { "X-Recharge-Sdk-App-Version": appVersion } : {}
21
21
  };
@@ -49,7 +49,7 @@ async function rechargeApiRequest(method, url, { id, query, data, headers } = {}
49
49
  "X-Recharge-Sdk-Fn": session.internalFnCall,
50
50
  ...appName ? { "X-Recharge-Sdk-App-Name": appName } : {},
51
51
  ...appVersion ? { "X-Recharge-Sdk-App-Version": appVersion } : {},
52
- "X-Recharge-Sdk-Version": "1.83.0",
52
+ "X-Recharge-Sdk-Version": "1.84.0",
53
53
  "X-Request-Id": session.internalRequestId,
54
54
  ...session.tmp_fn_identifier ? { "X-Recharge-Sdk-Fn-Identifier": session.tmp_fn_identifier } : {},
55
55
  ...headers ? headers : {}
@@ -179,7 +179,7 @@ async function rechargeAdminRequest(method, url, { id, query, data, headers } =
179
179
  ...storefrontAccessToken ? { "X-Recharge-Storefront-Access-Token": storefrontAccessToken } : {},
180
180
  ...appName ? { "X-Recharge-Sdk-App-Name": appName } : {},
181
181
  ...appVersion ? { "X-Recharge-Sdk-App-Version": appVersion } : {},
182
- "X-Recharge-Sdk-Version": "1.83.0",
182
+ "X-Recharge-Sdk-Version": "1.84.0",
183
183
  ...headers ? headers : {}
184
184
  };
185
185
  return request(method, `${rechargeBaseUrl}${url}`, { id, query, data, headers: reqHeaders });
@@ -13,7 +13,7 @@ async function loadFromOnlineStore(id, country_code) {
13
13
  const { appName, appVersion } = getOptions();
14
14
  const headers = {
15
15
  "X-Recharge-Sdk-Fn": "loadFromOnlineStore",
16
- "X-Recharge-Sdk-Version": "1.83.0",
16
+ "X-Recharge-Sdk-Version": "1.84.0",
17
17
  ...appName ? { "X-Recharge-Sdk-App-Name": appName } : {},
18
18
  ...appVersion ? { "X-Recharge-Sdk-App-Version": appVersion } : {}
19
19
  };
@@ -47,7 +47,7 @@ async function rechargeApiRequest(method, url, { id, query, data, headers } = {}
47
47
  "X-Recharge-Sdk-Fn": session.internalFnCall,
48
48
  ...appName ? { "X-Recharge-Sdk-App-Name": appName } : {},
49
49
  ...appVersion ? { "X-Recharge-Sdk-App-Version": appVersion } : {},
50
- "X-Recharge-Sdk-Version": "1.83.0",
50
+ "X-Recharge-Sdk-Version": "1.84.0",
51
51
  "X-Request-Id": session.internalRequestId,
52
52
  ...session.tmp_fn_identifier ? { "X-Recharge-Sdk-Fn-Identifier": session.tmp_fn_identifier } : {},
53
53
  ...headers ? headers : {}
package/dist/index.d.ts CHANGED
@@ -987,7 +987,7 @@ type VariantSelectorStepSetting = StepSettingsCommon & {
987
987
  };
988
988
  type StepSettings = StepSettingsCommon & {
989
989
  data?: Record<string, unknown>;
990
- type: Omit<StepSettingsTypes, 'variantSelector'>;
990
+ type: Exclude<StepSettingsTypes, 'variantSelector'>;
991
991
  };
992
992
  interface MultiStepSettings {
993
993
  optionImages: string;
@@ -1492,6 +1492,7 @@ interface SubscriptionBase {
1492
1492
  bundle_product?: BundleProduct | null;
1493
1493
  customer_entitlements?: CustomerEntitlement[] | null;
1494
1494
  addons?: Addon[] | null;
1495
+ expires_at?: IsoDateString | null;
1495
1496
  };
1496
1497
  /** The id of the parent subscription. When present, this subscription will be created as a child and linked to the parent. */
1497
1498
  addon_parent_subscription_id?: number;
@@ -1523,7 +1524,7 @@ interface SubscriptionsResponse {
1523
1524
  previous_cursor: null | string;
1524
1525
  subscriptions: Subscription[];
1525
1526
  }
1526
- type SubscriptionIncludes = 'address' | 'customer' | 'metafields' | 'bundle_product' | 'bundle_selections' | 'charge_activities' | 'customer_entitlements' | 'addons';
1527
+ type SubscriptionIncludes = 'address' | 'customer' | 'metafields' | 'bundle_product' | 'bundle_selections' | 'charge_activities' | 'customer_entitlements' | 'addons' | 'expires_at';
1527
1528
  interface GetSubscriptionOptions {
1528
1529
  include?: SubscriptionIncludes[];
1529
1530
  }