@zeniai/client-epic-state 4.10.95 → 4.10.97
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/vendor/vendorPayload.d.ts +0 -2
- package/lib/entity/vendor/vendorPayload.js +1 -4
- package/lib/entity/vendor/vendorState.d.ts +0 -2
- package/lib/view/spendManagement/commonSetup/setupViewSelector.js +8 -5
- package/lib/view/spendManagement/reimbursement/remiSetupView/epic/remiSetup/fetchRemiSetupViewEpic.d.ts +3 -1
- package/lib/view/spendManagement/reimbursement/remiSetupView/epic/remiSetup/fetchRemiSetupViewEpic.js +11 -1
- package/lib/view/vendorReviewView/vendorFirstReviewView/epics/fetchVendorFirstReviewViewEpic.js +0 -1
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewPayload.d.ts +0 -3
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewReducer.js +5 -7
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewSelector.d.ts +0 -2
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewSelector.js +0 -2
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewState.d.ts +2 -4
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewState.js +1 -2
- package/package.json +1 -1
|
@@ -10,7 +10,6 @@ import { UserPayload } from '../user/userPayload';
|
|
|
10
10
|
import { FilePayload } from '../file/filePayload';
|
|
11
11
|
import { RecommendationPayload } from '../../commonPayloadTypes/recommendationPayload';
|
|
12
12
|
import { PaymentInstrumentPayload } from '../paymentInstrument/paymentInstrumentPayload';
|
|
13
|
-
import { AttachmentPayload } from '../transaction/payloadTypes/attachmentPayload';
|
|
14
13
|
export interface VendorBasePayload {
|
|
15
14
|
vendor_id: string;
|
|
16
15
|
vendor_name: string;
|
|
@@ -35,7 +34,6 @@ export interface VendorPayload extends VendorBasePayload, SpendPayload {
|
|
|
35
34
|
qbo_id: string;
|
|
36
35
|
currency_code: string;
|
|
37
36
|
currency_symbol: string;
|
|
38
|
-
transaction_attachments?: AttachmentPayload[] | null;
|
|
39
37
|
title?: string;
|
|
40
38
|
suffix?: string;
|
|
41
39
|
first_name?: string;
|
|
@@ -5,7 +5,6 @@ const urlPayload_1 = require("../../commonPayloadTypes/urlPayload");
|
|
|
5
5
|
const zeniDayJS_1 = require("../../zeniDayJS");
|
|
6
6
|
const transactionPayload_1 = require("../transaction/payloadTypes/transactionPayload");
|
|
7
7
|
const billTransactionState_1 = require("../billPay/billTransaction/billTransactionState");
|
|
8
|
-
const attachmentPayload_1 = require("../transaction/payloadTypes/attachmentPayload");
|
|
9
8
|
const mapVendorBasePayloadToVendorBase = (payload) => ({
|
|
10
9
|
id: payload.vendor_id,
|
|
11
10
|
name: payload.vendor_name,
|
|
@@ -37,8 +36,6 @@ const mapVendorPayloadToVendor = (payload) => {
|
|
|
37
36
|
? (0, transactionPayload_1.transformRecommendation)(payload.recommendation[0]) // In this case, there will be only one recommendation item since this is entity recommendation payload.
|
|
38
37
|
: [], preferredInternationalTransferFeeBearerPaymentMethod: payload.preferred_international_transfer_fee_bearer_payment_method != null
|
|
39
38
|
? (0, billTransactionState_1.toInternationalTransferFeeBearerPaymentMethod)(payload.preferred_international_transfer_fee_bearer_payment_method)
|
|
40
|
-
: undefined
|
|
41
|
-
? payload.transaction_attachments.map((attachmentPayload) => (0, attachmentPayload_1.toAttachment)(attachmentPayload))
|
|
42
|
-
: [] });
|
|
39
|
+
: undefined });
|
|
43
40
|
};
|
|
44
41
|
exports.mapVendorPayloadToVendor = mapVendorPayloadToVendor;
|
|
@@ -4,7 +4,6 @@ import { Recommendation } from '../../commonStateTypes/recommendationBase';
|
|
|
4
4
|
import { ZeniDate } from '../../zeniDayJS';
|
|
5
5
|
import { ZeniUrl as Url } from '../../zeniUrl';
|
|
6
6
|
import { InternationalTransferFeeBearerPaymentMethod } from '../billPay/billTransaction/billTransactionState';
|
|
7
|
-
import { Attachment } from '../transaction/stateTypes/attachment';
|
|
8
7
|
export interface VendorBase {
|
|
9
8
|
id: ID;
|
|
10
9
|
name: string;
|
|
@@ -58,7 +57,6 @@ export interface Vendor extends VendorBase {
|
|
|
58
57
|
last6MonthsSpend?: number;
|
|
59
58
|
last12MonthsSpend?: number;
|
|
60
59
|
previousYearSpend?: number;
|
|
61
|
-
transactionAttachments?: Attachment[];
|
|
62
60
|
}
|
|
63
61
|
export interface VendorState {
|
|
64
62
|
vendorByID: Record<ID, Vendor>;
|
|
@@ -10,11 +10,13 @@ const paymentAccountSelector_1 = require("../../../entity/paymentAccount/payment
|
|
|
10
10
|
const depositAccountSelector_1 = require("../../../entity/depositAccount/depositAccountSelector");
|
|
11
11
|
const depositAccountPayload_1 = require("../../../entity/depositAccount/depositAccountPayload");
|
|
12
12
|
function getCommonSetupViewDetails(state, companyId, setupViewType, plaidAccountKeyType) {
|
|
13
|
-
var _a, _b, _c;
|
|
14
|
-
const { accountState, setupViewState, paymentAccountState, depositAccountState, plaidAccountViewState, } = state;
|
|
13
|
+
var _a, _b, _c, _d;
|
|
14
|
+
const { accountState, setupViewState, paymentAccountState, paymentAccountListState, depositAccountState, depositAccountListState, plaidAccountViewState, } = state;
|
|
15
15
|
const { updateStatus } = setupViewState;
|
|
16
16
|
const { accountDetails, plaidConnectionDetails } = (0, plaidAccountViewSelector_1.getPlaidAccountDetails)(plaidAccountViewState, plaidAccountKeyType);
|
|
17
|
-
const { allBankAccountIds,
|
|
17
|
+
const { allBankAccountIds, primaryFundingAccount } = accountDetails;
|
|
18
|
+
const { paymentAccountIds } = paymentAccountListState;
|
|
19
|
+
const { accountIds: depositAccountIds } = depositAccountListState;
|
|
18
20
|
const allBankAccounts = (_a = allBankAccountIds === null || allBankAccountIds === void 0 ? void 0 : allBankAccountIds.map((accountId) => (0, accountSelector_1.getAccountBase)(accountState, accountId, setupViewType)).filter((account) => account != null)) !== null && _a !== void 0 ? _a : [];
|
|
19
21
|
const paymentAccounts = (_b = (0, paymentAccountSelector_1.getPaymentAccountsByPaymentAccountIds)(paymentAccountState, paymentAccountIds).filter((account) => account != null)) !== null && _b !== void 0 ? _b : [];
|
|
20
22
|
const depositAccounts = (_c = (0, depositAccountSelector_1.getDepositAccountsByDepositAccountIds)(depositAccountState, depositAccountIds).filter((account) => account != null)) !== null && _c !== void 0 ? _c : [];
|
|
@@ -23,8 +25,9 @@ function getCommonSetupViewDetails(state, companyId, setupViewType, plaidAccount
|
|
|
23
25
|
const companyBillPayInfo = companyView === null || companyView === void 0 ? void 0 : companyView.company.company.companyBillPayInfo;
|
|
24
26
|
let paymentAccount;
|
|
25
27
|
let primaryAccount = undefined;
|
|
26
|
-
if ((paymentAccountIds === null ||
|
|
27
|
-
|
|
28
|
+
if (((_d = accountDetails.paymentAccountIds) === null || _d === void 0 ? void 0 : _d.length) > 0) {
|
|
29
|
+
// paymentAccount is used for products other than reimbursement
|
|
30
|
+
const paymentAccountId = accountDetails.paymentAccountIds[0];
|
|
28
31
|
paymentAccount = (0, paymentAccountSelector_1.getPaymentAccountByPaymentAccountId)(paymentAccountState, paymentAccountId);
|
|
29
32
|
}
|
|
30
33
|
// For reimbursement setup, use primaryFundingAccount as the payment account.
|
|
@@ -14,5 +14,7 @@ import { updateSetupViewLocalStoreData } from '../../../../commonSetup/setupView
|
|
|
14
14
|
import { fetchRemiSetupView, fetchRemiSetupViewSuccess, fetchRemiSetupViewFailure, updateRemiSetupViewLocalStoreData } from '../../remiSetupViewReducer';
|
|
15
15
|
import { updatePlaidAccountViewAccountDetails } from '../../../../plaidAccount/plaidAccountViewReducer';
|
|
16
16
|
import { updateDepositAccounts } from '../../../../../../entity/depositAccount/depositAccountReducer';
|
|
17
|
-
|
|
17
|
+
import { updatePaymentAccountList } from '../../../../zeniAccounts/paymentAccountList/paymentAccountListReducer';
|
|
18
|
+
import { updateDepositAccountList } from '../../../../zeniAccounts/depositAccountList/depositAccountListReducer';
|
|
19
|
+
export declare type ActionType = ReturnType<typeof fetchRemiSetupView> | ReturnType<typeof updateAllUsers> | ReturnType<typeof updateUserRoles> | ReturnType<typeof updateCompanies> | ReturnType<typeof updateFiles> | ReturnType<typeof updateAccounts> | ReturnType<typeof updateAddresses> | ReturnType<typeof updatePaymentAccounts> | ReturnType<typeof updateDepositAccounts> | ReturnType<typeof updatePlaidAccountViewAccountDetails> | ReturnType<typeof updateSetupViewLocalStoreData> | ReturnType<typeof updateRemiSetupViewLocalStoreData> | ReturnType<typeof openSnackbar> | ReturnType<typeof fetchRemiSetupViewSuccess> | ReturnType<typeof fetchRemiSetupViewFailure> | ReturnType<typeof updatePaymentAccountList> | ReturnType<typeof updateDepositAccountList>;
|
|
18
20
|
export declare const fetchRemiSetupViewEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|
|
@@ -19,6 +19,8 @@ const plaidAccountViewReducer_1 = require("../../../../plaidAccount/plaidAccount
|
|
|
19
19
|
const billPayConfigPayload_1 = require("../../../../billPay/billPayConfig/billPayConfigPayload");
|
|
20
20
|
const billPayConfigState_1 = require("../../../../billPay/billPayConfig/billPayConfigState");
|
|
21
21
|
const depositAccountReducer_1 = require("../../../../../../entity/depositAccount/depositAccountReducer");
|
|
22
|
+
const paymentAccountListReducer_1 = require("../../../../zeniAccounts/paymentAccountList/paymentAccountListReducer");
|
|
23
|
+
const depositAccountListReducer_1 = require("../../../../zeniAccounts/depositAccountList/depositAccountListReducer");
|
|
22
24
|
const fetchRemiSetupViewEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(remiSetupViewReducer_1.fetchRemiSetupView.match), (0, operators_1.switchMap)((action) => {
|
|
23
25
|
var _a;
|
|
24
26
|
const { companyId, cacheOverride, refreshViewInBackground } = action.payload;
|
|
@@ -32,7 +34,7 @@ const fetchRemiSetupViewEpic = (actions$, state$, zeniAPI) => actions$.pipe((0,
|
|
|
32
34
|
return zeniAPI
|
|
33
35
|
.getJSON(`${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/companies/${companyId}?query={"view":"reimbursement_setup"}`)
|
|
34
36
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
35
|
-
var _a, _b;
|
|
37
|
+
var _a, _b, _c, _d;
|
|
36
38
|
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
37
39
|
const allBankAccountIds = response.data.accounts.map((account) => account.account_id);
|
|
38
40
|
const paymentAccountIds = response.data.payment_accounts.map((paymentAccount) => paymentAccount.payment_account_id);
|
|
@@ -57,7 +59,15 @@ const fetchRemiSetupViewEpic = (actions$, state$, zeniAPI) => actions$.pipe((0,
|
|
|
57
59
|
(0, fileReducer_1.updateFiles)({ files: response.data.files }),
|
|
58
60
|
(0, accountReducer_1.updateAccounts)(response.data.accounts, 'reimbursement'),
|
|
59
61
|
(0, paymentAccountReducer_1.updatePaymentAccounts)(response.data.payment_accounts),
|
|
62
|
+
(0, paymentAccountListReducer_1.updatePaymentAccountList)({
|
|
63
|
+
data: response.data.payment_accounts,
|
|
64
|
+
updateType: 'replace',
|
|
65
|
+
}),
|
|
60
66
|
(0, depositAccountReducer_1.updateDepositAccounts)((_b = response.data.deposit_accounts) !== null && _b !== void 0 ? _b : []),
|
|
67
|
+
(0, depositAccountListReducer_1.updateDepositAccountList)({
|
|
68
|
+
data: (_d = (_c = response.data) === null || _c === void 0 ? void 0 : _c.deposit_accounts) !== null && _d !== void 0 ? _d : [],
|
|
69
|
+
updateType: 'replace',
|
|
70
|
+
}),
|
|
61
71
|
(0, setupViewReducer_1.updateSetupViewLocalStoreData)({
|
|
62
72
|
companyId: response.data.companies[0].company_id,
|
|
63
73
|
}),
|
package/lib/view/vendorReviewView/vendorFirstReviewView/epics/fetchVendorFirstReviewViewEpic.js
CHANGED
|
@@ -67,7 +67,6 @@ const mapVendorPayloadFromVendorFirstReviewViewResponse = (vendor) => {
|
|
|
67
67
|
qbo_id: vendor.qbo_id,
|
|
68
68
|
currency_code: vendor.currency_code,
|
|
69
69
|
currency_symbol: vendor.currency_symbol,
|
|
70
|
-
transaction_attachments: vendor.transaction_attachments,
|
|
71
70
|
};
|
|
72
71
|
};
|
|
73
72
|
const mapUsersPayloadFromVendorFirstReviewViewResponse = (vendorsResponse) => {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { AttachmentPayload } from '../../../entity/transaction/payloadTypes/attachmentPayload';
|
|
2
1
|
import { UserBasePayload } from '../../../entity/user/userPayload';
|
|
3
2
|
import { VendorPayload } from '../../../entity/vendor/vendorPayload';
|
|
4
3
|
import { ZeniAPIResponse } from '../../../responsePayload';
|
|
@@ -9,7 +8,6 @@ export interface VendorFirstReviewViewPayload extends VendorPayload {
|
|
|
9
8
|
status: ReviewStatusPayload;
|
|
10
9
|
last_updated_vendor_name_by_user: UserBasePayload | null;
|
|
11
10
|
merge_vendor_name: string | null;
|
|
12
|
-
transaction_attachments?: AttachmentPayload[] | null;
|
|
13
11
|
}
|
|
14
12
|
export interface FetchVendorFirstReviewViewQuery {
|
|
15
13
|
search_text: string;
|
|
@@ -40,7 +38,6 @@ export interface SaveVendorFirstReviewViewPayload extends VendorPayload {
|
|
|
40
38
|
last_updated_vendor_name_by_user: UserBasePayload | null;
|
|
41
39
|
status: ReviewStatusPayload;
|
|
42
40
|
merge_vendor_name: string | null;
|
|
43
|
-
transaction_attachments: AttachmentPayload[];
|
|
44
41
|
}
|
|
45
42
|
export interface SaveVendorFirstReviewView {
|
|
46
43
|
vendors?: SaveVendorFirstReviewViewPayload[];
|
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.saveVendorFirstReviewViewSuccessOrFailure = exports.clearRecentlySavedErroredVendorData = exports.updateRecentlySavedErroredVendorData = exports.resetVendorFirstReviewLocalData = exports.updateVendorFirstReviewViewLocalData = exports.initializeVendorFirstReviewViewLocalData = exports.updateVendorFirstReviewSortUiState = exports.saveVendorFirstReviewView = exports.updateVendorFirstReviewViewPageToken = exports.updateVendorFirstReviewViewScrollYOffset = exports.clearVendorReviewView = exports.updateVendorFirstReviewViewFailure = exports.updateSavedVendorFirstReviewViewLocalData = exports.fetchVendorFirstReviewView = exports.initialState = void 0;
|
|
5
5
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
6
|
const commonTypes_1 = require("../common/state/commonTypes");
|
|
7
|
-
const attachmentPayload_1 = require("../../../entity/transaction/payloadTypes/attachmentPayload");
|
|
8
7
|
exports.initialState = {
|
|
9
8
|
vendorFirstReviewViewLocalDataById: {},
|
|
10
9
|
fetchState: 'Not-Started',
|
|
@@ -180,9 +179,11 @@ const vendorFirstReviewView = (0, toolkit_1.createSlice)({
|
|
|
180
179
|
saveVendorFirstReviewViewSuccessOrFailure: {
|
|
181
180
|
reducer(draft, action) {
|
|
182
181
|
const vendorId = action.payload.vendorId;
|
|
183
|
-
draft.vendorFirstReviewViewLocalDataById[vendorId]
|
|
184
|
-
|
|
185
|
-
|
|
182
|
+
if (draft.vendorFirstReviewViewLocalDataById[vendorId] != null) {
|
|
183
|
+
draft.vendorFirstReviewViewLocalDataById[vendorId].saveStatus.fetchState = action.payload.fetchState;
|
|
184
|
+
draft.vendorFirstReviewViewLocalDataById[vendorId].saveStatus.error =
|
|
185
|
+
action.payload.error;
|
|
186
|
+
}
|
|
186
187
|
const status = action.payload.reviewStatus != null &&
|
|
187
188
|
(0, commonTypes_1.toVendorFirstReviewViewStatusesTypeStrict)(action.payload.reviewStatus.code);
|
|
188
189
|
// Note: We need to delete vendor local data when save is success with status code 'reviewed' OR it is marked as en employee
|
|
@@ -253,9 +254,6 @@ const mapPayloadToVendorFirstReviewView = (payload) => {
|
|
|
253
254
|
mergeVendorName: payload.merge_vendor_name != null && payload.merge_vendor_name.length > 0
|
|
254
255
|
? payload.merge_vendor_name
|
|
255
256
|
: undefined,
|
|
256
|
-
transactionAttachments: payload.transaction_attachments != null
|
|
257
|
-
? payload.transaction_attachments.map((attachmentPayload) => (0, attachmentPayload_1.toAttachment)(attachmentPayload))
|
|
258
|
-
: [],
|
|
259
257
|
/* merge_vendor_name can be an empty string from platform in cases other than `merge_in_qbo` status.
|
|
260
258
|
So, to avoid further string length checks, making this undefined.*/
|
|
261
259
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FetchStateAndError, ID } from '../../../commonStateTypes/common';
|
|
2
2
|
import { SelectorView } from '../../../commonStateTypes/viewAndReport/viewAndReport';
|
|
3
|
-
import { Attachment } from '../../../entity/transaction/stateTypes/attachment';
|
|
4
3
|
import { User } from '../../../entity/user/userState';
|
|
5
4
|
import { Vendor } from '../../../entity/vendor/vendorState';
|
|
6
5
|
import { RootState } from '../../../reducer';
|
|
@@ -30,7 +29,6 @@ export interface VendorFirstReviewSelectorView {
|
|
|
30
29
|
saveStatus: FetchStateAndError;
|
|
31
30
|
recommendations: RecommendedNonExistingGlobalMerchant[];
|
|
32
31
|
currentSelection: VendorReviewRowCurrentSelection;
|
|
33
|
-
transactionAttachments: Attachment[];
|
|
34
32
|
}
|
|
35
33
|
export interface RecentlySavedErroredVendorView {
|
|
36
34
|
vendorId: ID;
|
|
@@ -23,7 +23,6 @@ const getVendorFirstReviewView = (state) => {
|
|
|
23
23
|
...recommendations,
|
|
24
24
|
...vendorLocalData.recommendedNonExistingGlobalMerchants,
|
|
25
25
|
];
|
|
26
|
-
const transactionAttachments = vendorLocalData.transactionAttachments;
|
|
27
26
|
let selectedVendor;
|
|
28
27
|
const vendor = (0, vendorSelector_1.getVendorByVendorId)(vendorState, vendorLocalData.selectedVendorId);
|
|
29
28
|
if (vendor != null) {
|
|
@@ -62,7 +61,6 @@ const getVendorFirstReviewView = (state) => {
|
|
|
62
61
|
recommendations,
|
|
63
62
|
currentSelection: vendorLocalData.currentSelection,
|
|
64
63
|
mergeVendorName: vendorLocalData.mergeVendorName,
|
|
65
|
-
transactionAttachments,
|
|
66
64
|
};
|
|
67
65
|
});
|
|
68
66
|
let recentlyUpdatedErroredVendorData = undefined;
|
|
@@ -2,14 +2,13 @@ import { FetchedState, FetchStateAndError, ID } from '../../../commonStateTypes/
|
|
|
2
2
|
import { SortOrder } from '../../../commonStateTypes/selectorTypes/sortOrderTypes';
|
|
3
3
|
import { PageToken } from '../../../commonStateTypes/viewAndReport/viewAndReport';
|
|
4
4
|
import { GlobalMerchant } from '../../../entity/globalMerchant/globalMerchantState';
|
|
5
|
-
import { Attachment } from '../../../entity/transaction/stateTypes/attachment';
|
|
6
5
|
import { VendorReviewRowCurrentSelection, ReviewStatus } from '../common/state/commonTypes';
|
|
7
|
-
export declare const VENDOR_FIRST_REVIEW_VIEW_COLUMN_KEYS: readonly ["vendor", "updateTo", "retain", "status", "action", "ytd"
|
|
6
|
+
export declare const VENDOR_FIRST_REVIEW_VIEW_COLUMN_KEYS: readonly ["vendor", "updateTo", "retain", "status", "action", "ytd"];
|
|
8
7
|
export interface CurrentSelectionByColumn {
|
|
9
8
|
retain: boolean;
|
|
10
9
|
update: boolean;
|
|
11
10
|
}
|
|
12
|
-
export declare const toVendorFirstReviewViewColumnKeyType: (v: string) => "action" | "status" | "vendor" | "retain" | "updateTo" | "ytd"
|
|
11
|
+
export declare const toVendorFirstReviewViewColumnKeyType: (v: string) => "action" | "status" | "vendor" | "retain" | "updateTo" | "ytd";
|
|
13
12
|
export declare type VendorFirstReviewViewColumnKey = ReturnType<typeof toVendorFirstReviewViewColumnKeyType>;
|
|
14
13
|
export interface RecommendedNonExistingGlobalMerchant extends Omit<GlobalMerchant, 'globalMerchantId'> {
|
|
15
14
|
globalMerchantId?: ID;
|
|
@@ -32,7 +31,6 @@ export interface VendorFirstReviewViewLocalData {
|
|
|
32
31
|
vendorRenamedText?: string;
|
|
33
32
|
lastUpdatedVendorNameByUserId?: ID;
|
|
34
33
|
mergeVendorName: string | undefined;
|
|
35
|
-
transactionAttachments: Attachment[];
|
|
36
34
|
}
|
|
37
35
|
export interface RecentlySavedErroredVendorData {
|
|
38
36
|
vendorId: ID;
|
|
@@ -8,8 +8,7 @@ exports.VENDOR_FIRST_REVIEW_VIEW_COLUMN_KEYS = [
|
|
|
8
8
|
'retain',
|
|
9
9
|
'status',
|
|
10
10
|
'action',
|
|
11
|
-
'ytd',
|
|
12
|
-
'viewTenantInvoice',
|
|
11
|
+
'ytd', // Note: this is not part of list view, we are keeping it to use for default sorting purpose since default sorting is by year_to_date_spend
|
|
13
12
|
];
|
|
14
13
|
const toVendorFirstReviewViewColumnKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.VENDOR_FIRST_REVIEW_VIEW_COLUMN_KEYS);
|
|
15
14
|
exports.toVendorFirstReviewViewColumnKeyType = toVendorFirstReviewViewColumnKeyType;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.10.
|
|
3
|
+
"version": "4.10.97",
|
|
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
|
"types": "lib/index.d.ts",
|