@zeniai/client-epic-state 4.10.8 → 4.10.10

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.
@@ -29,6 +29,31 @@ const toSaveAccountMappingPayload = (accountingLocalData) => {
29
29
  labels: [],
30
30
  });
31
31
  }
32
+ if (Boolean(accountingLocalData.selectedBillPayAccountId) === true) {
33
+ accounts.push({
34
+ account_id: accountingLocalData.selectedBillPayAccountId,
35
+ labels: ['bank_charges_and_fees'],
36
+ });
37
+ }
38
+ else if (Boolean(accountingLocalData.previousBillPayAccount) === true) {
39
+ accounts.push({
40
+ account_id: accountingLocalData.previousBillPayAccount
41
+ .accountId,
42
+ labels: [],
43
+ });
44
+ }
45
+ if (Boolean(accountingLocalData.selectedReimbursementsAccountId) === true) {
46
+ accounts.push({
47
+ account_id: accountingLocalData.selectedReimbursementsAccountId,
48
+ labels: ['travel_transportation'],
49
+ });
50
+ }
51
+ else if (Boolean(accountingLocalData.previousReimbursementsAccount) === true) {
52
+ accounts.push({
53
+ account_id: accountingLocalData.previousReimbursementsAccount.accountId,
54
+ labels: [],
55
+ });
56
+ }
32
57
  if (accountingLocalData.selectedPrepaidExpensesAccountIds.length > 0) {
33
58
  (_b = accountingLocalData.selectedPrepaidExpensesAccountIds) === null || _b === void 0 ? void 0 : _b.forEach((accountId) => {
34
59
  accounts.push({
@@ -15,6 +15,7 @@ const fetchEntityRecommendationsByTransactionIdEpic = (actions$, state$, zeniAPI
15
15
  amount,
16
16
  transaction_id: (0, transactionDetailState_1.getActualTransactionID)(transactionDetails.transactionId.id),
17
17
  transaction_type: transactionDetails.transaction.type,
18
+ line_ids: transactionDetails.lineIds,
18
19
  };
19
20
  return zeniAPI
20
21
  .getJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/${(0, exports.toEntityTypeURL)(entity.type)}/${entity.qboId}/recommendations?query=${encodeURIComponent(JSON.stringify(query))}`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.10.8",
3
+ "version": "4.10.10",
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",