@zeniai/client-epic-state 5.3.9 → 5.3.10-beta0KB
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 +3 -1
- package/lib/epic.js +4 -0
- package/lib/esm/epic.js +4 -0
- package/lib/esm/index.js +3 -0
- package/lib/esm/reducer.js +3 -0
- package/lib/esm/view/coachmarkPreferences/coachmarkPreferencesPayload.js +1 -0
- package/lib/esm/view/coachmarkPreferences/coachmarkPreferencesReducer.js +62 -0
- package/lib/esm/view/coachmarkPreferences/coachmarkPreferencesSelector.js +9 -0
- package/lib/esm/view/coachmarkPreferences/coachmarkPreferencesState.js +1 -0
- package/lib/esm/view/coachmarkPreferences/epic/fetchCoachmarkPreferencesEpic.js +18 -0
- package/lib/esm/view/coachmarkPreferences/epic/markCoachmarkDismissedEpic.js +27 -0
- package/lib/esm/view/dashboardLayout/fetchDashboardLayoutEpic.js +4 -2
- package/lib/esm/view/transactionDetail/createTransaction/createTransactionPayload.js +11 -3
- package/lib/esm/view/transactionDetail/createTransaction/createTransactionState.js +1 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +47 -40
- package/lib/reducer.d.ts +1 -0
- package/lib/reducer.js +3 -0
- package/lib/rootStateTypes.d.ts +2 -0
- package/lib/view/coachmarkPreferences/coachmarkPreferencesPayload.d.ts +6 -0
- package/lib/view/coachmarkPreferences/coachmarkPreferencesPayload.js +2 -0
- package/lib/view/coachmarkPreferences/coachmarkPreferencesReducer.d.ts +6 -0
- package/lib/view/coachmarkPreferences/coachmarkPreferencesReducer.js +66 -0
- package/lib/view/coachmarkPreferences/coachmarkPreferencesSelector.d.ts +5 -0
- package/lib/view/coachmarkPreferences/coachmarkPreferencesSelector.js +14 -0
- package/lib/view/coachmarkPreferences/coachmarkPreferencesState.d.ts +5 -0
- package/lib/view/coachmarkPreferences/coachmarkPreferencesState.js +2 -0
- package/lib/view/coachmarkPreferences/epic/fetchCoachmarkPreferencesEpic.d.ts +12 -0
- package/lib/view/coachmarkPreferences/epic/fetchCoachmarkPreferencesEpic.js +22 -0
- package/lib/view/coachmarkPreferences/epic/markCoachmarkDismissedEpic.d.ts +6 -0
- package/lib/view/coachmarkPreferences/epic/markCoachmarkDismissedEpic.js +31 -0
- package/lib/view/dashboardLayout/fetchDashboardLayoutEpic.js +4 -2
- package/lib/view/transactionDetail/createTransaction/createTransactionPayload.d.ts +5 -3
- package/lib/view/transactionDetail/createTransaction/createTransactionPayload.js +11 -3
- package/lib/view/transactionDetail/createTransaction/createTransactionState.d.ts +4 -2
- package/lib/view/transactionDetail/createTransaction/createTransactionState.js +1 -0
- package/lib/view/transactionDetail/transactionDetailReducer.d.ts +20 -20
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getDismissedCoachmarks = getDismissedCoachmarks;
|
|
4
|
+
exports.isCoachmarkDismissed = isCoachmarkDismissed;
|
|
5
|
+
exports.getCoachmarkPreferencesFetchState = getCoachmarkPreferencesFetchState;
|
|
6
|
+
function getDismissedCoachmarks(state) {
|
|
7
|
+
return state.coachmarkPreferencesState.dismissedCoachmarks;
|
|
8
|
+
}
|
|
9
|
+
function isCoachmarkDismissed(state, coachmarkId) {
|
|
10
|
+
return state.coachmarkPreferencesState.dismissedCoachmarks.includes(coachmarkId);
|
|
11
|
+
}
|
|
12
|
+
function getCoachmarkPreferencesFetchState(state) {
|
|
13
|
+
return state.coachmarkPreferencesState.fetchState;
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
|
+
import { RootState } from '../../../rootStateTypes';
|
|
3
|
+
import { ZeniAPI } from '../../../zeniAPI';
|
|
4
|
+
import { fetchCoachmarkPreferences, fetchCoachmarkPreferencesFailure, fetchCoachmarkPreferencesSuccess } from '../coachmarkPreferencesReducer';
|
|
5
|
+
export type ActionType = ReturnType<typeof fetchCoachmarkPreferences> | ReturnType<typeof fetchCoachmarkPreferencesSuccess> | ReturnType<typeof fetchCoachmarkPreferencesFailure>;
|
|
6
|
+
export declare const fetchCoachmarkPreferencesEpic: (actions$: ActionsObservable<ActionType>, _: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<{
|
|
7
|
+
payload: string[];
|
|
8
|
+
type: "coachmarkPreferences/fetchCoachmarkPreferencesSuccess";
|
|
9
|
+
} | {
|
|
10
|
+
payload: import("../../../zeniAPIStatus").ZeniAPIStatus<Record<string, unknown>>;
|
|
11
|
+
type: "coachmarkPreferences/fetchCoachmarkPreferencesFailure";
|
|
12
|
+
}>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fetchCoachmarkPreferencesEpic = void 0;
|
|
4
|
+
const rxjs_1 = require("rxjs");
|
|
5
|
+
const operators_1 = require("rxjs/operators");
|
|
6
|
+
const responsePayload_1 = require("../../../responsePayload");
|
|
7
|
+
const coachmarkPreferencesReducer_1 = require("../coachmarkPreferencesReducer");
|
|
8
|
+
const fetchCoachmarkPreferencesEpic = (actions$, _, zeniAPI) => actions$.pipe((0, operators_1.filter)(coachmarkPreferencesReducer_1.fetchCoachmarkPreferences.match), (0, operators_1.switchMap)(() => zeniAPI
|
|
9
|
+
.getJSON(`${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/webapp-preferences`)
|
|
10
|
+
.pipe((0, operators_1.map)((response) => {
|
|
11
|
+
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data) {
|
|
12
|
+
return (0, coachmarkPreferencesReducer_1.fetchCoachmarkPreferencesSuccess)(response.data.dismissed_coachmarks ?? []);
|
|
13
|
+
}
|
|
14
|
+
// No preferences doc yet (404) means nothing has been dismissed —
|
|
15
|
+
// treat it as an empty set so first-time users still see coachmarks.
|
|
16
|
+
if (response.status.code === 404) {
|
|
17
|
+
return (0, coachmarkPreferencesReducer_1.fetchCoachmarkPreferencesSuccess)([]);
|
|
18
|
+
}
|
|
19
|
+
return (0, coachmarkPreferencesReducer_1.fetchCoachmarkPreferencesFailure)(response.status);
|
|
20
|
+
}), (0, operators_1.catchError)((error) => (0, rxjs_1.of)((0, coachmarkPreferencesReducer_1.fetchCoachmarkPreferencesFailure)((0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', 'Coachmark preferences REST API call errored out: ' +
|
|
21
|
+
(error instanceof Error ? error.message : String(error)))))))));
|
|
22
|
+
exports.fetchCoachmarkPreferencesEpic = fetchCoachmarkPreferencesEpic;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
|
+
import { RootState } from '../../../rootStateTypes';
|
|
3
|
+
import { ZeniAPI } from '../../../zeniAPI';
|
|
4
|
+
import { markCoachmarkDismissed, markCoachmarkDismissedFailure, markCoachmarkDismissedSuccess } from '../coachmarkPreferencesReducer';
|
|
5
|
+
export type ActionType = ReturnType<typeof markCoachmarkDismissed> | ReturnType<typeof markCoachmarkDismissedSuccess> | ReturnType<typeof markCoachmarkDismissedFailure>;
|
|
6
|
+
export declare const markCoachmarkDismissedEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<ActionType>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.markCoachmarkDismissedEpic = void 0;
|
|
4
|
+
const rxjs_1 = require("rxjs");
|
|
5
|
+
const operators_1 = require("rxjs/operators");
|
|
6
|
+
const responsePayload_1 = require("../../../responsePayload");
|
|
7
|
+
const coachmarkPreferencesReducer_1 = require("../coachmarkPreferencesReducer");
|
|
8
|
+
const markCoachmarkDismissedEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(coachmarkPreferencesReducer_1.markCoachmarkDismissed.match), (0, operators_1.concatMap)(() => {
|
|
9
|
+
// The reducer has already appended the id optimistically, so state holds
|
|
10
|
+
// the full set to persist.
|
|
11
|
+
const dismissedCoachmarks = state$.value.coachmarkPreferencesState.dismissedCoachmarks;
|
|
12
|
+
const url = `${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/webapp-preferences`;
|
|
13
|
+
const body = { dismissed_coachmarks: dismissedCoachmarks };
|
|
14
|
+
const toResultAction = (response) => (0, responsePayload_1.isSuccessResponse)(response) && response.data
|
|
15
|
+
? (0, coachmarkPreferencesReducer_1.markCoachmarkDismissedSuccess)(response.data.dismissed_coachmarks ?? dismissedCoachmarks)
|
|
16
|
+
: (0, coachmarkPreferencesReducer_1.markCoachmarkDismissedFailure)(response.status);
|
|
17
|
+
return zeniAPI
|
|
18
|
+
.putAndGetJSON(url, body)
|
|
19
|
+
.pipe((0, operators_1.mergeMap)((putResponse) => {
|
|
20
|
+
// No preferences doc yet — create it with POST.
|
|
21
|
+
if (!(0, responsePayload_1.isSuccessResponse)(putResponse) &&
|
|
22
|
+
putResponse.status.code === 404) {
|
|
23
|
+
return zeniAPI
|
|
24
|
+
.postAndGetJSON(url, body)
|
|
25
|
+
.pipe((0, operators_1.map)(toResultAction));
|
|
26
|
+
}
|
|
27
|
+
return (0, rxjs_1.of)(toResultAction(putResponse));
|
|
28
|
+
}), (0, operators_1.catchError)((error) => (0, rxjs_1.of)((0, coachmarkPreferencesReducer_1.markCoachmarkDismissedFailure)((0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', 'Coachmark dismiss REST API call errored out: ' +
|
|
29
|
+
(error instanceof Error ? error.message : String(error)))))));
|
|
30
|
+
}));
|
|
31
|
+
exports.markCoachmarkDismissedEpic = markCoachmarkDismissedEpic;
|
|
@@ -10,8 +10,10 @@ const fetchDashboardLayoutEpic = (actions$, _, zeniAPI) => actions$.pipe((0, ope
|
|
|
10
10
|
.getJSON(`${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/webapp-preferences`)
|
|
11
11
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
12
12
|
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data) {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
// A coachmark-first user has a preferences doc with no
|
|
14
|
+
// card_order (or none at all) — fall back to the default order.
|
|
15
|
+
const cardOrder = (response.data.preferences?.card_order ??
|
|
16
|
+
dashboardLayoutReducer_2.defaultCardsInOrder);
|
|
15
17
|
let updatedCardOrder = [...cardOrder];
|
|
16
18
|
const treasuryIdx = updatedCardOrder.indexOf('treasury_promo_card');
|
|
17
19
|
const zeniPromoIdx = updatedCardOrder.indexOf('zeni_promo_card');
|
|
@@ -13,8 +13,8 @@ import { CreateTransactionLocalData } from './createTransactionState';
|
|
|
13
13
|
* constant NAMES; ZENI_LINE_DETAIL_TYPE_TO_QBO_LINE_DETAIL_TYPE_MAP converts them for the
|
|
14
14
|
* body the backend sends on to QuickBooks, never for ours.
|
|
15
15
|
* 2. The QBO Purchases (check, credit_card_credit) send their reference number as
|
|
16
|
-
* `document_number`; a journal entry sends its entry name
|
|
17
|
-
* QBO's DocNumber, but QBOJournalEntry reads only `document_id`.
|
|
16
|
+
* `document_number`; a journal entry sends its entry name, and a bill its bill number, as
|
|
17
|
+
* `document_id`. All land on QBO's DocNumber, but QBOJournalEntry reads only `document_id`.
|
|
18
18
|
*/
|
|
19
19
|
export interface CreateTransactionAccountPayload {
|
|
20
20
|
qbo_id: ID;
|
|
@@ -53,10 +53,12 @@ export interface CreateTransactionRemitToAddressPayload {
|
|
|
53
53
|
export interface CreateTransactionRequest extends Record<string, unknown> {
|
|
54
54
|
transaction_date: string;
|
|
55
55
|
transaction_type: string;
|
|
56
|
-
/** journal_entry entry name (QBO DocNumber). */
|
|
56
|
+
/** journal_entry entry name or bill number (QBO DocNumber). */
|
|
57
57
|
document_id?: string;
|
|
58
58
|
/** check / credit_card_credit reference number (QBO Purchase). */
|
|
59
59
|
document_number?: string;
|
|
60
|
+
/** bill only. */
|
|
61
|
+
due_date?: string;
|
|
60
62
|
from_account_id?: ID;
|
|
61
63
|
/** credit_card_credit is modelled as a Purchase with Credit: true. */
|
|
62
64
|
is_credit?: boolean;
|
|
@@ -135,13 +135,21 @@ const prepareCreateTransactionPayload = (state, localData) => {
|
|
|
135
135
|
};
|
|
136
136
|
}
|
|
137
137
|
const lines = localData.lines.map((line) => toLinePayload(state, line, transactionType));
|
|
138
|
+
const documentId = localData.documentNumber != null && localData.documentNumber !== ''
|
|
139
|
+
? { document_id: localData.documentNumber }
|
|
140
|
+
: {};
|
|
138
141
|
if (transactionType === 'journal_entry') {
|
|
142
|
+
return { ...base, ...documentId, lines };
|
|
143
|
+
}
|
|
144
|
+
// A bill posts to accounts payable, so it carries no header account or payment type.
|
|
145
|
+
if (transactionType === 'bill') {
|
|
139
146
|
return {
|
|
140
147
|
...base,
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
148
|
+
vendor_id: toQboVendorId(state, localData.vendorId),
|
|
149
|
+
...(localData.dueDate != null && {
|
|
150
|
+
due_date: localData.dueDate.format(timePeriod_1.DEFAULT_DATE_FORMAT),
|
|
144
151
|
}),
|
|
152
|
+
...documentId,
|
|
145
153
|
lines,
|
|
146
154
|
};
|
|
147
155
|
}
|
|
@@ -9,7 +9,7 @@ import { ZeniDate } from '../../../zeniDayJS';
|
|
|
9
9
|
* The transaction types the Create Transaction flow can originate. A narrow subset of
|
|
10
10
|
* TransactionType -- everything else is read-only and arrives via sync.
|
|
11
11
|
*/
|
|
12
|
-
export declare const ALL_CREATABLE_TRANSACTION_TYPES: readonly ["expense", "check", "credit_card_credit", "transfer", "journal_entry"];
|
|
12
|
+
export declare const ALL_CREATABLE_TRANSACTION_TYPES: readonly ["expense", "check", "credit_card_credit", "transfer", "journal_entry", "bill"];
|
|
13
13
|
export type CreatableTransactionType = (typeof ALL_CREATABLE_TRANSACTION_TYPES)[number];
|
|
14
14
|
/**
|
|
15
15
|
* The wire shape the create endpoint expects for a check's remit-to address. Deliberately not
|
|
@@ -54,8 +54,10 @@ export interface CreateTransactionLocalData {
|
|
|
54
54
|
/** Empty for transfer, which has no lines at all. */
|
|
55
55
|
lines: CreateTransactionLineLocalData[];
|
|
56
56
|
transactionType: CreatableTransactionType;
|
|
57
|
-
/** check / credit_card_credit reference number,
|
|
57
|
+
/** check / credit_card_credit reference number, journal_entry entry name, or bill number. */
|
|
58
58
|
documentNumber?: string;
|
|
59
|
+
/** bill only. */
|
|
60
|
+
dueDate?: ZeniDate;
|
|
59
61
|
/** transfer */
|
|
60
62
|
fromAccountId?: ID;
|
|
61
63
|
paymentType?: PaymentType;
|
|
@@ -177,39 +177,39 @@ export declare const downloadAccountingProviderAttachment: import("@reduxjs/tool
|
|
|
177
177
|
}, "transactionDetail/deleteSplitLine", never, never>, toggleSplitEditMode: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[transactionId: TransactionID, editMode: boolean], {
|
|
178
178
|
transactionId: TransactionID;
|
|
179
179
|
editMode: boolean;
|
|
180
|
-
}, "transactionDetail/toggleSplitEditMode", never, never>, initializeCreateTransactionLocalData: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[transactionType: "expense" | "check" | "credit_card_credit" | "transfer" | "journal_entry"], {
|
|
181
|
-
transactionType: "expense" | "check" | "credit_card_credit" | "transfer" | "journal_entry";
|
|
182
|
-
}, "transactionDetail/initializeCreateTransactionLocalData", never, never>, updateCreateTransactionLocalData: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[transactionType: "expense" | "check" | "credit_card_credit" | "transfer" | "journal_entry", localData: Partial<CreateTransactionLocalData>], {
|
|
183
|
-
transactionType: "expense" | "check" | "credit_card_credit" | "transfer" | "journal_entry";
|
|
180
|
+
}, "transactionDetail/toggleSplitEditMode", never, never>, initializeCreateTransactionLocalData: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[transactionType: "expense" | "check" | "bill" | "credit_card_credit" | "transfer" | "journal_entry"], {
|
|
181
|
+
transactionType: "expense" | "check" | "bill" | "credit_card_credit" | "transfer" | "journal_entry";
|
|
182
|
+
}, "transactionDetail/initializeCreateTransactionLocalData", never, never>, updateCreateTransactionLocalData: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[transactionType: "expense" | "check" | "bill" | "credit_card_credit" | "transfer" | "journal_entry", localData: Partial<CreateTransactionLocalData>], {
|
|
183
|
+
transactionType: "expense" | "check" | "bill" | "credit_card_credit" | "transfer" | "journal_entry";
|
|
184
184
|
localData: Partial<CreateTransactionLocalData>;
|
|
185
|
-
}, "transactionDetail/updateCreateTransactionLocalData", never, never>, updateCreateTransactionLineLocalData: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[transactionType: "expense" | "check" | "credit_card_credit" | "transfer" | "journal_entry", lineId: string, lineUpdates: Partial<CreateTransactionLineLocalData>], {
|
|
186
|
-
transactionType: "expense" | "check" | "credit_card_credit" | "transfer" | "journal_entry";
|
|
185
|
+
}, "transactionDetail/updateCreateTransactionLocalData", never, never>, updateCreateTransactionLineLocalData: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[transactionType: "expense" | "check" | "bill" | "credit_card_credit" | "transfer" | "journal_entry", lineId: string, lineUpdates: Partial<CreateTransactionLineLocalData>], {
|
|
186
|
+
transactionType: "expense" | "check" | "bill" | "credit_card_credit" | "transfer" | "journal_entry";
|
|
187
187
|
lineId: string;
|
|
188
188
|
lineUpdates: Partial<CreateTransactionLineLocalData>;
|
|
189
|
-
}, "transactionDetail/updateCreateTransactionLineLocalData", never, never>, addCreateTransactionLine: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[transactionType: "expense" | "check" | "credit_card_credit" | "transfer" | "journal_entry", line?: Partial<CreateTransactionLineLocalData> | undefined], {
|
|
190
|
-
transactionType: "expense" | "check" | "credit_card_credit" | "transfer" | "journal_entry";
|
|
189
|
+
}, "transactionDetail/updateCreateTransactionLineLocalData", never, never>, addCreateTransactionLine: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[transactionType: "expense" | "check" | "bill" | "credit_card_credit" | "transfer" | "journal_entry", line?: Partial<CreateTransactionLineLocalData> | undefined], {
|
|
190
|
+
transactionType: "expense" | "check" | "bill" | "credit_card_credit" | "transfer" | "journal_entry";
|
|
191
191
|
line: Partial<CreateTransactionLineLocalData> | undefined;
|
|
192
|
-
}, "transactionDetail/addCreateTransactionLine", never, never>, removeCreateTransactionLine: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[transactionType: "expense" | "check" | "credit_card_credit" | "transfer" | "journal_entry", lineId: string], {
|
|
193
|
-
transactionType: "expense" | "check" | "credit_card_credit" | "transfer" | "journal_entry";
|
|
192
|
+
}, "transactionDetail/addCreateTransactionLine", never, never>, removeCreateTransactionLine: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[transactionType: "expense" | "check" | "bill" | "credit_card_credit" | "transfer" | "journal_entry", lineId: string], {
|
|
193
|
+
transactionType: "expense" | "check" | "bill" | "credit_card_credit" | "transfer" | "journal_entry";
|
|
194
194
|
lineId: string;
|
|
195
|
-
}, "transactionDetail/removeCreateTransactionLine", never, never>, resetCreateTransactionLocalData: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[transactionType: "expense" | "check" | "credit_card_credit" | "transfer" | "journal_entry"], {
|
|
196
|
-
transactionType: "expense" | "check" | "credit_card_credit" | "transfer" | "journal_entry";
|
|
197
|
-
}, "transactionDetail/resetCreateTransactionLocalData", never, never>, createTransaction: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[transactionType: "expense" | "check" | "credit_card_credit" | "transfer" | "journal_entry"], {
|
|
198
|
-
transactionType: "expense" | "check" | "credit_card_credit" | "transfer" | "journal_entry";
|
|
195
|
+
}, "transactionDetail/removeCreateTransactionLine", never, never>, resetCreateTransactionLocalData: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[transactionType: "expense" | "check" | "bill" | "credit_card_credit" | "transfer" | "journal_entry"], {
|
|
196
|
+
transactionType: "expense" | "check" | "bill" | "credit_card_credit" | "transfer" | "journal_entry";
|
|
197
|
+
}, "transactionDetail/resetCreateTransactionLocalData", never, never>, createTransaction: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[transactionType: "expense" | "check" | "bill" | "credit_card_credit" | "transfer" | "journal_entry"], {
|
|
198
|
+
transactionType: "expense" | "check" | "bill" | "credit_card_credit" | "transfer" | "journal_entry";
|
|
199
199
|
}, "transactionDetail/createTransaction", never, never>, createTransactionSuccessOrFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[fetchState: FetchState, createdTransactionId?: TransactionID | undefined, error?: ZeniAPIStatus<Record<string, unknown>> | undefined], {
|
|
200
200
|
fetchState: FetchState;
|
|
201
201
|
createdTransactionId: TransactionID | undefined;
|
|
202
202
|
error: ZeniAPIStatus<Record<string, unknown>> | undefined;
|
|
203
|
-
}, "transactionDetail/createTransactionSuccessOrFailure", never, never>, setRecommendationsForCreateTransactionLines: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[transactionType: "expense" | "check" | "credit_card_credit" | "transfer" | "journal_entry", lineIds: string[], recommendations: Recommendation[], isAccountingClassesEnabled: boolean], {
|
|
204
|
-
transactionType: "expense" | "check" | "credit_card_credit" | "transfer" | "journal_entry";
|
|
203
|
+
}, "transactionDetail/createTransactionSuccessOrFailure", never, never>, setRecommendationsForCreateTransactionLines: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[transactionType: "expense" | "check" | "bill" | "credit_card_credit" | "transfer" | "journal_entry", lineIds: string[], recommendations: Recommendation[], isAccountingClassesEnabled: boolean], {
|
|
204
|
+
transactionType: "expense" | "check" | "bill" | "credit_card_credit" | "transfer" | "journal_entry";
|
|
205
205
|
lineIds: string[];
|
|
206
206
|
recommendations: Recommendation[];
|
|
207
207
|
isAccountingClassesEnabled: boolean;
|
|
208
|
-
}, "transactionDetail/setRecommendationsForCreateTransactionLines", never, never>, clearRecommendationsForCreateTransactionLines: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[transactionType: "expense" | "check" | "credit_card_credit" | "transfer" | "journal_entry", lineIds: string[]], {
|
|
209
|
-
transactionType: "expense" | "check" | "credit_card_credit" | "transfer" | "journal_entry";
|
|
208
|
+
}, "transactionDetail/setRecommendationsForCreateTransactionLines", never, never>, clearRecommendationsForCreateTransactionLines: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[transactionType: "expense" | "check" | "bill" | "credit_card_credit" | "transfer" | "journal_entry", lineIds: string[]], {
|
|
209
|
+
transactionType: "expense" | "check" | "bill" | "credit_card_credit" | "transfer" | "journal_entry";
|
|
210
210
|
lineIds: string[];
|
|
211
|
-
}, "transactionDetail/clearRecommendationsForCreateTransactionLines", never, never>, fetchVendorRecommendationsForCreateTransaction: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[transactionType: "expense" | "check" | "credit_card_credit" | "transfer" | "journal_entry", lineIds: string[], entity?: Entity | undefined], {
|
|
212
|
-
transactionType: "expense" | "check" | "credit_card_credit" | "transfer" | "journal_entry";
|
|
211
|
+
}, "transactionDetail/clearRecommendationsForCreateTransactionLines", never, never>, fetchVendorRecommendationsForCreateTransaction: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[transactionType: "expense" | "check" | "bill" | "credit_card_credit" | "transfer" | "journal_entry", lineIds: string[], entity?: Entity | undefined], {
|
|
212
|
+
transactionType: "expense" | "check" | "bill" | "credit_card_credit" | "transfer" | "journal_entry";
|
|
213
213
|
lineIds: string[];
|
|
214
214
|
entity: Entity | undefined;
|
|
215
215
|
}, "transactionDetail/fetchVendorRecommendationsForCreateTransaction", never, never>, createTransactionAttachmentUploadFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[failedAttachmentFileNames: string[]], {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.10-beta0KB",
|
|
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",
|