@mx-cartographer/experiences 3.8.0 → 3.9.0-alpha.al1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/common/components/charts/LineChart.d.ts +1 -0
- package/dist/common/context/hooks.d.ts +1 -0
- package/dist/common/context/index.d.ts +1 -1
- package/dist/common/stores/GlobalStore.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +2629 -2535
- package/dist/index.es.js.map +1 -1
- package/dist/networth/NetWorthWidget.d.ts +5 -0
- package/dist/networth/api/NetWorthApi.d.ts +9 -0
- package/dist/networth/components/NetWorthChart.d.ts +7 -0
- package/dist/networth/components/NetWorthList.d.ts +7 -0
- package/dist/networth/components/NetWorthRow.d.ts +6 -0
- package/dist/networth/index.d.ts +3 -0
- package/dist/networth/stores/NetWorthStore.d.ts +15 -0
- package/dist/networth/types/NetWorth.d.ts +37 -0
- package/dist/networth/utils/NetWorth.d.ts +3 -0
- package/package.json +1 -1
@@ -0,0 +1,9 @@
|
|
1
|
+
import { Fetch } from '../../common';
|
2
|
+
|
3
|
+
export declare class NetWorthApi {
|
4
|
+
fetchInstance: Fetch;
|
5
|
+
constructor(endpoint: string, token: string);
|
6
|
+
getAccounts: () => Promise<any>;
|
7
|
+
getMembers: () => Promise<any>;
|
8
|
+
getMonthlyAccountBalances: (guid: string) => Promise<any>;
|
9
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { GlobalStore } from '../../common';
|
2
|
+
import { NetWorthApi } from '../api/NetWorthApi';
|
3
|
+
import { NetWorth, NetWorthData, xyData } from '../types/NetWorth';
|
4
|
+
|
5
|
+
export declare class NetWorthStore {
|
6
|
+
api: NetWorthApi;
|
7
|
+
globalStore: GlobalStore;
|
8
|
+
netWorthData: NetWorthData;
|
9
|
+
netWorthChartData: xyData[];
|
10
|
+
netWorthMonthlyList: NetWorth[];
|
11
|
+
constructor(globalStore: GlobalStore);
|
12
|
+
initialize: (endpoint: string, token: string) => void;
|
13
|
+
loadNetWorthData: () => Promise<void>;
|
14
|
+
_flattenBalances: (balances: any, balance: any) => any[];
|
15
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import { Account } from '../../common';
|
2
|
+
|
3
|
+
export type MonthlyAccountBalance = {
|
4
|
+
account_guid: string;
|
5
|
+
balance: number;
|
6
|
+
credit_transaction_total: number;
|
7
|
+
debit_transaction_total: number;
|
8
|
+
id: string;
|
9
|
+
month: number;
|
10
|
+
transaction_total: number;
|
11
|
+
user_guid: string;
|
12
|
+
year: number;
|
13
|
+
year_month: number;
|
14
|
+
};
|
15
|
+
type MonthlyAccountBalances = {
|
16
|
+
change: number;
|
17
|
+
guid: string;
|
18
|
+
name: string;
|
19
|
+
type: number;
|
20
|
+
value: number;
|
21
|
+
};
|
22
|
+
export type NetWorth = {
|
23
|
+
id: number;
|
24
|
+
accounts: MonthlyAccountBalances[];
|
25
|
+
x: number;
|
26
|
+
y: number;
|
27
|
+
change: number;
|
28
|
+
};
|
29
|
+
export type xyData = {
|
30
|
+
x: string;
|
31
|
+
y: number;
|
32
|
+
};
|
33
|
+
export type NetWorthData = {
|
34
|
+
accounts: Account[];
|
35
|
+
monthlyAccountBalances: MonthlyAccountBalance[];
|
36
|
+
};
|
37
|
+
export {};
|