@zeniai/client-epic-state 5.1.67 → 5.1.68
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/epic.d.ts +4 -3
- package/lib/epic.js +4 -3
- package/lib/esm/epic.js +4 -3
- package/lib/esm/index.js +2 -2
- package/lib/esm/view/invoicing/createInvoice/createInvoiceReducer.js +15 -1
- package/lib/esm/view/invoicing/createInvoice/createInvoiceSelector.js +5 -1
- package/lib/esm/view/invoicing/createInvoice/epics/fetchCreateInvoiceFormPageEpic.js +50 -0
- package/lib/esm/view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewPayload.js +0 -1
- package/lib/esm/view/spendManagement/billPay/billDetailView/billDetailViewSelector.js +4 -4
- package/lib/esm/view/spendManagement/billPay/billList/billListSelector.js +1 -1
- package/lib/esm/view/spendManagement/helpers.js +1 -1
- package/lib/esm/view/spendManagement/reimbursement/remiDetailView/remiDetailViewSelector.js +4 -4
- package/lib/esm/view/spendManagement/reimbursement/remiListView/remiListSelector.js +2 -2
- package/lib/index.d.ts +2 -2
- package/lib/index.js +12 -11
- package/lib/view/invoicing/createInvoice/createInvoiceReducer.d.ts +5 -1
- package/lib/view/invoicing/createInvoice/createInvoiceReducer.js +16 -2
- package/lib/view/invoicing/createInvoice/createInvoiceSelector.d.ts +1 -0
- package/lib/view/invoicing/createInvoice/createInvoiceSelector.js +5 -1
- package/lib/view/invoicing/createInvoice/epics/fetchCreateInvoiceFormPageEpic.d.ts +15 -0
- package/lib/view/invoicing/createInvoice/epics/fetchCreateInvoiceFormPageEpic.js +54 -0
- package/lib/view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewPayload.js +0 -1
- package/lib/view/spendManagement/billPay/billDetailView/billDetailViewSelector.d.ts +1 -0
- package/lib/view/spendManagement/billPay/billDetailView/billDetailViewSelector.js +4 -4
- package/lib/view/spendManagement/billPay/billList/billListSelector.js +1 -1
- package/lib/view/spendManagement/helpers.js +1 -1
- package/lib/view/spendManagement/reimbursement/remiDetailView/remiDetailViewSelector.js +4 -4
- package/lib/view/spendManagement/reimbursement/remiListView/remiListSelector.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { from } from 'rxjs';
|
|
2
|
+
import { filter, mergeMap } from 'rxjs/operators';
|
|
3
|
+
import { fetchInvoicingCatalogPlanList, fetchInvoicingCatalogProductList, } from '../../invoicingCatalogListView/invoicingCatalogListViewReducer';
|
|
4
|
+
import { fetchInvoicingCustomerList } from '../../invoicingCustomerListView/invoicingCustomerListViewReducer';
|
|
5
|
+
import { fetchInvoicingSettings } from '../../settingsView/settingsViewReducer';
|
|
6
|
+
import { fetchCreateInvoiceFormPage } from '../createInvoiceReducer';
|
|
7
|
+
/**
|
|
8
|
+
* Fetch unless the resource is already loaded or in flight — or always when the
|
|
9
|
+
* caller forces a refresh via `cacheOverride` (false on a plain page open, true
|
|
10
|
+
* to force a reload).
|
|
11
|
+
*/
|
|
12
|
+
const shouldFetch = (fetchStateAndError, cacheOverride) => cacheOverride ||
|
|
13
|
+
(fetchStateAndError.fetchState !== 'Completed' &&
|
|
14
|
+
fetchStateAndError.fetchState !== 'In-Progress');
|
|
15
|
+
/**
|
|
16
|
+
* Orchestrates the create-invoice form's option sources: on
|
|
17
|
+
* `fetchCreateInvoiceFormPage`, fans out to the customer, catalog plan, catalog
|
|
18
|
+
* product and settings fetches, skipping any already cached unless
|
|
19
|
+
* `cacheOverride` is set.
|
|
20
|
+
*/
|
|
21
|
+
export const fetchCreateInvoiceFormPageEpic = (actions$, state$) => actions$.pipe(filter(fetchCreateInvoiceFormPage.match), mergeMap((action) => {
|
|
22
|
+
const { cacheOverride } = action.payload;
|
|
23
|
+
const state = state$.value;
|
|
24
|
+
const customerState = state.invoicingCustomerListViewState;
|
|
25
|
+
const catalogState = state.invoicingCatalogListViewState;
|
|
26
|
+
const settingsState = state.invoicingSettingsViewState;
|
|
27
|
+
const pageActions = [];
|
|
28
|
+
if (shouldFetch({ fetchState: customerState.fetchState, error: customerState.error }, cacheOverride)) {
|
|
29
|
+
pageActions.push(fetchInvoicingCustomerList({
|
|
30
|
+
filters: {},
|
|
31
|
+
keepExistingListItems: false,
|
|
32
|
+
}));
|
|
33
|
+
}
|
|
34
|
+
if (shouldFetch({ fetchState: catalogState.fetchState, error: catalogState.error }, cacheOverride)) {
|
|
35
|
+
pageActions.push(fetchInvoicingCatalogPlanList({
|
|
36
|
+
filters: { type: 'plan' },
|
|
37
|
+
keepExistingListItems: false,
|
|
38
|
+
}));
|
|
39
|
+
}
|
|
40
|
+
if (shouldFetch(catalogState.productFetchState, cacheOverride)) {
|
|
41
|
+
pageActions.push(fetchInvoicingCatalogProductList({
|
|
42
|
+
filters: { type: 'addon|charge' },
|
|
43
|
+
keepExistingListItems: false,
|
|
44
|
+
}));
|
|
45
|
+
}
|
|
46
|
+
if (shouldFetch({ fetchState: settingsState.fetchState, error: settingsState.error }, cacheOverride)) {
|
|
47
|
+
pageActions.push(fetchInvoicingSettings());
|
|
48
|
+
}
|
|
49
|
+
return from(pageActions);
|
|
50
|
+
}));
|
package/lib/esm/view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewPayload.js
CHANGED
|
@@ -9,7 +9,6 @@ export const localDataToSaveInvoicingCouponPayload = (localData, isCreate) => {
|
|
|
9
9
|
discount_type: localData.discountType,
|
|
10
10
|
duration_type: localData.durationType,
|
|
11
11
|
name: localData.name.trim(),
|
|
12
|
-
status: 'active',
|
|
13
12
|
};
|
|
14
13
|
if (isCreate) {
|
|
15
14
|
data.id = localData.couponId.trim();
|
|
@@ -308,7 +308,7 @@ export const checkApproveRejectBtnShow = (billActivities, isUserAdmin, signedInU
|
|
|
308
308
|
(actorActivity.subType === 'manager' ||
|
|
309
309
|
actorActivity.subType === 'vendor_owner') &&
|
|
310
310
|
actorActivity.userId === null &&
|
|
311
|
-
isAdminFallbackApprover &&
|
|
311
|
+
isAdminFallbackApprover === true &&
|
|
312
312
|
isUserAdmin &&
|
|
313
313
|
signedInUser?.userId != null &&
|
|
314
314
|
signedInUser.userId !== sodExcludedApproverUserId) {
|
|
@@ -322,7 +322,7 @@ export const checkApproveRejectBtnShow = (billActivities, isUserAdmin, signedInU
|
|
|
322
322
|
isUserAdmin &&
|
|
323
323
|
signedInUser?.userId != null &&
|
|
324
324
|
signedInUser.userId !== sodExcludedApproverUserId &&
|
|
325
|
-
pendingStep.displayPendingApproverAsAdmin) {
|
|
325
|
+
pendingStep.displayPendingApproverAsAdmin === true) {
|
|
326
326
|
isApprovalorRejectBtnVisible = true;
|
|
327
327
|
isMarkAsPaidBtnVisible = isLastApprovalStep;
|
|
328
328
|
}
|
|
@@ -357,7 +357,7 @@ export const checkApproveRejectBtnShow = (billActivities, isUserAdmin, signedInU
|
|
|
357
357
|
(actorActivity.subType === 'manager' ||
|
|
358
358
|
actorActivity.subType === 'vendor_owner') &&
|
|
359
359
|
actorActivity.userId === null &&
|
|
360
|
-
isAdminFallbackApprover &&
|
|
360
|
+
isAdminFallbackApprover === true &&
|
|
361
361
|
isUserAdmin &&
|
|
362
362
|
signedInUser?.userId != null &&
|
|
363
363
|
signedInUser.userId !== sodExcludedApproverUserId) {
|
|
@@ -371,7 +371,7 @@ export const checkApproveRejectBtnShow = (billActivities, isUserAdmin, signedInU
|
|
|
371
371
|
isUserAdmin &&
|
|
372
372
|
signedInUser?.userId != null &&
|
|
373
373
|
signedInUser.userId !== sodExcludedApproverUserId &&
|
|
374
|
-
stepWithStatus.displayPendingApproverAsAdmin) {
|
|
374
|
+
stepWithStatus.displayPendingApproverAsAdmin === true) {
|
|
375
375
|
isApprovalorRejectBtnVisible = true;
|
|
376
376
|
isMarkAsPaidBtnVisible = true;
|
|
377
377
|
}
|
|
@@ -319,7 +319,7 @@ export const getApproversOrRejectors = (billTransaction, entityApprovalStatusSta
|
|
|
319
319
|
requireApprovalInfo = [stepsApprovalStatus[currentPendingStepIndex]];
|
|
320
320
|
}
|
|
321
321
|
requireApprovalInfo.forEach((approvalStep) => {
|
|
322
|
-
if (approvers.displayPendingApproverAsAdmin) {
|
|
322
|
+
if (approvers.displayPendingApproverAsAdmin === true) {
|
|
323
323
|
return;
|
|
324
324
|
}
|
|
325
325
|
const pendingActivities = approvalStep.actorsActivity.filter((activity) => activity.activity === 'pending');
|
|
@@ -12,7 +12,7 @@ export const isSodExcludedViewerBlocked = (sodExcludedApproverUserId, signedInUs
|
|
|
12
12
|
signedInUserId === sodExcludedApproverUserId &&
|
|
13
13
|
isUserActorOnApprovalStep(sodExcludedApproverUserId, stepActorsActivity);
|
|
14
14
|
export const isSodAdminFallbackEligibleForStep = (sodExcludedApproverUserId, isAdminFallbackApprover, stepActorsActivity = []) => {
|
|
15
|
-
if (sodExcludedApproverUserId == null ||
|
|
15
|
+
if (sodExcludedApproverUserId == null || isAdminFallbackApprover !== true) {
|
|
16
16
|
return false;
|
|
17
17
|
}
|
|
18
18
|
const pendingResolvedApprovers = stepActorsActivity.filter((activity) => activity.activity === 'pending' && getUserActorId(activity) != null);
|
|
@@ -239,7 +239,7 @@ export const checkApproveRejectBtnShow = (remiActivities, isUserAdmin, signedInU
|
|
|
239
239
|
actorActivity.subType === 'vendor_owner' ||
|
|
240
240
|
actorActivity.subType === 'manager_of_manager') &&
|
|
241
241
|
actorActivity.userId === null &&
|
|
242
|
-
isAdminFallbackApprover &&
|
|
242
|
+
isAdminFallbackApprover === true &&
|
|
243
243
|
isUserAdmin &&
|
|
244
244
|
signedInUser?.userId != null &&
|
|
245
245
|
signedInUser.userId !== sodExcludedApproverUserId) {
|
|
@@ -250,7 +250,7 @@ export const checkApproveRejectBtnShow = (remiActivities, isUserAdmin, signedInU
|
|
|
250
250
|
isUserAdmin &&
|
|
251
251
|
signedInUser?.userId != null &&
|
|
252
252
|
signedInUser.userId !== sodExcludedApproverUserId &&
|
|
253
|
-
pendingStep.displayPendingApproverAsAdmin) {
|
|
253
|
+
pendingStep.displayPendingApproverAsAdmin === true) {
|
|
254
254
|
isApprovalorRejectBtnVisible = true;
|
|
255
255
|
}
|
|
256
256
|
}
|
|
@@ -285,7 +285,7 @@ export const checkApproveRejectBtnShow = (remiActivities, isUserAdmin, signedInU
|
|
|
285
285
|
actorActivity.subType === 'vendor_owner' ||
|
|
286
286
|
actorActivity.subType === 'manager_of_manager') &&
|
|
287
287
|
actorActivity.userId === null &&
|
|
288
|
-
isAdminFallbackApprover &&
|
|
288
|
+
isAdminFallbackApprover === true &&
|
|
289
289
|
isUserAdmin &&
|
|
290
290
|
signedInUser?.userId != null &&
|
|
291
291
|
signedInUser.userId !== sodExcludedApproverUserId) {
|
|
@@ -296,7 +296,7 @@ export const checkApproveRejectBtnShow = (remiActivities, isUserAdmin, signedInU
|
|
|
296
296
|
isUserAdmin &&
|
|
297
297
|
signedInUser?.userId != null &&
|
|
298
298
|
signedInUser.userId !== sodExcludedApproverUserId &&
|
|
299
|
-
stepWithStatus.displayPendingApproverAsAdmin) {
|
|
299
|
+
stepWithStatus.displayPendingApproverAsAdmin === true) {
|
|
300
300
|
isApprovalorRejectBtnVisible = true;
|
|
301
301
|
}
|
|
302
302
|
}
|
|
@@ -7,7 +7,7 @@ import { getCurrentTenant } from '../../../../entity/tenant/tenantSelector';
|
|
|
7
7
|
import { getUserByUserId, getUsersByUserIds, } from '../../../../entity/user/userSelector';
|
|
8
8
|
import { hasAdminLevelAccess, hasReimbursementUserAccess, } from '../../../../entity/userRole/userRoleType';
|
|
9
9
|
import { dateNow } from '../../../../zeniDayJS';
|
|
10
|
-
import { isBulkProcessing, isSodAdminFallbackEligibleForStep } from '../../helpers';
|
|
10
|
+
import { isBulkProcessing, isSodAdminFallbackEligibleForStep, } from '../../helpers';
|
|
11
11
|
import { getReimbursementConfigBotEmail } from '../../reimbursement/reimbursementConfig/reimbursementConfigSelector';
|
|
12
12
|
import { applyAdvancedFiltersOnList, isRemiListDownloadable, } from '../../spendManagementFilterHelpers';
|
|
13
13
|
import { ALL_REMI_TABS, getRemiListKey, } from './remiListState';
|
|
@@ -238,7 +238,7 @@ export const getApproversOrRejectors = (reimbursement, entityApprovalStatusState
|
|
|
238
238
|
requireApprovalInfo = [stepsApprovalStatus[currentPendingStepIndex]];
|
|
239
239
|
}
|
|
240
240
|
requireApprovalInfo.forEach((approvalStep) => {
|
|
241
|
-
if (approvers.displayPendingApproverAsAdmin) {
|
|
241
|
+
if (approvers.displayPendingApproverAsAdmin === true) {
|
|
242
242
|
return;
|
|
243
243
|
}
|
|
244
244
|
const pendingActivities = approvalStep.actorsActivity.filter((activity) => activity.activity === 'pending');
|
package/lib/index.d.ts
CHANGED
|
@@ -250,7 +250,7 @@ import { AuditSummaryData, CompanyMonthEndReportData, CompanyMonthReportTemplate
|
|
|
250
250
|
import { fetchCockpitContext, fetchCompanyTaskManagerView, fetchTaskManagerMetrics, updateCompanyTaskManagerViewFilters } from './view/companyTaskManagerView/companyTaskManagerViewReducer';
|
|
251
251
|
import { CompanyTaskManagerSelectorView, TaskWithCompanyDetail, getCompanyTaskManagerView } from './view/companyTaskManagerView/companyTaskManagerViewSelector';
|
|
252
252
|
import { CompanyTaskManagerViewUIState, TaskManagerMetrics } from './view/companyTaskManagerView/companyTaskManagerViewState';
|
|
253
|
-
import { clearCompanyView, companyManagementSaveUpdates, companyPassportClearDataInLocalStore, companyPassportSaveDataInLocalStore, deleteCompanyOfficerInLocalStore, dismissCapitalizationOnboarding, fetchAllCockpitViews, fetchCompanyManagementView, fetchCompanyPassportView, fetchCompanyPortfolioView, fetchManagementView, fetchOnboardingView, fetchParentSubsidiaryManagementView, fetchPortfolioView, fetchSubscriptionView, fetchZeniUsers, saveCompanyPassportDetails, saveIndustryAndIncDateInCompanyPassportLocalStore, updateAccountingClassesEnabled,
|
|
253
|
+
import { clearCompanyView, clearQboProjectsReconnectRequest, companyManagementSaveUpdates, companyPassportClearDataInLocalStore, companyPassportSaveDataInLocalStore, deleteCompanyOfficerInLocalStore, disableAccountingProjects, dismissCapitalizationOnboarding, enableAccountingProjects, fetchAllCockpitViews, fetchCompanyManagementView, fetchCompanyPassportView, fetchCompanyPortfolioView, fetchManagementView, fetchOnboardingView, fetchParentSubsidiaryManagementView, fetchPortfolioView, fetchSubscriptionView, fetchZeniUsers, resumeEnableAccountingProjects, saveCompanyPassportDetails, saveIndustryAndIncDateInCompanyPassportLocalStore, updateAccountingClassesEnabled, updateCapitalizationAccountThreshold, updateCompanyDownloadState, updateCompanyManagementUIState, updateCompanyPassportLocalStoreData, updateCompanyPortfolioUIState } from './view/companyView/companyViewReducer';
|
|
254
254
|
import { FilterCategoryValueType, canSendMonthEndEmailReport, shouldEnableCalendarPickerForLastReportSent } from './view/companyView/helpers/cockpitHelpers';
|
|
255
255
|
import { getParentSubsidiaryManagementView } from './view/companyView/parentSubsidiaryView/parentSubsidiaryViewSelector';
|
|
256
256
|
import { CompanyManagementView, CompanyWithUpdateStatusView, getAddonListZeniSku, getCompanyManagementView, getPlanListZeniSku } from './view/companyView/selector/companyManagementViewSelector';
|
|
@@ -1022,7 +1022,7 @@ export type { InvoiceListView } from './view/invoicing/invoiceList/invoiceListSe
|
|
|
1022
1022
|
export { clearAllInvoiceDetail, fetchInvoiceDetail, } from './view/invoicing/invoiceDetail/invoiceDetailReducer';
|
|
1023
1023
|
export { getInvoiceDetail } from './view/invoicing/invoiceDetail/invoiceDetailSelector';
|
|
1024
1024
|
export type { InvoiceDetailView } from './view/invoicing/invoiceDetail/invoiceDetailSelector';
|
|
1025
|
-
export { createInvoice, resetCreateInvoice, updateInvoicingCreateInvoiceFormDraft, } from './view/invoicing/createInvoice/createInvoiceReducer';
|
|
1025
|
+
export { createInvoice, fetchCreateInvoiceFormPage, resetCreateInvoice, updateInvoicingCreateInvoiceFormDraft, } from './view/invoicing/createInvoice/createInvoiceReducer';
|
|
1026
1026
|
export type { CreateInvoiceLineItemRequest, CreateInvoiceRequest, } from './view/invoicing/createInvoice/createInvoicePayload';
|
|
1027
1027
|
export type { InvoicingCreateInvoiceFormLineItem, InvoicingCreateInvoiceFormLocalData, } from './view/invoicing/createInvoice/createInvoiceState';
|
|
1028
1028
|
export { blankInvoicingCreateInvoiceLineItem, createInvoiceFormLocalDataToRequest, initialInvoicingCreateInvoiceFormLocalData, } from './view/invoicing/createInvoice/createInvoiceFormConfig';
|
package/lib/index.js
CHANGED
|
@@ -77,13 +77,13 @@ exports.getCardPolicySuggestedAllowMerchants = exports.getCardPolicySuggestedAll
|
|
|
77
77
|
exports.CARD_POLICY_LIMIT_ROW_ID_TRANSACTION = exports.CARD_POLICY_LIMIT_ROW_ID_REQUIRE_RECEIPT = exports.getManualCardPolicyFormDraft = exports.getLastCreatedCardPolicyTemplateIds = exports.getLastCreatedCardPolicyTemplateId = exports.getLastCreateCardPolicyTemplateErrors = exports.getLastCreateCardPolicySourceChatSessionId = exports.getCreateCardPolicyTemplateRequestState = exports.getAiCardPolicyFormDraft = exports.updateManualCardPolicyFormDraft = exports.updateCreateCardPolicyTemplateRequestState = exports.updateAiCardPolicyFormDraftFromUploadPlan = exports.updateAiCardPolicyFormDraft = exports.seedManualCardPolicyFormDraft = exports.seedAiCardPolicyFormDraft = exports.createCardPolicyTemplates = exports.clearManualCardPolicyFormDraft = exports.clearCreateCardPolicy = exports.clearAiCardPolicyFormDraft = exports.applyExtractedPolicyToManualCardPolicyDraft = exports.applyExtractedPolicyToAiCardPolicyDraft = exports.toUpdateCardPolicyTemplateRequestBody = exports.toExtractedCardPolicyRules = exports.toCreateCardPolicyTemplatesRequestBody = exports.toCreateCardPolicyTemplateRequestBody = exports.toCardPolicyVendorSearchOption = exports.toCardPolicyTemplateList = exports.toCardPolicyTemplate = exports.toCardPolicyStats = exports.toCardPolicyEditFormDraft = exports.toBulkCreateCardPolicyTemplateError = exports.toCardPolicyTemplateStatus = exports.toCardPolicyTemplateMode = exports.ALL_CARD_POLICY_TEMPLATE_STATUSES = exports.ALL_CARD_POLICY_TEMPLATE_MODES = exports.getUploadedPolicyDocumentFileName = exports.getPolicyRecommendationFromUploadFetchState = exports.getPolicyRecommendationFromUploadError = exports.getPolicyRecommendationFromUploadChatSessionId = exports.getPolicyRecommendationFromUploadAnswerId = exports.getPolicyDocumentExtractionFetchState = exports.getPolicyDocumentExtractionError = exports.getExtractedCardPolicyRules = exports.getCardPolicyVendorSearchString = exports.getCardPolicyVendorSearchOptions = exports.getCardPolicyVendorSearchFetchState = exports.getCardPolicyTemplatesByIds = exports.getCardPolicyTemplateById = exports.getCardPolicySuggestedBlockMerchants = exports.getCardPolicySuggestedBlockCategories = void 0;
|
|
78
78
|
exports.createAutoTransferRule = exports.fetchAutoTransferRules = exports.getTreasuryTaxLetters = exports.fetchTreasuryTaxLetterList = exports.getTreasuryStatements = exports.fetchTreasuryStatementList = exports.getTreasuryTransferMoney = exports.clearTreasuryTransferMoney = exports.updateTreasuryTransferMoneyLocalData = exports.executeTreasuryTransferMoney = exports.getTreasuryDetail = exports.updateTreasuryTransactionListUIState = exports.fetchTreasuryTransactionList = exports.fetchTreasuryOverviewDetail = exports.getUpdateCardPolicyFetchState = exports.getCardPolicyFormDraft = exports.getCardPolicyDetailView = exports.getCardPolicyDetailFetchState = exports.updateCardPolicyFormDraft = exports.updateCardPolicyFetchStatus = exports.updateCardPolicyDetailFetchStatus = exports.updateCardPolicy = exports.fetchCardPolicyDetail = exports.clearCardPolicyDetail = exports.getCardPolicyTemplateIds = exports.getCardPolicyListView = exports.getCardPolicyListFetchState = exports.getArchiveCardPolicyFetchState = exports.updateCardPolicyListFetchStatus = exports.updateArchiveCardPolicyFetchStatus = exports.prependCardPolicyTemplateIds = exports.fetchCardPolicyList = exports.clearCardPolicyList = exports.archiveCardPolicy = exports.toManualCardPolicyTemplateRequestFromDraft = exports.toBulkCardPolicyTemplateRequestsFromDraft = exports.toCardPolicyTemplateRequestFromDraft = exports.applyAiCardPolicyFormDraftUpdate = exports.deriveAiPolicyReviewRowsFromInputs = exports.buildManualCardPolicyFormDraftSeed = exports.buildUploadReviewRows = exports.buildEmptyLimitRows = exports.buildAiCardPolicyFormDraftSeed = exports.toVendorChipFieldValue = exports.toMccCategoryChipFieldValue = exports.buildVendorChipId = exports.buildMccCategoryChipId = exports.VENDOR_CHIP_ID_PREFIX = exports.MCC_CHIP_ID_PREFIX = exports.toMccCategoryLike = void 0;
|
|
79
79
|
exports.clearAllInvoiceDetail = exports.getInvoiceListView = exports.INVOICING_INVOICE_TABS = exports.ALL_INVOICING_INVOICE_TAB_IDS = exports.updateInvoiceListFilters = exports.fetchInvoiceListPage = exports.fetchInvoiceList = exports.fetchInvoiceKPIs = exports.fetchInvoiceCounts = exports.clearInvoiceList = exports.getInvoicesByIds = exports.getInvoiceById = exports.updateInvoices = exports.removeInvoice = exports.clearAllInvoices = exports.mapAuditLogEntry = exports.toAuditLogEntityRouteOption = exports.isInvoicingEntityLinkable = exports.buildInvoicingEntityPath = exports.toInvoicingDiscountLifecycleActionOption = exports.toInvoicingDiscountLifecycleAction = exports.toInvoicingCatalogProductLifecycleActionOption = exports.toInvoicingCatalogItemLifecycleActionOption = exports.toInvoicingCatalogProductLifecycleAction = exports.toInvoicingCatalogItemLifecycleAction = exports.toInvoicingSubscriptionLifecycleActionOption = exports.toInvoicingSubscriptionLifecycleAction = exports.toInvoicingDunningAction = exports.INVOICING_DISCOUNT_LIFECYCLE_ACTIONS = exports.INVOICING_CATALOG_PRODUCT_LIFECYCLE_ACTIONS = exports.INVOICING_CATALOG_ITEM_LIFECYCLE_ACTIONS = exports.INVOICING_SUBSCRIPTION_LIFECYCLE_ACTIONS = exports.INVOICING_DUNNING_ACTIONS = exports.toKycProvidedDocumentTypeFromAllowed = exports.toKycProvidedDocumentType = exports.DEFAULT_SESSION_CONFIG = exports.SessionManager = exports.getTransactionActivityLogView = exports.fetchTransactionActivityLog = exports.BULK_UPLOAD_BAR_COMPLETE_HOLD_MS = exports.BULK_UPLOAD_AUTOMATCHING_TIMEOUT_MS = exports.getAutoTransferRuleHistory = exports.getAutoTransferRuleById = exports.getAutoTransferRules = exports.clearRuleUpdateLocalData = exports.updateRuleLocalData = exports.fetchAutoTransferReviewDetail = exports.fetchAutoTransferRuleHistory = exports.deleteAutoTransferRule = exports.updateAutoTransferRule = void 0;
|
|
80
|
-
exports.
|
|
81
|
-
exports.
|
|
82
|
-
exports.
|
|
83
|
-
exports.
|
|
84
|
-
exports.
|
|
85
|
-
exports.
|
|
86
|
-
exports.getInvoicingConfigView = exports.updateInvoicingConfig = exports.resetInvoicingConfigActionStates = exports.fetchInvoicingConfig = exports.enableInvoicing = exports.clearInvoicingConfig = exports.acceptInvoicingTerms = exports.isStripeConnectedFromSettings = exports.initialInvoicingBrandingFormLocalData = exports.entityToInvoicingBrandingFormLocalData = exports.INVOICING_BUSINESS_ADDRESS_TYPE = exports.getInvoicingSettingsView = exports.getInvoicingSettingsFetchState = exports.getInvoicingSettings = exports.getInvoicingBrandingFormView = void 0;
|
|
80
|
+
exports.getRecordPaymentFormView = exports.getCreateInvoiceFormView = exports.getInvoicingAuditView = exports.fetchInvoicingAuditLog = exports.clearInvoicingAuditView = exports.getInvoicingOverview = exports.buildPeriodOptions = exports.fetchInvoicingOverview = exports.clearInvoicingOverview = exports.initialRecordPaymentFormLocalData = exports.INVOICING_PAYMENT_METHOD_VALUES = exports.INVOICING_PAYMENT_GATEWAY_VALUES = exports.localDataToRecordPaymentPayload = exports.localDataToInvoiceRecordPaymentBody = exports.initializeRecordPaymentDraftFromInvoice = exports.getCreateCreditNoteView = exports.getCreateCreditNoteFormView = exports.initialCreateCreditNoteFormLocalData = exports.localDataToCreateCreditNotePayload = exports.updateCreateCreditNoteFormDraft = exports.submitCreateCreditNote = exports.resetCreateCreditNote = exports.createCreditNoteSuccess = exports.createCreditNoteFailure = exports.getIssueCreditNoteView = exports.getIssueCreditNoteFormView = exports.initialIssueCreditNoteFormLocalData = exports.INVOICING_CREDIT_NOTE_REASON_CODES = exports.localDataToIssueCreditNotePayload = exports.initializeIssueCreditNoteDraftFromInvoice = exports.computeIssueCreditNoteTotal = exports.updateIssueCreditNoteFormDraft = exports.submitIssueCreditNote = exports.resetIssueCreditNote = exports.issueCreditNoteSuccess = exports.issueCreditNoteFailure = exports.initializeIssueCreditNoteDraft = exports.updateRecordPaymentFormDraft = exports.submitRecordPayment = exports.initializeRecordPaymentDraft = exports.resetRecordPayment = exports.initialInvoicingCreateInvoiceFormLocalData = exports.createInvoiceFormLocalDataToRequest = exports.blankInvoicingCreateInvoiceLineItem = exports.updateInvoicingCreateInvoiceFormDraft = exports.resetCreateInvoice = exports.fetchCreateInvoiceFormPage = exports.createInvoice = exports.getInvoiceDetail = exports.fetchInvoiceDetail = void 0;
|
|
81
|
+
exports.getEditInvoicingCatalogItemDetailViewState = exports.isTieredCatalogPricingModel = exports.initialInvoicingCatalogItemFormLocalData = exports.entityToInvoicingCatalogItemFormLocalData = exports.blankInvoicingCatalogTier = exports.blankInvoicingCatalogSubFamily = exports.INVOICING_CATALOG_TYPE_VALUES = exports.INVOICING_CATALOG_TRIAL_UNIT_VALUES = exports.INVOICING_CATALOG_TRIAL_END_ACTION_VALUES = exports.INVOICING_CATALOG_TIER_TYPE_VALUES = exports.INVOICING_CATALOG_PRORATION_VALUES = exports.INVOICING_CATALOG_PRICING_MODEL_VALUES = exports.INVOICING_CATALOG_PERIOD_UNIT_VALUES = exports.INVOICING_CATALOG_APPLICABILITY_VALUES = exports.productToCreateSubFamilyFormValues = exports.planToCatalogDetailEditValues = exports.createSubFamilyFormToPayload = exports.catalogDetailEditValuesToSavePayload = exports.updateInvoicingCatalogItemFormDraft = exports.submitInvoicingCatalogItemForm = exports.saveInvoicingCatalogItem = exports.resetEditInvoicingCatalogItemDetailView = exports.createInvoicingCatalogSubFamily = exports.archiveInvoicingCatalogSubFamily = exports.getInvoicingSubscriptionFormView = exports.getEditInvoicingSubscriptionDetailViewState = exports.initialInvoicingSubscriptionFormLocalData = exports.entityToInvoicingSubscriptionFormLocalData = exports.INVOICING_SUBSCRIPTION_SHIPPING_ADDRESS_TYPE = exports.INVOICING_SUBSCRIPTION_BILLING_FREQUENCY_VALUES = exports.updateInvoicingSubscriptionFormDraft = exports.submitInvoicingSubscriptionForm = exports.resetEditInvoicingSubscriptionDetailView = exports.initializeInvoicingSubscriptionAddress = exports.fetchInvoicingSubscriptionFormPage = exports.getInvoicingCustomerFormView = exports.initialInvoicingCustomerFormLocalData = exports.entityToInvoicingCustomerFormLocalData = exports.INVOICING_TAXABILITY_VALUES = exports.INVOICING_NET_TERM_DAY_VALUES = exports.INVOICING_CUSTOMER_TYPE_VALUES = exports.INVOICING_CUSTOMER_BILLING_ADDRESS_TYPE = exports.updateInvoicingCustomerFormDraft = exports.submitInvoicingCustomerFormSuccess = exports.submitInvoicingCustomerFormFailure = exports.submitInvoicingCustomerForm = exports.resetEditInvoicingCustomerDetailView = exports.initializeInvoicingCustomerAddress = exports.getRecordPaymentView = exports.getRecordPaymentInvoiceOptions = void 0;
|
|
82
|
+
exports.updateInvoicingCustomers = exports.removeInvoicingCustomer = exports.clearAllInvoicingCustomers = exports.INVOICING_LIST_PAGE_SIZE = exports.getInvoicingDataImportActionState = exports.uploadInvoicingMigrationFiles = exports.startInvoicingMigration = exports.rollbackInvoicingMigration = exports.retryInvoicingMigration = exports.connectInvoicingChargebee = exports.clearAllInvoicingDataImportActions = exports.getInvoicingDataImportView = exports.setInvoicingActiveMigrationSessionId = exports.fetchInvoicingMigrationSessions = exports.fetchInvoicingMigrationSession = exports.fetchInvoicingMigrationDiagnostics = exports.fetchInvoicingDataImportStatus = exports.clearInvoicingDataImportView = exports.getInvoicingPaymentActionState = exports.runInvoicingPaymentAction = exports.clearInvoicingPaymentAction = exports.getInvoicingDunningActionState = exports.runInvoicingDunningAction = exports.clearInvoicingDunningAction = exports.getInvoicingSubscriptionActionState = exports.runInvoicingSubscriptionAction = exports.clearInvoicingSubscriptionAction = exports.getInvoicingDiscountActionState = exports.runInvoicingDiscountAction = exports.clearInvoicingDiscountAction = exports.getInvoicingCatalogActionState = exports.runInvoicingCatalogProductAction = exports.runInvoicingCatalogPlanAction = exports.clearInvoicingCatalogAction = exports.getInvoicingInvoiceActionState = exports.updateInvoicingInvoice = exports.runInvoicingInvoiceAction = exports.clearInvoicingInvoiceAction = exports.getInvoicingCouponFormView = exports.getEditInvoicingCouponDetailViewState = exports.initialInvoicingCouponFormLocalData = exports.entityToInvoicingCouponFormLocalData = exports.updateInvoicingCouponFormDraft = exports.submitInvoicingCouponForm = exports.saveInvoicingCoupon = exports.resetEditInvoicingCouponDetailView = exports.getSavedInvoicingCatalogItemKind = exports.getSavedInvoicingCatalogItemId = exports.getInvoicingCatalogItemFormView = exports.getInvoicingApplicableCatalogItemOptions = void 0;
|
|
83
|
+
exports.clearInvoicingTransactionListView = exports.updateInvoicingTransactions = exports.removeInvoicingTransaction = exports.clearAllInvoicingTransactions = exports.getInvoicingSubscriptionDetail = exports.getInvoicingSubscriptionById = exports.fetchInvoicingSubscriptionDetail = exports.clearInvoicingSubscriptionDetailView = exports.getInvoicingSubscriptionListView = exports.INVOICING_SUBSCRIPTION_TABS = exports.INVOICING_SUBSCRIPTION_COLUMNS = exports.ALL_INVOICING_SUBSCRIPTION_TAB_IDS = exports.ALL_INVOICING_SUBSCRIPTION_SORT_KEYS = exports.updateInvoicingSubscriptionFilters = exports.fetchInvoicingSubscriptionListPage = exports.fetchInvoicingSubscriptionList = exports.fetchInvoicingSubscriptionCounts = exports.clearInvoicingSubscriptionListView = exports.updateInvoicingSubscriptions = exports.removeInvoicingSubscription = exports.clearAllInvoicingSubscriptions = exports.resetPromotionalCreditAction = exports.submitAddPromotionalCredits = exports.getInvoicingSetupIntentFetchState = exports.getInvoicingSetupIntent = exports.getInvoicingSentPaymentLinkMagicUrl = exports.getInvoicingSentPaymentLinkEmail = exports.getInvoicingPlaidLinkTokenFetchState = exports.getInvoicingPlaidLinkToken = exports.getInvoicingPaymentMethodSaveState = exports.getInvoicingPaymentLinkSendState = exports.sendInvoicingPaymentLink = exports.saveInvoicingPaymentMethod = exports.resetInvoicingCustomerPaymentMethod = exports.fetchInvoicingPlaidLinkToken = exports.createInvoicingSetupIntent = exports.getInvoicingCustomerDetail = exports.fetchInvoicingCustomerDetailPage = exports.fetchInvoicingCustomerDetail = exports.clearInvoicingCustomerDetailView = exports.getInvoicingCustomerListView = exports.INVOICING_CUSTOMER_TABS = exports.INVOICING_CUSTOMER_COLUMNS = exports.ALL_INVOICING_CUSTOMER_TAB_IDS = exports.ALL_INVOICING_CUSTOMER_SORT_KEYS = exports.updateInvoicingCustomerFilters = exports.fetchInvoicingCustomerListPage = exports.fetchInvoicingCustomerList = exports.fetchInvoicingCustomerCounts = exports.clearInvoicingCustomerListView = void 0;
|
|
84
|
+
exports.clearInvoicingCouponDetailView = exports.getInvoicingCouponById = exports.getInvoicingCouponListView = exports.getInvoicingCouponListNextCursor = exports.getInvoicingCouponListItems = exports.getInvoicingCouponListHasMore = exports.getInvoicingCouponListFilters = exports.getInvoicingCouponListFetchState = exports.getInvoicingCouponCounts = exports.INVOICING_COUPON_TABS = exports.INVOICING_COUPON_COLUMNS = exports.ALL_INVOICING_COUPON_TAB_IDS = exports.ALL_INVOICING_COUPON_SORT_KEYS = exports.updateInvoicingCouponFilters = exports.fetchInvoicingCouponListPage = exports.fetchInvoicingCouponList = exports.fetchInvoicingCouponCounts = exports.clearInvoicingCouponView = exports.updateInvoicingCoupons = exports.removeInvoicingCoupon = exports.clearAllInvoicingCoupons = exports.getInvoicingCreditNoteDetail = exports.getInvoicingCreditNoteById = exports.fetchInvoicingCreditNoteDetail = exports.clearInvoicingCreditNoteDetailView = exports.getInvoicingCreditNoteListView = exports.INVOICING_CREDIT_NOTE_TABS = exports.INVOICING_CREDIT_NOTE_COLUMNS = exports.ALL_INVOICING_CREDIT_NOTE_TAB_IDS = exports.ALL_INVOICING_CREDIT_NOTE_SORT_KEYS = exports.updateInvoicingCreditNoteFilters = exports.fetchInvoicingCreditNoteListPage = exports.fetchInvoicingCreditNoteList = exports.fetchInvoicingCreditNoteCounts = exports.clearInvoicingCreditNoteListView = exports.updateInvoicingCreditNotes = exports.removeInvoicingCreditNote = exports.clearAllInvoicingCreditNotes = exports.getInvoicingTransactionDetail = exports.getInvoicingTransactionById = exports.fetchInvoicingTransactionDetail = exports.clearInvoicingTransactionDetailView = exports.getInvoicingTransactionListView = exports.INVOICING_TRANSACTION_TABS = exports.INVOICING_TRANSACTION_COLUMNS = exports.ALL_INVOICING_TRANSACTION_TAB_IDS = exports.ALL_INVOICING_TRANSACTION_SORT_KEYS = exports.updateInvoicingTransactionFilters = exports.fetchInvoicingTransactionListPage = exports.fetchInvoicingTransactionList = void 0;
|
|
85
|
+
exports.updateInvoicingBrandingFormDraft = exports.submitInvoicingBrandingForm = exports.saveInvoicingSettings = exports.resetSaveInvoicingSettings = exports.resetInvoicingBrandingFormDraft = exports.fetchInvoicingSettings = exports.disconnectInvoicingStripe = exports.connectInvoicingStripe = exports.clearInvoicingSettings = exports.getInvoicingProductById = exports.getInvoicingPlanById = exports.getInvoicingCatalogItemDetail = exports.fetchInvoicingCatalogItemDetail = exports.clearInvoicingCatalogItemDetailView = exports.getInvoicingCatalogListView = exports.INVOICING_PRODUCT_COLUMNS = exports.ALL_INVOICING_PRODUCT_SORT_KEYS = exports.updateInvoicingCatalogProductFilters = exports.updateInvoicingCatalogPlanFilters = exports.fetchInvoicingCatalogProductList = exports.fetchInvoicingCatalogPlanList = exports.fetchInvoicingCatalogListPage = exports.fetchInvoicingCatalogCounts = exports.clearInvoicingCatalogListView = exports.updateInvoicingProducts = exports.removeInvoicingProduct = exports.clearAllInvoicingProducts = exports.updateInvoicingPlans = exports.removeInvoicingPlan = exports.mergeInvoicingPlanSubFamily = exports.clearAllInvoicingPlans = exports.getInvoicingDunningCaseDetail = exports.getInvoicingDunningCaseById = exports.fetchInvoicingDunningCaseDetail = exports.clearInvoicingDunningCaseDetailView = exports.getInvoicingDunningCaseListView = exports.INVOICING_DUNNING_CASE_TABS = exports.INVOICING_DUNNING_CASE_COLUMNS = exports.ALL_INVOICING_DUNNING_CASE_TAB_IDS = exports.ALL_INVOICING_DUNNING_CASE_SORT_KEYS = exports.updateInvoicingDunningCaseFilters = exports.fetchInvoicingDunningCaseListPage = exports.fetchInvoicingDunningCaseList = exports.fetchInvoicingDunningCaseCounts = exports.clearInvoicingDunningCaseListView = exports.updateInvoicingDunningCases = exports.removeInvoicingDunningCase = exports.clearAllInvoicingDunningCases = exports.getInvoicingCouponDetail = exports.fetchInvoicingCouponDetail = void 0;
|
|
86
|
+
exports.getInvoicingConfigView = exports.updateInvoicingConfig = exports.resetInvoicingConfigActionStates = exports.fetchInvoicingConfig = exports.enableInvoicing = exports.clearInvoicingConfig = exports.acceptInvoicingTerms = exports.isStripeConnectedFromSettings = exports.initialInvoicingBrandingFormLocalData = exports.entityToInvoicingBrandingFormLocalData = exports.INVOICING_BUSINESS_ADDRESS_TYPE = exports.getInvoicingSettingsView = exports.getInvoicingSettingsFetchState = exports.getInvoicingSettings = exports.getInvoicingBrandingFormView = exports.updateInvoicingSettings = void 0;
|
|
87
87
|
const allowedValue_1 = require("./commonStateTypes/allowedValue");
|
|
88
88
|
Object.defineProperty(exports, "isAllowedValueWithCode", { enumerable: true, get: function () { return allowedValue_1.isAllowedValueWithCode; } });
|
|
89
89
|
Object.defineProperty(exports, "isAllowedValueWithID", { enumerable: true, get: function () { return allowedValue_1.isAllowedValueWithID; } });
|
|
@@ -703,11 +703,14 @@ const companyTaskManagerViewSelector_1 = require("./view/companyTaskManagerView/
|
|
|
703
703
|
Object.defineProperty(exports, "getCompanyTaskManagerView", { enumerable: true, get: function () { return companyTaskManagerViewSelector_1.getCompanyTaskManagerView; } });
|
|
704
704
|
const companyViewReducer_1 = require("./view/companyView/companyViewReducer");
|
|
705
705
|
Object.defineProperty(exports, "clearCompanyView", { enumerable: true, get: function () { return companyViewReducer_1.clearCompanyView; } });
|
|
706
|
+
Object.defineProperty(exports, "clearQboProjectsReconnectRequest", { enumerable: true, get: function () { return companyViewReducer_1.clearQboProjectsReconnectRequest; } });
|
|
706
707
|
Object.defineProperty(exports, "companyManagementSaveUpdates", { enumerable: true, get: function () { return companyViewReducer_1.companyManagementSaveUpdates; } });
|
|
707
708
|
Object.defineProperty(exports, "companyPassportClearDataInLocalStore", { enumerable: true, get: function () { return companyViewReducer_1.companyPassportClearDataInLocalStore; } });
|
|
708
709
|
Object.defineProperty(exports, "companyPassportSaveDataInLocalStore", { enumerable: true, get: function () { return companyViewReducer_1.companyPassportSaveDataInLocalStore; } });
|
|
709
710
|
Object.defineProperty(exports, "deleteCompanyOfficerInLocalStore", { enumerable: true, get: function () { return companyViewReducer_1.deleteCompanyOfficerInLocalStore; } });
|
|
711
|
+
Object.defineProperty(exports, "disableAccountingProjects", { enumerable: true, get: function () { return companyViewReducer_1.disableAccountingProjects; } });
|
|
710
712
|
Object.defineProperty(exports, "dismissCapitalizationOnboarding", { enumerable: true, get: function () { return companyViewReducer_1.dismissCapitalizationOnboarding; } });
|
|
713
|
+
Object.defineProperty(exports, "enableAccountingProjects", { enumerable: true, get: function () { return companyViewReducer_1.enableAccountingProjects; } });
|
|
711
714
|
Object.defineProperty(exports, "fetchAllCockpitViews", { enumerable: true, get: function () { return companyViewReducer_1.fetchAllCockpitViews; } });
|
|
712
715
|
Object.defineProperty(exports, "fetchCompanyManagementView", { enumerable: true, get: function () { return companyViewReducer_1.fetchCompanyManagementView; } });
|
|
713
716
|
Object.defineProperty(exports, "fetchCompanyPassportView", { enumerable: true, get: function () { return companyViewReducer_1.fetchCompanyPassportView; } });
|
|
@@ -718,13 +721,10 @@ Object.defineProperty(exports, "fetchParentSubsidiaryManagementView", { enumerab
|
|
|
718
721
|
Object.defineProperty(exports, "fetchPortfolioView", { enumerable: true, get: function () { return companyViewReducer_1.fetchPortfolioView; } });
|
|
719
722
|
Object.defineProperty(exports, "fetchSubscriptionView", { enumerable: true, get: function () { return companyViewReducer_1.fetchSubscriptionView; } });
|
|
720
723
|
Object.defineProperty(exports, "fetchZeniUsers", { enumerable: true, get: function () { return companyViewReducer_1.fetchZeniUsers; } });
|
|
724
|
+
Object.defineProperty(exports, "resumeEnableAccountingProjects", { enumerable: true, get: function () { return companyViewReducer_1.resumeEnableAccountingProjects; } });
|
|
721
725
|
Object.defineProperty(exports, "saveCompanyPassportDetails", { enumerable: true, get: function () { return companyViewReducer_1.saveCompanyPassportDetails; } });
|
|
722
726
|
Object.defineProperty(exports, "saveIndustryAndIncDateInCompanyPassportLocalStore", { enumerable: true, get: function () { return companyViewReducer_1.saveIndustryAndIncDateInCompanyPassportLocalStore; } });
|
|
723
727
|
Object.defineProperty(exports, "updateAccountingClassesEnabled", { enumerable: true, get: function () { return companyViewReducer_1.updateAccountingClassesEnabled; } });
|
|
724
|
-
Object.defineProperty(exports, "enableAccountingProjects", { enumerable: true, get: function () { return companyViewReducer_1.enableAccountingProjects; } });
|
|
725
|
-
Object.defineProperty(exports, "resumeEnableAccountingProjects", { enumerable: true, get: function () { return companyViewReducer_1.resumeEnableAccountingProjects; } });
|
|
726
|
-
Object.defineProperty(exports, "disableAccountingProjects", { enumerable: true, get: function () { return companyViewReducer_1.disableAccountingProjects; } });
|
|
727
|
-
Object.defineProperty(exports, "clearQboProjectsReconnectRequest", { enumerable: true, get: function () { return companyViewReducer_1.clearQboProjectsReconnectRequest; } });
|
|
728
728
|
Object.defineProperty(exports, "updateCapitalizationAccountThreshold", { enumerable: true, get: function () { return companyViewReducer_1.updateCapitalizationAccountThreshold; } });
|
|
729
729
|
Object.defineProperty(exports, "updateCompanyDownloadState", { enumerable: true, get: function () { return companyViewReducer_1.updateCompanyDownloadState; } });
|
|
730
730
|
Object.defineProperty(exports, "updateCompanyManagementUIState", { enumerable: true, get: function () { return companyViewReducer_1.updateCompanyManagementUIState; } });
|
|
@@ -2664,6 +2664,7 @@ var invoiceDetailSelector_1 = require("./view/invoicing/invoiceDetail/invoiceDet
|
|
|
2664
2664
|
Object.defineProperty(exports, "getInvoiceDetail", { enumerable: true, get: function () { return invoiceDetailSelector_1.getInvoiceDetail; } });
|
|
2665
2665
|
var createInvoiceReducer_1 = require("./view/invoicing/createInvoice/createInvoiceReducer");
|
|
2666
2666
|
Object.defineProperty(exports, "createInvoice", { enumerable: true, get: function () { return createInvoiceReducer_1.createInvoice; } });
|
|
2667
|
+
Object.defineProperty(exports, "fetchCreateInvoiceFormPage", { enumerable: true, get: function () { return createInvoiceReducer_1.fetchCreateInvoiceFormPage; } });
|
|
2667
2668
|
Object.defineProperty(exports, "resetCreateInvoice", { enumerable: true, get: function () { return createInvoiceReducer_1.resetCreateInvoice; } });
|
|
2668
2669
|
Object.defineProperty(exports, "updateInvoicingCreateInvoiceFormDraft", { enumerable: true, get: function () { return createInvoiceReducer_1.updateInvoicingCreateInvoiceFormDraft; } });
|
|
2669
2670
|
var createInvoiceFormConfig_1 = require("./view/invoicing/createInvoice/createInvoiceFormConfig");
|
|
@@ -5,6 +5,10 @@ import { CreateInvoiceState, InvoicingCreateInvoiceFormLocalData } from './creat
|
|
|
5
5
|
export declare const initialState: CreateInvoiceState;
|
|
6
6
|
export declare const createInvoice: import("@reduxjs/toolkit").ActionCreatorWithPayload<CreateInvoiceRequest, "invoicingCreateInvoice/createInvoice">, createInvoiceSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
7
7
|
invoiceId: ID;
|
|
8
|
-
}, "invoicingCreateInvoice/createInvoiceSuccess">, createInvoiceFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "invoicingCreateInvoice/createInvoiceFailure">,
|
|
8
|
+
}, "invoicingCreateInvoice/createInvoiceSuccess">, createInvoiceFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "invoicingCreateInvoice/createInvoiceFailure">, fetchCreateInvoiceFormPage: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: {
|
|
9
|
+
cacheOverride: boolean;
|
|
10
|
+
}], {
|
|
11
|
+
cacheOverride: boolean;
|
|
12
|
+
}, "invoicingCreateInvoice/fetchCreateInvoiceFormPage", never, never>, resetCreateInvoice: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"invoicingCreateInvoice/resetCreateInvoice">, updateInvoicingCreateInvoiceFormDraft: import("@reduxjs/toolkit").ActionCreatorWithPayload<InvoicingCreateInvoiceFormLocalData, "invoicingCreateInvoice/updateInvoicingCreateInvoiceFormDraft">;
|
|
9
13
|
declare const _default: import("redux").Reducer<CreateInvoiceState>;
|
|
10
14
|
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.updateInvoicingCreateInvoiceFormDraft = exports.resetCreateInvoice = exports.createInvoiceFailure = exports.createInvoiceSuccess = exports.createInvoice = exports.initialState = void 0;
|
|
4
|
+
exports.updateInvoicingCreateInvoiceFormDraft = exports.resetCreateInvoice = exports.fetchCreateInvoiceFormPage = exports.createInvoiceFailure = exports.createInvoiceSuccess = exports.createInvoice = exports.initialState = void 0;
|
|
5
5
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
6
|
const createInvoiceFormConfig_1 = require("./createInvoiceFormConfig");
|
|
7
7
|
exports.initialState = {
|
|
@@ -18,6 +18,20 @@ const createInvoiceSlice = (0, toolkit_1.createSlice)({
|
|
|
18
18
|
name: 'invoicingCreateInvoice',
|
|
19
19
|
initialState: exports.initialState,
|
|
20
20
|
reducers: {
|
|
21
|
+
/**
|
|
22
|
+
* Trigger-only action for {@link fetchCreateInvoiceFormPageEpic}: fans out to
|
|
23
|
+
* the customer/plan/product/settings fetches, skipping any already cached
|
|
24
|
+
* unless `cacheOverride` is set. Holds no state of its own.
|
|
25
|
+
*/
|
|
26
|
+
fetchCreateInvoiceFormPage: {
|
|
27
|
+
reducer() {
|
|
28
|
+
// No state mutation; fetchCreateInvoiceFormPageEpic fans out to the
|
|
29
|
+
// customer/plan/product/settings fetches in response to this action.
|
|
30
|
+
},
|
|
31
|
+
prepare(payload) {
|
|
32
|
+
return { payload };
|
|
33
|
+
},
|
|
34
|
+
},
|
|
21
35
|
updateInvoicingCreateInvoiceFormDraft(draft, action) {
|
|
22
36
|
draft.formDraft = action.payload;
|
|
23
37
|
},
|
|
@@ -41,5 +55,5 @@ const createInvoiceSlice = (0, toolkit_1.createSlice)({
|
|
|
41
55
|
},
|
|
42
56
|
},
|
|
43
57
|
});
|
|
44
|
-
_a = createInvoiceSlice.actions, exports.createInvoice = _a.createInvoice, exports.createInvoiceSuccess = _a.createInvoiceSuccess, exports.createInvoiceFailure = _a.createInvoiceFailure, exports.resetCreateInvoice = _a.resetCreateInvoice, exports.updateInvoicingCreateInvoiceFormDraft = _a.updateInvoicingCreateInvoiceFormDraft;
|
|
58
|
+
_a = createInvoiceSlice.actions, exports.createInvoice = _a.createInvoice, exports.createInvoiceSuccess = _a.createInvoiceSuccess, exports.createInvoiceFailure = _a.createInvoiceFailure, exports.fetchCreateInvoiceFormPage = _a.fetchCreateInvoiceFormPage, exports.resetCreateInvoice = _a.resetCreateInvoice, exports.updateInvoicingCreateInvoiceFormDraft = _a.updateInvoicingCreateInvoiceFormDraft;
|
|
45
59
|
exports.default = createInvoiceSlice.reducer;
|
|
@@ -8,6 +8,7 @@ import { InvoicingCreateInvoiceFormLocalData } from './createInvoiceState';
|
|
|
8
8
|
export interface CreateInvoiceFormView extends SelectorView {
|
|
9
9
|
customers: InvoicingCustomer[];
|
|
10
10
|
localData: InvoicingCreateInvoiceFormLocalData;
|
|
11
|
+
planNames: string[];
|
|
11
12
|
plans: InvoicingProduct[];
|
|
12
13
|
products: InvoicingProduct[];
|
|
13
14
|
savedInvoiceId?: ID;
|
|
@@ -15,10 +15,14 @@ const settingsViewSelector_1 = require("../settingsView/settingsViewSelector");
|
|
|
15
15
|
const getCreateInvoiceFormView = (state) => {
|
|
16
16
|
const createInvoiceState = state.invoicingCreateInvoiceState;
|
|
17
17
|
const catalogListView = (0, invoicingCatalogListViewSelector_1.getInvoicingCatalogListView)(state);
|
|
18
|
+
const plans = (0, invoicingCatalogListViewSelector_1.getInvoicingCatalogPrices)(catalogListView.plans);
|
|
18
19
|
return {
|
|
19
20
|
customers: (0, invoicingCustomerListViewSelector_1.getInvoicingCustomerListView)(state).customers,
|
|
20
21
|
localData: createInvoiceState.formDraft,
|
|
21
|
-
|
|
22
|
+
planNames: plans
|
|
23
|
+
.map((plan) => plan.name ?? '')
|
|
24
|
+
.filter((name) => name !== ''),
|
|
25
|
+
plans,
|
|
22
26
|
products: (0, invoicingCatalogListViewSelector_1.getInvoicingCatalogPrices)(catalogListView.products),
|
|
23
27
|
savedInvoiceId: createInvoiceState.createdInvoiceId,
|
|
24
28
|
settings: (0, settingsViewSelector_1.getInvoicingSettings)(state),
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { RootState } from '../../../../reducer';
|
|
4
|
+
import { fetchInvoicingCatalogPlanList, fetchInvoicingCatalogProductList } from '../../invoicingCatalogListView/invoicingCatalogListViewReducer';
|
|
5
|
+
import { fetchInvoicingCustomerList } from '../../invoicingCustomerListView/invoicingCustomerListViewReducer';
|
|
6
|
+
import { fetchInvoicingSettings } from '../../settingsView/settingsViewReducer';
|
|
7
|
+
import { fetchCreateInvoiceFormPage } from '../createInvoiceReducer';
|
|
8
|
+
export type ActionType = ReturnType<typeof fetchCreateInvoiceFormPage> | ReturnType<typeof fetchInvoicingCustomerList> | ReturnType<typeof fetchInvoicingCatalogPlanList> | ReturnType<typeof fetchInvoicingCatalogProductList> | ReturnType<typeof fetchInvoicingSettings>;
|
|
9
|
+
/**
|
|
10
|
+
* Orchestrates the create-invoice form's option sources: on
|
|
11
|
+
* `fetchCreateInvoiceFormPage`, fans out to the customer, catalog plan, catalog
|
|
12
|
+
* product and settings fetches, skipping any already cached unless
|
|
13
|
+
* `cacheOverride` is set.
|
|
14
|
+
*/
|
|
15
|
+
export declare const fetchCreateInvoiceFormPageEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>) => Observable<ActionType>;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fetchCreateInvoiceFormPageEpic = void 0;
|
|
4
|
+
const rxjs_1 = require("rxjs");
|
|
5
|
+
const operators_1 = require("rxjs/operators");
|
|
6
|
+
const invoicingCatalogListViewReducer_1 = require("../../invoicingCatalogListView/invoicingCatalogListViewReducer");
|
|
7
|
+
const invoicingCustomerListViewReducer_1 = require("../../invoicingCustomerListView/invoicingCustomerListViewReducer");
|
|
8
|
+
const settingsViewReducer_1 = require("../../settingsView/settingsViewReducer");
|
|
9
|
+
const createInvoiceReducer_1 = require("../createInvoiceReducer");
|
|
10
|
+
/**
|
|
11
|
+
* Fetch unless the resource is already loaded or in flight — or always when the
|
|
12
|
+
* caller forces a refresh via `cacheOverride` (false on a plain page open, true
|
|
13
|
+
* to force a reload).
|
|
14
|
+
*/
|
|
15
|
+
const shouldFetch = (fetchStateAndError, cacheOverride) => cacheOverride ||
|
|
16
|
+
(fetchStateAndError.fetchState !== 'Completed' &&
|
|
17
|
+
fetchStateAndError.fetchState !== 'In-Progress');
|
|
18
|
+
/**
|
|
19
|
+
* Orchestrates the create-invoice form's option sources: on
|
|
20
|
+
* `fetchCreateInvoiceFormPage`, fans out to the customer, catalog plan, catalog
|
|
21
|
+
* product and settings fetches, skipping any already cached unless
|
|
22
|
+
* `cacheOverride` is set.
|
|
23
|
+
*/
|
|
24
|
+
const fetchCreateInvoiceFormPageEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(createInvoiceReducer_1.fetchCreateInvoiceFormPage.match), (0, operators_1.mergeMap)((action) => {
|
|
25
|
+
const { cacheOverride } = action.payload;
|
|
26
|
+
const state = state$.value;
|
|
27
|
+
const customerState = state.invoicingCustomerListViewState;
|
|
28
|
+
const catalogState = state.invoicingCatalogListViewState;
|
|
29
|
+
const settingsState = state.invoicingSettingsViewState;
|
|
30
|
+
const pageActions = [];
|
|
31
|
+
if (shouldFetch({ fetchState: customerState.fetchState, error: customerState.error }, cacheOverride)) {
|
|
32
|
+
pageActions.push((0, invoicingCustomerListViewReducer_1.fetchInvoicingCustomerList)({
|
|
33
|
+
filters: {},
|
|
34
|
+
keepExistingListItems: false,
|
|
35
|
+
}));
|
|
36
|
+
}
|
|
37
|
+
if (shouldFetch({ fetchState: catalogState.fetchState, error: catalogState.error }, cacheOverride)) {
|
|
38
|
+
pageActions.push((0, invoicingCatalogListViewReducer_1.fetchInvoicingCatalogPlanList)({
|
|
39
|
+
filters: { type: 'plan' },
|
|
40
|
+
keepExistingListItems: false,
|
|
41
|
+
}));
|
|
42
|
+
}
|
|
43
|
+
if (shouldFetch(catalogState.productFetchState, cacheOverride)) {
|
|
44
|
+
pageActions.push((0, invoicingCatalogListViewReducer_1.fetchInvoicingCatalogProductList)({
|
|
45
|
+
filters: { type: 'addon|charge' },
|
|
46
|
+
keepExistingListItems: false,
|
|
47
|
+
}));
|
|
48
|
+
}
|
|
49
|
+
if (shouldFetch({ fetchState: settingsState.fetchState, error: settingsState.error }, cacheOverride)) {
|
|
50
|
+
pageActions.push((0, settingsViewReducer_1.fetchInvoicingSettings)());
|
|
51
|
+
}
|
|
52
|
+
return (0, rxjs_1.from)(pageActions);
|
|
53
|
+
}));
|
|
54
|
+
exports.fetchCreateInvoiceFormPageEpic = fetchCreateInvoiceFormPageEpic;
|
package/lib/view/invoicing/editInvoicingCouponDetailView/editInvoicingCouponDetailViewPayload.js
CHANGED
|
@@ -12,7 +12,6 @@ const localDataToSaveInvoicingCouponPayload = (localData, isCreate) => {
|
|
|
12
12
|
discount_type: localData.discountType,
|
|
13
13
|
duration_type: localData.durationType,
|
|
14
14
|
name: localData.name.trim(),
|
|
15
|
-
status: 'active',
|
|
16
15
|
};
|
|
17
16
|
if (isCreate) {
|
|
18
17
|
data.id = localData.couponId.trim();
|
|
@@ -316,7 +316,7 @@ const checkApproveRejectBtnShow = (billActivities, isUserAdmin, signedInUser) =>
|
|
|
316
316
|
(actorActivity.subType === 'manager' ||
|
|
317
317
|
actorActivity.subType === 'vendor_owner') &&
|
|
318
318
|
actorActivity.userId === null &&
|
|
319
|
-
isAdminFallbackApprover &&
|
|
319
|
+
isAdminFallbackApprover === true &&
|
|
320
320
|
isUserAdmin &&
|
|
321
321
|
signedInUser?.userId != null &&
|
|
322
322
|
signedInUser.userId !== sodExcludedApproverUserId) {
|
|
@@ -330,7 +330,7 @@ const checkApproveRejectBtnShow = (billActivities, isUserAdmin, signedInUser) =>
|
|
|
330
330
|
isUserAdmin &&
|
|
331
331
|
signedInUser?.userId != null &&
|
|
332
332
|
signedInUser.userId !== sodExcludedApproverUserId &&
|
|
333
|
-
pendingStep.displayPendingApproverAsAdmin) {
|
|
333
|
+
pendingStep.displayPendingApproverAsAdmin === true) {
|
|
334
334
|
isApprovalorRejectBtnVisible = true;
|
|
335
335
|
isMarkAsPaidBtnVisible = isLastApprovalStep;
|
|
336
336
|
}
|
|
@@ -365,7 +365,7 @@ const checkApproveRejectBtnShow = (billActivities, isUserAdmin, signedInUser) =>
|
|
|
365
365
|
(actorActivity.subType === 'manager' ||
|
|
366
366
|
actorActivity.subType === 'vendor_owner') &&
|
|
367
367
|
actorActivity.userId === null &&
|
|
368
|
-
isAdminFallbackApprover &&
|
|
368
|
+
isAdminFallbackApprover === true &&
|
|
369
369
|
isUserAdmin &&
|
|
370
370
|
signedInUser?.userId != null &&
|
|
371
371
|
signedInUser.userId !== sodExcludedApproverUserId) {
|
|
@@ -379,7 +379,7 @@ const checkApproveRejectBtnShow = (billActivities, isUserAdmin, signedInUser) =>
|
|
|
379
379
|
isUserAdmin &&
|
|
380
380
|
signedInUser?.userId != null &&
|
|
381
381
|
signedInUser.userId !== sodExcludedApproverUserId &&
|
|
382
|
-
stepWithStatus.displayPendingApproverAsAdmin) {
|
|
382
|
+
stepWithStatus.displayPendingApproverAsAdmin === true) {
|
|
383
383
|
isApprovalorRejectBtnVisible = true;
|
|
384
384
|
isMarkAsPaidBtnVisible = true;
|
|
385
385
|
}
|
|
@@ -326,7 +326,7 @@ const getApproversOrRejectors = (billTransaction, entityApprovalStatusState, use
|
|
|
326
326
|
requireApprovalInfo = [stepsApprovalStatus[currentPendingStepIndex]];
|
|
327
327
|
}
|
|
328
328
|
requireApprovalInfo.forEach((approvalStep) => {
|
|
329
|
-
if (approvers.displayPendingApproverAsAdmin) {
|
|
329
|
+
if (approvers.displayPendingApproverAsAdmin === true) {
|
|
330
330
|
return;
|
|
331
331
|
}
|
|
332
332
|
const pendingActivities = approvalStep.actorsActivity.filter((activity) => activity.activity === 'pending');
|
|
@@ -25,7 +25,7 @@ const isSodExcludedViewerBlocked = (sodExcludedApproverUserId, signedInUserId, s
|
|
|
25
25
|
(0, exports.isUserActorOnApprovalStep)(sodExcludedApproverUserId, stepActorsActivity);
|
|
26
26
|
exports.isSodExcludedViewerBlocked = isSodExcludedViewerBlocked;
|
|
27
27
|
const isSodAdminFallbackEligibleForStep = (sodExcludedApproverUserId, isAdminFallbackApprover, stepActorsActivity = []) => {
|
|
28
|
-
if (sodExcludedApproverUserId == null ||
|
|
28
|
+
if (sodExcludedApproverUserId == null || isAdminFallbackApprover !== true) {
|
|
29
29
|
return false;
|
|
30
30
|
}
|
|
31
31
|
const pendingResolvedApprovers = stepActorsActivity.filter((activity) => activity.activity === 'pending' && getUserActorId(activity) != null);
|
|
@@ -247,7 +247,7 @@ const checkApproveRejectBtnShow = (remiActivities, isUserAdmin, signedInUser) =>
|
|
|
247
247
|
actorActivity.subType === 'vendor_owner' ||
|
|
248
248
|
actorActivity.subType === 'manager_of_manager') &&
|
|
249
249
|
actorActivity.userId === null &&
|
|
250
|
-
isAdminFallbackApprover &&
|
|
250
|
+
isAdminFallbackApprover === true &&
|
|
251
251
|
isUserAdmin &&
|
|
252
252
|
signedInUser?.userId != null &&
|
|
253
253
|
signedInUser.userId !== sodExcludedApproverUserId) {
|
|
@@ -258,7 +258,7 @@ const checkApproveRejectBtnShow = (remiActivities, isUserAdmin, signedInUser) =>
|
|
|
258
258
|
isUserAdmin &&
|
|
259
259
|
signedInUser?.userId != null &&
|
|
260
260
|
signedInUser.userId !== sodExcludedApproverUserId &&
|
|
261
|
-
pendingStep.displayPendingApproverAsAdmin) {
|
|
261
|
+
pendingStep.displayPendingApproverAsAdmin === true) {
|
|
262
262
|
isApprovalorRejectBtnVisible = true;
|
|
263
263
|
}
|
|
264
264
|
}
|
|
@@ -293,7 +293,7 @@ const checkApproveRejectBtnShow = (remiActivities, isUserAdmin, signedInUser) =>
|
|
|
293
293
|
actorActivity.subType === 'vendor_owner' ||
|
|
294
294
|
actorActivity.subType === 'manager_of_manager') &&
|
|
295
295
|
actorActivity.userId === null &&
|
|
296
|
-
isAdminFallbackApprover &&
|
|
296
|
+
isAdminFallbackApprover === true &&
|
|
297
297
|
isUserAdmin &&
|
|
298
298
|
signedInUser?.userId != null &&
|
|
299
299
|
signedInUser.userId !== sodExcludedApproverUserId) {
|
|
@@ -304,7 +304,7 @@ const checkApproveRejectBtnShow = (remiActivities, isUserAdmin, signedInUser) =>
|
|
|
304
304
|
isUserAdmin &&
|
|
305
305
|
signedInUser?.userId != null &&
|
|
306
306
|
signedInUser.userId !== sodExcludedApproverUserId &&
|
|
307
|
-
stepWithStatus.displayPendingApproverAsAdmin) {
|
|
307
|
+
stepWithStatus.displayPendingApproverAsAdmin === true) {
|
|
308
308
|
isApprovalorRejectBtnVisible = true;
|
|
309
309
|
}
|
|
310
310
|
}
|
|
@@ -245,7 +245,7 @@ const getApproversOrRejectors = (reimbursement, entityApprovalStatusState, userS
|
|
|
245
245
|
requireApprovalInfo = [stepsApprovalStatus[currentPendingStepIndex]];
|
|
246
246
|
}
|
|
247
247
|
requireApprovalInfo.forEach((approvalStep) => {
|
|
248
|
-
if (approvers.displayPendingApproverAsAdmin) {
|
|
248
|
+
if (approvers.displayPendingApproverAsAdmin === true) {
|
|
249
249
|
return;
|
|
250
250
|
}
|
|
251
251
|
const pendingActivities = approvalStep.actorsActivity.filter((activity) => activity.activity === 'pending');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.68",
|
|
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",
|