@zeniai/client-epic-state 5.2.22-betaMM1 → 5.2.22-betaMM3

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 (28) hide show
  1. package/lib/entity/actualMatching/actualMatchingPayload.js +4 -3
  2. package/lib/entity/actualMatching/actualMatchingReducer.js +1 -1
  3. package/lib/entity/actualMatching/actualMatchingSelector.d.ts +1 -1
  4. package/lib/entity/actualMatching/actualMatchingSelector.js +1 -1
  5. package/lib/entity/jeSchedules/jeSchedulesPayload.d.ts +1 -0
  6. package/lib/entity/jeSchedules/jeSchedulesPayload.js +1 -0
  7. package/lib/entity/jeSchedules/jeSchedulesState.d.ts +1 -0
  8. package/lib/epic.d.ts +2 -2
  9. package/lib/epic.js +2 -2
  10. package/lib/esm/entity/actualMatching/actualMatchingPayload.js +5 -4
  11. package/lib/esm/entity/actualMatching/actualMatchingReducer.js +1 -1
  12. package/lib/esm/entity/actualMatching/actualMatchingSelector.js +1 -1
  13. package/lib/esm/entity/jeSchedules/jeSchedulesPayload.js +1 -0
  14. package/lib/esm/epic.js +2 -2
  15. package/lib/esm/view/expenseAutomationView/epics/actualMatching/fetchActualMatchingEpic.js +4 -4
  16. package/lib/esm/view/expenseAutomationView/epics/actualMatching/matchAndReverseAccrualsEpic.js +3 -2
  17. package/lib/esm/view/expenseAutomationView/epics/actualMatching/searchMatchAccrualsEpic.js +1 -1
  18. package/lib/esm/view/expenseAutomationView/epics/actualMatching/searchMatchTransactionsEpic.js +2 -2
  19. package/lib/esm/view/expenseAutomationView/epics/actualMatching/undoReversalAccrualsEpic.js +3 -2
  20. package/lib/esm/view/expenseAutomationView/selectors/actualMatchingViewSelector.js +6 -8
  21. package/lib/view/expenseAutomationView/epics/actualMatching/fetchActualMatchingEpic.js +3 -3
  22. package/lib/view/expenseAutomationView/epics/actualMatching/matchAndReverseAccrualsEpic.js +3 -2
  23. package/lib/view/expenseAutomationView/epics/actualMatching/searchMatchAccrualsEpic.js +1 -1
  24. package/lib/view/expenseAutomationView/epics/actualMatching/searchMatchTransactionsEpic.js +2 -2
  25. package/lib/view/expenseAutomationView/epics/actualMatching/undoReversalAccrualsEpic.js +3 -2
  26. package/lib/view/expenseAutomationView/selectors/actualMatchingViewSelector.d.ts +4 -1
  27. package/lib/view/expenseAutomationView/selectors/actualMatchingViewSelector.js +6 -8
  28. package/package.json +1 -1
@@ -14,6 +14,7 @@ function toMatchKind(raw) {
14
14
  if (MATCH_KINDS.includes(raw)) {
15
15
  return raw;
16
16
  }
17
+ console.error(`Unknown ActualMatchingMatchKind: ${raw}`);
17
18
  return 'auto_reversed';
18
19
  }
19
20
  function toActualMatchingMatch(payload) {
@@ -35,8 +36,8 @@ function toActualMatchingMatch(payload) {
35
36
  kind: toMatchKind(payload.kind),
36
37
  matchTier: payload.match_tier ?? undefined,
37
38
  matchShape: payload.match_shape ?? undefined,
38
- accruedAmount: (0, amount_1.toAmount)(payload.accrued_amount ?? 0, currencyCode, currencySymbol),
39
- actualAmount: (0, amount_1.toAmount)(payload.actual_amount ?? 0, currencyCode, currencySymbol),
40
- members: (payload.members ?? []).map(jeSchedulesPayload_1.toJEOneTimeAccrual),
39
+ accruedAmount: (0, amount_1.toAmount)(payload.accrued_amount, currencyCode, currencySymbol),
40
+ actualAmount: (0, amount_1.toAmount)(payload.actual_amount, currencyCode, currencySymbol),
41
+ members: payload.members.map(jeSchedulesPayload_1.toJEOneTimeAccrual),
41
42
  };
42
43
  }
@@ -25,7 +25,7 @@ const actualMatching = (0, toolkit_1.createSlice)({
25
25
  },
26
26
  extraReducers: (builder) => {
27
27
  builder.addCase(rootActions_1.clearAll, (draft) => {
28
- draft.byMatchId = {};
28
+ Object.assign(draft, exports.initialState);
29
29
  });
30
30
  },
31
31
  });
@@ -1,3 +1,3 @@
1
1
  import { ActualMatchingMatch, ActualMatchingState } from './actualMatchingState';
2
2
  import { ActualMatchingMatchId } from './actualMatchingTypes';
3
- export declare function getActualMatchingMatchById(matchId: ActualMatchingMatchId, actualMatchingState: ActualMatchingState): ActualMatchingMatch | undefined;
3
+ export declare function getActualMatchingMatchById(actualMatchingState: ActualMatchingState, matchId: ActualMatchingMatchId): ActualMatchingMatch | undefined;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getActualMatchingMatchById = getActualMatchingMatchById;
4
- function getActualMatchingMatchById(matchId, actualMatchingState) {
4
+ function getActualMatchingMatchById(actualMatchingState, matchId) {
5
5
  return actualMatchingState.byMatchId[matchId];
6
6
  }
@@ -185,6 +185,7 @@ export interface JEOneTimeAccrualPayload {
185
185
  reversal_policy?: string | null;
186
186
  reversal_transaction_id?: ID | null;
187
187
  reversal_trigger?: string | null;
188
+ reversed_by_user?: UserPayload | null;
188
189
  transaction_id?: ID | null;
189
190
  transaction_integration_id?: ID | null;
190
191
  }
@@ -546,6 +546,7 @@ function toJEOneTimeAccrual(payload) {
546
546
  transactionIntegrationId: payload.transaction_integration_id ?? undefined,
547
547
  reversalTransactionId: payload.reversal_transaction_id ?? undefined,
548
548
  createdBy: toJEOneTimeAccrualCreator(payload.created_by_user),
549
+ reversedBy: toJEOneTimeAccrualCreator(payload.reversed_by_user),
549
550
  };
550
551
  }
551
552
  // The accrual wire format carries a currency CODE but no symbol, so the symbol has to be derived.
@@ -260,6 +260,7 @@ export interface JEOneTimeAccrualState {
260
260
  profileSnapshot?: JEOneTimeAccrualProfileSnapshot;
261
261
  reversalTransactionId?: ID;
262
262
  reversalTrigger?: OneTimeAccrualReversalTriggerType;
263
+ reversedBy?: JEOneTimeAccrualCreator;
263
264
  transactionId?: ID;
264
265
  transactionIntegrationId?: ID;
265
266
  }
package/lib/epic.d.ts CHANGED
@@ -176,9 +176,9 @@ import { ActionType as FetchExpenseAutomationActualMatchingActionType } from './
176
176
  import { ActionType as FetchExpenseAutomationActualMatchingMatchActionType } from './view/expenseAutomationView/epics/actualMatching/fetchActualMatchingMatchEpic';
177
177
  import { ActionType as FetchExpenseAutomationActualMatchingPageActionType } from './view/expenseAutomationView/epics/actualMatching/fetchActualMatchingPageEpic';
178
178
  import { ActionType as MatchAndReverseAccrualsActionType } from './view/expenseAutomationView/epics/actualMatching/matchAndReverseAccrualsEpic';
179
- import { ActionType as UndoReversalAccrualsActionType } from './view/expenseAutomationView/epics/actualMatching/undoReversalAccrualsEpic';
180
179
  import { ActionType as SearchMatchAccrualsActionType } from './view/expenseAutomationView/epics/actualMatching/searchMatchAccrualsEpic';
181
180
  import { ActionType as SearchMatchTransactionsActionType } from './view/expenseAutomationView/epics/actualMatching/searchMatchTransactionsEpic';
181
+ import { ActionType as UndoReversalAccrualsActionType } from './view/expenseAutomationView/epics/actualMatching/undoReversalAccrualsEpic';
182
182
  import { ActionType as FetchAllExpenseAutomationTabsActionType } from './view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic';
183
183
  import { ActionType as RefreshExpenseAutomationCurrentTabActionType } from './view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic';
184
184
  import { ActionType as FetchExpenseAutomationFluxAnalysisActionType } from './view/expenseAutomationView/epics/fluxAnalysis/fetchFluxAnalysisViewEpic';
@@ -683,5 +683,5 @@ import { ActionType as FetchDepositAccStatementListActionType } from './view/zen
683
683
  import { ActionType as FetchZeniAccStatePageActionType } from './view/zeniAccStatementList/fetchZeniAccStatementPageEpic';
684
684
  import { ActionType as ApproveOAuthConsentActionType } from './view/zeniOAuthView/epics/approveOAuthConsentEpic';
685
685
  /** Root action type is union of all the epic action type */
686
- export type RootActionType = AcceptBillPayTermsActionType | AcceptBillPayUpdatedTermsActionType | AcceptChargeCardTermsActionType | AcceptEmployeeRemiTermsActionType | AcceptMasterTOSEpicActionType | AcceptRemiTermsActionType | AcceptTreasuryTermsActionType | AcceptZeniAccountTermsActionType | AcknowledgeOnboardingAiActivationViewedActionType | AcknowledgeOnboardingAiFinanceTeamActionType | AddCardPaymentSourceActionType | ApplyExtractedPolicyToDraftActionType | ApproveOAuthConsentActionType | ApproveOrRejectBillActionType | ApproveOrRejectBillsBulkActionActionType | ApproveOrRejectRemiActionType | ApproveOrRejectRemisBulkActionActionType | ApproveVendorGlobalReviewActionType | ArchiveCardPolicyActionType | ArchiveTaskActionType | BackgroundRefetchReviewTabActionType | BalanceSheetActionType | BalanceSheetClassesViewActionType | BalanceSheetForTimeframeActionType | BalanceSheetForTimeframeClassesViewActionType | BalanceSheetForTimeframeProjectViewActionType | BalanceSheetProjectViewActionType | BulkUpdateTasksListActionType | BulkUploadMatchResultToastActionType | BulkUploadReceiptsActionType | CancelAiAccountantOnboardingActionType | CancelAndDeleteBillActionType | CancelAndDeleteRemiActionType | CancelOrDeleteBillsBulkActionActionType | CancelOrDeleteRemisBulkActionActionType | CancelScheduleAccruedJournalEntryActionType | CardBalanceActionType | CashBalanceActionType | CashFlowActionType | CashFlowForTimeframeActionType | CashInCashOutActionType | CashPositionActionType | ChangeZeniPersonRolesActionType | CheckDepositActionType | CloseChargeCardActionType | CloseChargeCardsActionType | CombinedStatementActionType | CompanyManagementSavePendingUpdatesActionType | CompanyManagementSaveUpdatesActionType | ConfirmBulkUploadMatchActionType | ConfirmCardSetupIntentActionType | ConfirmStatementMappingActionType | CreateAddressActionType | CreateAutoTransferRuleActionType | CreateBankAccountActionType | CreateCardPolicyTemplateActionType | CreateCardSetupIntentActionType | CreateCheckingAccountActionType | CreateCompanyAddressActionType | CreateCompanyOfficersActionType | CreateCompanyUserAddressActionType | CreateGlobalMerchantActionType | CreateInternationalBankAccountActionType | CreateInvoiceActionType | CreateNewSchedulesAccruedActionType | CreateNewSchedulesActionType | CreateNewTaskGroupActionType | CreateOneTimeAccrualActionType | CreatePaymentInstrumentActionType | CreateSessionActionType | CreateSessionAndSubmitActionType | CreateSubTaskActionType | CreateTagActionType | CreateTaskFromTaskGroupTemplateActionType | CreateTransferEntryActionType | CreateUserBankAccountActionType | CurrencyConversionActionType | DeleteAccountStatementActionType | DeleteAutoTransferRuleActionType | DeleteBankAccountActionType | DeleteBillActionType | DeleteBillPayApprovalRuleActionType | DeleteCannedResponseActionType | DeleteChatSessionActionType | DeleteCombinedStatementActionType | DeleteFileActionType | DeleteFileListActionType | DeleteInternationalBankAccountActionType | DeletePaymentInstrumentActionType | DeletePersonActionType | DeleteRemiActionType | DeleteRemiApprovalRuleActionType | DeleteScheduleAccruedDetailActionType | DeleteScheduleDetailActionType | DeleteTagActionType | DeleteTaskActionType | DeleteTaskGroupActionType | DeleteTransactionAttachmentActionType | DeleteUserBankAccountActionType | DepositAccountTransactionListActionType | DisableAccountingProjectsActionType | DismissCapitalizationOnboardingActionType | DoMagicLinkSignInActionType | DownloadAccountingProviderAttachmentActionType | DragNDropTasksActionType | EditInvoicingCatalogItemDetailViewActionType | EditInvoicingCouponDetailViewActionType | EditInvoicingCustomerDetailViewActionType | EditInvoicingSubscriptionDetailViewActionType | EnableAccountingProjectsActionType | EnableChargeCardAutoPayActionType | EnableSetupActionType | EstablishOnboardingPlaidConnectionActionType | EstablishPlaidConnectionActionType | ExcludeAccountFromReconciliationActionType | ExpressInterestChargeCardActionType | ExpressPayActionType | ExtractPolicyDocumentActionType | FetchAccountHistoryActionType | FetchAccountListActionType | FetchAccountListForAccountTypesActionType | FetchAccountSettingsListForAccountTypesActionType | FetchAccruedScheduleListActionType | FetchActiveTenantActionType | FetchAddressActionType | FetchAggregatedReportActionType | FetchAiAccountantCustomersActionType | FetchAiAccountantJobsActionType | FetchAiAgentsActivationStatusActionType | FetchAllCockpitViewsActionType | FetchAllExpenseAutomationTabsActionType | FetchAllPeopleRequiredActionType | FetchAllTagsActionType | FetchAllTaskGroupsActionType | FetchAllTenantsActionType | FetchApAgingActionType | FetchApAgingDetailActionType | FetchArAgingActionType | FetchArAgingDetailActionType | FetchAuditReportGroupViewActionType | FetchAuditRuleGroupViewActionType | FetchAutoTransferReviewDetailActionType | FetchAutoTransferRuleHistoryActionType | FetchAutoTransferRulesActionType | FetchBankAccountsListActionType | FetchBankConnectionsViewActionType | FetchBankCountryNameByIbanActionType | FetchBankNameByRoutingActionType | FetchBankNameBySwiftActionType | FetchBillAndInitializeLocalStoreActionType | FetchBillDetailActionType | FetchBillingAccountsListActionType | FetchBillListActionType | FetchBillListPerTabActionType | FetchBillPayApproversDetailsActionType | FetchBillPayApproversListActionType | FetchBillPayCardActionType | FetchBillPayConfigActionType | FetchBillPaySetupApproverViewActionType | FetchBillPaySetupViewActionType | FetchBulkUploadBatchDetailsActionType | FetchBulkUploadBatchesActionType | FetchCannedResponsesActionType | FetchCardPolicyDetailActionType | FetchCardPolicyListActionType | FetchCardPolicyMccCategoriesActionType | FetchCardPolicyVendorOptionsActionType | FetchCardProfilesActionType | FetchCashbackDetailActionType | FetchChargeCardConfigActionType | FetchChargeCardDetailActionType | FetchChargeCardDetailPageActionType | FetchChargeCardListActionType | FetchChargeCardListPageActionType | FetchChargeCardPaymentHistoryActionType | FetchChargeCardPaymentPageActionType | FetchChargeCardRepaymentDetailActionType | FetchChargeCardSetupViewActionType | FetchChargeCardsRecurringExpensesActionType | FetchChargeCardStatementListActionType | FetchChargeCardTransactionAttachmentsActionType | FetchChargeCardTransactionListActionType | FetchChargeCardTransactionStatisticsActionType | FetchChatHistoryActionType | FetchChatSessionsForUserActionType | FetchClassListActionType | FetchCockpitContextActionType | FetchCollaborationAuthTokenActionType | FetchCompanyBillingAddressActionType | FetchCompanyConfigActionType | FetchCompanyHealthMetricConfigViewEpicActionType | FetchCompanyHealthMetricViewEpicActionType | FetchCompanyManagementActionType | FetchCompanyMetaDataActionType | FetchCompanyMonthEndReportHistoricDataActionType | FetchCompanyMonthEndReportHistoricDatesActionType | FetchCompanyMonthEndReportTemplatesActionType | FetchCompanyMonthEndReportViewActionType | FetchCompanyOnboardingViewActionType | FetchCompanyPassportViewActionType | FetchCompanyPortfolioActionType | FetchCompanyTaskManagerViewActionType | FetchCompletedTransactionsActionType | FetchCreateInvoiceFormPageActionType | FetchCreditAccountActionType | FetchCreditAccountRepaymentActionType | FetchCreditAgentMacroActionType | FetchCurrencyConversionValueActionType | FetchDashboardActionType | FetchDashboardLayoutActionType | FetchDebitCardSummaryActionType | FetchDepositAccountActionType | FetchDepositAccountDetailActionType | FetchDepositAccountLimitActionType | FetchDepositAccountListActionType | FetchDepositAccountListForCardsActionType | FetchDepositAccStatementListActionType | FetchDownloadSchedulesActionType | FetchDuplicateBillActionType | FetchDuplicateReimbursementEpicActionType | FetchEditBillDetailPageActionType | FetchEditRemiDetailPageActionType | FetchEligibleActionsForBillActionType | FetchEntityAutoCompleteActionType | FetchEntityHistoryActionType | FetchEntityRecommendationsByTransactionIdActionType | FetchEntityRecommendationsForLineUpdateActionType | FetchExcludedResourcesActionType | FetchExpenseAutomationActualMatchingActionType | FetchExpenseAutomationActualMatchingMatchActionType | FetchExpenseAutomationActualMatchingPageActionType | FetchExpenseAutomationFluxAnalysisActionType | FetchExpenseAutomationInitializeTransactionCategorizationViewLocalDataActionType | FetchExpenseAutomationJEScheduleActionType | FetchExpenseAutomationJESchedulePageActionType | FetchExpenseAutomationMarkTransactionAsNotMiscategorizedActionType | FetchExpenseAutomationMissingReceiptsActionType | FetchExpenseAutomationReconciliationsViewActionType | FetchExpenseAutomationSaveTransactionCategorizationActionType | FetchExpenseAutomationTransactionCategorizationActionType | FetchExpenseAutomationTransactionCategorizationViewActionType | FetchExpenseAutomationUpdateTransactionCategorizationEpicActionType | FetchExpenseTrendActionType | FetchExternalConnectionsActionType | FetchFileActionType | FetchFileListActionType | FetchForecastListActionType | FetchGlobalMerchantAutoCompleteActionType | FetchGlobalMerchantRecommendationActionType | FetchIncomeTrendActionType | FetchInternationalWireDynamicFormActionType | FetchIntlVerificationFormActionType | FetchInvoiceCountsActionType | FetchInvoiceDetailActionType | FetchInvoiceKPIsActionType | FetchInvoiceListActionType | FetchInvoiceListPageActionType | FetchIssueCardPageActionType | FetchMagicLinkBankNameByRoutingActionType | FetchMagicLinkBankNameBySwiftActionType | FetchMagicLinkBillActionType | FetchMagicLinkTenantActionType | FetchManagementActionType | FetchMerchantListActionType | FetchMonthClosePerformanceTrendActionType | FetchMonthEndCloseChecksActionType | FetchMoreBatchDetailsActionType | FetchMultipleBatchDetailsActionType | FetchMyProfileActionType | FetchMyProfileViewActionType | FetchNetBurnOrIncomeStoryCardActionType | FetchNetBurnOrIncomeWithForecastActionType | FetchNotificationSettingsActionType | FetchNotificationSettingsViewActionType | FetchNotificationUnreadCountActionType | FetchNotificationViewActionType | FetchOnboardingActionType | FetchOnboardingCompletedCompaniesActionType | FetchOnboardingCustomerSetupViewActionType | FetchOnboardingCustomerViewActionType | FetchOneTimeAccrualActionType | FetchOpExWithForecastActionType | FetchOwnerListActionType | FetchParentSubsidiaryManagementActionType | FetchPaymentAccountBalanceActionType | FetchPaymentAccountListActionType | FetchPaymentSourcesActionType | FetchPortfolioActionType | FetchPortfolioAllocationActionType | FetchPreviousBillsActionType | FetchProjectListActionType | FetchQBOConnectionPoolActionType | FetchRecommendationByEntityIdActionType | FetchRecommendationByEntityNameActionType | FetchRecommendationsAndUpdateMerchantRecommendationsActionType | FetchRecommendationsAndUpdateVendorRecommendationsActionType | FetchRecommendedBillExpenseActionType | FetchReferralsActionType | FetchRegisteredInterestsActionType | FetchReimbursementCardActionType | FetchReimbursementConfigActionType | FetchRemiAndInitializeLocalStoreActionType | FetchRemiApproversDetailsActionType | FetchRemiApproversListActionType | FetchRemiDetailActionType | FetchRemiListActionType | FetchRemiListPerTabActionType | FetchRemiSetupApproverViewActionType | FetchRemiSetupViewActionType | FetchRevenueWithForecastActionType | FetchReviewCompanyActionType | FetchReviewTransferDetailActionType | FetchRewardsPlanActionType | FetchScheduleAccruedDetailsActionType | FetchScheduleAccruedDetailsPageActionType | FetchScheduleDetailsActionType | FetchScheduleDetailsPageActionType | FetchScheduleListActionType | FetchSchedulesListActionType | FetchSkillsActionType | FetchSubscriptionActionType | FetchSubscriptionAddOnsActionType | FetchSubscriptionCouponsActionType | FetchSubscriptionCreateEstimateActionType | FetchSubscriptionDetailsActionType | FetchSubscriptionListActionType | FetchSubscriptionPlansActionType | FetchSubscriptionSummaryForTenantActionType | FetchSubscriptionUpdateEstimateActionType | FetchSubTasksActionType | FetchSuggestedQuestionsActionType | FetchTaskDetailActionType | FetchTaskDetailPageActionType | FetchTaskGroupTemplatesActionType | FetchTaskHistoryActionType | FetchTaskListActionType | FetchTaskListPageActionType | FetchTaskManagerMetricsActionType | FetchTasksCardActionType | FetchTransactionActivityLogActionType | FetchTransactionDetailActionType | FetchTransactionListByAccountActionType | FetchTransactionListByClassActionType | FetchTransactionListByEntityActionType | FetchTransactionListByProjectActionType | FetchTransactionsForEntityActionType | FetchTransactionsListByCategoryTypeActionType | FetchTransferAccountsActionType | FetchTreasuryDetailActionType | FetchTreasuryFundsActionType | FetchTreasuryHistoryActionType | FetchTreasurySetupViewActionType | FetchTreasuryStatementListActionType | FetchTreasuryTaxLetterListActionType | FetchTreasuryTransactionListActionType | FetchTrendForEntityActionType | FetchUserDetailActionType | FetchUserFinancialAccountActionType | FetchUserListByTypeActionType | FetchUserRoleConfigActionType | FetchVendor1099TypeListActionType | FetchVendorActionType | FetchVendorAndUpdateBillLocalDataActionType | FetchVendorByNameAndParseInvoiceActionType | FetchVendorDetailsActionType | FetchVendorFirstReviewAttachmentsActionType | FetchVendorFirstReviewViewActionType | FetchVendorGlobalReviewViewActionType | FetchVendorsActionType | FetchVendorsFiling1099ActionType | FetchVendorsFiling1099AllActionType | FetchVendorsFiling1099DownloadActionType | FetchVendorTabViewActionType | FetchVendorTypeListActionType | FetchZeniAccountListPageActionType | FetchZeniAccountsConfigActionType | FetchZeniAccountSetupViewActionType | FetchZeniAccStatePageActionType | FetchZeniUsersActionType | GetOnboardingEmailGroupActionType | GetOnboardingPlaidLinkTokenActionType | GetPaymentAccountsActionType | GetPlaidLinkTokenActionType | IgnoreExpenseAutomationJEScheduleActionType | ImproveUsingZeniGPTActionType | IncludeAccountInReconciliationActionType | InitialiseExpenseAutomationLocalDataForSelectedAccountIdActionType | InitializeAccountMappingViewActionType | InitializeAccountSettingsViewEpicActionType | InitializeBillPaySetupApproverViewUpdateDataActionType | InitializeBillToLocalStoreActionType | InitializeCardUserOnboardingLocalDataActionType | InitializeCompanyHealthMetricViewLocalDataEpicActionType | InitializeEditPersonActionType | InitializeExpenseAutomationJeScheduleLocalDataActionType | InitializeInternationalWireLocalDataActionType | InitializeIntlVerificationFormEpicActionType | InitializeMyProfileLocalDataActionType | InitializeNewScheduleActionType | InitializeOnboardingCustomerViewUpdateDataActionType | InitializeRemiSetupApproverViewUpdateDataActionType | InitializeRemiToLocalStoreActionType | InitializeScheduleAccruedDetailLocalDataActionType | InitializeScheduleDetailLocalDataActionType | InitializeSubscriptionLocalDataActionType | InitializeTaskToLocalStoreActionType | InitializeTransactionDetailLocalDataActionType | InitializeVendorAddressActionType | InitiateChargeCardRepaymentActionType | InitiateReportsClassViewRefetchingActionType | InitiateReportsProjectViewRefetchingActionType | InsightsCardActionType | InvitePeopleActionType | InviteZeniPeopleActionType | InvoicingAuditViewActionType | InvoicingCatalogActionActionType | InvoicingCatalogItemDetailViewActionType | InvoicingCatalogListViewActionType | InvoicingCatalogSubFamilyActionType | InvoicingConfigViewActionType | InvoicingCouponDetailViewActionType | InvoicingCouponViewActionType | InvoicingCreditNoteDetailViewActionType | InvoicingCreditNoteListViewActionType | InvoicingCustomerDetailPageActionType | InvoicingCustomerDetailViewActionType | InvoicingCustomerListViewActionType | InvoicingCustomerPaymentMethodActionType | InvoicingDataImportViewActionType | InvoicingDiscountActionActionType | InvoicingDunningActionActionType | InvoicingDunningCaseDetailViewActionType | InvoicingDunningCaseListViewActionType | InvoicingInvoiceActionActionType | InvoicingOverviewActionType | InvoicingPaymentActionActionType | InvoicingPromotionalCreditActionActionType | InvoicingQboViewActionType | InvoicingSettingsViewActionType | InvoicingSubscriptionActionActionType | InvoicingSubscriptionDetailViewActionType | InvoicingSubscriptionFormPageActionType | InvoicingSubscriptionListViewActionType | InvoicingTransactionDetailViewActionType | InvoicingTransactionListViewActionType | IssueChargeCardActionType | LockChargeCardActionType | LockChargeCardsActionType | MarkAsCompleteScheduleDetailActionType | MarkTransactionAsNotMiscategorizedActionType | MatchAndReverseAccrualsActionType | UndoReversalAccrualsActionType | NetBurnOrIncomeActionType | NetBurnOrIncomeClassesViewActionType | NetBurnOrIncomeForTimeframeActionType | NetBurnOrIncomeForTimeframeClassesViewActionType | NetBurnOrIncomeForTimeframeProjectViewActionType | NetBurnOrIncomeProjectViewActionType | NotifyMeForFeatureActionType | OneTimeAccrualActionsActionType | OpExActionType | OpExByVendorReportActionType | OpExByVendorReportForTimeframeActionType | OpExByVendorReportSummaryActionType | OpExClassesViewActionType | OpExForTimeframeClassesViewActionType | OpExForTimeframeProjectViewActionType | OpExForTimeframeViewActionType | OpExProjectViewActionType | ParallelFetchAccountTransactionListActionType | ParallelFetchClassTransactionListActionType | ParallelFetchEntityTransactionListActionType | ParallelFetchProjectTransactionListActionType | ParallelFetchTransactionListByCategoryTypeActionType | ParseCombinedStatementActionType | ParseInvoiceToBillActionType | ParseReceiptsToRemiActionType | ParseStatementActionType | ParseUploadedKybDocumentActionType | ParseUploadedKycDocumentActionType | PeopleActionType | PeoplePageActionType | PeopleSaveUpdatesActionType | PolicyDocumentExtractionToRecommendationBridgeActionType | PolicyRecommendationFromUploadActionType | ProfitAndLossActionType | ProfitAndLossClassesViewActionType | ProfitAndLossForTimeframeActionType | ProfitAndLossForTimeframeClassesViewActionType | ProfitAndLossForTimeframeProjectViewActionType | ProfitAndLossProjectViewActionType | PushToastNotificationActionType | RecommendationForAccountSettingsActionType | RecommendationForAccountTypeActionType | RecordPaymentActionType | RefetchCompletedTransactionsOnBulkUploadSortActionType | RefreshBatchDetailsForBatchIdActionType | RefreshExpenseAutomationCurrentTabActionType | RefreshIntegrationsDataActionType | RefreshOpExByVendorReportActionType | RejectVendorGlobalReviewActionType | ReorderBillPayApprovalRulesActionType | ReorderRemiApprovalRulesActionType | ReparseStatementActionType | ReportsResyncActionType | ResendCardInviteActionType | ResendInviteActionType | ResendOtpActionType | ResendReferralInviteActionType | ResendVerifyDeviceOTPActionType | ResetTransactionVendorLocalDataActionType | ResetVendorDetailLocalDataActionType | RestoreAutomatchingActionType | ResumeEnableAccountingProjectsActionType | RetryBankAccountConnectionActionType | RetryBankAccountConnectionForOnboardingActionType | RetryExpenseAutomationJEScheduleActionType | RetryOrRefundBillActionType | RevenueActionType | RevenueClassesViewActionType | RevenueForTimeframeClassesViewActionType | RevenueForTimeframeProjectViewActionType | RevenueForTimeframeViewActionType | RevenueProjectViewActionType | RevertJeScheduleActionType | ReviewDraftRemisBulkActionActionTye | ReviewExpenseAutomationFluxAnalysisActionType | RevokeCardInviteActionType | RevokeChargeCardsInviteActionType | SaveAccountMappingViewActionType | SaveAccountSettingsViewEpicActionType | SaveAddressActionType | SaveBillDetailActionType | SaveBillPaySetupApproverViewUpdatesActionType | SaveCannedResponseActionType | saveCardOnboardingUserDetailsActionType | SaveCompanyBillingAddressActionType | SaveCompanyHealthMetricByIdEpicActionType | SaveCompanyMonthEndReportActionType | SaveCompanyPassportDetailsActionType | SaveCreditAgentMacroActionType | SaveExpenseAutomationReconciliationDetailActionType | SaveExternalConnectionActionType | SaveMagicLinkBankAccountActionType | SaveNewScheduleActionType | SaveNotificationPreferencesActionType | SaveNotificationSettingsEpicActionType | SaveOnboardingCustomerCompletedStatusActionType | SaveOnboardingCustomerNotesActionType | SaveOnboardingCustomerViewUpdatesActionType | SaveRealTimeApprovalActionType | SaveReasonForAuditRuleActionType | SaveReconciliationReviewActionType | SaveRemiDetailActionType | SaveRemiSetupApproverViewUpdatesActionType | SaveScheduleAccruedDetailsActionType | SaveScheduleDetailsActionType | SaveSubscriptionNotesUpdatesActionType | SaveSubscriptionUpdatesActionType | SaveTaskDetailActionType | SaveTranactionVendorActionType | SaveTransactionDetailActionType | SaveVendorActionType | SaveVendorDetailsViewActionType | SaveVendorFirstReviewViewActionType | ScheduleTenantCreditScoreCronActionType | SearchMatchAccrualsActionType | SearchMatchTransactionsActionType | SearchTransactionsForManualMatchActionType | SearchTransactionsForNewScheduleActionType | SeedAiCardCreationFormDraftActionType | SeedAiCardPolicyFormDraftActionType | SendCompanyMonthEndReportActionType | SendEmailMagicLinkToUserActionType | SendOnboardingCustomerViewInviteActionType | SendOtpActionType | SendReferralInviteActionType | SessionHeartbeatActionType | SignInActionType | SignOutActionType | SnoozeTaskActionType | StatementCloseDayActionType | StopSubmitActionType | StopSubmitQuestionActionType | SubmitDraftBillsBulkActionActionType | SubmitDraftRemisBulkActionActionType | SubmitExpressPayActionType | SubmitFeedbackActionType | SubmitIntlVerificationActionType | SubmitQuestionActionType | SubmitRecommendationFeedbackActionType | SwitchExpenseAutomationJESchedulesTabActionType | SyncInvoicingSubscriptionCouponsActionType | SyncTabsAfterAutomatchActionType | ToggleReportUIOptionForecastModeActionType | TopExActionType | TransferMoneyActionType | TreasuryTransferMoneyActionType | TriggerAiAccountantJobActionType | TriggerReviewTabRefetchActionType | UnlinkPaymentAccountActionType | UnlockChargeCardActionType | UnlockChargeCardsActionType | UnsnoozeTaskActionType | UpdateAccountingClassesEnabledActionType | UpdateAccruedJESchedulesActionType | UpdateAddressActionType | UpdateAmountsInScheduleAccruedDetailActionType | UpdateAmountsInScheduleDetailActionType | UpdateAutoTransferRuleActionType | UpdateBusinessVerificationDetailsActionType | UpdateCapitalizationAccountThresholdActionType | UpdateCardPolicyActionType | UpdateCardProfileActionType | UpdateChargeCardDetailActionType | UpdateChargeCardLimitActionType | UpdateChargeCardNameActionType | UpdateChargeCardsLimitActionType | UpdateCombinedStatementInfoActionType | UpdateCompanyDetailsActionType | UpdateCompanyOfficerActionType | UpdateCompanyPassportLocalStoreDataActionType | UpdateCompanyProductServicesActionType | UpdateCompanyQboRealmIdActionType | UpdateCompanyTaskManagerViewFiltersActionType | UpdateDashboardLayoutActionType | UpdateDebitCardPinAttemptActionType | UpdateDepositAccountActionType | UpdateDynamicFormActionType | UpdateExpenseAutomationReconciliationBalanceLocalDataActionType | UpdateFileNameActionType | UpdateFilesMetadataActionType | UpdateJESchedulesActionType | UpdateMappedCashAccountActionType | UpdateMileageDetailsActionType | UpdateMyProfileActionType | UpdateNetBurnOrIncomeStoryCardSettingsActionType | UpdateNotificationViewAllNotificationsStatusActionType | UpdateNotificationViewNotificationStatusActionType | UpdateOnboardingCustomerViewActionType | UpdateOnboardingCustomerViewCompleteStatusActionType | UpdateOnboardingCustomerViewDashboardLoadedActionType | UpdateOnboardingCustomerViewLocalStoreDataActionType | UpdateOnboardingPaymentAccountLoginStatusActionType | UpdateOnboardingPaymentAccountStatusActionType | UpdatePaymentAccountActionType | UpdatePaymentAccountLoginStatusActionType | UpdatePaymentAccountStatusActionType | UpdatePhysicalChargeCardAttemptActionType | UpdatePortfolioAllocationActionType | UpdatePrimaryContactActionType | UpdatePrimaryFundingAccountActionType | UpdateQBOConnectionPoolExternalConnectionActionType | UpdateReferViewedActionType | UpdateRemiSetupViewLocalStoreDataActionType | UpdateReportUIOptionCOABalancesRangeActionType | UpdateReportUIOptionIsCompareModeActionType | UpdateReportUIOptionIsCompareModeOnActionType | UpdateReportUIOptionThisPeriodActionType | UpdateReportUIOptionTimeFrameActionType | UpdateSectionAccountsViewActionType | UpdateSectionClassesViewV2ActionType | UpdateSectionProjectViewActionType | UpdateSelectedVendorForCreateFlowActionType | UpdateSetupViewLocalStoreDataActionType | UpdateStatementInfoActionType | UpdateTaskFromListViewActionType | UpdateTaskGroupNameActionType | UpdateTransactionDetailActionType | UpdateTransactionOnUploadSuccessActionType | UpdateVendorContactActionType | UploadAccountStatementActionType | UploadMissingReceiptSuccessEpicActionType | UploadTransactionReceiptSuccessEpicActionType | ValidateBillsBulkActionActionType | VendorFiling1099UploadDetailsSaveActionType | VendorsTabFetchVendorActionType | VendorsTabFetchVendorDetailPageViewActionType | VendorsTabFetchVendorDetailsActionType | VendorsTabResetVendorDetailLocalDataActionType | VendorsTabSaveVendorActionType | VerifyDeviceWithTwoFAActionType | VerifyOtpActionType | VerifyUserActionType | WatchBulkUploadBatchStatusActionType | WiseRedirectActionType;
686
+ export type RootActionType = AcceptBillPayTermsActionType | AcceptBillPayUpdatedTermsActionType | AcceptChargeCardTermsActionType | AcceptEmployeeRemiTermsActionType | AcceptMasterTOSEpicActionType | AcceptRemiTermsActionType | AcceptTreasuryTermsActionType | AcceptZeniAccountTermsActionType | AcknowledgeOnboardingAiActivationViewedActionType | AcknowledgeOnboardingAiFinanceTeamActionType | AddCardPaymentSourceActionType | ApplyExtractedPolicyToDraftActionType | ApproveOAuthConsentActionType | ApproveOrRejectBillActionType | ApproveOrRejectBillsBulkActionActionType | ApproveOrRejectRemiActionType | ApproveOrRejectRemisBulkActionActionType | ApproveVendorGlobalReviewActionType | ArchiveCardPolicyActionType | ArchiveTaskActionType | BackgroundRefetchReviewTabActionType | BalanceSheetActionType | BalanceSheetClassesViewActionType | BalanceSheetForTimeframeActionType | BalanceSheetForTimeframeClassesViewActionType | BalanceSheetForTimeframeProjectViewActionType | BalanceSheetProjectViewActionType | BulkUpdateTasksListActionType | BulkUploadMatchResultToastActionType | BulkUploadReceiptsActionType | CancelAiAccountantOnboardingActionType | CancelAndDeleteBillActionType | CancelAndDeleteRemiActionType | CancelOrDeleteBillsBulkActionActionType | CancelOrDeleteRemisBulkActionActionType | CancelScheduleAccruedJournalEntryActionType | CardBalanceActionType | CashBalanceActionType | CashFlowActionType | CashFlowForTimeframeActionType | CashInCashOutActionType | CashPositionActionType | ChangeZeniPersonRolesActionType | CheckDepositActionType | CloseChargeCardActionType | CloseChargeCardsActionType | CombinedStatementActionType | CompanyManagementSavePendingUpdatesActionType | CompanyManagementSaveUpdatesActionType | ConfirmBulkUploadMatchActionType | ConfirmCardSetupIntentActionType | ConfirmStatementMappingActionType | CreateAddressActionType | CreateAutoTransferRuleActionType | CreateBankAccountActionType | CreateCardPolicyTemplateActionType | CreateCardSetupIntentActionType | CreateCheckingAccountActionType | CreateCompanyAddressActionType | CreateCompanyOfficersActionType | CreateCompanyUserAddressActionType | CreateGlobalMerchantActionType | CreateInternationalBankAccountActionType | CreateInvoiceActionType | CreateNewSchedulesAccruedActionType | CreateNewSchedulesActionType | CreateNewTaskGroupActionType | CreateOneTimeAccrualActionType | CreatePaymentInstrumentActionType | CreateSessionActionType | CreateSessionAndSubmitActionType | CreateSubTaskActionType | CreateTagActionType | CreateTaskFromTaskGroupTemplateActionType | CreateTransferEntryActionType | CreateUserBankAccountActionType | CurrencyConversionActionType | DeleteAccountStatementActionType | DeleteAutoTransferRuleActionType | DeleteBankAccountActionType | DeleteBillActionType | DeleteBillPayApprovalRuleActionType | DeleteCannedResponseActionType | DeleteChatSessionActionType | DeleteCombinedStatementActionType | DeleteFileActionType | DeleteFileListActionType | DeleteInternationalBankAccountActionType | DeletePaymentInstrumentActionType | DeletePersonActionType | DeleteRemiActionType | DeleteRemiApprovalRuleActionType | DeleteScheduleAccruedDetailActionType | DeleteScheduleDetailActionType | DeleteTagActionType | DeleteTaskActionType | DeleteTaskGroupActionType | DeleteTransactionAttachmentActionType | DeleteUserBankAccountActionType | DepositAccountTransactionListActionType | DisableAccountingProjectsActionType | DismissCapitalizationOnboardingActionType | DoMagicLinkSignInActionType | DownloadAccountingProviderAttachmentActionType | DragNDropTasksActionType | EditInvoicingCatalogItemDetailViewActionType | EditInvoicingCouponDetailViewActionType | EditInvoicingCustomerDetailViewActionType | EditInvoicingSubscriptionDetailViewActionType | EnableAccountingProjectsActionType | EnableChargeCardAutoPayActionType | EnableSetupActionType | EstablishOnboardingPlaidConnectionActionType | EstablishPlaidConnectionActionType | ExcludeAccountFromReconciliationActionType | ExpressInterestChargeCardActionType | ExpressPayActionType | ExtractPolicyDocumentActionType | FetchAccountHistoryActionType | FetchAccountListActionType | FetchAccountListForAccountTypesActionType | FetchAccountSettingsListForAccountTypesActionType | FetchAccruedScheduleListActionType | FetchActiveTenantActionType | FetchAddressActionType | FetchAggregatedReportActionType | FetchAiAccountantCustomersActionType | FetchAiAccountantJobsActionType | FetchAiAgentsActivationStatusActionType | FetchAllCockpitViewsActionType | FetchAllExpenseAutomationTabsActionType | FetchAllPeopleRequiredActionType | FetchAllTagsActionType | FetchAllTaskGroupsActionType | FetchAllTenantsActionType | FetchApAgingActionType | FetchApAgingDetailActionType | FetchArAgingActionType | FetchArAgingDetailActionType | FetchAuditReportGroupViewActionType | FetchAuditRuleGroupViewActionType | FetchAutoTransferReviewDetailActionType | FetchAutoTransferRuleHistoryActionType | FetchAutoTransferRulesActionType | FetchBankAccountsListActionType | FetchBankConnectionsViewActionType | FetchBankCountryNameByIbanActionType | FetchBankNameByRoutingActionType | FetchBankNameBySwiftActionType | FetchBillAndInitializeLocalStoreActionType | FetchBillDetailActionType | FetchBillingAccountsListActionType | FetchBillListActionType | FetchBillListPerTabActionType | FetchBillPayApproversDetailsActionType | FetchBillPayApproversListActionType | FetchBillPayCardActionType | FetchBillPayConfigActionType | FetchBillPaySetupApproverViewActionType | FetchBillPaySetupViewActionType | FetchBulkUploadBatchDetailsActionType | FetchBulkUploadBatchesActionType | FetchCannedResponsesActionType | FetchCardPolicyDetailActionType | FetchCardPolicyListActionType | FetchCardPolicyMccCategoriesActionType | FetchCardPolicyVendorOptionsActionType | FetchCardProfilesActionType | FetchCashbackDetailActionType | FetchChargeCardConfigActionType | FetchChargeCardDetailActionType | FetchChargeCardDetailPageActionType | FetchChargeCardListActionType | FetchChargeCardListPageActionType | FetchChargeCardPaymentHistoryActionType | FetchChargeCardPaymentPageActionType | FetchChargeCardRepaymentDetailActionType | FetchChargeCardSetupViewActionType | FetchChargeCardsRecurringExpensesActionType | FetchChargeCardStatementListActionType | FetchChargeCardTransactionAttachmentsActionType | FetchChargeCardTransactionListActionType | FetchChargeCardTransactionStatisticsActionType | FetchChatHistoryActionType | FetchChatSessionsForUserActionType | FetchClassListActionType | FetchCockpitContextActionType | FetchCollaborationAuthTokenActionType | FetchCompanyBillingAddressActionType | FetchCompanyConfigActionType | FetchCompanyHealthMetricConfigViewEpicActionType | FetchCompanyHealthMetricViewEpicActionType | FetchCompanyManagementActionType | FetchCompanyMetaDataActionType | FetchCompanyMonthEndReportHistoricDataActionType | FetchCompanyMonthEndReportHistoricDatesActionType | FetchCompanyMonthEndReportTemplatesActionType | FetchCompanyMonthEndReportViewActionType | FetchCompanyOnboardingViewActionType | FetchCompanyPassportViewActionType | FetchCompanyPortfolioActionType | FetchCompanyTaskManagerViewActionType | FetchCompletedTransactionsActionType | FetchCreateInvoiceFormPageActionType | FetchCreditAccountActionType | FetchCreditAccountRepaymentActionType | FetchCreditAgentMacroActionType | FetchCurrencyConversionValueActionType | FetchDashboardActionType | FetchDashboardLayoutActionType | FetchDebitCardSummaryActionType | FetchDepositAccountActionType | FetchDepositAccountDetailActionType | FetchDepositAccountLimitActionType | FetchDepositAccountListActionType | FetchDepositAccountListForCardsActionType | FetchDepositAccStatementListActionType | FetchDownloadSchedulesActionType | FetchDuplicateBillActionType | FetchDuplicateReimbursementEpicActionType | FetchEditBillDetailPageActionType | FetchEditRemiDetailPageActionType | FetchEligibleActionsForBillActionType | FetchEntityAutoCompleteActionType | FetchEntityHistoryActionType | FetchEntityRecommendationsByTransactionIdActionType | FetchEntityRecommendationsForLineUpdateActionType | FetchExcludedResourcesActionType | FetchExpenseAutomationActualMatchingActionType | FetchExpenseAutomationActualMatchingMatchActionType | FetchExpenseAutomationActualMatchingPageActionType | FetchExpenseAutomationFluxAnalysisActionType | FetchExpenseAutomationInitializeTransactionCategorizationViewLocalDataActionType | FetchExpenseAutomationJEScheduleActionType | FetchExpenseAutomationJESchedulePageActionType | FetchExpenseAutomationMarkTransactionAsNotMiscategorizedActionType | FetchExpenseAutomationMissingReceiptsActionType | FetchExpenseAutomationReconciliationsViewActionType | FetchExpenseAutomationSaveTransactionCategorizationActionType | FetchExpenseAutomationTransactionCategorizationActionType | FetchExpenseAutomationTransactionCategorizationViewActionType | FetchExpenseAutomationUpdateTransactionCategorizationEpicActionType | FetchExpenseTrendActionType | FetchExternalConnectionsActionType | FetchFileActionType | FetchFileListActionType | FetchForecastListActionType | FetchGlobalMerchantAutoCompleteActionType | FetchGlobalMerchantRecommendationActionType | FetchIncomeTrendActionType | FetchInternationalWireDynamicFormActionType | FetchIntlVerificationFormActionType | FetchInvoiceCountsActionType | FetchInvoiceDetailActionType | FetchInvoiceKPIsActionType | FetchInvoiceListActionType | FetchInvoiceListPageActionType | FetchIssueCardPageActionType | FetchMagicLinkBankNameByRoutingActionType | FetchMagicLinkBankNameBySwiftActionType | FetchMagicLinkBillActionType | FetchMagicLinkTenantActionType | FetchManagementActionType | FetchMerchantListActionType | FetchMonthClosePerformanceTrendActionType | FetchMonthEndCloseChecksActionType | FetchMoreBatchDetailsActionType | FetchMultipleBatchDetailsActionType | FetchMyProfileActionType | FetchMyProfileViewActionType | FetchNetBurnOrIncomeStoryCardActionType | FetchNetBurnOrIncomeWithForecastActionType | FetchNotificationSettingsActionType | FetchNotificationSettingsViewActionType | FetchNotificationUnreadCountActionType | FetchNotificationViewActionType | FetchOnboardingActionType | FetchOnboardingCompletedCompaniesActionType | FetchOnboardingCustomerSetupViewActionType | FetchOnboardingCustomerViewActionType | FetchOneTimeAccrualActionType | FetchOpExWithForecastActionType | FetchOwnerListActionType | FetchParentSubsidiaryManagementActionType | FetchPaymentAccountBalanceActionType | FetchPaymentAccountListActionType | FetchPaymentSourcesActionType | FetchPortfolioActionType | FetchPortfolioAllocationActionType | FetchPreviousBillsActionType | FetchProjectListActionType | FetchQBOConnectionPoolActionType | FetchRecommendationByEntityIdActionType | FetchRecommendationByEntityNameActionType | FetchRecommendationsAndUpdateMerchantRecommendationsActionType | FetchRecommendationsAndUpdateVendorRecommendationsActionType | FetchRecommendedBillExpenseActionType | FetchReferralsActionType | FetchRegisteredInterestsActionType | FetchReimbursementCardActionType | FetchReimbursementConfigActionType | FetchRemiAndInitializeLocalStoreActionType | FetchRemiApproversDetailsActionType | FetchRemiApproversListActionType | FetchRemiDetailActionType | FetchRemiListActionType | FetchRemiListPerTabActionType | FetchRemiSetupApproverViewActionType | FetchRemiSetupViewActionType | FetchRevenueWithForecastActionType | FetchReviewCompanyActionType | FetchReviewTransferDetailActionType | FetchRewardsPlanActionType | FetchScheduleAccruedDetailsActionType | FetchScheduleAccruedDetailsPageActionType | FetchScheduleDetailsActionType | FetchScheduleDetailsPageActionType | FetchScheduleListActionType | FetchSchedulesListActionType | FetchSkillsActionType | FetchSubscriptionActionType | FetchSubscriptionAddOnsActionType | FetchSubscriptionCouponsActionType | FetchSubscriptionCreateEstimateActionType | FetchSubscriptionDetailsActionType | FetchSubscriptionListActionType | FetchSubscriptionPlansActionType | FetchSubscriptionSummaryForTenantActionType | FetchSubscriptionUpdateEstimateActionType | FetchSubTasksActionType | FetchSuggestedQuestionsActionType | FetchTaskDetailActionType | FetchTaskDetailPageActionType | FetchTaskGroupTemplatesActionType | FetchTaskHistoryActionType | FetchTaskListActionType | FetchTaskListPageActionType | FetchTaskManagerMetricsActionType | FetchTasksCardActionType | FetchTransactionActivityLogActionType | FetchTransactionDetailActionType | FetchTransactionListByAccountActionType | FetchTransactionListByClassActionType | FetchTransactionListByEntityActionType | FetchTransactionListByProjectActionType | FetchTransactionsForEntityActionType | FetchTransactionsListByCategoryTypeActionType | FetchTransferAccountsActionType | FetchTreasuryDetailActionType | FetchTreasuryFundsActionType | FetchTreasuryHistoryActionType | FetchTreasurySetupViewActionType | FetchTreasuryStatementListActionType | FetchTreasuryTaxLetterListActionType | FetchTreasuryTransactionListActionType | FetchTrendForEntityActionType | FetchUserDetailActionType | FetchUserFinancialAccountActionType | FetchUserListByTypeActionType | FetchUserRoleConfigActionType | FetchVendor1099TypeListActionType | FetchVendorActionType | FetchVendorAndUpdateBillLocalDataActionType | FetchVendorByNameAndParseInvoiceActionType | FetchVendorDetailsActionType | FetchVendorFirstReviewAttachmentsActionType | FetchVendorFirstReviewViewActionType | FetchVendorGlobalReviewViewActionType | FetchVendorsActionType | FetchVendorsFiling1099ActionType | FetchVendorsFiling1099AllActionType | FetchVendorsFiling1099DownloadActionType | FetchVendorTabViewActionType | FetchVendorTypeListActionType | FetchZeniAccountListPageActionType | FetchZeniAccountsConfigActionType | FetchZeniAccountSetupViewActionType | FetchZeniAccStatePageActionType | FetchZeniUsersActionType | GetOnboardingEmailGroupActionType | GetOnboardingPlaidLinkTokenActionType | GetPaymentAccountsActionType | GetPlaidLinkTokenActionType | IgnoreExpenseAutomationJEScheduleActionType | ImproveUsingZeniGPTActionType | IncludeAccountInReconciliationActionType | InitialiseExpenseAutomationLocalDataForSelectedAccountIdActionType | InitializeAccountMappingViewActionType | InitializeAccountSettingsViewEpicActionType | InitializeBillPaySetupApproverViewUpdateDataActionType | InitializeBillToLocalStoreActionType | InitializeCardUserOnboardingLocalDataActionType | InitializeCompanyHealthMetricViewLocalDataEpicActionType | InitializeEditPersonActionType | InitializeExpenseAutomationJeScheduleLocalDataActionType | InitializeInternationalWireLocalDataActionType | InitializeIntlVerificationFormEpicActionType | InitializeMyProfileLocalDataActionType | InitializeNewScheduleActionType | InitializeOnboardingCustomerViewUpdateDataActionType | InitializeRemiSetupApproverViewUpdateDataActionType | InitializeRemiToLocalStoreActionType | InitializeScheduleAccruedDetailLocalDataActionType | InitializeScheduleDetailLocalDataActionType | InitializeSubscriptionLocalDataActionType | InitializeTaskToLocalStoreActionType | InitializeTransactionDetailLocalDataActionType | InitializeVendorAddressActionType | InitiateChargeCardRepaymentActionType | InitiateReportsClassViewRefetchingActionType | InitiateReportsProjectViewRefetchingActionType | InsightsCardActionType | InvitePeopleActionType | InviteZeniPeopleActionType | InvoicingAuditViewActionType | InvoicingCatalogActionActionType | InvoicingCatalogItemDetailViewActionType | InvoicingCatalogListViewActionType | InvoicingCatalogSubFamilyActionType | InvoicingConfigViewActionType | InvoicingCouponDetailViewActionType | InvoicingCouponViewActionType | InvoicingCreditNoteDetailViewActionType | InvoicingCreditNoteListViewActionType | InvoicingCustomerDetailPageActionType | InvoicingCustomerDetailViewActionType | InvoicingCustomerListViewActionType | InvoicingCustomerPaymentMethodActionType | InvoicingDataImportViewActionType | InvoicingDiscountActionActionType | InvoicingDunningActionActionType | InvoicingDunningCaseDetailViewActionType | InvoicingDunningCaseListViewActionType | InvoicingInvoiceActionActionType | InvoicingOverviewActionType | InvoicingPaymentActionActionType | InvoicingPromotionalCreditActionActionType | InvoicingQboViewActionType | InvoicingSettingsViewActionType | InvoicingSubscriptionActionActionType | InvoicingSubscriptionDetailViewActionType | InvoicingSubscriptionFormPageActionType | InvoicingSubscriptionListViewActionType | InvoicingTransactionDetailViewActionType | InvoicingTransactionListViewActionType | IssueChargeCardActionType | LockChargeCardActionType | LockChargeCardsActionType | MarkAsCompleteScheduleDetailActionType | MarkTransactionAsNotMiscategorizedActionType | MatchAndReverseAccrualsActionType | NetBurnOrIncomeActionType | NetBurnOrIncomeClassesViewActionType | NetBurnOrIncomeForTimeframeActionType | NetBurnOrIncomeForTimeframeClassesViewActionType | NetBurnOrIncomeForTimeframeProjectViewActionType | NetBurnOrIncomeProjectViewActionType | NotifyMeForFeatureActionType | OneTimeAccrualActionsActionType | OpExActionType | OpExByVendorReportActionType | OpExByVendorReportForTimeframeActionType | OpExByVendorReportSummaryActionType | OpExClassesViewActionType | OpExForTimeframeClassesViewActionType | OpExForTimeframeProjectViewActionType | OpExForTimeframeViewActionType | OpExProjectViewActionType | ParallelFetchAccountTransactionListActionType | ParallelFetchClassTransactionListActionType | ParallelFetchEntityTransactionListActionType | ParallelFetchProjectTransactionListActionType | ParallelFetchTransactionListByCategoryTypeActionType | ParseCombinedStatementActionType | ParseInvoiceToBillActionType | ParseReceiptsToRemiActionType | ParseStatementActionType | ParseUploadedKybDocumentActionType | ParseUploadedKycDocumentActionType | PeopleActionType | PeoplePageActionType | PeopleSaveUpdatesActionType | PolicyDocumentExtractionToRecommendationBridgeActionType | PolicyRecommendationFromUploadActionType | ProfitAndLossActionType | ProfitAndLossClassesViewActionType | ProfitAndLossForTimeframeActionType | ProfitAndLossForTimeframeClassesViewActionType | ProfitAndLossForTimeframeProjectViewActionType | ProfitAndLossProjectViewActionType | PushToastNotificationActionType | RecommendationForAccountSettingsActionType | RecommendationForAccountTypeActionType | RecordPaymentActionType | RefetchCompletedTransactionsOnBulkUploadSortActionType | RefreshBatchDetailsForBatchIdActionType | RefreshExpenseAutomationCurrentTabActionType | RefreshIntegrationsDataActionType | RefreshOpExByVendorReportActionType | RejectVendorGlobalReviewActionType | ReorderBillPayApprovalRulesActionType | ReorderRemiApprovalRulesActionType | ReparseStatementActionType | ReportsResyncActionType | ResendCardInviteActionType | ResendInviteActionType | ResendOtpActionType | ResendReferralInviteActionType | ResendVerifyDeviceOTPActionType | ResetTransactionVendorLocalDataActionType | ResetVendorDetailLocalDataActionType | RestoreAutomatchingActionType | ResumeEnableAccountingProjectsActionType | RetryBankAccountConnectionActionType | RetryBankAccountConnectionForOnboardingActionType | RetryExpenseAutomationJEScheduleActionType | RetryOrRefundBillActionType | RevenueActionType | RevenueClassesViewActionType | RevenueForTimeframeClassesViewActionType | RevenueForTimeframeProjectViewActionType | RevenueForTimeframeViewActionType | RevenueProjectViewActionType | RevertJeScheduleActionType | ReviewDraftRemisBulkActionActionTye | ReviewExpenseAutomationFluxAnalysisActionType | RevokeCardInviteActionType | RevokeChargeCardsInviteActionType | SaveAccountMappingViewActionType | SaveAccountSettingsViewEpicActionType | SaveAddressActionType | SaveBillDetailActionType | SaveBillPaySetupApproverViewUpdatesActionType | SaveCannedResponseActionType | saveCardOnboardingUserDetailsActionType | SaveCompanyBillingAddressActionType | SaveCompanyHealthMetricByIdEpicActionType | SaveCompanyMonthEndReportActionType | SaveCompanyPassportDetailsActionType | SaveCreditAgentMacroActionType | SaveExpenseAutomationReconciliationDetailActionType | SaveExternalConnectionActionType | SaveMagicLinkBankAccountActionType | SaveNewScheduleActionType | SaveNotificationPreferencesActionType | SaveNotificationSettingsEpicActionType | SaveOnboardingCustomerCompletedStatusActionType | SaveOnboardingCustomerNotesActionType | SaveOnboardingCustomerViewUpdatesActionType | SaveRealTimeApprovalActionType | SaveReasonForAuditRuleActionType | SaveReconciliationReviewActionType | SaveRemiDetailActionType | SaveRemiSetupApproverViewUpdatesActionType | SaveScheduleAccruedDetailsActionType | SaveScheduleDetailsActionType | SaveSubscriptionNotesUpdatesActionType | SaveSubscriptionUpdatesActionType | SaveTaskDetailActionType | SaveTranactionVendorActionType | SaveTransactionDetailActionType | SaveVendorActionType | SaveVendorDetailsViewActionType | SaveVendorFirstReviewViewActionType | ScheduleTenantCreditScoreCronActionType | SearchMatchAccrualsActionType | SearchMatchTransactionsActionType | SearchTransactionsForManualMatchActionType | SearchTransactionsForNewScheduleActionType | SeedAiCardCreationFormDraftActionType | SeedAiCardPolicyFormDraftActionType | SendCompanyMonthEndReportActionType | SendEmailMagicLinkToUserActionType | SendOnboardingCustomerViewInviteActionType | SendOtpActionType | SendReferralInviteActionType | SessionHeartbeatActionType | SignInActionType | SignOutActionType | SnoozeTaskActionType | StatementCloseDayActionType | StopSubmitActionType | StopSubmitQuestionActionType | SubmitDraftBillsBulkActionActionType | SubmitDraftRemisBulkActionActionType | SubmitExpressPayActionType | SubmitFeedbackActionType | SubmitIntlVerificationActionType | SubmitQuestionActionType | SubmitRecommendationFeedbackActionType | SwitchExpenseAutomationJESchedulesTabActionType | SyncInvoicingSubscriptionCouponsActionType | SyncTabsAfterAutomatchActionType | ToggleReportUIOptionForecastModeActionType | TopExActionType | TransferMoneyActionType | TreasuryTransferMoneyActionType | TriggerAiAccountantJobActionType | TriggerReviewTabRefetchActionType | UndoReversalAccrualsActionType | UnlinkPaymentAccountActionType | UnlockChargeCardActionType | UnlockChargeCardsActionType | UnsnoozeTaskActionType | UpdateAccountingClassesEnabledActionType | UpdateAccruedJESchedulesActionType | UpdateAddressActionType | UpdateAmountsInScheduleAccruedDetailActionType | UpdateAmountsInScheduleDetailActionType | UpdateAutoTransferRuleActionType | UpdateBusinessVerificationDetailsActionType | UpdateCapitalizationAccountThresholdActionType | UpdateCardPolicyActionType | UpdateCardProfileActionType | UpdateChargeCardDetailActionType | UpdateChargeCardLimitActionType | UpdateChargeCardNameActionType | UpdateChargeCardsLimitActionType | UpdateCombinedStatementInfoActionType | UpdateCompanyDetailsActionType | UpdateCompanyOfficerActionType | UpdateCompanyPassportLocalStoreDataActionType | UpdateCompanyProductServicesActionType | UpdateCompanyQboRealmIdActionType | UpdateCompanyTaskManagerViewFiltersActionType | UpdateDashboardLayoutActionType | UpdateDebitCardPinAttemptActionType | UpdateDepositAccountActionType | UpdateDynamicFormActionType | UpdateExpenseAutomationReconciliationBalanceLocalDataActionType | UpdateFileNameActionType | UpdateFilesMetadataActionType | UpdateJESchedulesActionType | UpdateMappedCashAccountActionType | UpdateMileageDetailsActionType | UpdateMyProfileActionType | UpdateNetBurnOrIncomeStoryCardSettingsActionType | UpdateNotificationViewAllNotificationsStatusActionType | UpdateNotificationViewNotificationStatusActionType | UpdateOnboardingCustomerViewActionType | UpdateOnboardingCustomerViewCompleteStatusActionType | UpdateOnboardingCustomerViewDashboardLoadedActionType | UpdateOnboardingCustomerViewLocalStoreDataActionType | UpdateOnboardingPaymentAccountLoginStatusActionType | UpdateOnboardingPaymentAccountStatusActionType | UpdatePaymentAccountActionType | UpdatePaymentAccountLoginStatusActionType | UpdatePaymentAccountStatusActionType | UpdatePhysicalChargeCardAttemptActionType | UpdatePortfolioAllocationActionType | UpdatePrimaryContactActionType | UpdatePrimaryFundingAccountActionType | UpdateQBOConnectionPoolExternalConnectionActionType | UpdateReferViewedActionType | UpdateRemiSetupViewLocalStoreDataActionType | UpdateReportUIOptionCOABalancesRangeActionType | UpdateReportUIOptionIsCompareModeActionType | UpdateReportUIOptionIsCompareModeOnActionType | UpdateReportUIOptionThisPeriodActionType | UpdateReportUIOptionTimeFrameActionType | UpdateSectionAccountsViewActionType | UpdateSectionClassesViewV2ActionType | UpdateSectionProjectViewActionType | UpdateSelectedVendorForCreateFlowActionType | UpdateSetupViewLocalStoreDataActionType | UpdateStatementInfoActionType | UpdateTaskFromListViewActionType | UpdateTaskGroupNameActionType | UpdateTransactionDetailActionType | UpdateTransactionOnUploadSuccessActionType | UpdateVendorContactActionType | UploadAccountStatementActionType | UploadMissingReceiptSuccessEpicActionType | UploadTransactionReceiptSuccessEpicActionType | ValidateBillsBulkActionActionType | VendorFiling1099UploadDetailsSaveActionType | VendorsTabFetchVendorActionType | VendorsTabFetchVendorDetailPageViewActionType | VendorsTabFetchVendorDetailsActionType | VendorsTabResetVendorDetailLocalDataActionType | VendorsTabSaveVendorActionType | VerifyDeviceWithTwoFAActionType | VerifyOtpActionType | VerifyUserActionType | WatchBulkUploadBatchStatusActionType | WiseRedirectActionType;
687
687
  export declare const featureRootEpic: Epic<RootActionType>;
package/lib/epic.js CHANGED
@@ -193,9 +193,9 @@ const fetchActualMatchingEpic_1 = require("./view/expenseAutomationView/epics/ac
193
193
  const fetchActualMatchingMatchEpic_1 = require("./view/expenseAutomationView/epics/actualMatching/fetchActualMatchingMatchEpic");
194
194
  const fetchActualMatchingPageEpic_1 = require("./view/expenseAutomationView/epics/actualMatching/fetchActualMatchingPageEpic");
195
195
  const matchAndReverseAccrualsEpic_1 = require("./view/expenseAutomationView/epics/actualMatching/matchAndReverseAccrualsEpic");
196
- const undoReversalAccrualsEpic_1 = require("./view/expenseAutomationView/epics/actualMatching/undoReversalAccrualsEpic");
197
196
  const searchMatchAccrualsEpic_1 = require("./view/expenseAutomationView/epics/actualMatching/searchMatchAccrualsEpic");
198
197
  const searchMatchTransactionsEpic_1 = require("./view/expenseAutomationView/epics/actualMatching/searchMatchTransactionsEpic");
198
+ const undoReversalAccrualsEpic_1 = require("./view/expenseAutomationView/epics/actualMatching/undoReversalAccrualsEpic");
199
199
  const fetchAllExpenseAutomationTabsEpic_1 = require("./view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic");
200
200
  const refreshExpenseAutomationCurrentTabEpic_1 = require("./view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic");
201
201
  const fetchFluxAnalysisViewEpic_1 = require("./view/expenseAutomationView/epics/fluxAnalysis/fetchFluxAnalysisViewEpic");
@@ -1265,7 +1265,6 @@ const ALL_EPICS = [
1265
1265
  markAsCompleteScheduleDetailEpic_1.markAsCompleteScheduleDetailEpic,
1266
1266
  markTransactionAsNotMiscategorizedEpic_2.markTransactionAsNotMiscategorizedEpic,
1267
1267
  matchAndReverseAccrualsEpic_1.matchAndReverseAccrualsEpic,
1268
- undoReversalAccrualsEpic_1.undoReversalAccrualsEpic,
1269
1268
  notifyMeForFeatureEpic_1.notifyMeForFeatureEpic,
1270
1269
  oneTimeAccrualActionsEpic_1.oneTimeAccrualActionsEpic,
1271
1270
  parallelFetchAccountTransactionListEpic_1.parallelFetchAccountTransactionListEpic,
@@ -1407,6 +1406,7 @@ const ALL_EPICS = [
1407
1406
  treasuryTransferMoneyEpic_1.treasuryTransferMoneyEpic,
1408
1407
  triggerAiAccountantJobEpic_1.triggerAiAccountantJobEpic,
1409
1408
  triggerReviewTabRefetchEpic_1.triggerReviewTabRefetchEpic,
1409
+ undoReversalAccrualsEpic_1.undoReversalAccrualsEpic,
1410
1410
  unlinkPaymentAccountEpic_1.unlinkPaymentAccountEpic,
1411
1411
  unlockChargeCardEpic_1.unlockChargeCardEpic,
1412
1412
  unlockChargeCardsEpic_1.unlockChargeCardsEpic,
@@ -1,5 +1,5 @@
1
1
  import { toAmount } from '../../commonStateTypes/amount';
2
- import { toJEOneTimeAccrual } from '../jeSchedules/jeSchedulesPayload';
2
+ import { toJEOneTimeAccrual, } from '../jeSchedules/jeSchedulesPayload';
3
3
  const USD_CURRENCY_CODE = 'USD';
4
4
  const USD_CURRENCY_SYMBOL = '$';
5
5
  const MATCH_KINDS = [
@@ -11,6 +11,7 @@ function toMatchKind(raw) {
11
11
  if (MATCH_KINDS.includes(raw)) {
12
12
  return raw;
13
13
  }
14
+ console.error(`Unknown ActualMatchingMatchKind: ${raw}`);
14
15
  return 'auto_reversed';
15
16
  }
16
17
  export function toActualMatchingMatch(payload) {
@@ -32,8 +33,8 @@ export function toActualMatchingMatch(payload) {
32
33
  kind: toMatchKind(payload.kind),
33
34
  matchTier: payload.match_tier ?? undefined,
34
35
  matchShape: payload.match_shape ?? undefined,
35
- accruedAmount: toAmount(payload.accrued_amount ?? 0, currencyCode, currencySymbol),
36
- actualAmount: toAmount(payload.actual_amount ?? 0, currencyCode, currencySymbol),
37
- members: (payload.members ?? []).map(toJEOneTimeAccrual),
36
+ accruedAmount: toAmount(payload.accrued_amount, currencyCode, currencySymbol),
37
+ actualAmount: toAmount(payload.actual_amount, currencyCode, currencySymbol),
38
+ members: payload.members.map(toJEOneTimeAccrual),
38
39
  };
39
40
  }
@@ -22,7 +22,7 @@ const actualMatching = createSlice({
22
22
  },
23
23
  extraReducers: (builder) => {
24
24
  builder.addCase(clearAll, (draft) => {
25
- draft.byMatchId = {};
25
+ Object.assign(draft, initialState);
26
26
  });
27
27
  },
28
28
  });
@@ -1,3 +1,3 @@
1
- export function getActualMatchingMatchById(matchId, actualMatchingState) {
1
+ export function getActualMatchingMatchById(actualMatchingState, matchId) {
2
2
  return actualMatchingState.byMatchId[matchId];
3
3
  }
@@ -535,6 +535,7 @@ export function toJEOneTimeAccrual(payload) {
535
535
  transactionIntegrationId: payload.transaction_integration_id ?? undefined,
536
536
  reversalTransactionId: payload.reversal_transaction_id ?? undefined,
537
537
  createdBy: toJEOneTimeAccrualCreator(payload.created_by_user),
538
+ reversedBy: toJEOneTimeAccrualCreator(payload.reversed_by_user),
538
539
  };
539
540
  }
540
541
  // The accrual wire format carries a currency CODE but no symbol, so the symbol has to be derived.
package/lib/esm/epic.js CHANGED
@@ -190,9 +190,9 @@ import { fetchActualMatchingEpic as fetchExpenseAutomationActualMatchingEpic, }
190
190
  import { fetchActualMatchingMatchEpic as fetchExpenseAutomationActualMatchingMatchEpic, } from './view/expenseAutomationView/epics/actualMatching/fetchActualMatchingMatchEpic';
191
191
  import { fetchActualMatchingPageEpic as fetchExpenseAutomationActualMatchingPageEpic, } from './view/expenseAutomationView/epics/actualMatching/fetchActualMatchingPageEpic';
192
192
  import { matchAndReverseAccrualsEpic, } from './view/expenseAutomationView/epics/actualMatching/matchAndReverseAccrualsEpic';
193
- import { undoReversalAccrualsEpic, } from './view/expenseAutomationView/epics/actualMatching/undoReversalAccrualsEpic';
194
193
  import { searchMatchAccrualsEpic, } from './view/expenseAutomationView/epics/actualMatching/searchMatchAccrualsEpic';
195
194
  import { searchMatchTransactionsEpic, } from './view/expenseAutomationView/epics/actualMatching/searchMatchTransactionsEpic';
195
+ import { undoReversalAccrualsEpic, } from './view/expenseAutomationView/epics/actualMatching/undoReversalAccrualsEpic';
196
196
  import { fetchAllExpenseAutomationTabsEpic, } from './view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic';
197
197
  import { refreshExpenseAutomationCurrentTabEpic, } from './view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic';
198
198
  import { fetchFluxAnalysisViewEpic as fetchExpenseAutomationFluxAnalysisViewEpic, } from './view/expenseAutomationView/epics/fluxAnalysis/fetchFluxAnalysisViewEpic';
@@ -1262,7 +1262,6 @@ const ALL_EPICS = [
1262
1262
  markAsCompleteScheduleDetailEpic,
1263
1263
  markTransactionAsNotMiscategorizedEpic,
1264
1264
  matchAndReverseAccrualsEpic,
1265
- undoReversalAccrualsEpic,
1266
1265
  notifyMeForFeatureEpic,
1267
1266
  oneTimeAccrualActionsEpic,
1268
1267
  parallelFetchAccountTransactionListEpic,
@@ -1404,6 +1403,7 @@ const ALL_EPICS = [
1404
1403
  treasuryTransferMoneyEpic,
1405
1404
  triggerAiAccountantJobEpic,
1406
1405
  triggerReviewTabRefetchEpic,
1406
+ undoReversalAccrualsEpic,
1407
1407
  unlinkPaymentAccountEpic,
1408
1408
  unlockChargeCardEpic,
1409
1409
  unlockChargeCardsEpic,
@@ -1,17 +1,17 @@
1
1
  import { from, of } from 'rxjs';
2
- import { catchError, filter, mergeMap, takeUntil } from 'rxjs/operators';
2
+ import { catchError, filter, mergeMap, switchMap, takeUntil, } from 'rxjs/operators';
3
3
  import { updateActualMatchingMatches } from '../../../../entity/actualMatching/actualMatchingReducer';
4
4
  import { getCurrentTenant } from '../../../../entity/tenant/tenantSelector';
5
5
  import { createZeniAPIStatus, isSuccessResponse, } from '../../../../responsePayload';
6
6
  import { clearAll } from '../../../../rootActions';
7
7
  import { toServiceMonthFromPeriod, } from '../../payload/actualMatchingPayload';
8
8
  import { fetchActualMatching, fetchActualMatchingFailure, fetchActualMatchingSuccess, } from '../../reducers/actualMatchingViewReducer';
9
- export const fetchActualMatchingEpic = (actions$, state$, zeniAPI) => actions$.pipe(filter(fetchActualMatching.match), mergeMap((action) => {
9
+ export const fetchActualMatchingEpic = (actions$, state$, zeniAPI) => actions$.pipe(filter(fetchActualMatching.match), switchMap((action) => {
10
10
  const state = state$.value;
11
11
  const { period, refreshViewInBackground } = action.payload;
12
12
  const currentTenant = getCurrentTenant(state);
13
13
  const selectedPeriod = state.expenseAutomationViewState
14
- .selectedPeriodByTenantId[currentTenant.tenantId] ?? {
14
+ .selectedPeriodByTenantId[currentTenant?.tenantId ?? ''] ?? {
15
15
  month: period.start.month,
16
16
  year: period.start.year,
17
17
  };
@@ -20,7 +20,7 @@ export const fetchActualMatchingEpic = (actions$, state$, zeniAPI) => actions$.p
20
20
  .getJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/accruals/actual-matching?service_month=${encodeURIComponent(serviceMonth)}`)
21
21
  .pipe(mergeMap((response) => {
22
22
  if (isSuccessResponse(response) && response.data != null) {
23
- const matches = response.data.matches ?? [];
23
+ const matches = response.data.matches;
24
24
  const updateActions = [];
25
25
  if (matches.length > 0) {
26
26
  updateActions.push(updateActualMatchingMatches(matches));
@@ -7,7 +7,8 @@ import { clearAll } from '../../../../rootActions';
7
7
  import { toMatchAndReverseResult, } from '../../payload/actualMatchingPayload';
8
8
  import { clearMatchNewModal, fetchActualMatching, matchAndReverseAccruals, matchAndReverseAccrualsFailure, matchAndReverseAccrualsSuccess, } from '../../reducers/actualMatchingViewReducer';
9
9
  function refreshActualMatchingList(state) {
10
- const selectedMonthYear = state.expenseAutomationViewState.selectedPeriodByTenantId[getCurrentTenant(state).tenantId];
10
+ const currentTenant = getCurrentTenant(state);
11
+ const selectedMonthYear = state.expenseAutomationViewState.selectedPeriodByTenantId[currentTenant?.tenantId ?? ''];
11
12
  if (selectedMonthYear == null) {
12
13
  return [];
13
14
  }
@@ -33,7 +34,7 @@ export const matchAndReverseAccrualsEpic = (actions$, state$, zeniAPI) => action
33
34
  .postAndGetJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/accruals/match-and-reverse`, body)
34
35
  .pipe(mergeMap((response) => {
35
36
  if (isSuccessResponse(response) && response.data != null) {
36
- const results = (response.data.results ?? []).map(toMatchAndReverseResult);
37
+ const results = response.data.results.map(toMatchAndReverseResult);
37
38
  const successActions = [
38
39
  matchAndReverseAccrualsSuccess({ results }),
39
40
  ];
@@ -17,7 +17,7 @@ export const searchMatchAccrualsEpic = (actions$, _state$, zeniAPI) => {
17
17
  .getJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/accruals?status=posted&reversal_policy=on_bill_match&search_text=${searchText}&limit=${limit}&offset=${offset}`)
18
18
  .pipe(mergeMap((response) => {
19
19
  if (isSuccessResponse(response) && response.data != null) {
20
- const accruals = response.data.accruals ?? [];
20
+ const accruals = response.data.accruals;
21
21
  const append = pageToken != null;
22
22
  const nextOffset = offset + accruals.length;
23
23
  const total = response.data.total ?? nextOffset;
@@ -15,7 +15,7 @@ export const searchMatchTransactionsEpic = (actions$, state$, zeniAPI) => {
15
15
  searchMatchAccruals({ query: '' }),
16
16
  ]);
17
17
  }
18
- const match = getActualMatchingMatchById(matchId, state$.value.actualMatchingState);
18
+ const match = getActualMatchingMatchById(state$.value.actualMatchingState, matchId);
19
19
  const parsed = parseActualMatchingMatchId(matchId);
20
20
  const transactionType = match?.transactionType != null && match.transactionType !== ''
21
21
  ? match.transactionType
@@ -54,7 +54,7 @@ export const searchMatchTransactionsEpic = (actions$, state$, zeniAPI) => {
54
54
  if (isSuccessResponse(response) && response.data != null) {
55
55
  const { transactions, next_page_token } = response.data;
56
56
  const append = pageToken != null;
57
- const results = (transactions ?? []).map(toActualMatchingTransactionSearchResult);
57
+ const results = transactions.map(toActualMatchingTransactionSearchResult);
58
58
  return of(searchMatchTransactionsSuccess({
59
59
  append,
60
60
  nextPageToken: next_page_token ?? null,
@@ -7,7 +7,8 @@ import { clearAll } from '../../../../rootActions';
7
7
  import { toUndoReversalResult, } from '../../payload/actualMatchingPayload';
8
8
  import { fetchActualMatching, fetchActualMatchingMatch, undoReversalAccruals, undoReversalAccrualsFailure, undoReversalAccrualsSuccess, } from '../../reducers/actualMatchingViewReducer';
9
9
  function refreshActualMatchingList(state) {
10
- const selectedMonthYear = state.expenseAutomationViewState.selectedPeriodByTenantId[getCurrentTenant(state).tenantId];
10
+ const currentTenant = getCurrentTenant(state);
11
+ const selectedMonthYear = state.expenseAutomationViewState.selectedPeriodByTenantId[currentTenant?.tenantId ?? ''];
11
12
  if (selectedMonthYear == null) {
12
13
  return [];
13
14
  }
@@ -33,7 +34,7 @@ export const undoReversalAccrualsEpic = (actions$, state$, zeniAPI) => actions$.
33
34
  .postAndGetJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/accruals/undo-reversal`, body)
34
35
  .pipe(mergeMap((response) => {
35
36
  if (isSuccessResponse(response) && response.data != null) {
36
- const results = (response.data.results ?? []).map(toUndoReversalResult);
37
+ const results = response.data.results.map(toUndoReversalResult);
37
38
  const successActions = [
38
39
  undoReversalAccrualsSuccess({ results }),
39
40
  ];
@@ -74,7 +74,7 @@ export function getActualMatchingAmount(row) {
74
74
  }
75
75
  export function getActualMatchingReversalDate(accrual) {
76
76
  if (isPendingReviewAccrual(accrual)) {
77
- return accrual.matchSuggestion?.matchedTransactionDate;
77
+ return accrual.matchSuggestion.matchedTransactionDate;
78
78
  }
79
79
  return accrual.cleared?.matchedTransactionDate;
80
80
  }
@@ -179,7 +179,7 @@ function sumRowAmounts(rows) {
179
179
  export function getExpenseAutomationActualMatchingMatchView(state, matchId) {
180
180
  const view = state.expenseAutomationActualMatchingViewState;
181
181
  return {
182
- match: getActualMatchingMatchById(matchId, state.actualMatchingState),
182
+ match: getActualMatchingMatchById(state.actualMatchingState, matchId),
183
183
  detailFetchState: view.detailFetchStateByMatchId[matchId] ?? NOT_STARTED,
184
184
  refreshStatus: view.detailRefreshStatusByMatchId[matchId] ?? NOT_STARTED,
185
185
  undoReversalStatus: view.undoReversalStatus ?? NOT_STARTED,
@@ -189,13 +189,11 @@ export function getExpenseAutomationActualMatchingView(state) {
189
189
  const { expenseAutomationActualMatchingViewState, expenseAutomationViewState } = state;
190
190
  const { matchIdsByPeriod, fetchState, error, refreshStatus, uiState, matchModal, undoReversalStatus, } = expenseAutomationActualMatchingViewState;
191
191
  const currentTenant = getCurrentTenant(state);
192
- const selectedPeriod = expenseAutomationViewState.selectedPeriodByTenantId[currentTenant.tenantId];
192
+ const selectedPeriod = expenseAutomationViewState.selectedPeriodByTenantId[currentTenant?.tenantId ?? ''];
193
193
  const monthYearPeriodId = selectedPeriod != null ? toMonthYearPeriodId(selectedPeriod) : undefined;
194
- const matchIds = monthYearPeriodId != null
195
- ? matchIdsByPeriod[monthYearPeriodId]
196
- : undefined;
194
+ const matchIds = monthYearPeriodId != null ? matchIdsByPeriod[monthYearPeriodId] : undefined;
197
195
  const rows = (matchIds ?? [])
198
- .map((matchId) => getActualMatchingMatchById(matchId, state.actualMatchingState))
196
+ .map((matchId) => getActualMatchingMatchById(state.actualMatchingState, matchId))
199
197
  .filter((match) => match != null)
200
198
  .filter((match) => match.members.length > 0)
201
199
  .map(toActualMatchingRow)
@@ -230,7 +228,7 @@ export function getExpenseAutomationActualMatchingView(state) {
230
228
  .map((key) => getJEOneTimeAccrualByKey(key, state.jeSchedulesState))
231
229
  .filter((accrual) => accrual != null);
232
230
  const openedMatch = matchModal.openedFromMatchId != null
233
- ? getActualMatchingMatchById(matchModal.openedFromMatchId, state.actualMatchingState)
231
+ ? getActualMatchingMatchById(state.actualMatchingState, matchModal.openedFromMatchId)
234
232
  : undefined;
235
233
  const pinnedAccruals = (openedMatch?.members ?? []).map(toMatchModalAccrual);
236
234
  const firstSuggestion = openedMatch?.members[0]?.matchSuggestion;
@@ -9,12 +9,12 @@ const responsePayload_1 = require("../../../../responsePayload");
9
9
  const rootActions_1 = require("../../../../rootActions");
10
10
  const actualMatchingPayload_1 = require("../../payload/actualMatchingPayload");
11
11
  const actualMatchingViewReducer_1 = require("../../reducers/actualMatchingViewReducer");
12
- const fetchActualMatchingEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(actualMatchingViewReducer_1.fetchActualMatching.match), (0, operators_1.mergeMap)((action) => {
12
+ const fetchActualMatchingEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(actualMatchingViewReducer_1.fetchActualMatching.match), (0, operators_1.switchMap)((action) => {
13
13
  const state = state$.value;
14
14
  const { period, refreshViewInBackground } = action.payload;
15
15
  const currentTenant = (0, tenantSelector_1.getCurrentTenant)(state);
16
16
  const selectedPeriod = state.expenseAutomationViewState
17
- .selectedPeriodByTenantId[currentTenant.tenantId] ?? {
17
+ .selectedPeriodByTenantId[currentTenant?.tenantId ?? ''] ?? {
18
18
  month: period.start.month,
19
19
  year: period.start.year,
20
20
  };
@@ -23,7 +23,7 @@ const fetchActualMatchingEpic = (actions$, state$, zeniAPI) => actions$.pipe((0,
23
23
  .getJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/accruals/actual-matching?service_month=${encodeURIComponent(serviceMonth)}`)
24
24
  .pipe((0, operators_1.mergeMap)((response) => {
25
25
  if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
26
- const matches = response.data.matches ?? [];
26
+ const matches = response.data.matches;
27
27
  const updateActions = [];
28
28
  if (matches.length > 0) {
29
29
  updateActions.push((0, actualMatchingReducer_1.updateActualMatchingMatches)(matches));
@@ -10,7 +10,8 @@ const rootActions_1 = require("../../../../rootActions");
10
10
  const actualMatchingPayload_1 = require("../../payload/actualMatchingPayload");
11
11
  const actualMatchingViewReducer_1 = require("../../reducers/actualMatchingViewReducer");
12
12
  function refreshActualMatchingList(state) {
13
- const selectedMonthYear = state.expenseAutomationViewState.selectedPeriodByTenantId[(0, tenantSelector_1.getCurrentTenant)(state).tenantId];
13
+ const currentTenant = (0, tenantSelector_1.getCurrentTenant)(state);
14
+ const selectedMonthYear = state.expenseAutomationViewState.selectedPeriodByTenantId[currentTenant?.tenantId ?? ''];
14
15
  if (selectedMonthYear == null) {
15
16
  return [];
16
17
  }
@@ -36,7 +37,7 @@ const matchAndReverseAccrualsEpic = (actions$, state$, zeniAPI) => actions$.pipe
36
37
  .postAndGetJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/accruals/match-and-reverse`, body)
37
38
  .pipe((0, operators_1.mergeMap)((response) => {
38
39
  if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
39
- const results = (response.data.results ?? []).map(actualMatchingPayload_1.toMatchAndReverseResult);
40
+ const results = response.data.results.map(actualMatchingPayload_1.toMatchAndReverseResult);
40
41
  const successActions = [
41
42
  (0, actualMatchingViewReducer_1.matchAndReverseAccrualsSuccess)({ results }),
42
43
  ];
@@ -20,7 +20,7 @@ const searchMatchAccrualsEpic = (actions$, _state$, zeniAPI) => {
20
20
  .getJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/accruals?status=posted&reversal_policy=on_bill_match&search_text=${searchText}&limit=${limit}&offset=${offset}`)
21
21
  .pipe((0, operators_1.mergeMap)((response) => {
22
22
  if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
23
- const accruals = response.data.accruals ?? [];
23
+ const accruals = response.data.accruals;
24
24
  const append = pageToken != null;
25
25
  const nextOffset = offset + accruals.length;
26
26
  const total = response.data.total ?? nextOffset;
@@ -18,7 +18,7 @@ const searchMatchTransactionsEpic = (actions$, state$, zeniAPI) => {
18
18
  (0, actualMatchingViewReducer_1.searchMatchAccruals)({ query: '' }),
19
19
  ]);
20
20
  }
21
- const match = (0, actualMatchingSelector_1.getActualMatchingMatchById)(matchId, state$.value.actualMatchingState);
21
+ const match = (0, actualMatchingSelector_1.getActualMatchingMatchById)(state$.value.actualMatchingState, matchId);
22
22
  const parsed = (0, actualMatchingViewSelector_1.parseActualMatchingMatchId)(matchId);
23
23
  const transactionType = match?.transactionType != null && match.transactionType !== ''
24
24
  ? match.transactionType
@@ -57,7 +57,7 @@ const searchMatchTransactionsEpic = (actions$, state$, zeniAPI) => {
57
57
  if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
58
58
  const { transactions, next_page_token } = response.data;
59
59
  const append = pageToken != null;
60
- const results = (transactions ?? []).map(actualMatchingPayload_1.toActualMatchingTransactionSearchResult);
60
+ const results = transactions.map(actualMatchingPayload_1.toActualMatchingTransactionSearchResult);
61
61
  return (0, rxjs_1.of)((0, actualMatchingViewReducer_1.searchMatchTransactionsSuccess)({
62
62
  append,
63
63
  nextPageToken: next_page_token ?? null,
@@ -10,7 +10,8 @@ const rootActions_1 = require("../../../../rootActions");
10
10
  const actualMatchingPayload_1 = require("../../payload/actualMatchingPayload");
11
11
  const actualMatchingViewReducer_1 = require("../../reducers/actualMatchingViewReducer");
12
12
  function refreshActualMatchingList(state) {
13
- const selectedMonthYear = state.expenseAutomationViewState.selectedPeriodByTenantId[(0, tenantSelector_1.getCurrentTenant)(state).tenantId];
13
+ const currentTenant = (0, tenantSelector_1.getCurrentTenant)(state);
14
+ const selectedMonthYear = state.expenseAutomationViewState.selectedPeriodByTenantId[currentTenant?.tenantId ?? ''];
14
15
  if (selectedMonthYear == null) {
15
16
  return [];
16
17
  }
@@ -36,7 +37,7 @@ const undoReversalAccrualsEpic = (actions$, state$, zeniAPI) => actions$.pipe((0
36
37
  .postAndGetJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/accruals/undo-reversal`, body)
37
38
  .pipe((0, operators_1.mergeMap)((response) => {
38
39
  if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
39
- const results = (response.data.results ?? []).map(actualMatchingPayload_1.toUndoReversalResult);
40
+ const results = response.data.results.map(actualMatchingPayload_1.toUndoReversalResult);
40
41
  const successActions = [
41
42
  (0, actualMatchingViewReducer_1.undoReversalAccrualsSuccess)({ results }),
42
43
  ];
@@ -2,6 +2,7 @@ import { FetchStateAndError } from '../../../commonStateTypes/common';
2
2
  import { ActualMatchingMatch } from '../../../entity/actualMatching/actualMatchingState';
3
3
  import { ActualMatchingMatchId } from '../../../entity/actualMatching/actualMatchingTypes';
4
4
  import { JEOneTimeAccrual } from '../../../entity/jeSchedules/jeSchedulesSelector';
5
+ import { JEOneTimeAccrualMatchSuggestion } from '../../../entity/jeSchedules/jeSchedulesState';
5
6
  import { RootState } from '../../../rootStateTypes';
6
7
  import { ZeniDate } from '../../../zeniDayJS';
7
8
  import { ActualMatchingRow, ActualMatchingRowKind, ExpenseAutomationActualMatchingViewSelector } from '../selectorTypes/actualMatchingViewSelectorTypes';
@@ -11,7 +12,9 @@ export declare function parseActualMatchingMatchId(matchId: string): {
11
12
  } | null;
12
13
  export declare function isAutoReversedAccrual(accrual: JEOneTimeAccrual): boolean;
13
14
  export declare function isManuallyReversedAccrual(accrual: JEOneTimeAccrual): boolean;
14
- export declare function isPendingReviewAccrual(accrual: JEOneTimeAccrual): boolean;
15
+ export declare function isPendingReviewAccrual(accrual: JEOneTimeAccrual): accrual is JEOneTimeAccrual & {
16
+ matchSuggestion: JEOneTimeAccrualMatchSuggestion;
17
+ };
15
18
  export declare function isReversedMatchKind(kind: ActualMatchingRowKind): boolean;
16
19
  export declare function getClearedMatchedAmount(accrual: JEOneTimeAccrual): number | undefined;
17
20
  export declare function getActualMatchingAmount(row: ActualMatchingRow): number;
@@ -89,7 +89,7 @@ function getActualMatchingAmount(row) {
89
89
  }
90
90
  function getActualMatchingReversalDate(accrual) {
91
91
  if (isPendingReviewAccrual(accrual)) {
92
- return accrual.matchSuggestion?.matchedTransactionDate;
92
+ return accrual.matchSuggestion.matchedTransactionDate;
93
93
  }
94
94
  return accrual.cleared?.matchedTransactionDate;
95
95
  }
@@ -194,7 +194,7 @@ function sumRowAmounts(rows) {
194
194
  function getExpenseAutomationActualMatchingMatchView(state, matchId) {
195
195
  const view = state.expenseAutomationActualMatchingViewState;
196
196
  return {
197
- match: (0, actualMatchingSelector_1.getActualMatchingMatchById)(matchId, state.actualMatchingState),
197
+ match: (0, actualMatchingSelector_1.getActualMatchingMatchById)(state.actualMatchingState, matchId),
198
198
  detailFetchState: view.detailFetchStateByMatchId[matchId] ?? NOT_STARTED,
199
199
  refreshStatus: view.detailRefreshStatusByMatchId[matchId] ?? NOT_STARTED,
200
200
  undoReversalStatus: view.undoReversalStatus ?? NOT_STARTED,
@@ -204,13 +204,11 @@ function getExpenseAutomationActualMatchingView(state) {
204
204
  const { expenseAutomationActualMatchingViewState, expenseAutomationViewState } = state;
205
205
  const { matchIdsByPeriod, fetchState, error, refreshStatus, uiState, matchModal, undoReversalStatus, } = expenseAutomationActualMatchingViewState;
206
206
  const currentTenant = (0, tenantSelector_1.getCurrentTenant)(state);
207
- const selectedPeriod = expenseAutomationViewState.selectedPeriodByTenantId[currentTenant.tenantId];
207
+ const selectedPeriod = expenseAutomationViewState.selectedPeriodByTenantId[currentTenant?.tenantId ?? ''];
208
208
  const monthYearPeriodId = selectedPeriod != null ? (0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod) : undefined;
209
- const matchIds = monthYearPeriodId != null
210
- ? matchIdsByPeriod[monthYearPeriodId]
211
- : undefined;
209
+ const matchIds = monthYearPeriodId != null ? matchIdsByPeriod[monthYearPeriodId] : undefined;
212
210
  const rows = (matchIds ?? [])
213
- .map((matchId) => (0, actualMatchingSelector_1.getActualMatchingMatchById)(matchId, state.actualMatchingState))
211
+ .map((matchId) => (0, actualMatchingSelector_1.getActualMatchingMatchById)(state.actualMatchingState, matchId))
214
212
  .filter((match) => match != null)
215
213
  .filter((match) => match.members.length > 0)
216
214
  .map(toActualMatchingRow)
@@ -245,7 +243,7 @@ function getExpenseAutomationActualMatchingView(state) {
245
243
  .map((key) => (0, jeSchedulesSelector_1.getJEOneTimeAccrualByKey)(key, state.jeSchedulesState))
246
244
  .filter((accrual) => accrual != null);
247
245
  const openedMatch = matchModal.openedFromMatchId != null
248
- ? (0, actualMatchingSelector_1.getActualMatchingMatchById)(matchModal.openedFromMatchId, state.actualMatchingState)
246
+ ? (0, actualMatchingSelector_1.getActualMatchingMatchById)(state.actualMatchingState, matchModal.openedFromMatchId)
249
247
  : undefined;
250
248
  const pinnedAccruals = (openedMatch?.members ?? []).map(toMatchModalAccrual);
251
249
  const firstSuggestion = openedMatch?.members[0]?.matchSuggestion;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "5.2.22-betaMM1",
3
+ "version": "5.2.22-betaMM3",
4
4
  "description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/esm/index.js",