@zeniai/client-epic-state 5.0.54 → 5.0.55-betaAR1
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/approvalRule/approvalRulePayload.d.ts +27 -5
- package/lib/entity/approvalRule/approvalRulePayload.js +131 -10
- package/lib/entity/approvalRule/approvalRuleSelector.d.ts +25 -1
- package/lib/entity/approvalRule/approvalRuleSelector.js +40 -0
- package/lib/entity/approvalRule/approvalRuleState.d.ts +48 -7
- package/lib/esm/entity/approvalRule/approvalRulePayload.js +131 -10
- package/lib/esm/entity/approvalRule/approvalRuleSelector.js +35 -0
- package/lib/esm/index.js +2 -1
- package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/epic/initializeBillPaySetupApproverViewUpdateDataEpic.js +5 -7
- package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/types/commonPayload.js +46 -16
- package/lib/esm/view/spendManagement/billPay/editBillView/editBillViewSelector.js +7 -2
- package/lib/esm/view/spendManagement/reimbursement/remiSetupApproverView/epic/initializeRemiSetupApproverViewUpdateDataEpic.js +5 -7
- package/lib/esm/view/spendManagement/zeniAccounts/depositAccountDetail/depositAccountDetailSelector.js +1 -1
- package/lib/esm/view/spendManagement/zeniAccounts/depositAccountDetail/fetchDepositAccountDetailEpic.js +7 -2
- package/lib/index.d.ts +3 -2
- package/lib/index.js +22 -16
- package/lib/tsconfig.typecheck.tsbuildinfo +1 -1
- package/lib/view/companyTaskManagerView/companyTaskManagerViewReducer.d.ts +2 -2
- package/lib/view/companyView/types/cockpitTypes.d.ts +1 -1
- package/lib/view/people/peopleTypes.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/initializeBillPaySetupApproverViewUpdateDataEpic.js +4 -6
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/types/commonPayload.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/types/commonPayload.js +46 -16
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/types/commonState.d.ts +15 -3
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +7 -2
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.d.ts +1 -1
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/initializeRemiSetupApproverViewUpdateDataEpic.js +4 -6
- package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/depositAccountDetailSelector.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/fetchDepositAccountDetailEpic.js +7 -2
- package/lib/view/taskManager/taskListView/taskList.d.ts +3 -3
- package/package.json +1 -1
|
@@ -4,10 +4,10 @@ import { CompanyTaskManagerViewPayload } from './companyTaskManagerViewPayload';
|
|
|
4
4
|
import { CompanyTaskManagerViewState, CompanyTaskManagerViewUIState, TaskManagerMetrics } from './companyTaskManagerViewState';
|
|
5
5
|
export declare const initialUIState: CompanyTaskManagerViewUIState;
|
|
6
6
|
export declare const initialState: CompanyTaskManagerViewState;
|
|
7
|
-
export declare const fetchCompanyTaskManagerView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[pageToken: PageToken, sortKey: "status" | "name" | "
|
|
7
|
+
export declare const fetchCompanyTaskManagerView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[pageToken: PageToken, sortKey: "status" | "name" | "priority" | "tags" | "createdBy" | "dueDate" | "assignee" | "taskName", sortOrder: "ascending" | "descending", keepExistingListItems?: any, searchString?: string | undefined], {
|
|
8
8
|
pageToken: PageToken;
|
|
9
9
|
searchString: string | undefined;
|
|
10
|
-
sortKey: "status" | "name" | "
|
|
10
|
+
sortKey: "status" | "name" | "priority" | "tags" | "createdBy" | "dueDate" | "assignee" | "taskName";
|
|
11
11
|
sortOrder: "ascending" | "descending";
|
|
12
12
|
keepExistingListItems: any;
|
|
13
13
|
}, "companyTaskManagerView/fetchCompanyTaskManagerView", never, never>, updateCompanyTaskManagerViewOnSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
@@ -7,7 +7,7 @@ export declare const toPortfolioSortKeyType: (v: string) => "companyName" | "exp
|
|
|
7
7
|
export declare const toManagementSortKeyType: (v: string) => "status" | "bookCloseDate" | "companyName" | "group" | "controller" | "plans" | "monthlyRecurringRevenue" | "notes" | "taxStatus" | "preparer" | "reviewer" | "annualRecurringRevenue" | "task" | "customerSuccessManager" | "apAnalyst" | "reportSent" | "taxLead" | "satisfaction";
|
|
8
8
|
export declare const toOnboardingSortKeyType: (v: string) => "companyName" | "notes" | "businessVerified" | "identityVerified" | "bankAccountLinked" | "customerCreated" | "groupCreated" | "qboLinked" | "enroller" | "invite" | "latestCreated";
|
|
9
9
|
export declare const toHealthSortKeyType: (v: string) => "companyName" | "group" | "controller" | "monthlyRecurringRevenue" | "runway" | "companyEngagementMetricsUpdatedAt" | "customerSatisfactionScore" | "externalProductServiceExposure" | "netPromoterScore" | "customerSuccessManager" | "issues" | "productVerticals" | "churnProbability" | "lastReportSent" | "subscriptionDate" | "renewalDate" | "dashboardLastSeen" | "lastEngagement";
|
|
10
|
-
export declare const toTaskManagerSortKeyType: (v: string) => "status" | "name" | "
|
|
10
|
+
export declare const toTaskManagerSortKeyType: (v: string) => "status" | "name" | "priority" | "tags" | "createdBy" | "dueDate" | "assignee" | "taskName";
|
|
11
11
|
export type PortfolioViewSortKey = ReturnType<typeof toPortfolioSortKeyType>;
|
|
12
12
|
export type ManagementViewSortKey = ReturnType<typeof toManagementSortKeyType>;
|
|
13
13
|
export type OnboardingViewSortKey = ReturnType<typeof toOnboardingSortKeyType>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare const toPeopleSortKeyType: (v: string) => "role" | "manager" | "
|
|
1
|
+
declare const toPeopleSortKeyType: (v: string) => "role" | "manager" | "department" | "name" | "lastSeen";
|
|
2
2
|
export type PeopleViewSortKey = ReturnType<typeof toPeopleSortKeyType>;
|
|
3
3
|
export {};
|
|
@@ -11,15 +11,13 @@ const initializeBillPaySetupApproverViewUpdateDataEpic = (actions$, state$) => a
|
|
|
11
11
|
if (approvalRuleId != null) {
|
|
12
12
|
const approvalRule = (0, approvalRuleSelector_1.getApprovalRuleById)(state$.value.approvalRuleState, approvalRuleId);
|
|
13
13
|
if (approvalRule != null) {
|
|
14
|
-
const criteria = approvalRule.criteria[0];
|
|
15
|
-
const range = criteria?.range;
|
|
16
14
|
const billPaySetupApproverViewUpdateData = {
|
|
17
15
|
approvalRuleId,
|
|
18
16
|
steps: approvalRule.steps,
|
|
19
17
|
criteria: {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
amount: (0, approvalRuleSelector_1.getAmountCriteria)(approvalRule.criteria),
|
|
19
|
+
vendor: (0, approvalRuleSelector_1.getVendorCriteria)(approvalRule.criteria),
|
|
20
|
+
department: (0, approvalRuleSelector_1.getDepartmentCriteria)(approvalRule.criteria),
|
|
23
21
|
},
|
|
24
22
|
};
|
|
25
23
|
fetchActions.push((0, billPaySetupApproverViewReducer_1.clearBillPaySetupApproverViewUpdateData)(), (0, billPaySetupApproverViewReducer_1.saveBillPaySetupApproverViewUpdateData)(billPaySetupApproverViewUpdateData));
|
|
@@ -28,7 +26,7 @@ const initializeBillPaySetupApproverViewUpdateDataEpic = (actions$, state$) => a
|
|
|
28
26
|
else {
|
|
29
27
|
const billPaySetupApproverViewCreateData = {
|
|
30
28
|
steps: [],
|
|
31
|
-
criteria:
|
|
29
|
+
criteria: {},
|
|
32
30
|
};
|
|
33
31
|
fetchActions.push((0, billPaySetupApproverViewReducer_1.clearBillPaySetupApproverViewUpdateData)(), (0, billPaySetupApproverViewReducer_1.saveBillPaySetupApproverViewUpdateData)(billPaySetupApproverViewCreateData));
|
|
34
32
|
}
|
|
@@ -14,7 +14,7 @@ interface ApproverViewStepPayload extends Omit<StepPayload, 'actors'> {
|
|
|
14
14
|
}
|
|
15
15
|
interface ApprovalUpdatableInfoPayload {
|
|
16
16
|
approval_rule_id: ID;
|
|
17
|
-
criteria: CriteriaPayload
|
|
17
|
+
criteria: CriteriaPayload;
|
|
18
18
|
is_applicable_on_pending_approval_entity: boolean;
|
|
19
19
|
steps: ApproverViewStepPayload[];
|
|
20
20
|
}
|
|
@@ -2,22 +2,50 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.toApprovalChangableInfoPayload = void 0;
|
|
4
4
|
const toApprovalChangableInfoPayload = (approverViewUpdateData) => {
|
|
5
|
-
|
|
5
|
+
// Form-side criteria is a structured object with optional slots for
|
|
6
|
+
// amount / vendor / department; flatten it into the wire format's
|
|
7
|
+
// `conditions[]` array.
|
|
8
|
+
let criteriaPayload;
|
|
6
9
|
if (approverViewUpdateData.criteria != null) {
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
10
|
+
const { amount, vendor, department } = approverViewUpdateData.criteria;
|
|
11
|
+
const conditions = [];
|
|
12
|
+
if (amount?.min != null) {
|
|
13
|
+
conditions.push({
|
|
14
|
+
field: 'amount',
|
|
15
|
+
type: 'gte',
|
|
16
|
+
value: amount.min.amount,
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
if (amount?.max != null) {
|
|
20
|
+
conditions.push({
|
|
21
|
+
field: 'amount',
|
|
22
|
+
type: 'lte',
|
|
23
|
+
value: amount.max.amount,
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
if (vendor != null && vendor.vendorIds.length > 0) {
|
|
27
|
+
conditions.push({
|
|
28
|
+
field: 'vendor_id',
|
|
29
|
+
type: vendor.operator === 'is_not' ? 'not_in' : 'in',
|
|
30
|
+
value: vendor.vendorIds,
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
if (department != null && department.departmentIds.length > 0) {
|
|
34
|
+
conditions.push({
|
|
35
|
+
field: 'department_id',
|
|
36
|
+
type: department.operator === 'is_not' ? 'not_in' : 'in',
|
|
37
|
+
value: department.departmentIds,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
if (conditions.length > 0) {
|
|
41
|
+
const currency = amount?.min ?? amount?.max ?? null;
|
|
42
|
+
criteriaPayload = {
|
|
43
|
+
conditions,
|
|
44
|
+
criteria_operator: 'and',
|
|
45
|
+
currency_code: currency?.currencyCode ?? 'USD',
|
|
46
|
+
currency_symbol: currency?.currencySymbol ?? '$',
|
|
47
|
+
};
|
|
48
|
+
}
|
|
21
49
|
}
|
|
22
50
|
const steps = approverViewUpdateData.steps.map((step) => {
|
|
23
51
|
return {
|
|
@@ -38,10 +66,12 @@ const toApprovalChangableInfoPayload = (approverViewUpdateData) => {
|
|
|
38
66
|
});
|
|
39
67
|
const isUpdate = approverViewUpdateData.approvalRuleId != null;
|
|
40
68
|
const payload = {
|
|
41
|
-
criteria: criteriaPayload,
|
|
42
69
|
steps,
|
|
43
70
|
is_applicable_on_pending_approval_entity: approverViewUpdateData.isApplicableOnPendingApprovalEntity ?? true,
|
|
44
71
|
};
|
|
72
|
+
if (criteriaPayload != null) {
|
|
73
|
+
payload.criteria = criteriaPayload;
|
|
74
|
+
}
|
|
45
75
|
if (isUpdate) {
|
|
46
76
|
payload.approval_rule_id = approverViewUpdateData.approvalRuleId;
|
|
47
77
|
}
|
|
@@ -1,19 +1,31 @@
|
|
|
1
1
|
import { FetchStateAndError, ID } from '../../../../../commonStateTypes/common';
|
|
2
|
-
import {
|
|
2
|
+
import { AmountCriteria, DepartmentCriteria, Step, VendorCriteria } from '../../../../../entity/approvalRule/approvalRuleState';
|
|
3
3
|
export type ApprovalUpdateActionType = 'approval_create' | 'approval_update';
|
|
4
4
|
export interface ApproverViewUpdateData {
|
|
5
5
|
type: ApprovalUpdateActionType;
|
|
6
6
|
updateStatus: FetchStateAndError;
|
|
7
7
|
data?: ApprovalRuleUpdateData | ApprovalRuleCreateData;
|
|
8
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* Form-side criteria shape used by the rule create/edit form.
|
|
11
|
+
*
|
|
12
|
+
* Each condition kind gets its own optional slot, mirroring how the UI
|
|
13
|
+
* edits them as distinct rows. At most one of each kind is present; this
|
|
14
|
+
* matches the design constraint that each condition type can be added once.
|
|
15
|
+
*/
|
|
16
|
+
export interface ApprovalRuleFormCriteria {
|
|
17
|
+
amount?: AmountCriteria;
|
|
18
|
+
department?: DepartmentCriteria;
|
|
19
|
+
vendor?: VendorCriteria;
|
|
20
|
+
}
|
|
9
21
|
export interface ApprovalRuleUpdateData {
|
|
10
22
|
approvalRuleId: ID;
|
|
11
|
-
criteria:
|
|
23
|
+
criteria: ApprovalRuleFormCriteria;
|
|
12
24
|
steps: Step[];
|
|
13
25
|
isApplicableOnPendingApprovalEntity?: boolean;
|
|
14
26
|
}
|
|
15
27
|
export interface ApprovalRuleCreateData {
|
|
16
|
-
criteria:
|
|
28
|
+
criteria: ApprovalRuleFormCriteria;
|
|
17
29
|
steps: Step[];
|
|
18
30
|
isApplicableOnPendingApprovalEntity?: boolean;
|
|
19
31
|
}
|
|
@@ -9,6 +9,7 @@ exports.getPaymentSection = getPaymentSection;
|
|
|
9
9
|
exports.toPaymentToOption = toPaymentToOption;
|
|
10
10
|
const get_1 = __importDefault(require("lodash/get"));
|
|
11
11
|
const has_1 = __importDefault(require("lodash/has"));
|
|
12
|
+
const approvalRuleSelector_1 = require("../../../../entity/approvalRule/approvalRuleSelector");
|
|
12
13
|
const reduceFetchState_1 = require("../../../../commonStateTypes/reduceFetchState");
|
|
13
14
|
const bankAccountSelector_1 = require("../../../../entity/bankAccount/bankAccountSelector");
|
|
14
15
|
const contactSelector_1 = require("../../../../entity/billPay/contact/contactSelector");
|
|
@@ -698,9 +699,13 @@ exports.getDefaultWithdrawFromAccount = getDefaultWithdrawFromAccount;
|
|
|
698
699
|
const checkIfCreatorIsApprover = (billAmount, approvalRules, signedInUser) => {
|
|
699
700
|
let isCreatorAlsoApprover = false;
|
|
700
701
|
const approvalRule = approvalRules.find((rule) => {
|
|
701
|
-
const
|
|
702
|
+
const amountCriteria = (0, approvalRuleSelector_1.getAmountCriteria)(rule.criteria);
|
|
703
|
+
if (amountCriteria?.min == null) {
|
|
704
|
+
return false;
|
|
705
|
+
}
|
|
706
|
+
const { min, max } = amountCriteria;
|
|
702
707
|
return (billAmount > min.amount &&
|
|
703
|
-
(max?.amount != null ? billAmount <= max
|
|
708
|
+
(max?.amount != null ? billAmount <= max.amount : true));
|
|
704
709
|
});
|
|
705
710
|
if (approvalRule != null) {
|
|
706
711
|
const requireApprovalSteps = approvalRule.steps.filter((step) => step.action === 'require_approval');
|
|
@@ -61,7 +61,7 @@ export declare const initialCreditAcc: CreditAccount;
|
|
|
61
61
|
export declare const initialDebitCardSummaries: DebitCardSummaries;
|
|
62
62
|
export declare const initialResendRevokeCardInvite: ResendRevokeCardInvite;
|
|
63
63
|
export declare const initialCreditAccountRepayment: CreditAccountRepayment;
|
|
64
|
-
export declare const toChargeCardSortKeyType: (v: string) => "status" | "
|
|
64
|
+
export declare const toChargeCardSortKeyType: (v: string) => "status" | "department" | "accountType" | "owner" | "cardName" | "limit" | "cardType" | "utilisation";
|
|
65
65
|
export declare type ChargeCardViewSortKey = ReturnType<typeof toChargeCardSortKeyType>;
|
|
66
66
|
export declare const ALL_CASHBACK_SORT_KEYS: readonly ["month", "cashback"];
|
|
67
67
|
export declare const toCashbackSortKeyType: (v: string) => "month" | "cashback";
|
|
@@ -11,15 +11,13 @@ const initializeRemiSetupApproverViewUpdateDataEpic = (actions$, state$) => acti
|
|
|
11
11
|
if (approvalRuleId != null) {
|
|
12
12
|
const approvalRule = (0, approvalRuleSelector_1.getApprovalRuleById)(state$.value.approvalRuleState, approvalRuleId);
|
|
13
13
|
if (approvalRule != null) {
|
|
14
|
-
const criteria = approvalRule.criteria[0];
|
|
15
|
-
const range = criteria?.range;
|
|
16
14
|
const remiSetupApproverViewUpdateData = {
|
|
17
15
|
approvalRuleId,
|
|
18
16
|
steps: approvalRule.steps,
|
|
19
17
|
criteria: {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
amount: (0, approvalRuleSelector_1.getAmountCriteria)(approvalRule.criteria),
|
|
19
|
+
vendor: (0, approvalRuleSelector_1.getVendorCriteria)(approvalRule.criteria),
|
|
20
|
+
department: (0, approvalRuleSelector_1.getDepartmentCriteria)(approvalRule.criteria),
|
|
23
21
|
},
|
|
24
22
|
};
|
|
25
23
|
fetchActions.push((0, remiSetupApproverViewReducer_1.clearRemiSetupApproverViewUpdateData)(), (0, remiSetupApproverViewReducer_1.saveRemiSetupApproverViewUpdateData)(remiSetupApproverViewUpdateData));
|
|
@@ -28,7 +26,7 @@ const initializeRemiSetupApproverViewUpdateDataEpic = (actions$, state$) => acti
|
|
|
28
26
|
else {
|
|
29
27
|
const remiSetupApproverViewCreateData = {
|
|
30
28
|
steps: [],
|
|
31
|
-
criteria:
|
|
29
|
+
criteria: {},
|
|
32
30
|
};
|
|
33
31
|
fetchActions.push((0, remiSetupApproverViewReducer_1.clearRemiSetupApproverViewUpdateData)(), (0, remiSetupApproverViewReducer_1.saveRemiSetupApproverViewUpdateData)(remiSetupApproverViewCreateData));
|
|
34
32
|
}
|
package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/depositAccountDetailSelector.js
CHANGED
|
@@ -34,7 +34,7 @@ const getDepositAccountDetail = (state, depositAccountId) => {
|
|
|
34
34
|
const zeniAccountDetail = zeniAccountDetailState.depositAccountDetailById[depositAccountId];
|
|
35
35
|
const depositAccount = (0, depositAccountSelector_1.getDepositAccountByDepositAccountId)(depositAccountState, depositAccountId);
|
|
36
36
|
const zeniAccountsConfig = (0, zeniAccountsConfigSelector_1.getZeniAccountsConfigDetail)(state);
|
|
37
|
-
const transactionListView = (0, depositAccountTransactionListSelector_1.getDepositAccountTransactionList)(state, depositAccountId
|
|
37
|
+
const transactionListView = (0, depositAccountTransactionListSelector_1.getDepositAccountTransactionList)(state, depositAccountId);
|
|
38
38
|
let accountUpdateStatus = {
|
|
39
39
|
editName: {
|
|
40
40
|
fetchState: 'Not-Started',
|
package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/fetchDepositAccountDetailEpic.js
CHANGED
|
@@ -19,7 +19,7 @@ const fetchDepositAccountDetailEpic = (actions$, state$) => actions$.pipe((0, op
|
|
|
19
19
|
zeniAccountActions.push((0, paymentAccountListReducer_1.fetchPaymentAccountList)());
|
|
20
20
|
zeniAccountActions.push((0, zeniAccountsConfigReducer_1.fetchZeniAccountsConfig)());
|
|
21
21
|
zeniAccountActions.push((0, depositAccountDetailReducer_1.fetchDepositAccount)(depositAccountId));
|
|
22
|
-
zeniAccountActions.push((0, depositAccountTransactionListReducer_1.fetchDepositAccountTransactionList)(depositAccountId, true
|
|
22
|
+
zeniAccountActions.push((0, depositAccountTransactionListReducer_1.fetchDepositAccountTransactionList)(depositAccountId, true));
|
|
23
23
|
zeniAccountActions.push((0, depositAccountDetailReducer_1.fetchAccountHistory)(depositAccountId));
|
|
24
24
|
}
|
|
25
25
|
else {
|
|
@@ -40,7 +40,12 @@ const fetchDepositAccountDetailEpic = (actions$, state$) => actions$.pipe((0, op
|
|
|
40
40
|
targetZeniAccountAccount.fetchState !== 'In-Progress')) {
|
|
41
41
|
zeniAccountActions.push((0, depositAccountDetailReducer_1.fetchDepositAccount)(depositAccountId));
|
|
42
42
|
}
|
|
43
|
-
|
|
43
|
+
const transactionList = state.depositAccountTransactionListState.byDepositId[depositAccountId];
|
|
44
|
+
if (transactionList == null ||
|
|
45
|
+
(transactionList.fetchState !== 'Completed' &&
|
|
46
|
+
transactionList.fetchState !== 'In-Progress')) {
|
|
47
|
+
zeniAccountActions.push((0, depositAccountTransactionListReducer_1.fetchDepositAccountTransactionList)(depositAccountId, false));
|
|
48
|
+
}
|
|
44
49
|
const zeniAccountsConfig = state.zeniAccountsConfigState;
|
|
45
50
|
if (zeniAccountsConfig.hasValidState() === false &&
|
|
46
51
|
zeniAccountsConfig.fetchState !== 'In-Progress') {
|
|
@@ -50,15 +50,15 @@ export interface TaskFilterCategory {
|
|
|
50
50
|
}
|
|
51
51
|
export type TaskListFilterCategoryField = 'status' | 'dueDate' | 'assignee' | 'creationDate' | 'priority' | 'tag';
|
|
52
52
|
export declare const TASK_LIST_GROUP_BY_KEYS: readonly ["groupName", "status", "dueDate", "assignee", "priority", "tag"];
|
|
53
|
-
export declare const toTaskListGroupByKeyType: (v: string) => "status" | "
|
|
54
|
-
export declare const toTaskListGroupByKeyTypeStrict: (v: string) => "status" | "
|
|
53
|
+
export declare const toTaskListGroupByKeyType: (v: string) => "status" | "priority" | "dueDate" | "groupName" | "tag" | "assignee";
|
|
54
|
+
export declare const toTaskListGroupByKeyTypeStrict: (v: string) => "status" | "priority" | "dueDate" | "groupName" | "tag" | "assignee" | undefined;
|
|
55
55
|
export declare type TaskGroupKey = ReturnType<typeof toTaskListGroupByKeyType>;
|
|
56
56
|
export interface TaskListUIState extends SpendManagementUIState {
|
|
57
57
|
groupByKey: TaskGroupKey;
|
|
58
58
|
searchText: string;
|
|
59
59
|
sortKey: TaskListViewSortKey;
|
|
60
60
|
}
|
|
61
|
-
declare const toTaskListSortKeyType: (v: string) => "status" | "name" | "
|
|
61
|
+
declare const toTaskListSortKeyType: (v: string) => "status" | "name" | "priority" | "dueDate" | "tag" | "timeSpent" | "assignee" | "creationDate" | "visibility";
|
|
62
62
|
export declare type TaskListViewSortKey = ReturnType<typeof toTaskListSortKeyType>;
|
|
63
63
|
export declare const TASK_LIST_FILTER_CATEGORIES: TaskListFilterCategoryOption[];
|
|
64
64
|
interface TaskListFilterCategoryOption {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.55-betaAR1",
|
|
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",
|