@zeniai/client-epic-state 4.19.32 → 4.19.34
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/esm/init.js +15 -2
- package/lib/init.d.ts +7 -1
- package/lib/init.js +48 -2
- package/lib/tsconfig.typecheck.tsbuildinfo +1 -0
- package/lib/view/companyView/epic/companyPassport/saveCompanyPassportDetailsEpic.d.ts +6 -6
- package/lib/view/financeStatement/financeStatementEpic.d.ts +4 -4
- package/lib/view/insightsCard/insightsCardEpic.d.ts +4 -4
- package/lib/view/people/changeZeniPersonRolesEpic.d.ts +5 -5
- package/lib/view/people/invitePeopleEpic.d.ts +3 -3
- package/lib/view/reportUIOptions/updateReportUIOptionThisPeriodEpic.d.ts +7 -7
- package/lib/view/spendManagement/billPay/billDetailView/epics/fetchBillDetailEpic.d.ts +6 -6
- package/lib/view/tagView/epics/createTagEpic.d.ts +4 -4
- package/package.json +1 -1
|
@@ -4,12 +4,6 @@ import { companyPassportUpdateCompanyDetails, companyPassportUpdateCompanyOffice
|
|
|
4
4
|
import { CompanyOfficerLocalData } from '../../types/companyPassport/companyUsersLocalData';
|
|
5
5
|
export type ActionType = ReturnType<typeof saveCompanyPassportDetails> | ReturnType<typeof companyPassportUpdateCompanyDetails> | ReturnType<typeof companyPassportUpdatePrimaryContact> | ReturnType<typeof companyPassportUpdateCompanyOfficer>;
|
|
6
6
|
export declare const saveCompanyPassportDetailsEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>) => import("rxjs").Observable<{
|
|
7
|
-
payload: {
|
|
8
|
-
companyId: string;
|
|
9
|
-
primaryContact: import("../../types/companyPassport/companyUsersLocalData").PrimaryContactLocalData;
|
|
10
|
-
};
|
|
11
|
-
type: "companyView/companyPassportUpdatePrimaryContact";
|
|
12
|
-
} | {
|
|
13
7
|
payload: {
|
|
14
8
|
companyId: string;
|
|
15
9
|
officers: CompanyOfficerLocalData[];
|
|
@@ -21,4 +15,10 @@ export declare const saveCompanyPassportDetailsEpic: (actions$: ActionsObservabl
|
|
|
21
15
|
companyDetails: import("../../../..").CompanyDetailsLocalData;
|
|
22
16
|
};
|
|
23
17
|
type: "companyView/companyPassportUpdateCompanyDetails";
|
|
18
|
+
} | {
|
|
19
|
+
payload: {
|
|
20
|
+
companyId: string;
|
|
21
|
+
primaryContact: import("../../types/companyPassport/companyUsersLocalData").PrimaryContactLocalData;
|
|
22
|
+
};
|
|
23
|
+
type: "companyView/companyPassportUpdatePrimaryContact";
|
|
24
24
|
}>;
|
|
@@ -39,15 +39,15 @@ export declare const fetchFinanceStatementEpic: (actions$: ActionsObservable<Act
|
|
|
39
39
|
} | {
|
|
40
40
|
payload: {
|
|
41
41
|
forecastId: string | undefined;
|
|
42
|
-
timeframe: "month" | "year" | "quarter";
|
|
43
|
-
fetchFullReport: boolean;
|
|
44
42
|
cacheOverride: boolean;
|
|
45
43
|
};
|
|
46
|
-
type: "profitAndLoss/
|
|
44
|
+
type: "profitAndLoss/fetchProfitAndLoss";
|
|
47
45
|
} | {
|
|
48
46
|
payload: {
|
|
49
47
|
forecastId: string | undefined;
|
|
48
|
+
timeframe: "month" | "year" | "quarter";
|
|
49
|
+
fetchFullReport: boolean;
|
|
50
50
|
cacheOverride: boolean;
|
|
51
51
|
};
|
|
52
|
-
type: "profitAndLoss/
|
|
52
|
+
type: "profitAndLoss/fetchProfitAndLossForTimeframe";
|
|
53
53
|
}>;
|
|
@@ -4,12 +4,12 @@ import { RootState } from '../../reducer';
|
|
|
4
4
|
import { ZeniAPI } from '../../zeniAPI';
|
|
5
5
|
import { clearInsightsCard, fetchInsightsCard, updateInsightsCard, updateInsightsCardFailure } from './insightsCardReducer';
|
|
6
6
|
export type ActionType = ReturnType<typeof fetchInsightsCard> | ReturnType<typeof updateInsightsCard> | ReturnType<typeof updateInsightsCardFailure> | ReturnType<typeof clearInsightsCard> | ReturnType<typeof updateInsights>;
|
|
7
|
-
export declare const fetchInsightsCardEpic: (actions$: ActionsObservable<ActionType>, _: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<{
|
|
7
|
+
export declare const fetchInsightsCardEpic: (actions$: ActionsObservable<ActionType>, _: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<import("@reduxjs/toolkit").PayloadAction<import("../../entity/insights/insightPayload").InsightPayload[], "insights/updateInsights", {
|
|
8
|
+
updateType: import("../..").UpdateType;
|
|
9
|
+
}, never> | {
|
|
8
10
|
payload: import("../../responsePayload").ZeniAPIResponse<import("./insightsCardPayload").InsightsCardPayload, Record<string, unknown>>;
|
|
9
11
|
type: "insightsCard/updateInsightsCard";
|
|
10
12
|
} | {
|
|
11
13
|
payload: import("../../responsePayload").ZeniAPIStatus<Record<string, unknown>>;
|
|
12
14
|
type: "insightsCard/updateInsightsCardFailure";
|
|
13
|
-
}
|
|
14
|
-
updateType: import("../..").UpdateType;
|
|
15
|
-
}, never>>;
|
|
15
|
+
}>;
|
|
@@ -18,6 +18,11 @@ export declare const changeZeniPersonRolesEpic: (actions$: ActionsObservable<Act
|
|
|
18
18
|
} | {
|
|
19
19
|
payload: UserRolePayload[];
|
|
20
20
|
type: "userRole/updateUserRoles";
|
|
21
|
+
} | {
|
|
22
|
+
payload: {
|
|
23
|
+
companyId: string;
|
|
24
|
+
};
|
|
25
|
+
type: "people/changeZeniPersonRoles";
|
|
21
26
|
} | {
|
|
22
27
|
payload: {
|
|
23
28
|
id: import("../..").ID;
|
|
@@ -30,11 +35,6 @@ export declare const changeZeniPersonRolesEpic: (actions$: ActionsObservable<Act
|
|
|
30
35
|
userType: import("../userListView/userListViewState").UserListType;
|
|
31
36
|
};
|
|
32
37
|
type: "userListView/removeUserId";
|
|
33
|
-
} | {
|
|
34
|
-
payload: {
|
|
35
|
-
companyId: string;
|
|
36
|
-
};
|
|
37
|
-
type: "people/changeZeniPersonRoles";
|
|
38
38
|
} | {
|
|
39
39
|
payload: undefined;
|
|
40
40
|
type: "people/changePersonRoleSuccess";
|
|
@@ -24,9 +24,6 @@ export declare const invitePeopleEpic: (actions$: ActionsObservable<ActionType>,
|
|
|
24
24
|
} | {
|
|
25
25
|
payload: UserRolePayload[];
|
|
26
26
|
type: "userRole/updateUserRoles";
|
|
27
|
-
} | {
|
|
28
|
-
payload: undefined;
|
|
29
|
-
type: "people/invitePeople";
|
|
30
27
|
} | {
|
|
31
28
|
payload: {
|
|
32
29
|
id: import("../..").ID;
|
|
@@ -39,6 +36,9 @@ export declare const invitePeopleEpic: (actions$: ActionsObservable<ActionType>,
|
|
|
39
36
|
userType: import("../userListView/userListViewState").UserListType;
|
|
40
37
|
};
|
|
41
38
|
type: "userListView/removeUserId";
|
|
39
|
+
} | {
|
|
40
|
+
payload: undefined;
|
|
41
|
+
type: "people/invitePeople";
|
|
42
42
|
} | {
|
|
43
43
|
payload: import("./peoplePayload").PeoplePayload;
|
|
44
44
|
type: "people/invitePeopleSuccess";
|
|
@@ -10,27 +10,27 @@ export declare const updateReportUIOptionThisPeriodEpic: (actions$: ActionsObser
|
|
|
10
10
|
payload: {
|
|
11
11
|
thisPeriod: import("../..").TimeframeTick | undefined;
|
|
12
12
|
};
|
|
13
|
-
type: "
|
|
13
|
+
type: "net_burn_or_income/updateNetBurnOrIncomeThisPeriod";
|
|
14
14
|
} | {
|
|
15
15
|
payload: {
|
|
16
|
-
thisPeriod
|
|
16
|
+
thisPeriod?: import("../..").TimeframeTick;
|
|
17
17
|
};
|
|
18
|
-
type: "
|
|
18
|
+
type: "operatingExpenses/updateOpExThisPeriod";
|
|
19
19
|
} | {
|
|
20
20
|
payload: {
|
|
21
21
|
thisPeriod: import("../..").TimeframeTick | undefined;
|
|
22
22
|
};
|
|
23
|
-
type: "
|
|
23
|
+
type: "revenue/updateRevenueThisPeriod";
|
|
24
24
|
} | {
|
|
25
25
|
payload: {
|
|
26
|
-
thisPeriod
|
|
26
|
+
thisPeriod: import("../..").TimeframeTick | undefined;
|
|
27
27
|
};
|
|
28
|
-
type: "
|
|
28
|
+
type: "cashPosition/updateCashPositionThisPeriod";
|
|
29
29
|
} | {
|
|
30
30
|
payload: {
|
|
31
31
|
thisPeriod: import("../..").TimeframeTick | undefined;
|
|
32
32
|
};
|
|
33
|
-
type: "
|
|
33
|
+
type: "cashInCashOut/updateCashInCashOutThisPeriod";
|
|
34
34
|
} | {
|
|
35
35
|
payload: {
|
|
36
36
|
coaBalances: import("../..").COABalance[];
|
|
@@ -26,6 +26,12 @@ import { fetchBillDetail, fetchEligibleActionsForBill, removeBillDetail, updateB
|
|
|
26
26
|
export type ActionType = ReturnType<typeof fetchBillDetail> | ReturnType<typeof updateBillTransaction> | ReturnType<typeof updateBankAccounts> | ReturnType<typeof updatePaymentInstruments> | ReturnType<typeof updateBillDetailFetchState> | ReturnType<typeof removeBillTransaction> | ReturnType<typeof removeBillDetail> | ReturnType<typeof updatePaymentAccounts> | ReturnType<typeof updateAccounts> | ReturnType<typeof updateAllUsers> | ReturnType<typeof updateApprovalRules> | ReturnType<typeof updateEntityApprovalStatus> | ReturnType<typeof fetchPreviousBills> | ReturnType<typeof updateBillDetail> | ReturnType<typeof updateClasses> | ReturnType<typeof updateVendors> | ReturnType<typeof updateContacts> | ReturnType<typeof updateAddresses> | ReturnType<typeof fetchEntityHistory> | ReturnType<typeof fetchVendorsList> | ReturnType<typeof fetchDuplicateBill> | ReturnType<typeof convertAmountToHomeCurrency> | ReturnType<typeof waitForVendorByNameThenUpdateBillDetail> | ReturnType<typeof updateRecurringBillConfigs> | ReturnType<typeof updateRecurringBills> | ReturnType<typeof updateDepositAccounts> | ReturnType<typeof fetchEligibleActionsForBill>;
|
|
27
27
|
export declare const fetchBillDetailEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|
|
28
28
|
export declare const waitForVendorByNameThenUpdateBillDetailEpic: (actions$: ActionsObservable<ActionType>, _: StateObservable<RootState>) => Observable<{
|
|
29
|
+
payload: {
|
|
30
|
+
billDetail: import("../billDetailViewPayload").BillDetailViewPayload;
|
|
31
|
+
billId: ID;
|
|
32
|
+
};
|
|
33
|
+
type: "billDetailView/updateBillDetail";
|
|
34
|
+
} | {
|
|
29
35
|
payload: {
|
|
30
36
|
billId: string;
|
|
31
37
|
fetchState: import("../../../../../commonStateTypes/common").FetchState;
|
|
@@ -33,10 +39,4 @@ export declare const waitForVendorByNameThenUpdateBillDetailEpic: (actions$: Act
|
|
|
33
39
|
vendorId: string | undefined;
|
|
34
40
|
};
|
|
35
41
|
type: "billDetailView/updateBillDetailFetchState";
|
|
36
|
-
} | {
|
|
37
|
-
payload: {
|
|
38
|
-
billDetail: import("../billDetailViewPayload").BillDetailViewPayload;
|
|
39
|
-
billId: ID;
|
|
40
|
-
};
|
|
41
|
-
type: "billDetailView/updateBillDetail";
|
|
42
42
|
}>;
|
|
@@ -19,9 +19,7 @@ export declare const createTagEpic: (actions$: ActionsObservable<ActionType>, _s
|
|
|
19
19
|
}[];
|
|
20
20
|
};
|
|
21
21
|
type: "snackbar/openSnackbar";
|
|
22
|
-
} |
|
|
23
|
-
updateType: import("../../../commonStateTypes/common").UpdateType;
|
|
24
|
-
}, never> | {
|
|
22
|
+
} | {
|
|
25
23
|
payload: {
|
|
26
24
|
fetchState: import("../../../commonStateTypes/common").FetchState;
|
|
27
25
|
tagsId: ID[];
|
|
@@ -34,4 +32,6 @@ export declare const createTagEpic: (actions$: ActionsObservable<ActionType>, _s
|
|
|
34
32
|
taskId?: ID;
|
|
35
33
|
};
|
|
36
34
|
type: "taskDetailView/updateCreatedTagToLocalStore";
|
|
37
|
-
}
|
|
35
|
+
} | import("@reduxjs/toolkit").PayloadAction<import("../../../entity/tag/tagPayload").TagPayload[], "tag/updateTags", {
|
|
36
|
+
updateType: import("../../../commonStateTypes/common").UpdateType;
|
|
37
|
+
}, never>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.19.
|
|
3
|
+
"version": "4.19.34",
|
|
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",
|