@mx-cartographer/experiences 7.2.9-alpha-ram1-finstrong-testing → 7.2.9-alpha-ram3-finstrong-testing
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.
|
@@ -22,7 +22,7 @@ import X from "@mui/material/ListItem";
|
|
|
22
22
|
import V from "@mui/material/ListItemAvatar";
|
|
23
23
|
import j from "@mui/material/ListItemButton";
|
|
24
24
|
import z from "@mui/material/ListItemText";
|
|
25
|
-
import { Text as
|
|
25
|
+
import { Text as F } from "@mxenabled/mxui";
|
|
26
26
|
import { f as O, a as C } from "./Dialog-BPTr3qHE.mjs";
|
|
27
27
|
import { b as W } from "./Localization-2MODESHW.mjs";
|
|
28
28
|
const m = {
|
|
@@ -83,8 +83,8 @@ const q = ({ list: e, onClickItem: t }) => /* @__PURE__ */ i(K, { sx: { bgcolor:
|
|
|
83
83
|
/* @__PURE__ */ i(
|
|
84
84
|
z,
|
|
85
85
|
{
|
|
86
|
-
primary: /* @__PURE__ */ i(
|
|
87
|
-
secondary: /* @__PURE__ */ i(
|
|
86
|
+
primary: /* @__PURE__ */ i(F, { sx: { color: "text.secondary" }, variant: "caption", children: r.primaryText }),
|
|
87
|
+
secondary: /* @__PURE__ */ i(F, { sx: { color: "text.primary", fontWeight: 600 }, variant: "body1", children: r.secondaryText })
|
|
88
88
|
}
|
|
89
89
|
)
|
|
90
90
|
] }) }),
|
|
@@ -253,23 +253,23 @@ const q = ({ list: e, onClickItem: t }) => /* @__PURE__ */ i(K, { sx: { bgcolor:
|
|
|
253
253
|
})), ot = (e) => e.sort((r, n) => n.transaction.date - r.transaction.date).map(({ transaction: r }) => ({
|
|
254
254
|
...r
|
|
255
255
|
}));
|
|
256
|
-
class
|
|
256
|
+
class y {
|
|
257
257
|
fetchInstance;
|
|
258
258
|
constructor(t, r, n) {
|
|
259
259
|
this.fetchInstance = new x(t, r, void 0, n);
|
|
260
260
|
}
|
|
261
261
|
calculateHealthScore = async () => this.fetchInstance.post(`${h.HEALTH_SCORES}/calculate`).then((t) => t.health_score);
|
|
262
262
|
getAverageHealthScores = async () => this.fetchInstance.get(`${h.HEALTH_SCORES}/monthly_averages`).then((t) => t);
|
|
263
|
-
getDebtSpend = async () => this.fetchInstance.get(`${h.HEALTH_SCORES}/transactions/debt_spend`).then((t) => t
|
|
264
|
-
getIncome = async () => this.fetchInstance.get(`${h.HEALTH_SCORES}/transactions/income`).then((t) => t
|
|
265
|
-
getMonthlySummaries = async () => this.fetchInstance.get(`${h.HEALTH_SCORES}/monthly_summaries`).then((t) => t
|
|
263
|
+
getDebtSpend = async () => this.fetchInstance.get(`${h.HEALTH_SCORES}/transactions/debt_spend`).then((t) => t);
|
|
264
|
+
getIncome = async () => this.fetchInstance.get(`${h.HEALTH_SCORES}/transactions/income`).then((t) => t);
|
|
265
|
+
getMonthlySummaries = async () => this.fetchInstance.get(`${h.HEALTH_SCORES}/monthly_summaries`).then((t) => t);
|
|
266
266
|
getHealthScoreChangeReports = async (t, r) => this.fetchInstance.get(`${h.HEALTH_SCORES}/change_report/from/${t}/to/${r}`).then((n) => n);
|
|
267
267
|
getPeerScore = async (t) => this.fetchInstance.get(`${h.HEALTH_SCORES}/average/${t}`).then((r) => r.average_health_score);
|
|
268
268
|
getSpendingFeeTransactions = async () => this.fetchInstance.get(`${h.HEALTH_SCORES}/transactions/spending_fee`).then((t) => t);
|
|
269
269
|
getStandardSpend = async () => this.fetchInstance.get(`${h.HEALTH_SCORES}/transactions/standard_spend`).then((t) => t);
|
|
270
270
|
}
|
|
271
271
|
class te {
|
|
272
|
-
api = new
|
|
272
|
+
api = new y("/", "");
|
|
273
273
|
augmentedChartData = [];
|
|
274
274
|
averageHealthScores = [];
|
|
275
275
|
monthlySummaries = [];
|
|
@@ -285,7 +285,7 @@ class te {
|
|
|
285
285
|
healthScoreChangeReports = [];
|
|
286
286
|
peerScore = null;
|
|
287
287
|
constructor(t) {
|
|
288
|
-
this.globalStore = t, this.api = new
|
|
288
|
+
this.globalStore = t, this.api = new y(t.endpoint, t.sessionToken, t.onError), b(this);
|
|
289
289
|
}
|
|
290
290
|
calculateHealthScore = async () => {
|
|
291
291
|
try {
|
|
@@ -428,5 +428,5 @@ export {
|
|
|
428
428
|
Ut as v,
|
|
429
429
|
Xt as w,
|
|
430
430
|
kt as x,
|
|
431
|
-
|
|
431
|
+
y
|
|
432
432
|
};
|
package/dist/common/index.es.js
CHANGED
|
@@ -64,7 +64,7 @@ import { startOfToday as U } from "date-fns/startOfToday";
|
|
|
64
64
|
import { f as bt, a as wt, b as L } from "../BudgetUtil-wjoNuj7B.mjs";
|
|
65
65
|
import { g as ta, e as ea, c as sa, d as ra, i as oa } from "../BudgetUtil-wjoNuj7B.mjs";
|
|
66
66
|
import { a as xt } from "../DebtsStore-DB5U2WMC.mjs";
|
|
67
|
-
import { F as Ct } from "../FinstrongStore-
|
|
67
|
+
import { F as Ct } from "../FinstrongStore-D2uwTgBD.mjs";
|
|
68
68
|
import { A as vt, m as Dt, a as At, b as Et } from "../InvestmentUtil-jOyOgzIB.mjs";
|
|
69
69
|
import { M as Tt } from "../MerchantStore-DrFvsUyy.mjs";
|
|
70
70
|
import { N as Bt } from "../NetWorthStore-CUz0bwVm.mjs";
|
|
@@ -5,8 +5,8 @@ import { useTheme as G, alpha as ue } from "@mui/material/styles";
|
|
|
5
5
|
import { PieChart as Vt, BarPlot as Yt } from "@mui/x-charts";
|
|
6
6
|
import { TrendingUp as dt, ArrowRightAlt as Xt, TrendingDown as Ut, AccountBalance as pt, ChevronRight as Z, MultilineChart as ut, CreditCard as ze, CheckCircle as qt, Cancel as Zt, Savings as Qt, ContentCopy as Jt, Add as _t, Cardiology as en, Payments as tn, CalendarMonth as nn, ExpandMore as on } from "@mxenabled/mx-icons";
|
|
7
7
|
import { P as M, H3 as j, Text as A, InstitutionLogo as ht, H2 as Ie, MerchantLogo as rn, Icon as an } from "@mxenabled/mxui";
|
|
8
|
-
import { g as sn, a as cn, r as Qe, b as ln, c as Ge, d as mt, C as be, e as fe, f as dn, h as pn, i as un, j as gt, k as Je, l as _n, m as et, n as hn, o as yt, p as mn, q as bt, s as ke, t as gn, u as yn, v as bn, w as fn, A as ee, x as xn, P as Sn } from "../FinstrongStore-
|
|
9
|
-
import { y as yi, F as bi } from "../FinstrongStore-
|
|
8
|
+
import { g as sn, a as cn, r as Qe, b as ln, c as Ge, d as mt, C as be, e as fe, f as dn, h as pn, i as un, j as gt, k as Je, l as _n, m as et, n as hn, o as yt, p as mn, q as bt, s as ke, t as gn, u as yn, v as bn, w as fn, A as ee, x as xn, P as Sn } from "../FinstrongStore-D2uwTgBD.mjs";
|
|
9
|
+
import { y as yi, F as bi } from "../FinstrongStore-D2uwTgBD.mjs";
|
|
10
10
|
import * as tt from "d3";
|
|
11
11
|
import { observer as x } from "mobx-react-lite";
|
|
12
12
|
import { u as w, b as Y, p as Q, z as R, q as Cn, a as ft, d as Se, m as He, g as vn, f as wn, j as kn, h as Mn, i as xt } from "../hooks-C41HAxM5.mjs";
|
package/package.json
CHANGED