@zeniai/client-epic-state 5.3.3-betaGS2 → 5.3.3-betaGS3
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/esm/index.js +2 -2
- package/lib/esm/view/settings/jeScheduleApprovalRules/epic/saveJEScheduleApprovalDraftEpic.js +16 -3
- package/lib/esm/view/settings/jeScheduleApprovalRules/jeScheduleSetupApproverViewPayload.js +6 -1
- package/lib/esm/view/settings/jeScheduleApprovalRules/jeScheduleSetupApproverViewReducer.js +12 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +28 -27
- package/lib/view/settings/jeScheduleApprovalRules/epic/saveJEScheduleApprovalDraftEpic.d.ts +7 -3
- package/lib/view/settings/jeScheduleApprovalRules/epic/saveJEScheduleApprovalDraftEpic.js +15 -2
- package/lib/view/settings/jeScheduleApprovalRules/jeScheduleSetupApproverViewPayload.d.ts +2 -0
- package/lib/view/settings/jeScheduleApprovalRules/jeScheduleSetupApproverViewPayload.js +6 -1
- package/lib/view/settings/jeScheduleApprovalRules/jeScheduleSetupApproverViewReducer.d.ts +5 -1
- package/lib/view/settings/jeScheduleApprovalRules/jeScheduleSetupApproverViewReducer.js +13 -2
- package/package.json +1 -1
package/lib/esm/index.js
CHANGED
|
@@ -306,7 +306,7 @@ import { fetchAccruedScheduleList, fetchDownloadSchedules, fetchScheduleList, fe
|
|
|
306
306
|
import { getAccruedScheduleListReport, getFetchStateForScheduleAccountList, getFetchStateForScheduleListByType, getScheduleListReport, } from './view/scheduleView/scheduleListView/scheduleListSelector';
|
|
307
307
|
import { toScheduleListTabsFileTypeStrict, toScheduleSubTabType, } from './view/scheduleView/scheduleListView/scheduleListTypes';
|
|
308
308
|
import { toJEScheduleApprovalRulesList, } from './view/settings/jeScheduleApprovalRules/jeScheduleSetupApproverViewPayload';
|
|
309
|
-
import { clearJEScheduleApprovalRuleSaveStatus, deleteJEScheduleApprovalRule, fetchJEScheduleApprovalRules, fetchJEScheduleApprovers, jeScheduleApprovalAction, reorderJEScheduleApprovalRules, saveJEScheduleApprovalDraft, saveJEScheduleApprovalRule, } from './view/settings/jeScheduleApprovalRules/jeScheduleSetupApproverViewReducer';
|
|
309
|
+
import { approveJEScheduleWithLocalEdits, clearJEScheduleApprovalRuleSaveStatus, deleteJEScheduleApprovalRule, fetchJEScheduleApprovalRules, fetchJEScheduleApprovers, jeScheduleApprovalAction, reorderJEScheduleApprovalRules, saveJEScheduleApprovalDraft, saveJEScheduleApprovalRule, } from './view/settings/jeScheduleApprovalRules/jeScheduleSetupApproverViewReducer';
|
|
310
310
|
import { getApprovalStartsAt, getOtherRules as getJEScheduleOtherRules, getOwnRuleCount as getJEScheduleOwnRuleCount, getOwnRules as getJEScheduleOwnRules, getJEScheduleSetupApproverView, } from './view/settings/jeScheduleApprovalRules/jeScheduleSetupApproverViewSelector';
|
|
311
311
|
import { isAccountingTabVisible, isApprovalRulesTabVisible, isBankConnectionsTabVisible, isBillingTabVisible, isBusinessVerificationTabVisible, isCompanyDetailsTabVisible, isIntegrationsTabVisible, isMonthEndNotificationsSectionVisibleOnSettingsPage, isMyBankConnectionsTabVisible, isNotificationsTabVisible, isPerformanceTabVisible, isRemindersSectionVisibleOnSettingsPage, isSettingsVisible, } from './view/settingsView/settingsViewHelpers';
|
|
312
312
|
import { clearSettingsView, fetchBankConnectionsView, fetchBillingAccountsView, fetchCompanyBillingAddress, fetchMyProfile, fetchMyProfileView, fetchNotificationSettings, fetchNotificationSettingsView, initializeMyProfileLocalData, refreshQBOData, resetNotificationSettingsLocalData, resetNotificationSettingsUpdateStatus, saveCompanyBillingAddress, saveNotificationSettings, updateMyProfile, updateMyProfileLocalData, updateNotificationSettingsLocalData, updateSettingsViewUIState, } from './view/settingsView/settingsViewReducer';
|
|
@@ -635,7 +635,7 @@ export { VERIFIED_PAYMENT_ACCOUNT_PROVIDER_VERIFICATION_STATUS, };
|
|
|
635
635
|
export { isSuccessResponse, isInvalidSessionError, isAccessDeniedError, };
|
|
636
636
|
export { getAmountCriteria, getApprovalRulesByEntityType, getDepartmentCriteria, getFallbackApprovalRule, getVendorCriteria, toAttributeTypeStrict, toAttributeOrRoleTypeStrict, toRoleTypeStrict, detectRuleOverlap, };
|
|
637
637
|
export { getBillPaySetupApproverView, getBillPaySetupApproverUpdateDataView, fetchBillPaySetupApproverView, fetchBillPayApproversDetails, fetchBillPayApproversList, deleteBillPayApprovalRule, reorderBillPayApprovalRules, saveBillPaySetupApproverViewUpdateData, saveBillPaySetupApproverViewUpdates, setBillsSetupApproverViewListeningToPusherEvent, initializeBillPaySetupApproverViewUpdateData, clearBillPaySetupApproverViewUpdateData, };
|
|
638
|
-
export { toJEScheduleApprovalAPIStatus, toJEScheduleApprovalInfo, toJEScheduleApprovalRulePayload, toJEScheduleApprovalRuleState, toJEScheduleApprover, toJEScheduleApproverRole, JE_APPROVAL_OWNERS, JE_APPROVAL_ROLE_SUB_TYPES, JE_APPROVAL_STEP_ACTIONS, JE_LEVEL_CONTROLLER, JE_LEVEL_LABELS, JE_LEVEL_PREPARER, JE_LEVEL_REVIEWER, JE_SCHEDULE_TYPES, JE_SCHEDULE_TYPE_LABELS, toJEApprovalOwner, toJEApprovalRoleSubType, toJEApprovalStepAction, toJEScheduleType, toJEScheduleTypeStrict, toJEScheduleApprovalRulesList, getJEScheduleSetupApproverView, getJEScheduleOwnRules, getJEScheduleOtherRules, getJEScheduleOwnRuleCount, getApprovalStartsAt, getScheduleApprovalInfo, fetchJEScheduleApprovalRules, fetchJEScheduleApprovers, saveJEScheduleApprovalRule, deleteJEScheduleApprovalRule, reorderJEScheduleApprovalRules, jeScheduleApprovalAction, saveJEScheduleApprovalDraft, clearJEScheduleApprovalRuleSaveStatus, };
|
|
638
|
+
export { toJEScheduleApprovalAPIStatus, toJEScheduleApprovalInfo, toJEScheduleApprovalRulePayload, toJEScheduleApprovalRuleState, toJEScheduleApprover, toJEScheduleApproverRole, JE_APPROVAL_OWNERS, JE_APPROVAL_ROLE_SUB_TYPES, JE_APPROVAL_STEP_ACTIONS, JE_LEVEL_CONTROLLER, JE_LEVEL_LABELS, JE_LEVEL_PREPARER, JE_LEVEL_REVIEWER, JE_SCHEDULE_TYPES, JE_SCHEDULE_TYPE_LABELS, toJEApprovalOwner, toJEApprovalRoleSubType, toJEApprovalStepAction, toJEScheduleType, toJEScheduleTypeStrict, toJEScheduleApprovalRulesList, getJEScheduleSetupApproverView, getJEScheduleOwnRules, getJEScheduleOtherRules, getJEScheduleOwnRuleCount, getApprovalStartsAt, getScheduleApprovalInfo, fetchJEScheduleApprovalRules, fetchJEScheduleApprovers, saveJEScheduleApprovalRule, deleteJEScheduleApprovalRule, reorderJEScheduleApprovalRules, jeScheduleApprovalAction, saveJEScheduleApprovalDraft, approveJEScheduleWithLocalEdits, clearJEScheduleApprovalRuleSaveStatus, };
|
|
639
639
|
export { getRemiSetupApproverView, getRemiSetupApproverUpdateDataView, fetchRemiSetupApproverView, fetchRemiApproversList, fetchRemiApproversDetails, deleteRemiApprovalRule, reorderRemiApprovalRules, saveRemiSetupApproverViewUpdateData, saveRemiSetupApproverViewUpdates, initializeRemiSetupApproverViewUpdateData, setRemiSetupApproverViewListeningToPusherEvent, clearRemiSetupApproverViewUpdateData, };
|
|
640
640
|
export { getRemiDetailView, checkApproveRejectBtnShowForRemi, };
|
|
641
641
|
export { saveRealTimeApproval, updateIsEditModeRealTimeApprovals, };
|
package/lib/esm/view/settings/jeScheduleApprovalRules/epic/saveJEScheduleApprovalDraftEpic.js
CHANGED
|
@@ -2,7 +2,7 @@ import { filter, map } from 'rxjs/operators';
|
|
|
2
2
|
import { createZeniAPIStatus } from '../../../../responsePayload';
|
|
3
3
|
import { prepareScheduleAccruedDetailPayload, } from '../../../scheduleView/scheduleAccruedDetailView/scheduleAccruedDetailPayload';
|
|
4
4
|
import { prepareScheduleDetailPayload, } from '../../../scheduleView/scheduleDetailView/scheduleDetailPayload';
|
|
5
|
-
import { jeScheduleApprovalAction, jeScheduleApprovalActionFailure, saveJEScheduleApprovalDraft, } from '../jeScheduleSetupApproverViewReducer';
|
|
5
|
+
import { approveJEScheduleWithLocalEdits, jeScheduleApprovalAction, jeScheduleApprovalActionFailure, saveJEScheduleApprovalDraft, } from '../jeScheduleSetupApproverViewReducer';
|
|
6
6
|
function buildDraftPayload(state, jeScheduleId, scheduleType, isAccrued) {
|
|
7
7
|
if (isAccrued) {
|
|
8
8
|
const key = state.scheduleAccruedDetailState.selectedJEAccruedScheduleKey;
|
|
@@ -17,10 +17,23 @@ function buildDraftPayload(state, jeScheduleId, scheduleType, isAccrued) {
|
|
|
17
17
|
? prepareScheduleDetailPayload(state, localData, key, scheduleType)
|
|
18
18
|
: undefined;
|
|
19
19
|
}
|
|
20
|
-
/**
|
|
21
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Builds the schedule body from the open schedule's local edits and reuses the approval-action call.
|
|
22
|
+
* Save Draft needs those edits; Approve sends them only as a fallback for a draft with nothing
|
|
23
|
+
* parked, so Approve still goes out when there are no local edits.
|
|
24
|
+
*/
|
|
25
|
+
export const saveJEScheduleApprovalDraftEpic = (actions$, state$) => actions$.pipe(filter((action) => saveJEScheduleApprovalDraft.match(action) ||
|
|
26
|
+
approveJEScheduleWithLocalEdits.match(action)), map((action) => {
|
|
22
27
|
const { jeScheduleId, scheduleType, isAccrued } = action.payload;
|
|
23
28
|
const payload = buildDraftPayload(state$.value, jeScheduleId, scheduleType, isAccrued);
|
|
29
|
+
if (approveJEScheduleWithLocalEdits.match(action)) {
|
|
30
|
+
return jeScheduleApprovalAction(jeScheduleId, payload != null
|
|
31
|
+
? {
|
|
32
|
+
action: 'approve',
|
|
33
|
+
scheduledJournalEntries: payload.scheduled_journal_entries,
|
|
34
|
+
}
|
|
35
|
+
: { action: 'approve' });
|
|
36
|
+
}
|
|
24
37
|
if (payload == null) {
|
|
25
38
|
return jeScheduleApprovalActionFailure(jeScheduleId, createZeniAPIStatus('Unexpected Error', 'No local schedule edits to save as draft'));
|
|
26
39
|
}
|
|
@@ -9,7 +9,12 @@ export const toJEScheduleApprovalRulesList = (payload) => ({
|
|
|
9
9
|
export const toJEScheduleApprovalActionRequestBody = (body) => {
|
|
10
10
|
switch (body.action) {
|
|
11
11
|
case 'approve':
|
|
12
|
-
return
|
|
12
|
+
return body.scheduledJournalEntries != null
|
|
13
|
+
? {
|
|
14
|
+
action: 'approve',
|
|
15
|
+
scheduled_journal_entries: body.scheduledJournalEntries,
|
|
16
|
+
}
|
|
17
|
+
: { action: 'approve' };
|
|
13
18
|
case 'reject':
|
|
14
19
|
return { action: 'reject', rejection_reason: body.rejectionReason };
|
|
15
20
|
case 'save_draft':
|
|
@@ -218,6 +218,17 @@ const jeScheduleSetupApproverView = createSlice({
|
|
|
218
218
|
return { payload: { jeScheduleId, scheduleType, isAccrued } };
|
|
219
219
|
},
|
|
220
220
|
},
|
|
221
|
+
approveJEScheduleWithLocalEdits: {
|
|
222
|
+
reducer(draft, action) {
|
|
223
|
+
draft.approvalActionStatusByScheduleId[action.payload.jeScheduleId] = {
|
|
224
|
+
fetchState: 'In-Progress',
|
|
225
|
+
error: undefined,
|
|
226
|
+
};
|
|
227
|
+
},
|
|
228
|
+
prepare(jeScheduleId, scheduleType, isAccrued) {
|
|
229
|
+
return { payload: { jeScheduleId, scheduleType, isAccrued } };
|
|
230
|
+
},
|
|
231
|
+
},
|
|
221
232
|
jeScheduleApprovalActionSuccess: {
|
|
222
233
|
reducer(draft, action) {
|
|
223
234
|
draft.approvalActionStatusByScheduleId[action.payload.jeScheduleId] = {
|
|
@@ -251,5 +262,5 @@ const jeScheduleSetupApproverView = createSlice({
|
|
|
251
262
|
});
|
|
252
263
|
},
|
|
253
264
|
});
|
|
254
|
-
export const { fetchJEScheduleApprovalRules, fetchJEScheduleApprovalRulesSuccess, fetchJEScheduleApprovalRulesFailure, fetchJEScheduleApprovers, fetchJEScheduleApproversSuccess, fetchJEScheduleApproversFailure, saveJEScheduleApprovalRule, saveJEScheduleApprovalRuleSuccess, saveJEScheduleApprovalRuleFailure, deleteJEScheduleApprovalRule, deleteJEScheduleApprovalRuleSuccess, deleteJEScheduleApprovalRuleFailure, reorderJEScheduleApprovalRules, reorderJEScheduleApprovalRulesSuccess, reorderJEScheduleApprovalRulesFailure, jeScheduleApprovalAction, saveJEScheduleApprovalDraft, jeScheduleApprovalActionSuccess, jeScheduleApprovalActionFailure, clearJEScheduleApprovalRuleSaveStatus, } = jeScheduleSetupApproverView.actions;
|
|
265
|
+
export const { fetchJEScheduleApprovalRules, fetchJEScheduleApprovalRulesSuccess, fetchJEScheduleApprovalRulesFailure, fetchJEScheduleApprovers, fetchJEScheduleApproversSuccess, fetchJEScheduleApproversFailure, saveJEScheduleApprovalRule, saveJEScheduleApprovalRuleSuccess, saveJEScheduleApprovalRuleFailure, deleteJEScheduleApprovalRule, deleteJEScheduleApprovalRuleSuccess, deleteJEScheduleApprovalRuleFailure, reorderJEScheduleApprovalRules, reorderJEScheduleApprovalRulesSuccess, reorderJEScheduleApprovalRulesFailure, jeScheduleApprovalAction, saveJEScheduleApprovalDraft, approveJEScheduleWithLocalEdits, jeScheduleApprovalActionSuccess, jeScheduleApprovalActionFailure, clearJEScheduleApprovalRuleSaveStatus, } = jeScheduleSetupApproverView.actions;
|
|
255
266
|
export default jeScheduleSetupApproverView.reducer;
|
package/lib/index.d.ts
CHANGED
|
@@ -475,7 +475,7 @@ import { ScheduleAccruedListReport, ScheduleListReport, getAccruedScheduleListRe
|
|
|
475
475
|
import { ScheduleListLocalData } from './view/scheduleView/scheduleListView/scheduleListState';
|
|
476
476
|
import { DownloadJEScheduleTabOptions, ScheduleListSortKey, ScheduleListTabsFileType, ScheduleSubTabType, toScheduleListTabsFileTypeStrict, toScheduleSubTabType } from './view/scheduleView/scheduleListView/scheduleListTypes';
|
|
477
477
|
import { JEScheduleApprovalActionBody, toJEScheduleApprovalRulesList } from './view/settings/jeScheduleApprovalRules/jeScheduleSetupApproverViewPayload';
|
|
478
|
-
import { clearJEScheduleApprovalRuleSaveStatus, deleteJEScheduleApprovalRule, fetchJEScheduleApprovalRules, fetchJEScheduleApprovers, jeScheduleApprovalAction, reorderJEScheduleApprovalRules, saveJEScheduleApprovalDraft, saveJEScheduleApprovalRule } from './view/settings/jeScheduleApprovalRules/jeScheduleSetupApproverViewReducer';
|
|
478
|
+
import { approveJEScheduleWithLocalEdits, clearJEScheduleApprovalRuleSaveStatus, deleteJEScheduleApprovalRule, fetchJEScheduleApprovalRules, fetchJEScheduleApprovers, jeScheduleApprovalAction, reorderJEScheduleApprovalRules, saveJEScheduleApprovalDraft, saveJEScheduleApprovalRule } from './view/settings/jeScheduleApprovalRules/jeScheduleSetupApproverViewReducer';
|
|
479
479
|
import { getApprovalStartsAt, getOtherRules as getJEScheduleOtherRules, getOwnRuleCount as getJEScheduleOwnRuleCount, getOwnRules as getJEScheduleOwnRules, getJEScheduleSetupApproverView } from './view/settings/jeScheduleApprovalRules/jeScheduleSetupApproverViewSelector';
|
|
480
480
|
import { JEScheduleApprovalStartsAt, JEScheduleSetupApproverView } from './view/settings/jeScheduleApprovalRules/jeScheduleSetupApproverViewSelectorTypes';
|
|
481
481
|
import { JEScheduleApprovalRulesList, JEScheduleSetupApproverViewState } from './view/settings/jeScheduleApprovalRules/jeScheduleSetupApproverViewState';
|
|
@@ -907,7 +907,7 @@ export { SubscriptionPaymentAccount };
|
|
|
907
907
|
export { PreviousBillsSelectorView, InvoiceProcessingPayload, InvoiceProcessingResponse, isSuccessResponse, isInvalidSessionError, isAccessDeniedError, };
|
|
908
908
|
export { Step, Actor as ApprovalRuleActor, ActorType, ApprovalActionType, StepOperatorType, ApprovalRuleState, ApprovalRule, AmountComparator, AmountCriteria, ConditionType, Criteria, DepartmentCriteria, VendorCriteria, AttributeType, Approvers, RoleType, EntityApprovalStatusState, EntityApprovalStatus, SpendManagementEntityType, SpendManagementEntityTypeWithOtherConnection, getAmountCriteria, getApprovalRulesByEntityType, getDepartmentCriteria, getFallbackApprovalRule, getVendorCriteria, toAttributeTypeStrict, toAttributeOrRoleTypeStrict, toRoleTypeStrict, DetectRuleOverlapInput, RuleForOverlapCheck, RuleOverlap, detectRuleOverlap, };
|
|
909
909
|
export { ApprovalRuleUpdateData, ApprovalRuleCreateData, BillPayApprovalRuleWithUser, ApprovalUpdateActionType, ApproverViewUpdateData, BillPaySetupApproverViewState, BillPaySetupApproverView, BillPaySetupApproverUpdateDataView, getBillPaySetupApproverView, getBillPaySetupApproverUpdateDataView, fetchBillPaySetupApproverView, fetchBillPayApproversDetails, fetchBillPayApproversList, deleteBillPayApprovalRule, reorderBillPayApprovalRules, saveBillPaySetupApproverViewUpdateData, saveBillPaySetupApproverViewUpdates, setBillsSetupApproverViewListeningToPusherEvent, initializeBillPaySetupApproverViewUpdateData, clearBillPaySetupApproverViewUpdateData, };
|
|
910
|
-
export { JEScheduleApprovalInfoPayload, JEScheduleApprovalRulePayload, JEScheduleApprovalRuleRequestBody, JEScheduleApprovalRuleSavePayload, JEScheduleApprovalRulesListPayload, JEScheduleApproverPayload, JEScheduleApproverRolePayload, JEScheduleApproversPayload, toJEScheduleApprovalAPIStatus, toJEScheduleApprovalInfo, toJEScheduleApprovalRulePayload, toJEScheduleApprovalRuleState, toJEScheduleApprover, toJEScheduleApproverRole, JEScheduleApprovalAPIStatus, JEScheduleApprovalCriteria, JEScheduleApprovalInfo, JEScheduleApprovalNonUserActor, JEScheduleApprovalRule, JEScheduleApprovalRuleFormData, JEScheduleApprovalRuleState, JEScheduleApprovalStep, JEScheduleApprovalStepState, JEScheduleApprover, JEScheduleApproverRole, JEApprovalAction, JEApprovalErrorKind, JEApprovalOwner, JEApprovalRoleSubType, JEApprovalStepAction, JEScheduleType, JE_APPROVAL_OWNERS, JE_APPROVAL_ROLE_SUB_TYPES, JE_APPROVAL_STEP_ACTIONS, JE_LEVEL_CONTROLLER, JE_LEVEL_LABELS, JE_LEVEL_PREPARER, JE_LEVEL_REVIEWER, JE_SCHEDULE_TYPES, JE_SCHEDULE_TYPE_LABELS, toJEApprovalOwner, toJEApprovalRoleSubType, toJEApprovalStepAction, toJEScheduleType, toJEScheduleTypeStrict, JEScheduleApprovalActionBody, toJEScheduleApprovalRulesList, JEScheduleApprovalRulesList, JEScheduleSetupApproverViewState, JEScheduleApprovalStartsAt, JEScheduleSetupApproverView, getJEScheduleSetupApproverView, getJEScheduleOwnRules, getJEScheduleOtherRules, getJEScheduleOwnRuleCount, getApprovalStartsAt, getScheduleApprovalInfo, fetchJEScheduleApprovalRules, fetchJEScheduleApprovers, saveJEScheduleApprovalRule, deleteJEScheduleApprovalRule, reorderJEScheduleApprovalRules, jeScheduleApprovalAction, saveJEScheduleApprovalDraft, clearJEScheduleApprovalRuleSaveStatus, };
|
|
910
|
+
export { JEScheduleApprovalInfoPayload, JEScheduleApprovalRulePayload, JEScheduleApprovalRuleRequestBody, JEScheduleApprovalRuleSavePayload, JEScheduleApprovalRulesListPayload, JEScheduleApproverPayload, JEScheduleApproverRolePayload, JEScheduleApproversPayload, toJEScheduleApprovalAPIStatus, toJEScheduleApprovalInfo, toJEScheduleApprovalRulePayload, toJEScheduleApprovalRuleState, toJEScheduleApprover, toJEScheduleApproverRole, JEScheduleApprovalAPIStatus, JEScheduleApprovalCriteria, JEScheduleApprovalInfo, JEScheduleApprovalNonUserActor, JEScheduleApprovalRule, JEScheduleApprovalRuleFormData, JEScheduleApprovalRuleState, JEScheduleApprovalStep, JEScheduleApprovalStepState, JEScheduleApprover, JEScheduleApproverRole, JEApprovalAction, JEApprovalErrorKind, JEApprovalOwner, JEApprovalRoleSubType, JEApprovalStepAction, JEScheduleType, JE_APPROVAL_OWNERS, JE_APPROVAL_ROLE_SUB_TYPES, JE_APPROVAL_STEP_ACTIONS, JE_LEVEL_CONTROLLER, JE_LEVEL_LABELS, JE_LEVEL_PREPARER, JE_LEVEL_REVIEWER, JE_SCHEDULE_TYPES, JE_SCHEDULE_TYPE_LABELS, toJEApprovalOwner, toJEApprovalRoleSubType, toJEApprovalStepAction, toJEScheduleType, toJEScheduleTypeStrict, JEScheduleApprovalActionBody, toJEScheduleApprovalRulesList, JEScheduleApprovalRulesList, JEScheduleSetupApproverViewState, JEScheduleApprovalStartsAt, JEScheduleSetupApproverView, getJEScheduleSetupApproverView, getJEScheduleOwnRules, getJEScheduleOtherRules, getJEScheduleOwnRuleCount, getApprovalStartsAt, getScheduleApprovalInfo, fetchJEScheduleApprovalRules, fetchJEScheduleApprovers, saveJEScheduleApprovalRule, deleteJEScheduleApprovalRule, reorderJEScheduleApprovalRules, jeScheduleApprovalAction, saveJEScheduleApprovalDraft, approveJEScheduleWithLocalEdits, clearJEScheduleApprovalRuleSaveStatus, };
|
|
911
911
|
export { RemiApprovalRuleWithUser, RemiSetupApproverViewState, RemiSetupApproverView, RemiSetupApproverUpdateDataView, getRemiSetupApproverView, getRemiSetupApproverUpdateDataView, fetchRemiSetupApproverView, fetchRemiApproversList, fetchRemiApproversDetails, deleteRemiApprovalRule, reorderRemiApprovalRules, saveRemiSetupApproverViewUpdateData, saveRemiSetupApproverViewUpdates, initializeRemiSetupApproverViewUpdateData, setRemiSetupApproverViewListeningToPusherEvent, clearRemiSetupApproverViewUpdateData, };
|
|
912
912
|
export { RemiDetailViewSelector, getRemiDetailView, RemiActivity, RemiDetails, checkApproveRejectBtnShowForRemi, };
|
|
913
913
|
export { RemiApprovalType, RemiDetailView, DuplicateLine };
|
package/lib/index.js
CHANGED
|
@@ -61,33 +61,33 @@ exports.fetchVendorByNameAndParseInvoice = exports.updateBillDetailSaveBillCode
|
|
|
61
61
|
exports.fetchZeniAccountSetupView = exports.fetchBillPaySetupView = exports.applyTransactionFilters = exports.TRANSACTION_FILTER_CATEGORIES = exports.hideCreatedByFilter = exports.updateShouldReplaceBillData = exports.replaceBillFileInLocalStore = exports.removeBillFileFromLocalStore = exports.updateWithdrawFromAccountId = exports.markBillForRetry = exports.fetchVendorAndUpdateBillLocalData = exports.convertAmountToHomeCurrency = exports.toPaymentToOption = exports.updateVendorContact = exports.verifyUser = exports.fetchUserDetails = exports.updateBillListSearchResult = exports.updateBillUploadFetchState = exports.updateContactsInVendorTabDetailLocalData = exports.updateVendorTabDetailUIState = exports.updateContactsInVendorDetailLocalData = exports.resetVendorSaveStatus = exports.resetVendorDetailLocalData = exports.updateVendorDetailLocalData = exports.BILL_PAY_FILTER_CATEGORIES = exports.updateBillListUIState = exports.saveVendorSuccessOrFailure = exports.updateShowAutofill = exports.fetchBillAndInitializeLocalStore = exports.getReviewPageBillDetail = exports.getEditBillDetail = exports.clearBillPayReview = exports.fetchDuplicateBill = exports.fetchAndUpdateVendorRecommendations = exports.fetchEditBillDetailPage = exports.fetchBillRecommendations = exports.fetchBillDetail = exports.getBillTransactionDetailKey = exports.checkApproveRejectBtnShowForBill = exports.getBillDetailView = exports.getBillDownloadList = exports.getBillList = exports.retryOrRefundBill = exports.cancelAndDeleteBill = exports.deleteBill = exports.updateApprovalStatusOnSuccess = exports.approveOrRejectBill = exports.saveBillDetail = exports.discardBillUpdatesInLocalStore = exports.saveBillUpdatesToLocalStore = void 0;
|
|
62
62
|
exports.updateMileageDetails = exports.fetchRemiSetupView = exports.getUserFinancialAccount = exports.fetchUserFinancialAccount = exports.getIntegrationsView = exports.getBankConnectionsSetupViewDetails = exports.getApprovalRuleViewDetails = exports.getTwoFactorAuthenticationViewForChargeCardHolder = exports.getTwoFactorAuthenticationViewForCardUserOnboarding = exports.getTwoFactorAuthenticationView = exports.getCommonSetupViewDetails = exports.getTreasuryBusinessVerificationDetails = exports.getZeniAccountBusinessVerificationDetails = exports.getBillPayBusinessVerificationDetails = exports.getBusinessVerificationDetails = exports.getZeniAccountSetupViewDetails = exports.getPlaidPaymentAccounts = exports.getPlaidAccountDetails = exports.getBillPaySetupViewDetails = exports.verifyOtp = exports.resendOtp = exports.sendOtp = exports.parseUploadedKybDocument = exports.parseUploadedKycDocument = exports.clearKycKybAutofillForSetup = exports.applyKybDocumentAutofillForSetup = exports.applyKycDocumentAutofillForSetup = exports.clearSetupViewDataInLocalStore = exports.saveIndustryAndIncDateInLocalStore = exports.saveTreasuryAdditionalDocumentsInLocalStore = exports.saveCompnayOfficerAdditionalDocumentsInLocalStore = exports.saveCompnayOfficerPhoneInLocalStore = exports.saveSetupViewDataInLocalStore = exports.acceptBillPayUpdatedTerms = exports.acceptZeniAccountTerms = exports.acceptBillPayTerms = exports.updatePrimaryFundingAccount = exports.updateMappedCashAccount = exports.establishPlaidConnection = exports.updatePaymentAccountStatus = exports.updatePaymentAccountLoginStatus = exports.updatePaymentAccount = exports.resetKycKyb = exports.clearKycKybResetStatus = exports.updateBusinessVerificationDetails = exports.updateSetupViewLocalStoreData = exports.updateSelectedCompanyOfficer = exports.getPlaidLinkToken = exports.getPaymentAccounts = exports.enableSetup = void 0;
|
|
63
63
|
exports.toJEScheduleTypeStrict = exports.toJEScheduleType = exports.toJEApprovalStepAction = exports.toJEApprovalRoleSubType = exports.toJEApprovalOwner = exports.JE_SCHEDULE_TYPE_LABELS = exports.JE_SCHEDULE_TYPES = exports.JE_LEVEL_REVIEWER = exports.JE_LEVEL_PREPARER = exports.JE_LEVEL_LABELS = exports.JE_LEVEL_CONTROLLER = exports.JE_APPROVAL_STEP_ACTIONS = exports.JE_APPROVAL_ROLE_SUB_TYPES = exports.JE_APPROVAL_OWNERS = exports.toJEScheduleApproverRole = exports.toJEScheduleApprover = exports.toJEScheduleApprovalRuleState = exports.toJEScheduleApprovalRulePayload = exports.toJEScheduleApprovalInfo = exports.toJEScheduleApprovalAPIStatus = exports.clearBillPaySetupApproverViewUpdateData = exports.initializeBillPaySetupApproverViewUpdateData = exports.setBillsSetupApproverViewListeningToPusherEvent = exports.saveBillPaySetupApproverViewUpdates = exports.saveBillPaySetupApproverViewUpdateData = exports.reorderBillPayApprovalRules = exports.deleteBillPayApprovalRule = exports.fetchBillPayApproversList = exports.fetchBillPayApproversDetails = exports.fetchBillPaySetupApproverView = exports.getBillPaySetupApproverUpdateDataView = exports.getBillPaySetupApproverView = exports.detectRuleOverlap = exports.toRoleTypeStrict = exports.toAttributeOrRoleTypeStrict = exports.toAttributeTypeStrict = exports.getVendorCriteria = exports.getFallbackApprovalRule = exports.getDepartmentCriteria = exports.getApprovalRulesByEntityType = exports.getAmountCriteria = exports.isAccessDeniedError = exports.isInvalidSessionError = exports.isSuccessResponse = exports.VERIFIED_PAYMENT_ACCOUNT_PROVIDER_VERIFICATION_STATUS = exports.getRemiBusinessVerificationDetails = exports.getRemiSetupViewDetails = exports.acceptEmployeeRemiTerms = exports.acceptRemiTerms = exports.saveRemiSetupViewDataInLocalStore = void 0;
|
|
64
|
-
exports.
|
|
65
|
-
exports.
|
|
66
|
-
exports.
|
|
67
|
-
exports.
|
|
68
|
-
exports.
|
|
69
|
-
exports.
|
|
70
|
-
exports.
|
|
71
|
-
exports.
|
|
72
|
-
exports.
|
|
73
|
-
exports.
|
|
74
|
-
exports.
|
|
75
|
-
exports.
|
|
76
|
-
exports.
|
|
77
|
-
exports.
|
|
78
|
-
exports.
|
|
79
|
-
exports.
|
|
80
|
-
exports.
|
|
81
|
-
exports.
|
|
82
|
-
exports.
|
|
83
|
-
exports.
|
|
84
|
-
exports.
|
|
85
|
-
exports.
|
|
86
|
-
exports.
|
|
87
|
-
exports.
|
|
88
|
-
exports.
|
|
89
|
-
exports.
|
|
90
|
-
exports.isPendingReviewAccrual = exports.isManuallyReversedAccrual = exports.isAutoReversedAccrual = exports.getExpenseAutomationActualMatchingView = exports.getExpenseAutomationActualMatchingMatchView = exports.parseActualMatchingMatchId = exports.getCloseMatchAfterUndoMatchId = exports.getCloseMatchAfterUndo = exports.getCloseMatchAfterIgnoreMatchId = exports.getActualMatchingMatchModalConfirmStatus = void 0;
|
|
64
|
+
exports.saveRemiDetail = exports.removeFileFromRemiUpdatesInLocalStore = exports.discardRemiUpdatesInLocalStore = exports.fetchCurrencyConversionValue = exports.saveRemiUpdatesToLocalStore = exports.initializeRemiToLocalStore = exports.fetchRemiAndInitializeLocalStore = exports.fetchRecommendationsAndUpdateMerchantRecommendations = exports.fetchEditRemiDetailPage = exports.getEditRemiDetail = exports.removeDuplicateReimbursementByLineId = exports.clearDuplicateReimbursementDetail = exports.fetchDuplicateReimbursement = exports.clearRemiDetailView = exports.approveOrRejectRemi = exports.cancelAndDeleteRemi = exports.fetchRemiDetail = exports.deleteRemi = exports.updateIsEditModeRealTimeApprovals = exports.saveRealTimeApproval = exports.checkApproveRejectBtnShowForRemi = exports.getRemiDetailView = exports.clearRemiSetupApproverViewUpdateData = exports.setRemiSetupApproverViewListeningToPusherEvent = exports.initializeRemiSetupApproverViewUpdateData = exports.saveRemiSetupApproverViewUpdates = exports.saveRemiSetupApproverViewUpdateData = exports.reorderRemiApprovalRules = exports.deleteRemiApprovalRule = exports.fetchRemiApproversDetails = exports.fetchRemiApproversList = exports.fetchRemiSetupApproverView = exports.getRemiSetupApproverUpdateDataView = exports.getRemiSetupApproverView = exports.clearJEScheduleApprovalRuleSaveStatus = exports.approveJEScheduleWithLocalEdits = exports.saveJEScheduleApprovalDraft = exports.jeScheduleApprovalAction = exports.reorderJEScheduleApprovalRules = exports.deleteJEScheduleApprovalRule = exports.saveJEScheduleApprovalRule = exports.fetchJEScheduleApprovers = exports.fetchJEScheduleApprovalRules = exports.getScheduleApprovalInfo = exports.getApprovalStartsAt = exports.getJEScheduleOwnRuleCount = exports.getJEScheduleOtherRules = exports.getJEScheduleOwnRules = exports.getJEScheduleSetupApproverView = exports.toJEScheduleApprovalRulesList = void 0;
|
|
65
|
+
exports.retryBankAccountConnectionForOnboarding = exports.sendOnboardingCustomerViewInvite = exports.resetNewOnboardedCustomerId = exports.updateOnboardingCustomerDataInLocalStore = exports.saveOnboardingCustomerDataInLocalStore = exports.saveOnboardingCustomerNotes = exports.saveOnboardingCustomerViewUpdates = exports.updateStatusAfterOnboardingCompleted = exports.updateCustomerCreationStatus = exports.updateOnboardingCustomerListUIState = exports.saveOnboardingCustomerViewUpdateData = exports.clearOnboardingCustomerViewUpdateData = exports.initializeOnboardingCustomerViewUpdateData = exports.getOnboardingEmailGroup = exports.getNewOnboardingCustomerView = exports.getOnboardingCockpitView = exports.toProductTypeStrict = exports.toProductType = exports.saveOnboardingCustomerCompletedStatus = exports.fetchOnboardingCompletedCompanies = exports.updateQBOConnectionPoolExternalConnection = exports.fetchQBOConnectionPool = exports.fetchCompanyOnboardingView = exports.PAYMENT_BUSINESS_DAYS = exports.holidaysFormatted = exports.isHoliday = exports.getYearsList = exports.filterDays = exports.isHolidayToday = exports.getPreviousNthWorkingDay = exports.getNextTransferDate = exports.getNextNthWorkingDay = exports.toFileTypeStrict = exports.ALL_FILE_TYPES = exports.isAllFetchCompleted = exports.isAnyFetchInProgress = exports.reduceAnyCompletedFetchState = exports.reduceAllFetchState = exports.reduceAnyFetchState = exports.reduceFetchStateParallelTimeframes = exports.reduceFetchState = exports.clearAddRemiAutoFields = exports.updateHomeCurrencyConversion = exports.updateReimbursementType = exports.clearTentativeMerchantName = exports.updateTentativeMerchantNames = exports.updateUploadFetchState = exports.updateAddRemiAutoFields = exports.parseReceiptsToRemi = exports.saveRemiSuccessOrFailure = void 0;
|
|
66
|
+
exports.fetchRecommendationByEntityId = exports.fetchEntityRecommendationsForLineUpdate = exports.fetchEntityRecommendationsByTransactionId = exports.fetchVendorsFiling1099Download = exports.getVendorFiling1099List = exports.toVendorReportIDType = exports.isVendorsTabVisible = exports.isColumnYTDSpend = exports.updateYTDSelectionUIState = exports.updatePageToken = exports.updateSortUiState = exports.getVendorList = exports.LOCAL_CURRENCY_INTERNATIONAL_METHOD_SUBTEXT = exports.SWIFT_OUR_INTERNATIONAL_METHOD_SUBTEXT = exports.NEW_INTERNATIONAL_METHOD_SUBTEXT = exports.BILL_NEW_PAYMENT_METHODS = exports.getInternationalSubConfigCodeKey = exports.shouldEnableCalendarPickerForLastReportSent = exports.canSendMonthEndEmailReport = exports.checkIfLowBalance = exports.isAwaitingMarkAsPaid = exports.isPaymentMethodOutsideZeni = exports.toSameDayAchDisablementConfig = exports.toAccountsPromoConfig = exports.getBulkOperationSuffix = exports.getRemiListUniqueType = exports.getBillListUniqueType = exports.isBulkProcessing = exports.isVerifiedPaymentAccountProviderStatusCode = exports.isVerifiedStatusCode = exports.getActualPaymentDate = exports.showReimbursementPromoPage = exports.showBillPayPromoPage = exports.getSelectedCompanyOfficer = exports.getSpendManagementEffectiveListPeriod = exports.getSnackbar = exports.closeSnackbar = exports.openSnackbar = exports.toJournalEntrySortKey = exports.sumJournalEntryAmounts = exports.sortJournalEntryLines = exports.journalEntrySplitReconciliation = exports.journalEntryTotalsByPostingSide = exports.journalEntryDefaultSortConfig = exports.filterJournalEntryLinesExcludingLinked = exports.JOURNAL_ENTRY_SORT_KEYS = exports.isAccountUncategorized = exports.getChangedLineItemCountFromLocalData = exports.getTransactionListUIStateByCategoryType = exports.getTransactionsListByCategoryType = void 0;
|
|
67
|
+
exports.getOnboardingPlaidLinkToken = exports.fetchOnboardingCustomerSetupView = exports.fetchOnboardingCustomerView = exports.isZeniClearingAccount = exports.ZENI_CLEARING_ACCOUNT = exports.isZeniClearingAccountReport = exports.getCompanyConfig = exports.fetchCompanyConfig = exports.clearTransactionVendorSaveStatus = exports.resetTransactionVendorLocalData = exports.updateTransactionVendorLocalData = exports.saveTransactionVendorSuccessOrFailure = exports.saveTransactionVendor = exports.getTransactionVendorView = exports.getDepositAccountTransactionList = exports.fetchDepositAccountTransactionList = exports.getZeniAccStatements = exports.fetchZeniAccStatementPage = exports.fetchDepositAccountHistoryFailure = exports.fetchDepositAccountHistorySuccess = exports.updateDepositAccount = exports.getCheckDepositDetail = exports.clearCheckDeposit = exports.updateCheckDepositLocalData = exports.depositCheck = exports.fetchDepositAccountDetail = exports.fetchReviewTransferDetail = exports.clearReviewTransferDetail = exports.clearTransferDetail = exports.getTransferDetail = exports.transferMoney = exports.updateDepositToLocalData = exports.updateTransferToLocalData = exports.updateTransferMoneyLocalData = exports.fetchZeniAccountsConfig = exports.fetchDepositAccount = exports.getDepositAccountDetailForPDF = exports.getAllDepositAccounts = exports.getDepositAccountDetail = exports.unlinkPaymentAccount = exports.fetchPaymentAccountList = exports.createCheckingAccount = exports.fetchAccountList = exports.fetchZeniAccountList = exports.getZeniAccountList = exports.getZeniAccountsConfigDetail = exports.fetchOwnerList = exports.submitRecommendationFeedback = exports.getRecommendationFeedbackSubmitState = exports.fetchRecommendationByEntityName = void 0;
|
|
68
|
+
exports.getInternationalWireView = exports.fetchWiseRedirectStatus = exports.getWiseRedirect = exports.saveMagicLinkAddressInLocalStore = exports.fetchMagicLinkBankNameBySwift = exports.fetchMagicLinkBankNameByRouting = exports.updateMagicLinkInternationalBankAccountLocalStoreData = exports.updateMagicLinkBankAccountLocalStoreData = exports.saveBankAccount = exports.fetchBillAttachment = exports.fetchMagicLinkTenant = exports.getMagicLinkCurrentAddressState = exports.getMagicLinkBankAccountView = exports.getMagicLinkView = exports.initializeAccountMappingView = exports.getAccountMappingView = exports.clearAccountMappingLocalData = exports.saveAccountMappingLocalData = exports.saveAccountMapping = exports.toOnboardingSubStepType = exports.toOnboardingStepType = exports.ALL_ONBOARDING_SUB_STEPS = exports.ALL_ONBOARDING_STEPS = exports.getProductSettingsString = exports.getOnboardingCustomerView = exports.getAiAgentsActivationSubview = exports.getAiAgentsActivationPhases = exports.getAiAgentsActivationCounts = exports.aiAgentsActivationPhaseChanged = exports.aiAgentsActivationCountsUpdated = exports.fetchAiAgentsActivationStatus = exports.acknowledgeOnboardingAiFinanceTeam = exports.acknowledgeOnboardingAiActivationViewed = exports.clearKycKybAutofillForOnboarding = exports.applyKybDocumentAutofillForOnboarding = exports.applyKycDocumentAutofillForOnboarding = exports.clearOnboardingCustomerViewDataInLocalStore = exports.saveOnboardingCustomerViewDataInLocalStore = exports.saveOnboardingCompnayOfficerPhoneInLocalStore = exports.updateOnboardingCustomerViewUIState = exports.updateCurrentSubStep = exports.updateCurrentStep = exports.updateOnboardingCustomerViewLocalStoreData = exports.updateOnboardingCustomerView = exports.updateOnboardingPaymentAccountStatus = exports.updateOnboardingPaymentAccountLoginStatus = exports.updateOnboardingCustomerViewDashboardLoaded = exports.updateOnboardingCustomerViewCompleteStatus = exports.updateOnboardingCustomerViewAccountDetails = exports.establishOnboardingPlaidConnection = void 0;
|
|
69
|
+
exports.initiateChargeCardRepayment = exports.fetchChargeCardRepaymentDetail = exports.clearChargeCardRepaymentDetail = exports.getMyRequestOnHoldChargeCardListWithShippingAddress = exports.getMyPendingActivationChargeCardListView = exports.getChargeCardListView = exports.getAllChargeCardsWithUser = exports.fetchCreditAccountRepayment = exports.fetchCreditAccount = exports.fetchChargeCardConfig = exports.fetchChargeCardListPage = exports.fetchChargeCardList = exports.fetchDebitCardSummary = exports.getChargeCardBusinessVerificationDetails = exports.companyHealthMetricDropDownOptions = exports.hasCompanyHealthMetricFormFieldChanged = exports.getCompanyHealthMetricView = exports.isCompanyRunwayInfinite = exports.attachmentFilePathToAttachment = exports.addDeclinedChargeCardTransactionFromPusher = exports.addChargeCardTransactionFromPusher = exports.updateCreditAccountBalanceFromPusher = exports.updateChargeCardTransactionReceiptFromPusher = exports.updateChargeCardTransactionFromPusher = exports.updateChargeCardTransactionStatusFromPusher = exports.updateChargeCardSpendingFromPusher = exports.updateChargeCardStatusFromPusher = exports.updateChargeCardTransactionAttachments = exports.updateCompanyHealthViewUIState = exports.updateCompanyHealthMetricViewSuccessStatus = exports.updateCompanyHealthMetricViewErrorStatus = exports.updateCompanyHealthMetricLocalStore = exports.saveCompanyHealthMetricById = exports.removeSelectedCompanyId = exports.initializeCompanyHealthMetricViewLocalData = exports.fetchCompanyHealthMetricView = exports.updateCompanyHealth = exports.updateCompaniesHealth = exports.fetchCompanyHealthMetricConfig = exports.getCompanyHealthMetricConfig = exports.getUserRoleConfig = exports.fetchUserRoleConfig = exports.clearInternationalWire = exports.deletePaymentInstrument = exports.createPaymentInstrumentUpdateStatus = exports.createPaymentInstrument = exports.fetchInternationalWireDynamicForm = exports.initializeDynamicForm = exports.updateInternationalWireLocalStoreData = exports.initializeInternationalWireLocalData = void 0;
|
|
70
|
+
exports.getChargeCardSetupViewDetails = exports.applyAiCardCreationFormDraftUpdate = exports.deriveAiCardRowsFromTeams = exports.buildAiCardCreationFormDraftSeed = exports.toIssueChargeCardLocalDataFromDraft = exports.selectIssueChargeCardLocalDataFromDraft = exports.getAiCardCreationFormDraft = exports.updateAiCardCreationFormDraft = exports.seedAiCardCreationFormDraft = exports.clearAiCardCreationFormDraft = exports.getLastIssuedChargeCardIds = exports.getLastIssueChargeCardsSourceChatSessionId = exports.getIssueChargeCardsSaveStatus = exports.getIssueChargeCardView = exports.getInFlightIssueChargeCardsCount = exports.getDepositAccountListWithDebitCardIssued = exports.toCreditLimitFrequencyCodeType = exports.getZeniDateFromPeriod = exports.getCashbackDetail = exports.toChargeCardSortKeyType = exports.fetchCashbackDetail = exports.fetchChargeCardTransactionList = exports.getChargeCardCVVActivateView = exports.getChargeCardBulkActionView = exports.getChargeCardRowActionView = exports.getChargeCardRecurringExpensesView = exports.getChargeCardRecurringExpensesByCardIds = exports.getDebitCardSetPinView = exports.getChargeCardTransactionAttachmentView = exports.getDepositAccountLimitFetchStateByDepositAccountId = exports.getChargeCardControlDetailView = exports.getChargeCardDetailView = exports.fetchDepositAccountLimit = exports.fetchChargeCardTransactionStatistics = exports.fetchChargeCardDetail = exports.fetchChargeCardDetailPage = exports.getCreditAccountDetails = exports.PAYMENT_HISTORY_FILTER_CATEGORIES = exports.getPaymentStatusDisplayText = exports.getPaymentHistorySourceAccountName = exports.getChargeCardPaymentHistoryView = exports.getChargeCardPaymentHistoryDownloadReport = exports.updatePaymentHistoryUIState = exports.updatePaymentHistorySearchText = exports.updatePaymentHistoryFilters = exports.updatePaymentHistoryDownloadUIState = exports.fetchChargeCardPaymentHistory = exports.fetchChargeCardPaymentPage = exports.getChargeCardRepaymentDetail = exports.updateChargeCardRepaymentLocalStore = void 0;
|
|
71
|
+
exports.unlockChargeCards = exports.lockChargeCards = exports.revokeChargeCardsInvite = exports.updateRowActionCardId = exports.revokeCardInvite = exports.resendCardInvite = exports.updateChargeCardSpendLimitSuccessOrFailure = exports.updateChargeCardSpendLimit = exports.startCVVActivationWait = exports.completeCVVActivationWait = exports.fetchChargeCardTransactionAttachments = exports.updateChargeCardTransactionIsViewReceiptClicked = exports.updateChargeCardTransactionReceiptsShowTickFetchStatus = exports.updateDebitCardPinAttempt = exports.startDebitCardSetPinWait = exports.completeDebitCardSetPinWait = exports.updateChargeCardTransactionUploadReceiptsFetchStatus = exports.saveCardOnboardingUserDetails = exports.updateCardUserOnboardingLocalData = exports.initializeCardUserOnboardingLocalData = exports.getCardUserOnboardingView = exports.updateChargeCardName = exports.closeChargeCard = exports.unlockChargeCard = exports.lockChargeCard = exports.updatePhysicalChargeCardAttempt = exports.updateChargeCardDetail = exports.updateCashbackDetailUIState = exports.updateChargeCardListUIState = exports.updateChargeCardListSearchText = exports.updateBulkActionCardIds = exports.resetIssueChargeCardForm = exports.updateLastIssuedCardIds = exports.updateChargeCardsLocalStore = exports.updateCustomAddressId = exports.getDebitCardSummary = exports.getDebitCardList = exports.fetchDepositAccountListForCards = exports.fetchIssueCardPage = exports.issueChargeCards = exports.toCardType = exports.toShippingAddressType = exports.toCardAddressType = exports.getDepositAccountLimitForChargeCardByDepositAccountId = exports.expressInterestInChargeCard = exports.acceptChargeCardTerms = exports.enableChargeCardAutoPay = exports.fetchChargeCardSetupView = exports.getChargeCardStatements = exports.fetchChargeCardStatementList = void 0;
|
|
72
|
+
exports.fetchExpenseAutomationActualMatching = exports.clearMatchNewModal = exports.closeMatchNewModal = exports.clearExpenseAutomationActualMatchingView = exports.ackCloseMatchAfterUndo = exports.ackCloseMatchAfterIgnore = exports.updateJeScheduleTransactionKeys = exports.updateJeScheduleLocalDataById = exports.updateJeOneTimeAccrualLocalData = exports.removeJeOneTimeAccrualLocalData = exports.updateJeNewScheduleLocalData = exports.updateExpenseAutomationJESchedulesUIState = exports.searchJeTransactionsForNewScheduleSuccess = exports.searchJeTransactionsForNewScheduleFailure = exports.searchJeTransactionsForNewSchedule = exports.saveJeNewScheduleSuccess = exports.saveJeNewScheduleFailure = exports.saveJeNewSchedule = exports.retryExpenseAutomationJESchedule = exports.resetJeNewScheduleLocalData = exports.removeJeScheduleTransactionKey = exports.initializeJeScheduleLocalData = exports.initializeJeNewSchedule = exports.initializeJeAccountSettingsView = exports.ignoreExpenseAutomationJESchedule = exports.fetchExpenseAutomationJESchedulesPage = exports.clearJeSearchTransactionsForNewSchedule = exports.clearExpenseAutomationJESchedulesView = exports.clearExpenseAutomationJEScheduleLocalData = exports.updateApAgingDetailUIState = exports.getApAgingDetailForVendor = exports.fetchApAgingDetail = exports.updateApAgingUIState = exports.getApAgingReport = exports.fetchApAging = exports.aggregatedReportView = exports.fetchAggregatedReport = exports.toTimeSeriesDuration = exports.convertToTimeSeriesSelectionRange = exports.TIME_SERIES_DURATIONS = exports.anyCardOnHold = exports.getChargeCardById = exports.setCurrentDisplayedCardId = exports.setFirstViewCompleteAfterActivation = exports.setFirstViewAfterActivation = exports.completeCardUserOnboardingActivationWait = exports.startCardUserOnboardingActivationWait = exports.fetchChargeCardsRecurringExpenses = exports.updateChargeCardsSpendLimit = exports.closeChargeCards = void 0;
|
|
73
|
+
exports.fetchScheduleDetails = exports.updateSelectedJEScheduleKey = exports.updateScheduleListSortState = exports.updateScheduleListScrollState = exports.updateScheduleListSearchText = exports.updateScheduleListSubTab = exports.toScheduleSubTabType = exports.toScheduleListTabsFileTypeStrict = exports.toScheduleTypesTypeStrict = exports.toScheduleTypesType = exports.getFetchStateForScheduleAccountList = exports.updateScheduleListLocalData = exports.fetchSchedulesAccount = exports.fetchDownloadSchedules = exports.fetchAccruedScheduleList = exports.fetchScheduleList = exports.getAccruedScheduleListReport = exports.getScheduleListReport = exports.ALL_SCHEDULES_TYPES = exports.ALL_ONE_TIME_ACCRUAL_REVERT_REASONS = exports.ALL_ONE_TIME_ACCRUAL_IGNORE_REASONS = exports.ALL_JE_SCHEDULE_REVERT_REASONS = exports.ALL_JE_SCHEDULE_IGNORE_REASONS = exports.getJEScheduleTransactionKey = exports.resetAccruedDetailNewScheduleState = exports.resetSelectedJEAccruedScheduleKey = exports.updateSelectedJEAccruedScheduleKey = exports.updateScheduleAccruedDetailsLocalData = exports.updateLinkBillExpenseLocalData = exports.clearSelectedJELinkRowIndex = exports.fetchRecommendedTransactionRowIndex = exports.updatedJELinkInLocalDataAccruedExpenses = exports.updatedJEAccruedLinkWithRecommendedLocalData = exports.updateAmountsInScheduleAccruedDetail = exports.saveScheduleAccruedDetails = exports.resetJEAccruedLinkInLocalData = exports.fetchScheduleAccruedDetailsPage = exports.fetchScheduleAccruedDetails = exports.cancelScheduleAccruedJournalEntry = exports.deleteScheduleAccruedDetail = exports.createNewSchedulesAccrued = exports.updateExpenseAutomationActualMatchingUIState = exports.undoReversalAccruals = exports.searchMatchTransactions = exports.searchMatchAccruals = exports.openMatchNewModal = exports.matchAndReverseAccruals = exports.ignoreActualMatchingSuggestion = exports.fetchExpenseAutomationActualMatchingPage = exports.fetchActualMatchingMatch = void 0;
|
|
74
|
+
exports.updateSelectedGlobalMerchant = exports.fetchVendorGlobalReviewView = exports.rejectVendorGlobalReview = exports.approveVendorGlobalReview = exports.getGlobalMerchantView = exports.clearGlobalMerchantView = exports.updateCreateGlobalMerchantLocalData = exports.createGlobalMerchant = exports.fetchGlobalMerchantRecommendation = exports.getVendorDetailSelectorView = exports.saveVendorDetailsView = exports.updateReviewVendorDetailLocalData = exports.clearGlobalMerchantAutoCompleteResults = exports.fetchGlobalMerchantAutoCompleteView = exports.updateVendorFirstReviewSortUiState = exports.updateVendorFirstReviewViewLocalData = exports.saveVendorFirstReviewView = exports.clearRecentlySavedErroredVendorData = exports.updateVendorFirstReviewViewPageToken = exports.resetVendorFirstReviewLocalData = exports.updateVendorFirstReviewViewScrollYOffset = exports.fetchVendorFirstReviewAttachments = exports.fetchVendorFirstReviewView = exports.getVendorFirstReviewAttachmentView = exports.getVendorFirstReviewView = exports.getGlobalMerchantAutoCompleteResults = exports.toVendorFirstReviewViewColumnKeyType = exports.getVendorTabView = exports.updateVendorTabViewTab = exports.fetchVendorTabView = exports.resetMarkAsCompleteStatus = exports.markAsCompleteScheduleDetail = exports.getDefaultSelectedTimeframeForScheduleType = exports.getFetchStateForScheduleListByType = exports.updatedJELinkWithRecommendedLocalData = exports.resetJELinkInLocalData = exports.updateAmountsInScheduleDetail = exports.updatedJELinkInLocalData = exports.getThirdPartyIDFromQBOURL = exports.getQBOUrlForLink = exports.updatedSelectedJELinkRowIndex = exports.updateAccruedJEScheduleAccruedByListKey = exports.updateScheduleListDownloadState = exports.updateScheduleDetailsLocalData = exports.createNewSchedules = exports.deleteScheduleDetail = exports.saveScheduleDetails = exports.fetchScheduleDetailsPage = exports.getAccruedScheduleDetailsView = exports.getScheduleDetailsView = void 0;
|
|
75
|
+
exports.sortSubtasks = exports.getTaskUpdates = exports.toTaskListGroupByKeyTypeStrict = exports.toTaskListGroupByKeyType = exports.updateTaskGroupName = exports.dragNDropTasks = exports.updateTaskListLocalData = exports.deleteTaskGroup = exports.initiateTaskListLocalData = exports.createNewTaskGroup = exports.bulkUpdateTaskList = exports.discardTaskUpdatesInLocalStore = exports.deleteTask = exports.TASK_LIST_GROUP_BY_CATEGORIES = exports.TASK_LIST_FILTER_CATEGORIES = exports.updateTaskFilters = exports.allTaskPriority = exports.allTaskStatus = exports.updateTaskListUIState = exports.updateTaskListSearchText = exports.getCannedResponsesView = exports.deleteCannedResponse = exports.saveCannedResponse = exports.fetchCannedResponses = exports.archiveTask = exports.fetchSubTasks = exports.resetSubTaskCreateStatus = exports.createSubTask = exports.saveTaskDetail = exports.saveTaskUpdatesToLocalStore = exports.fetchTaskDetailPage = exports.getTaskDetail = exports.fetchTaskListPage = exports.fetchTaskList = exports.getAllTasks = exports.getTaskGroupById = exports.toRecurringBillFrequencyStrict = exports.toRecurringBillFrequency = exports.updateArAgingNodeCollapseState = exports.getArAgingDetailForCustomer = exports.getArAgingReport = exports.updateArAgingDetailUIState = exports.fetchArAgingDetail = exports.updateArAgingUIState = exports.fetchArAging = exports.updateVendorGlobalReviewViewLocalData = exports.toVendorGlobalReviewColumnSortKeyType = exports.getTenantMerchantByMerchantId = exports.getVendorGlobalReviewView = exports.updateVendorGlobalReviewViewUIState = void 0;
|
|
76
|
+
exports.fetchNotificationUnreadCountSuccess = exports.fetchNotificationUnreadCount = exports.fetchNotificationView = exports.toNotificationTabTypeStrict = exports.toNotificationSubTabTypeStrict = exports.updateCommentsNotificationsStatuses = exports.updateCommentsNotifications = exports.toNotificationModeStrict = exports.parseOAuthParams = exports.getZeniOAuthApproveRedirectUrl = exports.getZeniOAuthApproveFetchState = exports.getZeniOAuthApproveError = exports.clearZeniOAuthView = exports.approveOAuthConsentSuccess = exports.approveOAuthConsentFailure = exports.approveOAuthConsent = exports.getAuthenticationView = exports.fetchCollaborationAuthToken = exports.clearAuditReportGroupViewByCompanyId = exports.saveReasonForAuditRule = exports.fetchAuditReportGroupView = exports.fetchAuditRuleGroupView = exports.getUserFromAllUsers = exports.getAuditRuleGroupViewSelectorView = exports.getAuditReportGroupViewSelectorView = exports.clearCardPaymentView = exports.resetCardPaymentErrorStatuses = exports.fetchPaymentSources = exports.addCardPaymentSource = exports.confirmCardSetupIntent = exports.createCardSetupIntent = exports.getAllCardsAndBankPaymentMethods = exports.deleteTag = exports.createTag = exports.fetchTagList = exports.getAllTags = exports.ALL_TASK_LIST_TABS = exports.initialTaskDetailLocalData = exports.convertHHMMStrToMinutes = exports.unsnoozeTask = exports.snoozeTask = exports.removeTaskFromList = exports.updateTaskListTab = exports.updateTaskFromListView = exports.toDueDateGroupKeyType = exports.toTaskStatusCodeType = exports.toPriorityCodeType = exports.getDueDateValueFromDueDateGroupId = exports.initialTaskDetail = exports.fetchAllTaskGroups = void 0;
|
|
77
|
+
exports.getRecurringEndDateFromCount = exports.getMinAllowedEndDate = exports.SEMI_WEEKLY_REQUIRED_DAYS_COUNT = exports.ALL_WEEK_DAYS = exports.updateReferViewed = exports.getRewardsPlanCard = exports.fetchRewardsPlan = exports.resendReferralInvite = exports.updateReferralListSortUiState = exports.saveReferralFormDataInLocalStore = exports.clearReferrals = exports.sendReferralInvite = exports.fetchReferrals = exports.DEFAULT_REFERRER_AMOUNT = exports.AmountStatusTypes = exports.StatusTypes = exports.toReferralListViewSortKeyType = exports.getInviteFormView = exports.getReferralListView = exports.toNotificationFrequency = exports.toNotificationChannel = exports.toggleEventChannel = exports.setGroupFrequency = exports.setGroupChannelMaster = exports.saveNotificationPreferences = exports.clearNotificationPreferencesLocalOverrides = exports.clearAllNotificationPreferencesView = exports.hasUnsavedNotificationPreferences = exports.getNotificationRegistry = exports.getNotificationPreferencesSaveState = exports.getNotificationLocalOverrides = exports.getEffectiveNotificationPreferences = exports.getNotifications = exports.getLastNotificationTime = exports.pushToastNotification = exports.isFeatureInterestRegistered = exports.getRegisteredInterestsByFeature = exports.getRegisteredInterests = exports.getFeatureNotificationView = exports.notifyMeForFeature = exports.fetchRegisteredInterests = exports.getNotificationsForSelectedSubTab = exports.getExternalNotificationsForSelectedSubTab = exports.getNotificationView = exports.updateNotificationViewUIState = exports.updateNotificationViewSubTab = exports.updateNotificationViewCurrentTabAndSubTab = exports.updateNotificationViewTabState = exports.updateNotificationViewNotificationStatus = exports.updateNotificationViewAllNotificationsStatus = void 0;
|
|
78
|
+
exports.clearSkillDetail = exports.clearLastContextMessage = exports.clearDeleteChatSessionStatus = exports.clearCurrentSessionId = exports.clearAiCfoSidePanelHostPageContext = exports.applyAiCfoSidePanelHostPageTransition = exports.acceptMasterTOS = exports.getAiAccountantCockpitView = exports.updateAiAccountantUIState = exports.triggerAiAccountantJob = exports.setSelectedTenantIdsForJobTrigger = exports.fetchAiAccountantJobs = exports.fetchAiAccountantCustomers = exports.cancelAiAccountantOnboarding = exports.getAiAccountantJobsByTenantId = exports.getAiAccountantCustomers = exports.updateAiAccountantJobs = exports.updateAiAccountantCustomer = exports.updateAiAccountantCustomers = exports.toAiAccountantJob = exports.toAiAccountantEnrollment = exports.toAiAccountantCustomer = exports.toAiAccountantOperationType = exports.toAiAccountantJobStatus = exports.toAiAccountantEnrollmentStatus = exports.getAllowedOperationsForStatus = exports.getTreasuryFundsMaximumYield = exports.getTreasurySetupViewDetails = exports.updateFundAllocationLocalData = exports.fetchPortfolioAllocation = exports.updatePortfolioAllocation = exports.fetchTreasuryFunds = exports.fetchTreasurySetupView = exports.acceptTreasuryTerms = exports.getExpressPayView = exports.resetExpressPayLocalData = exports.submitExpressPay = exports.updateExpressPayFormLocalData = exports.fetchExpressPayInitialDetails = exports.getIntlWireVerificationView = exports.updateVerificationFormLocalData = exports.submitInternationalVerificationForm = exports.fetchInternationalVerificationForm = exports.createTaskFromTaskGroupTemplate = exports.getCompanyTaskManagerView = exports.fetchTaskManagerMetrics = exports.fetchCompanyTaskManagerView = exports.fetchCockpitContext = exports.toRecurringFrequency = exports.toDayOfWeek = void 0;
|
|
79
|
+
exports.getSkillVersions = exports.getSkillVersionBody = exports.getSkillsEnabled = exports.getSkills = exports.getSkillMutation = exports.getSkillDetail = exports.getRoutinesEnabled = exports.getRoutines = exports.getRoutineRuns = exports.getRoutineMutation = exports.getAiCfoView = exports.canCreateRoutine = exports.updateResponseState = exports.updateCurrentInput = exports.updateCotCollapsedState = exports.updateAiCfoViewScrollPosition = exports.submitQuestion = exports.submitFeedback = exports.stopSubmitQuestion = exports.stopSubmit = exports.setSkillVisibility = exports.setSession = exports.setRoutineEnabled = exports.saveSkill = exports.saveRoutine = exports.runRoutine = exports.openSkillsBrowser = exports.openRoutinesBrowser = exports.fetchSuggestedQuestionsSuccess = exports.fetchSuggestedQuestionsFailure = exports.fetchSuggestedQuestions = exports.fetchSkillVersions = exports.fetchSkillVersionBody = exports.fetchSkillsSuccess = exports.fetchSkillsFailure = exports.fetchSkills = exports.fetchSkillDetail = exports.fetchRoutines = exports.fetchRoutineRuns = exports.fetchChatSessionsForUser = exports.fetchChatHistory = exports.deleteSkill = exports.deleteRoutine = exports.deleteChatSession = exports.createSessionAndSubmit = exports.createSession = exports.closeSkillsBrowser = exports.closeRoutinesBrowser = exports.closeRoutineRuns = exports.clearSkillMutation = void 0;
|
|
80
|
+
exports.updateCreatedCardPolicyTemplate = exports.updateCardPolicyVendorOptionsFailure = exports.updateCardPolicyVendorOptions = exports.updateCardPolicyTemplates = exports.updateCardPolicyStats = exports.updateCardPolicyMccCategoriesFailure = exports.updateCardPolicyMccCategories = exports.removeCardPolicyTemplate = exports.fetchCardPolicyVendorOptions = exports.fetchCardPolicyRecommendationFromUpload = exports.fetchCardPolicyMccCategories = exports.extractPolicyDocument = exports.clearPolicyDocumentExtraction = exports.toMessageType = exports.toMessageSender = exports.ALL_SYNTHETIC_AI_CFO_ANSWER_KINDS = exports.toInteractiveFormTypeStrict = exports.toInteractiveFormType = exports.toAiCfoAnswerResponseTypeStrict = exports.toAiCfoAnswerResponseType = exports.toAiCfoAnswerStateTypeStrict = exports.toAiCfoAnswerStateType = exports.toAiCfoChartTypeStrict = exports.toAiCfoChartType = exports.toAiCfoVisualizationTypeStrict = exports.toAiCfoVisualizationType = exports.ALL_INTERACTIVE_FORM_TYPES = exports.ALL_AI_CFO_ANSWER_RESPONSE_TYPES = exports.ALL_AI_CFO_ANSWER_STATE_TYPES = exports.ALL_AI_CFO_VISUALIZATION_TYPES = exports.ALL_AI_CFO_CHARTS_TYPES = exports.getSyntheticAiCfoAnswerByQuestionAnswerId = exports.getSyntheticAiCfoAnswersForChatSession = exports.getAiCfoSelectorView = exports.getAllQuestionsForChatSession = exports.getQuestionAnswerByIdForChatSession = exports.getAllQuestionAnswersForChatSession = exports.removeSyntheticAiCfoAnswer = exports.updateSyntheticAiCfoAnswer = exports.appendSyntheticAiCfoAnswer = exports.toAiCfoVisualization = exports.toAiCfoExports = exports.clearSession = exports.addQuestionPayload = exports.upsertOrAddQuestionAnswerPayload = exports.upsertAnswerPayload = exports.updateAiCfoAnswerCardPolicyWizardPlan = exports.setSessions = exports.setNewSession = exports.getSuggestedQuestionsForPageContext = void 0;
|
|
81
|
+
exports.updateAiCardPolicyFormDraftFromUploadPlan = exports.updateAiCardPolicyFormDraft = exports.seedManualCardPolicyFormDraft = exports.seedAiCardPolicyFormDraft = exports.createCardPolicyTemplates = exports.clearManualCardPolicyFormDraft = exports.clearCreateCardPolicy = exports.clearAiCardPolicyFormDraft = exports.applyExtractedPolicyToManualCardPolicyDraft = exports.applyExtractedPolicyToAiCardPolicyDraft = exports.toUpdateCardPolicyTemplateRequestBody = exports.toExtractedCardPolicyRules = exports.toCreateCardPolicyTemplatesRequestBody = exports.toCreateCardPolicyTemplateRequestBody = exports.toCardPolicyVendorSearchOption = exports.toCardPolicyTemplateList = exports.toCardPolicyTemplate = exports.toCardPolicyStats = exports.toCardPolicyEditFormDraft = exports.toBulkCreateCardPolicyTemplateError = exports.toCardPolicyTemplateStatus = exports.toCardPolicyTemplateMode = exports.ALL_CARD_POLICY_TEMPLATE_STATUSES = exports.ALL_CARD_POLICY_TEMPLATE_MODES = exports.getUploadedPolicyDocumentFileName = exports.getPolicyRecommendationFromUploadFetchState = exports.getPolicyRecommendationFromUploadError = exports.getPolicyRecommendationFromUploadChatSessionId = exports.getPolicyRecommendationFromUploadAnswerId = exports.getPolicyDocumentExtractionFetchState = exports.getPolicyDocumentExtractionError = exports.getExtractedCardPolicyRules = exports.getCardPolicyVendorSearchString = exports.getCardPolicyVendorSearchOptions = exports.getCardPolicyVendorSearchFetchState = exports.getCardPolicyTemplatesByIds = exports.getCardPolicyTemplateById = exports.getCardPolicySuggestedBlockMerchants = exports.getCardPolicySuggestedBlockCategories = exports.getCardPolicySuggestedAllowMerchants = exports.getCardPolicySuggestedAllowCategories = exports.getCardPolicyStats = exports.getCardPolicyMccCategoriesFetchState = exports.getCardPolicyMccCategoriesError = exports.getCardPolicyMccCategories = exports.getAllCardPolicyTemplates = exports.updatePolicyRecommendationFromUploadSuccess = exports.updatePolicyRecommendationFromUploadFailure = exports.updatePolicyDocumentExtractionSuccess = exports.updatePolicyDocumentExtractionFailure = void 0;
|
|
82
|
+
exports.executeTreasuryTransferMoney = exports.getTreasuryDetail = exports.updateTreasuryTransactionListUIState = exports.fetchTreasuryTransactionList = exports.fetchTreasuryOverviewDetail = exports.getUpdateCardPolicyFetchState = exports.getCardPolicyFormDraft = exports.getCardPolicyDetailView = exports.getCardPolicyDetailFetchState = exports.updateCardPolicyFormDraft = exports.updateCardPolicyFetchStatus = exports.updateCardPolicyDetailFetchStatus = exports.updateCardPolicy = exports.fetchCardPolicyDetail = exports.getCardPolicyTemplateIds = exports.getCardPolicyListView = exports.getCardPolicyListFetchState = exports.getArchiveCardPolicyFetchState = exports.updateCardPolicyListFetchStatus = exports.updateArchiveCardPolicyFetchStatus = exports.prependCardPolicyTemplateIds = exports.fetchCardPolicyList = exports.archiveCardPolicy = exports.toManualCardPolicyTemplateRequestFromDraft = exports.toBulkCardPolicyTemplateRequestsFromDraft = exports.toCardPolicyTemplateRequestFromDraft = exports.applyAiCardPolicyFormDraftUpdate = exports.deriveAiPolicyReviewRowsFromInputs = exports.buildManualCardPolicyFormDraftSeed = exports.buildUploadReviewRows = exports.buildEmptyLimitRows = exports.buildAiCardPolicyFormDraftSeed = exports.toVendorChipFieldValue = exports.toMccCategoryChipFieldValue = exports.buildVendorChipId = exports.buildMccCategoryChipId = exports.VENDOR_CHIP_ID_PREFIX = exports.MCC_CHIP_ID_PREFIX = exports.toMccCategoryLike = exports.CARD_POLICY_LIMIT_ROW_ID_TRANSACTION = exports.CARD_POLICY_LIMIT_ROW_ID_REQUIRE_RECEIPT = exports.getManualCardPolicyFormDraft = exports.getLastCreatedCardPolicyTemplateIds = exports.getLastCreatedCardPolicyTemplateId = exports.getLastCreateCardPolicyTemplateErrors = exports.getLastCreateCardPolicySourceChatSessionId = exports.getCreateCardPolicyTemplateRequestState = exports.getAiCardPolicyFormDraft = exports.updateManualCardPolicyFormDraft = exports.updateCreateCardPolicyTemplateRequestState = void 0;
|
|
83
|
+
exports.fetchInvoiceKPIs = exports.fetchInvoiceCounts = exports.getInvoicesByIds = exports.getInvoiceById = exports.updateInvoices = exports.removeInvoice = exports.mapAuditLogEntry = exports.toAuditLogEntityRouteOption = exports.isInvoicingEntityLinkable = exports.buildInvoicingEntityPath = exports.toInvoicingDiscountLifecycleActionOption = exports.toInvoicingDiscountLifecycleAction = exports.toInvoicingCatalogProductLifecycleActionOption = exports.toInvoicingCatalogItemLifecycleActionOption = exports.toInvoicingCatalogProductLifecycleAction = exports.toInvoicingCatalogItemLifecycleAction = exports.toInvoicingSubscriptionLifecycleActionOption = exports.toInvoicingSubscriptionLifecycleAction = exports.toInvoicingDunningAction = exports.INVOICING_DISCOUNT_LIFECYCLE_ACTIONS = exports.INVOICING_CATALOG_PRODUCT_LIFECYCLE_ACTIONS = exports.INVOICING_CATALOG_ITEM_LIFECYCLE_ACTIONS = exports.INVOICING_SUBSCRIPTION_LIFECYCLE_ACTIONS = exports.INVOICING_DUNNING_ACTIONS = exports.toKycProvidedDocumentTypeFromAllowed = exports.toKycProvidedDocumentType = exports.DEFAULT_SESSION_CONFIG = exports.SessionManager = exports.getTransactionActivityLogView = exports.fetchTransactionActivityLog = exports.BULK_UPLOAD_BAR_COMPLETE_HOLD_MS = exports.BULK_UPLOAD_AUTOMATCHING_TIMEOUT_MS = exports.getAutoTransferRuleHistory = exports.getAutoTransferRuleById = exports.getAutoTransferRules = exports.clearRuleUpdateLocalData = exports.updateRuleLocalData = exports.fetchAutoTransferReviewDetail = exports.fetchAutoTransferRuleHistory = exports.deleteAutoTransferRule = exports.updateAutoTransferRule = exports.createAutoTransferRule = exports.fetchAutoTransferRules = exports.getTreasuryTaxLetters = exports.fetchTreasuryTaxLetterList = exports.getTreasuryStatements = exports.fetchTreasuryStatementList = exports.getTreasuryTransferMoney = exports.clearTreasuryTransferMoney = exports.updateTreasuryTransferMoneyLocalData = void 0;
|
|
84
|
+
exports.getInvoicingAuditView = exports.fetchInvoicingAuditLog = exports.getInvoicingOverview = exports.buildPeriodOptions = exports.fetchInvoicingOverview = exports.clearInvoicingOverview = exports.initialRecordPaymentFormLocalData = exports.localDataToRecordPaymentPayload = exports.localDataToInvoiceRecordPaymentBody = exports.initializeRecordPaymentDraftFromInvoice = exports.getCreateCreditNoteView = exports.getCreateCreditNoteFormView = exports.initialCreateCreditNoteFormLocalData = exports.localDataToCreateCreditNotePayload = exports.updateCreateCreditNoteFormDraft = exports.submitCreateCreditNote = exports.resetCreateCreditNote = exports.createCreditNoteSuccess = exports.createCreditNoteFailure = exports.getIssueCreditNoteView = exports.initialIssueCreditNoteFormLocalData = exports.localDataToIssueCreditNotePayload = exports.initializeIssueCreditNoteDraftFromInvoice = exports.computeIssueCreditNoteTotal = exports.updateIssueCreditNoteFormDraft = exports.submitIssueCreditNote = exports.resetIssueCreditNote = exports.issueCreditNoteSuccess = exports.issueCreditNoteFailure = exports.initializeIssueCreditNoteDraft = exports.updateRecordPaymentFormDraft = exports.submitRecordPayment = exports.initializeRecordPaymentDraft = exports.resetRecordPayment = exports.initialInvoicingCreateInvoiceFormLocalData = exports.createInvoiceFormLocalDataToRequest = exports.blankInvoicingCreateInvoiceLineItem = exports.updateInvoicingCreateInvoiceFormDraft = exports.resetCreateInvoice = exports.fetchCreateInvoiceFormPage = exports.createInvoice = exports.getInvoiceDetail = exports.fetchInvoiceDetailPage = exports.fetchInvoiceDetail = exports.getInvoiceListView = exports.ALL_INVOICING_INVOICE_TAB_IDS = exports.updateInvoiceListFilters = exports.setInvoiceActiveTab = exports.fetchInvoiceListPage = exports.fetchInvoiceList = void 0;
|
|
85
|
+
exports.updateInvoicingCouponFormDraft = exports.submitInvoicingCouponForm = exports.saveInvoicingCoupon = exports.resetEditInvoicingCouponDetailView = exports.fetchInvoicingCouponDetailPage = exports.getSavedInvoicingCatalogItemKind = exports.getSavedInvoicingCatalogItemId = exports.getInvoicingCatalogItemFormView = exports.getInvoicingApplicableCatalogItemOptions = exports.isTieredCatalogPricingModel = exports.initialInvoicingCatalogItemFormLocalData = exports.invoicingProductToCatalogItemFormSubFamily = exports.entityToInvoicingCatalogItemFormLocalData = exports.blankInvoicingCatalogTier = exports.blankInvoicingCatalogSubFamily = exports.INVOICING_CATALOG_TIER_TYPE_VALUES = exports.INVOICING_CATALOG_PRORATION_VALUES = exports.INVOICING_CATALOG_PRICING_MODEL_VALUES = exports.INVOICING_CATALOG_APPLICABILITY_VALUES = exports.updateInvoicingCatalogItemFormDraft = exports.submitInvoicingCatalogItemForm = exports.resetEditInvoicingCatalogItemDetailView = exports.getInvoicingSubscriptionFormView = exports.getEditInvoicingSubscriptionDetailViewState = exports.toInvoicingSubscriptionQuantity = exports.invoicingSubscriptionTodayIso = exports.initialInvoicingSubscriptionFormLocalData = exports.entityToInvoicingSubscriptionFormLocalData = exports.INVOICING_SUBSCRIPTION_SHIPPING_ADDRESS_TYPE = exports.updateInvoicingSubscriptionFormDraft = exports.submitInvoicingSubscriptionForm = exports.resetEditInvoicingSubscriptionDetailView = exports.initializeInvoicingSubscriptionAddress = exports.fetchInvoicingSubscriptionFormPage = exports.fetchInvoicingSubscriptionEstimate = exports.clearInvoicingSubscriptionEstimate = exports.getInvoicingCustomerFormView = exports.initialInvoicingCustomerFormLocalData = exports.entityToInvoicingCustomerFormLocalData = exports.INVOICING_CUSTOMER_BILLING_ADDRESS_TYPE = exports.updateInvoicingCustomerFormDraft = exports.submitInvoicingCustomerFormSuccess = exports.submitInvoicingCustomerFormFailure = exports.submitInvoicingCustomerForm = exports.resetEditInvoicingCustomerDetailView = exports.initializeInvoicingCustomerAddress = exports.getRecordPaymentView = exports.getRecordPaymentInvoiceOptions = exports.getRecordPaymentFormView = exports.getCreateInvoiceFormView = void 0;
|
|
86
|
+
exports.getInvoicingPlaidLinkToken = exports.getInvoicingPaymentMethodSaveState = exports.getInvoicingPaymentLinkSendState = exports.sendInvoicingPaymentLink = exports.saveInvoicingPaymentMethod = exports.resetInvoicingCustomerPaymentMethod = exports.fetchInvoicingPlaidLinkToken = exports.createInvoicingSetupIntent = exports.fetchInvoicingPaymentLinkEmailPreviewPage = exports.fetchInvoicingCustomerDetailPage = exports.fetchInvoicingCustomerDetail = exports.getInvoicingCustomerListView = exports.INVOICING_CUSTOMER_COLUMNS = exports.ALL_INVOICING_CUSTOMER_TAB_IDS = exports.ALL_INVOICING_CUSTOMER_SORT_KEYS = exports.updateInvoicingCustomerFilters = exports.setInvoicingCustomerActiveTab = exports.fetchInvoicingCustomerListPage = exports.fetchInvoicingCustomerList = exports.fetchInvoicingCustomerCounts = exports.updateInvoicingCustomers = exports.removeInvoicingCustomer = exports.INVOICING_LIST_PAGE_SIZE = exports.uploadInvoicingMigrationFiles = exports.startInvoicingMigration = exports.rollbackInvoicingMigration = exports.retryInvoicingMigration = exports.connectInvoicingChargebee = exports.getInvoicingDataImportView = exports.setInvoicingActiveMigrationSessionId = exports.fetchInvoicingMigrationSessions = exports.fetchInvoicingMigrationSession = exports.fetchInvoicingMigrationDiagnostics = exports.fetchInvoicingDataImportStatus = exports.runInvoicingPaymentAction = exports.runInvoicingDunningAction = exports.runInvoicingSubscriptionAction = exports.runInvoicingDiscountAction = exports.runInvoicingCatalogProductAction = exports.runInvoicingCatalogPlanAction = exports.fetchInvoicingCatalogItemDetailPage = exports.shouldDefaultAdjustmentCreditNote = exports.isBackdatedInvoiceDate = exports.buildVoidInvoiceSubmitBody = exports.updateInvoicingInvoice = exports.runInvoicingInvoiceAction = exports.getInvoicingCouponFormView = exports.getEditInvoicingCouponDetailViewState = exports.initialInvoicingCouponFormLocalData = exports.entityToInvoicingCouponFormLocalData = void 0;
|
|
87
|
+
exports.fetchInvoicingCouponCounts = exports.updateInvoicingCoupons = exports.removeInvoicingCoupon = exports.getInvoicingCreditNoteDetail = exports.getInvoicingCreditNoteById = exports.fetchInvoicingCreditNoteDetail = exports.getInvoicingCreditNoteListView = exports.INVOICING_CREDIT_NOTE_COLUMNS = exports.ALL_INVOICING_CREDIT_NOTE_TAB_IDS = exports.ALL_INVOICING_CREDIT_NOTE_SORT_KEYS = exports.updateInvoicingCreditNoteFilters = exports.setInvoicingCreditNoteActiveTab = exports.fetchInvoicingCreditNoteListPage = exports.fetchInvoicingCreditNoteList = exports.fetchInvoicingCreditNoteCounts = exports.updateInvoicingCreditNotes = exports.removeInvoicingCreditNote = exports.getInvoicingTransactionDetail = exports.getInvoicingTransactionById = exports.fetchInvoicingTransactionDetail = exports.getInvoicingTransactionListView = exports.INVOICING_TRANSACTION_COLUMNS = exports.ALL_INVOICING_TRANSACTION_TAB_IDS = exports.ALL_INVOICING_TRANSACTION_SORT_KEYS = exports.updateInvoicingTransactionFilters = exports.setInvoicingTransactionActiveTab = exports.fetchInvoicingTransactionListPage = exports.fetchInvoicingTransactionList = exports.updateInvoicingTransactions = exports.removeInvoicingTransaction = exports.getInvoicingSubscriptionById = exports.fetchInvoicingSubscriptionDetailPage = exports.fetchInvoicingSubscriptionDetail = exports.getInvoicingSubscriptionListView = exports.INVOICING_SUBSCRIPTION_COLUMNS = exports.ALL_INVOICING_SUBSCRIPTION_TAB_IDS = exports.ALL_INVOICING_SUBSCRIPTION_SORT_KEYS = exports.updateInvoicingSubscriptionFilters = exports.setInvoicingSubscriptionActiveTab = exports.fetchInvoicingSubscriptionListPage = exports.fetchInvoicingSubscriptionList = exports.fetchInvoicingSubscriptionCounts = exports.updateInvoicingSubscriptions = exports.removeInvoicingSubscription = exports.resetPromotionalCreditAction = exports.submitAddPromotionalCredits = exports.getInvoicingSetupIntentFetchState = exports.getInvoicingSetupIntent = exports.getInvoicingSentPaymentLinkMagicUrl = exports.getInvoicingSentPaymentLinkEmail = void 0;
|
|
88
|
+
exports.disconnectInvoicingStripe = exports.connectInvoicingStripe = exports.getLowestInvoicingCatalogPricePointAmount = exports.getInvoicingCatalogItemById = exports.fetchInvoicingCatalogItemDetail = exports.getInvoicingCatalogListView = exports.updateInvoicingCatalogProductFilters = exports.updateInvoicingCatalogPlanFilters = exports.fetchInvoicingCatalogProductList = exports.fetchInvoicingCatalogPlanList = exports.fetchInvoicingCatalogListPage = exports.fetchInvoicingCatalogCounts = exports.updateInvoicingCatalogItems = exports.removeInvoicingCatalogItem = exports.mergeInvoicingCatalogPricePoint = exports.getInvoicingDunningEmailPreview = exports.getInvoicingDunningCaseDetail = exports.getInvoicingDunningCaseById = exports.invalidateInvoicingDunningEmailPreview = exports.fetchInvoicingDunningEmailPreviewPage = exports.fetchInvoicingDunningCaseDetailPage = exports.fetchInvoicingDunningCaseDetail = exports.clearInvoicingDunningCaseDetailView = exports.getInvoicingDunningCaseListView = exports.INVOICING_DUNNING_CASE_COLUMNS = exports.ALL_INVOICING_DUNNING_CASE_TAB_IDS = exports.ALL_INVOICING_DUNNING_CASE_SORT_KEYS = exports.updateInvoicingDunningCaseFilters = exports.setInvoicingDunningCaseActiveTab = exports.fetchInvoicingDunningCaseListPage = exports.fetchInvoicingDunningCaseList = exports.fetchInvoicingDunningCaseCounts = exports.updateInvoicingDunningCases = exports.removeInvoicingDunningCase = exports.fetchInvoicingCouponDetail = exports.getInvoicingCouponById = exports.getInvoicingCouponListView = exports.getInvoicingCouponListNextCursor = exports.getInvoicingCouponListItems = exports.getInvoicingCouponListHasMore = exports.getInvoicingCouponListFilters = exports.getInvoicingCouponListFetchState = exports.getInvoicingCouponCounts = exports.INVOICING_COUPON_COLUMNS = exports.ALL_INVOICING_COUPON_TAB_IDS = exports.ALL_INVOICING_COUPON_SORT_KEYS = exports.updateInvoicingCouponFilters = exports.setInvoicingCouponActiveTab = exports.fetchInvoicingCouponListPage = exports.fetchInvoicingCouponList = void 0;
|
|
89
|
+
exports.getActualMatchingAmount = exports.isPendingReviewRow = exports.isRenderableOneTimeAccrual = exports.isOneTimeAccrualRow = exports.isExistingTabRow = exports.isAiAccountantSchedule = exports.isAccruedScheduleRow = exports.getJEScheduleRowType = exports.getExpenseAutomationJEOneTimeAccrualDetailView = exports.getInvoicingOnboardingGateView = exports.getInvoicingConfigView = exports.updateInvoicingConfig = exports.resetInvoicingConfigActionStates = exports.fetchInvoicingConfig = exports.enableInvoicing = exports.acceptInvoicingTerms = exports.toInvoicingQboCustomerMatchingMode = exports.toInvoicingNamedOptionsByKey = exports.getInvoicingQboAccountMappingId = exports.INVOICING_QBO_CUSTOMER_MATCHING_MODES = exports.getInvoicingQboView = exports.invoicingAccountsForQboAccountTypes = exports.startInvoicingQboBackfill = exports.retryInvoicingQboSyncTask = exports.fetchInvoicingQboSyncHealth = exports.fetchInvoicingQboConnection = exports.fetchInvoicingAccountingPickers = exports.isStripeConnectedFromSettings = exports.initialInvoicingBrandingFormLocalData = exports.entityToInvoicingBrandingFormLocalData = exports.INVOICING_BUSINESS_ADDRESS_TYPE = exports.invoicingQboSettingsLocalDataToPayload = exports.initialInvoicingQboSettingsLocalData = exports.entityToInvoicingQboSettingsLocalData = exports.getInvoicingSettingsView = exports.getInvoicingSettingsHubView = exports.getInvoicingSettingsFetchState = exports.getInvoicingSettings = exports.getInvoicingQboSettingsFormView = exports.getInvoicingBrandingFormView = exports.updateInvoicingSettings = exports.updateInvoicingQboSettingsDraft = exports.updateInvoicingBrandingFormDraft = exports.submitInvoicingQboSettings = exports.submitInvoicingBrandingForm = exports.saveInvoicingSettings = exports.resetSaveInvoicingSettings = exports.resetInvoicingQboSettingsDraft = exports.resetInvoicingBrandingFormDraft = exports.fetchInvoicingSettings = void 0;
|
|
90
|
+
exports.isPendingReviewAccrual = exports.isManuallyReversedAccrual = exports.isAutoReversedAccrual = exports.getExpenseAutomationActualMatchingView = exports.getExpenseAutomationActualMatchingMatchView = exports.parseActualMatchingMatchId = exports.getCloseMatchAfterUndoMatchId = exports.getCloseMatchAfterUndo = exports.getCloseMatchAfterIgnoreMatchId = exports.getActualMatchingMatchModalConfirmStatus = exports.getActualMatchingReversalDate = void 0;
|
|
91
91
|
const allowedValue_1 = require("./commonStateTypes/allowedValue");
|
|
92
92
|
Object.defineProperty(exports, "isAllowedValueWithCode", { enumerable: true, get: function () { return allowedValue_1.isAllowedValueWithCode; } });
|
|
93
93
|
Object.defineProperty(exports, "isAllowedValueWithID", { enumerable: true, get: function () { return allowedValue_1.isAllowedValueWithID; } });
|
|
@@ -1598,6 +1598,7 @@ Object.defineProperty(exports, "toScheduleSubTabType", { enumerable: true, get:
|
|
|
1598
1598
|
const jeScheduleSetupApproverViewPayload_1 = require("./view/settings/jeScheduleApprovalRules/jeScheduleSetupApproverViewPayload");
|
|
1599
1599
|
Object.defineProperty(exports, "toJEScheduleApprovalRulesList", { enumerable: true, get: function () { return jeScheduleSetupApproverViewPayload_1.toJEScheduleApprovalRulesList; } });
|
|
1600
1600
|
const jeScheduleSetupApproverViewReducer_1 = require("./view/settings/jeScheduleApprovalRules/jeScheduleSetupApproverViewReducer");
|
|
1601
|
+
Object.defineProperty(exports, "approveJEScheduleWithLocalEdits", { enumerable: true, get: function () { return jeScheduleSetupApproverViewReducer_1.approveJEScheduleWithLocalEdits; } });
|
|
1601
1602
|
Object.defineProperty(exports, "clearJEScheduleApprovalRuleSaveStatus", { enumerable: true, get: function () { return jeScheduleSetupApproverViewReducer_1.clearJEScheduleApprovalRuleSaveStatus; } });
|
|
1602
1603
|
Object.defineProperty(exports, "deleteJEScheduleApprovalRule", { enumerable: true, get: function () { return jeScheduleSetupApproverViewReducer_1.deleteJEScheduleApprovalRule; } });
|
|
1603
1604
|
Object.defineProperty(exports, "fetchJEScheduleApprovalRules", { enumerable: true, get: function () { return jeScheduleSetupApproverViewReducer_1.fetchJEScheduleApprovalRules; } });
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
2
|
import { RootState } from '../../../../rootStateTypes';
|
|
3
|
-
import { jeScheduleApprovalAction, jeScheduleApprovalActionFailure, saveJEScheduleApprovalDraft } from '../jeScheduleSetupApproverViewReducer';
|
|
4
|
-
export type ActionType = ReturnType<typeof saveJEScheduleApprovalDraft> | ReturnType<typeof jeScheduleApprovalAction> | ReturnType<typeof jeScheduleApprovalActionFailure>;
|
|
5
|
-
/**
|
|
3
|
+
import { approveJEScheduleWithLocalEdits, jeScheduleApprovalAction, jeScheduleApprovalActionFailure, saveJEScheduleApprovalDraft } from '../jeScheduleSetupApproverViewReducer';
|
|
4
|
+
export type ActionType = ReturnType<typeof saveJEScheduleApprovalDraft> | ReturnType<typeof approveJEScheduleWithLocalEdits> | ReturnType<typeof jeScheduleApprovalAction> | ReturnType<typeof jeScheduleApprovalActionFailure>;
|
|
5
|
+
/**
|
|
6
|
+
* Builds the schedule body from the open schedule's local edits and reuses the approval-action call.
|
|
7
|
+
* Save Draft needs those edits; Approve sends them only as a fallback for a draft with nothing
|
|
8
|
+
* parked, so Approve still goes out when there are no local edits.
|
|
9
|
+
*/
|
|
6
10
|
export declare const saveJEScheduleApprovalDraftEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>) => import("rxjs").Observable<ActionType>;
|
|
@@ -20,10 +20,23 @@ function buildDraftPayload(state, jeScheduleId, scheduleType, isAccrued) {
|
|
|
20
20
|
? (0, scheduleDetailPayload_1.prepareScheduleDetailPayload)(state, localData, key, scheduleType)
|
|
21
21
|
: undefined;
|
|
22
22
|
}
|
|
23
|
-
/**
|
|
24
|
-
|
|
23
|
+
/**
|
|
24
|
+
* Builds the schedule body from the open schedule's local edits and reuses the approval-action call.
|
|
25
|
+
* Save Draft needs those edits; Approve sends them only as a fallback for a draft with nothing
|
|
26
|
+
* parked, so Approve still goes out when there are no local edits.
|
|
27
|
+
*/
|
|
28
|
+
const saveJEScheduleApprovalDraftEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)((action) => jeScheduleSetupApproverViewReducer_1.saveJEScheduleApprovalDraft.match(action) ||
|
|
29
|
+
jeScheduleSetupApproverViewReducer_1.approveJEScheduleWithLocalEdits.match(action)), (0, operators_1.map)((action) => {
|
|
25
30
|
const { jeScheduleId, scheduleType, isAccrued } = action.payload;
|
|
26
31
|
const payload = buildDraftPayload(state$.value, jeScheduleId, scheduleType, isAccrued);
|
|
32
|
+
if (jeScheduleSetupApproverViewReducer_1.approveJEScheduleWithLocalEdits.match(action)) {
|
|
33
|
+
return (0, jeScheduleSetupApproverViewReducer_1.jeScheduleApprovalAction)(jeScheduleId, payload != null
|
|
34
|
+
? {
|
|
35
|
+
action: 'approve',
|
|
36
|
+
scheduledJournalEntries: payload.scheduled_journal_entries,
|
|
37
|
+
}
|
|
38
|
+
: { action: 'approve' });
|
|
39
|
+
}
|
|
27
40
|
if (payload == null) {
|
|
28
41
|
return (0, jeScheduleSetupApproverViewReducer_1.jeScheduleApprovalActionFailure)(jeScheduleId, (0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', 'No local schedule edits to save as draft'));
|
|
29
42
|
}
|
|
@@ -10,6 +10,7 @@ type DraftSchedulePayload = SaveScheduleDetailPayload['je_schedules'][number] |
|
|
|
10
10
|
type DraftScheduledJournalEntryPayload = SaveScheduleDetailPayload['scheduled_journal_entries'][number];
|
|
11
11
|
export type JEScheduleApprovalActionBody = {
|
|
12
12
|
action: 'approve';
|
|
13
|
+
scheduledJournalEntries?: DraftScheduledJournalEntryPayload[];
|
|
13
14
|
} | {
|
|
14
15
|
action: 'reject';
|
|
15
16
|
rejectionReason: string;
|
|
@@ -20,6 +21,7 @@ export type JEScheduleApprovalActionBody = {
|
|
|
20
21
|
};
|
|
21
22
|
export type JEScheduleApprovalActionRequestBody = {
|
|
22
23
|
action: 'approve';
|
|
24
|
+
scheduled_journal_entries?: DraftScheduledJournalEntryPayload[];
|
|
23
25
|
} | {
|
|
24
26
|
action: 'reject';
|
|
25
27
|
rejection_reason: string;
|
|
@@ -13,7 +13,12 @@ exports.toJEScheduleApprovalRulesList = toJEScheduleApprovalRulesList;
|
|
|
13
13
|
const toJEScheduleApprovalActionRequestBody = (body) => {
|
|
14
14
|
switch (body.action) {
|
|
15
15
|
case 'approve':
|
|
16
|
-
return
|
|
16
|
+
return body.scheduledJournalEntries != null
|
|
17
|
+
? {
|
|
18
|
+
action: 'approve',
|
|
19
|
+
scheduled_journal_entries: body.scheduledJournalEntries,
|
|
20
|
+
}
|
|
21
|
+
: { action: 'approve' };
|
|
17
22
|
case 'reject':
|
|
18
23
|
return { action: 'reject', rejection_reason: body.rejectionReason };
|
|
19
24
|
case 'save_draft':
|
|
@@ -35,7 +35,11 @@ export declare const fetchJEScheduleApprovalRules: import("@reduxjs/toolkit").Ac
|
|
|
35
35
|
jeScheduleId: string;
|
|
36
36
|
scheduleType: "prepaid_expenses" | "fixed_assets" | "accrued_expenses" | "deferred_revenue";
|
|
37
37
|
isAccrued: boolean;
|
|
38
|
-
}, "jeScheduleSetupApproverView/saveJEScheduleApprovalDraft", never, never>,
|
|
38
|
+
}, "jeScheduleSetupApproverView/saveJEScheduleApprovalDraft", never, never>, approveJEScheduleWithLocalEdits: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[jeScheduleId: string, scheduleType: "prepaid_expenses" | "fixed_assets" | "accrued_expenses" | "deferred_revenue", isAccrued: boolean], {
|
|
39
|
+
jeScheduleId: string;
|
|
40
|
+
scheduleType: "prepaid_expenses" | "fixed_assets" | "accrued_expenses" | "deferred_revenue";
|
|
41
|
+
isAccrued: boolean;
|
|
42
|
+
}, "jeScheduleSetupApproverView/approveJEScheduleWithLocalEdits", never, never>, jeScheduleApprovalActionSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[jeScheduleId: string], {
|
|
39
43
|
jeScheduleId: string;
|
|
40
44
|
}, "jeScheduleSetupApproverView/jeScheduleApprovalActionSuccess", never, never>, jeScheduleApprovalActionFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[jeScheduleId: string, status: ZeniAPIStatus<Record<string, unknown>>], {
|
|
41
45
|
jeScheduleId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var _a;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.clearJEScheduleApprovalRuleSaveStatus = exports.jeScheduleApprovalActionFailure = exports.jeScheduleApprovalActionSuccess = exports.saveJEScheduleApprovalDraft = exports.jeScheduleApprovalAction = exports.reorderJEScheduleApprovalRulesFailure = exports.reorderJEScheduleApprovalRulesSuccess = exports.reorderJEScheduleApprovalRules = exports.deleteJEScheduleApprovalRuleFailure = exports.deleteJEScheduleApprovalRuleSuccess = exports.deleteJEScheduleApprovalRule = exports.saveJEScheduleApprovalRuleFailure = exports.saveJEScheduleApprovalRuleSuccess = exports.saveJEScheduleApprovalRule = exports.fetchJEScheduleApproversFailure = exports.fetchJEScheduleApproversSuccess = exports.fetchJEScheduleApprovers = exports.fetchJEScheduleApprovalRulesFailure = exports.fetchJEScheduleApprovalRulesSuccess = exports.fetchJEScheduleApprovalRules = exports.reorderOwnRules = exports.initialState = void 0;
|
|
4
|
+
exports.clearJEScheduleApprovalRuleSaveStatus = exports.jeScheduleApprovalActionFailure = exports.jeScheduleApprovalActionSuccess = exports.approveJEScheduleWithLocalEdits = exports.saveJEScheduleApprovalDraft = exports.jeScheduleApprovalAction = exports.reorderJEScheduleApprovalRulesFailure = exports.reorderJEScheduleApprovalRulesSuccess = exports.reorderJEScheduleApprovalRules = exports.deleteJEScheduleApprovalRuleFailure = exports.deleteJEScheduleApprovalRuleSuccess = exports.deleteJEScheduleApprovalRule = exports.saveJEScheduleApprovalRuleFailure = exports.saveJEScheduleApprovalRuleSuccess = exports.saveJEScheduleApprovalRule = exports.fetchJEScheduleApproversFailure = exports.fetchJEScheduleApproversSuccess = exports.fetchJEScheduleApprovers = exports.fetchJEScheduleApprovalRulesFailure = exports.fetchJEScheduleApprovalRulesSuccess = exports.fetchJEScheduleApprovalRules = exports.reorderOwnRules = exports.initialState = void 0;
|
|
5
5
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
6
|
const rootActions_1 = require("../../../rootActions");
|
|
7
7
|
const NOT_STARTED = { fetchState: 'Not-Started', error: undefined };
|
|
@@ -223,6 +223,17 @@ const jeScheduleSetupApproverView = (0, toolkit_1.createSlice)({
|
|
|
223
223
|
return { payload: { jeScheduleId, scheduleType, isAccrued } };
|
|
224
224
|
},
|
|
225
225
|
},
|
|
226
|
+
approveJEScheduleWithLocalEdits: {
|
|
227
|
+
reducer(draft, action) {
|
|
228
|
+
draft.approvalActionStatusByScheduleId[action.payload.jeScheduleId] = {
|
|
229
|
+
fetchState: 'In-Progress',
|
|
230
|
+
error: undefined,
|
|
231
|
+
};
|
|
232
|
+
},
|
|
233
|
+
prepare(jeScheduleId, scheduleType, isAccrued) {
|
|
234
|
+
return { payload: { jeScheduleId, scheduleType, isAccrued } };
|
|
235
|
+
},
|
|
236
|
+
},
|
|
226
237
|
jeScheduleApprovalActionSuccess: {
|
|
227
238
|
reducer(draft, action) {
|
|
228
239
|
draft.approvalActionStatusByScheduleId[action.payload.jeScheduleId] = {
|
|
@@ -256,5 +267,5 @@ const jeScheduleSetupApproverView = (0, toolkit_1.createSlice)({
|
|
|
256
267
|
});
|
|
257
268
|
},
|
|
258
269
|
});
|
|
259
|
-
_a = jeScheduleSetupApproverView.actions, exports.fetchJEScheduleApprovalRules = _a.fetchJEScheduleApprovalRules, exports.fetchJEScheduleApprovalRulesSuccess = _a.fetchJEScheduleApprovalRulesSuccess, exports.fetchJEScheduleApprovalRulesFailure = _a.fetchJEScheduleApprovalRulesFailure, exports.fetchJEScheduleApprovers = _a.fetchJEScheduleApprovers, exports.fetchJEScheduleApproversSuccess = _a.fetchJEScheduleApproversSuccess, exports.fetchJEScheduleApproversFailure = _a.fetchJEScheduleApproversFailure, exports.saveJEScheduleApprovalRule = _a.saveJEScheduleApprovalRule, exports.saveJEScheduleApprovalRuleSuccess = _a.saveJEScheduleApprovalRuleSuccess, exports.saveJEScheduleApprovalRuleFailure = _a.saveJEScheduleApprovalRuleFailure, exports.deleteJEScheduleApprovalRule = _a.deleteJEScheduleApprovalRule, exports.deleteJEScheduleApprovalRuleSuccess = _a.deleteJEScheduleApprovalRuleSuccess, exports.deleteJEScheduleApprovalRuleFailure = _a.deleteJEScheduleApprovalRuleFailure, exports.reorderJEScheduleApprovalRules = _a.reorderJEScheduleApprovalRules, exports.reorderJEScheduleApprovalRulesSuccess = _a.reorderJEScheduleApprovalRulesSuccess, exports.reorderJEScheduleApprovalRulesFailure = _a.reorderJEScheduleApprovalRulesFailure, exports.jeScheduleApprovalAction = _a.jeScheduleApprovalAction, exports.saveJEScheduleApprovalDraft = _a.saveJEScheduleApprovalDraft, exports.jeScheduleApprovalActionSuccess = _a.jeScheduleApprovalActionSuccess, exports.jeScheduleApprovalActionFailure = _a.jeScheduleApprovalActionFailure, exports.clearJEScheduleApprovalRuleSaveStatus = _a.clearJEScheduleApprovalRuleSaveStatus;
|
|
270
|
+
_a = jeScheduleSetupApproverView.actions, exports.fetchJEScheduleApprovalRules = _a.fetchJEScheduleApprovalRules, exports.fetchJEScheduleApprovalRulesSuccess = _a.fetchJEScheduleApprovalRulesSuccess, exports.fetchJEScheduleApprovalRulesFailure = _a.fetchJEScheduleApprovalRulesFailure, exports.fetchJEScheduleApprovers = _a.fetchJEScheduleApprovers, exports.fetchJEScheduleApproversSuccess = _a.fetchJEScheduleApproversSuccess, exports.fetchJEScheduleApproversFailure = _a.fetchJEScheduleApproversFailure, exports.saveJEScheduleApprovalRule = _a.saveJEScheduleApprovalRule, exports.saveJEScheduleApprovalRuleSuccess = _a.saveJEScheduleApprovalRuleSuccess, exports.saveJEScheduleApprovalRuleFailure = _a.saveJEScheduleApprovalRuleFailure, exports.deleteJEScheduleApprovalRule = _a.deleteJEScheduleApprovalRule, exports.deleteJEScheduleApprovalRuleSuccess = _a.deleteJEScheduleApprovalRuleSuccess, exports.deleteJEScheduleApprovalRuleFailure = _a.deleteJEScheduleApprovalRuleFailure, exports.reorderJEScheduleApprovalRules = _a.reorderJEScheduleApprovalRules, exports.reorderJEScheduleApprovalRulesSuccess = _a.reorderJEScheduleApprovalRulesSuccess, exports.reorderJEScheduleApprovalRulesFailure = _a.reorderJEScheduleApprovalRulesFailure, exports.jeScheduleApprovalAction = _a.jeScheduleApprovalAction, exports.saveJEScheduleApprovalDraft = _a.saveJEScheduleApprovalDraft, exports.approveJEScheduleWithLocalEdits = _a.approveJEScheduleWithLocalEdits, exports.jeScheduleApprovalActionSuccess = _a.jeScheduleApprovalActionSuccess, exports.jeScheduleApprovalActionFailure = _a.jeScheduleApprovalActionFailure, exports.clearJEScheduleApprovalRuleSaveStatus = _a.clearJEScheduleApprovalRuleSaveStatus;
|
|
260
271
|
exports.default = jeScheduleSetupApproverView.reducer;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "5.3.3-
|
|
3
|
+
"version": "5.3.3-betaGS3",
|
|
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",
|