@zeniai/client-epic-state 5.0.84-beta0ND → 5.0.84-beta24RJ
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 +0 -1
- package/lib/entity/company/companyPayload.d.ts +0 -2
- package/lib/entity/company/companyPayload.js +0 -2
- package/lib/entity/company/companyStateTypes.d.ts +0 -2
- package/lib/entity/jeSchedules/jeSchedulesPayload.d.ts +1 -0
- package/lib/entity/jeSchedules/jeSchedulesPayload.js +7 -0
- package/lib/entity/jeSchedules/jeSchedulesState.d.ts +1 -0
- package/lib/entity/paymentAccount/paymentAccountSelector.d.ts +0 -1
- package/lib/entity/paymentAccount/paymentAccountSelector.js +0 -4
- package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
- package/lib/entity/snackbar/snackbarTypes.js +0 -1
- package/lib/entity/tenant/epic/deleteConnectionEpic.d.ts +1 -1
- package/lib/entity/tenant/epic/saveAPIKeyConnectionEpic.d.ts +1 -1
- package/lib/entity/tenant/epic/saveConnectorCredentialsEpic.d.ts +3 -3
- package/lib/entity/tenant/epic/saveOAuthConnectionEpic.d.ts +1 -1
- package/lib/entity/tenant/tenantPayload.d.ts +0 -19
- package/lib/entity/tenant/tenantReducer.d.ts +28 -49
- package/lib/entity/tenant/tenantReducer.js +5 -111
- package/lib/entity/tenant/tenantState.d.ts +0 -21
- package/lib/epic.d.ts +1 -6
- package/lib/epic.js +1 -7
- package/lib/esm/commonStateTypes/animations.js +0 -1
- package/lib/esm/entity/company/companyPayload.js +0 -2
- package/lib/esm/entity/jeSchedules/jeSchedulesPayload.js +7 -0
- package/lib/esm/entity/paymentAccount/paymentAccountSelector.js +0 -3
- package/lib/esm/entity/snackbar/snackbarTypes.js +0 -1
- package/lib/esm/entity/tenant/tenantReducer.js +3 -108
- package/lib/esm/epic.js +1 -7
- package/lib/esm/index.js +6 -9
- package/lib/esm/view/companyView/companyViewReducer.js +1 -45
- package/lib/esm/view/companyView/types/companyPassport/companyPassportViewState.js +0 -4
- package/lib/esm/view/onboardingView/customerView/onboardingCustomerViewReducer.js +50 -168
- package/lib/esm/view/onboardingView/customerView/onboardingCustomerViewSelector.js +0 -14
- package/lib/esm/view/onboardingView/customerView/onboardingCustomerViewState.js +0 -13
- package/lib/esm/view/spendManagement/commonSetup/setupViewReducer.js +52 -71
- package/lib/esm/view/spendManagement/commonSetup/setupViewSelector.js +0 -2
- package/lib/index.d.ts +8 -12
- package/lib/index.js +21 -36
- package/lib/view/companyView/companyViewReducer.d.ts +1 -11
- package/lib/view/companyView/companyViewReducer.js +3 -47
- package/lib/view/companyView/types/companyPassport/companyPassportViewState.d.ts +0 -1
- package/lib/view/companyView/types/companyPassport/companyPassportViewState.js +0 -4
- package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
- package/lib/view/onboardingView/customerView/onboardingCustomerViewPayload.d.ts +0 -3
- package/lib/view/onboardingView/customerView/onboardingCustomerViewReducer.d.ts +4 -41
- package/lib/view/onboardingView/customerView/onboardingCustomerViewReducer.js +51 -170
- package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.d.ts +1 -7
- package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.js +1 -21
- package/lib/view/onboardingView/customerView/onboardingCustomerViewState.d.ts +0 -37
- package/lib/view/onboardingView/customerView/onboardingCustomerViewState.js +1 -14
- package/lib/view/spendManagement/commonSetup/setupViewReducer.d.ts +2 -24
- package/lib/view/spendManagement/commonSetup/setupViewReducer.js +53 -72
- package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +0 -4
- package/lib/view/spendManagement/commonSetup/setupViewSelector.js +0 -2
- package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +0 -12
- package/package.json +1 -1
- package/lib/entity/tenant/epic/initEmailConnectOAuthEpic.d.ts +0 -21
- package/lib/entity/tenant/epic/initEmailConnectOAuthEpic.js +0 -54
- package/lib/esm/entity/tenant/epic/initEmailConnectOAuthEpic.js +0 -50
- package/lib/esm/view/companyView/epic/companyPassport/dismissCapitalizationOnboardingEpic.js +0 -25
- package/lib/esm/view/companyView/epic/companyPassport/updateCapitalizationThresholdEpic.js +0 -79
- package/lib/esm/view/onboardingView/customerView/epic/aiAgentsActivation/fetchAiAgentsActivationStatusEpic.js +0 -45
- package/lib/esm/view/onboardingView/customerView/epic/customerDetails/acknowledgeOnboardingAiFinanceTeamEpic.js +0 -40
- package/lib/esm/view/spendManagement/commonSetup/epic/setup/parseUploadedKybDocumentEpic.js +0 -49
- package/lib/esm/view/spendManagement/commonSetup/epic/setup/parseUploadedKycDocumentEpic.js +0 -58
- package/lib/esm/view/spendManagement/commonSetup/kycKybAutofillActions.js +0 -12
- package/lib/esm/view/spendManagement/commonSetup/kycKybParseMapper.js +0 -205
- package/lib/esm/view/spendManagement/commonSetup/types/kycKybAutofill.js +0 -28
- package/lib/view/companyView/epic/companyPassport/dismissCapitalizationOnboardingEpic.d.ts +0 -9
- package/lib/view/companyView/epic/companyPassport/dismissCapitalizationOnboardingEpic.js +0 -29
- package/lib/view/companyView/epic/companyPassport/updateCapitalizationThresholdEpic.d.ts +0 -10
- package/lib/view/companyView/epic/companyPassport/updateCapitalizationThresholdEpic.js +0 -83
- package/lib/view/onboardingView/customerView/epic/aiAgentsActivation/fetchAiAgentsActivationStatusEpic.d.ts +0 -7
- package/lib/view/onboardingView/customerView/epic/aiAgentsActivation/fetchAiAgentsActivationStatusEpic.js +0 -49
- package/lib/view/onboardingView/customerView/epic/customerDetails/acknowledgeOnboardingAiFinanceTeamEpic.d.ts +0 -9
- package/lib/view/onboardingView/customerView/epic/customerDetails/acknowledgeOnboardingAiFinanceTeamEpic.js +0 -44
- package/lib/view/spendManagement/commonSetup/epic/setup/parseUploadedKybDocumentEpic.d.ts +0 -8
- package/lib/view/spendManagement/commonSetup/epic/setup/parseUploadedKybDocumentEpic.js +0 -53
- package/lib/view/spendManagement/commonSetup/epic/setup/parseUploadedKycDocumentEpic.d.ts +0 -8
- package/lib/view/spendManagement/commonSetup/epic/setup/parseUploadedKycDocumentEpic.js +0 -62
- package/lib/view/spendManagement/commonSetup/kycKybAutofillActions.d.ts +0 -27
- package/lib/view/spendManagement/commonSetup/kycKybAutofillActions.js +0 -15
- package/lib/view/spendManagement/commonSetup/kycKybParseMapper.d.ts +0 -24
- package/lib/view/spendManagement/commonSetup/kycKybParseMapper.js +0 -213
- package/lib/view/spendManagement/commonSetup/types/kycKybAutofill.d.ts +0 -125
- package/lib/view/spendManagement/commonSetup/types/kycKybAutofill.js +0 -32
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { createSlice } from '@reduxjs/toolkit';
|
|
2
2
|
import { date } from '../../../zeniDayJS';
|
|
3
|
-
import { emptyAiAgentsActivationSubview, } from './onboardingCustomerViewState';
|
|
4
3
|
const initialStatus = {
|
|
5
4
|
fetchState: 'Not-Started',
|
|
6
5
|
error: undefined,
|
|
@@ -11,29 +10,60 @@ export const initialState = {
|
|
|
11
10
|
dashboardLoadedStatus: initialStatus,
|
|
12
11
|
currentStep: 'link_payment_account',
|
|
13
12
|
companyDetails: {
|
|
14
|
-
autoFilledFields: [],
|
|
15
13
|
localData: undefined,
|
|
16
14
|
},
|
|
17
|
-
companyOfficerUpdateStatus:
|
|
18
|
-
|
|
19
|
-
autoFilledFields: [],
|
|
15
|
+
companyOfficerUpdateStatus: {
|
|
16
|
+
Officer_1: {
|
|
20
17
|
localData: undefined,
|
|
21
18
|
sendOtpStatus: initialStatus,
|
|
22
19
|
otpverificationStatus: initialStatus,
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
20
|
+
},
|
|
21
|
+
Officer_2: {
|
|
22
|
+
localData: undefined,
|
|
23
|
+
sendOtpStatus: initialStatus,
|
|
24
|
+
otpverificationStatus: initialStatus,
|
|
25
|
+
},
|
|
26
|
+
Officer_3: {
|
|
27
|
+
localData: undefined,
|
|
28
|
+
sendOtpStatus: initialStatus,
|
|
29
|
+
otpverificationStatus: initialStatus,
|
|
30
|
+
},
|
|
31
|
+
Officer_4: {
|
|
32
|
+
localData: undefined,
|
|
33
|
+
sendOtpStatus: initialStatus,
|
|
34
|
+
otpverificationStatus: initialStatus,
|
|
35
|
+
},
|
|
36
|
+
Officer_5: {
|
|
37
|
+
localData: undefined,
|
|
38
|
+
sendOtpStatus: initialStatus,
|
|
39
|
+
otpverificationStatus: initialStatus,
|
|
40
|
+
},
|
|
41
|
+
Officer_6: {
|
|
42
|
+
localData: undefined,
|
|
43
|
+
sendOtpStatus: initialStatus,
|
|
44
|
+
otpverificationStatus: initialStatus,
|
|
45
|
+
},
|
|
46
|
+
Officer_7: {
|
|
47
|
+
localData: undefined,
|
|
48
|
+
sendOtpStatus: initialStatus,
|
|
49
|
+
otpverificationStatus: initialStatus,
|
|
50
|
+
},
|
|
51
|
+
Officer_8: {
|
|
52
|
+
localData: undefined,
|
|
53
|
+
sendOtpStatus: initialStatus,
|
|
54
|
+
otpverificationStatus: initialStatus,
|
|
55
|
+
},
|
|
56
|
+
Officer_9: {
|
|
57
|
+
localData: undefined,
|
|
58
|
+
sendOtpStatus: initialStatus,
|
|
59
|
+
otpverificationStatus: initialStatus,
|
|
60
|
+
},
|
|
61
|
+
Officer_10: {
|
|
62
|
+
localData: undefined,
|
|
63
|
+
sendOtpStatus: initialStatus,
|
|
64
|
+
otpverificationStatus: initialStatus,
|
|
65
|
+
},
|
|
66
|
+
},
|
|
37
67
|
primaryContactDetails: {},
|
|
38
68
|
paymentAccountDetails: {
|
|
39
69
|
fetchStatus: initialStatus,
|
|
@@ -61,7 +91,6 @@ export const initialState = {
|
|
|
61
91
|
},
|
|
62
92
|
fetchState: 'Not-Started',
|
|
63
93
|
error: undefined,
|
|
64
|
-
aiAgentsActivation: { ...emptyAiAgentsActivationSubview },
|
|
65
94
|
uiState: {
|
|
66
95
|
isQBOPopupOpen: false,
|
|
67
96
|
isCardPaymentPopupOpen: false,
|
|
@@ -151,111 +180,6 @@ const onboardingCustomerView = createSlice({
|
|
|
151
180
|
};
|
|
152
181
|
},
|
|
153
182
|
},
|
|
154
|
-
acknowledgeOnboardingAiFinanceTeam: {
|
|
155
|
-
reducer(draft) {
|
|
156
|
-
draft.aiFinanceTeamAcknowledgementStatus = {
|
|
157
|
-
fetchState: 'In-Progress',
|
|
158
|
-
error: undefined,
|
|
159
|
-
};
|
|
160
|
-
},
|
|
161
|
-
prepare(companyId) {
|
|
162
|
-
return {
|
|
163
|
-
payload: { companyId },
|
|
164
|
-
};
|
|
165
|
-
},
|
|
166
|
-
},
|
|
167
|
-
acknowledgeOnboardingAiFinanceTeamSuccess(draft) {
|
|
168
|
-
draft.aiFinanceTeamAcknowledgementStatus = {
|
|
169
|
-
fetchState: 'Completed',
|
|
170
|
-
error: undefined,
|
|
171
|
-
};
|
|
172
|
-
},
|
|
173
|
-
acknowledgeOnboardingAiFinanceTeamFailure: {
|
|
174
|
-
reducer(draft, action) {
|
|
175
|
-
draft.aiFinanceTeamAcknowledgementStatus = {
|
|
176
|
-
fetchState: 'Error',
|
|
177
|
-
error: action.payload,
|
|
178
|
-
};
|
|
179
|
-
},
|
|
180
|
-
prepare(error) {
|
|
181
|
-
return {
|
|
182
|
-
payload: error,
|
|
183
|
-
};
|
|
184
|
-
},
|
|
185
|
-
},
|
|
186
|
-
fetchAiAgentsActivationStatus(draft) {
|
|
187
|
-
draft.aiAgentsActivation.fetchStatus = {
|
|
188
|
-
fetchState: 'In-Progress',
|
|
189
|
-
error: undefined,
|
|
190
|
-
};
|
|
191
|
-
},
|
|
192
|
-
fetchAiAgentsActivationStatusSuccess: {
|
|
193
|
-
reducer(draft, action) {
|
|
194
|
-
draft.aiAgentsActivation.fetchStatus = {
|
|
195
|
-
fetchState: 'Completed',
|
|
196
|
-
error: undefined,
|
|
197
|
-
};
|
|
198
|
-
draft.aiAgentsActivation.ledgerPhases = action.payload.ledgerPhases;
|
|
199
|
-
draft.aiAgentsActivation.backgroundPhases =
|
|
200
|
-
action.payload.backgroundPhases;
|
|
201
|
-
draft.aiAgentsActivation.counts = action.payload.counts;
|
|
202
|
-
},
|
|
203
|
-
prepare(payload) {
|
|
204
|
-
return { payload };
|
|
205
|
-
},
|
|
206
|
-
},
|
|
207
|
-
fetchAiAgentsActivationStatusFailure: {
|
|
208
|
-
reducer(draft, action) {
|
|
209
|
-
draft.aiAgentsActivation.fetchStatus = {
|
|
210
|
-
fetchState: 'Error',
|
|
211
|
-
error: action.payload,
|
|
212
|
-
};
|
|
213
|
-
},
|
|
214
|
-
prepare(error) {
|
|
215
|
-
return { payload: error };
|
|
216
|
-
},
|
|
217
|
-
},
|
|
218
|
-
aiAgentsActivationCountsUpdated: {
|
|
219
|
-
reducer(draft, action) {
|
|
220
|
-
draft.aiAgentsActivation.counts = {
|
|
221
|
-
...draft.aiAgentsActivation.counts,
|
|
222
|
-
...action.payload,
|
|
223
|
-
};
|
|
224
|
-
},
|
|
225
|
-
prepare(payload) {
|
|
226
|
-
return { payload };
|
|
227
|
-
},
|
|
228
|
-
},
|
|
229
|
-
aiAgentsActivationPhaseChanged: {
|
|
230
|
-
reducer(draft, action) {
|
|
231
|
-
const target = action.payload.section === 'ledger'
|
|
232
|
-
? draft.aiAgentsActivation.ledgerPhases
|
|
233
|
-
: draft.aiAgentsActivation.backgroundPhases;
|
|
234
|
-
const index = target.findIndex((phase) => phase.key === action.payload.key);
|
|
235
|
-
if (index === -1) {
|
|
236
|
-
target.push(action.payload);
|
|
237
|
-
}
|
|
238
|
-
else {
|
|
239
|
-
target[index] = { ...target[index], ...action.payload };
|
|
240
|
-
}
|
|
241
|
-
},
|
|
242
|
-
prepare(payload) {
|
|
243
|
-
return { payload };
|
|
244
|
-
},
|
|
245
|
-
},
|
|
246
|
-
aiAgentsActivationSectionReady: {
|
|
247
|
-
reducer(draft, action) {
|
|
248
|
-
const target = action.payload.section === 'ledger'
|
|
249
|
-
? draft.aiAgentsActivation.ledgerPhases
|
|
250
|
-
: draft.aiAgentsActivation.backgroundPhases;
|
|
251
|
-
target.forEach((phase) => {
|
|
252
|
-
phase.status = 'ready';
|
|
253
|
-
});
|
|
254
|
-
},
|
|
255
|
-
prepare(payload) {
|
|
256
|
-
return { payload };
|
|
257
|
-
},
|
|
258
|
-
},
|
|
259
183
|
updateOnboardingCustomerViewDashboardLoaded: {
|
|
260
184
|
reducer(draft) {
|
|
261
185
|
draft.dashboardLoadedStatus = {
|
|
@@ -668,49 +592,7 @@ const onboardingCustomerView = createSlice({
|
|
|
668
592
|
clearOnboardingCustomerView(draft) {
|
|
669
593
|
Object.assign(draft, initialState);
|
|
670
594
|
},
|
|
671
|
-
/** Merge AI-parsed officer fields into the officer's onboarding localData. */
|
|
672
|
-
applyKycDocumentAutofillForOnboarding: {
|
|
673
|
-
reducer(draft, action) {
|
|
674
|
-
const { officerType, values, autoFilledFieldNames } = action.payload;
|
|
675
|
-
const slot = draft.companyOfficerUpdateStatus[officerType];
|
|
676
|
-
slot.localData = Object.assign({}, slot.localData, values);
|
|
677
|
-
slot.autoFilledFields = Array.from(new Set([...slot.autoFilledFields, ...autoFilledFieldNames]));
|
|
678
|
-
},
|
|
679
|
-
prepare(payload) {
|
|
680
|
-
return { payload };
|
|
681
|
-
},
|
|
682
|
-
},
|
|
683
|
-
/** Merge AI-parsed company fields into companyDetails onboarding localData. */
|
|
684
|
-
applyKybDocumentAutofillForOnboarding: {
|
|
685
|
-
reducer(draft, action) {
|
|
686
|
-
const { values, autoFilledFieldNames } = action.payload;
|
|
687
|
-
draft.companyDetails.localData = Object.assign({}, draft.companyDetails.localData, values);
|
|
688
|
-
const prev = draft.companyDetails.autoFilledFields ?? [];
|
|
689
|
-
draft.companyDetails.autoFilledFields = Array.from(new Set([...prev, ...autoFilledFieldNames]));
|
|
690
|
-
},
|
|
691
|
-
prepare(payload) {
|
|
692
|
-
return { payload };
|
|
693
|
-
},
|
|
694
|
-
},
|
|
695
|
-
/** Wipe AI-autofill badges during onboarding. */
|
|
696
|
-
clearKycKybAutofillForOnboarding: {
|
|
697
|
-
reducer(draft, action) {
|
|
698
|
-
const { officerType } = action.payload;
|
|
699
|
-
if (officerType != null) {
|
|
700
|
-
draft.companyOfficerUpdateStatus[officerType].autoFilledFields = [];
|
|
701
|
-
}
|
|
702
|
-
else {
|
|
703
|
-
draft.companyDetails.autoFilledFields = [];
|
|
704
|
-
Object.keys(draft.companyOfficerUpdateStatus).forEach((key) => {
|
|
705
|
-
draft.companyOfficerUpdateStatus[key].autoFilledFields = [];
|
|
706
|
-
});
|
|
707
|
-
}
|
|
708
|
-
},
|
|
709
|
-
prepare(payload = {}) {
|
|
710
|
-
return { payload };
|
|
711
|
-
},
|
|
712
|
-
},
|
|
713
595
|
},
|
|
714
596
|
});
|
|
715
|
-
export const { fetchOnboardingCustomerView, fetchOnboardingCustomerSetupView, fetchOnboardingCustomerSetupViewSuccess, fetchOnboardingCustomerSetupViewFailure, updateOnboardingCustomerViewCompleteStatus, updateOnboardingCustomerViewCompleteStatusSuccess, updateOnboardingCustomerViewCompleteStatusFailure,
|
|
597
|
+
export const { fetchOnboardingCustomerView, fetchOnboardingCustomerSetupView, fetchOnboardingCustomerSetupViewSuccess, fetchOnboardingCustomerSetupViewFailure, updateOnboardingCustomerViewCompleteStatus, updateOnboardingCustomerViewCompleteStatusSuccess, updateOnboardingCustomerViewCompleteStatusFailure, updateOnboardingCustomerViewDashboardLoaded, updateOnboardingCustomerViewDashboardLoadedSuccess, updateOnboardingCustomerViewDashboardLoadedFailure, updateOnboardingCustomerView, updateOnboardingCustomerViewSuccess, updateOnboardingCustomerViewFailure, updateOnboardingPaymentAccountStatus, updateOnboardingPaymentAccountStatusSuccess, updateOnboardingPaymentAccountStatusFailure, updateOnboardingPaymentAccountLoginStatus, updateOnboardingPaymentAccountLoginStatusSuccess, updateOnboardingPaymentAccountLoginStatusFailure, establishOnboardingPlaidConnection, establishOnboardingPlaidConnectionSuccess, establishOnboardingPlaidConnectionFailure, getOnboardingPlaidLinkToken, getOnboardingPlaidLinkTokenSuccess, getOnboardingPlaidLinkTokenFailure, updateCurrentStep, updateOnboardingCustomerViewAccountDetails, updateOnboardingCustomerViewLocalStoreData, saveOnboardingCustomerViewDataInLocalStore, saveOnboardingCompnayOfficerPhoneInLocalStore, updateOnboardingCustomerViewUIState, sendOnboardingOfficerOtp, sendOnboardingOfficerOtpSuccess, sendOnboardingOfficerOtpFailure, resendOnboardingOfficerOtp, verifyOnboardingOfficerOtp, verifyOnboardingOfficerOtpSuccess, verifyOnboardingOfficerOtpFailure, clearOnboardingCustomerViewDataInLocalStore, clearOnboardingCustomerView, } = onboardingCustomerView.actions;
|
|
716
598
|
export default onboardingCustomerView.reducer;
|
|
@@ -323,17 +323,3 @@ export const getProductSettingsString = (productSettings) => {
|
|
|
323
323
|
.map((key) => productKeyMap[key])
|
|
324
324
|
.join(',');
|
|
325
325
|
};
|
|
326
|
-
const fromActivationView = (state) => state.onboardingCustomerViewState.aiAgentsActivation;
|
|
327
|
-
export const getAiAgentsActivationSubview = (state) => fromActivationView(state);
|
|
328
|
-
export const getAiAgentsActivationLedgerPhases = (state) => fromActivationView(state).ledgerPhases;
|
|
329
|
-
export const getAiAgentsActivationBackgroundPhases = (state) => fromActivationView(state).backgroundPhases;
|
|
330
|
-
export const getAiAgentsActivationCounts = (state) => fromActivationView(state).counts;
|
|
331
|
-
const SECTION_ROW_STATUS_FALLBACK = 'idle';
|
|
332
|
-
const phaseStatusToRowStatus = (status) => {
|
|
333
|
-
if (status === 'ready') {
|
|
334
|
-
return 'building';
|
|
335
|
-
}
|
|
336
|
-
return status;
|
|
337
|
-
};
|
|
338
|
-
export const getAiAgentsActivationLedgerRowStatuses = (state) => fromActivationView(state).ledgerPhases.map((phase) => phaseStatusToRowStatus(phase.status ?? SECTION_ROW_STATUS_FALLBACK));
|
|
339
|
-
export const getAiAgentsActivationBackgroundRowStatuses = (state) => fromActivationView(state).backgroundPhases.map((phase) => phaseStatusToRowStatus(phase.status ?? SECTION_ROW_STATUS_FALLBACK));
|
|
@@ -26,16 +26,3 @@ export const ALL_ONBOARDING_STEPS = [
|
|
|
26
26
|
...ALL_ZENI_USER_ONBOARDING_STEPS_WITHOUT_ACCOUNT,
|
|
27
27
|
];
|
|
28
28
|
export const toOnboardingStepType = (v) => stringToUnion(v, ALL_ONBOARDING_STEPS);
|
|
29
|
-
export const emptyAiAgentsActivationCounts = {
|
|
30
|
-
customerCount: 0,
|
|
31
|
-
glAccountCount: 0,
|
|
32
|
-
targetTransactionCount: 0,
|
|
33
|
-
transactionCount: 0,
|
|
34
|
-
vendorCount: 0,
|
|
35
|
-
};
|
|
36
|
-
export const emptyAiAgentsActivationSubview = {
|
|
37
|
-
backgroundPhases: [],
|
|
38
|
-
counts: emptyAiAgentsActivationCounts,
|
|
39
|
-
fetchStatus: { fetchState: 'Not-Started', error: undefined },
|
|
40
|
-
ledgerPhases: [],
|
|
41
|
-
};
|
|
@@ -3,26 +3,60 @@ const initialFetchStatus = {
|
|
|
3
3
|
fetchState: 'Not-Started',
|
|
4
4
|
error: undefined,
|
|
5
5
|
};
|
|
6
|
-
const emptyOfficerSlot = {
|
|
7
|
-
autoFilledFields: [],
|
|
8
|
-
localData: undefined,
|
|
9
|
-
sendOtpStatus: initialFetchStatus,
|
|
10
|
-
otpverificationStatus: initialFetchStatus,
|
|
11
|
-
};
|
|
12
6
|
export const initialState = {
|
|
13
7
|
updateStatus: { fetchState: 'Not-Started', error: undefined },
|
|
14
|
-
companyDetails: {
|
|
8
|
+
companyDetails: {},
|
|
15
9
|
companyOfficerUpdateStatus: {
|
|
16
|
-
Officer_1: {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
10
|
+
Officer_1: {
|
|
11
|
+
localData: undefined,
|
|
12
|
+
sendOtpStatus: initialFetchStatus,
|
|
13
|
+
otpverificationStatus: initialFetchStatus,
|
|
14
|
+
},
|
|
15
|
+
Officer_2: {
|
|
16
|
+
localData: undefined,
|
|
17
|
+
sendOtpStatus: initialFetchStatus,
|
|
18
|
+
otpverificationStatus: initialFetchStatus,
|
|
19
|
+
},
|
|
20
|
+
Officer_3: {
|
|
21
|
+
localData: undefined,
|
|
22
|
+
sendOtpStatus: initialFetchStatus,
|
|
23
|
+
otpverificationStatus: initialFetchStatus,
|
|
24
|
+
},
|
|
25
|
+
Officer_4: {
|
|
26
|
+
localData: undefined,
|
|
27
|
+
sendOtpStatus: initialFetchStatus,
|
|
28
|
+
otpverificationStatus: initialFetchStatus,
|
|
29
|
+
},
|
|
30
|
+
Officer_5: {
|
|
31
|
+
localData: undefined,
|
|
32
|
+
sendOtpStatus: initialFetchStatus,
|
|
33
|
+
otpverificationStatus: initialFetchStatus,
|
|
34
|
+
},
|
|
35
|
+
Officer_6: {
|
|
36
|
+
localData: undefined,
|
|
37
|
+
sendOtpStatus: initialFetchStatus,
|
|
38
|
+
otpverificationStatus: initialFetchStatus,
|
|
39
|
+
},
|
|
40
|
+
Officer_7: {
|
|
41
|
+
localData: undefined,
|
|
42
|
+
sendOtpStatus: initialFetchStatus,
|
|
43
|
+
otpverificationStatus: initialFetchStatus,
|
|
44
|
+
},
|
|
45
|
+
Officer_8: {
|
|
46
|
+
localData: undefined,
|
|
47
|
+
sendOtpStatus: initialFetchStatus,
|
|
48
|
+
otpverificationStatus: initialFetchStatus,
|
|
49
|
+
},
|
|
50
|
+
Officer_9: {
|
|
51
|
+
localData: undefined,
|
|
52
|
+
sendOtpStatus: initialFetchStatus,
|
|
53
|
+
otpverificationStatus: initialFetchStatus,
|
|
54
|
+
},
|
|
55
|
+
Officer_10: {
|
|
56
|
+
localData: undefined,
|
|
57
|
+
sendOtpStatus: initialFetchStatus,
|
|
58
|
+
otpverificationStatus: initialFetchStatus,
|
|
59
|
+
},
|
|
26
60
|
},
|
|
27
61
|
primaryContactDetails: {},
|
|
28
62
|
};
|
|
@@ -263,60 +297,7 @@ const setupView = createSlice({
|
|
|
263
297
|
clearSetupView(draft) {
|
|
264
298
|
Object.assign(draft, initialState);
|
|
265
299
|
},
|
|
266
|
-
/**
|
|
267
|
-
* Merge AI-parsed officer fields into the selected officer's localData and
|
|
268
|
-
* track which field names were autofilled so the form can show the ✦ badge.
|
|
269
|
-
*/
|
|
270
|
-
applyKycDocumentAutofillForSetup: {
|
|
271
|
-
reducer(draft, action) {
|
|
272
|
-
const { officerType, values, autoFilledFieldNames } = action.payload;
|
|
273
|
-
const slot = draft.companyOfficerUpdateStatus[officerType];
|
|
274
|
-
slot.localData = Object.assign({}, slot.localData, values);
|
|
275
|
-
slot.autoFilledFields = Array.from(new Set([...slot.autoFilledFields, ...autoFilledFieldNames]));
|
|
276
|
-
},
|
|
277
|
-
prepare(payload) {
|
|
278
|
-
return { payload };
|
|
279
|
-
},
|
|
280
|
-
},
|
|
281
|
-
/**
|
|
282
|
-
* Merge AI-parsed company fields into companyDetails.localData and track
|
|
283
|
-
* which field names were autofilled.
|
|
284
|
-
*/
|
|
285
|
-
applyKybDocumentAutofillForSetup: {
|
|
286
|
-
reducer(draft, action) {
|
|
287
|
-
const { values, autoFilledFieldNames } = action.payload;
|
|
288
|
-
draft.companyDetails.localData = Object.assign({}, draft.companyDetails.localData, values);
|
|
289
|
-
draft.companyDetails.autoFilledFields = Array.from(new Set([
|
|
290
|
-
...draft.companyDetails.autoFilledFields,
|
|
291
|
-
...autoFilledFieldNames,
|
|
292
|
-
]));
|
|
293
|
-
},
|
|
294
|
-
prepare(payload) {
|
|
295
|
-
return { payload };
|
|
296
|
-
},
|
|
297
|
-
},
|
|
298
|
-
/**
|
|
299
|
-
* Wipe AI-autofill badges. If `officerType` is provided, clears only that
|
|
300
|
-
* officer; otherwise clears company details too.
|
|
301
|
-
*/
|
|
302
|
-
clearKycKybAutofillForSetup: {
|
|
303
|
-
reducer(draft, action) {
|
|
304
|
-
const { officerType } = action.payload;
|
|
305
|
-
if (officerType != null) {
|
|
306
|
-
draft.companyOfficerUpdateStatus[officerType].autoFilledFields = [];
|
|
307
|
-
}
|
|
308
|
-
else {
|
|
309
|
-
draft.companyDetails.autoFilledFields = [];
|
|
310
|
-
Object.keys(draft.companyOfficerUpdateStatus).forEach((key) => {
|
|
311
|
-
draft.companyOfficerUpdateStatus[key].autoFilledFields = [];
|
|
312
|
-
});
|
|
313
|
-
}
|
|
314
|
-
},
|
|
315
|
-
prepare(payload = {}) {
|
|
316
|
-
return { payload };
|
|
317
|
-
},
|
|
318
|
-
},
|
|
319
300
|
},
|
|
320
301
|
});
|
|
321
|
-
export const { enableSetup, enableSetupSuccess, enableSetupFailure, updateBusinessVerificationDetails, updateBusinessVerificationDetailsSuccess, updateBusinessVerificationDetailsFailure, updateSelectedCompanyOfficer, updateSetupViewLocalStoreData, saveSetupViewDataInLocalStore, saveCompnayOfficerPhoneInLocalStore, saveCompnayOfficerAdditionalDocumentsInLocalStore, saveTreasuryAdditionalDocumentsInLocalStore, sendOtp: sendOtpSpendManagementSetUp, resendOtp: resendOtpSpendManagementSetUp, sendOtpSuccess: sendOtpSuccessSpendManagementSetUp, sendOtpFailure: sendOtpFailureSpendManagementSetUp, verifyOtp: verifyOtpSpendManagementSetUp, verifyOtpSuccess: verifyOtpSuccessSpendManagementSetUp, verifyOtpFailure: verifyOtpFailureSpendManagementSetUp, saveIndustryAndIncDateInLocalStore, clearSetupViewDataInLocalStore, clearSetupView,
|
|
302
|
+
export const { enableSetup, enableSetupSuccess, enableSetupFailure, updateBusinessVerificationDetails, updateBusinessVerificationDetailsSuccess, updateBusinessVerificationDetailsFailure, updateSelectedCompanyOfficer, updateSetupViewLocalStoreData, saveSetupViewDataInLocalStore, saveCompnayOfficerPhoneInLocalStore, saveCompnayOfficerAdditionalDocumentsInLocalStore, saveTreasuryAdditionalDocumentsInLocalStore, sendOtp: sendOtpSpendManagementSetUp, resendOtp: resendOtpSpendManagementSetUp, sendOtpSuccess: sendOtpSuccessSpendManagementSetUp, sendOtpFailure: sendOtpFailureSpendManagementSetUp, verifyOtp: verifyOtpSpendManagementSetUp, verifyOtpSuccess: verifyOtpSuccessSpendManagementSetUp, verifyOtpFailure: verifyOtpFailureSpendManagementSetUp, saveIndustryAndIncDateInLocalStore, clearSetupViewDataInLocalStore, clearSetupView, } = setupView.actions;
|
|
322
303
|
export default setupView.reducer;
|
|
@@ -119,7 +119,6 @@ export const getCompanyAndIdentityDetails = (state, companyId, companyAndIdentit
|
|
|
119
119
|
const companyAddress = addressViewState.newAddressState?.company_address;
|
|
120
120
|
const registeredCompanyAddress = addressViewState.newAddressState?.company_registered_address;
|
|
121
121
|
companyDetailsLocalData = {
|
|
122
|
-
autoFilledFields: companyDetails.autoFilledFields,
|
|
123
122
|
companyId,
|
|
124
123
|
companyDescription,
|
|
125
124
|
companyLegalName,
|
|
@@ -192,7 +191,6 @@ export const getCompanyAndIdentityDetails = (state, companyId, companyAndIdentit
|
|
|
192
191
|
const companyOfficerAddress = addressViewState.newAddressState?.[addressType];
|
|
193
192
|
companyOfficerLocalData[officerType] = {
|
|
194
193
|
...companyOfficer.localData,
|
|
195
|
-
autoFilledFields: companyOfficer.autoFilledFields,
|
|
196
194
|
userFiles: getFilesByFileIds(fileState, fileIds),
|
|
197
195
|
additionalFiles: getFilesByFileIds(fileState, additionalSubmittedDocumentsForVerificationFileIds),
|
|
198
196
|
deleteFileStatusById,
|
package/lib/index.d.ts
CHANGED
|
@@ -130,7 +130,7 @@ import { TaskGroupState } from './entity/taskGroup/taskGroupState';
|
|
|
130
130
|
import { TaskGroupTemplate } from './entity/taskGroupTemplate/taskGroupTemplateState';
|
|
131
131
|
import { DoSignInPayload, clearAll, deleteConnection, doMagicLinkSignIn, doSignIn, doSignOut, fetchActiveTenant, fetchAllTenants, fetchExcludedResources as fetchExcludedResourcesForTenant, fetchExternalConnections as fetchExternalConnectionsForTenant, fetchSubscriptionSummaryForTenant, resendVerifyDeviceOTP, resetSignInState, saveAPIKeyConnection, saveConnectorCredentials, saveExternalConnection as saveExternalConnectionForTenant, saveOAuthConnection, sendEmailMagicLinkToUser, sendSessionHeartbeat, toExternalIntegrationType, toExternalSupportedTool, updateCurrentTenant, updateSignInState, verifyDeviceWithTwoFA } from './entity/tenant/tenantReducer';
|
|
132
132
|
import { CurrentTenant, TenantBaseView, TenantCoreDetailsView, TenantView, TenantsBaseOrdered, TenantsOrdered, getCurrentTenant, getIsAccountingClassesEnabled, getIsAccountingProjectsEnabled, getTenantBaseById, getTenantBaseViewForTenantId, getTenantBaseViewForTenantView, getTenantsBaseByCheckInDateSelector, getTenantsByCheckInDateSelector, getTenantsCoreDetailsByCheckInDateSelector, isOtherProductsEnabledForTenant, isTenantBankingOnly, isTenantBookkeepingEnabled, isTenantCardsOnly, isTenantUsingZeniCOA, isZeniDomainTenant, toTenantCoreDetailsView } from './entity/tenant/tenantSelector';
|
|
133
|
-
import {
|
|
133
|
+
import { Connection, LoggedInUser, RoleResource, Tenant, TenantProductSettings } from './entity/tenant/tenantState';
|
|
134
134
|
import { ToastNotificationPayload } from './entity/toastNotification/toastNotificationPayload';
|
|
135
135
|
import { pushToastNotification } from './entity/toastNotification/toastNotificationReducer';
|
|
136
136
|
import { getLastNotificationTime, getNotifications } from './entity/toastNotification/toastNotificationSelector';
|
|
@@ -243,7 +243,7 @@ import { AuditSummaryData, CompanyMonthEndReportData, CompanyMonthReportTemplate
|
|
|
243
243
|
import { fetchCompanyTaskManagerView, fetchTaskManagerMetrics } from './view/companyTaskManagerView/companyTaskManagerViewReducer';
|
|
244
244
|
import { CompanyTaskManagerSelectorView, TaskWithCompanyDetail, getCompanyTaskManagerView } from './view/companyTaskManagerView/companyTaskManagerViewSelector';
|
|
245
245
|
import { CompanyTaskManagerViewUIState, TaskManagerMetrics } from './view/companyTaskManagerView/companyTaskManagerViewState';
|
|
246
|
-
import { clearCompanyView, companyManagementSaveUpdates, companyPassportClearDataInLocalStore, companyPassportSaveDataInLocalStore, deleteCompanyOfficerInLocalStore, fetchAllCockpitViews, fetchCompanyManagementView, fetchCompanyPassportView, fetchCompanyPortfolioView, fetchManagementView, fetchOnboardingView, fetchParentSubsidiaryManagementView, fetchPortfolioView, fetchSubscriptionView, fetchZeniUsers, saveCompanyPassportDetails,
|
|
246
|
+
import { clearCompanyView, companyManagementSaveUpdates, companyPassportClearDataInLocalStore, companyPassportSaveDataInLocalStore, deleteCompanyOfficerInLocalStore, fetchAllCockpitViews, fetchCompanyManagementView, fetchCompanyPassportView, fetchCompanyPortfolioView, fetchManagementView, fetchOnboardingView, fetchParentSubsidiaryManagementView, fetchPortfolioView, fetchSubscriptionView, fetchZeniUsers, saveCompanyPassportDetails, saveIndustryAndIncDateInCompanyPassportLocalStore, updateAccountingClassesEnabled, updateCompanyDownloadState, updateCompanyManagementUIState, updateCompanyPassportLocalStoreData, updateCompanyPortfolioUIState } from './view/companyView/companyViewReducer';
|
|
247
247
|
import { FilterCategoryValueType, canSendMonthEndEmailReport, shouldEnableCalendarPickerForLastReportSent } from './view/companyView/helpers/cockpitHelpers';
|
|
248
248
|
import { getParentSubsidiaryManagementView } from './view/companyView/parentSubsidiaryView/parentSubsidiaryViewSelector';
|
|
249
249
|
import { CompanyManagementView, CompanyWithUpdateStatusView, getAddonListZeniSku, getCompanyManagementView, getPlanListZeniSku } from './view/companyView/selector/companyManagementViewSelector';
|
|
@@ -336,7 +336,7 @@ import { clearOnboardingCustomerViewUpdateData, fetchCompanyOnboardingView, fetc
|
|
|
336
336
|
import { NewOnboardingCustomerLocalData, NewOnboardingCustomerView, OnboardingCockpitView, ProductInfo, getNewOnboardingCustomerView, getOnboardingCockpitView } from './view/onboardingView/cockpitView/onboardingCockpitViewSelector';
|
|
337
337
|
import { OnboardingCustomerListUIState, QBOConnectionPool } from './view/onboardingView/cockpitView/onboardingCockpitViewState';
|
|
338
338
|
import { CustomerCreationStatus, NewOnboardingCustomer, OnboardingCompanyDetails, OnboardingCustomer, OnboardingCustomerCompletedStatus, ProductGroupType, ProductType, toProductType, toProductTypeStrict } from './view/onboardingView/cockpitView/types/onboardingCockpitViewTypes';
|
|
339
|
-
import {
|
|
339
|
+
import { clearOnboardingCustomerView, clearOnboardingCustomerViewDataInLocalStore, establishOnboardingPlaidConnection, fetchOnboardingCustomerSetupView, fetchOnboardingCustomerView, getOnboardingPlaidLinkToken, saveOnboardingCompnayOfficerPhoneInLocalStore, saveOnboardingCustomerViewDataInLocalStore, updateCurrentStep, updateOnboardingCustomerView, updateOnboardingCustomerViewAccountDetails, updateOnboardingCustomerViewCompleteStatus, updateOnboardingCustomerViewDashboardLoaded, updateOnboardingCustomerViewLocalStoreData, updateOnboardingCustomerViewUIState, updateOnboardingPaymentAccountLoginStatus, updateOnboardingPaymentAccountStatus } from './view/onboardingView/customerView/onboardingCustomerViewReducer';
|
|
340
340
|
import { OnboardingCustomerView, getOnboardingCustomerView, getProductSettingsString } from './view/onboardingView/customerView/onboardingCustomerViewSelector';
|
|
341
341
|
import { OnboardingCustomerViewLocalData, OnboardingCustomerViewUIState, OnboardingStep } from './view/onboardingView/customerView/onboardingCustomerViewState';
|
|
342
342
|
import { fetchOpEx, fetchOpExWithForecast, updateOpExCOABalancesRange, updateOpExDownloadState, updateOpExUIState } from './view/opEx/opExReducer';
|
|
@@ -477,15 +477,13 @@ import { IssueChargeCardSelectorView, getIssueChargeCardView } from './view/spen
|
|
|
477
477
|
import { ActiveChargeCardCount, ActiveDebitCardCount, ActiveDebitCardCountByUserId, IssueChargeCardLocalData, IssueChargeCardState, PhysicalCreditCardData, PhysicalDebitCardData, VirtualCreditCardData, VirtualDebitCardData } from './view/spendManagement/chargeCards/issueChargeCard/issueChargeCardState';
|
|
478
478
|
import { CommonHistoryView, HistoricEvent, HistoricEventUpdate } from './view/spendManagement/commonHistoryView/commonHistory';
|
|
479
479
|
import { ActivityHistorySelectorView } from './view/spendManagement/commonHistoryView/commonHistorySelector';
|
|
480
|
-
import { clearSetupViewDataInLocalStore, enableSetup, saveCompnayOfficerAdditionalDocumentsInLocalStore, saveCompnayOfficerPhoneInLocalStore, saveIndustryAndIncDateInLocalStore, saveSetupViewDataInLocalStore, saveTreasuryAdditionalDocumentsInLocalStore, updateBusinessVerificationDetails, updateSelectedCompanyOfficer, updateSetupViewLocalStoreData
|
|
481
|
-
import { parseUploadedKycDocument, parseUploadedKybDocument } from './view/spendManagement/commonSetup/kycKybAutofillActions';
|
|
480
|
+
import { clearSetupViewDataInLocalStore, enableSetup, saveCompnayOfficerAdditionalDocumentsInLocalStore, saveCompnayOfficerPhoneInLocalStore, saveIndustryAndIncDateInLocalStore, saveSetupViewDataInLocalStore, saveTreasuryAdditionalDocumentsInLocalStore, updateBusinessVerificationDetails, updateSelectedCompanyOfficer, updateSetupViewLocalStoreData } from './view/spendManagement/commonSetup/setupViewReducer';
|
|
482
481
|
import { BusinessVerificationDetails, CompanyDetails, CompanyOfficersDetails, FundingAccount, SetupView, getBusinessVerificationDetails, getCommonSetupViewDetails } from './view/spendManagement/commonSetup/setupViewSelector';
|
|
483
482
|
import { SetupViewLocalData, SetupViewState } from './view/spendManagement/commonSetup/setupViewState';
|
|
484
483
|
import { COMPANY_ONBOARDING_INDUSTRY_TYPE_CODES, COMPANY_ONBOARDING_SUB_INDUSTRY_CODES_BY_INDUSTRY, COMPANY_PURPOSE_OF_ACCOUNT_CODES, COMPANY_SOURCE_OF_FUNDS_CODES, COMPANY_TRANSACTION_VOLUME_CODES, COMPANY_US_NEXUS_TYPE_CODES, CompanyOnboardingIndustryTypeCode, CompanyOnboardingSubIndustryTypeCode, CompanyPurposeOfAccountCode, CompanySourceOfFundsCode, CompanyTransactionVolumeCode, CompanyUsNexusTypeCode, getCompanyOnboardingSubIndustryCodesForIndustry } from './view/spendManagement/commonSetup/types/businessVerification';
|
|
485
484
|
import { BulkOperationFinishedType, BulkOperationType, SameDayAchDisablementConfig, ZeniAccountsPromoConfig, checkIfLowBalance, getActualPaymentDate, getBillListUniqueType, getBulkOperationSuffix, getRemiListUniqueType, getSelectedCompanyOfficer, getSpendManagementEffectiveListPeriod, isAwaitingMarkAsPaid, isBulkProcessing, isPaymentMethodOutsideZeni, isVerifiedPaymentAccountProviderStatusCode, isVerifiedStatusCode, showBillPayPromoPage, showReimbursementPromoPage, toAccountsPromoConfig, toSameDayAchDisablementConfig } from './view/spendManagement/helpers';
|
|
486
485
|
import { establishPlaidConnection, getPaymentAccounts, getPlaidLinkToken, updateMappedCashAccount, updatePaymentAccount, updatePaymentAccountLoginStatus, updatePaymentAccountStatus, updatePrimaryFundingAccount } from './view/spendManagement/plaidAccount/plaidAccountViewReducer';
|
|
487
486
|
import { getPlaidAccountDetails } from './view/spendManagement/plaidAccount/plaidAccountViewSelector';
|
|
488
|
-
import { getPlaidPaymentAccounts } from './entity/paymentAccount/paymentAccountSelector';
|
|
489
487
|
import { PlaidAccountKeyType, PlaidAccountState, PlaidConnectionDetails, PlaidLinkTokenType } from './view/spendManagement/plaidAccount/plaidAccountViewState';
|
|
490
488
|
import { saveRealTimeApproval, updateIsEditModeRealTimeApprovals } from './view/spendManagement/realTimeApprovalView/realTimeApprovalReducer';
|
|
491
489
|
import { ActivityRealTimeApprovalSelectorView } from './view/spendManagement/realTimeApprovalView/realTimeApprovalSelector';
|
|
@@ -673,7 +671,7 @@ export { TimeframeTick, TimeframeTickWithMetaData, toTimeframeTick, mapTimePerio
|
|
|
673
671
|
export { VendorSpendTrendFilterTabType, toVendorSpendTrendFilterTabsTypeStrict, } from './entity/vendorExpense/vendorExpenseSelector';
|
|
674
672
|
export { getNumberOfPeriods };
|
|
675
673
|
export { SCHEDULE_DAYS_OF_MONTH, ScheduleDaysOfMonth, toScheduleDaysOfMonth, Day, Month, toMonth, toMonthStrict, Quarter, toQuarter, toQuarterStrict, AbsoluteDay, TimePeriod, };
|
|
676
|
-
export {
|
|
674
|
+
export { Tenant, TenantView, LoggedInUser, TenantBaseView, CurrentTenant, TenantProductSettings, getTenantBaseById, getCurrentTenant, getIsAccountingClassesEnabled, getIsAccountingProjectsEnabled, getTenantsByCheckInDateSelector, getTenantsBaseByCheckInDateSelector, getTenantsCoreDetailsByCheckInDateSelector, toTenantCoreDetailsView, getTenantBaseViewForTenantView, getTenantBaseViewForTenantId, isZeniDomainTenant, isTenantUsingZeniCOA, TenantsBaseOrdered, TenantsOrdered, TenantCoreDetailsView, fetchActiveTenant, fetchAllTenants, updateCurrentTenant, clearAll, doMagicLinkSignIn, verifyDeviceWithTwoFA, resendVerifyDeviceOTP, sendEmailMagicLinkToUser, doSignIn, updateSignInState, DoSignInPayload, doSignOut, sendSessionHeartbeat, resetSignInState, RoleResource, Connection, fetchExcludedResourcesForTenant, fetchExternalConnectionsForTenant, saveExternalConnectionForTenant, deleteConnection, saveAPIKeyConnection, saveConnectorCredentials, saveOAuthConnection, toExternalIntegrationType, toExternalSupportedTool, fetchSubscriptionSummaryForTenant, isTenantBankingOnly, isTenantCardsOnly, isTenantBookkeepingEnabled, isOtherProductsEnabledForTenant, };
|
|
677
675
|
export { Account, AccountType, AccountBase, StatementCloseDay, toAccountType, AccountReport, NestedAccountReport, AccountWithBalanceReport, AccountGroup, AccountGroupReportV2, AccountGroupType, toAccountGroupType, AccountGroupReport, getAccountGroupKey, AccountGroupKey, RecommendedAccountBase, AccountFilterOption, getAllAccounts, getTransactionFilterAccountOptions, };
|
|
678
676
|
export { Class, ClassBase, RecommendedClassBase, } from './entity/class/classState';
|
|
679
677
|
export { ClassFilterOption, getAllClasses, getClassById, getClassFilterOptions, } from './entity/class/classSelector';
|
|
@@ -777,7 +775,7 @@ export { CockpitFilterCategory, CockpitFilters, DownloadCockpitTabOptions, Filte
|
|
|
777
775
|
export { CockpitDownloadTabsID, CockpitTabsFileType, CockpitTabsID, ALL_COCKPIT_TABS_FILE_TYPES, ALL_COCKPIT_TABS_IDS, toCockpitTabsIDStrict, toCockpitTabsFileTypeStrict, };
|
|
778
776
|
export { AllowedValueWithCode, AllowedValue, AllowedValueWithID, isAllowedValueWithCode, isAllowedValueWithID, };
|
|
779
777
|
export { ManagementUIState, PortfolioUIState };
|
|
780
|
-
export { fetchCompanyPassportView, CompanyPassportView, getCompanyPassportView, getCompanyPassportLocalStoreData, isCompanyPassportDataToBeSaved, companyPassportSaveDataInLocalStore, saveIndustryAndIncDateInCompanyPassportLocalStore, deleteCompanyOfficerInLocalStore, companyPassportClearDataInLocalStore, updateCompanyPassportLocalStoreData, saveCompanyPassportDetails, updateAccountingClassesEnabled,
|
|
778
|
+
export { fetchCompanyPassportView, CompanyPassportView, getCompanyPassportView, getCompanyPassportLocalStoreData, isCompanyPassportDataToBeSaved, companyPassportSaveDataInLocalStore, saveIndustryAndIncDateInCompanyPassportLocalStore, deleteCompanyOfficerInLocalStore, companyPassportClearDataInLocalStore, updateCompanyPassportLocalStoreData, saveCompanyPassportDetails, updateAccountingClassesEnabled, clearCompanyView, UpdateActionType, CompanyPassportLocalStoreDataView, };
|
|
781
779
|
export { CompanyInfoLocalData, IncInfoLocalData, TaxDetailsLocalData, CompanyDetailsLocalData, PrimaryContactLocalData, CompanyOfficerLocalData, CompanyOfficerType, CompanyPassportLocalData, toCompanyPassportLocalData, };
|
|
782
780
|
export type { CompanyOnboardingIndustryTypeCode, CompanyOnboardingSubIndustryTypeCode, CompanyPurposeOfAccountCode, CompanySourceOfFundsCode, CompanyTransactionVolumeCode, CompanyUsNexusTypeCode, };
|
|
783
781
|
export { COMPANY_ONBOARDING_INDUSTRY_TYPE_CODES, COMPANY_ONBOARDING_SUB_INDUSTRY_CODES_BY_INDUSTRY, COMPANY_PURPOSE_OF_ACCOUNT_CODES, COMPANY_SOURCE_OF_FUNDS_CODES, COMPANY_TRANSACTION_VOLUME_CODES, COMPANY_US_NEXUS_TYPE_CODES, getCompanyOnboardingSubIndustryCodesForIndustry, };
|
|
@@ -803,7 +801,7 @@ export { AccountListSelectorView, ClassListSelectorView, getClassList, fetchClas
|
|
|
803
801
|
export { BillTab, BillsSubTabType, SaveBillStageCode, BillPayReviewSelectorView, DuplicateBillsSelectorView, EditBillDetailSelectorView, LineItemRecommendationsLocalData, EditBillInitialDetails, BillableStatus, PaymentDetailsSection, BillListReport, BillListDownloadReport, WhatForSection, fetchBillList, fetchBillListPerTab, updateTab, updateSubTab, updateSelectedBillId, updateBillDetailSaveBillCode, fetchVendorByNameAndParseInvoice, saveBillUpdatesToLocalStore, discardBillUpdatesInLocalStore, saveBillDetail, approveOrRejectBill, updateApprovalStatusOnSuccess, deleteBill, cancelAndDeleteBill, retryOrRefundBill, getBillList, getBillDownloadList, BillDetailViewSelector, ActorActivityWithUser, BillActivity, StepWithStatus, getBillDetailView, checkApproveRejectBtnShowForBill, BillDetailView, getBillTransactionDetailKey, fetchBillDetail, fetchEditBillDetailPage, fetchAndUpdateVendorRecommendations, fetchDuplicateBill, clearBillPayReview, EditBillDetail, EditBillDetailViewState, getEditBillDetail, getReviewPageBillDetail, BillDetailLocalData, PaymentDetailsSectionView, fetchBillAndInitializeLocalStore, updateShowAutofill, saveVendorSuccessOrFailure, BillPaymentStatus, BillPaymentStatusCodeType, BillPaymentRefundStatus, BillPaymentRefundStatusCodeType, BillStatus, BillStatusCodeType, BillApprovalType, updateBillListUIState, BillListUIState, BillPayViewSortKey, BillPayFilters, BillPayFilterCategory, BillListViewFilterCategoryField, BILL_PAY_FILTER_CATEGORIES, updateVendorDetailLocalData, resetVendorDetailLocalData, resetVendorSaveStatus, updateContactsInVendorDetailLocalData, updateVendorTabDetailUIState, updateContactsInVendorTabDetailLocalData, updateBillUploadFetchState, updateBillListSearchResult, fetchUserDetails, verifyUser, updateVendorContact, PaymentToOption, toPaymentToOption, convertAmountToHomeCurrency, RecurringBillInstance, RecurringBillConfigLocalData, EditRecurringBillType, fetchVendorAndUpdateBillLocalData, markBillForRetry, updateWithdrawFromAccountId, removeBillFileFromLocalStore, replaceBillFileInLocalStore, updateShouldReplaceBillData, };
|
|
804
802
|
export { SpendManagementFiltersType, SpendManagementFilterEntityType, FilterCategoryType, BillPayFilterCategoryDropdownOption, ReimbursementFilterCategoryDropdownOption, TaskFilterCategoryDropdownOption, SpendManagementFilterCategoryDropdownOption, MatchingOperatorDropdownOption, CategoryCombinationOperator, hideCreatedByFilter, };
|
|
805
803
|
export { TRANSACTION_FILTER_CATEGORIES, TransactionFilterAmountMatchingOperator, TransactionFilterCategory, TransactionFilterCategoryDropdownOption, TransactionFilterCategoryField, TransactionFilterEntityType, TransactionFilters, applyTransactionFilters, };
|
|
806
|
-
export { BillPaySetupViewState, ZeniAccountSetupViewState, BillPaySetupViewLocalData, ZeniAccountSetupViewLocalData, PlaidAccountState, fetchBillPaySetupView, fetchZeniAccountSetupView, enableSetup, getPaymentAccounts, getPlaidLinkToken, updateSelectedCompanyOfficer, updateSetupViewLocalStoreData, updateBusinessVerificationDetails, updatePaymentAccount, updatePaymentAccountLoginStatus, updatePaymentAccountStatus, establishPlaidConnection, updateMappedCashAccount, updatePrimaryFundingAccount, acceptBillPayTerms, acceptZeniAccountTerms, acceptBillPayUpdatedTerms, saveSetupViewDataInLocalStore, saveCompnayOfficerPhoneInLocalStore, saveCompnayOfficerAdditionalDocumentsInLocalStore, saveTreasuryAdditionalDocumentsInLocalStore, saveIndustryAndIncDateInLocalStore, clearSetupViewDataInLocalStore, clearBillPaySetupView, clearZeniAccountSetupView,
|
|
804
|
+
export { BillPaySetupViewState, ZeniAccountSetupViewState, BillPaySetupViewLocalData, ZeniAccountSetupViewLocalData, PlaidAccountState, fetchBillPaySetupView, fetchZeniAccountSetupView, enableSetup, getPaymentAccounts, getPlaidLinkToken, updateSelectedCompanyOfficer, updateSetupViewLocalStoreData, updateBusinessVerificationDetails, updatePaymentAccount, updatePaymentAccountLoginStatus, updatePaymentAccountStatus, establishPlaidConnection, updateMappedCashAccount, updatePrimaryFundingAccount, acceptBillPayTerms, acceptZeniAccountTerms, acceptBillPayUpdatedTerms, saveSetupViewDataInLocalStore, saveCompnayOfficerPhoneInLocalStore, saveCompnayOfficerAdditionalDocumentsInLocalStore, saveTreasuryAdditionalDocumentsInLocalStore, saveIndustryAndIncDateInLocalStore, clearSetupViewDataInLocalStore, clearBillPaySetupView, clearZeniAccountSetupView, sendOtp, resendOtp, verifyOtp, CompanyDetails, CompanyOfficersDetails, BillPaySetupView, ZeniAccountSetupView, BillPayBusinessVerificationDetails, ZeniAccountBusinessVerificationDetails, TreasuryBusinessVerificationDetails, SetupViewState, SetupViewLocalData, SetupView, BusinessVerificationDetails, getBillPaySetupViewDetails, getPlaidAccountDetails, getZeniAccountSetupViewDetails, getBusinessVerificationDetails, getBillPayBusinessVerificationDetails, getZeniAccountBusinessVerificationDetails, getTreasuryBusinessVerificationDetails, getCommonSetupViewDetails, PlaidConnectionDetails, PlaidLinkTokenType, PlaidAccountKeyType, Token, FundingAccount, getTwoFactorAuthenticationView, getTwoFactorAuthenticationViewForCardUserOnboarding, getTwoFactorAuthenticationViewForChargeCardHolder, TwoFactorAuthenticationView, };
|
|
807
805
|
export { BankConnectionsSetupView, IntegrationsView, getApprovalRuleViewDetails, getBankConnectionsSetupViewDetails, getIntegrationsView, };
|
|
808
806
|
export { fetchUserFinancialAccount };
|
|
809
807
|
export { getUserFinancialAccount, UserFinancialAccountSelectorView };
|
|
@@ -855,7 +853,7 @@ export { CountryWithCurrency };
|
|
|
855
853
|
export { fetchCompanyConfig };
|
|
856
854
|
export { getCompanyConfig };
|
|
857
855
|
export { isZeniClearingAccountReport, ZENI_CLEARING_ACCOUNT, isZeniClearingAccount, };
|
|
858
|
-
export { fetchOnboardingCustomerView, fetchOnboardingCustomerSetupView, getOnboardingPlaidLinkToken, establishOnboardingPlaidConnection, updateOnboardingCustomerViewAccountDetails, updateOnboardingCustomerViewCompleteStatus, updateOnboardingCustomerViewDashboardLoaded, updateOnboardingPaymentAccountLoginStatus, updateOnboardingPaymentAccountStatus, updateOnboardingCustomerView, updateOnboardingCustomerViewLocalStoreData, updateCurrentStep, updateOnboardingCustomerViewUIState, saveOnboardingCompnayOfficerPhoneInLocalStore, saveOnboardingCustomerViewDataInLocalStore, clearOnboardingCustomerView, clearOnboardingCustomerViewDataInLocalStore,
|
|
856
|
+
export { fetchOnboardingCustomerView, fetchOnboardingCustomerSetupView, getOnboardingPlaidLinkToken, establishOnboardingPlaidConnection, updateOnboardingCustomerViewAccountDetails, updateOnboardingCustomerViewCompleteStatus, updateOnboardingCustomerViewDashboardLoaded, updateOnboardingPaymentAccountLoginStatus, updateOnboardingPaymentAccountStatus, updateOnboardingCustomerView, updateOnboardingCustomerViewLocalStoreData, updateCurrentStep, updateOnboardingCustomerViewUIState, saveOnboardingCompnayOfficerPhoneInLocalStore, saveOnboardingCustomerViewDataInLocalStore, clearOnboardingCustomerView, clearOnboardingCustomerViewDataInLocalStore, getOnboardingCustomerView, getProductSettingsString, OnboardingCustomerView, OnboardingStep, OnboardingCustomerViewUIState, OnboardingCustomerViewLocalData, };
|
|
859
857
|
export { saveAccountMapping, saveAccountMappingLocalData, clearAccountMappingLocalData, AccountMappingLocalData, AccountMappingView, VendorAccountMappingView, getAccountMappingView, initializeAccountMappingView, ExpenseCategory1099Filing, };
|
|
860
858
|
export { MagicLinkView, getMagicLinkView, getMagicLinkBankAccountView, getMagicLinkCurrentAddressState, };
|
|
861
859
|
export { fetchMagicLinkTenant, fetchBillAttachment, saveBankAccount, updateMagicLinkBankAccountLocalStoreData, updateMagicLinkInternationalBankAccountLocalStoreData, fetchMagicLinkBankNameByRouting, fetchMagicLinkBankNameBySwift, saveMagicLinkAddressInLocalStore, };
|
|
@@ -939,5 +937,3 @@ export { UserGroup } from './entity/userGroups/userGroupsState';
|
|
|
939
937
|
export { SessionManager } from './entity/tenant/SessionManager';
|
|
940
938
|
export type { SessionCallbacks, SessionConfig, } from './entity/tenant/sessionTypes';
|
|
941
939
|
export { DEFAULT_SESSION_CONFIG } from './entity/tenant/sessionTypes';
|
|
942
|
-
export type { KybProvidedDocumentType, KycKybAutofillTarget, KycKybProvidedDocumentType, KycProvidedDocumentType, KycSelectDocumentType, } from './view/spendManagement/commonSetup/types/kycKybAutofill';
|
|
943
|
-
export { toKycProvidedDocumentType } from './view/spendManagement/commonSetup/types/kycKybAutofill';
|