@zeniai/client-epic-state 4.12.95 → 4.12.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/commonStateTypes/fileType.d.ts +2 -2
- package/lib/commonStateTypes/fileType.js +1 -1
- package/lib/entity/company/companyPayload.d.ts +1 -1
- package/lib/entity/company/companyPayload.js +1 -3
- package/lib/index.d.ts +2 -3
- package/lib/index.js +8 -9
- package/lib/view/spendManagement/billPay/internationalWireVerification/epics/initializeIntlVerificationFormEpic.js +21 -9
- package/lib/view/vendorFiling1099/__mock__/vendorFiling1099ListMock.js +0 -70
- package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListPayload.d.ts +0 -22
- package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListReducer.d.ts +1 -5
- package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListReducer.js +2 -29
- package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListSelector.d.ts +0 -2
- package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListSelector.js +1 -5
- package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListState.d.ts +0 -2
- package/package.json +2 -2
- package/lib/view/vendorFiling1099/vendorFiling1099List/fetchVendorFiling1099DownloadEpic.d.ts +0 -7
- package/lib/view/vendorFiling1099/vendorFiling1099List/fetchVendorFiling1099DownloadEpic.js +0 -35
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const ALL_FILE_TYPES: readonly ["pdf", "excel"
|
|
2
|
-
export declare const toFileTypeStrict: (v?: string | undefined) => "excel" | "pdf" |
|
|
1
|
+
export declare const ALL_FILE_TYPES: readonly ["pdf", "excel"];
|
|
2
|
+
export declare const toFileTypeStrict: (v?: string | undefined) => "excel" | "pdf" | 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'];
|
|
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;
|
|
@@ -95,7 +95,7 @@ interface CompanyBillPayInfoDataPayload {
|
|
|
95
95
|
account_id: string | null;
|
|
96
96
|
account_type: string | null;
|
|
97
97
|
};
|
|
98
|
-
international_wire_onboarding_status: AllowedValueWithCode
|
|
98
|
+
international_wire_onboarding_status: AllowedValueWithCode;
|
|
99
99
|
international_wire_onboarding_details: Record<string, LabelValueCodesPayload>;
|
|
100
100
|
}
|
|
101
101
|
export interface UserReimbursementInfoDataPayload {
|
|
@@ -150,9 +150,7 @@ const toCompanyBillPayInfo = (payload) => {
|
|
|
150
150
|
accountType: (0, billPayConfigPayload_1.getAccountTypeSubConfigCodeKey)((0, billPayConfigState_1.toAccType)(payload.primary_funding_account.account_type)),
|
|
151
151
|
}
|
|
152
152
|
: undefined,
|
|
153
|
-
internationalWireOnboardingStatus: payload.international_wire_onboarding_status
|
|
154
|
-
? payload.international_wire_onboarding_status
|
|
155
|
-
: undefined,
|
|
153
|
+
internationalWireOnboardingStatus: (0, exports.toAllowedValueWithCode)(payload.international_wire_onboarding_status),
|
|
156
154
|
internationalWireOnboardingDetails: payload.international_wire_onboarding_details,
|
|
157
155
|
});
|
|
158
156
|
};
|
package/lib/index.d.ts
CHANGED
|
@@ -511,17 +511,16 @@ import { BillPayCardReport } from './view/billPayCard/billPayCardSelector';
|
|
|
511
511
|
import { ReimbursementCardReport } from './view/reimbursementCard/reimbursementCardSelector';
|
|
512
512
|
import { Recommendation } from './commonStateTypes/recommendationBase';
|
|
513
513
|
import { fetchVendorsList, updateScrollYOffset, updateSortUiState, updatePageToken, updateYTDSelectionUIState } from './view/vendorList/vendorListReducer';
|
|
514
|
-
import { VendorFiling1099DownloadData } from './view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListPayload';
|
|
515
514
|
import { fetchVendorsFiling1099All, fetchVendorsFiling1099List, updateFiling1099ScrollYOffset, updateFiling1099SortUIState, updateFiling1099SearchUIState } from './view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListReducer';
|
|
516
515
|
import { VendorListViewSortKey, VendorViewUIState, VendorListQuery, VendorListViewYTDSpendSortKey, VendorViewType } from './view/vendorList/vendorListState';
|
|
517
516
|
import { VendorFiling1099ListViewSortKey, VendorFiling1099ViewUIState } from './view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListState';
|
|
518
517
|
import { VendorListSelectorView, getVendorList, VendorListView, isColumnYTDSpend, isVendorsTabVisible, VendorReportIDType, toVendorReportIDType } from './view/vendorList/vendorListSelector';
|
|
519
|
-
import { VendorFiling1099ListSelectorView, getVendorFiling1099List
|
|
518
|
+
import { VendorFiling1099ListSelectorView, getVendorFiling1099List } from './view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListSelector';
|
|
520
519
|
import { Filing1099TinType } from './entity/vendor/vendorType';
|
|
521
520
|
export { Filing1099TinType };
|
|
522
521
|
export { BillPayCardReport };
|
|
523
522
|
export { ReimbursementCardReport };
|
|
524
|
-
export { VendorListViewSortKey, VendorViewUIState, VendorListSelectorView, VendorListQuery, getVendorList, VendorListView, updateSortUiState, updatePageToken, updateYTDSelectionUIState, VendorListViewYTDSpendSortKey, isColumnYTDSpend, isVendorsTabVisible, VendorViewType, VendorReportIDType, toVendorReportIDType, VendorFiling1099ListSelectorView, getVendorFiling1099List, VendorFiling1099ListViewSortKey, VendorFiling1099ViewUIState,
|
|
523
|
+
export { VendorListViewSortKey, VendorViewUIState, VendorListSelectorView, VendorListQuery, getVendorList, VendorListView, updateSortUiState, updatePageToken, updateYTDSelectionUIState, VendorListViewYTDSpendSortKey, isColumnYTDSpend, isVendorsTabVisible, VendorViewType, VendorReportIDType, toVendorReportIDType, VendorFiling1099ListSelectorView, getVendorFiling1099List, VendorFiling1099ListViewSortKey, VendorFiling1099ViewUIState, };
|
|
525
524
|
import { fetchEntityRecommendationsByTransactionId, fetchRecommendationByEntityId, fetchRecommendationByEntityName } from './view/recommendation/recommendationReducer';
|
|
526
525
|
import { fetchOwnerList } from './view/ownerList/ownerListReducer';
|
|
527
526
|
export { fetchEntityRecommendationsByTransactionId, fetchRecommendationByEntityId, fetchRecommendationByEntityName, };
|
package/lib/index.js
CHANGED
|
@@ -43,14 +43,14 @@ exports.updateBillListSearchResult = exports.updateBillUploadFetchState = export
|
|
|
43
43
|
exports.updateMileageDetails = exports.fetchRemiSetupView = exports.getUserFinancialAccount = exports.fetchUserFinancialAccount = exports.getIntegrationsView = exports.getBankConnectionsSetupViewDetails = exports.getApprovalRuleViewDetails = exports.getTwoFactorAuthenticationView = exports.getCommonSetupViewDetails = exports.getZeniAccountBusinessVerificationDetails = exports.getBillPayBusinessVerificationDetails = exports.getBusinessVerificationDetails = exports.getZeniAccountSetupViewDetails = exports.getPlaidAccountDetails = exports.getBillPaySetupViewDetails = exports.verifyOtp = exports.resendOtp = exports.sendOtp = exports.clearZeniAccountSetupView = exports.clearBillPaySetupView = exports.clearSetupViewDataInLocalStore = exports.saveIndustryAndIncDateInLocalStore = 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.updateBusinessVerificationDetails = exports.updateSetupViewLocalStoreData = exports.updateSelectedCompanyOfficer = exports.getPlaidLinkToken = exports.getPaymentAccounts = exports.enableSetup = exports.fetchZeniAccountSetupView = exports.fetchBillPaySetupView = exports.hideCreatedByFilter = exports.markBillForRetry = exports.fetchVendorAndUpdateBillLocalData = exports.convertAmountToHomeCurrency = exports.toPaymentToOption = exports.updateVendorContact = exports.verifyUser = exports.fetchUserDetails = void 0;
|
|
44
44
|
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.clearRemiSetupApproverView = exports.clearRemiSetupApproverViewUpdateData = exports.initializeRemiSetupApproverViewUpdateData = exports.saveRemiSetupApproverViewUpdates = exports.saveRemiSetupApproverViewUpdateData = exports.deleteRemiApprovalRule = exports.fetchRemiApproversDetails = exports.fetchRemiApproversList = exports.fetchRemiSetupApproverView = exports.getRemiSetupApproverUpdateDataView = exports.getRemiSetupApproverView = exports.clearBillPaySetupApproverView = exports.clearBillPaySetupApproverViewUpdateData = exports.initializeBillPaySetupApproverViewUpdateData = exports.saveBillPaySetupApproverViewUpdates = exports.saveBillPaySetupApproverViewUpdateData = exports.deleteBillPayApprovalRule = exports.fetchBillPayApproversList = exports.fetchBillPayApproversDetails = exports.fetchBillPaySetupApproverView = exports.getBillPaySetupApproverUpdateDataView = exports.getBillPaySetupApproverView = exports.toRoleTypeStrict = exports.toAttributeOrRoleTypeStrict = exports.toAttributeTypeStrict = exports.isSuccessResponse = exports.getRemiBusinessVerificationDetails = exports.getRemiSetupViewDetails = exports.clearRemiSetupView = exports.acceptEmployeeRemiTerms = exports.acceptRemiTerms = exports.saveRemiSetupViewDataInLocalStore = void 0;
|
|
45
45
|
exports.retryBankAccountConnectionForOnboarding = exports.sendOnboardingCustomerViewInvite = exports.resetNewOnboardedCustomerId = exports.updateOnboardingCustomerDataInLocalStore = 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.fetchCompanyOnboardingView = exports.PAYMENT_BUSINESS_DAYS = exports.holidaysFormatted = exports.isHoliday = exports.getYearsList = exports.filterDays = exports.isHolidayToday = exports.getPreviousNthWorkingDay = exports.getNextNthWorkingDay = exports.toFileTypeStrict = exports.ALL_FILE_TYPES = exports.isAllFetchCompleted = exports.isAnyFetchInProgress = exports.reduceAnyCompletedFetchState = exports.reduceAllFetchState = exports.reduceAnyFetchState = exports.reduceFetchState = exports.clearAddRemiAutoFields = exports.updateHomeCurrencyConversion = exports.clearTentativeMerchantName = exports.updateTentativeMerchantNames = exports.updateUploadFetchState = exports.updateAddRemiAutoFields = exports.clearEditRemiViewDetail = exports.parseReceiptsToRemi = exports.saveRemiSuccessOrFailure = exports.saveRemiDetail = exports.removeFileFromRemiUpdatesInLocalStore = exports.discardRemiUpdatesInLocalStore = exports.fetchCurrencyConversionValue = void 0;
|
|
46
|
-
exports.updateTransferToLocalData = exports.updateTransferMoneyLocalData = exports.fetchZeniAccountsConfig = exports.fetchDepositAccount = exports.getDepositAccountDetailForPDF = exports.getAllDepostAccounts = exports.getDepositAccountDetail = exports.unlinkPaymentAccount = exports.fetchPaymentAccountList = exports.createCheckingAccount = exports.updateZeniAccountListTab = exports.fetchZeniAccountList = exports.getZeniAccountList = exports.getZeniAccountsConfigDetail = exports.fetchOwnerList = exports.fetchRecommendationByEntityName = exports.fetchRecommendationByEntityId = exports.fetchEntityRecommendationsByTransactionId = exports.
|
|
47
|
-
exports.clearAccountMappingLocalData = exports.saveAccountMappingLocalData = exports.saveAccountMapping = exports.getOnboardingCustomerView = exports.clearOnboardingCustomerViewDataInLocalStore = exports.clearOnboardingCustomerView = exports.saveOnboardingCustomerViewDataInLocalStore = exports.saveOnboardingCompnayOfficerPhoneInLocalStore = exports.updateOnboardingCustomerViewUIState = exports.updateCurrentStep = exports.updateOnboardingCustomerViewLocalStoreData = exports.updateOnboardingCustomerView = exports.updateOnboardingPaymentAccountStatus = exports.updateOnboardingPaymentAccountLoginStatus = exports.updateOnboardingCustomerViewCompleteStatus = exports.updateOnboardingCustomerViewAccountDetails = exports.establishOnboardingPlaidConnection = exports.getOnboardingPlaidLinkToken = exports.fetchOnboardingCustomerSetupView = exports.fetchOnboardingCustomerView = exports.isZeniClearingAccount = exports.ZENI_CLEARING_ACCOUNT = exports.isZeniClearingAccountReport = exports.getCompanyConfig = exports.fetchCompanyConfig = exports.clearTransactionVendorSaveStatus = exports.resetTransactionVendorLocalData = exports.updateTransactionVendorLocalData = exports.saveTransactionVendorSuccessOrFailure = exports.saveTransactionVendor = exports.getTransactionVendorView = exports.getZeniAccStatements = exports.fetchZeniAccStatementPage = exports.getDepositAccountTransactionList = exports.fetchDepositAccountTransactionList = exports.fetchDepositAccountHistoryFailure = exports.fetchDepositAccountHistorySuccess = exports.updateDepositAccount = exports.getCheckDepositDetail = exports.clearCheckDeposit = exports.updateCheckDepositLocalData = exports.depositCheck = exports.ZENI_ACCOUNTS_TAB = exports.fetchDepositAccountDetail = exports.fetchReviewTransferDetail = exports.clearReviewTransferDetail = exports.clearTransferDetail = exports.getTransferDetail = exports.transferMoney =
|
|
48
|
-
exports.getChargeCardDetailView = exports.fetchChargeCardDetailPage = exports.getCreditAccount = exports.getChargeCardListView = exports.fetchCreditAccount = exports.fetchChargeCardListPage = exports.fetchChargeCardList = exports.getChargeCardBusinessVerificationDetails = exports.companyHealthMetricDropDownOptions = exports.hasCompanyHealthMetricFormFieldChanged = exports.getCompanyHealthMetricView = exports.isCompanyRunwayInfinite = exports.updateChargeCardTransactionAttachments = exports.updateCompanyHealthViewUIState = exports.updateCompanyHealthMetricViewSuccessStatus = exports.updateCompanyHealthMetricViewErrorStatus = exports.updateCompanyHealthMetricLocalStore = exports.saveCompanyHealthMetricById = exports.removeSelectedCompanyId = exports.initializeCompanyHealthMetricViewLocalData = exports.fetchCompanyHealthMetricView = exports.clearCompanyHealthMetricView = exports.updateCompanyHealth = exports.updateCompaniesHealth = 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 = exports.fetchMagicLinkBankNameBySwift = exports.fetchMagicLinkBankNameByRouting = exports.updateMagicLinkInternationalBankAccountLocalStoreData = exports.updateMagicLinkBankAccountLocalStoreData = exports.saveBankAccount = exports.fetchBillAttachment = exports.fetchMagicLinkTenant = exports.getMagicLinkCurrentAddressState = exports.getMagicLinkBankAccountView = exports.getMagicLinkView = exports.initializeAccountMappingView =
|
|
49
|
-
exports.fetchRecommendedTransactionRowIndex = exports.updatedJELinkInLocalDataAccruedExpenses = exports.updatedJEAccruedLinkWithRecommendedLocalData = exports.updateAmountsInScheduleAccruedDetail = exports.saveScheduleAccruedDetails = exports.resetJEAccruedLinkInLocalData = exports.fetchScheduleAccruedDetailsPage = exports.fetchScheduleAccruedDetails = exports.cancelScheduleAccruedJournalEntry = exports.deleteScheduleAccruedDetail = exports.createNewSchedulesAccrued = exports.updateApAgingDetailUIState = exports.getApAgingDetailForVendor = exports.fetchApAgingDetail = exports.updateApAgingUIState = exports.getApAgingReport = exports.fetchApAging = exports.anyCardOnHold = exports.setFirstViewCompleteAfterActivation = exports.setFirstViewAfterActivation = exports.completeActivationWait = exports.startActivationWait = exports.revokeCardInvite = exports.resendCardInvite = exports.fetchChargeCardTransactionAttachments = exports.updateChargeCardTransactionIsViewReceiptClicked = exports.updateChargeCardTransactionReceiptsShowTickFetchStatus = exports.updateChargeCardTransactionUploadReceiptsFetchStatus = exports.saveCardOnboardingUserDetails = exports.updateCardUserOnboardingLocalData = exports.initializeCardUserOnboardingLocalData = exports.getCardUserOnboardingView = exports.updateChargeCardDetail = exports.updateCashbackDetailUIState = exports.updateChargeCardListUIState = exports.updateChargeCardListSearchText = exports.resetIssueChargeCardForm = exports.updateChargeCardLocalStore = exports.issueChargeCard = exports.acceptChargeCardTerms = exports.fetchChargeCardSetupView = exports.getChargeCardStatements = exports.fetchChargeCardStatementList = exports.getChargeCardSetupViewDetails = exports.toCreditLimitFrequencyCodeType = exports.getCashbackDetail = exports.toChargeCardSortKeyType = exports.fetchCashbackDetail = exports.fetchChargeCardTransactionList =
|
|
50
|
-
exports.fetchVendorFirstReviewView = exports.getVendorFirstReviewAttachmentView = exports.getVendorFirstReviewView = exports.getGlobalMerchantAutoCompleteResults = exports.toVendorFirstReviewViewColumnKeyType = 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 = 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.resetAccruedDetailNewScheduleState = exports.resetSelectedJEAccruedScheduleKey = exports.updateSelectedJEAccruedScheduleKey = exports.updateScheduleAccruedDetailsLocalData =
|
|
51
|
-
exports.TASK_LIST_GROUP_BY_CATEGORIES = exports.TASK_LIST_FILTER_CATEGORIES = exports.updateTaskFilters = exports.allTaskPriority = exports.allTaskStatus = exports.updateTaskListUIState = exports.updateTaskListSearchText = exports.archiveTask = exports.saveTaskDetail = exports.saveTaskUpdatesToLocalStore = exports.fetchTaskDetailPage = exports.getTaskDetail = exports.fetchTaskListPage = exports.getAllTasks = 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 = 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 =
|
|
52
|
-
exports.fetchNotificationUnreadCountSuccess = exports.fetchNotificationUnreadCount = exports.fetchNotificationView = exports.toNotificationTabTypeStrict = exports.toNotificationSubTabTypeStrict = exports.updateCommentsNotificationsStatuses = exports.updateCommentsNotifications = exports.toNotificationModeStrict = exports.fetchZeniAccountsPromoCard = exports.getZeniAccountsPromoCard = 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.convertHHMMStrToMinutes = exports.updateTaskFromListView = exports.toDueDateGroupKeyType = exports.toTaskStatusCodeType = exports.toPriorityCodeType = exports.getDueDateValueFromDueDateGroupId = exports.initialTaskDetail = exports.fetchAllTaskGroups = exports.getTaskUpdates = exports.toTaskListGroupByKeyTypeStrict = exports.toTaskListGroupByKeyType = exports.updateTaskGroupName = exports.dragNDropTasks = exports.updateTaskListLocalData = exports.deleteTaskGroup = exports.initiateTaskListLocalData = exports.createNewTaskGroup = exports.bulkUpdateTaskList = exports.discardTaskUpdatesInLocalStore =
|
|
53
|
-
exports.getIntlWireVerificationView = exports.updateVerificationFormLocalData = exports.submitInternationalVerificationForm = exports.fetchInternationalVerificationForm = exports.fetchCountryList = exports.getCompanyTaskManagerView = exports.fetchCompanyTaskManagerView = exports.getMinAllowedEndDate = exports.toRecurringFrequency = exports.getRecurringEndDateFromCount = exports.updateReferViewed = exports.getRewardsPlanCard = exports.fetchRewardsPlan = exports.resendReferralInvite = exports.updateReferralListSortUiState = exports.saveReferralFormDataInLocalStore = exports.clearReferrals = exports.sendReferralInvite = exports.fetchReferrals = exports.AmountStatusTypes = exports.StatusTypes = exports.toReferralListViewSortKeyType = exports.getInviteFormView = exports.getReferralListView = exports.getNotifications = exports.getLastNotificationTime = exports.pushToastNotification = exports.getNotificationsForSelectedSubTab = exports.getExternalNotificationsForSelectedSubTab = exports.getNotificationView = exports.updateNotificationViewUIState = exports.updateNotificationViewSubTab = exports.updateNotificationViewCurrentTabAndSubTab = exports.updateNotificationViewTabState = exports.updateNotificationViewNotificationStatus =
|
|
46
|
+
exports.updateDepositToLocalData = exports.updateTransferToLocalData = exports.updateTransferMoneyLocalData = exports.fetchZeniAccountsConfig = exports.fetchDepositAccount = exports.getDepositAccountDetailForPDF = exports.getAllDepostAccounts = exports.getDepositAccountDetail = exports.unlinkPaymentAccount = exports.fetchPaymentAccountList = exports.createCheckingAccount = exports.updateZeniAccountListTab = exports.fetchZeniAccountList = exports.getZeniAccountList = exports.getZeniAccountsConfigDetail = exports.fetchOwnerList = exports.fetchRecommendationByEntityName = exports.fetchRecommendationByEntityId = exports.fetchEntityRecommendationsByTransactionId = 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.getBulkOperationSuffix = exports.getRemiListUniqueType = exports.getBillListUniqueType = exports.isBulkProcessing = exports.isVerifiedStatusCode = exports.getActualPaymentDate = exports.showReimbursementPromoPage = exports.showBillPayPromoPage = exports.getSelectedCompanyOfficer = exports.getSpendManagementEffectiveListPeriod = exports.getSnackbar = exports.closeSnackbar = exports.openSnackbar = exports.getChangedLineItemCountFromLocalData = exports.getTransactionListUIStateByCategoryType = exports.getTransactionsListByCategoryType = void 0;
|
|
47
|
+
exports.getAccountMappingView = exports.clearAccountMappingLocalData = exports.saveAccountMappingLocalData = exports.saveAccountMapping = exports.getOnboardingCustomerView = exports.clearOnboardingCustomerViewDataInLocalStore = exports.clearOnboardingCustomerView = exports.saveOnboardingCustomerViewDataInLocalStore = exports.saveOnboardingCompnayOfficerPhoneInLocalStore = exports.updateOnboardingCustomerViewUIState = exports.updateCurrentStep = exports.updateOnboardingCustomerViewLocalStoreData = exports.updateOnboardingCustomerView = exports.updateOnboardingPaymentAccountStatus = exports.updateOnboardingPaymentAccountLoginStatus = exports.updateOnboardingCustomerViewCompleteStatus = exports.updateOnboardingCustomerViewAccountDetails = exports.establishOnboardingPlaidConnection = exports.getOnboardingPlaidLinkToken = exports.fetchOnboardingCustomerSetupView = exports.fetchOnboardingCustomerView = exports.isZeniClearingAccount = exports.ZENI_CLEARING_ACCOUNT = exports.isZeniClearingAccountReport = exports.getCompanyConfig = exports.fetchCompanyConfig = exports.clearTransactionVendorSaveStatus = exports.resetTransactionVendorLocalData = exports.updateTransactionVendorLocalData = exports.saveTransactionVendorSuccessOrFailure = exports.saveTransactionVendor = exports.getTransactionVendorView = exports.getZeniAccStatements = exports.fetchZeniAccStatementPage = exports.getDepositAccountTransactionList = exports.fetchDepositAccountTransactionList = exports.fetchDepositAccountHistoryFailure = exports.fetchDepositAccountHistorySuccess = exports.updateDepositAccount = exports.getCheckDepositDetail = exports.clearCheckDeposit = exports.updateCheckDepositLocalData = exports.depositCheck = exports.ZENI_ACCOUNTS_TAB = exports.fetchDepositAccountDetail = exports.fetchReviewTransferDetail = exports.clearReviewTransferDetail = exports.clearTransferDetail = exports.getTransferDetail = exports.transferMoney = void 0;
|
|
48
|
+
exports.getChargeCardTransactionAttachmentView = exports.getChargeCardDetailView = exports.fetchChargeCardDetailPage = exports.getCreditAccount = exports.getChargeCardListView = exports.fetchCreditAccount = exports.fetchChargeCardListPage = exports.fetchChargeCardList = exports.getChargeCardBusinessVerificationDetails = exports.companyHealthMetricDropDownOptions = exports.hasCompanyHealthMetricFormFieldChanged = exports.getCompanyHealthMetricView = exports.isCompanyRunwayInfinite = exports.updateChargeCardTransactionAttachments = exports.updateCompanyHealthViewUIState = exports.updateCompanyHealthMetricViewSuccessStatus = exports.updateCompanyHealthMetricViewErrorStatus = exports.updateCompanyHealthMetricLocalStore = exports.saveCompanyHealthMetricById = exports.removeSelectedCompanyId = exports.initializeCompanyHealthMetricViewLocalData = exports.fetchCompanyHealthMetricView = exports.clearCompanyHealthMetricView = exports.updateCompanyHealth = exports.updateCompaniesHealth = 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 = exports.fetchMagicLinkBankNameBySwift = exports.fetchMagicLinkBankNameByRouting = exports.updateMagicLinkInternationalBankAccountLocalStoreData = exports.updateMagicLinkBankAccountLocalStoreData = exports.saveBankAccount = exports.fetchBillAttachment = exports.fetchMagicLinkTenant = exports.getMagicLinkCurrentAddressState = exports.getMagicLinkBankAccountView = exports.getMagicLinkView = exports.initializeAccountMappingView = void 0;
|
|
49
|
+
exports.updateLinkBillExpenseLocalData = exports.fetchRecommendedTransactionRowIndex = exports.updatedJELinkInLocalDataAccruedExpenses = exports.updatedJEAccruedLinkWithRecommendedLocalData = exports.updateAmountsInScheduleAccruedDetail = exports.saveScheduleAccruedDetails = exports.resetJEAccruedLinkInLocalData = exports.fetchScheduleAccruedDetailsPage = exports.fetchScheduleAccruedDetails = exports.cancelScheduleAccruedJournalEntry = exports.deleteScheduleAccruedDetail = exports.createNewSchedulesAccrued = exports.updateApAgingDetailUIState = exports.getApAgingDetailForVendor = exports.fetchApAgingDetail = exports.updateApAgingUIState = exports.getApAgingReport = exports.fetchApAging = exports.anyCardOnHold = exports.setFirstViewCompleteAfterActivation = exports.setFirstViewAfterActivation = exports.completeActivationWait = exports.startActivationWait = exports.revokeCardInvite = exports.resendCardInvite = exports.fetchChargeCardTransactionAttachments = exports.updateChargeCardTransactionIsViewReceiptClicked = exports.updateChargeCardTransactionReceiptsShowTickFetchStatus = exports.updateChargeCardTransactionUploadReceiptsFetchStatus = exports.saveCardOnboardingUserDetails = exports.updateCardUserOnboardingLocalData = exports.initializeCardUserOnboardingLocalData = exports.getCardUserOnboardingView = exports.updateChargeCardDetail = exports.updateCashbackDetailUIState = exports.updateChargeCardListUIState = exports.updateChargeCardListSearchText = exports.resetIssueChargeCardForm = exports.updateChargeCardLocalStore = exports.issueChargeCard = exports.acceptChargeCardTerms = exports.fetchChargeCardSetupView = exports.getChargeCardStatements = exports.fetchChargeCardStatementList = exports.getChargeCardSetupViewDetails = exports.toCreditLimitFrequencyCodeType = exports.getCashbackDetail = exports.toChargeCardSortKeyType = exports.fetchCashbackDetail = exports.fetchChargeCardTransactionList = void 0;
|
|
50
|
+
exports.fetchVendorFirstReviewAttachments = exports.fetchVendorFirstReviewView = exports.getVendorFirstReviewAttachmentView = exports.getVendorFirstReviewView = exports.getGlobalMerchantAutoCompleteResults = exports.toVendorFirstReviewViewColumnKeyType = 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 = 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.resetAccruedDetailNewScheduleState = exports.resetSelectedJEAccruedScheduleKey = exports.updateSelectedJEAccruedScheduleKey = exports.updateScheduleAccruedDetailsLocalData = void 0;
|
|
51
|
+
exports.deleteTask = exports.TASK_LIST_GROUP_BY_CATEGORIES = exports.TASK_LIST_FILTER_CATEGORIES = exports.updateTaskFilters = exports.allTaskPriority = exports.allTaskStatus = exports.updateTaskListUIState = exports.updateTaskListSearchText = exports.archiveTask = exports.saveTaskDetail = exports.saveTaskUpdatesToLocalStore = exports.fetchTaskDetailPage = exports.getTaskDetail = exports.fetchTaskListPage = exports.getAllTasks = 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 = 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 = void 0;
|
|
52
|
+
exports.updateNotificationViewAllNotificationsStatus = exports.fetchNotificationUnreadCountSuccess = exports.fetchNotificationUnreadCount = exports.fetchNotificationView = exports.toNotificationTabTypeStrict = exports.toNotificationSubTabTypeStrict = exports.updateCommentsNotificationsStatuses = exports.updateCommentsNotifications = exports.toNotificationModeStrict = exports.fetchZeniAccountsPromoCard = exports.getZeniAccountsPromoCard = 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.convertHHMMStrToMinutes = exports.updateTaskFromListView = exports.toDueDateGroupKeyType = exports.toTaskStatusCodeType = exports.toPriorityCodeType = exports.getDueDateValueFromDueDateGroupId = exports.initialTaskDetail = exports.fetchAllTaskGroups = exports.getTaskUpdates = exports.toTaskListGroupByKeyTypeStrict = exports.toTaskListGroupByKeyType = exports.updateTaskGroupName = exports.dragNDropTasks = exports.updateTaskListLocalData = exports.deleteTaskGroup = exports.initiateTaskListLocalData = exports.createNewTaskGroup = exports.bulkUpdateTaskList = exports.discardTaskUpdatesInLocalStore = void 0;
|
|
53
|
+
exports.getIntlWireVerificationView = exports.updateVerificationFormLocalData = exports.submitInternationalVerificationForm = exports.fetchInternationalVerificationForm = exports.fetchCountryList = exports.getCompanyTaskManagerView = exports.fetchCompanyTaskManagerView = exports.getMinAllowedEndDate = exports.toRecurringFrequency = exports.getRecurringEndDateFromCount = exports.updateReferViewed = exports.getRewardsPlanCard = exports.fetchRewardsPlan = exports.resendReferralInvite = exports.updateReferralListSortUiState = exports.saveReferralFormDataInLocalStore = exports.clearReferrals = exports.sendReferralInvite = exports.fetchReferrals = exports.AmountStatusTypes = exports.StatusTypes = exports.toReferralListViewSortKeyType = exports.getInviteFormView = exports.getReferralListView = exports.getNotifications = exports.getLastNotificationTime = exports.pushToastNotification = exports.getNotificationsForSelectedSubTab = exports.getExternalNotificationsForSelectedSubTab = exports.getNotificationView = exports.updateNotificationViewUIState = exports.updateNotificationViewSubTab = exports.updateNotificationViewCurrentTabAndSubTab = exports.updateNotificationViewTabState = exports.updateNotificationViewNotificationStatus = void 0;
|
|
54
54
|
const zeniDayJS_1 = require("./zeniDayJS");
|
|
55
55
|
Object.defineProperty(exports, "Dayjs", { enumerable: true, get: function () { return zeniDayJS_1.Dayjs; } });
|
|
56
56
|
Object.defineProperty(exports, "updateZeniDateLocaleID", { enumerable: true, get: function () { return zeniDayJS_1.updateZeniDateLocaleID; } });
|
|
@@ -1163,7 +1163,6 @@ Object.defineProperty(exports, "isVendorsTabVisible", { enumerable: true, get: f
|
|
|
1163
1163
|
Object.defineProperty(exports, "toVendorReportIDType", { enumerable: true, get: function () { return vendorListSelector_1.toVendorReportIDType; } });
|
|
1164
1164
|
const vendorFiling1099ListSelector_1 = require("./view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListSelector");
|
|
1165
1165
|
Object.defineProperty(exports, "getVendorFiling1099List", { enumerable: true, get: function () { return vendorFiling1099ListSelector_1.getVendorFiling1099List; } });
|
|
1166
|
-
Object.defineProperty(exports, "getVendorFiling1099DownloadData", { enumerable: true, get: function () { return vendorFiling1099ListSelector_1.getVendorFiling1099DownloadData; } });
|
|
1167
1166
|
const recommendationReducer_1 = require("./view/recommendation/recommendationReducer");
|
|
1168
1167
|
Object.defineProperty(exports, "fetchEntityRecommendationsByTransactionId", { enumerable: true, get: function () { return recommendationReducer_1.fetchEntityRecommendationsByTransactionId; } });
|
|
1169
1168
|
Object.defineProperty(exports, "fetchRecommendationByEntityId", { enumerable: true, get: function () { return recommendationReducer_1.fetchRecommendationByEntityId; } });
|
|
@@ -12,15 +12,27 @@ const initializeIntlVerificationFormEpic = (actions$, state$) => actions$.pipe((
|
|
|
12
12
|
.internationalWireOnboardingDetails;
|
|
13
13
|
const localData = {};
|
|
14
14
|
Object.keys(internationalWireFormPayload).forEach((formFieldKey) => {
|
|
15
|
-
const values = onboardingDataFromCompanyInfo
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
+
}
|
|
24
36
|
});
|
|
25
37
|
actions.push((0, internationalWireVerificationReducer_1.updateVerificationFormLocalData)(localData));
|
|
26
38
|
return (0, rxjs_1.from)(actions);
|
|
@@ -28,20 +28,6 @@ exports.vendorFiling1099ListInProgressState = {
|
|
|
28
28
|
hasValidState: vendorFiling1099ListReducer_1.initialState.hasValidState,
|
|
29
29
|
lastRefreshSuccessTime: undefined,
|
|
30
30
|
isVendor1099Populated: true,
|
|
31
|
-
vendorFiling1099DownloadData: {
|
|
32
|
-
nec: {
|
|
33
|
-
data: [],
|
|
34
|
-
customHeaders: [],
|
|
35
|
-
},
|
|
36
|
-
misc: {
|
|
37
|
-
data: [],
|
|
38
|
-
customHeaders: [],
|
|
39
|
-
},
|
|
40
|
-
int: {
|
|
41
|
-
data: [],
|
|
42
|
-
customHeaders: [],
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
31
|
};
|
|
46
32
|
exports.vendorFiling1099ListInProgressInitialState = {
|
|
47
33
|
vendorIds: [],
|
|
@@ -57,20 +43,6 @@ exports.vendorFiling1099ListInProgressInitialState = {
|
|
|
57
43
|
hasValidState: vendorFiling1099ListReducer_1.initialState.hasValidState,
|
|
58
44
|
lastRefreshSuccessTime: undefined,
|
|
59
45
|
isVendor1099Populated: false,
|
|
60
|
-
vendorFiling1099DownloadData: {
|
|
61
|
-
nec: {
|
|
62
|
-
data: [],
|
|
63
|
-
customHeaders: [],
|
|
64
|
-
},
|
|
65
|
-
misc: {
|
|
66
|
-
data: [],
|
|
67
|
-
customHeaders: [],
|
|
68
|
-
},
|
|
69
|
-
int: {
|
|
70
|
-
data: [],
|
|
71
|
-
customHeaders: [],
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
46
|
};
|
|
75
47
|
exports.vendorFiling1099ListSuccessState = {
|
|
76
48
|
vendorIds: ['vendor_j12jh1g2g12jg3jh12:12'],
|
|
@@ -86,20 +58,6 @@ exports.vendorFiling1099ListSuccessState = {
|
|
|
86
58
|
hasValidState: vendorFiling1099ListReducer_1.initialState.hasValidState,
|
|
87
59
|
lastRefreshSuccessTime: (0, zeniDayJS_1.date)('2024-09-26T07:44:02.150Z'),
|
|
88
60
|
isVendor1099Populated: true,
|
|
89
|
-
vendorFiling1099DownloadData: {
|
|
90
|
-
nec: {
|
|
91
|
-
data: [],
|
|
92
|
-
customHeaders: [],
|
|
93
|
-
},
|
|
94
|
-
misc: {
|
|
95
|
-
data: [],
|
|
96
|
-
customHeaders: [],
|
|
97
|
-
},
|
|
98
|
-
int: {
|
|
99
|
-
data: [],
|
|
100
|
-
customHeaders: [],
|
|
101
|
-
},
|
|
102
|
-
},
|
|
103
61
|
};
|
|
104
62
|
exports.vendorFiling1099ListFailureState = {
|
|
105
63
|
vendorIds: [],
|
|
@@ -118,20 +76,6 @@ exports.vendorFiling1099ListFailureState = {
|
|
|
118
76
|
},
|
|
119
77
|
hasValidState: vendorFiling1099ListReducer_1.initialState.hasValidState,
|
|
120
78
|
isVendor1099Populated: false,
|
|
121
|
-
vendorFiling1099DownloadData: {
|
|
122
|
-
nec: {
|
|
123
|
-
data: [],
|
|
124
|
-
customHeaders: [],
|
|
125
|
-
},
|
|
126
|
-
misc: {
|
|
127
|
-
data: [],
|
|
128
|
-
customHeaders: [],
|
|
129
|
-
},
|
|
130
|
-
int: {
|
|
131
|
-
data: [],
|
|
132
|
-
customHeaders: [],
|
|
133
|
-
},
|
|
134
|
-
},
|
|
135
79
|
};
|
|
136
80
|
exports.rootStateWithVendorFiling1099List = Object.assign({}, reducer_1.initialRootState, {
|
|
137
81
|
vendorState: {
|
|
@@ -153,20 +97,6 @@ exports.rootStateWithVendorFiling1099List = Object.assign({}, reducer_1.initialR
|
|
|
153
97
|
lastRefreshSuccessTime: undefined,
|
|
154
98
|
hasValidState: vendorFiling1099ListReducer_1.initialState.hasValidState,
|
|
155
99
|
isVendor1099Populated: true,
|
|
156
|
-
vendorFiling1099DownloadData: {
|
|
157
|
-
nec: {
|
|
158
|
-
data: [],
|
|
159
|
-
customHeaders: [],
|
|
160
|
-
},
|
|
161
|
-
misc: {
|
|
162
|
-
data: [],
|
|
163
|
-
customHeaders: [],
|
|
164
|
-
},
|
|
165
|
-
int: {
|
|
166
|
-
data: [],
|
|
167
|
-
customHeaders: [],
|
|
168
|
-
},
|
|
169
|
-
},
|
|
170
100
|
},
|
|
171
101
|
vendorTypeListState: {
|
|
172
102
|
fetchState: 'Completed',
|
|
@@ -11,25 +11,3 @@ export interface ReportVendorFiling1099Payload extends ReportPayload {
|
|
|
11
11
|
is_vendor_1099_populated: boolean;
|
|
12
12
|
}
|
|
13
13
|
export declare type VendorFiling1099ListResponse = ZeniAPIResponse<FetchVendorFiling1099Payload>;
|
|
14
|
-
export interface VendorFiling1099DownloadData {
|
|
15
|
-
nec?: {
|
|
16
|
-
data: DownloadData[];
|
|
17
|
-
customHeaders: CustomHeader[];
|
|
18
|
-
};
|
|
19
|
-
misc?: {
|
|
20
|
-
data: DownloadData[];
|
|
21
|
-
customHeaders: CustomHeader[];
|
|
22
|
-
};
|
|
23
|
-
int?: {
|
|
24
|
-
data: DownloadData[];
|
|
25
|
-
customHeaders: CustomHeader[];
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
export interface CustomHeader {
|
|
29
|
-
label: string;
|
|
30
|
-
key: string;
|
|
31
|
-
}
|
|
32
|
-
export interface DownloadData {
|
|
33
|
-
[key: string]: string | number;
|
|
34
|
-
}
|
|
35
|
-
export declare type VendorFiling1099DownloadResponse = ZeniAPIResponse<VendorFiling1099DownloadData>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { SortOrder } from '../../../commonStateTypes/selectorTypes/sortOrderTypes';
|
|
2
2
|
import { ZeniAPIStatus } from '../../../responsePayload';
|
|
3
|
-
import {
|
|
3
|
+
import { VendorFiling1099ListResponse } from './vendorFiling1099ListPayload';
|
|
4
4
|
import { VendorFiling1099ListState, VendorFiling1099ListViewSortKey } from './vendorFiling1099ListState';
|
|
5
|
-
import { FetchState } from '../../../commonStateTypes/common';
|
|
6
5
|
export declare const initialState: VendorFiling1099ListState;
|
|
7
6
|
export declare const fetchVendorsFiling1099All: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[cacheOverride: boolean], {
|
|
8
7
|
cacheOverride: boolean;
|
|
@@ -19,9 +18,6 @@ export declare const fetchVendorsFiling1099All: import("@reduxjs/toolkit").Actio
|
|
|
19
18
|
sortKey: VendorFiling1099ListViewSortKey;
|
|
20
19
|
}, string>, updateFiling1099SearchUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
21
20
|
searchString: string;
|
|
22
|
-
}, string>, fetchVendorFiling1099Download: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, updateVendorFiling1099DownloadData: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
23
|
-
response: VendorFiling1099DownloadResponse;
|
|
24
|
-
downloadState: FetchState;
|
|
25
21
|
}, string>;
|
|
26
22
|
declare const _default: import("@reduxjs/toolkit").Reducer<VendorFiling1099ListState, import("@reduxjs/toolkit").AnyAction>;
|
|
27
23
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var _a;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
4
|
+
exports.updateFiling1099SearchUIState = exports.updateFiling1099SortUIState = exports.updateFiling1099ScrollYOffset = exports.clearVendorsFiling1099List = exports.updateVendorFiling1099ListFailure = exports.updateVendorsFiling1099List = exports.fetchVendorsFiling1099List = exports.fetchVendorsFiling1099All = exports.initialState = void 0;
|
|
5
5
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
6
|
const zeniDayJS_1 = require("../../../zeniDayJS");
|
|
7
7
|
exports.initialState = {
|
|
@@ -20,20 +20,6 @@ exports.initialState = {
|
|
|
20
20
|
downloadState: 'Not-Started',
|
|
21
21
|
searchString: '',
|
|
22
22
|
},
|
|
23
|
-
vendorFiling1099DownloadData: {
|
|
24
|
-
nec: {
|
|
25
|
-
data: [],
|
|
26
|
-
customHeaders: [],
|
|
27
|
-
},
|
|
28
|
-
misc: {
|
|
29
|
-
data: [],
|
|
30
|
-
customHeaders: [],
|
|
31
|
-
},
|
|
32
|
-
int: {
|
|
33
|
-
data: [],
|
|
34
|
-
customHeaders: [],
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
23
|
};
|
|
38
24
|
const vendorFiling1099List = (0, toolkit_1.createSlice)({
|
|
39
25
|
name: 'vendorFiling1099List',
|
|
@@ -88,23 +74,10 @@ const vendorFiling1099List = (0, toolkit_1.createSlice)({
|
|
|
88
74
|
draft.fetchState = 'Error';
|
|
89
75
|
draft.error = action.payload.status;
|
|
90
76
|
},
|
|
91
|
-
//Reducers for VendorFiling1099Download
|
|
92
|
-
fetchVendorFiling1099Download(draft) {
|
|
93
|
-
draft.uiState.downloadState = 'In-Progress';
|
|
94
|
-
},
|
|
95
|
-
updateVendorFiling1099DownloadData(draft, action) {
|
|
96
|
-
var _a, _b, _c;
|
|
97
|
-
draft.vendorFiling1099DownloadData.nec =
|
|
98
|
-
(_a = action.payload.response.data) === null || _a === void 0 ? void 0 : _a.nec;
|
|
99
|
-
draft.vendorFiling1099DownloadData.misc =
|
|
100
|
-
(_b = action.payload.response.data) === null || _b === void 0 ? void 0 : _b.misc;
|
|
101
|
-
draft.vendorFiling1099DownloadData.int =
|
|
102
|
-
(_c = action.payload.response.data) === null || _c === void 0 ? void 0 : _c.int;
|
|
103
|
-
},
|
|
104
77
|
clearVendorsFiling1099List(draft) {
|
|
105
78
|
Object.assign(draft, exports.initialState);
|
|
106
79
|
},
|
|
107
80
|
},
|
|
108
81
|
});
|
|
109
|
-
_a = vendorFiling1099List.actions, exports.fetchVendorsFiling1099All = _a.fetchVendorsFiling1099All, exports.fetchVendorsFiling1099List = _a.fetchVendorsFiling1099List, exports.updateVendorsFiling1099List = _a.updateVendorsFiling1099List, exports.updateVendorFiling1099ListFailure = _a.updateVendorFiling1099ListFailure, exports.clearVendorsFiling1099List = _a.clearVendorsFiling1099List, exports.updateFiling1099ScrollYOffset = _a.updateFiling1099ScrollYOffset, exports.updateFiling1099SortUIState = _a.updateFiling1099SortUIState, exports.updateFiling1099SearchUIState = _a.updateFiling1099SearchUIState
|
|
82
|
+
_a = vendorFiling1099List.actions, exports.fetchVendorsFiling1099All = _a.fetchVendorsFiling1099All, exports.fetchVendorsFiling1099List = _a.fetchVendorsFiling1099List, exports.updateVendorsFiling1099List = _a.updateVendorsFiling1099List, exports.updateVendorFiling1099ListFailure = _a.updateVendorFiling1099ListFailure, exports.clearVendorsFiling1099List = _a.clearVendorsFiling1099List, exports.updateFiling1099ScrollYOffset = _a.updateFiling1099ScrollYOffset, exports.updateFiling1099SortUIState = _a.updateFiling1099SortUIState, exports.updateFiling1099SearchUIState = _a.updateFiling1099SearchUIState;
|
|
110
83
|
exports.default = vendorFiling1099List.reducer;
|
|
@@ -5,7 +5,6 @@ import { ZeniDate } from '../../../zeniDayJS';
|
|
|
5
5
|
import { VendorFiling1099ListViewSortKey, VendorFiling1099ViewUIState } from './vendorFiling1099ListState';
|
|
6
6
|
import { SortOrder } from '../../../commonStateTypes/selectorTypes/sortOrderTypes';
|
|
7
7
|
import { VendorType } from '../../vendorTypeList/vendorTypeListPayload';
|
|
8
|
-
import { VendorFiling1099DownloadData } from './vendorFiling1099ListPayload';
|
|
9
8
|
export interface VendorFiling1099ListSelectorView extends SelectorView {
|
|
10
9
|
vendors: Vendor[];
|
|
11
10
|
vendorTypeList: VendorType[];
|
|
@@ -16,4 +15,3 @@ export interface VendorFiling1099ListSelectorView extends SelectorView {
|
|
|
16
15
|
}
|
|
17
16
|
export declare const getVendorFiling1099List: (state: RootState) => VendorFiling1099ListSelectorView;
|
|
18
17
|
export declare const sortedVendorFiling1099View: (vendorFiling1099List: Vendor[], sortKey: VendorFiling1099ListViewSortKey, sortOrder: SortOrder) => Vendor[];
|
|
19
|
-
export declare const getVendorFiling1099DownloadData: (state: RootState) => VendorFiling1099DownloadData;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.sortedVendorFiling1099View = exports.getVendorFiling1099List = void 0;
|
|
7
7
|
const vendorSelector_1 = require("../../../entity/vendor/vendorSelector");
|
|
8
8
|
const orderBy_1 = __importDefault(require("lodash/orderBy"));
|
|
9
9
|
const reduceFetchState_1 = require("../../../commonStateTypes/reduceFetchState");
|
|
@@ -63,7 +63,3 @@ const sortedVendorFiling1099View = (vendorFiling1099List, sortKey, sortOrder) =>
|
|
|
63
63
|
}, sortOrder === 'ascending' ? 'asc' : 'desc');
|
|
64
64
|
};
|
|
65
65
|
exports.sortedVendorFiling1099View = sortedVendorFiling1099View;
|
|
66
|
-
const getVendorFiling1099DownloadData = (state) => {
|
|
67
|
-
return state.vendorFiling1099ListState.vendorFiling1099DownloadData;
|
|
68
|
-
};
|
|
69
|
-
exports.getVendorFiling1099DownloadData = getVendorFiling1099DownloadData;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { FetchedState, FetchState, ID } from '../../../commonStateTypes/common';
|
|
2
2
|
import { SortOrder } from '../../../commonStateTypes/selectorTypes/sortOrderTypes';
|
|
3
3
|
import { ZeniDate } from '../../../zeniDayJS';
|
|
4
|
-
import { VendorFiling1099DownloadData } from './vendorFiling1099ListPayload';
|
|
5
4
|
export interface VendorFiling1099ViewUIState {
|
|
6
5
|
sortKey: VendorFiling1099ListViewSortKey;
|
|
7
6
|
sortOrder: SortOrder;
|
|
@@ -13,7 +12,6 @@ export interface VendorFiling1099ListState extends FetchedState {
|
|
|
13
12
|
vendorIds: ID[];
|
|
14
13
|
uiState: VendorFiling1099ViewUIState;
|
|
15
14
|
isVendor1099Populated: boolean;
|
|
16
|
-
vendorFiling1099DownloadData: VendorFiling1099DownloadData;
|
|
17
15
|
lastRefreshSuccessTime?: ZeniDate;
|
|
18
16
|
}
|
|
19
17
|
export interface VendorFiling1099ListQuery {
|
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.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",
|
|
@@ -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": "
|
|
91
|
+
"format-watch": "git diff --name-only --cached --diff-filter=ACM | 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",
|
package/lib/view/vendorFiling1099/vendorFiling1099List/fetchVendorFiling1099DownloadEpic.d.ts
DELETED
|
@@ -1,7 +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 { fetchVendorFiling1099Download, updateVendorFiling1099DownloadData } from './vendorFiling1099ListReducer';
|
|
6
|
-
export declare type ActionType = ReturnType<typeof fetchVendorFiling1099Download> | ReturnType<typeof updateVendorFiling1099DownloadData>;
|
|
7
|
-
export declare const fetchVendorFiling1099DownloadEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fetchVendorFiling1099DownloadEpic = void 0;
|
|
4
|
-
const rxjs_1 = require("rxjs");
|
|
5
|
-
const operators_1 = require("rxjs/operators");
|
|
6
|
-
const responsePayload_1 = require("../../../responsePayload");
|
|
7
|
-
const vendorFiling1099ListReducer_1 = require("./vendorFiling1099ListReducer");
|
|
8
|
-
const fetchVendorFiling1099DownloadEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(vendorFiling1099ListReducer_1.fetchVendorFiling1099Download.match), (0, operators_1.switchMap)(() => {
|
|
9
|
-
const apiUrl = `${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/2.0/reports/vendor_1099`;
|
|
10
|
-
return zeniAPI.getJSON(apiUrl).pipe((0, operators_1.switchMap)((response) => {
|
|
11
|
-
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
12
|
-
const actions = [];
|
|
13
|
-
actions.push((0, vendorFiling1099ListReducer_1.updateVendorFiling1099DownloadData)({
|
|
14
|
-
response: response,
|
|
15
|
-
downloadState: 'Completed',
|
|
16
|
-
}));
|
|
17
|
-
return actions;
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
return (0, rxjs_1.of)((0, vendorFiling1099ListReducer_1.updateVendorFiling1099DownloadData)({
|
|
21
|
-
response: response,
|
|
22
|
-
downloadState: 'Error',
|
|
23
|
-
}));
|
|
24
|
-
}
|
|
25
|
-
}), (0, operators_1.catchError)((error) => {
|
|
26
|
-
return (0, rxjs_1.of)((0, vendorFiling1099ListReducer_1.updateVendorFiling1099DownloadData)({
|
|
27
|
-
response: {
|
|
28
|
-
status: (0, responsePayload_1.createZeniAPIStatus)('Error', 'Fetch vendors 1099 list REST API call failed' +
|
|
29
|
-
JSON.stringify(error)),
|
|
30
|
-
},
|
|
31
|
-
downloadState: 'Error',
|
|
32
|
-
}));
|
|
33
|
-
}));
|
|
34
|
-
}));
|
|
35
|
-
exports.fetchVendorFiling1099DownloadEpic = fetchVendorFiling1099DownloadEpic;
|