@mx-cartographer/experiences 7.0.11-alpha.al0 → 7.0.11-alpha.mega1
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 +8 -0
- package/dist/{Account-D_kRKI6x.mjs → Account-BW3-oYEs.mjs} +1 -1
- package/dist/{AccountDetailsContent-Dfja2v8K.mjs → AccountDetailsContent-Tm7IjJIc.mjs} +16 -16
- package/dist/{AccountDetailsHeader-nc5mqlHm.mjs → AccountDetailsHeader-sum_Bgdy.mjs} +5 -5
- package/dist/{AccountFields-DeebSePp.mjs → AccountFields-CIz-r3gP.mjs} +2 -2
- package/dist/{AccountListItem-dh03tivj.mjs → AccountListItem-B-ZjJ4Gp.mjs} +3 -3
- package/dist/{AccountStore-Cp7xWX8n.mjs → AccountStore-BaMynkQT.mjs} +11 -11
- package/dist/{Accounts-DppzmFak.mjs → Accounts-CA-nqAjT.mjs} +1 -1
- package/dist/{BeatApi-D0WcLW3O.mjs → BeatApi-DLu87ijw.mjs} +3 -3
- package/dist/{BeatStore-y6WVs07e.mjs → BeatStore-By4aGoRM.mjs} +17 -17
- package/dist/{BudgetUtil-DmWvHV7C.mjs → BudgetUtil-CeSLAcsl.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-uTU7Nwn2.mjs → CategorySelectorDrawer-BPvjZ-Xo.mjs} +1 -1
- package/dist/{CategoryStore-BfYppD3g.mjs → CategoryStore-BOyzQjQp.mjs} +4 -4
- package/dist/{ConnectDrawer-BfYwIgKa.mjs → ConnectDrawer-phFH6OHt.mjs} +5 -5
- package/dist/{ConnectionsDrawer-BKG07Loi.mjs → ConnectionsDrawer-ihxkAi1P.mjs} +2 -2
- package/dist/{CurrencyInput-BtrNBP3z.mjs → CurrencyInput-bEx2Mbd0.mjs} +1 -1
- package/dist/{DebtsStore-BR1o55kk.mjs → DebtsStore-Dp-CraCD.mjs} +1 -1
- package/dist/{ExportCsvAction-BH369hls.mjs → ExportCsvAction-CbMfQ2Wa.mjs} +3 -3
- package/dist/{Fetch-CJ9cgjgV.mjs → Fetch-CkFKy79O.mjs} +8 -9
- package/dist/{FinstrongStore-rC2F4Tq3.mjs → FinstrongStore-mkALvztw.mjs} +4 -4
- package/dist/{GoalStore-rZKi2YjE.mjs → GoalStore-BWHkOQ8o.mjs} +21 -21
- package/dist/{Help-t24Ldz-O.mjs → Help-B3oENhkG.mjs} +1 -1
- package/dist/{LineChart-CfEEnHUy.mjs → LineChart-BWWmmJxV.mjs} +204 -183
- package/dist/{ListItemAction-Cwadpg85.mjs → ListItemAction-DNZZ5fSa.mjs} +1 -1
- package/dist/{ManageIncome-xksS_sWM.mjs → ManageIncome-Bef4VWt7.mjs} +4 -4
- package/dist/MerchantStore-DVH-QOf0.mjs +37 -0
- package/dist/{MicroWidgetContainer-DwTAjSdX.mjs → MicroWidgetContainer-Dxz8uBN9.mjs} +1 -1
- package/dist/{MiniWidgetContainer-CxggrnHk.mjs → MiniWidgetContainer-CTyjmE1h.mjs} +1 -1
- package/dist/{NetWorthStore-5qSDIglU.mjs → NetWorthStore-B6xF9eGH.mjs} +2 -2
- package/dist/{NotificationSettings-Cny7J1hO.mjs → NotificationSettings-uXVwpIa1.mjs} +2 -2
- package/dist/{NotificationStore-DpV9hXSE.mjs → NotificationStore-DHtSGySy.mjs} +4 -8
- package/dist/{OriginalBalanceAction-DDMRgIBU.mjs → OriginalBalanceAction-DepsKiJz.mjs} +3 -3
- package/dist/{RecurringSettings-DXQ64A8U.mjs → RecurringSettings-1EOh67IT.mjs} +3 -3
- package/dist/{RecurringTransactionsStore-CXhnipfd.mjs → RecurringTransactionsStore-D62XJtdL.mjs} +16 -20
- package/dist/{SettingsStore-CLLqNa_S.mjs → SettingsStore-B4gi6oOw.mjs} +29 -33
- package/dist/{TransactionApi-C0HMGDBV.mjs → TransactionApi-DbbcjI2L.mjs} +29 -29
- package/dist/TransactionDetails-DYF-P762.mjs +1337 -0
- package/dist/{TransactionStore-Cu_KM_J9.mjs → TransactionStore-0tLtBEIC.mjs} +25 -29
- package/dist/TrendsStore-WrHxzdbQ.mjs +565 -0
- package/dist/{Transaction-CXMMfhz-.mjs → User-Dq9Qj764.mjs} +48 -46
- package/dist/{ViewMoreMicroCard-DJoNOqkD.mjs → ViewMoreMicroCard-BZI5VMNW.mjs} +2 -5
- package/dist/{WidgetContainer-QcfqagZD.mjs → WidgetContainer-C2NBfpDg.mjs} +2 -2
- package/dist/accounts/api/AccountApi.d.ts +2 -2
- package/dist/accounts/index.es.js +17 -17
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/api/BudgetsApi.d.ts +2 -2
- package/dist/budgets/index.es.js +10 -10
- package/dist/cashflow/api/CashflowApi.d.ts +2 -3
- package/dist/cashflow/index.es.js +10 -10
- package/dist/categories/index.es.js +2 -2
- package/dist/common/api/AnalyticsApi.d.ts +2 -2
- package/dist/common/api/AppDataApi.d.ts +2 -2
- package/dist/common/api/BeatApi.d.ts +2 -2
- package/dist/common/api/CategoryApi.d.ts +3 -2
- package/dist/common/api/GlobalCopyApi.d.ts +1 -2
- package/dist/common/api/LocalizedCopyApi.d.ts +1 -2
- package/dist/common/api/NotificationApi.d.ts +2 -2
- package/dist/common/api/ScheduledPaymentsApi.d.ts +2 -3
- package/dist/common/api/UserApi.d.ts +2 -2
- package/dist/common/context/GlobalDataProvider.d.ts +2 -3
- package/dist/common/context/hooks.d.ts +1 -4
- package/dist/common/context/index.d.ts +1 -1
- package/dist/common/index.es.js +315 -321
- package/dist/common/stores/GlobalStore.d.ts +1 -2
- package/dist/common/types/index.d.ts +0 -1
- package/dist/common/utils/Fetch.d.ts +1 -3
- package/dist/dashboard/index.es.js +7 -7
- package/dist/debts/index.es.js +197 -180
- package/dist/{exportTransactionsToCSV-DpP_a1g8.mjs → exportTransactionsToCSV-BDlt8u0n.mjs} +1 -1
- package/dist/finstrong/api/FinstrongApi.d.ts +1 -2
- package/dist/finstrong/index.es.js +7 -7
- package/dist/goals/api/GoalApi.d.ts +2 -3
- package/dist/goals/index.es.js +11 -11
- package/dist/help/api/HelpApi.d.ts +2 -2
- package/dist/help/index.es.js +3 -3
- package/dist/hooks-DkUqN6JE.mjs +71 -0
- package/dist/insights/index.es.js +1 -1
- package/dist/investments/api/HoldingApi.d.ts +2 -3
- package/dist/investments/index.es.js +3 -3
- package/dist/merchants/api/MerchantApi.d.ts +1 -2
- package/dist/merchants/index.es.js +2 -2
- package/dist/microinsights/context/InsightsMicroWidgetDataProvider.d.ts +1 -2
- package/dist/microinsights/context/hooks.d.ts +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +7 -7
- package/dist/notifications/index.es.js +5 -5
- package/dist/recurringtransactions/api/RepeatingTransactionsApi.d.ts +2 -2
- package/dist/recurringtransactions/index.es.js +10 -10
- package/dist/settings/api/SettingsApi.d.ts +2 -3
- package/dist/settings/index.es.js +7 -7
- package/dist/spending/index.es.js +4 -4
- package/dist/transactions/api/TransactionApi.d.ts +2 -3
- package/dist/transactions/components/shared/transactiondetails/Description.d.ts +1 -0
- package/dist/transactions/components/shared/transactiondetails/TransactionDetailsView.d.ts +8 -0
- package/dist/transactions/index.es.js +121 -120
- package/dist/trends/index.es.js +10 -10
- package/dist/{useCombineEvents-Dbjzfwvo.mjs → useCombineEvents-DaDBSR_1.mjs} +29 -29
- package/package.json +1 -1
- package/dist/MerchantStore-h96aTml7.mjs +0 -37
- package/dist/TransactionDetails-v77agHHP.mjs +0 -1280
- package/dist/TrendsStore-B4Q-iLX0.mjs +0 -547
- package/dist/common/types/Handlers.d.ts +0 -2
- package/dist/hooks-DcS6DyRl.mjs +0 -74
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as h, jsx as
|
|
1
|
+
import { jsxs as h, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import A from "react";
|
|
3
3
|
import { css as p } from "@mxenabled/cssinjs";
|
|
4
4
|
import { addDays as b } from "date-fns/addDays";
|
|
@@ -11,10 +11,10 @@ import { isBefore as j } from "date-fns/isBefore";
|
|
|
11
11
|
import { isSameMonth as W } from "date-fns/isSameMonth";
|
|
12
12
|
import { startOfMonth as V } from "date-fns/startOfMonth";
|
|
13
13
|
import { startOfToday as f } from "date-fns/startOfToday";
|
|
14
|
-
import { subMonths as
|
|
14
|
+
import { subMonths as F } from "date-fns/subMonths";
|
|
15
15
|
import E from "@mui/material/Button";
|
|
16
|
-
import
|
|
17
|
-
import { useTokens as v, H2 as
|
|
16
|
+
import Y from "@mui/material/Paper";
|
|
17
|
+
import { useTokens as v, H2 as z, Text as G } from "@mxenabled/mxui";
|
|
18
18
|
import { ChevronLeft as X, ChevronRight as Z } from "@mxenabled/mx-icons";
|
|
19
19
|
import { f as q, D as J } from "./Dialog-CWW597AF.mjs";
|
|
20
20
|
import { isSameDay as T } from "date-fns/isSameDay";
|
|
@@ -22,14 +22,14 @@ import { isWithinInterval as Q } from "date-fns/isWithinInterval";
|
|
|
22
22
|
import nn from "@mui/material/styles/useTheme";
|
|
23
23
|
import k from "@mui/material/ListItem";
|
|
24
24
|
import an from "@mui/material/ListItemButton";
|
|
25
|
-
import { e as tn } from "./hooks-
|
|
26
|
-
const on = ({ copy: n, date:
|
|
25
|
+
import { e as tn } from "./hooks-DkUqN6JE.mjs";
|
|
26
|
+
const on = ({ copy: n, date: a, onNextClick: o, onPreviousClick: r }) => {
|
|
27
27
|
const c = v(), l = en(c);
|
|
28
28
|
return /* @__PURE__ */ h("div", { className: `mx-cmn-calendar-header ${l}`, children: [
|
|
29
|
-
/* @__PURE__ */
|
|
29
|
+
/* @__PURE__ */ e(z, { className: "mx-cmn-calendar-header-title", variant: "H3", children: q(a, J.MONTH_YEAR) }),
|
|
30
30
|
/* @__PURE__ */ h("div", { className: "mx-cmn-calendar-header-button-container", children: [
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
-
/* @__PURE__ */
|
|
31
|
+
/* @__PURE__ */ e(E, { "aria-label": n.prevAria, onClick: r, children: /* @__PURE__ */ e(X, { size: 24 }) }),
|
|
32
|
+
/* @__PURE__ */ e(E, { "aria-label": n.nextAria, onClick: o, children: /* @__PURE__ */ e(Z, { size: 24 }) })
|
|
33
33
|
] })
|
|
34
34
|
] });
|
|
35
35
|
}, en = (n) => p({
|
|
@@ -45,9 +45,9 @@ const on = ({ copy: n, date: t, onNextClick: e, onPreviousClick: r }) => {
|
|
|
45
45
|
display: "flex",
|
|
46
46
|
gap: 4
|
|
47
47
|
}
|
|
48
|
-
}), rn = ({ beginDate: n, date:
|
|
49
|
-
const l = nn(), S = cn(l), g = n &&
|
|
50
|
-
return /* @__PURE__ */
|
|
48
|
+
}), rn = ({ beginDate: n, date: a, endDate: o, isInMonth: r, onClick: c }) => {
|
|
49
|
+
const l = nn(), S = cn(l), g = n && o && Q(a, { start: n, end: o }) && !T(a, n) && !T(a, o), s = n && o && T(n, a) && !T(n, o), N = o && n && T(o, a) && !T(n, o), i = n && T(n, a) || o && T(o, a), C = T(a, f());
|
|
50
|
+
return /* @__PURE__ */ e(
|
|
51
51
|
"div",
|
|
52
52
|
{
|
|
53
53
|
className: `
|
|
@@ -56,7 +56,7 @@ const on = ({ copy: n, date: t, onNextClick: e, onPreviousClick: r }) => {
|
|
|
56
56
|
${r ? "" : "mx-cmn-out-of-month"}
|
|
57
57
|
${g ? "mx-cmn-date-interval" : ""}
|
|
58
58
|
`,
|
|
59
|
-
children: /* @__PURE__ */
|
|
59
|
+
children: /* @__PURE__ */ e(
|
|
60
60
|
E,
|
|
61
61
|
{
|
|
62
62
|
className: `
|
|
@@ -65,9 +65,9 @@ const on = ({ copy: n, date: t, onNextClick: e, onPreviousClick: r }) => {
|
|
|
65
65
|
${N ? "mx-cmn-range-end" : ""}
|
|
66
66
|
`,
|
|
67
67
|
color: i ? "primary" : "secondary",
|
|
68
|
-
onClick: () => c(
|
|
68
|
+
onClick: () => c(a),
|
|
69
69
|
variant: i ? "contained" : "text",
|
|
70
|
-
children: /* @__PURE__ */
|
|
70
|
+
children: /* @__PURE__ */ e(
|
|
71
71
|
G,
|
|
72
72
|
{
|
|
73
73
|
className: `
|
|
@@ -75,7 +75,7 @@ const on = ({ copy: n, date: t, onNextClick: e, onPreviousClick: r }) => {
|
|
|
75
75
|
${i ? "mx-cmn-day-selected" : ""}
|
|
76
76
|
${C ? "mx-cmn-today" : ""}`,
|
|
77
77
|
variant: "Small",
|
|
78
|
-
children: y(
|
|
78
|
+
children: y(a, "d")
|
|
79
79
|
}
|
|
80
80
|
)
|
|
81
81
|
}
|
|
@@ -131,44 +131,44 @@ const on = ({ copy: n, date: t, onNextClick: e, onPreviousClick: r }) => {
|
|
|
131
131
|
var Tn = /* @__PURE__ */ ((n) => (n.None = "None", n.Single = "Single", n.Range = "Range", n))(Tn || {});
|
|
132
132
|
const ln = ({
|
|
133
133
|
copy: n,
|
|
134
|
-
beginDate:
|
|
135
|
-
endDate:
|
|
134
|
+
beginDate: a = void 0,
|
|
135
|
+
endDate: o = void 0,
|
|
136
136
|
onDateSelected: r,
|
|
137
137
|
onRangeSelected: c,
|
|
138
138
|
selectionType: l = "Single"
|
|
139
139
|
/* Single */
|
|
140
140
|
}) => {
|
|
141
|
-
const S = v(), g = Cn(S), [s, N] = A.useState(f), [i, C] = A.useState(
|
|
141
|
+
const S = v(), g = Cn(S), [s, N] = A.useState(f), [i, C] = A.useState(a), [R, _] = A.useState(o);
|
|
142
142
|
A.useEffect(() => {
|
|
143
|
-
C(
|
|
144
|
-
}, [
|
|
143
|
+
C(a), _(o), a && N(a);
|
|
144
|
+
}, [a, o]);
|
|
145
145
|
const D = A.useMemo(() => {
|
|
146
|
-
const
|
|
147
|
-
for (let
|
|
148
|
-
const O =
|
|
149
|
-
for (let L = 0; L <
|
|
150
|
-
|
|
151
|
-
m.push(
|
|
146
|
+
const t = $({ start: V(s), end: U(s) }), m = [];
|
|
147
|
+
for (let d = 0; d < t.length; d++) {
|
|
148
|
+
const O = t[d], u = P({ start: O, end: b(O, 6) }), x = [];
|
|
149
|
+
for (let L = 0; L < u.length; L++)
|
|
150
|
+
x.push(u[L]);
|
|
151
|
+
m.push(x);
|
|
152
152
|
}
|
|
153
153
|
return m;
|
|
154
|
-
}, [s]), K = (
|
|
154
|
+
}, [s]), K = (t) => {
|
|
155
155
|
if (l !== "None") {
|
|
156
156
|
if (l === "Single") {
|
|
157
|
-
C(
|
|
157
|
+
C(t), r?.(t);
|
|
158
158
|
return;
|
|
159
159
|
}
|
|
160
|
-
!i || R ? (C(
|
|
160
|
+
!i || R ? (C(t), _(void 0)) : j(t, i) ? (_(i), C(t), c?.(t, i)) : (_(t), c?.(i, t));
|
|
161
161
|
}
|
|
162
162
|
}, M = () => {
|
|
163
|
-
const
|
|
164
|
-
N(
|
|
163
|
+
const t = f();
|
|
164
|
+
N(t), l !== "None" && (C(t), l === "Single" ? r?.(t) : (_(t), c?.(t, t)));
|
|
165
165
|
}, w = () => {
|
|
166
166
|
N(B(s, 1));
|
|
167
167
|
}, H = () => {
|
|
168
|
-
N(
|
|
168
|
+
N(F(s, 1));
|
|
169
169
|
};
|
|
170
|
-
return /* @__PURE__ */
|
|
171
|
-
/* @__PURE__ */
|
|
170
|
+
return /* @__PURE__ */ e("div", { className: `mx-cmn-calendar ${g}`, children: /* @__PURE__ */ h(Y, { sx: { boxShadow: "none" }, children: [
|
|
171
|
+
/* @__PURE__ */ e(
|
|
172
172
|
on,
|
|
173
173
|
{
|
|
174
174
|
copy: n,
|
|
@@ -177,19 +177,19 @@ const ln = ({
|
|
|
177
177
|
onPreviousClick: H
|
|
178
178
|
}
|
|
179
179
|
),
|
|
180
|
-
/* @__PURE__ */
|
|
181
|
-
D.map((
|
|
180
|
+
/* @__PURE__ */ e("div", { className: "mx-cmn-calendar-header-row", children: D[0].map((t, m) => /* @__PURE__ */ e("div", { className: "mx-cmn-calendar-header-cell", children: /* @__PURE__ */ e(G, { bold: !0, variant: "Small", children: y(t, "EEEEE") }) }, m)) }),
|
|
181
|
+
D.map((t, m) => /* @__PURE__ */ e("div", { className: "mx-cmn-calendar-week", children: t.map((d, O) => /* @__PURE__ */ e(
|
|
182
182
|
rn,
|
|
183
183
|
{
|
|
184
184
|
beginDate: i,
|
|
185
|
-
date:
|
|
185
|
+
date: d,
|
|
186
186
|
endDate: R,
|
|
187
|
-
isInMonth: W(
|
|
187
|
+
isInMonth: W(d, s),
|
|
188
188
|
onClick: K
|
|
189
189
|
},
|
|
190
190
|
O
|
|
191
191
|
)) }, `w-${m}`)),
|
|
192
|
-
/* @__PURE__ */
|
|
192
|
+
/* @__PURE__ */ e("div", { className: "mx-cmn-calendar-today-container", children: /* @__PURE__ */ e(E, { onClick: M, size: "small", variant: "text", children: n.today }) })
|
|
193
193
|
] }) });
|
|
194
194
|
}, Cn = (n) => p({
|
|
195
195
|
width: sn,
|
|
@@ -234,20 +234,20 @@ const ln = ({
|
|
|
234
234
|
}
|
|
235
235
|
}), Bn = ln, Pn = ({
|
|
236
236
|
children: n,
|
|
237
|
-
clickEventName:
|
|
238
|
-
onClick:
|
|
237
|
+
clickEventName: a,
|
|
238
|
+
onClick: o,
|
|
239
239
|
sx: r = {}
|
|
240
240
|
}) => {
|
|
241
241
|
const { onEvent: c } = tn();
|
|
242
|
-
return
|
|
242
|
+
return o ? /* @__PURE__ */ e(k, { sx: { bgcolor: "background.paper", ...r }, children: /* @__PURE__ */ e(
|
|
243
243
|
an,
|
|
244
244
|
{
|
|
245
245
|
onClick: () => {
|
|
246
|
-
|
|
246
|
+
a && c(a), o();
|
|
247
247
|
},
|
|
248
248
|
children: n
|
|
249
249
|
}
|
|
250
|
-
) }) : /* @__PURE__ */
|
|
250
|
+
) }) : /* @__PURE__ */ e(
|
|
251
251
|
k,
|
|
252
252
|
{
|
|
253
253
|
disableGutters: !1,
|
|
@@ -302,11 +302,13 @@ const ln = ({
|
|
|
302
302
|
ON_TRANSACTION_UNSPLIT_CANCEL: "onTransactionUnsplitCancel"
|
|
303
303
|
};
|
|
304
304
|
var Nn = /* @__PURE__ */ ((n) => (n[n.CREDIT = 1] = "CREDIT", n[n.DEBIT = 2] = "DEBIT", n))(Nn || {}), mn = /* @__PURE__ */ ((n) => (n[n.POSTED = 1] = "POSTED", n[n.PENDING = 2] = "PENDING", n))(mn || {});
|
|
305
|
+
const Un = (n, a) => !!n.find((o) => o.feature_name === a)?.is_enabled;
|
|
305
306
|
export {
|
|
306
307
|
Bn as C,
|
|
307
308
|
Pn as L,
|
|
308
309
|
$n as O,
|
|
309
310
|
Nn as T,
|
|
310
311
|
mn as a,
|
|
311
|
-
Tn as b
|
|
312
|
+
Tn as b,
|
|
313
|
+
Un as i
|
|
312
314
|
};
|
|
@@ -18,8 +18,8 @@ import { css as qe } from "@mxenabled/cssinjs";
|
|
|
18
18
|
import { b as Je } from "./Localization-2MODESHW.mjs";
|
|
19
19
|
import et from "@mui/material/CircularProgress";
|
|
20
20
|
import { makeAutoObservable as ce, runInAction as Te } from "mobx";
|
|
21
|
-
import { G as pe, a as tt, u as it, b as ot } from "./useCombineEvents-
|
|
22
|
-
import { B as _e } from "./BeatApi-
|
|
21
|
+
import { G as pe, a as tt, u as it, b as ot } from "./useCombineEvents-DaDBSR_1.mjs";
|
|
22
|
+
import { B as _e } from "./BeatApi-DLu87ijw.mjs";
|
|
23
23
|
import rt from "@mui/material/Card";
|
|
24
24
|
import lt from "@mui/material/CardActions";
|
|
25
25
|
import nt from "@mui/material/CardContent";
|
|
@@ -35,9 +35,6 @@ class ct {
|
|
|
35
35
|
constructor() {
|
|
36
36
|
ce(this);
|
|
37
37
|
}
|
|
38
|
-
// NOTE: Not sure if this is special case, but other stores have this deprecation todo
|
|
39
|
-
// DEPRECATED: Initialize api in constructor and use loadCopy instead
|
|
40
|
-
// TODO: Remove this function
|
|
41
38
|
initialize = async (o, t) => {
|
|
42
39
|
this.copyApi = new pe(o, t), await this.loadCopy();
|
|
43
40
|
};
|
|
@@ -12,7 +12,7 @@ import Y from "@mui/material/Stack";
|
|
|
12
12
|
import { Icon as s, Text as z, DateRangePicker as q, H1 as se, H3 as le } from "@mxenabled/mxui";
|
|
13
13
|
import { u as Ce } from "./useDimensions-27p2evRx.mjs";
|
|
14
14
|
import { L as de } from "./Loader-Dp1P2gNw.mjs";
|
|
15
|
-
import { e as Te, a as Ie, u as Ee, W as Re } from "./hooks-
|
|
15
|
+
import { e as Te, a as Ie, u as Ee, W as Re } from "./hooks-DkUqN6JE.mjs";
|
|
16
16
|
import { u as ae } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
17
17
|
import { addMonths as J } from "date-fns/addMonths";
|
|
18
18
|
import { addDays as ge } from "date-fns/addDays";
|
|
@@ -35,7 +35,7 @@ import Oe from "@mui/material/ToggleButtonGroup";
|
|
|
35
35
|
import fe from "@mui/material/styles/useTheme";
|
|
36
36
|
import { f as K, D as G, a as be } from "./Dialog-CWW597AF.mjs";
|
|
37
37
|
import { D as we } from "./Drawer-kEE73B87.mjs";
|
|
38
|
-
import {
|
|
38
|
+
import { i as Ke, j as Ge } from "./ConnectDrawer-phFH6OHt.mjs";
|
|
39
39
|
const Me = {
|
|
40
40
|
ACCOUNTS_CLICK_ACCOUNT: "accounts_widget_click_account",
|
|
41
41
|
ACCOUNTS_CLICK_CONNECT: "accounts_widget_click_connect_accounts",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { default as Fetch } from '../../common/utils/Fetch';
|
|
2
|
-
import { Account
|
|
2
|
+
import { Account } from '../../common';
|
|
3
3
|
export declare class AccountApi {
|
|
4
4
|
fetchInstance: Fetch;
|
|
5
|
-
constructor(endpoint: string, token: string
|
|
5
|
+
constructor(endpoint: string, token: string);
|
|
6
6
|
createAccount: (account: Account) => Promise<any>;
|
|
7
7
|
deleteAccount: (accountGuid: string) => Promise<any>;
|
|
8
8
|
getAccounts: () => Promise<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as n, jsx as e, Fragment as
|
|
1
|
+
import { jsxs as n, jsx as e, Fragment as $ } from "react/jsx-runtime";
|
|
2
2
|
import d from "react";
|
|
3
3
|
import { observer as M } from "mobx-react-lite";
|
|
4
4
|
import B from "@mui/material/Box";
|
|
@@ -7,24 +7,24 @@ import E from "@mui/material/List";
|
|
|
7
7
|
import T from "@mui/material/ListSubheader";
|
|
8
8
|
import x from "@mui/system/Stack";
|
|
9
9
|
import { Text as v } from "@mxenabled/mxui";
|
|
10
|
-
import { A as G } from "../AccountDetailsContent-
|
|
11
|
-
import { u as O1 } from "../AccountDetailsContent-
|
|
12
|
-
import { u as K, A as z } from "../AccountDetailsHeader-
|
|
13
|
-
import { A as W } from "../AccountListItem-
|
|
14
|
-
import { u as g, a as y, c as O, e as N, m as P } from "../hooks-
|
|
10
|
+
import { A as G } from "../AccountDetailsContent-Tm7IjJIc.mjs";
|
|
11
|
+
import { u as O1 } from "../AccountDetailsContent-Tm7IjJIc.mjs";
|
|
12
|
+
import { u as K, A as z } from "../AccountDetailsHeader-sum_Bgdy.mjs";
|
|
13
|
+
import { A as W } from "../AccountListItem-B-ZjJ4Gp.mjs";
|
|
14
|
+
import { u as g, a as y, c as O, e as N, m as P } from "../hooks-DkUqN6JE.mjs";
|
|
15
15
|
import { f as I } from "../NumberFormatting-CtWHhyBX.mjs";
|
|
16
16
|
import { D as Y } from "../Drawer-kEE73B87.mjs";
|
|
17
|
-
import { A, W as q } from "../WidgetContainer-
|
|
18
|
-
import { C as J } from "../ConnectionsDrawer-
|
|
17
|
+
import { A, W as q } from "../WidgetContainer-C2NBfpDg.mjs";
|
|
18
|
+
import { C as J } from "../ConnectionsDrawer-ihxkAi1P.mjs";
|
|
19
19
|
import { u as Q } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
20
20
|
import { L as R } from "../Loader-Dp1P2gNw.mjs";
|
|
21
|
-
import {
|
|
22
|
-
import { F as I1, M as N1 } from "../ConnectDrawer-
|
|
21
|
+
import { j as D } from "../ConnectDrawer-phFH6OHt.mjs";
|
|
22
|
+
import { F as I1, M as N1 } from "../ConnectDrawer-phFH6OHt.mjs";
|
|
23
23
|
import X from "@mui/material/ListItem";
|
|
24
|
-
import { M as U } from "../MiniWidgetContainer-
|
|
24
|
+
import { M as U } from "../MiniWidgetContainer-CTyjmE1h.mjs";
|
|
25
25
|
import e1 from "@mui/material/Stack";
|
|
26
|
-
import { g as U1, a as
|
|
27
|
-
import { A as G1, a as K1 } from "../AccountStore-
|
|
26
|
+
import { g as U1, a as j1 } from "../AccountFields-CIz-r3gP.mjs";
|
|
27
|
+
import { A as G1, a as K1 } from "../AccountStore-BaMynkQT.mjs";
|
|
28
28
|
const t1 = () => {
|
|
29
29
|
const [c, L] = d.useState(""), { accounts: o } = g(), { selectedAccounts: l } = y(), { setSelectedAccount: u, setSelectedMember: r } = K(), { members: s } = O(), { onEvent: p } = N(), a = [...new Set(l.map((t) => t.account_type))], H = l.find((t) => c === t.guid), h = d.useMemo(
|
|
30
30
|
() => l.filter((t) => t.is_hidden),
|
|
@@ -69,8 +69,8 @@ const t1 = () => {
|
|
|
69
69
|
]
|
|
70
70
|
}
|
|
71
71
|
) }),
|
|
72
|
-
children: /* @__PURE__ */ e(x, { children: i.map((f, Z,
|
|
73
|
-
const F = Z ===
|
|
72
|
+
children: /* @__PURE__ */ e(x, { children: i.map((f, Z, j) => {
|
|
73
|
+
const F = Z === j.length - 1;
|
|
74
74
|
return /* @__PURE__ */ n(d.Fragment, { children: [
|
|
75
75
|
/* @__PURE__ */ e(
|
|
76
76
|
W,
|
|
@@ -194,7 +194,7 @@ const t1 = () => {
|
|
|
194
194
|
onBackClick: c,
|
|
195
195
|
sx: L,
|
|
196
196
|
title: a.title,
|
|
197
|
-
children: V ? /* @__PURE__ */ n(
|
|
197
|
+
children: V ? /* @__PURE__ */ n($, { children: [
|
|
198
198
|
/* @__PURE__ */ n(B, { sx: { px: w ? 24 : 12 }, children: [
|
|
199
199
|
b.length < 1 && /* @__PURE__ */ e(v, { display: "flex", justifyContent: "center", my: 24, children: a.no_accounts }),
|
|
200
200
|
/* @__PURE__ */ e(l1, {})
|
|
@@ -746,7 +746,7 @@ export {
|
|
|
746
746
|
I1 as FieldType,
|
|
747
747
|
N1 as MemberConnectionStatus,
|
|
748
748
|
U1 as getAccountBalanceDetails,
|
|
749
|
-
|
|
749
|
+
j1 as getAccountDetailFields,
|
|
750
750
|
K as useAccountUiStore,
|
|
751
751
|
O1 as useGetMergeableAccounts
|
|
752
752
|
};
|
|
@@ -8,8 +8,8 @@ import a from "@mui/material/Stack";
|
|
|
8
8
|
import _ from "@mui/material/styles/useTheme";
|
|
9
9
|
import { Text as u, TextField as L } from "@mxenabled/mxui";
|
|
10
10
|
import { L as W } from "../Loader-Dp1P2gNw.mjs";
|
|
11
|
-
import { M as j } from "../MiniWidgetContainer-
|
|
12
|
-
import { i as f, u as b, e as q, a as E } from "../hooks-
|
|
11
|
+
import { M as j } from "../MiniWidgetContainer-CTyjmE1h.mjs";
|
|
12
|
+
import { i as f, u as b, e as q, a as E } from "../hooks-DkUqN6JE.mjs";
|
|
13
13
|
import Q from "@mui/material/ToggleButton";
|
|
14
14
|
import G from "@mui/material/ToggleButtonGroup";
|
|
15
15
|
const O = () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Budget, Category, Fetch } from '../../common';
|
|
2
2
|
export declare class BudgetsApi {
|
|
3
3
|
fetchInstance: Fetch;
|
|
4
|
-
constructor(endpoint: string, token: string
|
|
4
|
+
constructor(endpoint: string, token: string);
|
|
5
5
|
addBudget: (category: Category, amount: number, parentGuid?: string | null) => Promise<any>;
|
|
6
6
|
deleteBudget: (guid: string) => Promise<any>;
|
|
7
7
|
getBudgets: () => Promise<any>;
|
package/dist/budgets/index.es.js
CHANGED
|
@@ -7,15 +7,15 @@ import W from "@mui/material/Box";
|
|
|
7
7
|
import b from "@mui/material/Stack";
|
|
8
8
|
import Q from "@mui/material/styles/useTheme";
|
|
9
9
|
import { Icon as $, Text as p, CategoryIcon as H, H1 as Ge, H3 as Be } from "@mxenabled/mxui";
|
|
10
|
-
import { u as Pe } from "../BudgetUtil-
|
|
11
|
-
import { C as Ne } from "../ConnectionsDrawer-
|
|
10
|
+
import { u as Pe } from "../BudgetUtil-CeSLAcsl.mjs";
|
|
11
|
+
import { C as Ne } from "../ConnectionsDrawer-ihxkAi1P.mjs";
|
|
12
12
|
import * as E from "d3";
|
|
13
13
|
import je from "@mui/material/Tooltip";
|
|
14
|
-
import { g as w, k as j, u as D, e as X, a as ee, p as ze, h as te, f as ne, m as Ue, c as Se } from "../hooks-
|
|
14
|
+
import { g as w, k as j, u as D, e as X, a as ee, p as ze, h as te, f as ne, m as Ue, c as Se } from "../hooks-DkUqN6JE.mjs";
|
|
15
15
|
import { L as P } from "../Loader-Dp1P2gNw.mjs";
|
|
16
16
|
import { E as ce } from "../EmptyState-Dcb-o2tl.mjs";
|
|
17
17
|
import { u as me } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
18
|
-
import { A as k, W as Fe } from "../WidgetContainer-
|
|
18
|
+
import { A as k, W as Fe } from "../WidgetContainer-C2NBfpDg.mjs";
|
|
19
19
|
import K from "@mui/material/List";
|
|
20
20
|
import { f as T } from "../NumberFormatting-CtWHhyBX.mjs";
|
|
21
21
|
import Ae from "@mui/material/Button";
|
|
@@ -27,26 +27,26 @@ import Z from "@mui/material/ListItemText";
|
|
|
27
27
|
import { b as L } from "../Localization-2MODESHW.mjs";
|
|
28
28
|
import { D as M } from "../Drawer-kEE73B87.mjs";
|
|
29
29
|
import We from "@mui/material/ListItemSecondaryAction";
|
|
30
|
-
import { C as He } from "../CurrencyInput-
|
|
30
|
+
import { C as He } from "../CurrencyInput-bEx2Mbd0.mjs";
|
|
31
31
|
import { a as N } from "../Dialog-CWW597AF.mjs";
|
|
32
|
-
import { M as Xe } from "../MiniWidgetContainer-
|
|
32
|
+
import { M as Xe } from "../MiniWidgetContainer-CTyjmE1h.mjs";
|
|
33
33
|
import { isAfter as Ke } from "date-fns/isAfter";
|
|
34
34
|
import { startOfToday as q } from "date-fns/startOfToday";
|
|
35
35
|
import Ve from "@mui/material/Alert";
|
|
36
36
|
import Ye from "@mui/material/Snackbar";
|
|
37
37
|
import be from "@mui/material/Tab";
|
|
38
38
|
import Ze from "@mui/material/Tabs";
|
|
39
|
-
import { e as qe } from "../exportTransactionsToCSV-
|
|
40
|
-
import { T as xe, a as Je } from "../TransactionDetails-
|
|
39
|
+
import { e as qe } from "../exportTransactionsToCSV-BDlt8u0n.mjs";
|
|
40
|
+
import { T as xe, a as Je } from "../TransactionDetails-DYF-P762.mjs";
|
|
41
41
|
import ge from "@mui/material/Card";
|
|
42
42
|
import pe from "@mui/material/CardContent";
|
|
43
43
|
import { S as ue } from "../StatusBar-BK_uYHAB.mjs";
|
|
44
44
|
import { S as ve } from "../SingleSegmentDonut-BgbLgwHi.mjs";
|
|
45
|
-
import { u as Qe, b as et } from "../CategorySelectorDrawer-
|
|
45
|
+
import { u as Qe, b as et } from "../CategorySelectorDrawer-BPvjZ-Xo.mjs";
|
|
46
46
|
import Te from "@mui/material/CardHeader";
|
|
47
47
|
import { subDays as tt } from "date-fns/subDays";
|
|
48
48
|
import nt from "@mui/material/IconButton";
|
|
49
|
-
import { M as ot } from "../ManageIncome-
|
|
49
|
+
import { M as ot } from "../ManageIncome-Bef4VWt7.mjs";
|
|
50
50
|
const ye = 5, at = 100, rt = 25, st = (t) => {
|
|
51
51
|
const o = (a) => {
|
|
52
52
|
a.active || t.alphaTarget(0.3).restart(), a.subject.fx = a.subject.x, a.subject.fy = a.subject.y;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { Fetch } from '../../common';
|
|
2
|
-
import { GlobalErrorHandler, CashflowEvent, CashflowSequence } from '../../common/types';
|
|
1
|
+
import { Fetch, CashflowEvent, CashflowSequence } from '../../common';
|
|
3
2
|
export declare class CashflowApi {
|
|
4
3
|
fetchInstance: Fetch;
|
|
5
|
-
constructor(endpoint: string, token: string
|
|
4
|
+
constructor(endpoint: string, token: string);
|
|
6
5
|
addCashflowEvent: (cashflowEvent: CashflowEvent) => Promise<any>;
|
|
7
6
|
addCashflowSequence: (cashflowSequence: CashflowSequence) => Promise<any>;
|
|
8
7
|
getCashflowSequences: () => Promise<CashflowSequence[]>;
|
|
@@ -9,21 +9,21 @@ import D from "@mui/material/Divider";
|
|
|
9
9
|
import r from "@mui/material/Stack";
|
|
10
10
|
import ae from "@mui/material/styles/useTheme";
|
|
11
11
|
import { Text as h, P as k, Icon as F, InstitutionLogo as xe, H1 as le, H2 as Xe } from "@mxenabled/mxui";
|
|
12
|
-
import { G as Ye, t as de, u as O, p as re, c as Oe, a as Y, o as me, h as q, e as Ne, f as ke } from "../hooks-
|
|
12
|
+
import { G as Ye, t as de, u as O, p as re, c as Oe, a as Y, o as me, h as q, e as Ne, f as ke } from "../hooks-DkUqN6JE.mjs";
|
|
13
13
|
import { C as L } from "../CurrencyText-YUhH2caW.mjs";
|
|
14
14
|
import { u as ue } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
15
15
|
import { L as se } from "../Loader-Dp1P2gNw.mjs";
|
|
16
16
|
import { I as he } from "../CashflowStore-D9Dpuz7X.mjs";
|
|
17
17
|
import { C as Wn } from "../CashflowStore-D9Dpuz7X.mjs";
|
|
18
18
|
import { b as X } from "../Localization-2MODESHW.mjs";
|
|
19
|
-
import { M as Qe } from "../MiniWidgetContainer-
|
|
20
|
-
import { R as Ve } from "../RecurringSettings-
|
|
19
|
+
import { M as Qe } from "../MiniWidgetContainer-CTyjmE1h.mjs";
|
|
20
|
+
import { R as Ve } from "../RecurringSettings-1EOh67IT.mjs";
|
|
21
21
|
import Ke from "@mui/material/Tabs";
|
|
22
22
|
import Ce from "@mui/material/Tab";
|
|
23
23
|
import { getUnixTime as U } from "date-fns/getUnixTime";
|
|
24
24
|
import ee from "@mui/material/List";
|
|
25
25
|
import te from "@mui/material/ListItem";
|
|
26
|
-
import { A as Je } from "../AccountListItem-
|
|
26
|
+
import { A as Je } from "../AccountListItem-B-ZjJ4Gp.mjs";
|
|
27
27
|
import { f as Q, D as V } from "../Dialog-CWW597AF.mjs";
|
|
28
28
|
import Ze from "@mui/material/ListSubheader";
|
|
29
29
|
import { f as Z } from "../NumberFormatting-CtWHhyBX.mjs";
|
|
@@ -34,18 +34,18 @@ import { addDays as _e } from "date-fns/addDays";
|
|
|
34
34
|
import { alpha as et, keyframes as tt } from "@mui/material/styles";
|
|
35
35
|
import { DataGridPro as nt } from "@mui/x-data-grid-pro";
|
|
36
36
|
import { T as we } from "../TabContentContainer-j01JYR_7.mjs";
|
|
37
|
-
import { M as ot, S as it, i as at, d as Se, c as rt } from "../ManageIncome-
|
|
37
|
+
import { M as ot, S as it, i as at, d as Se, c as rt } from "../ManageIncome-Bef4VWt7.mjs";
|
|
38
38
|
import { D as $e } from "../Drawer-kEE73B87.mjs";
|
|
39
39
|
import { formatISO as st } from "date-fns/formatISO";
|
|
40
40
|
import { fromUnixTime as ye } from "date-fns/fromUnixTime";
|
|
41
41
|
import { startOfMonth as ct } from "date-fns/startOfMonth";
|
|
42
42
|
import { subDays as Me } from "date-fns/subDays";
|
|
43
|
-
import { S as lt, b as dt } from "../TransactionDetails-
|
|
43
|
+
import { S as lt, b as dt } from "../TransactionDetails-DYF-P762.mjs";
|
|
44
44
|
import { F as mt, R as Ie, e as De } from "../RepeatingTransaction-BW4J-jeJ.mjs";
|
|
45
45
|
import { h as ut } from "../DateUtil-BcuH7ErC.mjs";
|
|
46
46
|
import { endOfToday as ht } from "date-fns/endOfToday";
|
|
47
|
-
import { W as ve, A as Ae } from "../WidgetContainer-
|
|
48
|
-
import { F as pt, A as B } from "../Fetch-
|
|
47
|
+
import { W as ve, A as Ae } from "../WidgetContainer-C2NBfpDg.mjs";
|
|
48
|
+
import { F as pt, A as B } from "../Fetch-CkFKy79O.mjs";
|
|
49
49
|
const K = () => {
|
|
50
50
|
if (!m.useContext(Ye))
|
|
51
51
|
throw new Error("useCashflowUiStore() must be used within the GlobalDataContext");
|
|
@@ -1075,8 +1075,8 @@ const _t = ({ recurrence: i }) => /* @__PURE__ */ o(P, { children: [
|
|
|
1075
1075
|
}, Nn = T(Wt);
|
|
1076
1076
|
class kn {
|
|
1077
1077
|
fetchInstance;
|
|
1078
|
-
constructor(n, t
|
|
1079
|
-
this.fetchInstance = new pt(n, t
|
|
1078
|
+
constructor(n, t) {
|
|
1079
|
+
this.fetchInstance = new pt(n, t);
|
|
1080
1080
|
}
|
|
1081
1081
|
addCashflowEvent = async (n) => this.fetchInstance.post(B.CASHFLOW_EVENTS, { ...n }).then((t) => t);
|
|
1082
1082
|
addCashflowSequence = async (n) => this.fetchInstance.post(B.CASHFLOW_SEQUENCES, { ...n }).then((t) => t.cashflow_sequence);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as o, C as a, a as t, u as C } from "../CategorySelectorDrawer-
|
|
2
|
-
import { C as g } from "../CategoryStore-
|
|
1
|
+
import { b as o, C as a, a as t, u as C } from "../CategorySelectorDrawer-BPvjZ-Xo.mjs";
|
|
2
|
+
import { C as g } from "../CategoryStore-BOyzQjQp.mjs";
|
|
3
3
|
export {
|
|
4
4
|
o as CategoryRow,
|
|
5
5
|
a as CategorySelector,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Fetch } from '../utils';
|
|
2
|
-
import { AnalyticsEvent
|
|
2
|
+
import { AnalyticsEvent } from '../types';
|
|
3
3
|
export declare class AnalyticsApi {
|
|
4
4
|
fetchInstance: Fetch;
|
|
5
|
-
constructor(endpoint: string, token: string
|
|
5
|
+
constructor(endpoint: string, token: string);
|
|
6
6
|
initializeAnalyticsSession: (version: string, featureName?: string) => Promise<{
|
|
7
7
|
analytics_session: any;
|
|
8
8
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as Fetch } from '../utils/Fetch';
|
|
2
|
-
import { AppData
|
|
2
|
+
import { AppData } from '../types';
|
|
3
3
|
export declare class AppDataApi {
|
|
4
4
|
fetchInstance: Fetch;
|
|
5
|
-
constructor(endpoint: string, token: string
|
|
5
|
+
constructor(endpoint: string, token: string);
|
|
6
6
|
getAppData: () => Promise<AppData>;
|
|
7
7
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { default as Fetch } from '../utils/Fetch';
|
|
2
|
-
import { Beat
|
|
2
|
+
import { Beat } from '../types';
|
|
3
3
|
export declare class BeatApi {
|
|
4
4
|
fetchInstance: Fetch;
|
|
5
|
-
constructor(endpoint: string, token: string
|
|
5
|
+
constructor(endpoint: string, token: string);
|
|
6
6
|
getBeats: (pageNum?: number, perPage?: number) => Promise<any>;
|
|
7
7
|
getBeatsWithAssociatedTransaction: (fromDate?: string) => Promise<any>;
|
|
8
8
|
getOffers: () => Promise<any>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { default as Fetch } from '../utils/Fetch';
|
|
2
|
-
import { Account
|
|
2
|
+
import { Account } from '../types/Account';
|
|
3
|
+
import { Category } from '../types/Category';
|
|
3
4
|
export declare class CategoryApi {
|
|
4
5
|
fetchInstance: Fetch;
|
|
5
|
-
constructor(endpoint: string, token: string
|
|
6
|
+
constructor(endpoint: string, token: string);
|
|
6
7
|
addCategory: (category: Category) => Promise<any>;
|
|
7
8
|
getCategories: () => Promise<any>;
|
|
8
9
|
getDateRangeCategoryTotals: (startDate: number, endDate: number, accounts: Account[]) => Promise<any>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { default as Fetch } from '../utils/Fetch';
|
|
2
|
-
import { GlobalErrorHandler } from '../types';
|
|
3
2
|
export declare class GlobalCopyApi {
|
|
4
3
|
fetchInstance: Fetch;
|
|
5
|
-
constructor(endpoint: string, token: string
|
|
4
|
+
constructor(endpoint: string, token: string);
|
|
6
5
|
getGlobalCopy: (namespace: string, translationKey: string) => Promise<any>;
|
|
7
6
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { default as Fetch } from '../utils/Fetch';
|
|
2
|
-
import { GlobalErrorHandler } from '../types';
|
|
3
2
|
export declare class LocalizedCopyApi {
|
|
4
3
|
fetchInstance: Fetch;
|
|
5
|
-
constructor(endpoint: string, token: string
|
|
4
|
+
constructor(endpoint: string, token: string);
|
|
6
5
|
getLocalizedCopy: (req: any) => Promise<any>;
|
|
7
6
|
getLocalizedContent: (namespace: string) => Promise<any>;
|
|
8
7
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { default as Fetch } from '../utils/Fetch';
|
|
2
|
-
import { Notification
|
|
2
|
+
import { Notification } from '../types';
|
|
3
3
|
export declare class NotificationApi {
|
|
4
4
|
fetchInstance: Fetch;
|
|
5
|
-
constructor(endpoint: string, token: string
|
|
5
|
+
constructor(endpoint: string, token: string);
|
|
6
6
|
getNotifications: () => Promise<any>;
|
|
7
7
|
updateNotification: (notification: Notification) => Promise<any>;
|
|
8
8
|
markAllAsViewed: (channel?: number) => Promise<any>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { Fetch } from '
|
|
2
|
-
import { ScheduledPayment, GlobalErrorHandler } from '../types';
|
|
1
|
+
import { Fetch, ScheduledPayment } from '../index';
|
|
3
2
|
export declare class ScheduledPaymentsApi {
|
|
4
3
|
fetchInstance: Fetch;
|
|
5
|
-
constructor(endpoint: string, token: string
|
|
4
|
+
constructor(endpoint: string, token: string);
|
|
6
5
|
addScheduledPayment: (scheduledPayment: ScheduledPayment) => Promise<any>;
|
|
7
6
|
getScheduledPayments: () => Promise<any>;
|
|
8
7
|
updateScheduledPayment: (scheduledPayment: ScheduledPayment) => Promise<any>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { default as Fetch } from '../utils/Fetch';
|
|
2
|
-
import {
|
|
2
|
+
import { User, UserProfile } from '../types';
|
|
3
3
|
export declare class UserApi {
|
|
4
4
|
fetchInstance: Fetch;
|
|
5
|
-
constructor(endpoint: string, token: string
|
|
5
|
+
constructor(endpoint: string, token: string);
|
|
6
6
|
getUserFeatures: () => Promise<any>;
|
|
7
7
|
updateUser: (user: User) => Promise<any>;
|
|
8
8
|
updateUserProfile: (userProfile: UserProfile) => Promise<any>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { GlobalStore } from '..';
|
|
3
3
|
export interface GlobalStoreContextTypes {
|
|
4
4
|
children: React.ReactNode;
|
|
5
|
-
|
|
6
|
-
onEvent: GlobalEventHandler;
|
|
5
|
+
onEvent: (event: string, props?: object) => void;
|
|
7
6
|
onPageView: (pageViewEvent: string) => void;
|
|
8
7
|
globalStore: GlobalStore;
|
|
9
8
|
}
|
|
@@ -22,11 +22,8 @@ export declare const useSettingsStore: () => import('../../settings').SettingsSt
|
|
|
22
22
|
export declare const useTransactionStore: () => import('../../transactions').TransactionStore;
|
|
23
23
|
export declare const useTrendsStore: () => import('../../trends').TrendsStore;
|
|
24
24
|
export declare const useUserStore: () => import('..').UserStore;
|
|
25
|
-
export declare const useError: () => {
|
|
26
|
-
onError: import('..').GlobalErrorHandler;
|
|
27
|
-
};
|
|
28
25
|
export declare const useEvent: () => {
|
|
29
|
-
onEvent:
|
|
26
|
+
onEvent: (event: string, props?: object) => void;
|
|
30
27
|
};
|
|
31
28
|
export declare const usePageView: () => {
|
|
32
29
|
onPageView: (pageViewEvent: string) => void;
|