@zeniai/client-epic-state 4.12.87 → 4.12.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonStateTypes/fileType.d.ts +2 -2
- package/lib/commonStateTypes/fileType.js +1 -1
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigPayload.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigReducer.js +1 -1
- package/lib/view/spendManagement/reimbursement/reimbursementConfig/reimbursementConfigPayload.d.ts +1 -1
- package/lib/view/spendManagement/reimbursement/reimbursementConfig/reimbursementConfigReducer.js +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const ALL_FILE_TYPES: readonly ["pdf", "excel"];
|
|
2
|
-
export declare const toFileTypeStrict: (v?: string | undefined) => "excel" | "pdf" | undefined;
|
|
1
|
+
export declare const ALL_FILE_TYPES: readonly ["pdf", "excel", "csv"];
|
|
2
|
+
export declare const toFileTypeStrict: (v?: string | undefined) => "excel" | "pdf" | "csv" | undefined;
|
|
3
3
|
export declare type FileType = NonNullable<ReturnType<typeof toFileTypeStrict>>;
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.toFileTypeStrict = exports.ALL_FILE_TYPES = void 0;
|
|
4
4
|
const stringToUnion_1 = require("./stringToUnion");
|
|
5
|
-
exports.ALL_FILE_TYPES = ['pdf', 'excel'];
|
|
5
|
+
exports.ALL_FILE_TYPES = ['pdf', 'excel', "csv"];
|
|
6
6
|
const toFileTypeStrict = (v) => { var _a; return (0, stringToUnion_1.stringToUnionStrict)((_a = v === null || v === void 0 ? void 0 : v.toLocaleLowerCase()) !== null && _a !== void 0 ? _a : '', exports.ALL_FILE_TYPES); };
|
|
7
7
|
exports.toFileTypeStrict = toFileTypeStrict;
|
|
@@ -11,7 +11,7 @@ export interface BillPayConfigPayload {
|
|
|
11
11
|
is_international_wire_enabled: boolean;
|
|
12
12
|
is_international_wires_verified: boolean;
|
|
13
13
|
payment_processor: BillPayConfigPaymentProcessorPayload;
|
|
14
|
-
|
|
14
|
+
max_bills_allowed_for_bulk_action: number;
|
|
15
15
|
required_fields: {
|
|
16
16
|
ach: Record<PaymentAchSubConfigCodeType, string[]>;
|
|
17
17
|
wire: Record<BillPaymentWireSubConfigCodeType, string[]>;
|
|
@@ -79,7 +79,7 @@ const billPayConfig = (0, toolkit_1.createSlice)({
|
|
|
79
79
|
draft.fetchState = 'Completed';
|
|
80
80
|
draft.error = undefined;
|
|
81
81
|
draft.billPayBotEmail = payload.bill_pay_bot_email;
|
|
82
|
-
draft.billBulkSubmissionLimit = payload.
|
|
82
|
+
draft.billBulkSubmissionLimit = payload.max_bills_allowed_for_bulk_action;
|
|
83
83
|
draft.vendor.supportedCountries = vendor.supported_countries.map((country) => {
|
|
84
84
|
return {
|
|
85
85
|
countryCode: country.country_code,
|
package/lib/view/spendManagement/reimbursement/reimbursementConfig/reimbursementConfigPayload.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface ReimbursementConfigPayload {
|
|
|
9
9
|
};
|
|
10
10
|
currency_country_map: CurrencyCountryPayload[];
|
|
11
11
|
reimbursement_bot_email: string;
|
|
12
|
-
|
|
12
|
+
max_reimbursements_allowed_for_bulk_action: number;
|
|
13
13
|
}
|
|
14
14
|
interface ReimbursementConfigPaymentProcessorPayload {
|
|
15
15
|
payment_timeline: Record<ReimbursementmentConfigCodeType, Record<ReimbursementmentSubConfigCodeType, ConfigTimelinePayload>>;
|
package/lib/view/spendManagement/reimbursement/reimbursementConfig/reimbursementConfigReducer.js
CHANGED
|
@@ -41,7 +41,7 @@ const reimbursementConfig = (0, toolkit_1.createSlice)({
|
|
|
41
41
|
draft.error = undefined;
|
|
42
42
|
draft.reimbursementBotEmail = payload.reimbursement_bot_email;
|
|
43
43
|
draft.reimbursementBulkSubmissionLimit =
|
|
44
|
-
payload.
|
|
44
|
+
payload.max_reimbursements_allowed_for_bulk_action;
|
|
45
45
|
},
|
|
46
46
|
updateReimbursementConfigFailure(draft, action) {
|
|
47
47
|
draft.fetchState = 'Error';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.12.
|
|
3
|
+
"version": "4.12.88",
|
|
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",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"build": "concurrently --kill-others-on-fail \"eslint . --ext .js,.jsx,.ts,.tsx\" \"tsc\" \"jest --config jest.config.json\"",
|
|
89
89
|
"onlybuild": "concurrently --kill-others-on-fail \"eslint . --ext .js,.jsx,.ts,.tsx\" \"tsc\"",
|
|
90
90
|
"format": "prettier --write --ignore-unknown \"src/**/*\"",
|
|
91
|
-
"format-watch": "git diff --name-only --
|
|
91
|
+
"format-watch": "(git diff --name-only --diff-filter=ACM && git ls-files --others --exclude-standard) | grep -E '\\.(ts|tsx)$' | xargs prettier --write",
|
|
92
92
|
"check-version": "ts-node ./scripts/check-version.ts",
|
|
93
93
|
"version": "git add -A src",
|
|
94
94
|
"postversion": "git push && git push --tags",
|