@zeniai/client-epic-state 4.13.97 → 4.13.99
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/entity/billPay/recurringBills/recurringBillsState.d.ts +2 -2
- package/lib/entity/chargeCard/chargeCard.d.ts +1 -1
- package/lib/entity/vendorExpense/vendorExpenseSelector.d.ts +2 -2
- package/lib/view/addressView/epic/fetchAddressEpic.d.ts +3 -3
- package/lib/view/addressView/epic/updateAddressEpic.d.ts +3 -3
- package/lib/view/common/recurringViewHelper.d.ts +2 -2
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewReducer.d.ts +2 -2
- package/lib/view/companyView/types/cockpitTabsID.d.ts +1 -1
- package/lib/view/companyView/types/cockpitTypes.d.ts +2 -2
- package/lib/view/dashboard/dashboardEpic.js +2 -2
- package/lib/view/expenseAutomationView/epics/fluxAnalysis/reviewFluxAnalysisEpic.js +2 -7
- package/lib/view/expenseAutomationView/epics/jeSchedule/ignoreRecommendedJeScheduleEpic.js +2 -7
- package/lib/view/expenseAutomationView/epics/jeSchedule/retryJeSchedulesEpic.js +2 -6
- package/lib/view/expenseAutomationView/epics/missingReceipts/uploadMissingReceiptSuccessEpic.js +2 -2
- package/lib/view/expenseAutomationView/epics/transactionCategorization/updateTransactionCategorizationEpic.js +4 -5
- package/lib/view/expenseAutomationView/helpers/helpers.d.ts +0 -3
- package/lib/view/expenseAutomationView/helpers/helpers.js +1 -18
- package/lib/view/people/changeZeniPersonRolesEpic.d.ts +3 -3
- package/lib/view/people/invitePeopleEpic.d.ts +12 -12
- package/lib/view/people/inviteZeniPeopleEpic.d.ts +12 -12
- package/lib/view/people/resendInviteEpic.d.ts +3 -3
- package/lib/view/reportUIOptions/updateReportUIOptionCOABalancesRangeEpic.d.ts +3 -3
- package/lib/view/reviewCompanyView/reviewCompanyViewState.d.ts +1 -1
- package/lib/view/settingsView/epic/fetchMyProfileEpic.d.ts +6 -6
- package/lib/view/settingsView/settingsViewState.d.ts +1 -1
- package/lib/view/spendManagement/helpers.js +8 -3
- package/lib/view/subscriptionView/types/subscriptionTypes.d.ts +1 -1
- package/lib/view/topEx/topExReducer.d.ts +1 -1
- package/lib/view/topEx/topExSelector.d.ts +2 -2
- package/lib/view/topEx/topExState.d.ts +1 -1
- package/lib/view/vendorReviewView/common/state/commonTypes.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ID } from '../../../commonStateTypes/common';
|
|
2
2
|
import { ZeniDate } from '../../../zeniDayJS';
|
|
3
3
|
import { BillPaymentStatusCodeType, BillStage, BillStatusCodeType } from '../billTransaction/billTransactionState';
|
|
4
|
-
export declare const toRecurringBillFrequency: (v: string) => "weekly" | "
|
|
5
|
-
export declare const toRecurringBillFrequencyStrict: (v?: string | undefined) => "weekly" | "
|
|
4
|
+
export declare const toRecurringBillFrequency: (v: string) => "weekly" | "monthly" | "biweekly" | "quarterly";
|
|
5
|
+
export declare const toRecurringBillFrequencyStrict: (v?: string | undefined) => "weekly" | "monthly" | "biweekly" | "quarterly" | undefined;
|
|
6
6
|
export declare type RecurringBillFrequency = NonNullable<ReturnType<typeof toRecurringBillFrequency>>;
|
|
7
7
|
export interface RecurringBillPaymentStatus {
|
|
8
8
|
code?: BillPaymentStatusCodeType;
|
|
@@ -43,7 +43,7 @@ export interface CreditLimitFrequency {
|
|
|
43
43
|
code: CreditLimitFrequencyCodeType;
|
|
44
44
|
name: string;
|
|
45
45
|
}
|
|
46
|
-
export declare const toCreditLimitFrequencyCodeType: (v: string) => "
|
|
46
|
+
export declare const toCreditLimitFrequencyCodeType: (v: string) => "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
47
47
|
export declare type CreditLimitFrequencyCodeType = ReturnType<typeof toCreditLimitFrequencyCodeType>;
|
|
48
48
|
interface CardStatus {
|
|
49
49
|
code: CardStatusCodeType;
|
|
@@ -4,7 +4,7 @@ import { VendorExpenseTrend } from './vendorExpenseTrend';
|
|
|
4
4
|
import { TimeframeTick } from '../../commonStateTypes/timeframeTick';
|
|
5
5
|
import { Month } from '../../commonStateTypes/timePeriod';
|
|
6
6
|
export declare function getVendor(vendorExpenseState: VendorExpenseState, vendorId: ID, timePeriod: TimeframeTick | undefined, firstMonthOfFY?: Month, filter?: VendorSpendTrendFilterTabType): VendorExpenseTrend | undefined;
|
|
7
|
-
declare const toVendorSpendTrendFilterTabsType: (v: string) => "last_month" | "
|
|
8
|
-
export declare const toVendorSpendTrendFilterTabsTypeStrict: (v: string) => "last_month" | "
|
|
7
|
+
declare const toVendorSpendTrendFilterTabsType: (v: string) => "last_month" | "last_30_days" | "variance" | "last_90_days" | "YTD_spend" | "last_3_months" | "last_6_months" | "last_12_months" | "last_year";
|
|
8
|
+
export declare const toVendorSpendTrendFilterTabsTypeStrict: (v: string) => "last_month" | "last_30_days" | "variance" | "last_90_days" | "YTD_spend" | "last_3_months" | "last_6_months" | "last_12_months" | "last_year" | undefined;
|
|
9
9
|
export declare type VendorSpendTrendFilterTabType = ReturnType<typeof toVendorSpendTrendFilterTabsType>;
|
|
10
10
|
export {};
|
|
@@ -7,13 +7,13 @@ export declare type ActionType = ReturnType<typeof fetchAddress> | ReturnType<ty
|
|
|
7
7
|
export declare const fetchAddressEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<{
|
|
8
8
|
payload: string;
|
|
9
9
|
type: string;
|
|
10
|
+
} | {
|
|
11
|
+
payload: import("../../../entity/address/addressPayload").AddressPayload[];
|
|
12
|
+
type: string;
|
|
10
13
|
} | {
|
|
11
14
|
payload: {
|
|
12
15
|
addressId: string;
|
|
13
16
|
status: import("../../../responsePayload").ZeniAPIStatus<Record<string, unknown>>;
|
|
14
17
|
};
|
|
15
18
|
type: string;
|
|
16
|
-
} | {
|
|
17
|
-
payload: import("../../../entity/address/addressPayload").AddressPayload[];
|
|
18
|
-
type: string;
|
|
19
19
|
}>;
|
|
@@ -7,13 +7,13 @@ export declare type ActionType = ReturnType<typeof updateAddress> | ReturnType<t
|
|
|
7
7
|
export declare const updateAddressEpic: (actions$: ActionsObservable<ActionType>, _: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<{
|
|
8
8
|
payload: string;
|
|
9
9
|
type: string;
|
|
10
|
+
} | {
|
|
11
|
+
payload: import("../../../entity/address/addressPayload").AddressPayload[];
|
|
12
|
+
type: string;
|
|
10
13
|
} | {
|
|
11
14
|
payload: {
|
|
12
15
|
addressId: string;
|
|
13
16
|
status: import("../../../responsePayload").ZeniAPIStatus<Record<string, unknown>>;
|
|
14
17
|
};
|
|
15
18
|
type: string;
|
|
16
|
-
} | {
|
|
17
|
-
payload: import("../../../entity/address/addressPayload").AddressPayload[];
|
|
18
|
-
type: string;
|
|
19
19
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ZeniDate } from '../../zeniDayJS';
|
|
2
|
-
export declare const toRecurringFrequency: (v: string) => "
|
|
3
|
-
export declare const toRecurringFrequencyStrict: (v?: string | undefined) => "
|
|
2
|
+
export declare const toRecurringFrequency: (v: string) => "daily" | "weekly" | "monthly" | "biweekly" | "quarterly";
|
|
3
|
+
export declare const toRecurringFrequencyStrict: (v?: string | undefined) => "daily" | "weekly" | "monthly" | "biweekly" | "quarterly" | undefined;
|
|
4
4
|
export declare type RecurringFrequencyType = NonNullable<ReturnType<typeof toRecurringFrequency>>;
|
|
5
5
|
declare const toRecurringDatePickerOptions: (v: string) => "date" | "recurringCount";
|
|
6
6
|
export declare type RecurringDatePickerOptions = NonNullable<ReturnType<typeof toRecurringDatePickerOptions>>;
|
|
@@ -36,8 +36,8 @@ export declare const fetchVendorsTabVendorDetails: import("@reduxjs/toolkit").Ac
|
|
|
36
36
|
}, string, never, never>, updateVendorsTabVendorAllTransactionsTabData: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
37
37
|
timePeriod: TimePeriod;
|
|
38
38
|
numberOfQuartersFetched: number;
|
|
39
|
-
}, string>, resetSelectedTabType: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, updateSelectedTabType: import("@reduxjs/toolkit").ActionCreatorWithPayload<"spend_transactions" | "all_transactions", string>, updateVendorSpendTrendFilterTabValue: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[vendorSpendTrendfilterTabValue: "last_month" | "
|
|
40
|
-
vendorSpendTrendfilterTabValue: "last_month" | "
|
|
39
|
+
}, string>, resetSelectedTabType: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, updateSelectedTabType: import("@reduxjs/toolkit").ActionCreatorWithPayload<"spend_transactions" | "all_transactions", string>, updateVendorSpendTrendFilterTabValue: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[vendorSpendTrendfilterTabValue: "last_month" | "last_30_days" | "variance" | "last_90_days" | "YTD_spend" | "last_3_months" | "last_6_months" | "last_12_months" | "last_year"], {
|
|
40
|
+
vendorSpendTrendfilterTabValue: "last_month" | "last_30_days" | "variance" | "last_90_days" | "YTD_spend" | "last_3_months" | "last_6_months" | "last_12_months" | "last_year";
|
|
41
41
|
}, string, never, never>, resetVendorsTabVendorAllTransactionsTabData: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, updateContactsInVendorTabDetailLocalData: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
42
42
|
vendorId: ID;
|
|
43
43
|
localData?: Partial<VendorsTabVendorDetailLocalData> | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const ALL_COCKPIT_TABS_IDS: readonly ["management", "subscription", "portfolio", "onboarding", "audit", "healthMonitor"];
|
|
2
|
-
export declare const toCockpitTabsIDStrict: (v: string) => "onboarding" | "
|
|
2
|
+
export declare const toCockpitTabsIDStrict: (v: string) => "onboarding" | "subscription" | "management" | "portfolio" | "audit" | "healthMonitor" | undefined;
|
|
3
3
|
export declare type CockpitTabsID = NonNullable<ReturnType<typeof toCockpitTabsIDStrict>>;
|
|
4
4
|
export declare type CockpitDownloadTabsID = Exclude<CockpitTabsID, 'audit'>;
|
|
5
5
|
export declare const ALL_COCKPIT_TABS_FILE_TYPES: readonly ["excel"];
|
|
@@ -3,8 +3,8 @@ import { ZeniDate } from '../../../zeniDayJS';
|
|
|
3
3
|
import { SubscriptionViewSortKey } from '../../subscriptionView/types/subscriptionTypes';
|
|
4
4
|
import { FilterCategoryValueType } from '../helpers/cockpitHelpers';
|
|
5
5
|
import { CockpitDownloadTabsID, CockpitTabsFileType } from './cockpitTabsID';
|
|
6
|
-
export declare const toPortfolioSortKeyType: (v: string) => "expenses" | "runway" | "
|
|
7
|
-
export declare const toManagementSortKeyType: (v: string) => "status" | "group" | "bookCloseDate" | "
|
|
6
|
+
export declare const toPortfolioSortKeyType: (v: string) => "expenses" | "runway" | "cashBalance" | "netIncome" | "companyName" | "revenues";
|
|
7
|
+
export declare const toManagementSortKeyType: (v: string) => "status" | "group" | "bookCloseDate" | "controller" | "preparer" | "reviewer" | "companyName" | "monthlyRecurringRevenue" | "annualRecurringRevenue" | "taxStatus" | "notes" | "plans" | "customerSuccessManager" | "task" | "apAnalyst" | "reportSent" | "taxLead" | "satisfaction";
|
|
8
8
|
export declare const toOnboardingSortKeyType: (v: string) => "companyName" | "notes" | "bankAccountLinked" | "qboLinked" | "identityVerified" | "businessVerified" | "groupCreated" | "customerCreated" | "enroller" | "invite";
|
|
9
9
|
export declare const toHealthSortKeyType: (v: string) => "group" | "runway" | "controller" | "companyName" | "monthlyRecurringRevenue" | "customerSatisfactionScore" | "netPromoterScore" | "customerSuccessManager" | "lastReportSent" | "externalProductServiceExposure" | "finOpsEngagementFrequency" | "companyEngagementMetricsUpdatedAt" | "issues" | "productVerticals" | "churnProbability" | "subscriptionDate" | "renewalDate";
|
|
10
10
|
export declare const toTaskManagerSortKeyType: (v: string) => "priority" | "name" | "status" | "dueDate" | "taskName" | "assignee" | "tags" | "createdBy";
|
|
@@ -30,7 +30,6 @@ const zeniAccountsPromoCardReducer_1 = require("../zeniAccountsPromoCard/zeniAcc
|
|
|
30
30
|
const referralReducer_1 = require("../referralView/referralReducer");
|
|
31
31
|
const monthEndCloseChecksViewReducer_1 = require("../monthEndCloseChecksView/monthEndCloseChecksViewReducer");
|
|
32
32
|
const timePeriod_1 = require("../../commonStateTypes/timePeriod");
|
|
33
|
-
const helpers_1 = require("../expenseAutomationView/helpers/helpers");
|
|
34
33
|
const fetchDashboardEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(dashboardReducer_1.fetchDashboard.match), (0, operators_1.switchMap)((action) => {
|
|
35
34
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
36
35
|
const { userId, companyId, fetchFullReport, cacheOverride, excludeResources, tenantId, } = action.payload;
|
|
@@ -42,7 +41,8 @@ const fetchDashboardEpic = (actions$, state$) => actions$.pipe((0, operators_1.f
|
|
|
42
41
|
const isInvestorBanker = (0, userRoleType_1.hasInvestorBankerLevelAccess)(currentTenant.userRole);
|
|
43
42
|
const arAgingDate = state$.value.arAgingState.uiState.selectedDate;
|
|
44
43
|
const apAgingDate = state$.value.apAgingState.uiState.selectedDate;
|
|
45
|
-
const
|
|
44
|
+
const selectedPeriodByTenantId = state$.value.expenseAutomationViewState.selectedPeriodByTenantId;
|
|
45
|
+
const monthEndChecksPeriod = selectedPeriodByTenantId[tenantId];
|
|
46
46
|
if (cacheOverride === true) {
|
|
47
47
|
const actions = [
|
|
48
48
|
(0, tenantReducer_1.fetchAllTenants)(userId),
|
|
@@ -24,11 +24,7 @@ const reviewFluxAnalysisViewEpic = (actions$, state$, zeniAPI) => actions$.pipe(
|
|
|
24
24
|
var _a, _b;
|
|
25
25
|
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
26
26
|
const updateActions = [];
|
|
27
|
-
|
|
28
|
-
updateActions.push((0, accountReducer_1.updateAccounts)(response.data.accounts, 'account_list'));
|
|
29
|
-
updateActions.push((0, classReducer_1.updateClasses)('class_list', response.data.accounting_class));
|
|
30
|
-
updateActions.push((0, vendorReducer_1.updateVendors)(response.data.vendors, 'merge'));
|
|
31
|
-
updateActions.push((0, userReducer_1.updateAllUsers)({
|
|
27
|
+
updateActions.push((0, accountReducer_1.updateAccounts)(response.data.accounts, 'account_list'), (0, classReducer_1.updateClasses)('class_list', response.data.accounting_class), (0, vendorReducer_1.updateVendors)(response.data.vendors, 'merge'), (0, userReducer_1.updateAllUsers)({
|
|
32
28
|
users: response.data.users,
|
|
33
29
|
updateType: 'merge',
|
|
34
30
|
}));
|
|
@@ -41,10 +37,9 @@ const reviewFluxAnalysisViewEpic = (actions$, state$, zeniAPI) => actions$.pipe(
|
|
|
41
37
|
}));
|
|
42
38
|
}
|
|
43
39
|
if (currentTenant != null) {
|
|
44
|
-
const monthEndChecksPeriod = (0, helpers_1.getDefaultSelectedMonthAndYearForTenant)(currentTenant);
|
|
45
40
|
updateActions.push((0, monthEndCloseChecksViewReducer_1.fetchMonthEndCloseChecks)({
|
|
46
41
|
tenantId: currentTenant.tenantId,
|
|
47
|
-
period:
|
|
42
|
+
period: selectedPeriod,
|
|
48
43
|
refreshViewInBackground: true,
|
|
49
44
|
}));
|
|
50
45
|
}
|
|
@@ -26,16 +26,11 @@ const ignoreRecommendedJeScheduleEpic = (actions$, state$, zeniAPI) => actions$.
|
|
|
26
26
|
const ignoreScheduleApi = zeniAPI.putAndGetJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/schedules/ignore/${jeScheduleTransactionState.jeScheduleId}?query=${encodeURIComponent(JSON.stringify(queryParam))}`, payload);
|
|
27
27
|
return ignoreScheduleApi.pipe((0, operators_1.mergeMap)((response) => {
|
|
28
28
|
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
29
|
-
|
|
30
|
-
actions.push((0, jeSchedulesReducer_1.updateJESchedules)(response.data.je_schedules), (0, jeSchedulesReducer_1.updateJESchedulesDetails)(response.data.je_schedules, response.data.scheduled_journal_entries));
|
|
31
|
-
actions.push((0, jeSchedulesViewReducer_1.ignoreRecommendedJeScheduleSuccess)(jeScheduleTransactionKey));
|
|
32
|
-
actions.push((0, jeSchedulesViewReducer_1.removeJeScheduleTransactionKey)(jeScheduleTransactionKey, selectedPeriod));
|
|
33
|
-
actions.push((0, monthEndCloseChecksViewReducer_1.fetchMonthEndCloseChecks)({
|
|
29
|
+
actions.push((0, jeSchedulesReducer_1.updateJESchedules)(response.data.je_schedules), (0, jeSchedulesReducer_1.updateJESchedulesDetails)(response.data.je_schedules, response.data.scheduled_journal_entries), (0, jeSchedulesViewReducer_1.ignoreRecommendedJeScheduleSuccess)(jeScheduleTransactionKey), (0, jeSchedulesViewReducer_1.removeJeScheduleTransactionKey)(jeScheduleTransactionKey, selectedPeriod), (0, monthEndCloseChecksViewReducer_1.fetchMonthEndCloseChecks)({
|
|
34
30
|
tenantId: currentTenant.tenantId,
|
|
35
31
|
period: selectedPeriod,
|
|
36
32
|
refreshViewInBackground: true,
|
|
37
|
-
}))
|
|
38
|
-
actions.push((0, snackbarReducer_1.openSnackbar)({
|
|
33
|
+
}), (0, snackbarReducer_1.openSnackbar)({
|
|
39
34
|
messageSection: 'ignore_schedule',
|
|
40
35
|
messageText: 'success',
|
|
41
36
|
type: 'success',
|
|
@@ -25,17 +25,13 @@ const retryJeScheduleEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, ope
|
|
|
25
25
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
26
26
|
if ((0, responsePayload_1.isSuccessStatus)(response)) {
|
|
27
27
|
const updateActions = [];
|
|
28
|
-
// TODO - Mohit - Update the actions array (no multiple push calls)
|
|
29
28
|
updateActions.push((0, jeSchedulesViewReducer_1.retryJeScheduleSuccess)({
|
|
30
29
|
scheduledJournalEntryID,
|
|
31
|
-
}))
|
|
32
|
-
updateActions.push((0, jeSchedulesViewReducer_1.removeFailedJeScheduleTransactionKey)(jeScheduleTransactionKey, selectedPeriod));
|
|
33
|
-
updateActions.push((0, monthEndCloseChecksViewReducer_1.fetchMonthEndCloseChecks)({
|
|
30
|
+
}), (0, jeSchedulesViewReducer_1.removeFailedJeScheduleTransactionKey)(jeScheduleTransactionKey, selectedPeriod), (0, monthEndCloseChecksViewReducer_1.fetchMonthEndCloseChecks)({
|
|
34
31
|
tenantId: currentTenant.tenantId,
|
|
35
32
|
period: selectedPeriod,
|
|
36
33
|
refreshViewInBackground: true,
|
|
37
|
-
}))
|
|
38
|
-
updateActions.push((0, snackbarReducer_1.openSnackbar)({
|
|
34
|
+
}), (0, snackbarReducer_1.openSnackbar)({
|
|
39
35
|
messageSection: 'je_posted',
|
|
40
36
|
messageText: 'success',
|
|
41
37
|
type: 'success',
|
package/lib/view/expenseAutomationView/epics/missingReceipts/uploadMissingReceiptSuccessEpic.js
CHANGED
|
@@ -6,15 +6,15 @@ const operators_1 = require("rxjs/operators");
|
|
|
6
6
|
const transactionReducer_1 = require("../../../../entity/transaction/transactionReducer");
|
|
7
7
|
const missingReceiptsViewReducer_1 = require("../../reducers/missingReceiptsViewReducer");
|
|
8
8
|
const monthEndCloseChecksViewReducer_1 = require("../../../monthEndCloseChecksView/monthEndCloseChecksViewReducer");
|
|
9
|
-
const helpers_1 = require("../../helpers/helpers");
|
|
10
9
|
const tenantSelector_1 = require("../../../../entity/tenant/tenantSelector");
|
|
11
10
|
const uploadMissingReceiptSuccessEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(missingReceiptsViewReducer_1.uploadMissingReceiptSuccess.match), (0, operators_1.mergeMap)((action) => {
|
|
12
11
|
const { transactionPayload, updateType } = action.payload;
|
|
13
12
|
const updateActions = [];
|
|
14
13
|
const currentTenant = (0, tenantSelector_1.getCurrentTenant)(state$.value);
|
|
14
|
+
const selectedPeriodByTenantId = state$.value.expenseAutomationViewState.selectedPeriodByTenantId;
|
|
15
15
|
updateActions.push((0, transactionReducer_1.updateTransaction)(transactionPayload.transaction_id, transactionPayload, updateType));
|
|
16
16
|
if (currentTenant != null) {
|
|
17
|
-
const monthEndChecksPeriod =
|
|
17
|
+
const monthEndChecksPeriod = selectedPeriodByTenantId[currentTenant.tenantId];
|
|
18
18
|
updateActions.push((0, monthEndCloseChecksViewReducer_1.fetchMonthEndCloseChecks)({
|
|
19
19
|
tenantId: currentTenant.tenantId,
|
|
20
20
|
period: monthEndChecksPeriod,
|
|
@@ -21,7 +21,6 @@ const vendorSelector_1 = require("../../../../entity/vendor/vendorSelector");
|
|
|
21
21
|
const responsePayload_1 = require("../../../../responsePayload");
|
|
22
22
|
const transactionsViewReducer_1 = require("../../reducers/transactionsViewReducer");
|
|
23
23
|
const tenantSelector_1 = require("../../../../entity/tenant/tenantSelector");
|
|
24
|
-
const helpers_1 = require("../../helpers/helpers");
|
|
25
24
|
const monthEndCloseChecksViewReducer_1 = require("../../../monthEndCloseChecksView/monthEndCloseChecksViewReducer");
|
|
26
25
|
const updateTransactionCategorizationEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(transactionsViewReducer_1.updateTransactionCategorization.match), (0, operators_1.mergeMap)((action) => {
|
|
27
26
|
const { selectedTab } = action.payload;
|
|
@@ -33,12 +32,12 @@ const updateTransactionCategorizationEpic = (actions$, state$, zeniAPI) => actio
|
|
|
33
32
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
34
33
|
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
35
34
|
const transactionsInReview = response.data.transactions_update_success;
|
|
36
|
-
// TODO - Vivek - Update the actions array (no multiple push calls)
|
|
37
35
|
const actions = [];
|
|
38
|
-
actions.push((0, transactionsViewReducer_1.markTransactionAsNotMiscategorized)(selectedTab, transactionsInReview));
|
|
39
|
-
actions.push((0, transactionsViewReducer_1.updateTransactionCategorizationSaveStatus)(selectedTab, 'Completed', (0, responsePayload_1.createZeniAPIStatus)('Completed', 'Transaction categorization updated successfully')));
|
|
36
|
+
actions.push((0, transactionsViewReducer_1.markTransactionAsNotMiscategorized)(selectedTab, transactionsInReview), (0, transactionsViewReducer_1.updateTransactionCategorizationSaveStatus)(selectedTab, 'Completed', (0, responsePayload_1.createZeniAPIStatus)('Completed', 'Transaction categorization updated successfully')));
|
|
40
37
|
if (currentTenant != null) {
|
|
41
|
-
const
|
|
38
|
+
const selectedPeriodByTenantId = state$.value.expenseAutomationViewState
|
|
39
|
+
.selectedPeriodByTenantId;
|
|
40
|
+
const monthEndChecksPeriod = selectedPeriodByTenantId[currentTenant.tenantId];
|
|
42
41
|
actions.push((0, monthEndCloseChecksViewReducer_1.fetchMonthEndCloseChecks)({
|
|
43
42
|
tenantId: currentTenant.tenantId,
|
|
44
43
|
period: monthEndChecksPeriod,
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { FluxAnalysisActionQueryType, FluxAnalysisQuerySortKey, MonthBalancePayload } from '../payload/fluxAnalysisPayload';
|
|
2
2
|
import { FluxAnalysisActionType, FluxAnalysisReviewStatus, FluxAnalysisSortKey, FluxBalancesByMonth } from '../types/fluxAnalysisViewState';
|
|
3
3
|
import { CurrencyPayload } from '../../../commonPayloadTypes/v2/viewAndReportPayloadv2';
|
|
4
|
-
import { MonthYearPeriod } from '../../../commonStateTypes/timePeriod';
|
|
5
|
-
import { TenantView } from '../../../entity/tenant/tenantSelector';
|
|
6
4
|
export declare const toBalancesByMonthFromPayload: (month1: MonthBalancePayload, month2: MonthBalancePayload, currency: CurrencyPayload) => FluxBalancesByMonth;
|
|
7
5
|
export declare const toVendorFluxAnalysisSortKeyPayload: (sortKey: FluxAnalysisSortKey) => FluxAnalysisQuerySortKey;
|
|
8
6
|
export declare const toVendorFluxAnalysisReviewActionPayload: (actionType: FluxAnalysisActionType) => FluxAnalysisActionQueryType;
|
|
9
7
|
export declare const toVendorFluxAnalysisStatusFromPayload: (status: string) => FluxAnalysisReviewStatus;
|
|
10
|
-
export declare const getDefaultSelectedMonthAndYearForTenant: (currentTenant: TenantView) => MonthYearPeriod;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.toVendorFluxAnalysisStatusFromPayload = exports.toVendorFluxAnalysisReviewActionPayload = exports.toVendorFluxAnalysisSortKeyPayload = exports.toBalancesByMonthFromPayload = void 0;
|
|
4
4
|
const zeniDayJS_1 = require("../../../zeniDayJS");
|
|
5
|
-
const fetchAllTenantsEpic_1 = require("../../../entity/tenant/epic/fetchAllTenantsEpic");
|
|
6
|
-
const timePeriod_1 = require("../../../commonStateTypes/timePeriod");
|
|
7
5
|
const toBalancesByMonthFromPayload = (month1, month2, currency) => {
|
|
8
6
|
var _a, _b, _c, _d;
|
|
9
7
|
return {
|
|
@@ -67,18 +65,3 @@ const toVendorFluxAnalysisStatusFromPayload = (status) => {
|
|
|
67
65
|
}
|
|
68
66
|
};
|
|
69
67
|
exports.toVendorFluxAnalysisStatusFromPayload = toVendorFluxAnalysisStatusFromPayload;
|
|
70
|
-
// TODO - JK - Move it better place
|
|
71
|
-
const getDefaultSelectedMonthAndYearForTenant = (currentTenant) => {
|
|
72
|
-
const { zeniBookCloseMonthAndYear } = currentTenant;
|
|
73
|
-
if (zeniBookCloseMonthAndYear != null) {
|
|
74
|
-
const currentDate = (0, zeniDayJS_1.date)(`${zeniBookCloseMonthAndYear.year}-${zeniBookCloseMonthAndYear.month}-01`);
|
|
75
|
-
const nextMonthDate = currentDate.add(1, 'month');
|
|
76
|
-
const nextMonthPeriod = {
|
|
77
|
-
month: (0, timePeriod_1.toMonth)(nextMonthDate.month() + 1),
|
|
78
|
-
year: nextMonthDate.year(),
|
|
79
|
-
};
|
|
80
|
-
return nextMonthPeriod;
|
|
81
|
-
}
|
|
82
|
-
return fetchAllTenantsEpic_1.defaultMonthYearPeriod;
|
|
83
|
-
};
|
|
84
|
-
exports.getDefaultSelectedMonthAndYearForTenant = getDefaultSelectedMonthAndYearForTenant;
|
|
@@ -9,6 +9,9 @@ export declare const changeZeniPersonRolesEpic: (actions$: ActionsObservable<Act
|
|
|
9
9
|
} | {
|
|
10
10
|
payload: import("../../responsePayload").ZeniAPIStatus<Record<string, unknown>>;
|
|
11
11
|
type: string;
|
|
12
|
+
} | {
|
|
13
|
+
payload: UserRolePayload[];
|
|
14
|
+
type: string;
|
|
12
15
|
} | {
|
|
13
16
|
payload: {
|
|
14
17
|
userType: import("../userListView/userListViewState").UserListType;
|
|
@@ -33,9 +36,6 @@ export declare const changeZeniPersonRolesEpic: (actions$: ActionsObservable<Act
|
|
|
33
36
|
}[] | undefined;
|
|
34
37
|
};
|
|
35
38
|
type: string;
|
|
36
|
-
} | {
|
|
37
|
-
payload: UserRolePayload[];
|
|
38
|
-
type: string;
|
|
39
39
|
} | {
|
|
40
40
|
payload: {
|
|
41
41
|
companyId: string;
|
|
@@ -9,12 +9,18 @@ export declare const invitePeopleEpic: (actions$: ActionsObservable<ActionType>,
|
|
|
9
9
|
} | {
|
|
10
10
|
payload: import("../../responsePayload").ZeniAPIStatus<Record<string, unknown>>;
|
|
11
11
|
type: string;
|
|
12
|
+
} | {
|
|
13
|
+
payload: import("./peoplePayload").PeoplePayload;
|
|
14
|
+
type: string;
|
|
12
15
|
} | {
|
|
13
16
|
payload: {
|
|
14
|
-
|
|
15
|
-
|
|
17
|
+
users: import("../..").UserPayload[];
|
|
18
|
+
updateType?: import("../..").UpdateType | undefined;
|
|
16
19
|
};
|
|
17
20
|
type: string;
|
|
21
|
+
} | {
|
|
22
|
+
payload: UserRolePayload[];
|
|
23
|
+
type: string;
|
|
18
24
|
} | {
|
|
19
25
|
payload: {
|
|
20
26
|
userType: import("../userListView/userListViewState").UserListType;
|
|
@@ -22,7 +28,10 @@ export declare const invitePeopleEpic: (actions$: ActionsObservable<ActionType>,
|
|
|
22
28
|
};
|
|
23
29
|
type: string;
|
|
24
30
|
} | {
|
|
25
|
-
payload:
|
|
31
|
+
payload: {
|
|
32
|
+
userType: import("../userListView/userListViewState").UserListType;
|
|
33
|
+
id: string;
|
|
34
|
+
};
|
|
26
35
|
type: string;
|
|
27
36
|
} | {
|
|
28
37
|
payload: {
|
|
@@ -36,13 +45,4 @@ export declare const invitePeopleEpic: (actions$: ActionsObservable<ActionType>,
|
|
|
36
45
|
}[] | undefined;
|
|
37
46
|
};
|
|
38
47
|
type: string;
|
|
39
|
-
} | {
|
|
40
|
-
payload: {
|
|
41
|
-
users: import("../..").UserPayload[];
|
|
42
|
-
updateType?: import("../..").UpdateType | undefined;
|
|
43
|
-
};
|
|
44
|
-
type: string;
|
|
45
|
-
} | {
|
|
46
|
-
payload: UserRolePayload[];
|
|
47
|
-
type: string;
|
|
48
48
|
}>;
|
|
@@ -6,12 +6,18 @@ import { UserRolePayload } from '../../entity/userRole/userRolePayload';
|
|
|
6
6
|
export declare const inviteZeniPeopleEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<{
|
|
7
7
|
payload: import("../../responsePayload").ZeniAPIStatus<Record<string, unknown>>;
|
|
8
8
|
type: string;
|
|
9
|
+
} | {
|
|
10
|
+
payload: import("./peoplePayload").PeoplePayload;
|
|
11
|
+
type: string;
|
|
9
12
|
} | {
|
|
10
13
|
payload: {
|
|
11
|
-
|
|
12
|
-
|
|
14
|
+
users: import("../..").UserPayload[];
|
|
15
|
+
updateType?: import("../..").UpdateType | undefined;
|
|
13
16
|
};
|
|
14
17
|
type: string;
|
|
18
|
+
} | {
|
|
19
|
+
payload: UserRolePayload[];
|
|
20
|
+
type: string;
|
|
15
21
|
} | {
|
|
16
22
|
payload: {
|
|
17
23
|
userType: import("../userListView/userListViewState").UserListType;
|
|
@@ -19,7 +25,10 @@ export declare const inviteZeniPeopleEpic: (actions$: ActionsObservable<ActionTy
|
|
|
19
25
|
};
|
|
20
26
|
type: string;
|
|
21
27
|
} | {
|
|
22
|
-
payload:
|
|
28
|
+
payload: {
|
|
29
|
+
userType: import("../userListView/userListViewState").UserListType;
|
|
30
|
+
id: string;
|
|
31
|
+
};
|
|
23
32
|
type: string;
|
|
24
33
|
} | {
|
|
25
34
|
payload: {
|
|
@@ -33,15 +42,6 @@ export declare const inviteZeniPeopleEpic: (actions$: ActionsObservable<ActionTy
|
|
|
33
42
|
}[] | undefined;
|
|
34
43
|
};
|
|
35
44
|
type: string;
|
|
36
|
-
} | {
|
|
37
|
-
payload: {
|
|
38
|
-
users: import("../..").UserPayload[];
|
|
39
|
-
updateType?: import("../..").UpdateType | undefined;
|
|
40
|
-
};
|
|
41
|
-
type: string;
|
|
42
|
-
} | {
|
|
43
|
-
payload: UserRolePayload[];
|
|
44
|
-
type: string;
|
|
45
45
|
} | {
|
|
46
46
|
payload: {
|
|
47
47
|
companyId: string;
|
|
@@ -8,6 +8,9 @@ export declare type ActionType = ReturnType<typeof resendInvite> | ReturnType<ty
|
|
|
8
8
|
export declare const resendInviteEpic: (actions$: ActionsObservable<ActionType>, _: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<{
|
|
9
9
|
payload: string;
|
|
10
10
|
type: string;
|
|
11
|
+
} | {
|
|
12
|
+
payload: import("../../entity/userRole/userRolePayload").UserRolePayload[];
|
|
13
|
+
type: string;
|
|
11
14
|
} | {
|
|
12
15
|
payload: {
|
|
13
16
|
messageSection: "bill_pay_setup" | "reimbursement_setup" | "charge_card_setup" | "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "je_bill_link" | "je_posted" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "bill_pay_bulk_submit" | "bill_pay_bulk_processed" | "bill_pay_refund" | "bill_pay_retry" | "zeni_account_accept_term" | "update_vendor" | "data_refresh_update" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "save_vendor_marked_as_local_contractor" | "charge_card_accept_term" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "create_schedule" | "save_schedule" | "delete_schedule" | "ignore_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "issue_charge_cards" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "cancel_journal_entry" | "settings_accounting_accounts_updated" | "create_card_setup" | "confirm_card_setup" | "add_card_payment_source" | "fetch_payment_sources" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success" | "primary_funding_account_updated" | "task_time_spent_validation" | "transactions_reviewed" | "missing_receipts_attachment" | "flux_analysis_unreviewed" | "flux_analysis_reviewed" | "receipts_upload";
|
|
@@ -20,7 +23,4 @@ export declare const resendInviteEpic: (actions$: ActionsObservable<ActionType>,
|
|
|
20
23
|
}[] | undefined;
|
|
21
24
|
};
|
|
22
25
|
type: string;
|
|
23
|
-
} | {
|
|
24
|
-
payload: import("../../entity/userRole/userRolePayload").UserRolePayload[];
|
|
25
|
-
type: string;
|
|
26
26
|
}>;
|
|
@@ -31,13 +31,13 @@ export declare const updateReportUIOptionCOABalancesRangeEpic: (actions$: Action
|
|
|
31
31
|
highlightedCOABalancesRange?: import("../..").COABalancesRangeWithThisPeriod | undefined;
|
|
32
32
|
};
|
|
33
33
|
type: string;
|
|
34
|
+
} | {
|
|
35
|
+
payload: import("../..").COABalancesRange;
|
|
36
|
+
type: string;
|
|
34
37
|
} | {
|
|
35
38
|
payload: {
|
|
36
39
|
selectedCOABalancesRange: import("../..").COABalancesRange;
|
|
37
40
|
highlightedCOABalancesRange?: import("../..").COABalancesRangeWithThisPeriod | undefined;
|
|
38
41
|
};
|
|
39
42
|
type: string;
|
|
40
|
-
} | {
|
|
41
|
-
payload: import("../..").COABalancesRange;
|
|
42
|
-
type: string;
|
|
43
43
|
}>;
|
|
@@ -3,7 +3,7 @@ import { SortOrder } from '../../commonStateTypes/selectorTypes/sortOrderTypes';
|
|
|
3
3
|
import { OnboardingInfo } from '../../entity/company/companyStateTypes';
|
|
4
4
|
import { ZeniDate } from '../../zeniDayJS';
|
|
5
5
|
import { AuditSummaryPayload, ReviewCompanyPayload } from './reviewCompanyPayload';
|
|
6
|
-
export declare const toReviewColumnKeyType: (v: string) => "uncategorized" | "
|
|
6
|
+
export declare const toReviewColumnKeyType: (v: string) => "uncategorized" | "companyName" | "auditScore" | "miscategorized" | "notes" | "warnings" | "vendorReview" | "reviewVendor";
|
|
7
7
|
export declare type ReviewCompanyColumnKey = ReturnType<typeof toReviewColumnKeyType>;
|
|
8
8
|
export declare type ReviewTransactionsType = 'income' | 'expense';
|
|
9
9
|
export interface AuditSummary {
|
|
@@ -16,12 +16,6 @@ export declare const fetchMyProfileEpic: (actions$: ActionsObservable<ActionType
|
|
|
16
16
|
} | {
|
|
17
17
|
payload: import("../../../responsePayload").ZeniAPIStatus<Record<string, unknown>>;
|
|
18
18
|
type: string;
|
|
19
|
-
} | {
|
|
20
|
-
payload: {
|
|
21
|
-
userType: import("../../userListView/userListViewState").UserListType;
|
|
22
|
-
usersPayload: UserPayload[];
|
|
23
|
-
};
|
|
24
|
-
type: string;
|
|
25
19
|
} | {
|
|
26
20
|
payload: {
|
|
27
21
|
users: UserPayload[];
|
|
@@ -34,6 +28,12 @@ export declare const fetchMyProfileEpic: (actions$: ActionsObservable<ActionType
|
|
|
34
28
|
} | {
|
|
35
29
|
payload: import("../../../entity/address/addressPayload").AddressPayload[];
|
|
36
30
|
type: string;
|
|
31
|
+
} | {
|
|
32
|
+
payload: {
|
|
33
|
+
userType: import("../../userListView/userListViewState").UserListType;
|
|
34
|
+
usersPayload: UserPayload[];
|
|
35
|
+
};
|
|
36
|
+
type: string;
|
|
37
37
|
} | {
|
|
38
38
|
payload: {
|
|
39
39
|
userId: string;
|
|
@@ -9,7 +9,7 @@ export interface IntegrationsSettings {
|
|
|
9
9
|
export declare const REMINDER_NOTIFICATION_TYPES: readonly ["missingReceiptNotification", "uncategorizedTransactionNotification", "pendingBillApprovalNotification", "pendingReimbursementApprovalNotification"];
|
|
10
10
|
declare const toReminderTypeKey: (v: string) => "missingReceiptNotification" | "uncategorizedTransactionNotification" | "pendingBillApprovalNotification" | "pendingReimbursementApprovalNotification";
|
|
11
11
|
export declare type ReminderTypeKey = ReturnType<typeof toReminderTypeKey>;
|
|
12
|
-
export declare const toRemindersFrequencyType: (v: string) => "
|
|
12
|
+
export declare const toRemindersFrequencyType: (v: string) => "daily" | "weekly" | "bi-weekly" | "monthly";
|
|
13
13
|
export declare type FrequencyTypeKey = ReturnType<typeof toRemindersFrequencyType>;
|
|
14
14
|
export declare const NOTIFICATION_MODES: readonly ["email", "dashboard"];
|
|
15
15
|
export declare const toNotificationMode: (v: string) => "dashboard" | "email";
|
|
@@ -258,9 +258,14 @@ exports.showBillPayPromoPage = showBillPayPromoPage;
|
|
|
258
258
|
const getActualPaymentDate = (billPayInfo) => {
|
|
259
259
|
const billPaymentDate = billPayInfo.paymentDate;
|
|
260
260
|
const billScheduledDate = billPayInfo.scheduledDate;
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
261
|
+
const isRefundInitiated = billPayInfo.isRefundInitiated;
|
|
262
|
+
const isRefundComplete = billPayInfo.isRefundComplete;
|
|
263
|
+
const refundInitiationTime = billPayInfo.refundInitiationTime;
|
|
264
|
+
return isRefundInitiated === true && isRefundComplete === false
|
|
265
|
+
? refundInitiationTime
|
|
266
|
+
: billScheduledDate != null && billScheduledDate.isAfter(billPaymentDate)
|
|
267
|
+
? billScheduledDate
|
|
268
|
+
: billPaymentDate;
|
|
264
269
|
};
|
|
265
270
|
exports.getActualPaymentDate = getActualPaymentDate;
|
|
266
271
|
function isVerifiedStatusCode(statusCode) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const toSubscriptionSortKeyType: (v: string) => "status" | "controller" | "companyName" | "
|
|
1
|
+
export declare const toSubscriptionSortKeyType: (v: string) => "status" | "controller" | "companyName" | "monthlyRecurringRevenue" | "avg2MonthExpenses" | "notes" | "plans" | "planLowerLimit" | "planHigherLimit" | "addons" | "upgradeStatus";
|
|
2
2
|
export declare type SubscriptionViewSortKey = ReturnType<typeof toSubscriptionSortKeyType>;
|
|
3
3
|
export declare const SUBSCRIPTION_STATUS_CODES: string[];
|
|
4
4
|
declare const toSubscriptionStatusCodeType: (v: string) => string;
|
|
@@ -3,6 +3,6 @@ import { ZeniAPIStatus, ZeniReportData } from '../../responsePayload';
|
|
|
3
3
|
import { TopExState } from './topExState';
|
|
4
4
|
import { FetchState } from '../../commonStateTypes/common';
|
|
5
5
|
export declare const initialState: TopExState;
|
|
6
|
-
export declare const fetchTopEx: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, updateTopEx: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniReportData<TopExPayload>, string>, updateTopExFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, string>, clearTopEx: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, updateTopExTimeFrame: import("@reduxjs/toolkit").ActionCreatorWithPayload<"last_month" | "
|
|
6
|
+
export declare const fetchTopEx: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, updateTopEx: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniReportData<TopExPayload>, string>, updateTopExFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, string>, clearTopEx: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, updateTopExTimeFrame: import("@reduxjs/toolkit").ActionCreatorWithPayload<"last_month" | "last_3_months" | "last_6_months" | "last_12_months" | "last_year" | "this_week_to_date" | "last_week" | "this_month_to_date" | "this_year_to_date", string>, updateTopExDownloadState: import("@reduxjs/toolkit").ActionCreatorWithPayload<FetchState, string>;
|
|
7
7
|
declare const _default: import("@reduxjs/toolkit").Reducer<TopExState, import("@reduxjs/toolkit").AnyAction>;
|
|
8
8
|
export default _default;
|
|
@@ -11,12 +11,12 @@ export declare const getTopExpenses: (accountState: AccountState, topExState: To
|
|
|
11
11
|
status: import("../..").Status | undefined;
|
|
12
12
|
fetchState: import("../..").FetchState;
|
|
13
13
|
error: import("../..").ZeniAPIStatus<Record<string, unknown>> | undefined;
|
|
14
|
-
topExTimePeriod: "last_month" | "
|
|
14
|
+
topExTimePeriod: "last_month" | "last_3_months" | "last_6_months" | "last_12_months" | "last_year" | "this_week_to_date" | "last_week" | "this_month_to_date" | "this_year_to_date";
|
|
15
15
|
topExpenses: {
|
|
16
16
|
total: import("../..").Amount | undefined;
|
|
17
17
|
startDate: import("dayjs").Dayjs | undefined;
|
|
18
18
|
endDate: import("dayjs").Dayjs | undefined;
|
|
19
|
-
timePeriod: "last_month" | "
|
|
19
|
+
timePeriod: "last_month" | "last_3_months" | "last_6_months" | "last_12_months" | "last_year" | "this_week_to_date" | "last_week" | "this_month_to_date" | "this_year_to_date";
|
|
20
20
|
timePeriodLabel: string | undefined;
|
|
21
21
|
itemOrder: EntityOrder;
|
|
22
22
|
accountsOrdered: {
|
|
@@ -4,7 +4,7 @@ import { Amount } from '../../commonStateTypes/amount';
|
|
|
4
4
|
import { ZeniDate } from '../../zeniDayJS';
|
|
5
5
|
import { Balance } from '../../commonStateTypes/balance';
|
|
6
6
|
export declare const TOP_EX_TIME_PERIODS: readonly ["this_week_to_date", "last_week", "this_month_to_date", "last_month", "last_3_months", "last_6_months", "last_12_months", "this_year_to_date", "last_year"];
|
|
7
|
-
export declare const toTopExTimePeriod: (v: string) => "last_month" | "
|
|
7
|
+
export declare const toTopExTimePeriod: (v: string) => "last_month" | "last_3_months" | "last_6_months" | "last_12_months" | "last_year" | "this_week_to_date" | "last_week" | "this_month_to_date" | "this_year_to_date";
|
|
8
8
|
export declare type TopExTimePeriod = ReturnType<typeof toTopExTimePeriod>;
|
|
9
9
|
export interface AccountBalance {
|
|
10
10
|
accountId: ID;
|
|
@@ -2,7 +2,7 @@ import { GlobalMerchantBase } from '../../../../entity/globalMerchant/globalMerc
|
|
|
2
2
|
import { ID } from '../../../../commonStateTypes/common';
|
|
3
3
|
import { RecommendedNonExistingGlobalMerchant } from '../../vendorFirstReviewView/vendorFirstReviewViewState';
|
|
4
4
|
import { RecommendedNonExistingGlobalMerchantBasePayload, VendorReviewViewAllRecommendationsPayload } from '../payload/commonTypes';
|
|
5
|
-
export declare const toVendorFirstReviewViewStatusesTypeStrict: (v: string) => "pending" | "
|
|
5
|
+
export declare const toVendorFirstReviewViewStatusesTypeStrict: (v: string) => "pending" | "reviewed" | "under_review" | "merge_in_qbo" | "merge_in_netsuite" | "review_rejected" | undefined;
|
|
6
6
|
declare type VendorFirstReviewViewStatusesKey = ReturnType<typeof toVendorFirstReviewViewStatusesTypeStrict>;
|
|
7
7
|
export declare type ReviewStatus = {
|
|
8
8
|
code: VendorFirstReviewViewStatusesKey;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.13.
|
|
3
|
+
"version": "4.13.99",
|
|
4
4
|
"description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|