@mx-cartographer/experiences 7.2.22 → 7.2.23-alpha.sms10
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/CHANGELOG.md +6 -0
- package/dist/{AccountDetailsContent-DIGzsjAD.mjs → AccountDetailsContent-B6ZFRZ8l.mjs} +1 -1
- package/dist/{AccountStore-BkoLK9Tq.mjs → AccountStore-CQq_wjS5.mjs} +1 -1
- package/dist/{BeatApi-DhJpgCLz.mjs → BeatApi-DPdX5vY1.mjs} +1 -1
- package/dist/{BeatStore-IBnXd4YK.mjs → BeatStore-Djk0ejxo.mjs} +1 -1
- package/dist/{CategoryStore-BCcpI3oJ.mjs → CategoryStore-kLwSKX0v.mjs} +1 -1
- package/dist/{Fetch-87LIQbEA.mjs → Fetch-Dvrk8r_y.mjs} +25 -20
- package/dist/{FinstrongStore-F2c607dj.mjs → FinstrongStore-CA_w8Yx6.mjs} +1 -1
- package/dist/{GoalStore-DZ_Jvsa_.mjs → GoalStore-CUgc_8Us.mjs} +1 -1
- package/dist/{ManageIncome-B7RqkNz5.mjs → ManageIncome-CXeJPfjE.mjs} +1 -1
- package/dist/{MerchantStore-DrFvsUyy.mjs → MerchantStore-Ca0snF85.mjs} +1 -1
- package/dist/{NotificationStore-86g0bKKR.mjs → NotificationStore-DpA4IVq9.mjs} +1 -1
- package/dist/{RecurringSettings-CaQJvUPQ.mjs → RecurringSettings-D7476j-N.mjs} +1 -1
- package/dist/{RecurringTransactionsStore-DrzS1LmF.mjs → RecurringTransactionsStore-CXTYd5u7.mjs} +1 -1
- package/dist/{SettingsStore-BcgS_Ohv.mjs → SettingsStore-BmgZgoX1.mjs} +2 -2
- package/dist/TransactionApi-CFXvaV0r.mjs +86 -0
- package/dist/{TransactionDetails-gdzlKeDG.mjs → TransactionDetails-Cscyr17P.mjs} +286 -285
- package/dist/{TransactionStore-hfOsBbDt.mjs → TransactionStore-ZXqYJfC_.mjs} +2 -2
- package/dist/{ViewMoreMicroCard-SCn2wt4i.mjs → ViewMoreMicroCard-CFsRDIBi.mjs} +2 -2
- package/dist/accounts/index.es.js +3 -3
- package/dist/budgets/index.es.js +2 -2
- package/dist/cashflow/index.es.js +4 -4
- package/dist/categories/index.es.js +1 -1
- package/dist/common/index.es.js +267 -257
- package/dist/common/stores/GlobalStore.d.ts +7 -1
- package/dist/finstrong/index.es.js +2 -2
- package/dist/goals/index.es.js +3 -3
- package/dist/insights/index.es.js +1 -1
- package/dist/merchants/index.es.js +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/notifications/index.es.js +3 -3
- package/dist/recurringtransactions/index.es.js +6 -6
- package/dist/settings/index.es.js +1 -1
- package/dist/spending/index.es.js +1 -1
- package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -0
- package/dist/transactions/index.es.js +5 -5
- package/dist/trends/index.es.js +2 -2
- package/dist/{useCombineEvents-BUDIR1ba.mjs → useCombineEvents-BNicKW7e.mjs} +1 -1
- package/package.json +1 -1
- package/dist/TransactionApi-B3Tksf7L.mjs +0 -86
|
@@ -36,11 +36,16 @@ interface LoadDataProps {
|
|
|
36
36
|
transactions?: Transaction[];
|
|
37
37
|
userFeatures?: UserFeature[];
|
|
38
38
|
}
|
|
39
|
+
type OnStoreUpdate = (update: ObservedUpdate) => void;
|
|
40
|
+
type ObservedUpdate = {
|
|
41
|
+
transactions: Transaction[];
|
|
42
|
+
};
|
|
39
43
|
export declare class GlobalStore {
|
|
40
44
|
appConfig: AppConfig;
|
|
41
45
|
endpoint: string;
|
|
42
46
|
sessionToken: string;
|
|
43
47
|
onError?: GlobalErrorHandler;
|
|
48
|
+
onStoreUpdate?: OnStoreUpdate;
|
|
44
49
|
accountStore: AccountStore;
|
|
45
50
|
appDataStore: AppDataStore;
|
|
46
51
|
analyticsStore: AnalyticsStore;
|
|
@@ -64,8 +69,9 @@ export declare class GlobalStore {
|
|
|
64
69
|
trendsStore: TrendsStore;
|
|
65
70
|
userStore: UserStore;
|
|
66
71
|
globalUiStore: GlobalUiStore;
|
|
67
|
-
constructor(appConfig?: AppConfig, endpoint?: string, onError?: GlobalErrorHandler);
|
|
72
|
+
constructor(appConfig?: AppConfig, endpoint?: string, onError?: GlobalErrorHandler, onStoreUpdate?: OnStoreUpdate);
|
|
68
73
|
get isInitialized(): boolean;
|
|
74
|
+
emitUpdate: (change: ObservedUpdate) => void;
|
|
69
75
|
loadData: ({ accounts, appData, associatedBeats, categories, institutions, transactionRules, transactions, userFeatures, }?: LoadDataProps) => Promise<void>;
|
|
70
76
|
}
|
|
71
77
|
export {};
|
|
@@ -19,7 +19,7 @@ import * as le from "d3";
|
|
|
19
19
|
import { observer as I } from "mobx-react-lite";
|
|
20
20
|
import { u as S, b as z, x as $, p as Y, d as ye, i as be, n as Ke, m as Xe } from "../hooks-D6XlXHf4.mjs";
|
|
21
21
|
import { L as N } from "../Loader-DUaFpDGv.mjs";
|
|
22
|
-
import { F as Ko, a as Xo } from "../FinstrongStore-
|
|
22
|
+
import { F as Ko, a as Xo } from "../FinstrongStore-CA_w8Yx6.mjs";
|
|
23
23
|
import q from "@mui/material/Button";
|
|
24
24
|
import J from "@mui/material/Card";
|
|
25
25
|
import { L as xe } from "../LineChart-4Zi8Z8PR.mjs";
|
|
@@ -30,7 +30,7 @@ import Ve from "@mui/material/AccordionSummary";
|
|
|
30
30
|
import Ye from "@mui/material/CardHeader";
|
|
31
31
|
import { u as qe } from "../useDimensions-27p2evRx.mjs";
|
|
32
32
|
import { C as Je } from "../ConnectionsDrawer-BDvVuJQf.mjs";
|
|
33
|
-
import { R as Qe } from "../RecurringSettings-
|
|
33
|
+
import { R as Qe } from "../RecurringSettings-D7476j-N.mjs";
|
|
34
34
|
import Ze from "@mui/material/TextField";
|
|
35
35
|
import { u as Se } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
36
36
|
import { a as et } from "../Dialog-CWW597AF.mjs";
|
package/dist/goals/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as _e, T as m, G as ue, a as Pe, M as q, C as Ae, b as Ve } from "../GoalStore-
|
|
2
|
-
import { c as qn, d as Jn } from "../GoalStore-
|
|
1
|
+
import { g as _e, T as m, G as ue, a as Pe, M as q, C as Ae, b as Ve } from "../GoalStore-CUgc_8Us.mjs";
|
|
2
|
+
import { c as qn, d as Jn } from "../GoalStore-CUgc_8Us.mjs";
|
|
3
3
|
import { jsxs as i, jsx as e, Fragment as U } from "react/jsx-runtime";
|
|
4
4
|
import y from "react";
|
|
5
5
|
import { observer as D } from "mobx-react-lite";
|
|
@@ -39,7 +39,7 @@ import ot from "@mui/material/Collapse";
|
|
|
39
39
|
import at from "@mui/material/ListItemIcon";
|
|
40
40
|
import rt from "@mui/material/Checkbox";
|
|
41
41
|
import { u as it, A as st } from "../AccountDetailsHeader-vPzGb1RZ.mjs";
|
|
42
|
-
import { A as lt } from "../AccountDetailsContent-
|
|
42
|
+
import { A as lt } from "../AccountDetailsContent-B6ZFRZ8l.mjs";
|
|
43
43
|
import { u as ct } from "../useAccountDisplayName-jS05A6-6.mjs";
|
|
44
44
|
import Ke from "@mui/material/TextField";
|
|
45
45
|
import { M as dt, I as mt, O as ut } from "../OriginalBalanceAction-CWuVvRq9.mjs";
|
|
@@ -15,7 +15,7 @@ import { MerchantLogo as V, Text as R } from "@mxenabled/mxui";
|
|
|
15
15
|
import { c as v, u as w, b as C } from "../hooks-D6XlXHf4.mjs";
|
|
16
16
|
import { L as p } from "../Loader-DUaFpDGv.mjs";
|
|
17
17
|
import { S as N } from "../SearchBox-B2_zLv8-.mjs";
|
|
18
|
-
import { M as ne } from "../MerchantStore-
|
|
18
|
+
import { M as ne } from "../MerchantStore-Ca0snF85.mjs";
|
|
19
19
|
const B = /^[ a-zA-ZÀ-ÿ0-9]+$/, H = 50, u = 65, P = ({
|
|
20
20
|
height: f = "calc(100dvh - 120px)",
|
|
21
21
|
onSelect: g
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as s, B as e, C as o, c as t, b as i, I as d, M as n, a as C, d as c, N as I, V as M, Z as g, e as h } from "../ViewMoreMicroCard-
|
|
1
|
+
import { A as s, B as e, C as o, c as t, b as i, I as d, M as n, a as C, d as c, N as I, V as M, Z as g, e as h } from "../ViewMoreMicroCard-CFsRDIBi.mjs";
|
|
2
2
|
export {
|
|
3
3
|
s as AppStore,
|
|
4
4
|
e as BeatCard,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as f, B as b } from "../ToggleListItem-r0Kx56wF.mjs";
|
|
2
|
-
import { A as _ } from "../Fetch-
|
|
3
|
-
import { s as L } from "../NotificationStore-
|
|
4
|
-
import { N as Nt, f as St } from "../NotificationStore-
|
|
2
|
+
import { A as _ } from "../Fetch-Dvrk8r_y.mjs";
|
|
3
|
+
import { s as L } from "../NotificationStore-DpA4IVq9.mjs";
|
|
4
|
+
import { N as Nt, f as St } from "../NotificationStore-DpA4IVq9.mjs";
|
|
5
5
|
import { jsx as t, jsxs as d, Fragment as x } from "react/jsx-runtime";
|
|
6
6
|
import k, { useEffect as A } from "react";
|
|
7
7
|
import { observer as p } from "mobx-react-lite";
|
|
@@ -8,8 +8,8 @@ import { startOfToday as ue } from "date-fns/startOfToday";
|
|
|
8
8
|
import { subDays as me } from "date-fns/subDays";
|
|
9
9
|
import ae from "@mui/material/Skeleton";
|
|
10
10
|
import c from "@mui/material/Stack";
|
|
11
|
-
import { R as Ee } from "../RecurringSettings-
|
|
12
|
-
import { M as Gn } from "../RecurringSettings-
|
|
11
|
+
import { R as Ee } from "../RecurringSettings-D7476j-N.mjs";
|
|
12
|
+
import { M as Gn } from "../RecurringSettings-D7476j-N.mjs";
|
|
13
13
|
import { addMonths as ze } from "date-fns/addMonths";
|
|
14
14
|
import { subMonths as Fe } from "date-fns/subMonths";
|
|
15
15
|
import { isBefore as Ue } from "date-fns/isBefore";
|
|
@@ -30,8 +30,8 @@ import { PickersDay as rt } from "@mui/x-date-pickers/PickersDay";
|
|
|
30
30
|
import { I as q } from "../IconBacking-B9oC6uL2.mjs";
|
|
31
31
|
import { u as T, b as Z, j as v, g as J, q as Oe, d as he, h as fe, n as ot } from "../hooks-D6XlXHf4.mjs";
|
|
32
32
|
import { c as L, a as S, g as Ie, f as at } from "../RecurringTransactions-ej39mgA6.mjs";
|
|
33
|
-
import { T as B } from "../RecurringTransactionsStore-
|
|
34
|
-
import { R as On } from "../RecurringTransactionsStore-
|
|
33
|
+
import { T as B } from "../RecurringTransactionsStore-CXTYd5u7.mjs";
|
|
34
|
+
import { R as On } from "../RecurringTransactionsStore-CXTYd5u7.mjs";
|
|
35
35
|
import { A as I, W as st } from "../WidgetContainer-EbrN1oIo.mjs";
|
|
36
36
|
import ct from "@mui/material/Button";
|
|
37
37
|
import le from "@mui/material/Divider";
|
|
@@ -41,8 +41,8 @@ import lt from "@mui/material/ListSubheader";
|
|
|
41
41
|
import dt from "@mui/material/ListItemAvatar";
|
|
42
42
|
import ut from "@mui/material/ListItemButton";
|
|
43
43
|
import mt from "@mui/material/ListItemText";
|
|
44
|
-
import { b as pt } from "../ManageIncome-
|
|
45
|
-
import { c as Wn, M as $n, S as Pn } from "../ManageIncome-
|
|
44
|
+
import { b as pt } from "../ManageIncome-CXeJPfjE.mjs";
|
|
45
|
+
import { c as Wn, M as $n, S as Pn } from "../ManageIncome-CXeJPfjE.mjs";
|
|
46
46
|
import { f as A } from "../NumberFormatting-Buh7u8Oi.mjs";
|
|
47
47
|
import { D as xe } from "../Drawer-kEE73B87.mjs";
|
|
48
48
|
import { b as O } from "../Localization-2MODESHW.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as Kt, a as Xt } from "../SettingsStore-
|
|
1
|
+
import { S as Kt, a as Xt } from "../SettingsStore-BmgZgoX1.mjs";
|
|
2
2
|
import { jsxs as c, Fragment as q, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import u from "react";
|
|
4
4
|
import { observer as D } from "mobx-react-lite";
|
|
@@ -12,7 +12,7 @@ import { b as V } from "../CategoryUtil-BR3H5i6n.mjs";
|
|
|
12
12
|
import { b as _ } from "../Category-CevNQ03n.mjs";
|
|
13
13
|
import { Text as y, CategoryIcon as yt, CategoryIconVariants as bt } from "@mxenabled/mxui";
|
|
14
14
|
import { f as v } from "../NumberFormatting-Buh7u8Oi.mjs";
|
|
15
|
-
import { c as Ct, T as _t, a as St } from "../TransactionDetails-
|
|
15
|
+
import { c as Ct, T as _t, a as St } from "../TransactionDetails-Cscyr17P.mjs";
|
|
16
16
|
import Tt from "@mui/material/Button";
|
|
17
17
|
import { useTheme as rt } from "@mui/material";
|
|
18
18
|
import { u as E, b as O, m as z, d as st, n as Mt, a as lt, h as Dt, g as xt } from "../hooks-D6XlXHf4.mjs";
|
|
@@ -3,6 +3,7 @@ import { Transaction } from '../../../common';
|
|
|
3
3
|
import { BottomActions, TopActions } from '../../constants/Actions';
|
|
4
4
|
export interface TransactionDetailsProps {
|
|
5
5
|
bottomActions?: BottomActions[];
|
|
6
|
+
canFlagTransaction?: boolean;
|
|
6
7
|
topActions?: TopActions[];
|
|
7
8
|
transaction: Transaction;
|
|
8
9
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { T as Ta } from "../TransactionApi-
|
|
2
|
-
import { u as P, C as Pe, D as $e, M as Ve, d as We, c as Ge, T as Ue, a as Fe } from "../TransactionDetails-
|
|
3
|
-
import { B as Sa, e as xa, b as wa } from "../TransactionDetails-
|
|
1
|
+
import { T as Ta } from "../TransactionApi-CFXvaV0r.mjs";
|
|
2
|
+
import { u as P, C as Pe, D as $e, M as Ve, d as We, c as Ge, T as Ue, a as Fe } from "../TransactionDetails-Cscyr17P.mjs";
|
|
3
|
+
import { B as Sa, e as xa, b as wa } from "../TransactionDetails-Cscyr17P.mjs";
|
|
4
4
|
import { T as M } from "../User-BQUxBeZV.mjs";
|
|
5
5
|
import { O as va } from "../User-BQUxBeZV.mjs";
|
|
6
|
-
import { S as ae, D as ze } from "../TransactionStore-
|
|
7
|
-
import { T as Na } from "../TransactionStore-
|
|
6
|
+
import { S as ae, D as ze } from "../TransactionStore-ZXqYJfC_.mjs";
|
|
7
|
+
import { T as Na } from "../TransactionStore-ZXqYJfC_.mjs";
|
|
8
8
|
import { e as Ke } from "../exportTransactionsToCSV-BwwmL4pM.mjs";
|
|
9
9
|
import { E as Oa } from "../ExportCsvAction-DTO_UotC.mjs";
|
|
10
10
|
import { jsxs as _, jsx as e } from "react/jsx-runtime";
|
package/dist/trends/index.es.js
CHANGED
|
@@ -19,10 +19,10 @@ import { DataGridPro as mt } from "@mui/x-data-grid-pro";
|
|
|
19
19
|
import { C as pt } from "../CurrencyText-kyC1aseI.mjs";
|
|
20
20
|
import { b as Ct } from "../Localization-2MODESHW.mjs";
|
|
21
21
|
import { H as Ie } from "../HeaderCell-DjuifqHJ.mjs";
|
|
22
|
-
import { T as M, b as ft } from "../ViewMoreMicroCard-
|
|
22
|
+
import { T as M, b as ft } from "../ViewMoreMicroCard-CFsRDIBi.mjs";
|
|
23
23
|
import { A as _, W as ke } from "../WidgetContainer-EbrN1oIo.mjs";
|
|
24
24
|
import { c as Tt } from "../Category-CevNQ03n.mjs";
|
|
25
|
-
import { a as Ne, T as He } from "../TransactionDetails-
|
|
25
|
+
import { a as Ne, T as He } from "../TransactionDetails-Cscyr17P.mjs";
|
|
26
26
|
import { D as Ce } from "../Drawer-kEE73B87.mjs";
|
|
27
27
|
import { L as Q } from "../Loader-DUaFpDGv.mjs";
|
|
28
28
|
import { useTheme as We } from "@mui/material/styles";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getUnixTime as l } from "date-fns/getUnixTime";
|
|
2
2
|
import A from "bowser";
|
|
3
|
-
import { F as u, A as r } from "./Fetch-
|
|
3
|
+
import { F as u, A as r } from "./Fetch-Dvrk8r_y.mjs";
|
|
4
4
|
import y from "react";
|
|
5
5
|
const g = async (o, t, n = "1.0.0", s = "Experiences") => {
|
|
6
6
|
const a = new _(o, t), { analytics_session: i } = await a.initializeAnalyticsSession(
|
package/package.json
CHANGED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { F as T, A as e } from "./Fetch-87LIQbEA.mjs";
|
|
2
|
-
class u {
|
|
3
|
-
fetchInstance;
|
|
4
|
-
constructor(t, n, a) {
|
|
5
|
-
this.fetchInstance = new T(t, n, void 0, a);
|
|
6
|
-
}
|
|
7
|
-
addTag = async (t) => this.fetchInstance.post(e.TAGS, t).then((n) => n.tag);
|
|
8
|
-
addTagging = async (t) => this.fetchInstance.post(e.TAGGINGS, t).then((n) => n.tagging);
|
|
9
|
-
addTransaction = async (t) => this.fetchInstance.post(e.TRANSACTIONS, t).then((n) => n.transaction);
|
|
10
|
-
addTransactionRule = async (t) => this.fetchInstance.post(e.TRANSACTION_RULES, t).then((n) => n);
|
|
11
|
-
getTaggings = async () => this.fetchInstance.get(e.TAGGINGS).then((t) => t.map((n) => n.tagging));
|
|
12
|
-
getTags = async () => this.fetchInstance.get(e.TAGS).then((t) => t.map((n) => n.tag));
|
|
13
|
-
getTransactionRules = async () => this.fetchInstance.get(e.TRANSACTION_RULES).then((t) => t.transaction_rules);
|
|
14
|
-
getTransactionsByDateRange = async (t, n) => this.fetchInstance.get(`${e.TRANSACTIONS}/by_date/${t}/${n}`).then((a) => a.map((s) => s.transaction));
|
|
15
|
-
// DEPRECATED
|
|
16
|
-
getTransactionsByAccountsAndDateRange = async (t, n, a) => {
|
|
17
|
-
console.warn("DEPRECATED: getTransactionsByAccountsAndDateRange will be removed");
|
|
18
|
-
const s = t.reduce(
|
|
19
|
-
(o, c, r) => `${o}account_guids[]=${c}${r !== t.length - 1 ? "&" : ""}`,
|
|
20
|
-
""
|
|
21
|
-
);
|
|
22
|
-
return this.fetchInstance.get(`${e.TRANSACTIONS}/by_date/${n}/${a}?${s}`).then((o) => o.map((c) => c.transaction));
|
|
23
|
-
};
|
|
24
|
-
// DEPRECATED
|
|
25
|
-
getTransactionsByGuids = async (t) => (console.warn("DEPRECATED: getTransactionsByGuids will be removed"), this.fetchInstance.post(`${e.TRANSACTIONS}/by_guids`, { guids: t.join("+") }).then((n) => n.map((a) => a.transaction)));
|
|
26
|
-
// DEPRECATED
|
|
27
|
-
getTransactionsByCategoryAndDate = async (t, n, a) => (console.warn("DEPRECATED: getTransactionsByCategoryAndDate will be removed"), this.fetchInstance.get(
|
|
28
|
-
`${e.TRANSACTIONS}/by_category_guid/${t}/by_date/${n}/${a}`
|
|
29
|
-
).then((s) => s.map((o) => o.transaction)));
|
|
30
|
-
// DEPRECATED
|
|
31
|
-
getTransactionsByCategoryDateAndAccounts = async (t, n, a, s) => {
|
|
32
|
-
console.warn("DEPRECATED: getTransactionsByCategoryDateAndAccounts will be removed");
|
|
33
|
-
const o = s.reduce(
|
|
34
|
-
(c, r, i) => `${c}account_guids[]=${r}${i !== s.length - 1 ? "&" : ""}`,
|
|
35
|
-
""
|
|
36
|
-
);
|
|
37
|
-
return this.fetchInstance.get(
|
|
38
|
-
`${e.TRANSACTIONS}/by_category_guid/${t}/by_date/${n}/${a}?${o}`
|
|
39
|
-
).then((c) => c.map((r) => r.transaction));
|
|
40
|
-
};
|
|
41
|
-
// DEPRECATED
|
|
42
|
-
getTransactionsByCategoriesDateAndAccounts = async (t, n, a, s) => {
|
|
43
|
-
console.warn("DEPRECATED: getTransactionsByCategoriesDateAndAccounts will be removed");
|
|
44
|
-
const o = s.reduce(
|
|
45
|
-
(c, r, i) => `${c}account_guids[]=${r}${i !== s.length - 1 ? "&" : ""}`,
|
|
46
|
-
""
|
|
47
|
-
);
|
|
48
|
-
return this.fetchInstance.get(
|
|
49
|
-
`${e.TRANSACTIONS}/by_category_guids/${t.join(
|
|
50
|
-
"+"
|
|
51
|
-
)}/by_date/${n}/${a}?${o}`
|
|
52
|
-
).then((c) => c.map((r) => r.transaction));
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* DEPRECATED
|
|
56
|
-
* Get all transactions by the top level category, between begin date and end date, and optionally
|
|
57
|
-
* filtered by accounts
|
|
58
|
-
* @param categoryGuid The top level category guid
|
|
59
|
-
* @param beginDate the start date
|
|
60
|
-
* @param endDate the end date
|
|
61
|
-
* @param accountGuids an optional list of account guids
|
|
62
|
-
*/
|
|
63
|
-
getTransactionsByTopLevelCategoryAndDate = async (t, n, a, s = []) => {
|
|
64
|
-
console.warn("DEPRECATED: getTransactionsByTopLevelCategoryAndDate will be removed");
|
|
65
|
-
let o = `${e.TRANSACTIONS}/by_top_level_category_guid/${t}/by_date/${n}/${a}`;
|
|
66
|
-
if (s.length > 0) {
|
|
67
|
-
const c = s.reduce(
|
|
68
|
-
(r, i, g) => `${r}account_guids[]=${i}${g !== s.length - 1 ? "&" : ""}`,
|
|
69
|
-
""
|
|
70
|
-
);
|
|
71
|
-
o += `?${c}`;
|
|
72
|
-
}
|
|
73
|
-
return this.fetchInstance.get(o).then((c) => c.map((r) => r.transaction));
|
|
74
|
-
};
|
|
75
|
-
removeTag = async (t) => this.fetchInstance.delete(`${e.TAGS}/${t}`).then((n) => n);
|
|
76
|
-
removeTagging = async (t) => this.fetchInstance.delete(`${e.TAGGINGS}/${t}`).then((n) => n);
|
|
77
|
-
removeTransaction = async (t) => this.fetchInstance.delete(`${e.TRANSACTIONS}/${t}`).then((n) => n);
|
|
78
|
-
removeTransactionRule = async (t) => this.fetchInstance.delete(`${e.TRANSACTION_RULES}/${t}`);
|
|
79
|
-
removeTransactionSplit = async (t) => this.fetchInstance.delete(`${e.TRANSACTIONS}/${t}/unsplit`).then((n) => n);
|
|
80
|
-
updateTransactionRule = async (t) => this.fetchInstance.put(`${e.TRANSACTION_RULES}/${t.guid}`, t).then((n) => n);
|
|
81
|
-
updateTag = async (t) => this.fetchInstance.put(`${e.TAGS}/${t.guid}`, t).then((n) => n.tag);
|
|
82
|
-
updateTransaction = async (t) => this.fetchInstance.put(`${e.TRANSACTIONS}/${t.guid}`, t).then((n) => n.transaction);
|
|
83
|
-
}
|
|
84
|
-
export {
|
|
85
|
-
u as T
|
|
86
|
-
};
|