@shoppexio/storefront 1.0.108 → 1.0.109

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
@@ -20193,6 +20193,12 @@ var customerPortalDashboardSchema = external_exports.object({
20193
20193
  email: external_exports.string(),
20194
20194
  name: external_exports.string()
20195
20195
  }),
20196
+ /*
20197
+ * A merchant's portal link opened this session: the redeem and sign-in routes
20198
+ * refuse it with a 403. Undeclared here, the SDK stripped it and the code
20199
+ * storefront kept offering Redeem until the confirm failed.
20200
+ */
20201
+ opened_by_portal_link: external_exports.boolean(),
20196
20202
  stats: external_exports.object({
20197
20203
  invoices_count: external_exports.number(),
20198
20204
  licenses_count: external_exports.number(),
@@ -20380,21 +20386,6 @@ var customerPortalEmailPreferencesSchema = external_exports.object({
20380
20386
  var customerPortalEmailPreferencesUpdateSchema = external_exports.object({
20381
20387
  updated: external_exports.boolean()
20382
20388
  });
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
20389
  var customerPortalLicenseResetSchema = external_exports.object({
20399
20390
  license: external_exports.object({
20400
20391
  uniqid: external_exports.string(),
@@ -21119,26 +21110,6 @@ var HeadlessCustomerClient = class {
21119
21110
  schema: customerWarrantyClaimSchema
21120
21111
  });
21121
21112
  }
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
21113
  affiliate() {
21143
21114
  return this.request("/affiliate", {
21144
21115
  authenticated: true,