@zeniai/client-epic-state 5.1.0 → 5.1.1
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/lib/commonStateTypes/animations.d.ts +1 -1
- package/lib/commonStateTypes/animations.js +1 -0
- package/lib/entity/jeSchedules/jeSchedulesPayload.js +18 -6
- package/lib/entity/tenant/clearAllEpic.d.ts +2 -2
- package/lib/entity/tenant/clearAllEpic.js +2 -2
- package/lib/entity/tenant/tenantReducer.js +5 -5
- package/lib/entity/transaction/payloadTypes/transactionPayload.js +4 -2
- package/lib/epic.d.ts +2 -2
- package/lib/epic.js +2 -2
- package/lib/esm/commonStateTypes/animations.js +1 -0
- package/lib/esm/entity/cardPolicy/extractPolicyDocumentEpic.js +1 -1
- package/lib/esm/entity/jeSchedules/jeSchedulesPayload.js +18 -6
- package/lib/esm/entity/tenant/clearAllEpic.js +2 -2
- package/lib/esm/entity/tenant/tenantReducer.js +5 -5
- package/lib/esm/entity/transaction/payloadTypes/transactionPayload.js +4 -2
- package/lib/esm/epic.js +2 -2
- package/lib/esm/index.js +3 -3
- package/lib/esm/reducer.js +3 -3
- package/lib/esm/view/companyView/epic/companyPassport/updateCapitalizationAccountThresholdEpic.js +3 -3
- package/lib/esm/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +1 -1
- package/lib/esm/view/spendManagement/autotransferRules/autoTransferRulesSelector.js +1 -1
- package/lib/esm/view/spendManagement/billPay/editBillView/editBillViewSelector.js +1 -1
- package/lib/esm/view/spendManagement/cashManagement/autoSweepFlow/epics/fetchCashManagementSettingsEpic.js +1 -3
- package/lib/esm/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewSelector.js +1 -2
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/updateCardPolicyEpic.js +1 -1
- package/lib/index.d.ts +4 -4
- package/lib/index.js +9 -9
- package/lib/reducer.d.ts +3 -3
- package/lib/reducer.js +3 -3
- package/lib/view/companyView/epic/companyPassport/updateCapitalizationAccountThresholdEpic.d.ts +1 -1
- package/lib/view/companyView/epic/companyPassport/updateCapitalizationAccountThresholdEpic.js +2 -2
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +1 -1
- package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.d.ts +1 -1
- package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +1 -1
- package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +1 -1
- package/lib/view/spendManagement/autotransferRules/autoTransferRulesSelector.js +1 -1
- package/lib/view/spendManagement/autotransferRules/autoTransferRulesState.d.ts +1 -1
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +1 -1
- package/lib/view/spendManagement/cashManagement/autoSweepFlow/epics/fetchCashManagementSettingsEpic.js +1 -3
- package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewPayload.d.ts +1 -1
- package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewSelector.js +1 -2
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const toAnimationsFileName: (v: string) => "Success" | "AiAgent" | "AiIconEntry" | "AiIconExit" | "AiIconLoop" | "AiStar" | "AiStarIcon" | "AiStarPlain" | "AIPoweredInvoiceDark" | "AIPoweredInvoiceLight" | "Angry" | "AutoTransfer" | "CloseCard" | "Confetti" | "ConfettiSuccess" | "DashboardChristmasSnow" | "DashboardNewYearShow" | "DashboardSidebarBottomChristmas" | "DashboardSidebarBottomHalloween" | "DashboardSidebarBottomNewYear" | "DashboardSidebarBottomThanksgiving" | "DashboardSidebarTopChristmas" | "DashboardSidebarTopHalloween" | "DashboardSidebarTopNewYear" | "DashboardSidebarTopThanksgiving" | "Distribution" | "DistributionDark" | "EarnYield" | "FastestWayDark" | "FastestWayLight" | "FinanceTeamDark" | "FinanceTeamLight" | "Happy" | "Liquidity" | "LockCard" | "MoneyTransferSuccess" | "MultiLevelApprovalDark" | "MultiLevelApprovalLight" | "NotHappy" | "Protection" | "ReceiptDark" | "ReceiptLight" | "Recurring" | "RecurringDark" | "ReimburseDark" | "ReimburseLight" | "RewardsDark" | "RewardsDarkHover" | "RewardsLight" | "RewardsLightHover" | "Ripple" | "Secure" | "Target" | "TargetDark" | "UnlockCard" | "VeryHappy" | "ZeniAssist";
|
|
1
|
+
export declare const toAnimationsFileName: (v: string) => "Success" | "AiAgent" | "AiIconEntry" | "AiIconExit" | "AiIconLoop" | "AiStar" | "AiStarIcon" | "AiStarPlain" | "AIPoweredInvoiceDark" | "AIPoweredInvoiceLight" | "Angry" | "AutoTransfer" | "CloseCard" | "Confetti" | "ConfettiSuccess" | "DashboardChristmasSnow" | "DashboardNewYearShow" | "DashboardSidebarBottomChristmas" | "DashboardSidebarBottomHalloween" | "DashboardSidebarBottomNewYear" | "DashboardSidebarBottomThanksgiving" | "DashboardSidebarTopChristmas" | "DashboardSidebarTopHalloween" | "DashboardSidebarTopNewYear" | "DashboardSidebarTopThanksgiving" | "Distribution" | "DistributionDark" | "EarnYield" | "FastestWayDark" | "FastestWayLight" | "FinanceTeamDark" | "FinanceTeamLight" | "Happy" | "Liquidity" | "LockCard" | "MoneyTransferSuccess" | "MultiLevelApprovalDark" | "MultiLevelApprovalLight" | "NotHappy" | "Protection" | "ReceiptDark" | "ReceiptLight" | "Recurring" | "RecurringDark" | "ReimburseDark" | "ReimburseLight" | "RewardsDark" | "RewardsDarkHover" | "RewardsLight" | "RewardsLightHover" | "Ripple" | "Secure" | "Target" | "TargetDark" | "UnlockCard" | "VeryHappy" | "Welcome" | "ZeniAssist";
|
|
2
2
|
export type AnimationFileName = ReturnType<typeof toAnimationsFileName>;
|
|
@@ -155,28 +155,36 @@ function toJEScheduleAISummaries(payload) {
|
|
|
155
155
|
result.debitAccount = {
|
|
156
156
|
confidence: payload.debit_account.confidence,
|
|
157
157
|
reasoning: payload.debit_account.reasoning,
|
|
158
|
-
cot: Array.isArray(payload.debit_account.cot)
|
|
158
|
+
cot: Array.isArray(payload.debit_account.cot)
|
|
159
|
+
? payload.debit_account.cot
|
|
160
|
+
: undefined,
|
|
159
161
|
};
|
|
160
162
|
}
|
|
161
163
|
if (payload.credit_account != null) {
|
|
162
164
|
result.creditAccount = {
|
|
163
165
|
confidence: payload.credit_account.confidence,
|
|
164
166
|
reasoning: payload.credit_account.reasoning,
|
|
165
|
-
cot: Array.isArray(payload.credit_account.cot)
|
|
167
|
+
cot: Array.isArray(payload.credit_account.cot)
|
|
168
|
+
? payload.credit_account.cot
|
|
169
|
+
: undefined,
|
|
166
170
|
};
|
|
167
171
|
}
|
|
168
172
|
if (payload.debit_accounting_class != null) {
|
|
169
173
|
result.debitClass = {
|
|
170
174
|
confidence: payload.debit_accounting_class.confidence,
|
|
171
175
|
reasoning: payload.debit_accounting_class.reasoning,
|
|
172
|
-
cot: Array.isArray(payload.debit_accounting_class.cot)
|
|
176
|
+
cot: Array.isArray(payload.debit_accounting_class.cot)
|
|
177
|
+
? payload.debit_accounting_class.cot
|
|
178
|
+
: undefined,
|
|
173
179
|
};
|
|
174
180
|
}
|
|
175
181
|
if (payload.credit_accounting_class != null) {
|
|
176
182
|
result.creditClass = {
|
|
177
183
|
confidence: payload.credit_accounting_class.confidence,
|
|
178
184
|
reasoning: payload.credit_accounting_class.reasoning,
|
|
179
|
-
cot: Array.isArray(payload.credit_accounting_class.cot)
|
|
185
|
+
cot: Array.isArray(payload.credit_accounting_class.cot)
|
|
186
|
+
? payload.credit_accounting_class.cot
|
|
187
|
+
: undefined,
|
|
180
188
|
};
|
|
181
189
|
}
|
|
182
190
|
if (payload.period != null) {
|
|
@@ -190,14 +198,18 @@ function toJEScheduleAISummaries(payload) {
|
|
|
190
198
|
result.postingDate = {
|
|
191
199
|
confidence: payload.posting_date.confidence,
|
|
192
200
|
reasoning: payload.posting_date.reasoning,
|
|
193
|
-
cot: Array.isArray(payload.posting_date.cot)
|
|
201
|
+
cot: Array.isArray(payload.posting_date.cot)
|
|
202
|
+
? payload.posting_date.cot
|
|
203
|
+
: undefined,
|
|
194
204
|
};
|
|
195
205
|
}
|
|
196
206
|
if (payload.schedule_type != null) {
|
|
197
207
|
result.scheduleType = {
|
|
198
208
|
confidence: payload.schedule_type.confidence,
|
|
199
209
|
reasoning: payload.schedule_type.reasoning,
|
|
200
|
-
cot: Array.isArray(payload.schedule_type.cot)
|
|
210
|
+
cot: Array.isArray(payload.schedule_type.cot)
|
|
211
|
+
? payload.schedule_type.cot
|
|
212
|
+
: undefined,
|
|
201
213
|
};
|
|
202
214
|
}
|
|
203
215
|
return Object.keys(result).length > 0 ? result : undefined;
|
|
@@ -84,8 +84,6 @@ import { clearScheduleDetailView } from '../../view/scheduleView/scheduleDetailV
|
|
|
84
84
|
import { clearScheduleList } from '../../view/scheduleView/scheduleListView/scheduleListReducer';
|
|
85
85
|
import { clearSettingsView } from '../../view/settingsView/settingsViewReducer';
|
|
86
86
|
import { clearAutoTransferRules } from '../../view/spendManagement/autotransferRules/autoTransferRulesReducer';
|
|
87
|
-
import { clearAutoSweepFlow } from '../../view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowReducer';
|
|
88
|
-
import { clearCashManagementOverview } from '../../view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewReducer';
|
|
89
87
|
import { clearBillDetailView } from '../../view/spendManagement/billPay/billDetailView/billDetailViewReducer';
|
|
90
88
|
import { clearBillList } from '../../view/spendManagement/billPay/billList/billListReducer';
|
|
91
89
|
import { clearBillPayConfig } from '../../view/spendManagement/billPay/billPayConfig/billPayConfigReducer';
|
|
@@ -98,6 +96,8 @@ import { clearInternationalWire } from '../../view/spendManagement/billPay/inter
|
|
|
98
96
|
import { clearInternationalVerificationView } from '../../view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationReducer';
|
|
99
97
|
import { clearPreviousBills } from '../../view/spendManagement/billPay/previousBills/previousBillsReducer';
|
|
100
98
|
import { clearWiseRedirectStatus } from '../../view/spendManagement/billPay/wiseRedirectView/wiseRedirectReducer';
|
|
99
|
+
import { clearAutoSweepFlow } from '../../view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowReducer';
|
|
100
|
+
import { clearCashManagementOverview } from '../../view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewReducer';
|
|
101
101
|
import { clearCardPolicyDetail } from '../../view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailReducer';
|
|
102
102
|
import { clearCardPolicyList } from '../../view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListReducer';
|
|
103
103
|
import { clearCreateCardPolicy } from '../../view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyReducer';
|
|
@@ -88,8 +88,6 @@ const scheduleDetailReducer_1 = require("../../view/scheduleView/scheduleDetailV
|
|
|
88
88
|
const scheduleListReducer_1 = require("../../view/scheduleView/scheduleListView/scheduleListReducer");
|
|
89
89
|
const settingsViewReducer_1 = require("../../view/settingsView/settingsViewReducer");
|
|
90
90
|
const autoTransferRulesReducer_1 = require("../../view/spendManagement/autotransferRules/autoTransferRulesReducer");
|
|
91
|
-
const autoSweepFlowReducer_1 = require("../../view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowReducer");
|
|
92
|
-
const cashManagementOverviewReducer_1 = require("../../view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewReducer");
|
|
93
91
|
const billDetailViewReducer_1 = require("../../view/spendManagement/billPay/billDetailView/billDetailViewReducer");
|
|
94
92
|
const billListReducer_1 = require("../../view/spendManagement/billPay/billList/billListReducer");
|
|
95
93
|
const billPayConfigReducer_1 = require("../../view/spendManagement/billPay/billPayConfig/billPayConfigReducer");
|
|
@@ -102,6 +100,8 @@ const internationalWireReducer_1 = require("../../view/spendManagement/billPay/i
|
|
|
102
100
|
const internationalWireVerificationReducer_1 = require("../../view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationReducer");
|
|
103
101
|
const previousBillsReducer_1 = require("../../view/spendManagement/billPay/previousBills/previousBillsReducer");
|
|
104
102
|
const wiseRedirectReducer_1 = require("../../view/spendManagement/billPay/wiseRedirectView/wiseRedirectReducer");
|
|
103
|
+
const autoSweepFlowReducer_1 = require("../../view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowReducer");
|
|
104
|
+
const cashManagementOverviewReducer_1 = require("../../view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewReducer");
|
|
105
105
|
const cardPolicyDetailReducer_1 = require("../../view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailReducer");
|
|
106
106
|
const cardPolicyListReducer_1 = require("../../view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListReducer");
|
|
107
107
|
const createCardPolicyReducer_1 = require("../../view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyReducer");
|
|
@@ -200,18 +200,18 @@ const tenant = (0, toolkit_1.createSlice)({
|
|
|
200
200
|
currentOverrides[accountId] = threshold;
|
|
201
201
|
}
|
|
202
202
|
draft.tenantsById[tenantId].capitalizableAccountOverrides =
|
|
203
|
-
Object.keys(currentOverrides).length > 0
|
|
204
|
-
? currentOverrides
|
|
205
|
-
: null;
|
|
203
|
+
Object.keys(currentOverrides).length > 0 ? currentOverrides : null;
|
|
206
204
|
}
|
|
207
205
|
}
|
|
208
206
|
},
|
|
209
207
|
updateTenantCapitalizationOnboardingDismissed(draft, action) {
|
|
210
208
|
const { tenantId, accountId } = action.payload;
|
|
211
209
|
if (draft.tenantsById[tenantId] != null) {
|
|
212
|
-
const existing = draft.tenantsById[tenantId]
|
|
210
|
+
const existing = draft.tenantsById[tenantId]
|
|
211
|
+
.capitalizationOnboardingDismissedAccounts ?? {};
|
|
213
212
|
existing[accountId] = true;
|
|
214
|
-
draft.tenantsById[tenantId].capitalizationOnboardingDismissedAccounts =
|
|
213
|
+
draft.tenantsById[tenantId].capitalizationOnboardingDismissedAccounts =
|
|
214
|
+
existing;
|
|
215
215
|
}
|
|
216
216
|
},
|
|
217
217
|
updateTenantMasterTOSInfo(draft, action) {
|
|
@@ -73,7 +73,8 @@ const toTransaction = (payload) => {
|
|
|
73
73
|
payload.target_account_integration_id !== ''
|
|
74
74
|
? { targetAccountIntegrationId: payload.target_account_integration_id }
|
|
75
75
|
: {}),
|
|
76
|
-
...(payload.target_account_name != null &&
|
|
76
|
+
...(payload.target_account_name != null &&
|
|
77
|
+
payload.target_account_name !== ''
|
|
77
78
|
? { targetAccountName: payload.target_account_name }
|
|
78
79
|
: {}),
|
|
79
80
|
...(payload.to_from_account_id != null && payload.to_from_account_id !== ''
|
|
@@ -83,7 +84,8 @@ const toTransaction = (payload) => {
|
|
|
83
84
|
payload.to_from_account_integration_id !== ''
|
|
84
85
|
? { toFromAccountIntegrationId: payload.to_from_account_integration_id }
|
|
85
86
|
: {}),
|
|
86
|
-
...(payload.to_from_account_name != null &&
|
|
87
|
+
...(payload.to_from_account_name != null &&
|
|
88
|
+
payload.to_from_account_name !== ''
|
|
87
89
|
? { toFromAccountName: payload.to_from_account_name }
|
|
88
90
|
: {}),
|
|
89
91
|
...(payload.category_id != null && payload.category_id !== ''
|
package/lib/epic.d.ts
CHANGED
|
@@ -340,11 +340,11 @@ import { ActionType as FetchBillListPerTabActionType } from './view/spendManagem
|
|
|
340
340
|
import { ActionType as FetchBillPayConfigActionType } from './view/spendManagement/billPay/billPayConfig/fetchBillPayConfigEpic';
|
|
341
341
|
import { ActionType as FetchDuplicateBillActionType } from './view/spendManagement/billPay/billPayReview/fetchDuplicateBillEpic';
|
|
342
342
|
import { ActionType as DeleteBillPayApprovalRuleActionType } from './view/spendManagement/billPay/billPaySetupApproverView/epic/deleteBillPayApprovalRuleEpic';
|
|
343
|
-
import { ActionType as ReorderBillPayApprovalRulesActionType } from './view/spendManagement/billPay/billPaySetupApproverView/epic/reorderBillPayApprovalRulesEpic';
|
|
344
343
|
import { ActionType as FetchBillPayApproversDetailsActionType } from './view/spendManagement/billPay/billPaySetupApproverView/epic/fetchBillPayApproversDetailsEpic';
|
|
345
344
|
import { ActionType as FetchBillPayApproversListActionType } from './view/spendManagement/billPay/billPaySetupApproverView/epic/fetchBillPayApproversListEpic';
|
|
346
345
|
import { ActionType as FetchBillPaySetupApproverViewActionType } from './view/spendManagement/billPay/billPaySetupApproverView/epic/fetchBillPaySetupApproverViewEpic';
|
|
347
346
|
import { ActionType as InitializeBillPaySetupApproverViewUpdateDataActionType } from './view/spendManagement/billPay/billPaySetupApproverView/epic/initializeBillPaySetupApproverViewUpdateDataEpic';
|
|
347
|
+
import { ActionType as ReorderBillPayApprovalRulesActionType } from './view/spendManagement/billPay/billPaySetupApproverView/epic/reorderBillPayApprovalRulesEpic';
|
|
348
348
|
import { ActionType as SaveBillPaySetupApproverViewUpdatesActionType } from './view/spendManagement/billPay/billPaySetupApproverView/epic/saveBillPaySetupApproverViewUpdatesEpic';
|
|
349
349
|
import { ActionType as FetchBillPaySetupViewActionType } from './view/spendManagement/billPay/billPaySetupView/epic/billPaySetup/fetchBillPaySetupViewEpic';
|
|
350
350
|
import { ActionType as AcceptBillPayTermsActionType } from './view/spendManagement/billPay/billPaySetupView/epic/billPayTerms/acceptBillPayTermsEpic';
|
|
@@ -465,11 +465,11 @@ import { ActionType as FetchRemiDetailActionType } from './view/spendManagement/
|
|
|
465
465
|
import { ActionType as FetchRemiListActionType } from './view/spendManagement/reimbursement/remiListView/fetchRemiListEpic';
|
|
466
466
|
import { ActionType as FetchRemiListPerTabActionType } from './view/spendManagement/reimbursement/remiListView/fetchRemiListPerTabEpic';
|
|
467
467
|
import { ActionType as DeleteRemiApprovalRuleActionType } from './view/spendManagement/reimbursement/remiSetupApproverView/epic/deleteRemiApprovalRuleEpic';
|
|
468
|
-
import { ActionType as ReorderRemiApprovalRulesActionType } from './view/spendManagement/reimbursement/remiSetupApproverView/epic/reorderRemiApprovalRulesEpic';
|
|
469
468
|
import { ActionType as FetchRemiApproversDetailsActionType } from './view/spendManagement/reimbursement/remiSetupApproverView/epic/fetchRemiApproversDetailsEpic';
|
|
470
469
|
import { ActionType as FetchRemiApproversListActionType } from './view/spendManagement/reimbursement/remiSetupApproverView/epic/fetchRemiApproversListEpic';
|
|
471
470
|
import { ActionType as FetchRemiSetupApproverViewActionType } from './view/spendManagement/reimbursement/remiSetupApproverView/epic/fetchRemiSetupApproverViewEpic';
|
|
472
471
|
import { ActionType as InitializeRemiSetupApproverViewUpdateDataActionType } from './view/spendManagement/reimbursement/remiSetupApproverView/epic/initializeRemiSetupApproverViewUpdateDataEpic';
|
|
472
|
+
import { ActionType as ReorderRemiApprovalRulesActionType } from './view/spendManagement/reimbursement/remiSetupApproverView/epic/reorderRemiApprovalRulesEpic';
|
|
473
473
|
import { ActionType as SaveRemiSetupApproverViewUpdatesActionType } from './view/spendManagement/reimbursement/remiSetupApproverView/epic/saveRemiSetupApproverViewUpdatesEpic';
|
|
474
474
|
import { ActionType as FetchRemiSetupViewActionType } from './view/spendManagement/reimbursement/remiSetupView/epic/remiSetup/fetchRemiSetupViewEpic';
|
|
475
475
|
import { ActionType as UpdateMileageDetailsActionType } from './view/spendManagement/reimbursement/remiSetupView/epic/remiSetup/updateMileageDetailsEpic';
|
package/lib/epic.js
CHANGED
|
@@ -351,11 +351,11 @@ const fetchBillListPerTabEpic_1 = require("./view/spendManagement/billPay/billLi
|
|
|
351
351
|
const fetchBillPayConfigEpic_1 = require("./view/spendManagement/billPay/billPayConfig/fetchBillPayConfigEpic");
|
|
352
352
|
const fetchDuplicateBillEpic_1 = require("./view/spendManagement/billPay/billPayReview/fetchDuplicateBillEpic");
|
|
353
353
|
const deleteBillPayApprovalRuleEpic_1 = require("./view/spendManagement/billPay/billPaySetupApproverView/epic/deleteBillPayApprovalRuleEpic");
|
|
354
|
-
const reorderBillPayApprovalRulesEpic_1 = require("./view/spendManagement/billPay/billPaySetupApproverView/epic/reorderBillPayApprovalRulesEpic");
|
|
355
354
|
const fetchBillPayApproversDetailsEpic_1 = require("./view/spendManagement/billPay/billPaySetupApproverView/epic/fetchBillPayApproversDetailsEpic");
|
|
356
355
|
const fetchBillPayApproversListEpic_1 = require("./view/spendManagement/billPay/billPaySetupApproverView/epic/fetchBillPayApproversListEpic");
|
|
357
356
|
const fetchBillPaySetupApproverViewEpic_1 = require("./view/spendManagement/billPay/billPaySetupApproverView/epic/fetchBillPaySetupApproverViewEpic");
|
|
358
357
|
const initializeBillPaySetupApproverViewUpdateDataEpic_1 = require("./view/spendManagement/billPay/billPaySetupApproverView/epic/initializeBillPaySetupApproverViewUpdateDataEpic");
|
|
358
|
+
const reorderBillPayApprovalRulesEpic_1 = require("./view/spendManagement/billPay/billPaySetupApproverView/epic/reorderBillPayApprovalRulesEpic");
|
|
359
359
|
const saveBillPaySetupApproverViewUpdatesEpic_1 = require("./view/spendManagement/billPay/billPaySetupApproverView/epic/saveBillPaySetupApproverViewUpdatesEpic");
|
|
360
360
|
const fetchBillPaySetupViewEpic_1 = require("./view/spendManagement/billPay/billPaySetupView/epic/billPaySetup/fetchBillPaySetupViewEpic");
|
|
361
361
|
const acceptBillPayTermsEpic_1 = require("./view/spendManagement/billPay/billPaySetupView/epic/billPayTerms/acceptBillPayTermsEpic");
|
|
@@ -476,11 +476,11 @@ const fetchRemiDetailEpic_1 = require("./view/spendManagement/reimbursement/remi
|
|
|
476
476
|
const fetchRemiListEpic_1 = require("./view/spendManagement/reimbursement/remiListView/fetchRemiListEpic");
|
|
477
477
|
const fetchRemiListPerTabEpic_1 = require("./view/spendManagement/reimbursement/remiListView/fetchRemiListPerTabEpic");
|
|
478
478
|
const deleteRemiApprovalRuleEpic_1 = require("./view/spendManagement/reimbursement/remiSetupApproverView/epic/deleteRemiApprovalRuleEpic");
|
|
479
|
-
const reorderRemiApprovalRulesEpic_1 = require("./view/spendManagement/reimbursement/remiSetupApproverView/epic/reorderRemiApprovalRulesEpic");
|
|
480
479
|
const fetchRemiApproversDetailsEpic_1 = require("./view/spendManagement/reimbursement/remiSetupApproverView/epic/fetchRemiApproversDetailsEpic");
|
|
481
480
|
const fetchRemiApproversListEpic_1 = require("./view/spendManagement/reimbursement/remiSetupApproverView/epic/fetchRemiApproversListEpic");
|
|
482
481
|
const fetchRemiSetupApproverViewEpic_1 = require("./view/spendManagement/reimbursement/remiSetupApproverView/epic/fetchRemiSetupApproverViewEpic");
|
|
483
482
|
const initializeRemiSetupApproverViewUpdateDataEpic_1 = require("./view/spendManagement/reimbursement/remiSetupApproverView/epic/initializeRemiSetupApproverViewUpdateDataEpic");
|
|
483
|
+
const reorderRemiApprovalRulesEpic_1 = require("./view/spendManagement/reimbursement/remiSetupApproverView/epic/reorderRemiApprovalRulesEpic");
|
|
484
484
|
const saveRemiSetupApproverViewUpdatesEpic_1 = require("./view/spendManagement/reimbursement/remiSetupApproverView/epic/saveRemiSetupApproverViewUpdatesEpic");
|
|
485
485
|
const fetchRemiSetupViewEpic_1 = require("./view/spendManagement/reimbursement/remiSetupView/epic/remiSetup/fetchRemiSetupViewEpic");
|
|
486
486
|
const updateMileageDetailsEpic_1 = require("./view/spendManagement/reimbursement/remiSetupView/epic/remiSetup/updateMileageDetailsEpic");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { of } from 'rxjs';
|
|
2
|
-
import { catchError, filter, mergeMap, switchMap, takeUntil } from 'rxjs/operators';
|
|
2
|
+
import { catchError, filter, mergeMap, switchMap, takeUntil, } from 'rxjs/operators';
|
|
3
3
|
import { createZeniAPIStatus, isSuccessStatus } from '../../responsePayload';
|
|
4
4
|
import { clearPolicyDocumentExtraction, extractPolicyDocument, updatePolicyDocumentExtractionFailure, updatePolicyDocumentExtractionSuccess, } from './cardPolicyReducer';
|
|
5
5
|
/**
|
|
@@ -145,28 +145,36 @@ function toJEScheduleAISummaries(payload) {
|
|
|
145
145
|
result.debitAccount = {
|
|
146
146
|
confidence: payload.debit_account.confidence,
|
|
147
147
|
reasoning: payload.debit_account.reasoning,
|
|
148
|
-
cot: Array.isArray(payload.debit_account.cot)
|
|
148
|
+
cot: Array.isArray(payload.debit_account.cot)
|
|
149
|
+
? payload.debit_account.cot
|
|
150
|
+
: undefined,
|
|
149
151
|
};
|
|
150
152
|
}
|
|
151
153
|
if (payload.credit_account != null) {
|
|
152
154
|
result.creditAccount = {
|
|
153
155
|
confidence: payload.credit_account.confidence,
|
|
154
156
|
reasoning: payload.credit_account.reasoning,
|
|
155
|
-
cot: Array.isArray(payload.credit_account.cot)
|
|
157
|
+
cot: Array.isArray(payload.credit_account.cot)
|
|
158
|
+
? payload.credit_account.cot
|
|
159
|
+
: undefined,
|
|
156
160
|
};
|
|
157
161
|
}
|
|
158
162
|
if (payload.debit_accounting_class != null) {
|
|
159
163
|
result.debitClass = {
|
|
160
164
|
confidence: payload.debit_accounting_class.confidence,
|
|
161
165
|
reasoning: payload.debit_accounting_class.reasoning,
|
|
162
|
-
cot: Array.isArray(payload.debit_accounting_class.cot)
|
|
166
|
+
cot: Array.isArray(payload.debit_accounting_class.cot)
|
|
167
|
+
? payload.debit_accounting_class.cot
|
|
168
|
+
: undefined,
|
|
163
169
|
};
|
|
164
170
|
}
|
|
165
171
|
if (payload.credit_accounting_class != null) {
|
|
166
172
|
result.creditClass = {
|
|
167
173
|
confidence: payload.credit_accounting_class.confidence,
|
|
168
174
|
reasoning: payload.credit_accounting_class.reasoning,
|
|
169
|
-
cot: Array.isArray(payload.credit_accounting_class.cot)
|
|
175
|
+
cot: Array.isArray(payload.credit_accounting_class.cot)
|
|
176
|
+
? payload.credit_accounting_class.cot
|
|
177
|
+
: undefined,
|
|
170
178
|
};
|
|
171
179
|
}
|
|
172
180
|
if (payload.period != null) {
|
|
@@ -180,14 +188,18 @@ function toJEScheduleAISummaries(payload) {
|
|
|
180
188
|
result.postingDate = {
|
|
181
189
|
confidence: payload.posting_date.confidence,
|
|
182
190
|
reasoning: payload.posting_date.reasoning,
|
|
183
|
-
cot: Array.isArray(payload.posting_date.cot)
|
|
191
|
+
cot: Array.isArray(payload.posting_date.cot)
|
|
192
|
+
? payload.posting_date.cot
|
|
193
|
+
: undefined,
|
|
184
194
|
};
|
|
185
195
|
}
|
|
186
196
|
if (payload.schedule_type != null) {
|
|
187
197
|
result.scheduleType = {
|
|
188
198
|
confidence: payload.schedule_type.confidence,
|
|
189
199
|
reasoning: payload.schedule_type.reasoning,
|
|
190
|
-
cot: Array.isArray(payload.schedule_type.cot)
|
|
200
|
+
cot: Array.isArray(payload.schedule_type.cot)
|
|
201
|
+
? payload.schedule_type.cot
|
|
202
|
+
: undefined,
|
|
191
203
|
};
|
|
192
204
|
}
|
|
193
205
|
return Object.keys(result).length > 0 ? result : undefined;
|
|
@@ -85,8 +85,6 @@ import { clearScheduleDetailView } from '../../view/scheduleView/scheduleDetailV
|
|
|
85
85
|
import { clearScheduleList } from '../../view/scheduleView/scheduleListView/scheduleListReducer';
|
|
86
86
|
import { clearSettingsView } from '../../view/settingsView/settingsViewReducer';
|
|
87
87
|
import { clearAutoTransferRules } from '../../view/spendManagement/autotransferRules/autoTransferRulesReducer';
|
|
88
|
-
import { clearAutoSweepFlow } from '../../view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowReducer';
|
|
89
|
-
import { clearCashManagementOverview } from '../../view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewReducer';
|
|
90
88
|
import { clearBillDetailView } from '../../view/spendManagement/billPay/billDetailView/billDetailViewReducer';
|
|
91
89
|
import { clearBillList } from '../../view/spendManagement/billPay/billList/billListReducer';
|
|
92
90
|
import { clearBillPayConfig } from '../../view/spendManagement/billPay/billPayConfig/billPayConfigReducer';
|
|
@@ -99,6 +97,8 @@ import { clearInternationalWire } from '../../view/spendManagement/billPay/inter
|
|
|
99
97
|
import { clearInternationalVerificationView } from '../../view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationReducer';
|
|
100
98
|
import { clearPreviousBills } from '../../view/spendManagement/billPay/previousBills/previousBillsReducer';
|
|
101
99
|
import { clearWiseRedirectStatus } from '../../view/spendManagement/billPay/wiseRedirectView/wiseRedirectReducer';
|
|
100
|
+
import { clearAutoSweepFlow } from '../../view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowReducer';
|
|
101
|
+
import { clearCashManagementOverview } from '../../view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewReducer';
|
|
102
102
|
import { clearCardPolicyDetail } from '../../view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailReducer';
|
|
103
103
|
import { clearCardPolicyList } from '../../view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListReducer';
|
|
104
104
|
import { clearCreateCardPolicy } from '../../view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyReducer';
|
|
@@ -188,18 +188,18 @@ const tenant = createSlice({
|
|
|
188
188
|
currentOverrides[accountId] = threshold;
|
|
189
189
|
}
|
|
190
190
|
draft.tenantsById[tenantId].capitalizableAccountOverrides =
|
|
191
|
-
Object.keys(currentOverrides).length > 0
|
|
192
|
-
? currentOverrides
|
|
193
|
-
: null;
|
|
191
|
+
Object.keys(currentOverrides).length > 0 ? currentOverrides : null;
|
|
194
192
|
}
|
|
195
193
|
}
|
|
196
194
|
},
|
|
197
195
|
updateTenantCapitalizationOnboardingDismissed(draft, action) {
|
|
198
196
|
const { tenantId, accountId } = action.payload;
|
|
199
197
|
if (draft.tenantsById[tenantId] != null) {
|
|
200
|
-
const existing = draft.tenantsById[tenantId]
|
|
198
|
+
const existing = draft.tenantsById[tenantId]
|
|
199
|
+
.capitalizationOnboardingDismissedAccounts ?? {};
|
|
201
200
|
existing[accountId] = true;
|
|
202
|
-
draft.tenantsById[tenantId].capitalizationOnboardingDismissedAccounts =
|
|
201
|
+
draft.tenantsById[tenantId].capitalizationOnboardingDismissedAccounts =
|
|
202
|
+
existing;
|
|
203
203
|
}
|
|
204
204
|
},
|
|
205
205
|
updateTenantMasterTOSInfo(draft, action) {
|
|
@@ -69,7 +69,8 @@ export const toTransaction = (payload) => {
|
|
|
69
69
|
payload.target_account_integration_id !== ''
|
|
70
70
|
? { targetAccountIntegrationId: payload.target_account_integration_id }
|
|
71
71
|
: {}),
|
|
72
|
-
...(payload.target_account_name != null &&
|
|
72
|
+
...(payload.target_account_name != null &&
|
|
73
|
+
payload.target_account_name !== ''
|
|
73
74
|
? { targetAccountName: payload.target_account_name }
|
|
74
75
|
: {}),
|
|
75
76
|
...(payload.to_from_account_id != null && payload.to_from_account_id !== ''
|
|
@@ -79,7 +80,8 @@ export const toTransaction = (payload) => {
|
|
|
79
80
|
payload.to_from_account_integration_id !== ''
|
|
80
81
|
? { toFromAccountIntegrationId: payload.to_from_account_integration_id }
|
|
81
82
|
: {}),
|
|
82
|
-
...(payload.to_from_account_name != null &&
|
|
83
|
+
...(payload.to_from_account_name != null &&
|
|
84
|
+
payload.to_from_account_name !== ''
|
|
83
85
|
? { toFromAccountName: payload.to_from_account_name }
|
|
84
86
|
: {}),
|
|
85
87
|
...(payload.category_id != null && payload.category_id !== ''
|
package/lib/esm/epic.js
CHANGED
|
@@ -349,11 +349,11 @@ import { fetchBillListPerTabEpic, } from './view/spendManagement/billPay/billLis
|
|
|
349
349
|
import { fetchBillPayConfigEpic, } from './view/spendManagement/billPay/billPayConfig/fetchBillPayConfigEpic';
|
|
350
350
|
import { fetchDuplicateBillPayReviewEpic, } from './view/spendManagement/billPay/billPayReview/fetchDuplicateBillEpic';
|
|
351
351
|
import { deleteBillPayApprovalRuleEpic, } from './view/spendManagement/billPay/billPaySetupApproverView/epic/deleteBillPayApprovalRuleEpic';
|
|
352
|
-
import { reorderBillPayApprovalRulesEpic, } from './view/spendManagement/billPay/billPaySetupApproverView/epic/reorderBillPayApprovalRulesEpic';
|
|
353
352
|
import { fetchBillPayApproversDetailsEpic, } from './view/spendManagement/billPay/billPaySetupApproverView/epic/fetchBillPayApproversDetailsEpic';
|
|
354
353
|
import { fetchBillPayApproversListEpic, } from './view/spendManagement/billPay/billPaySetupApproverView/epic/fetchBillPayApproversListEpic';
|
|
355
354
|
import { fetchBillPaySetupApproverViewEpic, } from './view/spendManagement/billPay/billPaySetupApproverView/epic/fetchBillPaySetupApproverViewEpic';
|
|
356
355
|
import { initializeBillPaySetupApproverViewUpdateDataEpic, } from './view/spendManagement/billPay/billPaySetupApproverView/epic/initializeBillPaySetupApproverViewUpdateDataEpic';
|
|
356
|
+
import { reorderBillPayApprovalRulesEpic, } from './view/spendManagement/billPay/billPaySetupApproverView/epic/reorderBillPayApprovalRulesEpic';
|
|
357
357
|
import { saveBillPaySetupApproverViewUpdatesEpic, } from './view/spendManagement/billPay/billPaySetupApproverView/epic/saveBillPaySetupApproverViewUpdatesEpic';
|
|
358
358
|
import { fetchBillPaySetupViewEpic, } from './view/spendManagement/billPay/billPaySetupView/epic/billPaySetup/fetchBillPaySetupViewEpic';
|
|
359
359
|
import { acceptBillPayTermsEpic, } from './view/spendManagement/billPay/billPaySetupView/epic/billPayTerms/acceptBillPayTermsEpic';
|
|
@@ -474,11 +474,11 @@ import { fetchRemiDetailEpic, } from './view/spendManagement/reimbursement/remiD
|
|
|
474
474
|
import { fetchRemiListEpic, } from './view/spendManagement/reimbursement/remiListView/fetchRemiListEpic';
|
|
475
475
|
import { fetchRemiListPerTabEpic, } from './view/spendManagement/reimbursement/remiListView/fetchRemiListPerTabEpic';
|
|
476
476
|
import { deleteRemiApprovalRuleEpic, } from './view/spendManagement/reimbursement/remiSetupApproverView/epic/deleteRemiApprovalRuleEpic';
|
|
477
|
-
import { reorderRemiApprovalRulesEpic, } from './view/spendManagement/reimbursement/remiSetupApproverView/epic/reorderRemiApprovalRulesEpic';
|
|
478
477
|
import { fetchRemiApproversDetailsEpic, } from './view/spendManagement/reimbursement/remiSetupApproverView/epic/fetchRemiApproversDetailsEpic';
|
|
479
478
|
import { fetchRemiApproversListEpic, } from './view/spendManagement/reimbursement/remiSetupApproverView/epic/fetchRemiApproversListEpic';
|
|
480
479
|
import { fetchRemiSetupApproverViewEpic, } from './view/spendManagement/reimbursement/remiSetupApproverView/epic/fetchRemiSetupApproverViewEpic';
|
|
481
480
|
import { initializeRemiSetupApproverViewUpdateDataEpic, } from './view/spendManagement/reimbursement/remiSetupApproverView/epic/initializeRemiSetupApproverViewUpdateDataEpic';
|
|
481
|
+
import { reorderRemiApprovalRulesEpic, } from './view/spendManagement/reimbursement/remiSetupApproverView/epic/reorderRemiApprovalRulesEpic';
|
|
482
482
|
import { saveRemiSetupApproverViewUpdatesEpic, } from './view/spendManagement/reimbursement/remiSetupApproverView/epic/saveRemiSetupApproverViewUpdatesEpic';
|
|
483
483
|
import { fetchRemiSetupViewEpic, } from './view/spendManagement/reimbursement/remiSetupView/epic/remiSetup/fetchRemiSetupViewEpic';
|
|
484
484
|
import { updateMileageDetailsEpic, } from './view/spendManagement/reimbursement/remiSetupView/epic/remiSetup/updateMileageDetailsEpic';
|
package/lib/esm/index.js
CHANGED
|
@@ -32,9 +32,9 @@ import { getAccountGroupKey, toAccountGroupType, } from './entity/accountGroup/a
|
|
|
32
32
|
*/
|
|
33
33
|
import { getAccountReconByAccountIdAndSelectedPeriod, } from './entity/accountRecon/accountReconSelector';
|
|
34
34
|
import { getAddressByAddressId } from './entity/address/addressSelector';
|
|
35
|
-
import { toAttributeOrRoleTypeStrict, toAttributeTypeStrict, toRoleTypeStrict, } from './entity/approvalRule/approvalRuleState';
|
|
36
|
-
import { getAmountCriteria, getApprovalRulesByEntityType, getDepartmentCriteria, getFallbackApprovalRule, getVendorCriteria, } from './entity/approvalRule/approvalRuleSelector';
|
|
37
35
|
import { detectRuleOverlap, } from './entity/approvalRule/approvalRuleConflict';
|
|
36
|
+
import { getAmountCriteria, getApprovalRulesByEntityType, getDepartmentCriteria, getFallbackApprovalRule, getVendorCriteria, } from './entity/approvalRule/approvalRuleSelector';
|
|
37
|
+
import { toAttributeOrRoleTypeStrict, toAttributeTypeStrict, toRoleTypeStrict, } from './entity/approvalRule/approvalRuleState';
|
|
38
38
|
import { toOutsideZeniPaymentModeType, } from './entity/billPay/billTransaction/billTransactionState';
|
|
39
39
|
import { toRecurringBillFrequency, toRecurringBillFrequencyStrict, } from './entity/billPay/recurringBills/recurringBillsState';
|
|
40
40
|
import { toCardAddressType, toCardType, toCreditLimitFrequencyCodeType, toShippingAddressType, } from './entity/chargeCard/chargeCard';
|
|
@@ -390,8 +390,8 @@ import { getAllTopExpenses, getTop6Expenses, getTopExpenses, } from './view/topE
|
|
|
390
390
|
*/
|
|
391
391
|
import { TOP_EX_TIME_PERIODS, } from './view/topEx/topExState';
|
|
392
392
|
import { getAccountingProviderAttachment, } from './view/transactionDetail/getAccountingProviderAttachmentSelector';
|
|
393
|
-
import { getChangedLineItemCountFromLocalData, isAccountUncategorized, } from './view/transactionDetail/transactionDetailLocalDataHelper';
|
|
394
393
|
import { JOURNAL_ENTRY_SORT_KEYS, filterJournalEntryLinesExcludingLinked, journalEntryDefaultSortConfig, journalEntryTotalsByPostingSide, sortJournalEntryLines, sumJournalEntryAmounts, toJournalEntrySortKey, } from './view/transactionDetail/journalEntryLinesViewModel';
|
|
394
|
+
import { getChangedLineItemCountFromLocalData, isAccountUncategorized, } from './view/transactionDetail/transactionDetailLocalDataHelper';
|
|
395
395
|
import { clearTransactionDetailSaveStatus, deleteTransactionAttachment, downloadAccountingProviderAttachment, downloadAccountingProviderAttachmentFailure, downloadAccountingProviderAttachmentSuccess, fetchTransactionDetail, initializeTransactionDetailLocalData, markCategoryClassRecommendationsFailureForTransactionDetail, removeEntityRecommendationForLineIdForTransactionDetail, resetAllLineItemsToVendor, resetLineItemsCategoryClassInLocalData, resetSelectedCustomer, resetVendor, saveTransactionDetail, saveTransactionDetailLocalData, setAllLineItemsLocalDataIsUpdateAllChecked, setAllLineItemsToCategoryClassInLocalData, setIsVendorUpdateAllChecked, updateLatestSelectedEntity, updateLocalDataWithTransactionsUpdateWithVendorCheckbox, updateSelectedCustomer, updateSelectedVendor, updateTransactionDetail, updateVendorBulkRecommendationsFetchStatus, updateVendorToAllLineItems, uploadMissingAttachmentSuccess, } from './view/transactionDetail/transactionDetailReducer';
|
|
396
396
|
import { getInitialUpdatablePeriodsForTransactionRecommendations, getTransactionDetail, getTransactionDetailForTransaction, } from './view/transactionDetail/transactionDetailSelector';
|
|
397
397
|
import { getThirdPartyIdFromTransactionId, } from './view/transactionDetail/transactionDetailState';
|
package/lib/esm/reducer.js
CHANGED
|
@@ -85,9 +85,6 @@ import bankAccountView, { initialState as initialBankAccountView, } from './view
|
|
|
85
85
|
import billPayCard, { initialState as initialBillPayCardState, } from './view/billPayCard/billPayCardReducer';
|
|
86
86
|
import cardBalance, { initialState as initialCardBalanceState, } from './view/cardBalance/cardBalanceReducer';
|
|
87
87
|
import cardPaymentView, { initialState as initialCardPaymentViewState, } from './view/cardPayment/cardPaymentViewReducer';
|
|
88
|
-
import cardPolicyDetail, { initialState as initialCardPolicyDetailState, } from './view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailReducer';
|
|
89
|
-
import cardPolicyList, { initialState as initialCardPolicyListState, } from './view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListReducer';
|
|
90
|
-
import createCardPolicy, { initialState as initialCreateCardPolicyState, } from './view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyReducer';
|
|
91
88
|
import cashBalance, { initialState as initialCashBalanceState, } from './view/cashBalance/cashBalanceReducer';
|
|
92
89
|
import cashFlow, { initialState as initialCashFlowState, } from './view/cashFlow/cashFlowReducer';
|
|
93
90
|
import cashInCashOut, { initialState as initialCashInCashOutState, } from './view/cashInCashOut/cashInCashOutReducer';
|
|
@@ -164,6 +161,9 @@ import previousBills, { initialState as initialPreviousBillsState, } from './vie
|
|
|
164
161
|
import wiseRedirect, { initialState as initialWiseRedirectState, } from './view/spendManagement/billPay/wiseRedirectView/wiseRedirectReducer';
|
|
165
162
|
import autoSweepFlow, { initialState as initialAutoSweepFlowState, } from './view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowReducer';
|
|
166
163
|
import cashManagementOverview, { initialState as initialCashManagementOverviewState, } from './view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewReducer';
|
|
164
|
+
import cardPolicyDetail, { initialState as initialCardPolicyDetailState, } from './view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailReducer';
|
|
165
|
+
import cardPolicyList, { initialState as initialCardPolicyListState, } from './view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListReducer';
|
|
166
|
+
import createCardPolicy, { initialState as initialCreateCardPolicyState, } from './view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyReducer';
|
|
167
167
|
import cardUserOnboarding, { initialState as initialCardUserOnboardingState, } from './view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingReducer';
|
|
168
168
|
import cashbackDetail, { initialState as initialCashbackDetailState, } from './view/spendManagement/chargeCards/cashbackDetail/cashbackDetailReducer';
|
|
169
169
|
import chargeCardConfig, { initialState as initialChargeCardConfigState, } from './view/spendManagement/chargeCards/chargeCardConfig/chargeCardConfigReducer';
|
package/lib/esm/view/companyView/epic/companyPassport/updateCapitalizationAccountThresholdEpic.js
CHANGED
|
@@ -2,7 +2,7 @@ import { from } from 'rxjs';
|
|
|
2
2
|
import { catchError, filter, mergeMap, switchMap } from 'rxjs/operators';
|
|
3
3
|
import { updateCompanies } from '../../../../entity/company/companyReducer';
|
|
4
4
|
import { openSnackbar } from '../../../../entity/snackbar/snackbarReducer';
|
|
5
|
-
import {
|
|
5
|
+
import { updateTenantCapitalizationAccountOverride, updateTenantCapitalizationOnboardingDismissed, } from '../../../../entity/tenant/tenantReducer';
|
|
6
6
|
import { createZeniAPIStatus, isSuccessResponse, } from '../../../../responsePayload';
|
|
7
7
|
import { updateCapitalizationAccountThreshold, updateCapitalizationAccountThresholdFailure, updateCapitalizationAccountThresholdSuccess, } from '../../companyViewReducer';
|
|
8
8
|
export const updateCapitalizationAccountThresholdEpic = (actions$, state$, zeniAPI) => actions$.pipe(filter(updateCapitalizationAccountThreshold.match), switchMap((action) => {
|
|
@@ -50,9 +50,9 @@ export const updateCapitalizationAccountThresholdEpic = (actions$, state$, zeniA
|
|
|
50
50
|
accountId,
|
|
51
51
|
threshold,
|
|
52
52
|
allOverrides: allOverrides !== undefined
|
|
53
|
-
?
|
|
53
|
+
? Object.keys(finalOverrides).length > 0
|
|
54
54
|
? finalOverrides
|
|
55
|
-
: null
|
|
55
|
+
: null
|
|
56
56
|
: undefined,
|
|
57
57
|
}));
|
|
58
58
|
if (dismissOnboardingForAccount === true) {
|
|
@@ -5,12 +5,12 @@ import { toMonthYearPeriodId } from '../../../commonStateTypes/timePeriod';
|
|
|
5
5
|
import { getCurrentTenant, getIsAccountingClassesEnabled, getIsAccountingProjectsEnabled, } from '../../../entity/tenant/tenantSelector';
|
|
6
6
|
import { getTransactionWithCOT } from '../../../entity/transaction/transactionHelper';
|
|
7
7
|
import { getSupportedTransactionsByIds } from '../../../entity/transaction/transactionSelector';
|
|
8
|
-
import { applyTransactionFilters, } from '../transactionFilterHelpers';
|
|
9
8
|
import { getAccountList, getNestedAccountListHierarchy, getUncategorizedAccounts, } from '../../accountList/accountListSelector';
|
|
10
9
|
import { getClassList, getNestedClassListHierarchy, } from '../../classList/classListSelector';
|
|
11
10
|
import { getResolvedTransferAccounts } from '../../createTransferEntry/createTransferEntrySelector';
|
|
12
11
|
import { getProjectList } from '../../projectList/projectListSelector';
|
|
13
12
|
import { getAllSteps } from '../selectorTypes/expenseAutomationViewSelectorTypes';
|
|
13
|
+
import { applyTransactionFilters, } from '../transactionFilterHelpers';
|
|
14
14
|
// Walks the tab's transactionReviewLocalDataById map and returns
|
|
15
15
|
// `{ [transactionId]: true }` for every transaction that has at least
|
|
16
16
|
// one line whose targeted-fetch is In-Progress. Pulled out as a plain
|
|
@@ -5,7 +5,7 @@ import { getAllFundingAccounts, mapDepositAccToFundingAccount, } from '../common
|
|
|
5
5
|
import { getAllDepositAccounts } from '../zeniAccounts/depositAccountList/depositAccountListSelector';
|
|
6
6
|
import { getAllPaymentAccounts } from '../zeniAccounts/paymentAccountList/paymentAccountListSelector';
|
|
7
7
|
const buildCashManagementRule = (autoSweepFlowState, depositAccountState, treasuryDetailState) => {
|
|
8
|
-
const { settingsId, bufferAmount, frequency, memo, primaryFundingAccountId, nextTransferDate } = autoSweepFlowState;
|
|
8
|
+
const { settingsId, bufferAmount, frequency, memo, primaryFundingAccountId, nextTransferDate, } = autoSweepFlowState;
|
|
9
9
|
if (settingsId == null || primaryFundingAccountId == null) {
|
|
10
10
|
return undefined;
|
|
11
11
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import recordGet from 'lodash/get';
|
|
2
2
|
import has from 'lodash/has';
|
|
3
|
-
import { getAmountCriteria, getDepartmentCriteria, getVendorCriteria, } from '../../../../entity/approvalRule/approvalRuleSelector';
|
|
4
3
|
import { reduceFetchState } from '../../../../commonStateTypes/reduceFetchState';
|
|
4
|
+
import { getAmountCriteria, getDepartmentCriteria, getVendorCriteria, } from '../../../../entity/approvalRule/approvalRuleSelector';
|
|
5
5
|
import { getBankAccountByBankAccountId, getBankAccountsByBankAccountIds, } from '../../../../entity/bankAccount/bankAccountSelector';
|
|
6
6
|
import { getContactById, getContactsByIds, } from '../../../../entity/billPay/contact/contactSelector';
|
|
7
7
|
import { getCompanyByCompanyId } from '../../../../entity/company/companySelector';
|
|
@@ -11,9 +11,7 @@ import { fetchCashManagementSettings, updateCashManagementSettings, updateCashMa
|
|
|
11
11
|
*/
|
|
12
12
|
export const fetchCashManagementSettingsEpic = (actions$, _state$, zeniAPI) => actions$.pipe(filter(fetchCashManagementSettings.match), switchMap(() => {
|
|
13
13
|
const endpoint = `${zeniAPI.apiEndPoints.cashManagementAgentBaseUrl}/1.0/cash-management/settings`;
|
|
14
|
-
return zeniAPI
|
|
15
|
-
.getJSON(endpoint)
|
|
16
|
-
.pipe(mergeMap((response) => {
|
|
14
|
+
return zeniAPI.getJSON(endpoint).pipe(mergeMap((response) => {
|
|
17
15
|
if (isSuccessResponse(response) && response.data != null) {
|
|
18
16
|
return of(
|
|
19
17
|
// Publish the source deposit account into the shared entity
|
|
@@ -209,8 +209,7 @@ const addAmounts = (a, b) => {
|
|
|
209
209
|
const sumCashBalances = (paymentAccountIds, paymentAccountState, depositAccountIds, depositAccountState) => {
|
|
210
210
|
let total = zeroAmount();
|
|
211
211
|
paymentAccountIds.forEach((id) => {
|
|
212
|
-
const balance = paymentAccountState.paymentAccountByID[id]?.balances
|
|
213
|
-
?.available;
|
|
212
|
+
const balance = paymentAccountState.paymentAccountByID[id]?.balances?.available;
|
|
214
213
|
if (balance != null) {
|
|
215
214
|
total = addAmounts(total, balance);
|
|
216
215
|
}
|
package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/updateCardPolicyEpic.js
CHANGED
|
@@ -2,7 +2,7 @@ import { from, of } from 'rxjs';
|
|
|
2
2
|
import { catchError, filter, mergeMap } from 'rxjs/operators';
|
|
3
3
|
import { toUpdateCardPolicyTemplateRequestBody, } from '../../../../../entity/cardPolicy/cardPolicyPayload';
|
|
4
4
|
import { updateCreatedCardPolicyTemplate } from '../../../../../entity/cardPolicy/cardPolicyReducer';
|
|
5
|
-
import { createZeniAPIStatus, isSuccessStatus } from '../../../../../responsePayload';
|
|
5
|
+
import { createZeniAPIStatus, isSuccessStatus, } from '../../../../../responsePayload';
|
|
6
6
|
import { updateCardPolicy, updateCardPolicyFetchStatus, } from './cardPolicyDetailReducer';
|
|
7
7
|
export const updateCardPolicyEpic = (actions$, state$, zeniAPI) => actions$.pipe(filter(updateCardPolicy.match), mergeMap((action) => {
|
|
8
8
|
const templateId = action.payload;
|
package/lib/index.d.ts
CHANGED
|
@@ -52,9 +52,9 @@ import { AccountReconciliationEntity, getAccountReconByAccountIdAndSelectedPerio
|
|
|
52
52
|
import { BalanceDataStatusCodeType, BankStatusCodeType, RecommendedActionCodeType, ReconciliationStatusCodeType, StatementDataStatusCodeType, StatementStatusCodeType, TransactionsToReview } from './entity/accountRecon/accountReconState';
|
|
53
53
|
import { getAddressByAddressId } from './entity/address/addressSelector';
|
|
54
54
|
import { Address } from './entity/address/addressState';
|
|
55
|
-
import { Actor, ActorType, AmountComparator, AmountCriteria, ApprovalActionType, ApprovalRule, ApprovalRuleState, Approvers, AttributeType, ConditionType, Criteria, DepartmentCriteria, RoleType, Step, StepOperatorType, VendorCriteria, toAttributeOrRoleTypeStrict, toAttributeTypeStrict, toRoleTypeStrict } from './entity/approvalRule/approvalRuleState';
|
|
56
|
-
import { getAmountCriteria, getApprovalRulesByEntityType, getDepartmentCriteria, getFallbackApprovalRule, getVendorCriteria } from './entity/approvalRule/approvalRuleSelector';
|
|
57
55
|
import { DetectRuleOverlapInput, RuleForOverlapCheck, RuleOverlap, detectRuleOverlap } from './entity/approvalRule/approvalRuleConflict';
|
|
56
|
+
import { getAmountCriteria, getApprovalRulesByEntityType, getDepartmentCriteria, getFallbackApprovalRule, getVendorCriteria } from './entity/approvalRule/approvalRuleSelector';
|
|
57
|
+
import { Actor, ActorType, AmountComparator, AmountCriteria, ApprovalActionType, ApprovalRule, ApprovalRuleState, Approvers, AttributeType, ConditionType, Criteria, DepartmentCriteria, RoleType, Step, StepOperatorType, VendorCriteria, toAttributeOrRoleTypeStrict, toAttributeTypeStrict, toRoleTypeStrict } from './entity/approvalRule/approvalRuleState';
|
|
58
58
|
import { BankAccount } from './entity/bankAccount/bankAccount';
|
|
59
59
|
import { BillPayInfo, BillPaymentRefundStatus, BillPaymentRefundStatusCodeType, BillPaymentStatus, BillPaymentStatusCodeType, BillStage, BillStageCodeType, BillStatus, BillStatusCodeType, BillTransaction, DeletionSourceType, InternationalTransferFeeBearerPaymentMethod, toOutsideZeniPaymentModeType } from './entity/billPay/billTransaction/billTransactionState';
|
|
60
60
|
import { Contact } from './entity/billPay/contact/contact';
|
|
@@ -126,8 +126,8 @@ import { SubscriptionPlan, SchemaKeys as SubscriptionPlanSchemaKeys } from './en
|
|
|
126
126
|
import { SubscriptionSummary, SchemaKeys as SubscriptionSummarySchemaKeys } from './entity/subscription/subscriptionSummary/subscriptionSummaryState';
|
|
127
127
|
import { SubscriptionPaymentAccount } from './entity/subscriptionPaymentAccount/subscriptionPaymentAccountState';
|
|
128
128
|
import { Tag, TagState } from './entity/tag/tagState';
|
|
129
|
-
import { ALL_WEEK_DAYS, DayOfWeek, PriorityCodeType, Task, TaskCodeType, TaskPriority, TaskStatus, TaskStatusCodeType, TaskType, toDayOfWeek, toPriorityCodeType, toTaskStatusCodeType } from './entity/task/taskState';
|
|
130
129
|
import { TaskPayload } from './entity/task/taskPayload';
|
|
130
|
+
import { ALL_WEEK_DAYS, DayOfWeek, PriorityCodeType, Task, TaskCodeType, TaskPriority, TaskStatus, TaskStatusCodeType, TaskType, toDayOfWeek, toPriorityCodeType, toTaskStatusCodeType } from './entity/task/taskState';
|
|
131
131
|
import { getTaskGroupById } from './entity/taskGroup/taskGroupSelector';
|
|
132
132
|
import { TaskGroupState } from './entity/taskGroup/taskGroupState';
|
|
133
133
|
import { TaskGroupTemplate } from './entity/taskGroupTemplate/taskGroupTemplateState';
|
|
@@ -578,8 +578,8 @@ import { TopExAccount, TopExReport, TopExTimePeriodWithMetaData, TopExpenses } f
|
|
|
578
578
|
*/
|
|
579
579
|
import { TOP_EX_TIME_PERIODS, TopExTimePeriod, TopExpense } from './view/topEx/topExState';
|
|
580
580
|
import { AccountingProviderAttachmentSelector, getAccountingProviderAttachment } from './view/transactionDetail/getAccountingProviderAttachmentSelector';
|
|
581
|
-
import { getChangedLineItemCountFromLocalData, isAccountUncategorized } from './view/transactionDetail/transactionDetailLocalDataHelper';
|
|
582
581
|
import { JOURNAL_ENTRY_SORT_KEYS, JournalEntryRowSortConfig, JournalEntrySortAccessors, JournalEntrySortKey, filterJournalEntryLinesExcludingLinked, journalEntryDefaultSortConfig, journalEntryTotalsByPostingSide, sortJournalEntryLines, sumJournalEntryAmounts, toJournalEntrySortKey } from './view/transactionDetail/journalEntryLinesViewModel';
|
|
582
|
+
import { getChangedLineItemCountFromLocalData, isAccountUncategorized } from './view/transactionDetail/transactionDetailLocalDataHelper';
|
|
583
583
|
import { clearTransactionDetailSaveStatus, deleteTransactionAttachment, downloadAccountingProviderAttachment, downloadAccountingProviderAttachmentFailure, downloadAccountingProviderAttachmentSuccess, fetchTransactionDetail, initializeTransactionDetailLocalData, markCategoryClassRecommendationsFailureForTransactionDetail, removeEntityRecommendationForLineIdForTransactionDetail, resetAllLineItemsToVendor, resetLineItemsCategoryClassInLocalData, resetSelectedCustomer, resetVendor, saveTransactionDetail, saveTransactionDetailLocalData, setAllLineItemsLocalDataIsUpdateAllChecked, setAllLineItemsToCategoryClassInLocalData, setIsVendorUpdateAllChecked, updateLatestSelectedEntity, updateLocalDataWithTransactionsUpdateWithVendorCheckbox, updateSelectedCustomer, updateSelectedVendor, updateTransactionDetail, updateVendorBulkRecommendationsFetchStatus, updateVendorToAllLineItems, uploadMissingAttachmentSuccess } from './view/transactionDetail/transactionDetailReducer';
|
|
584
584
|
import { TransactionDetailReport, VendorDetailsView, getInitialUpdatablePeriodsForTransactionRecommendations, getTransactionDetail, getTransactionDetailForTransaction } from './view/transactionDetail/transactionDetailSelector';
|
|
585
585
|
import { TransactionUpdates, getThirdPartyIdFromTransactionId } from './view/transactionDetail/transactionDetailState';
|
package/lib/index.js
CHANGED
|
@@ -191,18 +191,18 @@ const accountReconSelector_1 = require("./entity/accountRecon/accountReconSelect
|
|
|
191
191
|
Object.defineProperty(exports, "getAccountReconByAccountIdAndSelectedPeriod", { enumerable: true, get: function () { return accountReconSelector_1.getAccountReconByAccountIdAndSelectedPeriod; } });
|
|
192
192
|
const addressSelector_1 = require("./entity/address/addressSelector");
|
|
193
193
|
Object.defineProperty(exports, "getAddressByAddressId", { enumerable: true, get: function () { return addressSelector_1.getAddressByAddressId; } });
|
|
194
|
-
const
|
|
195
|
-
Object.defineProperty(exports, "
|
|
196
|
-
Object.defineProperty(exports, "toAttributeTypeStrict", { enumerable: true, get: function () { return approvalRuleState_1.toAttributeTypeStrict; } });
|
|
197
|
-
Object.defineProperty(exports, "toRoleTypeStrict", { enumerable: true, get: function () { return approvalRuleState_1.toRoleTypeStrict; } });
|
|
194
|
+
const approvalRuleConflict_1 = require("./entity/approvalRule/approvalRuleConflict");
|
|
195
|
+
Object.defineProperty(exports, "detectRuleOverlap", { enumerable: true, get: function () { return approvalRuleConflict_1.detectRuleOverlap; } });
|
|
198
196
|
const approvalRuleSelector_1 = require("./entity/approvalRule/approvalRuleSelector");
|
|
199
197
|
Object.defineProperty(exports, "getAmountCriteria", { enumerable: true, get: function () { return approvalRuleSelector_1.getAmountCriteria; } });
|
|
200
198
|
Object.defineProperty(exports, "getApprovalRulesByEntityType", { enumerable: true, get: function () { return approvalRuleSelector_1.getApprovalRulesByEntityType; } });
|
|
201
199
|
Object.defineProperty(exports, "getDepartmentCriteria", { enumerable: true, get: function () { return approvalRuleSelector_1.getDepartmentCriteria; } });
|
|
202
200
|
Object.defineProperty(exports, "getFallbackApprovalRule", { enumerable: true, get: function () { return approvalRuleSelector_1.getFallbackApprovalRule; } });
|
|
203
201
|
Object.defineProperty(exports, "getVendorCriteria", { enumerable: true, get: function () { return approvalRuleSelector_1.getVendorCriteria; } });
|
|
204
|
-
const
|
|
205
|
-
Object.defineProperty(exports, "
|
|
202
|
+
const approvalRuleState_1 = require("./entity/approvalRule/approvalRuleState");
|
|
203
|
+
Object.defineProperty(exports, "toAttributeOrRoleTypeStrict", { enumerable: true, get: function () { return approvalRuleState_1.toAttributeOrRoleTypeStrict; } });
|
|
204
|
+
Object.defineProperty(exports, "toAttributeTypeStrict", { enumerable: true, get: function () { return approvalRuleState_1.toAttributeTypeStrict; } });
|
|
205
|
+
Object.defineProperty(exports, "toRoleTypeStrict", { enumerable: true, get: function () { return approvalRuleState_1.toRoleTypeStrict; } });
|
|
206
206
|
const billTransactionState_1 = require("./entity/billPay/billTransaction/billTransactionState");
|
|
207
207
|
Object.defineProperty(exports, "toOutsideZeniPaymentModeType", { enumerable: true, get: function () { return billTransactionState_1.toOutsideZeniPaymentModeType; } });
|
|
208
208
|
const recurringBillsState_1 = require("./entity/billPay/recurringBills/recurringBillsState");
|
|
@@ -1975,9 +1975,6 @@ const topExState_1 = require("./view/topEx/topExState");
|
|
|
1975
1975
|
Object.defineProperty(exports, "TOP_EX_TIME_PERIODS", { enumerable: true, get: function () { return topExState_1.TOP_EX_TIME_PERIODS; } });
|
|
1976
1976
|
const getAccountingProviderAttachmentSelector_1 = require("./view/transactionDetail/getAccountingProviderAttachmentSelector");
|
|
1977
1977
|
Object.defineProperty(exports, "getAccountingProviderAttachment", { enumerable: true, get: function () { return getAccountingProviderAttachmentSelector_1.getAccountingProviderAttachment; } });
|
|
1978
|
-
const transactionDetailLocalDataHelper_1 = require("./view/transactionDetail/transactionDetailLocalDataHelper");
|
|
1979
|
-
Object.defineProperty(exports, "getChangedLineItemCountFromLocalData", { enumerable: true, get: function () { return transactionDetailLocalDataHelper_1.getChangedLineItemCountFromLocalData; } });
|
|
1980
|
-
Object.defineProperty(exports, "isAccountUncategorized", { enumerable: true, get: function () { return transactionDetailLocalDataHelper_1.isAccountUncategorized; } });
|
|
1981
1978
|
const journalEntryLinesViewModel_1 = require("./view/transactionDetail/journalEntryLinesViewModel");
|
|
1982
1979
|
Object.defineProperty(exports, "JOURNAL_ENTRY_SORT_KEYS", { enumerable: true, get: function () { return journalEntryLinesViewModel_1.JOURNAL_ENTRY_SORT_KEYS; } });
|
|
1983
1980
|
Object.defineProperty(exports, "filterJournalEntryLinesExcludingLinked", { enumerable: true, get: function () { return journalEntryLinesViewModel_1.filterJournalEntryLinesExcludingLinked; } });
|
|
@@ -1986,6 +1983,9 @@ Object.defineProperty(exports, "journalEntryTotalsByPostingSide", { enumerable:
|
|
|
1986
1983
|
Object.defineProperty(exports, "sortJournalEntryLines", { enumerable: true, get: function () { return journalEntryLinesViewModel_1.sortJournalEntryLines; } });
|
|
1987
1984
|
Object.defineProperty(exports, "sumJournalEntryAmounts", { enumerable: true, get: function () { return journalEntryLinesViewModel_1.sumJournalEntryAmounts; } });
|
|
1988
1985
|
Object.defineProperty(exports, "toJournalEntrySortKey", { enumerable: true, get: function () { return journalEntryLinesViewModel_1.toJournalEntrySortKey; } });
|
|
1986
|
+
const transactionDetailLocalDataHelper_1 = require("./view/transactionDetail/transactionDetailLocalDataHelper");
|
|
1987
|
+
Object.defineProperty(exports, "getChangedLineItemCountFromLocalData", { enumerable: true, get: function () { return transactionDetailLocalDataHelper_1.getChangedLineItemCountFromLocalData; } });
|
|
1988
|
+
Object.defineProperty(exports, "isAccountUncategorized", { enumerable: true, get: function () { return transactionDetailLocalDataHelper_1.isAccountUncategorized; } });
|
|
1989
1989
|
const transactionDetailReducer_1 = require("./view/transactionDetail/transactionDetailReducer");
|
|
1990
1990
|
Object.defineProperty(exports, "clearTransactionDetailSaveStatus", { enumerable: true, get: function () { return transactionDetailReducer_1.clearTransactionDetailSaveStatus; } });
|
|
1991
1991
|
Object.defineProperty(exports, "deleteTransactionAttachment", { enumerable: true, get: function () { return transactionDetailReducer_1.deleteTransactionAttachment; } });
|
package/lib/reducer.d.ts
CHANGED
|
@@ -84,9 +84,6 @@ import { BankAccountViewState } from './view/bankAccountView/bankAccountViewStat
|
|
|
84
84
|
import { BillPayCardState } from './view/billPayCard/billPayCardState';
|
|
85
85
|
import { CardBalanceState } from './view/cardBalance/cardBalanceState';
|
|
86
86
|
import { CardPaymentViewState } from './view/cardPayment/cardPaymentViewState';
|
|
87
|
-
import { CardPolicyDetailState } from './view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailState';
|
|
88
|
-
import { CardPolicyListState } from './view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListState';
|
|
89
|
-
import { CreateCardPolicyState } from './view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyState';
|
|
90
87
|
import { CashBalanceState } from './view/cashBalance/cashBalanceState';
|
|
91
88
|
import { CashFlowState } from './view/cashFlow/cashFlowState';
|
|
92
89
|
import { CashInCashOutState } from './view/cashInCashOut/cashInCashOutState';
|
|
@@ -162,6 +159,9 @@ import { PreviousBillsState } from './view/spendManagement/billPay/previousBills
|
|
|
162
159
|
import { WiseRedirectState } from './view/spendManagement/billPay/wiseRedirectView/wiseRedirectState';
|
|
163
160
|
import { AutoSweepFlowState } from './view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowState';
|
|
164
161
|
import { CashManagementOverviewState } from './view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewState';
|
|
162
|
+
import { CardPolicyDetailState } from './view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailState';
|
|
163
|
+
import { CardPolicyListState } from './view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListState';
|
|
164
|
+
import { CreateCardPolicyState } from './view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyState';
|
|
165
165
|
import { CardUserOnboardingState } from './view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingState';
|
|
166
166
|
import { CashbackDetailState } from './view/spendManagement/chargeCards/cashbackDetail/cashbackDetailState';
|
|
167
167
|
import { ChargeCardConfigState } from './view/spendManagement/chargeCards/chargeCardConfig/chargeCardConfigState';
|
package/lib/reducer.js
CHANGED
|
@@ -124,9 +124,6 @@ const bankAccountViewReducer_1 = __importStar(require("./view/bankAccountView/ba
|
|
|
124
124
|
const billPayCardReducer_1 = __importStar(require("./view/billPayCard/billPayCardReducer"));
|
|
125
125
|
const cardBalanceReducer_1 = __importStar(require("./view/cardBalance/cardBalanceReducer"));
|
|
126
126
|
const cardPaymentViewReducer_1 = __importStar(require("./view/cardPayment/cardPaymentViewReducer"));
|
|
127
|
-
const cardPolicyDetailReducer_1 = __importStar(require("./view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailReducer"));
|
|
128
|
-
const cardPolicyListReducer_1 = __importStar(require("./view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListReducer"));
|
|
129
|
-
const createCardPolicyReducer_1 = __importStar(require("./view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyReducer"));
|
|
130
127
|
const cashBalanceReducer_1 = __importStar(require("./view/cashBalance/cashBalanceReducer"));
|
|
131
128
|
const cashFlowReducer_1 = __importStar(require("./view/cashFlow/cashFlowReducer"));
|
|
132
129
|
const cashInCashOutReducer_1 = __importStar(require("./view/cashInCashOut/cashInCashOutReducer"));
|
|
@@ -203,6 +200,9 @@ const previousBillsReducer_1 = __importStar(require("./view/spendManagement/bill
|
|
|
203
200
|
const wiseRedirectReducer_1 = __importStar(require("./view/spendManagement/billPay/wiseRedirectView/wiseRedirectReducer"));
|
|
204
201
|
const autoSweepFlowReducer_1 = __importStar(require("./view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowReducer"));
|
|
205
202
|
const cashManagementOverviewReducer_1 = __importStar(require("./view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewReducer"));
|
|
203
|
+
const cardPolicyDetailReducer_1 = __importStar(require("./view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailReducer"));
|
|
204
|
+
const cardPolicyListReducer_1 = __importStar(require("./view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListReducer"));
|
|
205
|
+
const createCardPolicyReducer_1 = __importStar(require("./view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyReducer"));
|
|
206
206
|
const cardUserOnboardingReducer_1 = __importStar(require("./view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingReducer"));
|
|
207
207
|
const cashbackDetailReducer_1 = __importStar(require("./view/spendManagement/chargeCards/cashbackDetail/cashbackDetailReducer"));
|
|
208
208
|
const chargeCardConfigReducer_1 = __importStar(require("./view/spendManagement/chargeCards/chargeCardConfig/chargeCardConfigReducer"));
|
package/lib/view/companyView/epic/companyPassport/updateCapitalizationAccountThresholdEpic.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { updateCompanies } from '../../../../entity/company/companyReducer';
|
|
4
4
|
import { openSnackbar } from '../../../../entity/snackbar/snackbarReducer';
|
|
5
|
-
import {
|
|
5
|
+
import { updateTenantCapitalizationAccountOverride, updateTenantCapitalizationOnboardingDismissed } from '../../../../entity/tenant/tenantReducer';
|
|
6
6
|
import { RootState } from '../../../../reducer';
|
|
7
7
|
import { ZeniAPI } from '../../../../zeniAPI';
|
|
8
8
|
import { updateCapitalizationAccountThreshold, updateCapitalizationAccountThresholdFailure, updateCapitalizationAccountThresholdSuccess } from '../../companyViewReducer';
|
package/lib/view/companyView/epic/companyPassport/updateCapitalizationAccountThresholdEpic.js
CHANGED
|
@@ -53,9 +53,9 @@ const updateCapitalizationAccountThresholdEpic = (actions$, state$, zeniAPI) =>
|
|
|
53
53
|
accountId,
|
|
54
54
|
threshold,
|
|
55
55
|
allOverrides: allOverrides !== undefined
|
|
56
|
-
?
|
|
56
|
+
? Object.keys(finalOverrides).length > 0
|
|
57
57
|
? finalOverrides
|
|
58
|
-
: null
|
|
58
|
+
: null
|
|
59
59
|
: undefined,
|
|
60
60
|
}));
|
|
61
61
|
if (dismissOnboardingForAccount === true) {
|
|
@@ -13,8 +13,8 @@ import { VendorBase } from '../../../entity/vendor/vendorState';
|
|
|
13
13
|
import { ZeniAPIStatus } from '../../../responsePayload';
|
|
14
14
|
import { UncategorizedAccounts } from '../../accountList/accountListSelector';
|
|
15
15
|
import { UpdateTransactionCategorizationResponsePayload } from '../payload/transactionCategorizationPayload';
|
|
16
|
-
import { SupportedTransactionCategorization, TransactionSaveUpdates, TransactionsTab, TransactionsTabViewState, TransactionsViewState, TransactionsViewUIState } from '../types/transactionsViewState';
|
|
17
16
|
import { TransactionFilters } from '../transactionFilterHelpers';
|
|
17
|
+
import { SupportedTransactionCategorization, TransactionSaveUpdates, TransactionsTab, TransactionsTabViewState, TransactionsViewState, TransactionsViewUIState } from '../types/transactionsViewState';
|
|
18
18
|
export declare const initialTransactionTabViewState: TransactionsTabViewState;
|
|
19
19
|
export declare const initialState: TransactionsViewState;
|
|
20
20
|
export declare const fetchTransactionCategorization: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[selectedTab: "review" | "autoCategorized", period: TimePeriod, cacheOverride?: any, keepExistingListItems?: any, searchString?: string | undefined, pageToken?: PageToken | undefined, refreshViewInBackground?: any, resetListItems?: boolean | undefined, isUncategorizedExpenseCategoryEnabled?: boolean | undefined], {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ID } from '../../../commonStateTypes/common';
|
|
2
2
|
import { TransactionWithCOT } from '../../../entity/transaction/stateTypes/transaction';
|
|
3
3
|
import { RootState } from '../../../reducer';
|
|
4
|
-
import { TransactionView } from '../transactionFilterHelpers';
|
|
5
4
|
import { ExpenseAutomationTransactionViewSelector, TransactionReviewLocalDataSelectorView } from '../selectorTypes/transactionsViewSelectorTypes';
|
|
5
|
+
import { TransactionView } from '../transactionFilterHelpers';
|
|
6
6
|
export declare const getCategorizationInFlightRecommendationsByTransactionId: (state: RootState) => Record<ID, boolean>;
|
|
7
7
|
export declare const getCategorizationHasInFlightRecommendations: (state: RootState) => boolean;
|
|
8
8
|
export declare const toTransactionView: (transaction: TransactionWithCOT, transactionLocalData?: TransactionReviewLocalDataSelectorView) => TransactionView;
|
|
@@ -12,12 +12,12 @@ const timePeriod_1 = require("../../../commonStateTypes/timePeriod");
|
|
|
12
12
|
const tenantSelector_1 = require("../../../entity/tenant/tenantSelector");
|
|
13
13
|
const transactionHelper_1 = require("../../../entity/transaction/transactionHelper");
|
|
14
14
|
const transactionSelector_1 = require("../../../entity/transaction/transactionSelector");
|
|
15
|
-
const transactionFilterHelpers_1 = require("../transactionFilterHelpers");
|
|
16
15
|
const accountListSelector_1 = require("../../accountList/accountListSelector");
|
|
17
16
|
const classListSelector_1 = require("../../classList/classListSelector");
|
|
18
17
|
const createTransferEntrySelector_1 = require("../../createTransferEntry/createTransferEntrySelector");
|
|
19
18
|
const projectListSelector_1 = require("../../projectList/projectListSelector");
|
|
20
19
|
const expenseAutomationViewSelectorTypes_1 = require("../selectorTypes/expenseAutomationViewSelectorTypes");
|
|
20
|
+
const transactionFilterHelpers_1 = require("../transactionFilterHelpers");
|
|
21
21
|
// Walks the tab's transactionReviewLocalDataById map and returns
|
|
22
22
|
// `{ [transactionId]: true }` for every transaction that has at least
|
|
23
23
|
// one line whose targeted-fetch is In-Progress. Pulled out as a plain
|
|
@@ -16,8 +16,8 @@ import { VendorBase } from '../../../entity/vendor/vendorState';
|
|
|
16
16
|
import { ZeniAPIStatus } from '../../../responsePayload';
|
|
17
17
|
import { ZeniDate } from '../../../zeniDayJS';
|
|
18
18
|
import { EntityRecommendationKey } from '../../recommendation/recommendationState';
|
|
19
|
-
import { TransactionFilters } from '../transactionFilterHelpers';
|
|
20
19
|
import { TransactionDetailKey } from '../../transactionDetail/transactionDetailState';
|
|
20
|
+
import { TransactionFilters } from '../transactionFilterHelpers';
|
|
21
21
|
import { CompletedSubTab } from './completedSubTab';
|
|
22
22
|
export declare const toTransactionsSortKey: (v: string) => "date" | "amount" | "vendor" | "project" | "category" | "class" | "payment_account" | "transaction_type" | "memo_and_receipt";
|
|
23
23
|
export type TransactionsSortKey = ReturnType<typeof toTransactionsSortKey>;
|
|
@@ -11,7 +11,7 @@ const setupViewSelector_1 = require("../commonSetup/setupViewSelector");
|
|
|
11
11
|
const depositAccountListSelector_1 = require("../zeniAccounts/depositAccountList/depositAccountListSelector");
|
|
12
12
|
const paymentAccountListSelector_1 = require("../zeniAccounts/paymentAccountList/paymentAccountListSelector");
|
|
13
13
|
const buildCashManagementRule = (autoSweepFlowState, depositAccountState, treasuryDetailState) => {
|
|
14
|
-
const { settingsId, bufferAmount, frequency, memo, primaryFundingAccountId, nextTransferDate } = autoSweepFlowState;
|
|
14
|
+
const { settingsId, bufferAmount, frequency, memo, primaryFundingAccountId, nextTransferDate, } = autoSweepFlowState;
|
|
15
15
|
if (settingsId == null || primaryFundingAccountId == null) {
|
|
16
16
|
return undefined;
|
|
17
17
|
}
|
|
@@ -2,8 +2,8 @@ import { Amount } from '../../../commonStateTypes/amount';
|
|
|
2
2
|
import { FetchStateAndError, FetchedState, ID } from '../../../commonStateTypes/common';
|
|
3
3
|
import { ZeniDate } from '../../../zeniDayJS';
|
|
4
4
|
import { AutoSweepFrequency } from '../cashManagement/autoSweepFlow/autoSweepFlowState';
|
|
5
|
-
import { FundingAccount } from '../commonSetup/setupViewSelector';
|
|
6
5
|
import { CommonHistoryView } from '../commonHistoryView/commonHistory';
|
|
6
|
+
import { FundingAccount } from '../commonSetup/setupViewSelector';
|
|
7
7
|
import { TreasurySummaryWithBalance } from '../treasury/treasuryList/treasuryDetailState';
|
|
8
8
|
import { ReviewTransferDetail } from '../zeniAccounts/transferDetail/transferDetailState';
|
|
9
9
|
import { AutoTransferRuleFrequency, AutoTransferRuleLocalData, AutoTransferRuleType } from './autoTransferRulesPayload';
|
|
@@ -9,8 +9,8 @@ exports.getPaymentSection = getPaymentSection;
|
|
|
9
9
|
exports.toPaymentToOption = toPaymentToOption;
|
|
10
10
|
const get_1 = __importDefault(require("lodash/get"));
|
|
11
11
|
const has_1 = __importDefault(require("lodash/has"));
|
|
12
|
-
const approvalRuleSelector_1 = require("../../../../entity/approvalRule/approvalRuleSelector");
|
|
13
12
|
const reduceFetchState_1 = require("../../../../commonStateTypes/reduceFetchState");
|
|
13
|
+
const approvalRuleSelector_1 = require("../../../../entity/approvalRule/approvalRuleSelector");
|
|
14
14
|
const bankAccountSelector_1 = require("../../../../entity/bankAccount/bankAccountSelector");
|
|
15
15
|
const contactSelector_1 = require("../../../../entity/billPay/contact/contactSelector");
|
|
16
16
|
const companySelector_1 = require("../../../../entity/company/companySelector");
|
|
@@ -14,9 +14,7 @@ const autoSweepFlowReducer_1 = require("../autoSweepFlowReducer");
|
|
|
14
14
|
*/
|
|
15
15
|
const fetchCashManagementSettingsEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(autoSweepFlowReducer_1.fetchCashManagementSettings.match), (0, operators_1.switchMap)(() => {
|
|
16
16
|
const endpoint = `${zeniAPI.apiEndPoints.cashManagementAgentBaseUrl}/1.0/cash-management/settings`;
|
|
17
|
-
return zeniAPI
|
|
18
|
-
.getJSON(endpoint)
|
|
19
|
-
.pipe((0, operators_1.mergeMap)((response) => {
|
|
17
|
+
return zeniAPI.getJSON(endpoint).pipe((0, operators_1.mergeMap)((response) => {
|
|
20
18
|
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
21
19
|
return (0, rxjs_1.of)(
|
|
22
20
|
// Publish the source deposit account into the shared entity
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ZeniAPIResponse } from '../../../../responsePayload';
|
|
2
|
-
import {
|
|
2
|
+
import { CashManagementBankAccountType, CashManagementBannerData, CashManagementScenario, CashManagementSubMovementType, CashManagementTransfer, CashManagementTransferStatus, UpcomingPaymentEvent, UpcomingPaymentEventAccountType } from './cashManagementOverviewState';
|
|
3
3
|
export interface CashAgentEventPayload {
|
|
4
4
|
account_id: string;
|
|
5
5
|
account_type: UpcomingPaymentEventAccountType;
|
|
@@ -214,8 +214,7 @@ const addAmounts = (a, b) => {
|
|
|
214
214
|
const sumCashBalances = (paymentAccountIds, paymentAccountState, depositAccountIds, depositAccountState) => {
|
|
215
215
|
let total = (0, amount_1.zeroAmount)();
|
|
216
216
|
paymentAccountIds.forEach((id) => {
|
|
217
|
-
const balance = paymentAccountState.paymentAccountByID[id]?.balances
|
|
218
|
-
?.available;
|
|
217
|
+
const balance = paymentAccountState.paymentAccountByID[id]?.balances?.available;
|
|
219
218
|
if (balance != null) {
|
|
220
219
|
total = addAmounts(total, balance);
|
|
221
220
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.1",
|
|
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
|
"module": "lib/esm/index.js",
|