@shoppexio/storefront 1.0.76 → 1.0.77

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,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.77
4
+
5
+ - Headless customer replacement requests now require `lineItemId` in the SDK types, matching the live API. Pass the invoice position UUID; omitted or null IDs are not valid. The read-only `replacementEligibility` query still allows omitting its line ID.
6
+
3
7
  ## 1.0.75
4
8
 
5
9
  - `getStore`, `getStorefront`, `resolveStoreByDomain`, `getProducts`, `getStorefrontProductsPage`, `getProduct` and `getCategories` now forward the full failure contract (`code`, `errorParams`, `status`, `responseReceived`, `responseDefinitive`) instead of rebuilding `{ success: false, message }`, so `code === 'errors.storefront.currency_unavailable'` is branchable through every catalog read. A slug `getProduct()` whose store lookup failed returns that failure instead of a misleading not-found.
package/dist/customer.cjs CHANGED
@@ -15705,7 +15705,7 @@ var HeadlessCustomerClient = class {
15705
15705
  method: "POST",
15706
15706
  authenticated: true,
15707
15707
  body: {
15708
- line_item_id: options.lineItemId ?? null,
15708
+ line_item_id: options.lineItemId,
15709
15709
  reason: options.reason,
15710
15710
  ...options.idempotencyKey ? { idempotency_key: options.idempotencyKey } : {}
15711
15711
  },