@zeniai/client-epic-state 4.13.64 → 4.13.66
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 : [];
|
|
@@ -228,7 +228,9 @@ const checkIfAllLineItemsAreCategoryClassFilled = (transaction, transactionDetai
|
|
|
228
228
|
return lineItems.every((lineItem) => {
|
|
229
229
|
var _a, _b, _c;
|
|
230
230
|
return lineItem.account != null &&
|
|
231
|
+
Boolean(lineItem.account.qboId) === true &&
|
|
231
232
|
lineItem.class != null &&
|
|
233
|
+
Boolean(lineItem.class.qboId) === true &&
|
|
232
234
|
!(((_a = lineItem.account) === null || _a === void 0 ? void 0 : _a.qboId) != null &&
|
|
233
235
|
[exports.EXPENSE_QBOID, exports.INCOME_QBOID].includes(lineItem.account.qboId)) &&
|
|
234
236
|
(isVendorTransactionAvailable
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.13.
|
|
3
|
+
"version": "4.13.66",
|
|
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",
|