@zeniai/client-epic-state 4.12.97 → 4.12.98

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.
Files changed (81) hide show
  1. package/lib/commonPayloadTypes/commonPayload.d.ts +0 -7
  2. package/lib/commonPayloadTypes/v2/getSumOfBalancesGroupedByPeriod.d.ts +0 -0
  3. package/lib/commonPayloadTypes/v2/getSumOfBalancesGroupedByPeriod.js +1 -0
  4. package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSectionWithAcOnly.d.ts +0 -0
  5. package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSectionWithAcOnly.js +1 -0
  6. package/lib/entity/company/companyPayload.d.ts +0 -4
  7. package/lib/entity/company/companyPayload.js +3 -6
  8. package/lib/entity/company/companyReducer.d.ts +1 -4
  9. package/lib/entity/company/companyReducer.js +2 -6
  10. package/lib/entity/company/companyStateTypes.d.ts +0 -4
  11. package/lib/entity/file/fileState.d.ts +3 -3
  12. package/lib/entity/file/fileState.js +0 -2
  13. package/lib/entity/tenant/clearAllEpic.d.ts +1 -3
  14. package/lib/entity/tenant/clearAllEpic.js +0 -4
  15. package/lib/entity/user/userPayload.d.ts +0 -1
  16. package/lib/entity/user/userReducer.js +8 -9
  17. package/lib/entity/user/userState.d.ts +0 -1
  18. package/lib/epic.d.ts +1 -6
  19. package/lib/epic.js +1 -6
  20. package/lib/index.d.ts +5 -12
  21. package/lib/index.js +6 -15
  22. package/lib/reducer.d.ts +0 -6
  23. package/lib/reducer.js +0 -6
  24. package/lib/view/addressView/__mocks__/json/createCompanyAddressSuccess.json +1 -7
  25. package/lib/view/addressView/__mocks__/json/createCompanyUserAddressSuccess.json +1 -7
  26. package/lib/view/addressView/addressViewState.d.ts +1 -1
  27. package/lib/view/addressView/toAddressViewLocalData.js +0 -5
  28. package/lib/view/commonVendorView/vendorView/vendorViewSelector.d.ts +1 -1
  29. package/lib/view/companyView/epic/companyPassport/updateCompanyPassportLocalStoreDataEpic.js +6 -1
  30. package/lib/view/companyView/selectorHelpers/getCompanyView.js +0 -4
  31. package/lib/view/companyView/types/companyPassport/companyUsersLocalData.d.ts +0 -2
  32. package/lib/view/companyView/types/companyPassport/companyUsersLocalData.js +1 -7
  33. package/lib/view/companyView/types/companyView.d.ts +0 -1
  34. package/lib/view/onboardingView/customerView/epic/customerDetails/fetchOnboardingCustomerViewEpic.d.ts +1 -8
  35. package/lib/view/onboardingView/customerView/epic/customerDetails/fetchOnboardingCustomerViewEpic.js +1 -3
  36. package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewEpic.js +4 -5
  37. package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.d.ts +0 -2
  38. package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.js +3 -6
  39. package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
  40. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.d.ts +4 -1
  41. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.d.ts +0 -2
  42. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +0 -3
  43. package/lib/view/spendManagement/billPay/internationalWire/internationalWireSelector.d.ts +1 -2
  44. package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.d.ts +1 -1
  45. package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.js +6 -31
  46. package/lib/view/spendManagement/commonSetup/epic/setup/updateSetupViewLocalStoreDataEpic.d.ts +2 -2
  47. package/lib/view/spendManagement/commonSetup/epic/setup/updateSetupViewLocalStoreDataEpic.js +2 -5
  48. package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +1 -4
  49. package/lib/view/spendManagement/commonSetup/setupViewSelector.js +2 -6
  50. package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +0 -1
  51. package/lib/view/spendManagement/commonSetup/types/businessVerification.d.ts +0 -4
  52. package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardReducer.js +3 -1
  53. package/package.json +1 -1
  54. package/lib/view/countryList/countryListReducer.d.ts +0 -17
  55. package/lib/view/countryList/countryListReducer.js +0 -58
  56. package/lib/view/countryList/countryListSelector.d.ts +0 -7
  57. package/lib/view/countryList/countryListSelector.js +0 -13
  58. package/lib/view/countryList/countryListState.d.ts +0 -12
  59. package/lib/view/countryList/countryListState.js +0 -2
  60. package/lib/view/countryList/epics/fetchCountryListEpic.d.ts +0 -6
  61. package/lib/view/countryList/epics/fetchCountryListEpic.js +0 -19
  62. package/lib/view/countryList/epics/fetchNationalityCountryListEpic.d.ts +0 -7
  63. package/lib/view/countryList/epics/fetchNationalityCountryListEpic.js +0 -38
  64. package/lib/view/countryList/payloads/countryListPayload.d.ts +0 -6
  65. package/lib/view/countryList/payloads/countryListPayload.js +0 -10
  66. package/lib/view/countryList/payloads/nationalityCountryListPayload.d.ts +0 -11
  67. package/lib/view/countryList/payloads/nationalityCountryListPayload.js +0 -2
  68. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/fetchIntlVerificationFormEpic.d.ts +0 -7
  69. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/fetchIntlVerificationFormEpic.js +0 -36
  70. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/initializeIntlVerificationFormEpic.d.ts +0 -6
  71. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/initializeIntlVerificationFormEpic.js +0 -40
  72. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/submitIntlVerificationEpic.d.ts +0 -9
  73. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/submitIntlVerificationEpic.js +0 -67
  74. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationPayload.d.ts +0 -26
  75. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationPayload.js +0 -22
  76. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationReducer.d.ts +0 -22
  77. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationReducer.js +0 -89
  78. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationSelector.d.ts +0 -15
  79. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationSelector.js +0 -30
  80. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationState.d.ts +0 -20
  81. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationState.js +0 -2
@@ -1,40 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.initializeIntlVerificationFormEpic = void 0;
4
- const rxjs_1 = require("rxjs");
5
- const operators_1 = require("rxjs/operators");
6
- const internationalWireVerificationReducer_1 = require("../internationalWireVerificationReducer");
7
- const initializeIntlVerificationFormEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(internationalWireVerificationReducer_1.initializeIntlVerificationForm.match), (0, operators_1.mergeMap)((action) => {
8
- const { companyId, internationalWireFormPayload } = action.payload;
9
- const actions = [];
10
- const state = state$.value;
11
- const onboardingDataFromCompanyInfo = state.companyState.companiesById[companyId].companyBillPayInfo
12
- .internationalWireOnboardingDetails;
13
- const localData = {};
14
- Object.keys(internationalWireFormPayload).forEach((formFieldKey) => {
15
- const values = onboardingDataFromCompanyInfo != null
16
- ? onboardingDataFromCompanyInfo[formFieldKey].values
17
- : undefined;
18
- if (values != null) {
19
- localData[formFieldKey] =
20
- internationalWireFormPayload[formFieldKey].type === 'enum'
21
- ? values.length === 1
22
- ? typeof values[0] === 'object' && 'code' in values[0]
23
- ? values[0].code
24
- : ''
25
- : values.map((value) => typeof value === 'object' && 'code' in value
26
- ? value.code
27
- : '')
28
- : values[0];
29
- }
30
- else {
31
- localData[formFieldKey] =
32
- internationalWireFormPayload[formFieldKey].type === 'enum'
33
- ? []
34
- : '';
35
- }
36
- });
37
- actions.push((0, internationalWireVerificationReducer_1.updateVerificationFormLocalData)(localData));
38
- return (0, rxjs_1.from)(actions);
39
- }));
40
- exports.initializeIntlVerificationFormEpic = initializeIntlVerificationFormEpic;
@@ -1,9 +0,0 @@
1
- import { ActionsObservable, StateObservable } from 'redux-observable';
2
- import { Observable } from 'rxjs';
3
- import { ZeniAPI } from '../../../../../zeniAPI';
4
- import { RootState } from '../../../../../reducer';
5
- import { openSnackbar } from '../../../../../entity/snackbar/snackbarReducer';
6
- import { submitInternationalVerificationForm, updateVerificationFormSubmissionStatus } from '../internationalWireVerificationReducer';
7
- import { updateInternationalWireOnboardingStatus } from '../../../../../entity/company/companyReducer';
8
- export declare type ActionType = ReturnType<typeof submitInternationalVerificationForm> | ReturnType<typeof updateVerificationFormSubmissionStatus> | ReturnType<typeof updateInternationalWireOnboardingStatus> | ReturnType<typeof openSnackbar>;
9
- export declare const submitIntlVerificationEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
@@ -1,67 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.submitIntlVerificationEpic = void 0;
4
- const rxjs_1 = require("rxjs");
5
- const operators_1 = require("rxjs/operators");
6
- const responsePayload_1 = require("../../../../../responsePayload");
7
- const snackbarReducer_1 = require("../../../../../entity/snackbar/snackbarReducer");
8
- const internationalWireVerificationReducer_1 = require("../internationalWireVerificationReducer");
9
- const companyReducer_1 = require("../../../../../entity/company/companyReducer");
10
- const submitIntlVerificationEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(internationalWireVerificationReducer_1.submitInternationalVerificationForm.match), (0, operators_1.switchMap)((action) => {
11
- const { internationalWireVerificationState } = state$.value;
12
- const { companyId } = action.payload;
13
- const localData = internationalWireVerificationState.verificationFormLocalData;
14
- if (localData != null) {
15
- return zeniAPI
16
- .postAndGetJSON(`${zeniAPI.apiEndPoints.payMicroServiceBaseUrl}/1.0/international-wire/onboarding`, toIntlWireVerificationPayload(localData))
17
- .pipe((0, operators_1.mergeMap)((response) => {
18
- var _a;
19
- const actions = [];
20
- if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
21
- actions.push((0, internationalWireVerificationReducer_1.updateVerificationFormSubmissionStatus)({
22
- fetchState: 'Completed',
23
- error: undefined,
24
- }));
25
- actions.push((0, snackbarReducer_1.openSnackbar)({
26
- messageSection: 'business_verification_submit',
27
- messageText: 'success',
28
- type: 'success',
29
- }));
30
- if (response.data != null) {
31
- actions.push((0, companyReducer_1.updateInternationalWireOnboardingStatus)({
32
- companyId: companyId,
33
- status: (_a = response.data) === null || _a === void 0 ? void 0 : _a.international_wire_onboarding_status,
34
- }));
35
- }
36
- }
37
- else {
38
- actions.push((0, internationalWireVerificationReducer_1.updateVerificationFormSubmissionStatus)({
39
- fetchState: 'Error',
40
- error: response.status,
41
- }));
42
- actions.push((0, snackbarReducer_1.openSnackbar)({
43
- messageSection: 'business_verification_submit',
44
- messageText: 'failed',
45
- type: 'error',
46
- }));
47
- }
48
- return (0, rxjs_1.from)(actions);
49
- }), (0, operators_1.catchError)((error) => {
50
- return (0, rxjs_1.of)((0, internationalWireVerificationReducer_1.updateVerificationFormSubmissionStatus)({
51
- fetchState: 'Error',
52
- error: (0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', 'Submit international wire verification REST API call errored out' +
53
- JSON.stringify(error)),
54
- }));
55
- }));
56
- }
57
- else {
58
- return (0, rxjs_1.from)([]);
59
- }
60
- }));
61
- exports.submitIntlVerificationEpic = submitIntlVerificationEpic;
62
- const toIntlWireVerificationPayload = (localData) => {
63
- return {
64
- is_applicant_declaration: true,
65
- form_details: localData,
66
- };
67
- };
@@ -1,26 +0,0 @@
1
- import { AllowedValueWithCode } from '../../../../commonStateTypes/allowedValue';
2
- import { ZeniAPIResponse } from '../../../../responsePayload';
3
- import { VerificationFormField } from './internationalWireVerificationState';
4
- export interface FieldPayload {
5
- label: string;
6
- type: string;
7
- field_hint_text?: string;
8
- field_values?: {
9
- code: string;
10
- description: string;
11
- }[];
12
- is_multiple_values_allowed?: boolean;
13
- }
14
- export declare const toDynamicFormField: (key: string, payload: FieldPayload) => VerificationFormField;
15
- export declare type IntlVerificationFormResponse = ZeniAPIResponse<IntlVerificationFormPayload>;
16
- export interface IntlVerificationFormPayload {
17
- labels: Record<string, FieldPayload>;
18
- create_time: string;
19
- update_time: string;
20
- }
21
- interface SubmitIntlVerificationFormPayload {
22
- international_wire_onboarding_status: AllowedValueWithCode;
23
- status_remarks: string | null;
24
- }
25
- export declare type SubmitIntlVerificationFormResponse = ZeniAPIResponse<SubmitIntlVerificationFormPayload>;
26
- export {};
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toDynamicFormField = void 0;
4
- const toDynamicFormField = (key, payload) => {
5
- var _a, _b;
6
- return ({
7
- name: key,
8
- label: payload.label,
9
- placeholder: (_a = payload.field_hint_text) !== null && _a !== void 0 ? _a : '',
10
- isMultipleValuesAllowed: (_b = payload.is_multiple_values_allowed) !== null && _b !== void 0 ? _b : false,
11
- type: payload.type,
12
- fieldValues: payload.field_values != null && payload.field_values.length > 0
13
- ? payload.field_values.map((fieldValue) => {
14
- return {
15
- code: fieldValue.code,
16
- description: fieldValue.description,
17
- };
18
- })
19
- : [],
20
- });
21
- };
22
- exports.toDynamicFormField = toDynamicFormField;
@@ -1,22 +0,0 @@
1
- import { FieldPayload } from './internationalWireVerificationPayload';
2
- import { VerificationFormLocalData, InternationalWireVerificationState } from './internationalWireVerificationState';
3
- import { FetchState } from '../../../../commonStateTypes/common';
4
- import { ZeniAPIStatus } from '../../../../responsePayload';
5
- export declare const initialState: InternationalWireVerificationState;
6
- export declare const fetchInternationalVerificationForm: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string], {
7
- companyId: string;
8
- }, string, never, never>, updateInternationalVerificationForm: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
9
- internationalWireFormPayload: Record<string, FieldPayload>;
10
- }, string>, updateVerificationFormFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
11
- error?: ZeniAPIStatus<Record<string, unknown>> | undefined;
12
- }, string>, updateVerificationFormLocalData: import("@reduxjs/toolkit").ActionCreatorWithPayload<VerificationFormLocalData, string>, submitInternationalVerificationForm: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string], {
13
- companyId: string;
14
- }, string, never, never>, updateVerificationFormSubmissionStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
15
- fetchState: FetchState;
16
- error?: ZeniAPIStatus<Record<string, unknown>> | undefined;
17
- }, string>, initializeIntlVerificationForm: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, internationalWireFormPayload: Record<string, FieldPayload>], {
18
- companyId: string;
19
- internationalWireFormPayload: Record<string, FieldPayload>;
20
- }, string, never, never>, clearInternationalVerificationView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
21
- declare const _default: import("@reduxjs/toolkit").Reducer<InternationalWireVerificationState, import("@reduxjs/toolkit").AnyAction>;
22
- export default _default;
@@ -1,89 +0,0 @@
1
- "use strict";
2
- var _a;
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.clearInternationalVerificationView = exports.initializeIntlVerificationForm = exports.updateVerificationFormSubmissionStatus = exports.submitInternationalVerificationForm = exports.updateVerificationFormLocalData = exports.updateVerificationFormFailure = exports.updateInternationalVerificationForm = exports.fetchInternationalVerificationForm = exports.initialState = void 0;
5
- const toolkit_1 = require("@reduxjs/toolkit");
6
- const internationalWireVerificationPayload_1 = require("./internationalWireVerificationPayload");
7
- exports.initialState = {
8
- verificationFormFetchState: {
9
- fetchState: 'Not-Started',
10
- },
11
- verificationFormFields: [],
12
- verificationFormLocalData: {},
13
- verificationFormSubmitState: {
14
- fetchState: 'Not-Started',
15
- },
16
- };
17
- const internationalWireVerification = (0, toolkit_1.createSlice)({
18
- name: 'internationalWireVerification',
19
- initialState: exports.initialState,
20
- reducers: {
21
- fetchInternationalVerificationForm: {
22
- reducer(draft) {
23
- draft.verificationFormFetchState = {
24
- fetchState: 'In-Progress',
25
- error: undefined,
26
- };
27
- },
28
- prepare(companyId) {
29
- return {
30
- payload: {
31
- companyId,
32
- },
33
- };
34
- },
35
- },
36
- updateInternationalVerificationForm(draft, action) {
37
- const { internationalWireFormPayload } = action.payload;
38
- const verificationFormFields = [];
39
- Object.keys(internationalWireFormPayload).forEach((key) => {
40
- verificationFormFields.push((0, internationalWireVerificationPayload_1.toDynamicFormField)(key, internationalWireFormPayload[key]));
41
- });
42
- draft.verificationFormFields = verificationFormFields;
43
- draft.verificationFormFetchState.fetchState = 'Completed';
44
- },
45
- updateVerificationFormFailure(draft, action) {
46
- const { error } = action.payload;
47
- draft.verificationFormFetchState.fetchState = 'Error';
48
- draft.verificationFormFetchState.error = error;
49
- },
50
- updateVerificationFormLocalData(draft, action) {
51
- draft.verificationFormLocalData = Object.assign({}, action.payload);
52
- },
53
- submitInternationalVerificationForm: {
54
- reducer(draft) {
55
- draft.verificationFormSubmitState.fetchState = 'In-Progress';
56
- draft.verificationFormSubmitState.error = undefined;
57
- },
58
- prepare(companyId) {
59
- return {
60
- payload: { companyId },
61
- };
62
- },
63
- },
64
- updateVerificationFormSubmissionStatus(draft, action) {
65
- const { fetchState, error } = action.payload;
66
- draft.verificationFormSubmitState.fetchState = fetchState;
67
- draft.verificationFormSubmitState.error = error;
68
- },
69
- initializeIntlVerificationForm: {
70
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
71
- reducer(_draft) {
72
- // do nothing
73
- },
74
- prepare(companyId, internationalWireFormPayload) {
75
- return {
76
- payload: {
77
- companyId,
78
- internationalWireFormPayload,
79
- },
80
- };
81
- },
82
- },
83
- clearInternationalVerificationView(draft) {
84
- Object.assign(draft, exports.initialState);
85
- },
86
- },
87
- });
88
- _a = internationalWireVerification.actions, exports.fetchInternationalVerificationForm = _a.fetchInternationalVerificationForm, exports.updateInternationalVerificationForm = _a.updateInternationalVerificationForm, exports.updateVerificationFormFailure = _a.updateVerificationFormFailure, exports.updateVerificationFormLocalData = _a.updateVerificationFormLocalData, exports.submitInternationalVerificationForm = _a.submitInternationalVerificationForm, exports.updateVerificationFormSubmissionStatus = _a.updateVerificationFormSubmissionStatus, exports.initializeIntlVerificationForm = _a.initializeIntlVerificationForm, exports.clearInternationalVerificationView = _a.clearInternationalVerificationView;
89
- exports.default = internationalWireVerification.reducer;
@@ -1,15 +0,0 @@
1
- import { ID, FetchStateAndError } from '../../../../commonStateTypes/common';
2
- import { RootState } from '../../../../reducer';
3
- import { SelectorView } from '../../../../commonStateTypes/viewAndReport/viewAndReport';
4
- import { VerificationFormField, VerificationFormLocalData } from './internationalWireVerificationState';
5
- import { File } from '../../../../entity/file/fileState';
6
- export interface InternationalWireVerificationView extends SelectorView {
7
- verificationFormFetchState: FetchStateAndError;
8
- verificationFormFields: VerificationFormField[];
9
- verificationFormLocalData: VerificationFormLocalData;
10
- verificationFormSubmitState: FetchStateAndError;
11
- userFiles: File[];
12
- deleteFileStatusById: Record<ID, FetchStateAndError | undefined>;
13
- updateFileStatusById: Record<ID, FetchStateAndError | undefined>;
14
- }
15
- export declare const getIntlWireVerificationView: (state: RootState) => InternationalWireVerificationView;
@@ -1,30 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getIntlWireVerificationView = void 0;
4
- const fileSelector_1 = require("../../../../entity/file/fileSelector");
5
- const fileViewSelector_1 = require("../../../fileView/fileViewSelector");
6
- const getIntlWireVerificationView = (state) => {
7
- const deleteFileStatusById = {};
8
- const updateFileStatusById = {};
9
- // field with type = file
10
- const fileField = state.internationalWireVerificationState.verificationFormFields.find((field) => field.type === 'file');
11
- let fileId;
12
- if (fileField != null) {
13
- fileId = state.internationalWireVerificationState.verificationFormLocalData[fileField.name];
14
- }
15
- if (fileId != null) {
16
- deleteFileStatusById[fileId] = (0, fileViewSelector_1.getFileDeleteStatusById)(state, fileId);
17
- updateFileStatusById[fileId] = (0, fileViewSelector_1.getFileUpdateNameStatusById)(state, fileId);
18
- }
19
- let userFiles = [];
20
- if (fileId != null) {
21
- userFiles = (0, fileSelector_1.getFilesByFileIds)(state.fileState, [fileId]);
22
- }
23
- const fetchState = state.internationalWireVerificationState.verificationFormFetchState
24
- .fetchState;
25
- return Object.assign(Object.assign({}, state.internationalWireVerificationState), { deleteFileStatusById,
26
- updateFileStatusById,
27
- userFiles,
28
- fetchState });
29
- };
30
- exports.getIntlWireVerificationView = getIntlWireVerificationView;
@@ -1,20 +0,0 @@
1
- import { FetchStateAndError } from '../../../../commonStateTypes/common';
2
- export interface InternationalWireVerificationState {
3
- verificationFormFetchState: FetchStateAndError;
4
- verificationFormFields: VerificationFormField[];
5
- verificationFormLocalData: VerificationFormLocalData;
6
- verificationFormSubmitState: FetchStateAndError;
7
- }
8
- export declare type VerificationFormLocalData = Record<string, string | string[]>;
9
- export interface FieldValueType {
10
- code: string;
11
- description: string;
12
- }
13
- export interface VerificationFormField {
14
- name: string;
15
- label: string;
16
- placeholder: string;
17
- fieldValues: FieldValueType[];
18
- isMultipleValuesAllowed: boolean;
19
- type: string;
20
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });