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 +14 -0
- package/dist/lib/Cart/index.js +1 -1
- package/dist/lib/Cart/index.js.map +1 -1
- package/dist/lib/Space/index.js +10 -3
- package/dist/lib/Space/index.js.map +1 -1
- package/dist/rules/GR/constants/data.d.ts +1 -7
- package/dist/rules/GR/constants/data.js +2 -8
- package/dist/rules/GR/constants/data.js.map +1 -1
- package/dist/rules/GR/interfaces/cart.d.ts +13 -1
- package/dist/rules/GR/utils/expedition.d.ts +6 -13
- package/dist/rules/GR/utils/expedition.js +54 -31
- package/dist/rules/GR/utils/expedition.js.map +1 -1
- package/dist/rules/GR/utils/products.d.ts +4 -14
- package/dist/rules/GR/utils/products.js +32 -31
- package/dist/rules/GR/utils/products.js.map +1 -1
- package/dist/services/database/Config.js +2 -2
- package/dist/services/database/Config.js.map +1 -1
- package/dist/services/database/DatabaseService.d.ts +1 -2
- package/dist/services/database/DatabaseService.js +2 -16
- package/dist/services/database/DatabaseService.js.map +1 -1
- package/dist/services/database/NotFirebaseProvider.js.map +1 -1
- package/dist/utils/inventories.d.ts +1 -2
- package/dist/utils/inventories.js.map +1 -1
- package/dist/utils/zones.js +1 -5
- package/dist/utils/zones.js.map +1 -1
- package/package.json +1 -1
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
|
package/dist/lib/Cart/index.js
CHANGED
|
@@ -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];
|