@shoppexio/storefront 1.0.108 → 1.0.110

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/customer.cjs CHANGED
@@ -19983,6 +19983,17 @@ var customerPortalAffiliateSummarySchema = external_exports.object({
19983
19983
  custom_links_require_approval: external_exports.boolean(),
19984
19984
  affiliate_codes_accepted_at_checkout: external_exports.boolean(),
19985
19985
  cash_payout_enabled: external_exports.boolean(),
19986
+ /** "Your rates" (`readAffiliateRatesSummary`); null until the main link is approved and active. */
19987
+ rates: external_exports.object({
19988
+ percent: external_exports.number(),
19989
+ disabled_products: external_exports.array(external_exports.string()),
19990
+ disabled_product_count: external_exports.number(),
19991
+ custom_rate_product_count: external_exports.number(),
19992
+ cap_usd: nullableStringSchema,
19993
+ minimum_order_usd: nullableStringSchema,
19994
+ binding_mode: external_exports.enum(["PER_ORDER", "LIFETIME_FIRST", "LIFETIME_LAST"]),
19995
+ binding_days: external_exports.number().nullable()
19996
+ }).nullable(),
19986
19997
  links: external_exports.array(customerPortalAffiliateLinkSchema),
19987
19998
  preferred_payout: external_exports.object({
19988
19999
  asset: external_exports.string(),
@@ -20193,6 +20204,12 @@ var customerPortalDashboardSchema = external_exports.object({
20193
20204
  email: external_exports.string(),
20194
20205
  name: external_exports.string()
20195
20206
  }),
20207
+ /*
20208
+ * A merchant's portal link opened this session: the redeem and sign-in routes
20209
+ * refuse it with a 403. Undeclared here, the SDK stripped it and the code
20210
+ * storefront kept offering Redeem until the confirm failed.
20211
+ */
20212
+ opened_by_portal_link: external_exports.boolean(),
20196
20213
  stats: external_exports.object({
20197
20214
  invoices_count: external_exports.number(),
20198
20215
  licenses_count: external_exports.number(),
@@ -20380,21 +20397,6 @@ var customerPortalEmailPreferencesSchema = external_exports.object({
20380
20397
  var customerPortalEmailPreferencesUpdateSchema = external_exports.object({
20381
20398
  updated: external_exports.boolean()
20382
20399
  });
20383
- var customerPortalFavoritesSchema = external_exports.object({
20384
- favorites: external_exports.array(external_exports.object({
20385
- product_uniqid: external_exports.string(),
20386
- title: external_exports.string(),
20387
- slug: nullableStringSchema2,
20388
- image_url: nullableStringSchema2,
20389
- price_display: external_exports.number(),
20390
- unavailable: external_exports.boolean(),
20391
- created_at: external_exports.string()
20392
- }))
20393
- });
20394
- var customerPortalFavoriteMutationSchema = external_exports.union([
20395
- external_exports.object({ added: external_exports.literal(true) }),
20396
- external_exports.object({ removed: external_exports.literal(true) })
20397
- ]);
20398
20400
  var customerPortalLicenseResetSchema = external_exports.object({
20399
20401
  license: external_exports.object({
20400
20402
  uniqid: external_exports.string(),
@@ -21119,26 +21121,6 @@ var HeadlessCustomerClient = class {
21119
21121
  schema: customerWarrantyClaimSchema
21120
21122
  });
21121
21123
  }
21122
- favorites() {
21123
- return this.request("/favorites", {
21124
- authenticated: true,
21125
- schema: customerPortalFavoritesSchema
21126
- });
21127
- }
21128
- addFavorite(productId) {
21129
- return this.request(`/favorites/${encodeURIComponent(productId)}`, {
21130
- method: "PUT",
21131
- authenticated: true,
21132
- schema: customerPortalFavoriteMutationSchema
21133
- });
21134
- }
21135
- removeFavorite(productId) {
21136
- return this.request(`/favorites/${encodeURIComponent(productId)}`, {
21137
- method: "DELETE",
21138
- authenticated: true,
21139
- schema: customerPortalFavoriteMutationSchema
21140
- });
21141
- }
21142
21124
  affiliate() {
21143
21125
  return this.request("/affiliate", {
21144
21126
  authenticated: true,