@zeniai/client-epic-state 5.3.6-betaGS1 → 5.3.6-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/entity/jeScheduleApprovalRule/jeScheduleApprovalRulePayload.d.ts +4 -2
- package/lib/entity/jeScheduleApprovalRule/jeScheduleApprovalRulePayload.js +4 -2
- package/lib/entity/jeScheduleApprovalRule/jeScheduleApprovalRuleState.d.ts +6 -2
- package/lib/entity/jeScheduleApprovalRule/jeScheduleApprovalRuleTypes.d.ts +8 -3
- package/lib/entity/jeScheduleApprovalRule/jeScheduleApprovalRuleTypes.js +15 -2
- package/lib/esm/entity/jeScheduleApprovalRule/jeScheduleApprovalRulePayload.js +4 -2
- package/lib/esm/entity/jeScheduleApprovalRule/jeScheduleApprovalRuleTypes.js +14 -1
- package/lib/esm/index.js +2 -2
- package/lib/esm/view/scheduleView/scheduleDetailView/epics/fetchScheduleDetailsEpic.js +2 -0
- package/lib/esm/view/settings/jeScheduleApprovalRules/epic/jeScheduleApprovalActionEpic.js +11 -3
- package/lib/esm/view/settings/jeScheduleApprovalRules/epic/saveJEScheduleApprovalDraftEpic.js +14 -9
- package/lib/esm/view/settings/jeScheduleApprovalRules/jeScheduleSetupApproverViewPayload.js +9 -6
- package/lib/esm/view/settings/jeScheduleApprovalRules/jeScheduleSetupApproverViewReducer.js +2 -2
- package/lib/index.d.ts +2 -2
- package/lib/index.js +30 -28
- package/lib/view/scheduleView/scheduleDetailView/epics/fetchScheduleDetailsEpic.js +2 -0
- package/lib/view/settings/jeScheduleApprovalRules/epic/jeScheduleApprovalActionEpic.d.ts +3 -1
- package/lib/view/settings/jeScheduleApprovalRules/epic/jeScheduleApprovalActionEpic.js +11 -3
- package/lib/view/settings/jeScheduleApprovalRules/epic/saveJEScheduleApprovalDraftEpic.d.ts +3 -2
- package/lib/view/settings/jeScheduleApprovalRules/epic/saveJEScheduleApprovalDraftEpic.js +14 -9
- package/lib/view/settings/jeScheduleApprovalRules/jeScheduleSetupApproverViewPayload.d.ts +8 -0
- package/lib/view/settings/jeScheduleApprovalRules/jeScheduleSetupApproverViewPayload.js +9 -6
- package/lib/view/settings/jeScheduleApprovalRules/jeScheduleSetupApproverViewReducer.d.ts +3 -2
- package/lib/view/settings/jeScheduleApprovalRules/jeScheduleSetupApproverViewReducer.js +2 -2
- package/lib/view/taskManager/taskListView/taskListReducer.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ID } from '../../commonStateTypes/common';
|
|
2
2
|
import { ZeniAPIResponse, ZeniAPIStatus } from '../../responsePayload';
|
|
3
3
|
import { JEScheduleApprovalAPIStatus, JEScheduleApprovalInfo, JEScheduleApprovalRuleFormData, JEScheduleApprovalRuleState, JEScheduleApprovalStepState, JEScheduleApprover, JEScheduleApproverRole } from './jeScheduleApprovalRuleState';
|
|
4
|
-
import { JEScheduleType } from './jeScheduleApprovalRuleTypes';
|
|
4
|
+
import { JEApprovalEntriesSource, JEScheduleType } from './jeScheduleApprovalRuleTypes';
|
|
5
5
|
export interface JEScheduleApprovalUserActorPayload {
|
|
6
6
|
id: ID;
|
|
7
7
|
type: 'user';
|
|
@@ -61,7 +61,7 @@ export interface JEScheduleApproverPayload {
|
|
|
61
61
|
}
|
|
62
62
|
export interface JEScheduleApproverRolePayload {
|
|
63
63
|
label: string;
|
|
64
|
-
level: number;
|
|
64
|
+
level: number | null;
|
|
65
65
|
sub_type: string;
|
|
66
66
|
}
|
|
67
67
|
export interface JEScheduleApproversPayload {
|
|
@@ -74,6 +74,8 @@ export interface JEScheduleApprovalInfoPayload {
|
|
|
74
74
|
approver_roles: string[];
|
|
75
75
|
approver_user_ids: ID[];
|
|
76
76
|
can_approve: boolean;
|
|
77
|
+
entries_source: JEApprovalEntriesSource;
|
|
78
|
+
entries_version: number;
|
|
77
79
|
matched_rule_ids: ID[];
|
|
78
80
|
matched_rule_name: string | null;
|
|
79
81
|
matched_rule_owner: string | null;
|
|
@@ -95,7 +95,7 @@ const toJEScheduleApprover = (payload) => ({
|
|
|
95
95
|
exports.toJEScheduleApprover = toJEScheduleApprover;
|
|
96
96
|
const toJEScheduleApproverRole = (payload) => ({
|
|
97
97
|
subType: (0, jeScheduleApprovalRuleTypes_1.toJEApprovalRoleSubType)(payload.sub_type),
|
|
98
|
-
level: payload.level,
|
|
98
|
+
level: payload.level ?? undefined,
|
|
99
99
|
label: payload.label,
|
|
100
100
|
});
|
|
101
101
|
exports.toJEScheduleApproverRole = toJEScheduleApproverRole;
|
|
@@ -106,6 +106,8 @@ const toJEScheduleApprovalInfo = (payload) => {
|
|
|
106
106
|
return {
|
|
107
107
|
requiresApproval: payload.requires_approval,
|
|
108
108
|
canApprove: payload.can_approve,
|
|
109
|
+
entriesSource: payload.entries_source,
|
|
110
|
+
entriesVersion: payload.entries_version,
|
|
109
111
|
approverLabels: payload.approver_labels,
|
|
110
112
|
approverRoles: payload.approver_roles,
|
|
111
113
|
approverUserIds: payload.approver_user_ids,
|
|
@@ -139,7 +141,7 @@ const toJEApprovalErrorKind = (code) => {
|
|
|
139
141
|
};
|
|
140
142
|
const USER_FACING_MESSAGES = {
|
|
141
143
|
forbidden: 'You are not allowed to perform this action.',
|
|
142
|
-
conflict:
|
|
144
|
+
conflict: undefined, // already-claimed and stale-draft both arrive with a user-facing message
|
|
143
145
|
validation: undefined, // backend's status.message is already user-facing
|
|
144
146
|
not_found: 'JE schedule approval rules are not available for this account.',
|
|
145
147
|
unknown: undefined,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ID } from '../../commonStateTypes/common';
|
|
2
2
|
import { ZeniAPIStatus } from '../../responsePayload';
|
|
3
3
|
import { ZeniDate } from '../../zeniDayJS';
|
|
4
|
-
import { JEApprovalErrorKind, JEApprovalOwner, JEApprovalRoleSubType, JEApprovalStepAction, JEScheduleType } from './jeScheduleApprovalRuleTypes';
|
|
4
|
+
import { JEApprovalEntriesSource, JEApprovalErrorKind, JEApprovalOwner, JEApprovalRoleSubType, JEApprovalStepAction, JEScheduleType } from './jeScheduleApprovalRuleTypes';
|
|
5
5
|
/** A user eligible to approve JE schedules, as `/je-schedules/approvers` reports them. */
|
|
6
6
|
export interface JEScheduleApprover {
|
|
7
7
|
email: string;
|
|
@@ -14,8 +14,8 @@ export interface JEScheduleApprover {
|
|
|
14
14
|
}
|
|
15
15
|
export interface JEScheduleApproverRole {
|
|
16
16
|
label: string;
|
|
17
|
-
level: number;
|
|
18
17
|
subType: JEApprovalRoleSubType;
|
|
18
|
+
level?: number;
|
|
19
19
|
}
|
|
20
20
|
export interface JEScheduleApprovalNonUserActor {
|
|
21
21
|
subType: JEApprovalRoleSubType;
|
|
@@ -71,6 +71,10 @@ export interface JEScheduleApprovalInfo {
|
|
|
71
71
|
approverRoles: string[];
|
|
72
72
|
approverUserIds: ID[];
|
|
73
73
|
canApprove: boolean;
|
|
74
|
+
/** 'parked' when the detail read served the rows saved while held; 'live' otherwise. */
|
|
75
|
+
entriesSource: JEApprovalEntriesSource;
|
|
76
|
+
/** Echoed back on approve; the server answers 409 when the draft was re-parked since. */
|
|
77
|
+
entriesVersion: number;
|
|
74
78
|
matchedRuleIds: ID[];
|
|
75
79
|
message: string;
|
|
76
80
|
requiresApproval: boolean;
|
|
@@ -9,9 +9,12 @@ export type JEApprovalOwner = ReturnType<typeof toJEApprovalOwner>;
|
|
|
9
9
|
export declare const JE_APPROVAL_STEP_ACTIONS: readonly ["require_approval", "send_notification"];
|
|
10
10
|
export declare const toJEApprovalStepAction: (v: string) => "require_approval" | "send_notification";
|
|
11
11
|
export type JEApprovalStepAction = ReturnType<typeof toJEApprovalStepAction>;
|
|
12
|
-
export declare const
|
|
13
|
-
|
|
14
|
-
export declare const
|
|
12
|
+
export declare const JE_APPROVAL_ZENI_ROLE_SUB_TYPES: readonly ["reviewer", "controller"];
|
|
13
|
+
/** Role actors valid only on customer-owned rules. */
|
|
14
|
+
export declare const JE_APPROVAL_CUSTOMER_ROLE_SUB_TYPES: readonly ["customer_super_admin", "customer_finance_admin"];
|
|
15
|
+
export declare const JE_APPROVAL_ROLE_SUB_TYPES: readonly ["reviewer", "controller", "customer_super_admin", "customer_finance_admin"];
|
|
16
|
+
export declare const toJEApprovalRoleSubType: (v: string) => "reviewer" | "controller" | "customer_super_admin" | "customer_finance_admin";
|
|
17
|
+
export declare const toJEApprovalRoleSubTypeStrict: (v: string) => "reviewer" | "controller" | "customer_super_admin" | "customer_finance_admin" | undefined;
|
|
15
18
|
export type JEApprovalRoleSubType = ReturnType<typeof toJEApprovalRoleSubType>;
|
|
16
19
|
export declare const JE_APPROVAL_ACTIONS: readonly ["approve", "reject", "save_draft"];
|
|
17
20
|
export type JEApprovalAction = (typeof JE_APPROVAL_ACTIONS)[number];
|
|
@@ -25,5 +28,7 @@ export declare const JE_SCHEDULE_TYPE_LABELS: Record<JEScheduleType, string>;
|
|
|
25
28
|
* 403 = viewer may not edit (or touched the other owner's rule / is not an
|
|
26
29
|
* eligible approver / SoD); 409 = someone else already approved.
|
|
27
30
|
*/
|
|
31
|
+
export declare const JE_APPROVAL_ENTRIES_SOURCES: readonly ["parked", "live"];
|
|
32
|
+
export type JEApprovalEntriesSource = (typeof JE_APPROVAL_ENTRIES_SOURCES)[number];
|
|
28
33
|
export declare const JE_APPROVAL_ERROR_KINDS: readonly ["forbidden", "conflict", "validation", "not_found", "unknown"];
|
|
29
34
|
export type JEApprovalErrorKind = (typeof JE_APPROVAL_ERROR_KINDS)[number];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.JE_APPROVAL_ERROR_KINDS = exports.JE_SCHEDULE_TYPE_LABELS = exports.JE_LEVEL_LABELS = exports.JE_LEVEL_CONTROLLER = exports.JE_LEVEL_REVIEWER = exports.JE_LEVEL_PREPARER = exports.JE_APPROVAL_ACTIONS = exports.toJEApprovalRoleSubTypeStrict = exports.toJEApprovalRoleSubType = exports.JE_APPROVAL_ROLE_SUB_TYPES = exports.toJEApprovalStepAction = exports.JE_APPROVAL_STEP_ACTIONS = exports.toJEApprovalOwnerStrict = exports.toJEApprovalOwner = exports.JE_APPROVAL_OWNERS = exports.toJEScheduleTypeStrict = exports.toJEScheduleType = exports.JE_SCHEDULE_TYPES = void 0;
|
|
3
|
+
exports.JE_APPROVAL_ERROR_KINDS = exports.JE_APPROVAL_ENTRIES_SOURCES = exports.JE_SCHEDULE_TYPE_LABELS = exports.JE_LEVEL_LABELS = exports.JE_LEVEL_CONTROLLER = exports.JE_LEVEL_REVIEWER = exports.JE_LEVEL_PREPARER = exports.JE_APPROVAL_ACTIONS = exports.toJEApprovalRoleSubTypeStrict = exports.toJEApprovalRoleSubType = exports.JE_APPROVAL_ROLE_SUB_TYPES = exports.JE_APPROVAL_CUSTOMER_ROLE_SUB_TYPES = exports.JE_APPROVAL_ZENI_ROLE_SUB_TYPES = exports.toJEApprovalStepAction = exports.JE_APPROVAL_STEP_ACTIONS = exports.toJEApprovalOwnerStrict = exports.toJEApprovalOwner = exports.JE_APPROVAL_OWNERS = exports.toJEScheduleTypeStrict = exports.toJEScheduleType = exports.JE_SCHEDULE_TYPES = void 0;
|
|
4
4
|
const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
|
|
5
5
|
exports.JE_SCHEDULE_TYPES = [
|
|
6
6
|
'prepaid_expenses',
|
|
@@ -22,7 +22,19 @@ exports.JE_APPROVAL_STEP_ACTIONS = [
|
|
|
22
22
|
];
|
|
23
23
|
const toJEApprovalStepAction = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.JE_APPROVAL_STEP_ACTIONS);
|
|
24
24
|
exports.toJEApprovalStepAction = toJEApprovalStepAction;
|
|
25
|
-
exports.
|
|
25
|
+
exports.JE_APPROVAL_ZENI_ROLE_SUB_TYPES = [
|
|
26
|
+
'reviewer',
|
|
27
|
+
'controller',
|
|
28
|
+
];
|
|
29
|
+
/** Role actors valid only on customer-owned rules. */
|
|
30
|
+
exports.JE_APPROVAL_CUSTOMER_ROLE_SUB_TYPES = [
|
|
31
|
+
'customer_super_admin',
|
|
32
|
+
'customer_finance_admin',
|
|
33
|
+
];
|
|
34
|
+
exports.JE_APPROVAL_ROLE_SUB_TYPES = [
|
|
35
|
+
...exports.JE_APPROVAL_ZENI_ROLE_SUB_TYPES,
|
|
36
|
+
...exports.JE_APPROVAL_CUSTOMER_ROLE_SUB_TYPES,
|
|
37
|
+
];
|
|
26
38
|
const toJEApprovalRoleSubType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.JE_APPROVAL_ROLE_SUB_TYPES);
|
|
27
39
|
exports.toJEApprovalRoleSubType = toJEApprovalRoleSubType;
|
|
28
40
|
const toJEApprovalRoleSubTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v, exports.JE_APPROVAL_ROLE_SUB_TYPES);
|
|
@@ -46,6 +58,7 @@ exports.JE_SCHEDULE_TYPE_LABELS = {
|
|
|
46
58
|
* 403 = viewer may not edit (or touched the other owner's rule / is not an
|
|
47
59
|
* eligible approver / SoD); 409 = someone else already approved.
|
|
48
60
|
*/
|
|
61
|
+
exports.JE_APPROVAL_ENTRIES_SOURCES = ['parked', 'live'];
|
|
49
62
|
exports.JE_APPROVAL_ERROR_KINDS = [
|
|
50
63
|
'forbidden',
|
|
51
64
|
'conflict',
|
|
@@ -87,7 +87,7 @@ export const toJEScheduleApprover = (payload) => ({
|
|
|
87
87
|
});
|
|
88
88
|
export const toJEScheduleApproverRole = (payload) => ({
|
|
89
89
|
subType: toJEApprovalRoleSubType(payload.sub_type),
|
|
90
|
-
level: payload.level,
|
|
90
|
+
level: payload.level ?? undefined,
|
|
91
91
|
label: payload.label,
|
|
92
92
|
});
|
|
93
93
|
export const toJEScheduleApprovalInfo = (payload) => {
|
|
@@ -97,6 +97,8 @@ export const toJEScheduleApprovalInfo = (payload) => {
|
|
|
97
97
|
return {
|
|
98
98
|
requiresApproval: payload.requires_approval,
|
|
99
99
|
canApprove: payload.can_approve,
|
|
100
|
+
entriesSource: payload.entries_source,
|
|
101
|
+
entriesVersion: payload.entries_version,
|
|
100
102
|
approverLabels: payload.approver_labels,
|
|
101
103
|
approverRoles: payload.approver_roles,
|
|
102
104
|
approverUserIds: payload.approver_user_ids,
|
|
@@ -129,7 +131,7 @@ const toJEApprovalErrorKind = (code) => {
|
|
|
129
131
|
};
|
|
130
132
|
const USER_FACING_MESSAGES = {
|
|
131
133
|
forbidden: 'You are not allowed to perform this action.',
|
|
132
|
-
conflict:
|
|
134
|
+
conflict: undefined, // already-claimed and stale-draft both arrive with a user-facing message
|
|
133
135
|
validation: undefined, // backend's status.message is already user-facing
|
|
134
136
|
not_found: 'JE schedule approval rules are not available for this account.',
|
|
135
137
|
unknown: undefined,
|
|
@@ -14,7 +14,19 @@ export const JE_APPROVAL_STEP_ACTIONS = [
|
|
|
14
14
|
'send_notification',
|
|
15
15
|
];
|
|
16
16
|
export const toJEApprovalStepAction = (v) => stringToUnion(v, JE_APPROVAL_STEP_ACTIONS);
|
|
17
|
-
export const
|
|
17
|
+
export const JE_APPROVAL_ZENI_ROLE_SUB_TYPES = [
|
|
18
|
+
'reviewer',
|
|
19
|
+
'controller',
|
|
20
|
+
];
|
|
21
|
+
/** Role actors valid only on customer-owned rules. */
|
|
22
|
+
export const JE_APPROVAL_CUSTOMER_ROLE_SUB_TYPES = [
|
|
23
|
+
'customer_super_admin',
|
|
24
|
+
'customer_finance_admin',
|
|
25
|
+
];
|
|
26
|
+
export const JE_APPROVAL_ROLE_SUB_TYPES = [
|
|
27
|
+
...JE_APPROVAL_ZENI_ROLE_SUB_TYPES,
|
|
28
|
+
...JE_APPROVAL_CUSTOMER_ROLE_SUB_TYPES,
|
|
29
|
+
];
|
|
18
30
|
export const toJEApprovalRoleSubType = (v) => stringToUnion(v, JE_APPROVAL_ROLE_SUB_TYPES);
|
|
19
31
|
export const toJEApprovalRoleSubTypeStrict = (v) => stringToUnionStrict(v, JE_APPROVAL_ROLE_SUB_TYPES);
|
|
20
32
|
export const JE_APPROVAL_ACTIONS = ['approve', 'reject', 'save_draft'];
|
|
@@ -36,6 +48,7 @@ export const JE_SCHEDULE_TYPE_LABELS = {
|
|
|
36
48
|
* 403 = viewer may not edit (or touched the other owner's rule / is not an
|
|
37
49
|
* eligible approver / SoD); 409 = someone else already approved.
|
|
38
50
|
*/
|
|
51
|
+
export const JE_APPROVAL_ENTRIES_SOURCES = ['parked', 'live'];
|
|
39
52
|
export const JE_APPROVAL_ERROR_KINDS = [
|
|
40
53
|
'forbidden',
|
|
41
54
|
'conflict',
|
package/lib/esm/index.js
CHANGED
|
@@ -61,7 +61,7 @@ import { toEntityType, } from './entity/genericEntity/entity';
|
|
|
61
61
|
import { updateEntities } from './entity/genericEntity/entityReducer';
|
|
62
62
|
import { getEntityByEntityIDs } from './entity/genericEntity/entitySelector';
|
|
63
63
|
import { toJEScheduleApprovalAPIStatus, toJEScheduleApprovalInfo, toJEScheduleApprovalRulePayload, toJEScheduleApprovalRuleState, toJEScheduleApprover, toJEScheduleApproverRole, } from './entity/jeScheduleApprovalRule/jeScheduleApprovalRulePayload';
|
|
64
|
-
import { 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, } from './entity/jeScheduleApprovalRule/jeScheduleApprovalRuleTypes';
|
|
64
|
+
import { JE_APPROVAL_CUSTOMER_ROLE_SUB_TYPES, JE_APPROVAL_OWNERS, JE_APPROVAL_ROLE_SUB_TYPES, JE_APPROVAL_STEP_ACTIONS, JE_APPROVAL_ZENI_ROLE_SUB_TYPES, JE_LEVEL_CONTROLLER, JE_LEVEL_LABELS, JE_LEVEL_PREPARER, JE_LEVEL_REVIEWER, JE_SCHEDULE_TYPES, JE_SCHEDULE_TYPE_LABELS, toJEApprovalOwner, toJEApprovalRoleSubType, toJEApprovalStepAction, toJEScheduleType, toJEScheduleTypeStrict, } from './entity/jeScheduleApprovalRule/jeScheduleApprovalRuleTypes';
|
|
65
65
|
import { getOneTimeAccrualApprovalInfo, getScheduleApprovalInfo, } from './entity/jeSchedules/jeSchedulesSelector';
|
|
66
66
|
import { ALL_JE_SCHEDULE_IGNORE_REASONS, ALL_JE_SCHEDULE_REVERT_REASONS, ALL_ONE_TIME_ACCRUAL_IGNORE_REASONS, ALL_ONE_TIME_ACCRUAL_REVERT_REASONS, ALL_SCHEDULES_TYPES, getJEScheduleTransactionKey, toScheduleTypesType, toScheduleTypesTypeStrict, } from './entity/jeSchedules/jeSchedulesTypes';
|
|
67
67
|
import { ALL_MONTH_END_CLOSE_CHECKS_FREQUENCY, } from './entity/monthEndCloseChecks/monthEndCloseChecksState';
|
|
@@ -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, getOneTimeAccrualApprovalInfo, getScheduleApprovalInfo, fetchJEScheduleApprovalRules, fetchJEScheduleApprovers, saveJEScheduleApprovalRule, deleteJEScheduleApprovalRule, reorderJEScheduleApprovalRules, jeScheduleApprovalAction, saveJEScheduleApprovalDraft, approveJEScheduleWithLocalEdits, clearJEScheduleApprovalRuleSaveStatus, };
|
|
638
|
+
export { toJEScheduleApprovalAPIStatus, toJEScheduleApprovalInfo, toJEScheduleApprovalRulePayload, toJEScheduleApprovalRuleState, toJEScheduleApprover, toJEScheduleApproverRole, JE_APPROVAL_OWNERS, JE_APPROVAL_CUSTOMER_ROLE_SUB_TYPES, JE_APPROVAL_ROLE_SUB_TYPES, JE_APPROVAL_ZENI_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, getOneTimeAccrualApprovalInfo, 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, };
|
|
@@ -26,6 +26,8 @@ export const fetchScheduleDetailsEpic = (actions$, state$, zeniAPI) => actions$.
|
|
|
26
26
|
const selectedJEScheduleKey = getJEScheduleTransactionDetailKeyPayload(response.data.je_schedules[0].base_transaction);
|
|
27
27
|
updateActions.push(updateJESchedules(response.data.je_schedules), updateSelectedJEScheduleKey({ selectedJEScheduleKey }), updateJESchedulesDetails(response.data.je_schedules, response.data.scheduled_journal_entries), saveScheduleDetailsSuccessOrFailure('Not-Started'), initializeScheduleDetailLocalData(scheduleType, selectedJEScheduleKey, selectedJeScheduleDetailId), updateScheduleDetailsSuccess());
|
|
28
28
|
if (response.data.je_schedules[0].status.code === 'draft' &&
|
|
29
|
+
response.data.je_schedules[0].approval_info
|
|
30
|
+
?.entries_source !== 'parked' &&
|
|
29
31
|
isCompleteJEScheduleFormDataPresent(response.data.je_schedules[0])) {
|
|
30
32
|
// check if all required data is present then only createNewSchedule
|
|
31
33
|
updateActions.push(createNewSchedules({ scheduleType }));
|
|
@@ -4,11 +4,13 @@ import { toJEScheduleApprovalAPIStatus } from '../../../../entity/jeScheduleAppr
|
|
|
4
4
|
import { updateAccruedJESchedulesDetails, updateJESchedulesDetails, } from '../../../../entity/jeSchedules/jeSchedulesReducer';
|
|
5
5
|
import { openSnackbar } from '../../../../entity/snackbar/snackbarReducer';
|
|
6
6
|
import { createZeniAPIStatus, isSuccessResponse, } from '../../../../responsePayload';
|
|
7
|
+
import { fetchScheduleAccruedDetails } from '../../../scheduleView/scheduleAccruedDetailView/scheduleAccruedDetailReducer';
|
|
8
|
+
import { fetchScheduleDetails } from '../../../scheduleView/scheduleDetailView/scheduleDetailReducer';
|
|
7
9
|
import { isAccruedJESchedulePayload, toJEScheduleApprovalActionRequestBody, } from '../jeScheduleSetupApproverViewPayload';
|
|
8
10
|
import { jeScheduleApprovalAction, jeScheduleApprovalActionFailure, jeScheduleApprovalActionSuccess, } from '../jeScheduleSetupApproverViewReducer';
|
|
9
11
|
/** mergeMap: approving two different schedules back to back must not cancel the first. */
|
|
10
12
|
export const jeScheduleApprovalActionEpic = (actions$, _state$, zeniAPI) => actions$.pipe(filter(jeScheduleApprovalAction.match), mergeMap((action) => {
|
|
11
|
-
const { jeScheduleId, body } = action.payload;
|
|
13
|
+
const { jeScheduleId, body, refetch } = action.payload;
|
|
12
14
|
return zeniAPI
|
|
13
15
|
.postAndGetJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/schedules/${jeScheduleId}/approval-action`, toJEScheduleApprovalActionRequestBody(body))
|
|
14
16
|
.pipe(mergeMap((response) => {
|
|
@@ -27,7 +29,7 @@ export const jeScheduleApprovalActionEpic = (actions$, _state$, zeniAPI) => acti
|
|
|
27
29
|
]);
|
|
28
30
|
}
|
|
29
31
|
const status = toJEScheduleApprovalAPIStatus(response.status);
|
|
30
|
-
|
|
32
|
+
const failureActions = [
|
|
31
33
|
jeScheduleApprovalActionFailure(jeScheduleId, status),
|
|
32
34
|
openSnackbar({
|
|
33
35
|
messageSection: 'je_schedule_approval_action',
|
|
@@ -37,7 +39,13 @@ export const jeScheduleApprovalActionEpic = (actions$, _state$, zeniAPI) => acti
|
|
|
37
39
|
{ variableName: '_api-error_', variableValue: status.message },
|
|
38
40
|
],
|
|
39
41
|
}),
|
|
40
|
-
]
|
|
42
|
+
];
|
|
43
|
+
if (status.kind === 'conflict' && refetch != null) {
|
|
44
|
+
failureActions.push(refetch.isAccrued
|
|
45
|
+
? fetchScheduleAccruedDetails(refetch.scheduleType, jeScheduleId)
|
|
46
|
+
: fetchScheduleDetails(refetch.scheduleType, jeScheduleId, true));
|
|
47
|
+
}
|
|
48
|
+
return from(failureActions);
|
|
41
49
|
}), catchError((error) => of(jeScheduleApprovalActionFailure(jeScheduleId, createZeniAPIStatus('Unexpected Error', 'JE schedule approval action errored out' +
|
|
42
50
|
JSON.stringify(error))))));
|
|
43
51
|
}));
|
package/lib/esm/view/settings/jeScheduleApprovalRules/epic/saveJEScheduleApprovalDraftEpic.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { filter, map } from 'rxjs/operators';
|
|
2
|
+
import { getScheduleApprovalInfo } from '../../../../entity/jeSchedules/jeSchedulesSelector';
|
|
2
3
|
import { createZeniAPIStatus } from '../../../../responsePayload';
|
|
3
4
|
import { prepareScheduleAccruedDetailPayload, } from '../../../scheduleView/scheduleAccruedDetailView/scheduleAccruedDetailPayload';
|
|
4
5
|
import { prepareScheduleDetailPayload, } from '../../../scheduleView/scheduleDetailView/scheduleDetailPayload';
|
|
@@ -19,20 +20,24 @@ function buildDraftPayload(state, jeScheduleId, scheduleType, isAccrued) {
|
|
|
19
20
|
}
|
|
20
21
|
/**
|
|
21
22
|
* Builds the schedule body from the open schedule's local edits and reuses the approval-action call.
|
|
22
|
-
* Save Draft needs those edits
|
|
23
|
-
*
|
|
23
|
+
* Save Draft needs those edits. Approve sends the rows on screen plus the entries version it read,
|
|
24
|
+
* so the server posts what the approver saw (or 409s when the draft moved); it still goes out with
|
|
25
|
+
* neither when there are no local edits (the server falls back to the parked rows).
|
|
24
26
|
*/
|
|
25
27
|
export const saveJEScheduleApprovalDraftEpic = (actions$, state$) => actions$.pipe(filter((action) => saveJEScheduleApprovalDraft.match(action) ||
|
|
26
28
|
approveJEScheduleWithLocalEdits.match(action)), map((action) => {
|
|
27
29
|
const { jeScheduleId, scheduleType, isAccrued } = action.payload;
|
|
28
30
|
const payload = buildDraftPayload(state$.value, jeScheduleId, scheduleType, isAccrued);
|
|
31
|
+
const refetch = { scheduleType, isAccrued };
|
|
29
32
|
if (approveJEScheduleWithLocalEdits.match(action)) {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
const approvalEntriesVersion = getScheduleApprovalInfo(state$.value.jeSchedulesState, jeScheduleId)?.entriesVersion;
|
|
34
|
+
return jeScheduleApprovalAction(jeScheduleId, {
|
|
35
|
+
action: 'approve',
|
|
36
|
+
...(payload != null
|
|
37
|
+
? { scheduledJournalEntries: payload.scheduled_journal_entries }
|
|
38
|
+
: {}),
|
|
39
|
+
...(approvalEntriesVersion != null ? { approvalEntriesVersion } : {}),
|
|
40
|
+
}, refetch);
|
|
36
41
|
}
|
|
37
42
|
if (payload == null) {
|
|
38
43
|
return jeScheduleApprovalActionFailure(jeScheduleId, createZeniAPIStatus('Unexpected Error', 'No local schedule edits to save as draft'));
|
|
@@ -41,5 +46,5 @@ export const saveJEScheduleApprovalDraftEpic = (actions$, state$) => actions$.pi
|
|
|
41
46
|
action: 'save_draft',
|
|
42
47
|
jeSchedules: payload.je_schedules,
|
|
43
48
|
scheduledJournalEntries: payload.scheduled_journal_entries,
|
|
44
|
-
});
|
|
49
|
+
}, refetch);
|
|
45
50
|
}));
|
|
@@ -9,12 +9,15 @@ export const toJEScheduleApprovalRulesList = (payload) => ({
|
|
|
9
9
|
export const toJEScheduleApprovalActionRequestBody = (body) => {
|
|
10
10
|
switch (body.action) {
|
|
11
11
|
case 'approve':
|
|
12
|
-
return
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
scheduled_journal_entries: body.scheduledJournalEntries
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
return {
|
|
13
|
+
action: 'approve',
|
|
14
|
+
...(body.scheduledJournalEntries != null
|
|
15
|
+
? { scheduled_journal_entries: body.scheduledJournalEntries }
|
|
16
|
+
: {}),
|
|
17
|
+
...(body.approvalEntriesVersion != null
|
|
18
|
+
? { approval_entries_version: body.approvalEntriesVersion }
|
|
19
|
+
: {}),
|
|
20
|
+
};
|
|
18
21
|
case 'reject':
|
|
19
22
|
return { action: 'reject', rejection_reason: body.rejectionReason };
|
|
20
23
|
case 'save_draft':
|
|
@@ -203,8 +203,8 @@ const jeScheduleSetupApproverView = createSlice({
|
|
|
203
203
|
error: undefined,
|
|
204
204
|
};
|
|
205
205
|
},
|
|
206
|
-
prepare(jeScheduleId, body) {
|
|
207
|
-
return { payload: { jeScheduleId, body } };
|
|
206
|
+
prepare(jeScheduleId, body, refetch) {
|
|
207
|
+
return { payload: { jeScheduleId, body, refetch } };
|
|
208
208
|
},
|
|
209
209
|
},
|
|
210
210
|
saveJEScheduleApprovalDraft: {
|
package/lib/index.d.ts
CHANGED
|
@@ -109,7 +109,7 @@ import { Insight } from './entity/insights/insightState';
|
|
|
109
109
|
import { InsightSummary } from './entity/insights/insightSummary';
|
|
110
110
|
import { JEScheduleApprovalInfoPayload, JEScheduleApprovalRulePayload, JEScheduleApprovalRuleRequestBody, JEScheduleApprovalRuleSavePayload, JEScheduleApprovalRulesListPayload, JEScheduleApproverPayload, JEScheduleApproverRolePayload, JEScheduleApproversPayload, toJEScheduleApprovalAPIStatus, toJEScheduleApprovalInfo, toJEScheduleApprovalRulePayload, toJEScheduleApprovalRuleState, toJEScheduleApprover, toJEScheduleApproverRole } from './entity/jeScheduleApprovalRule/jeScheduleApprovalRulePayload';
|
|
111
111
|
import { JEScheduleApprovalAPIStatus, JEScheduleApprovalCriteria, JEScheduleApprovalInfo, JEScheduleApprovalNonUserActor, JEScheduleApprovalRule, JEScheduleApprovalRuleFormData, JEScheduleApprovalRuleState, JEScheduleApprovalStep, JEScheduleApprovalStepState, JEScheduleApprover, JEScheduleApproverRole } from './entity/jeScheduleApprovalRule/jeScheduleApprovalRuleState';
|
|
112
|
-
import { 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 } from './entity/jeScheduleApprovalRule/jeScheduleApprovalRuleTypes';
|
|
112
|
+
import { JEApprovalAction, JEApprovalErrorKind, JEApprovalOwner, JEApprovalRoleSubType, JEApprovalStepAction, JEScheduleType, JE_APPROVAL_CUSTOMER_ROLE_SUB_TYPES, JE_APPROVAL_OWNERS, JE_APPROVAL_ROLE_SUB_TYPES, JE_APPROVAL_STEP_ACTIONS, JE_APPROVAL_ZENI_ROLE_SUB_TYPES, JE_LEVEL_CONTROLLER, JE_LEVEL_LABELS, JE_LEVEL_PREPARER, JE_LEVEL_REVIEWER, JE_SCHEDULE_TYPES, JE_SCHEDULE_TYPE_LABELS, toJEApprovalOwner, toJEApprovalRoleSubType, toJEApprovalStepAction, toJEScheduleType, toJEScheduleTypeStrict } from './entity/jeScheduleApprovalRule/jeScheduleApprovalRuleTypes';
|
|
113
113
|
import { JEAccruedSchedule, JEOneTimeAccrual, JEScheduledTransaction, ScheduledJournalEntry, getOneTimeAccrualApprovalInfo, getScheduleApprovalInfo } from './entity/jeSchedules/jeSchedulesSelector';
|
|
114
114
|
import { JEOneTimeAccrualAiSuggestion, JEOneTimeAccrualBillingPattern, JEOneTimeAccrualCleared, JEOneTimeAccrualMatchSuggestion, JEOneTimeAccrualMonthlyTotal, JEOneTimeAccrualProfileSnapshot, JEScheduleAISummaries, JEScheduleFieldRecommendation, JEScheduleSummary, OneTimeAccrualEdits } from './entity/jeSchedules/jeSchedulesState';
|
|
115
115
|
import { ALL_JE_SCHEDULE_IGNORE_REASONS, ALL_JE_SCHEDULE_REVERT_REASONS, ALL_ONE_TIME_ACCRUAL_IGNORE_REASONS, ALL_ONE_TIME_ACCRUAL_REVERT_REASONS, ALL_SCHEDULES_TYPES, JEOneTimeAccrualKey, JEScheduleIgnoreReasonType, JEScheduleKey, JEScheduleRevertReasonType, JEScheduleTransactionKey, JournalEntryErrorCodeType, OneTimeAccrualIgnoreReasonType, OneTimeAccrualRevertReasonType, ScheduleJournalEntryStatusCodeType, ScheduleStatusCodeType, ScheduleTransactionID, ScheduleTypes, getJEScheduleTransactionKey, toScheduleTypesType, toScheduleTypesTypeStrict } from './entity/jeSchedules/jeSchedulesTypes';
|
|
@@ -908,7 +908,7 @@ export { SubscriptionPaymentAccount };
|
|
|
908
908
|
export { PreviousBillsSelectorView, InvoiceProcessingPayload, InvoiceProcessingResponse, isSuccessResponse, isInvalidSessionError, isAccessDeniedError, };
|
|
909
909
|
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, };
|
|
910
910
|
export { ApprovalRuleUpdateData, ApprovalRuleCreateData, BillPayApprovalRuleWithUser, ApprovalUpdateActionType, ApproverViewUpdateData, BillPaySetupApproverViewState, BillPaySetupApproverView, BillPaySetupApproverUpdateDataView, getBillPaySetupApproverView, getBillPaySetupApproverUpdateDataView, fetchBillPaySetupApproverView, fetchBillPayApproversDetails, fetchBillPayApproversList, deleteBillPayApprovalRule, reorderBillPayApprovalRules, saveBillPaySetupApproverViewUpdateData, saveBillPaySetupApproverViewUpdates, setBillsSetupApproverViewListeningToPusherEvent, initializeBillPaySetupApproverViewUpdateData, clearBillPaySetupApproverViewUpdateData, };
|
|
911
|
-
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, getOneTimeAccrualApprovalInfo, getScheduleApprovalInfo, fetchJEScheduleApprovalRules, fetchJEScheduleApprovers, saveJEScheduleApprovalRule, deleteJEScheduleApprovalRule, reorderJEScheduleApprovalRules, jeScheduleApprovalAction, saveJEScheduleApprovalDraft, approveJEScheduleWithLocalEdits, clearJEScheduleApprovalRuleSaveStatus, };
|
|
911
|
+
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_CUSTOMER_ROLE_SUB_TYPES, JE_APPROVAL_ROLE_SUB_TYPES, JE_APPROVAL_ZENI_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, getOneTimeAccrualApprovalInfo, getScheduleApprovalInfo, fetchJEScheduleApprovalRules, fetchJEScheduleApprovers, saveJEScheduleApprovalRule, deleteJEScheduleApprovalRule, reorderJEScheduleApprovalRules, jeScheduleApprovalAction, saveJEScheduleApprovalDraft, approveJEScheduleWithLocalEdits, clearJEScheduleApprovalRuleSaveStatus, };
|
|
912
912
|
export { RemiApprovalRuleWithUser, RemiSetupApproverViewState, RemiSetupApproverView, RemiSetupApproverUpdateDataView, getRemiSetupApproverView, getRemiSetupApproverUpdateDataView, fetchRemiSetupApproverView, fetchRemiApproversList, fetchRemiApproversDetails, deleteRemiApprovalRule, reorderRemiApprovalRules, saveRemiSetupApproverViewUpdateData, saveRemiSetupApproverViewUpdates, initializeRemiSetupApproverViewUpdateData, setRemiSetupApproverViewListeningToPusherEvent, clearRemiSetupApproverViewUpdateData, };
|
|
913
913
|
export { RemiDetailViewSelector, getRemiDetailView, RemiActivity, RemiDetails, checkApproveRejectBtnShowForRemi, };
|
|
914
914
|
export { RemiApprovalType, RemiDetailView, DuplicateLine };
|
package/lib/index.js
CHANGED
|
@@ -60,34 +60,34 @@ exports.fetchRemiList = exports.getRemiDownloadList = exports.getRemiList = expo
|
|
|
60
60
|
exports.updateBillDetailSaveBillCode = exports.updateSelectedBillId = exports.updateSubTab = exports.updateTab = exports.fetchBillListPerTab = exports.fetchBillList = exports.fetchProjectList = exports.getProjectList = exports.fetchClassList = exports.getClassList = exports.checkIfCreatorIsApprover = exports.discardOutsideZeniPaymentLocalData = exports.updateOutsideZeniPaymentLocalData = exports.incrementRemiBulkActionProcessedCount = exports.clearRemiBulkActionView = exports.autoReviewPendingApprovalRemis = exports.submitDraftRemisBulkAction = exports.cancelOrDeleteRemisBulkAction = exports.approveOrRejectRemisBulkAction = exports.reviewDraftRemisBulkAction = exports.clearAllRemisFromBulkActionList = exports.removeRemiFromBulkActionList = exports.updateRemisBulkActionList = exports.getRemisBulkOperationProgress = exports.getRemisBulkReviewView = exports.isBillConditionallyValid = exports.clearBillPayBulkActionView = exports.getBillsBulkOperationProgress = exports.incrementBulkActionProcessedCount = exports.autoReviewPendingApprovalBills = exports.submitDraftBillsBulkAction = exports.cancelOrDeleteBillsBulkAction = exports.approveOrRejectBillsBulkAction = exports.validateBillsBulkAction = exports.getBillsBulkReviewView = exports.clearAllBillsFromBulkActionList = exports.removeBillFromBulkActionList = exports.updateBillsBulkActionList = exports.updateBillListDownloadUIState = exports.updateRemiListDownloadUIState = exports.REIMBURSEMENT_FILTER_CATEGORIES_RESTRICTED = exports.REIMBURSEMENT_FILTER_CATEGORIES = exports.updateRemiListFilterResult = exports.updateBillListFilterResult = exports.updateRemiListSearchResult = exports.updateRemiListUIState = exports.updateRemiDetailSaveRemiCode = exports.updateRemiListSubTab = exports.updateRemiListTab = exports.fetchRemiListPerTab = void 0;
|
|
61
61
|
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 = exports.fetchVendorByNameAndParseInvoice = void 0;
|
|
62
62
|
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 = exports.fetchZeniAccountSetupView = void 0;
|
|
63
|
-
exports.
|
|
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.CUSTOMER_REVENUE_KEYS = exports.isCustomersTabVisible = exports.getCustomerSummaryTrendFilter = exports.getCustomerSummarySelectedTabType = exports.getCustomerSummaryList = exports.getCustomerSummaryDetail = exports.getCustomerSummaryAllTransactionsTabData = exports.updateCustomerTrendFilter = exports.updateCustomerSummarySortUiState = exports.updateCustomerSummaryScrollYOffset = exports.updateCustomerSummaryRevenueSelection = exports.updateCustomerDetailSelectedTab = exports.updateCustomerAllTransactionsTabData = exports.saveCustomerSummaryDetail = exports.resetCustomerSummaryDetailUiState = exports.fetchCustomerSummaryList = exports.fetchCustomerSummaryDetail = exports.isPendingReviewAccrual = exports.isManuallyReversedAccrual = exports.isAutoReversedAccrual = exports.getExpenseAutomationActualMatchingView = exports.getExpenseAutomationActualMatchingMatchView = exports.parseActualMatchingMatchId = exports.getCloseMatchAfterUndoMatchId = exports.getCloseMatchAfterUndo = exports.getCloseMatchAfterIgnoreMatchId = exports.getActualMatchingMatchModalConfirmStatus = exports.getActualMatchingReversalDate = exports.getActualMatchingAmount = exports.isPendingReviewRow = void 0;
|
|
63
|
+
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_ZENI_ROLE_SUB_TYPES = exports.JE_APPROVAL_ROLE_SUB_TYPES = exports.JE_APPROVAL_CUSTOMER_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 = exports.updateMileageDetails = void 0;
|
|
64
|
+
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.getOneTimeAccrualApprovalInfo = exports.getApprovalStartsAt = exports.getJEScheduleOwnRuleCount = exports.getJEScheduleOtherRules = exports.getJEScheduleOwnRules = exports.getJEScheduleSetupApproverView = exports.toJEScheduleApprovalRulesList = exports.toJEScheduleTypeStrict = exports.toJEScheduleType = exports.toJEApprovalStepAction = void 0;
|
|
65
|
+
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 = exports.saveRemiDetail = exports.removeFileFromRemiUpdatesInLocalStore = exports.discardRemiUpdatesInLocalStore = exports.fetchCurrencyConversionValue = void 0;
|
|
66
|
+
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 = exports.retryBankAccountConnectionForOnboarding = exports.sendOnboardingCustomerViewInvite = exports.resetNewOnboardedCustomerId = exports.updateOnboardingCustomerDataInLocalStore = void 0;
|
|
67
|
+
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 = exports.fetchRecommendationByEntityId = exports.fetchEntityRecommendationsForLineUpdate = exports.fetchEntityRecommendationsByTransactionId = exports.fetchVendorsFiling1099Download = void 0;
|
|
68
|
+
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 = exports.getOnboardingPlaidLinkToken = exports.fetchOnboardingCustomerSetupView = exports.fetchOnboardingCustomerView = exports.isZeniClearingAccount = void 0;
|
|
69
|
+
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 = exports.getInternationalWireView = exports.fetchWiseRedirectStatus = exports.getWiseRedirect = exports.saveMagicLinkAddressInLocalStore = void 0;
|
|
70
|
+
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 = exports.initiateChargeCardRepayment = exports.fetchChargeCardRepaymentDetail = exports.clearChargeCardRepaymentDetail = exports.getMyRequestOnHoldChargeCardListWithShippingAddress = void 0;
|
|
71
|
+
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 = exports.getChargeCardSetupViewDetails = exports.applyAiCardCreationFormDraftUpdate = exports.deriveAiCardRowsFromTeams = exports.buildAiCardCreationFormDraftSeed = void 0;
|
|
72
|
+
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 = exports.unlockChargeCards = exports.lockChargeCards = exports.revokeChargeCardsInvite = exports.updateRowActionCardId = void 0;
|
|
73
|
+
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 = exports.fetchExpenseAutomationActualMatching = exports.clearMatchNewModal = exports.closeMatchNewModal = exports.clearExpenseAutomationActualMatchingView = void 0;
|
|
74
|
+
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 = exports.fetchScheduleDetails = exports.updateSelectedJEScheduleKey = exports.updateScheduleListSortState = exports.updateScheduleListScrollState = void 0;
|
|
75
|
+
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 = exports.updateSelectedGlobalMerchant = exports.fetchVendorGlobalReviewView = exports.rejectVendorGlobalReview = exports.approveVendorGlobalReview = void 0;
|
|
76
|
+
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 = exports.sortSubtasks = exports.getTaskUpdates = exports.toTaskListGroupByKeyTypeStrict = exports.toTaskListGroupByKeyType = void 0;
|
|
77
|
+
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 = exports.fetchNotificationUnreadCountSuccess = exports.fetchNotificationUnreadCount = exports.fetchNotificationView = exports.toNotificationTabTypeStrict = void 0;
|
|
78
|
+
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 = exports.getRecurringEndDateFromCount = exports.getMinAllowedEndDate = exports.SEMI_WEEKLY_REQUIRED_DAYS_COUNT = exports.ALL_WEEK_DAYS = void 0;
|
|
79
|
+
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 = exports.clearSkillDetail = exports.clearLastContextMessage = exports.clearDeleteChatSessionStatus = exports.clearCurrentSessionId = void 0;
|
|
80
|
+
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 = exports.getSkillVersions = exports.getSkillVersionBody = exports.getSkillsEnabled = exports.getSkills = void 0;
|
|
81
|
+
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 = exports.updateCreatedCardPolicyTemplate = exports.updateCardPolicyVendorOptionsFailure = exports.updateCardPolicyVendorOptions = exports.updateCardPolicyTemplates = void 0;
|
|
82
|
+
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 = exports.updateAiCardPolicyFormDraftFromUploadPlan = exports.updateAiCardPolicyFormDraft = exports.seedManualCardPolicyFormDraft = exports.seedAiCardPolicyFormDraft = void 0;
|
|
83
|
+
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 = exports.executeTreasuryTransferMoney = exports.getTreasuryDetail = exports.updateTreasuryTransactionListUIState = exports.fetchTreasuryTransactionList = void 0;
|
|
84
|
+
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 = exports.fetchInvoiceKPIs = exports.fetchInvoiceCounts = exports.getInvoicesByIds = exports.getInvoiceById = void 0;
|
|
85
|
+
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 = exports.getInvoicingAuditView = exports.fetchInvoicingAuditLog = exports.getInvoicingOverview = exports.buildPeriodOptions = void 0;
|
|
86
|
+
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 = exports.updateInvoicingCouponFormDraft = exports.submitInvoicingCouponForm = exports.saveInvoicingCoupon = exports.resetEditInvoicingCouponDetailView = void 0;
|
|
87
|
+
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 = exports.getInvoicingPlaidLinkToken = exports.getInvoicingPaymentMethodSaveState = exports.getInvoicingPaymentLinkSendState = exports.sendInvoicingPaymentLink = void 0;
|
|
88
|
+
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 = exports.fetchInvoicingCouponCounts = exports.updateInvoicingCoupons = exports.removeInvoicingCoupon = exports.getInvoicingCreditNoteDetail = void 0;
|
|
89
|
+
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 = exports.disconnectInvoicingStripe = exports.connectInvoicingStripe = exports.getLowestInvoicingCatalogPricePointAmount = exports.getInvoicingCatalogItemById = void 0;
|
|
90
|
+
exports.CUSTOMER_REVENUE_KEYS = exports.isCustomersTabVisible = exports.getCustomerSummaryTrendFilter = exports.getCustomerSummarySelectedTabType = exports.getCustomerSummaryList = exports.getCustomerSummaryDetail = exports.getCustomerSummaryAllTransactionsTabData = exports.updateCustomerTrendFilter = exports.updateCustomerSummarySortUiState = exports.updateCustomerSummaryScrollYOffset = exports.updateCustomerSummaryRevenueSelection = exports.updateCustomerDetailSelectedTab = exports.updateCustomerAllTransactionsTabData = exports.saveCustomerSummaryDetail = exports.resetCustomerSummaryDetailUiState = exports.fetchCustomerSummaryList = exports.fetchCustomerSummaryDetail = exports.isPendingReviewAccrual = exports.isManuallyReversedAccrual = exports.isAutoReversedAccrual = exports.getExpenseAutomationActualMatchingView = exports.getExpenseAutomationActualMatchingMatchView = exports.parseActualMatchingMatchId = exports.getCloseMatchAfterUndoMatchId = exports.getCloseMatchAfterUndo = exports.getCloseMatchAfterIgnoreMatchId = exports.getActualMatchingMatchModalConfirmStatus = exports.getActualMatchingReversalDate = exports.getActualMatchingAmount = exports.isPendingReviewRow = exports.isRenderableOneTimeAccrual = exports.isOneTimeAccrualRow = 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; } });
|
|
@@ -305,9 +305,11 @@ Object.defineProperty(exports, "toJEScheduleApprovalRuleState", { enumerable: tr
|
|
|
305
305
|
Object.defineProperty(exports, "toJEScheduleApprover", { enumerable: true, get: function () { return jeScheduleApprovalRulePayload_1.toJEScheduleApprover; } });
|
|
306
306
|
Object.defineProperty(exports, "toJEScheduleApproverRole", { enumerable: true, get: function () { return jeScheduleApprovalRulePayload_1.toJEScheduleApproverRole; } });
|
|
307
307
|
const jeScheduleApprovalRuleTypes_1 = require("./entity/jeScheduleApprovalRule/jeScheduleApprovalRuleTypes");
|
|
308
|
+
Object.defineProperty(exports, "JE_APPROVAL_CUSTOMER_ROLE_SUB_TYPES", { enumerable: true, get: function () { return jeScheduleApprovalRuleTypes_1.JE_APPROVAL_CUSTOMER_ROLE_SUB_TYPES; } });
|
|
308
309
|
Object.defineProperty(exports, "JE_APPROVAL_OWNERS", { enumerable: true, get: function () { return jeScheduleApprovalRuleTypes_1.JE_APPROVAL_OWNERS; } });
|
|
309
310
|
Object.defineProperty(exports, "JE_APPROVAL_ROLE_SUB_TYPES", { enumerable: true, get: function () { return jeScheduleApprovalRuleTypes_1.JE_APPROVAL_ROLE_SUB_TYPES; } });
|
|
310
311
|
Object.defineProperty(exports, "JE_APPROVAL_STEP_ACTIONS", { enumerable: true, get: function () { return jeScheduleApprovalRuleTypes_1.JE_APPROVAL_STEP_ACTIONS; } });
|
|
312
|
+
Object.defineProperty(exports, "JE_APPROVAL_ZENI_ROLE_SUB_TYPES", { enumerable: true, get: function () { return jeScheduleApprovalRuleTypes_1.JE_APPROVAL_ZENI_ROLE_SUB_TYPES; } });
|
|
311
313
|
Object.defineProperty(exports, "JE_LEVEL_CONTROLLER", { enumerable: true, get: function () { return jeScheduleApprovalRuleTypes_1.JE_LEVEL_CONTROLLER; } });
|
|
312
314
|
Object.defineProperty(exports, "JE_LEVEL_LABELS", { enumerable: true, get: function () { return jeScheduleApprovalRuleTypes_1.JE_LEVEL_LABELS; } });
|
|
313
315
|
Object.defineProperty(exports, "JE_LEVEL_PREPARER", { enumerable: true, get: function () { return jeScheduleApprovalRuleTypes_1.JE_LEVEL_PREPARER; } });
|
|
@@ -29,6 +29,8 @@ const fetchScheduleDetailsEpic = (actions$, state$, zeniAPI) => actions$.pipe((0
|
|
|
29
29
|
const selectedJEScheduleKey = (0, jeSchedulesPayload_1.getJEScheduleTransactionDetailKeyPayload)(response.data.je_schedules[0].base_transaction);
|
|
30
30
|
updateActions.push((0, jeSchedulesReducer_1.updateJESchedules)(response.data.je_schedules), (0, scheduleDetailReducer_1.updateSelectedJEScheduleKey)({ selectedJEScheduleKey }), (0, jeSchedulesReducer_1.updateJESchedulesDetails)(response.data.je_schedules, response.data.scheduled_journal_entries), (0, scheduleDetailReducer_1.saveScheduleDetailsSuccessOrFailure)('Not-Started'), (0, scheduleDetailReducer_1.initializeScheduleDetailLocalData)(scheduleType, selectedJEScheduleKey, selectedJeScheduleDetailId), (0, scheduleDetailReducer_1.updateScheduleDetailsSuccess)());
|
|
31
31
|
if (response.data.je_schedules[0].status.code === 'draft' &&
|
|
32
|
+
response.data.je_schedules[0].approval_info
|
|
33
|
+
?.entries_source !== 'parked' &&
|
|
32
34
|
isCompleteJEScheduleFormDataPresent(response.data.je_schedules[0])) {
|
|
33
35
|
// check if all required data is present then only createNewSchedule
|
|
34
36
|
updateActions.push((0, scheduleDetailReducer_1.createNewSchedules)({ scheduleType }));
|
|
@@ -4,7 +4,9 @@ import { updateAccruedJESchedulesDetails, updateJESchedulesDetails } from '../..
|
|
|
4
4
|
import { openSnackbar } from '../../../../entity/snackbar/snackbarReducer';
|
|
5
5
|
import { RootState } from '../../../../rootStateTypes';
|
|
6
6
|
import { ZeniAPI } from '../../../../zeniAPI';
|
|
7
|
+
import { fetchScheduleAccruedDetails } from '../../../scheduleView/scheduleAccruedDetailView/scheduleAccruedDetailReducer';
|
|
8
|
+
import { fetchScheduleDetails } from '../../../scheduleView/scheduleDetailView/scheduleDetailReducer';
|
|
7
9
|
import { jeScheduleApprovalAction, jeScheduleApprovalActionFailure, jeScheduleApprovalActionSuccess } from '../jeScheduleSetupApproverViewReducer';
|
|
8
|
-
export type ActionType = ReturnType<typeof jeScheduleApprovalAction> | ReturnType<typeof updateJESchedulesDetails> | ReturnType<typeof updateAccruedJESchedulesDetails> | ReturnType<typeof openSnackbar> | ReturnType<typeof jeScheduleApprovalActionSuccess> | ReturnType<typeof jeScheduleApprovalActionFailure>;
|
|
10
|
+
export type ActionType = ReturnType<typeof jeScheduleApprovalAction> | ReturnType<typeof updateJESchedulesDetails> | ReturnType<typeof updateAccruedJESchedulesDetails> | ReturnType<typeof openSnackbar> | ReturnType<typeof jeScheduleApprovalActionSuccess> | ReturnType<typeof jeScheduleApprovalActionFailure> | ReturnType<typeof fetchScheduleDetails> | ReturnType<typeof fetchScheduleAccruedDetails>;
|
|
9
11
|
/** mergeMap: approving two different schedules back to back must not cancel the first. */
|
|
10
12
|
export declare const jeScheduleApprovalActionEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|
|
@@ -7,11 +7,13 @@ const jeScheduleApprovalRulePayload_1 = require("../../../../entity/jeScheduleAp
|
|
|
7
7
|
const jeSchedulesReducer_1 = require("../../../../entity/jeSchedules/jeSchedulesReducer");
|
|
8
8
|
const snackbarReducer_1 = require("../../../../entity/snackbar/snackbarReducer");
|
|
9
9
|
const responsePayload_1 = require("../../../../responsePayload");
|
|
10
|
+
const scheduleAccruedDetailReducer_1 = require("../../../scheduleView/scheduleAccruedDetailView/scheduleAccruedDetailReducer");
|
|
11
|
+
const scheduleDetailReducer_1 = require("../../../scheduleView/scheduleDetailView/scheduleDetailReducer");
|
|
10
12
|
const jeScheduleSetupApproverViewPayload_1 = require("../jeScheduleSetupApproverViewPayload");
|
|
11
13
|
const jeScheduleSetupApproverViewReducer_1 = require("../jeScheduleSetupApproverViewReducer");
|
|
12
14
|
/** mergeMap: approving two different schedules back to back must not cancel the first. */
|
|
13
15
|
const jeScheduleApprovalActionEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(jeScheduleSetupApproverViewReducer_1.jeScheduleApprovalAction.match), (0, operators_1.mergeMap)((action) => {
|
|
14
|
-
const { jeScheduleId, body } = action.payload;
|
|
16
|
+
const { jeScheduleId, body, refetch } = action.payload;
|
|
15
17
|
return zeniAPI
|
|
16
18
|
.postAndGetJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/schedules/${jeScheduleId}/approval-action`, (0, jeScheduleSetupApproverViewPayload_1.toJEScheduleApprovalActionRequestBody)(body))
|
|
17
19
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
@@ -30,7 +32,7 @@ const jeScheduleApprovalActionEpic = (actions$, _state$, zeniAPI) => actions$.pi
|
|
|
30
32
|
]);
|
|
31
33
|
}
|
|
32
34
|
const status = (0, jeScheduleApprovalRulePayload_1.toJEScheduleApprovalAPIStatus)(response.status);
|
|
33
|
-
|
|
35
|
+
const failureActions = [
|
|
34
36
|
(0, jeScheduleSetupApproverViewReducer_1.jeScheduleApprovalActionFailure)(jeScheduleId, status),
|
|
35
37
|
(0, snackbarReducer_1.openSnackbar)({
|
|
36
38
|
messageSection: 'je_schedule_approval_action',
|
|
@@ -40,7 +42,13 @@ const jeScheduleApprovalActionEpic = (actions$, _state$, zeniAPI) => actions$.pi
|
|
|
40
42
|
{ variableName: '_api-error_', variableValue: status.message },
|
|
41
43
|
],
|
|
42
44
|
}),
|
|
43
|
-
]
|
|
45
|
+
];
|
|
46
|
+
if (status.kind === 'conflict' && refetch != null) {
|
|
47
|
+
failureActions.push(refetch.isAccrued
|
|
48
|
+
? (0, scheduleAccruedDetailReducer_1.fetchScheduleAccruedDetails)(refetch.scheduleType, jeScheduleId)
|
|
49
|
+
: (0, scheduleDetailReducer_1.fetchScheduleDetails)(refetch.scheduleType, jeScheduleId, true));
|
|
50
|
+
}
|
|
51
|
+
return (0, rxjs_1.from)(failureActions);
|
|
44
52
|
}), (0, operators_1.catchError)((error) => (0, rxjs_1.of)((0, jeScheduleSetupApproverViewReducer_1.jeScheduleApprovalActionFailure)(jeScheduleId, (0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', 'JE schedule approval action errored out' +
|
|
45
53
|
JSON.stringify(error))))));
|
|
46
54
|
}));
|
|
@@ -4,7 +4,8 @@ import { approveJEScheduleWithLocalEdits, jeScheduleApprovalAction, jeScheduleAp
|
|
|
4
4
|
export type ActionType = ReturnType<typeof saveJEScheduleApprovalDraft> | ReturnType<typeof approveJEScheduleWithLocalEdits> | ReturnType<typeof jeScheduleApprovalAction> | ReturnType<typeof jeScheduleApprovalActionFailure>;
|
|
5
5
|
/**
|
|
6
6
|
* Builds the schedule body from the open schedule's local edits and reuses the approval-action call.
|
|
7
|
-
* Save Draft needs those edits
|
|
8
|
-
*
|
|
7
|
+
* Save Draft needs those edits. Approve sends the rows on screen plus the entries version it read,
|
|
8
|
+
* so the server posts what the approver saw (or 409s when the draft moved); it still goes out with
|
|
9
|
+
* neither when there are no local edits (the server falls back to the parked rows).
|
|
9
10
|
*/
|
|
10
11
|
export declare const saveJEScheduleApprovalDraftEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>) => import("rxjs").Observable<ActionType>;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.saveJEScheduleApprovalDraftEpic = void 0;
|
|
4
4
|
const operators_1 = require("rxjs/operators");
|
|
5
|
+
const jeSchedulesSelector_1 = require("../../../../entity/jeSchedules/jeSchedulesSelector");
|
|
5
6
|
const responsePayload_1 = require("../../../../responsePayload");
|
|
6
7
|
const scheduleAccruedDetailPayload_1 = require("../../../scheduleView/scheduleAccruedDetailView/scheduleAccruedDetailPayload");
|
|
7
8
|
const scheduleDetailPayload_1 = require("../../../scheduleView/scheduleDetailView/scheduleDetailPayload");
|
|
@@ -22,20 +23,24 @@ function buildDraftPayload(state, jeScheduleId, scheduleType, isAccrued) {
|
|
|
22
23
|
}
|
|
23
24
|
/**
|
|
24
25
|
* Builds the schedule body from the open schedule's local edits and reuses the approval-action call.
|
|
25
|
-
* Save Draft needs those edits
|
|
26
|
-
*
|
|
26
|
+
* Save Draft needs those edits. Approve sends the rows on screen plus the entries version it read,
|
|
27
|
+
* so the server posts what the approver saw (or 409s when the draft moved); it still goes out with
|
|
28
|
+
* neither when there are no local edits (the server falls back to the parked rows).
|
|
27
29
|
*/
|
|
28
30
|
const saveJEScheduleApprovalDraftEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)((action) => jeScheduleSetupApproverViewReducer_1.saveJEScheduleApprovalDraft.match(action) ||
|
|
29
31
|
jeScheduleSetupApproverViewReducer_1.approveJEScheduleWithLocalEdits.match(action)), (0, operators_1.map)((action) => {
|
|
30
32
|
const { jeScheduleId, scheduleType, isAccrued } = action.payload;
|
|
31
33
|
const payload = buildDraftPayload(state$.value, jeScheduleId, scheduleType, isAccrued);
|
|
34
|
+
const refetch = { scheduleType, isAccrued };
|
|
32
35
|
if (jeScheduleSetupApproverViewReducer_1.approveJEScheduleWithLocalEdits.match(action)) {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
const approvalEntriesVersion = (0, jeSchedulesSelector_1.getScheduleApprovalInfo)(state$.value.jeSchedulesState, jeScheduleId)?.entriesVersion;
|
|
37
|
+
return (0, jeScheduleSetupApproverViewReducer_1.jeScheduleApprovalAction)(jeScheduleId, {
|
|
38
|
+
action: 'approve',
|
|
39
|
+
...(payload != null
|
|
40
|
+
? { scheduledJournalEntries: payload.scheduled_journal_entries }
|
|
41
|
+
: {}),
|
|
42
|
+
...(approvalEntriesVersion != null ? { approvalEntriesVersion } : {}),
|
|
43
|
+
}, refetch);
|
|
39
44
|
}
|
|
40
45
|
if (payload == null) {
|
|
41
46
|
return (0, jeScheduleSetupApproverViewReducer_1.jeScheduleApprovalActionFailure)(jeScheduleId, (0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', 'No local schedule edits to save as draft'));
|
|
@@ -44,6 +49,6 @@ const saveJEScheduleApprovalDraftEpic = (actions$, state$) => actions$.pipe((0,
|
|
|
44
49
|
action: 'save_draft',
|
|
45
50
|
jeSchedules: payload.je_schedules,
|
|
46
51
|
scheduledJournalEntries: payload.scheduled_journal_entries,
|
|
47
|
-
});
|
|
52
|
+
}, refetch);
|
|
48
53
|
}));
|
|
49
54
|
exports.saveJEScheduleApprovalDraftEpic = saveJEScheduleApprovalDraftEpic;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ID } from '../../../commonStateTypes/common';
|
|
2
2
|
import { JEScheduleApprovalRulesListPayload } from '../../../entity/jeScheduleApprovalRule/jeScheduleApprovalRulePayload';
|
|
3
3
|
import { JEAccruedScheduledTransactionPayload, JEScheduledTransactionPayload } from '../../../entity/jeSchedules/jeSchedulesPayload';
|
|
4
|
+
import { ScheduleTypes } from '../../../entity/jeSchedules/jeSchedulesTypes';
|
|
4
5
|
import { ZeniAPIResponse } from '../../../responsePayload';
|
|
5
6
|
import type { SaveScheduleDetailPayload as SaveAccruedScheduleDetailPayload } from '../../scheduleView/scheduleAccruedDetailView/scheduleAccruedDetailPayload';
|
|
6
7
|
import type { SaveScheduleDetailPayload } from '../../scheduleView/scheduleDetailView/scheduleDetailPayload';
|
|
@@ -8,8 +9,14 @@ import { JEScheduleApprovalRulesList } from './jeScheduleSetupApproverViewState'
|
|
|
8
9
|
export declare const toJEScheduleApprovalRulesList: (payload: JEScheduleApprovalRulesListPayload) => JEScheduleApprovalRulesList;
|
|
9
10
|
type DraftSchedulePayload = SaveScheduleDetailPayload['je_schedules'][number] | SaveAccruedScheduleDetailPayload['je_schedules'][number];
|
|
10
11
|
type DraftScheduledJournalEntryPayload = SaveScheduleDetailPayload['scheduled_journal_entries'][number];
|
|
12
|
+
/** Where a 409 (draft changed since it was read) reloads the schedule from. */
|
|
13
|
+
export interface JEScheduleApprovalActionRefetch {
|
|
14
|
+
isAccrued: boolean;
|
|
15
|
+
scheduleType: ScheduleTypes;
|
|
16
|
+
}
|
|
11
17
|
export type JEScheduleApprovalActionBody = {
|
|
12
18
|
action: 'approve';
|
|
19
|
+
approvalEntriesVersion?: number;
|
|
13
20
|
scheduledJournalEntries?: DraftScheduledJournalEntryPayload[];
|
|
14
21
|
} | {
|
|
15
22
|
action: 'reject';
|
|
@@ -21,6 +28,7 @@ export type JEScheduleApprovalActionBody = {
|
|
|
21
28
|
};
|
|
22
29
|
export type JEScheduleApprovalActionRequestBody = {
|
|
23
30
|
action: 'approve';
|
|
31
|
+
approval_entries_version?: number;
|
|
24
32
|
scheduled_journal_entries?: DraftScheduledJournalEntryPayload[];
|
|
25
33
|
} | {
|
|
26
34
|
action: 'reject';
|
|
@@ -13,12 +13,15 @@ exports.toJEScheduleApprovalRulesList = toJEScheduleApprovalRulesList;
|
|
|
13
13
|
const toJEScheduleApprovalActionRequestBody = (body) => {
|
|
14
14
|
switch (body.action) {
|
|
15
15
|
case 'approve':
|
|
16
|
-
return
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
scheduled_journal_entries: body.scheduledJournalEntries
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
return {
|
|
17
|
+
action: 'approve',
|
|
18
|
+
...(body.scheduledJournalEntries != null
|
|
19
|
+
? { scheduled_journal_entries: body.scheduledJournalEntries }
|
|
20
|
+
: {}),
|
|
21
|
+
...(body.approvalEntriesVersion != null
|
|
22
|
+
? { approval_entries_version: body.approvalEntriesVersion }
|
|
23
|
+
: {}),
|
|
24
|
+
};
|
|
22
25
|
case 'reject':
|
|
23
26
|
return { action: 'reject', rejection_reason: body.rejectionReason };
|
|
24
27
|
case 'save_draft':
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ID } from '../../../commonStateTypes/common';
|
|
2
2
|
import { JEScheduleApprovalRuleFormData, JEScheduleApprovalRuleState, JEScheduleApprover, JEScheduleApproverRole } from '../../../entity/jeScheduleApprovalRule/jeScheduleApprovalRuleState';
|
|
3
3
|
import { ZeniAPIStatus } from '../../../responsePayload';
|
|
4
|
-
import { JEScheduleApprovalActionBody } from './jeScheduleSetupApproverViewPayload';
|
|
4
|
+
import { JEScheduleApprovalActionBody, JEScheduleApprovalActionRefetch } from './jeScheduleSetupApproverViewPayload';
|
|
5
5
|
import { JEScheduleApprovalRulesList, JEScheduleSetupApproverViewState } from './jeScheduleSetupApproverViewState';
|
|
6
6
|
export declare const initialState: JEScheduleSetupApproverViewState;
|
|
7
7
|
/** Reorders only the viewer's own rules; the other owner's block keeps its positions. */
|
|
@@ -28,9 +28,10 @@ export declare const fetchJEScheduleApprovalRules: import("@reduxjs/toolkit").Ac
|
|
|
28
28
|
status: ZeniAPIStatus<Record<string, unknown>>;
|
|
29
29
|
}, "jeScheduleSetupApproverView/deleteJEScheduleApprovalRuleFailure", never, never>, reorderJEScheduleApprovalRules: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[ruleIds: string[]], {
|
|
30
30
|
ruleIds: string[];
|
|
31
|
-
}, "jeScheduleSetupApproverView/reorderJEScheduleApprovalRules", never, never>, reorderJEScheduleApprovalRulesSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[list: JEScheduleApprovalRulesList], JEScheduleApprovalRulesList, "jeScheduleSetupApproverView/reorderJEScheduleApprovalRulesSuccess", never, never>, reorderJEScheduleApprovalRulesFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[status: ZeniAPIStatus<Record<string, unknown>>], ZeniAPIStatus<Record<string, unknown>>, "jeScheduleSetupApproverView/reorderJEScheduleApprovalRulesFailure", never, never>, jeScheduleApprovalAction: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[jeScheduleId: string, body: JEScheduleApprovalActionBody], {
|
|
31
|
+
}, "jeScheduleSetupApproverView/reorderJEScheduleApprovalRules", never, never>, reorderJEScheduleApprovalRulesSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[list: JEScheduleApprovalRulesList], JEScheduleApprovalRulesList, "jeScheduleSetupApproverView/reorderJEScheduleApprovalRulesSuccess", never, never>, reorderJEScheduleApprovalRulesFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[status: ZeniAPIStatus<Record<string, unknown>>], ZeniAPIStatus<Record<string, unknown>>, "jeScheduleSetupApproverView/reorderJEScheduleApprovalRulesFailure", never, never>, jeScheduleApprovalAction: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[jeScheduleId: string, body: JEScheduleApprovalActionBody, refetch?: JEScheduleApprovalActionRefetch | undefined], {
|
|
32
32
|
jeScheduleId: string;
|
|
33
33
|
body: JEScheduleApprovalActionBody;
|
|
34
|
+
refetch: JEScheduleApprovalActionRefetch | undefined;
|
|
34
35
|
}, "jeScheduleSetupApproverView/jeScheduleApprovalAction", never, never>, saveJEScheduleApprovalDraft: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[jeScheduleId: string, scheduleType: "prepaid_expenses" | "fixed_assets" | "accrued_expenses" | "deferred_revenue", isAccrued: boolean], {
|
|
35
36
|
jeScheduleId: string;
|
|
36
37
|
scheduleType: "prepaid_expenses" | "fixed_assets" | "accrued_expenses" | "deferred_revenue";
|
|
@@ -208,8 +208,8 @@ const jeScheduleSetupApproverView = (0, toolkit_1.createSlice)({
|
|
|
208
208
|
error: undefined,
|
|
209
209
|
};
|
|
210
210
|
},
|
|
211
|
-
prepare(jeScheduleId, body) {
|
|
212
|
-
return { payload: { jeScheduleId, body } };
|
|
211
|
+
prepare(jeScheduleId, body, refetch) {
|
|
212
|
+
return { payload: { jeScheduleId, body, refetch } };
|
|
213
213
|
},
|
|
214
214
|
},
|
|
215
215
|
saveJEScheduleApprovalDraft: {
|
|
@@ -15,7 +15,7 @@ export declare const fetchTaskListPage: import("@reduxjs/toolkit").ActionCreator
|
|
|
15
15
|
completed?: TaskPayload[];
|
|
16
16
|
deleted?: TaskPayload[];
|
|
17
17
|
snoozed?: TaskPayload[];
|
|
18
|
-
}, "taskList/updateTaskList">, updateTaskListTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"completed" | "deleted" | "
|
|
18
|
+
}, "taskList/updateTaskList">, updateTaskListTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"completed" | "deleted" | "live" | "archived" | "snoozed", "taskList/updateTaskListTab">, updateTaskListFetchStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
19
19
|
fetchState: FetchState;
|
|
20
20
|
error?: ZeniAPIStatus;
|
|
21
21
|
}, "taskList/updateTaskListFetchStatus">, updateTaskListSearchText: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "5.3.6-
|
|
3
|
+
"version": "5.3.6-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",
|