@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/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.110
4
+
5
+ - `getShopReviewsPage()`: `ShopReviewsSummary` declares `verified` (the reviews among `total` written on a delivered order, the entries with `verified: true`) and `verified_average_score` (their own average, null when none is). A product's `feedback` (`ProductFeedback`) declares the same pair as `verified` and `verified_average`. All optional: absent until the API that sends them is deployed.
6
+ - `getStorefrontRecentSales()`: `StorefrontRecentSaleEntry` declares `product_uniqid`, the sold product's public id, to link the sale. Optional until the API that sends it is deployed.
7
+ - `Product` declares `warranty_period_days`: the warranty a buyer claims per purchase in their account, in days, null for none. Optional until the API that sends it is deployed.
8
+
9
+ ## 1.0.109
10
+
11
+ - Breaking: customer favorites are retired (PR #3838). The customer module drops `favorites`, `addFavorite` and `removeFavorite`, and the headless customer client drops `favorites`, `addFavorite` and `removeFavorite` with the `HeadlessCustomerFavorites` and `HeadlessCustomerFavoriteMutation` types: the API removes `/v1/customer/favorites`, so these calls would only answer 404.
12
+
3
13
  ## 1.0.108
4
14
 
5
15
  - `dashboard()` (`@shoppexio/storefront/customer`) keeps a subscription's `discount` (the running checkout code: `code`, `discount_type`, `discount_value`, `max_discount`, `currency`, `duration`, `payments_total`, `payments_used`, `discounted_amount`, `full_amount`, `discount_amount`, `next_amount`; null without one) instead of stripping it. Optional: absent until the API that sends it is deployed.
@@ -19972,6 +19972,17 @@ var customerPortalAffiliateSummarySchema = external_exports.object({
19972
19972
  custom_links_require_approval: external_exports.boolean(),
19973
19973
  affiliate_codes_accepted_at_checkout: external_exports.boolean(),
19974
19974
  cash_payout_enabled: external_exports.boolean(),
19975
+ /** "Your rates" (`readAffiliateRatesSummary`); null until the main link is approved and active. */
19976
+ rates: external_exports.object({
19977
+ percent: external_exports.number(),
19978
+ disabled_products: external_exports.array(external_exports.string()),
19979
+ disabled_product_count: external_exports.number(),
19980
+ custom_rate_product_count: external_exports.number(),
19981
+ cap_usd: nullableStringSchema,
19982
+ minimum_order_usd: nullableStringSchema,
19983
+ binding_mode: external_exports.enum(["PER_ORDER", "LIFETIME_FIRST", "LIFETIME_LAST"]),
19984
+ binding_days: external_exports.number().nullable()
19985
+ }).nullable(),
19975
19986
  links: external_exports.array(customerPortalAffiliateLinkSchema),
19976
19987
  preferred_payout: external_exports.object({
19977
19988
  asset: external_exports.string(),
@@ -20182,6 +20193,12 @@ var customerPortalDashboardSchema = external_exports.object({
20182
20193
  email: external_exports.string(),
20183
20194
  name: external_exports.string()
20184
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(),
20185
20202
  stats: external_exports.object({
20186
20203
  invoices_count: external_exports.number(),
20187
20204
  licenses_count: external_exports.number(),
@@ -20304,4 +20321,4 @@ export {
20304
20321
  customerPortalNotificationPreferencesSchema,
20305
20322
  customerPortalAffiliateCreateLinkSchema
20306
20323
  };
20307
- //# sourceMappingURL=chunk-HMEEWD3P.js.map
20324
+ //# sourceMappingURL=chunk-ZO3MHBVV.js.map