@zeniai/client-epic-state 4.13.64 → 4.13.65

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.
@@ -13,8 +13,12 @@ const createAddressEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, opera
13
13
  const addressData = (_a = state$.value.addressViewState.newAddressState) === null || _a === void 0 ? void 0 : _a[addressType];
14
14
  if (addressData != null) {
15
15
  const payload = (0, addressViewPayload_1.toAddressUpdatableInfoPayload)(addressData.addressToCreate);
16
+ //adding query param for custom address creation
17
+ const queryParam = addressType.includes('custom_shipping_')
18
+ ? `?query=${encodeURIComponent(JSON.stringify({ is_default_namespace_sync_enabled: true }))}`
19
+ : '';
16
20
  return zeniAPI
17
- .postAndGetJSON(`${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/addresses`, payload)
21
+ .postAndGetJSON(`${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/addresses${queryParam}`, payload)
18
22
  .pipe((0, operators_1.mergeMap)((response) => {
19
23
  var _a;
20
24
  const addresses = response.data != null ? (_a = response.data) === null || _a === void 0 ? void 0 : _a.addresses : [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.13.64",
3
+ "version": "4.13.65",
4
4
  "description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",