addio-admin-sdk 1.6.44 → 1.6.46

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,3 +1,17 @@
1
+ ## [03-07-2024]
2
+
3
+ ### Vrac Shipping Fee and zone check - Ajustments
4
+
5
+ - **Added**
6
+ - New props in `applyFeesToCart` for vracStoreIDs (optionnal, can be undefined)
7
+ - New values for props `settings` in `fetchFeesBeforeCart`:
8
+ - `useDefaultAddress` is now `useStoreAddress`, and is a string instead of a boolean
9
+ - `useAvailableVracStores`, string[]
10
+ - **Changed**
11
+ - Updated logic in function `applyFeesToCart` to check 'zone-vrac' AND 'zone-vrac-les-coteaux' before applying shipping fee. Also sets cart as outOfZone if address is in zone where some products are unavailable.
12
+ - Removed const `defaultStoreAddress` from data utils, and added new function `getStoreAddressByID`
13
+ - **Fixed**
14
+
1
15
  ## [28-05-2024]
2
16
 
3
17
  ### Create Pro custom price list - Adjustments for entente prices
@@ -1402,7 +1402,7 @@ var Cart = (function (_super) {
1402
1402
  return [4, (0, logs_1.SystemLog)({
1403
1403
  clientName: "sdk-admin | Cart | ...SuccPayPayload, space: ".concat((0, services_1.getSpaceInitialsByID)(space.data().id)),
1404
1404
  clientToken: (_b = process.env.NEXT_PUBLIC_LOG_SYSTEM_KEY) !== null && _b !== void 0 ? _b : ''
1405
- }, logs_1.LogType.WARNING, "Error while incrementaing space ref - got ref #".concat(newRef, " - ").concat(error_10.toString()))];
1405
+ }, logs_1.LogType.WARNING, "Error while incrementaing space ref - cart id ".concat(this._data.id, " - got ref #").concat(newRef, " - ").concat(error_10.toString()))];
1406
1406
  case 3:
1407
1407
  _c.sent();
1408
1408
  return [3, 4];