@mx-cartographer/experiences 3.14.0-alpha.mm6 → 3.15.0

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.
Files changed (70) hide show
  1. package/CHANGELOG.md +241 -96
  2. package/dist/accounts/stores/AccountStore.d.ts +1 -0
  3. package/dist/budgets/api/BudgetsApi.d.ts +2 -2
  4. package/dist/budgets/components/AddBudgets.d.ts +3 -0
  5. package/dist/budgets/components/BubbleBudgets.d.ts +1 -3
  6. package/dist/budgets/components/BubbleChart.d.ts +4 -5
  7. package/dist/budgets/components/BudgetDetailsDrawer.d.ts +3 -0
  8. package/dist/budgets/components/BudgetList.d.ts +3 -7
  9. package/dist/budgets/components/addbudget/Header.d.ts +3 -0
  10. package/dist/budgets/components/addbudget/RecalculateBudgetRow.d.ts +7 -0
  11. package/dist/budgets/components/addbudget/RecalculateBudgets.d.ts +1 -0
  12. package/dist/budgets/components/addbudget/UnbudgetedRow.d.ts +8 -0
  13. package/dist/budgets/components/bubblechart/Bubble.d.ts +1 -1
  14. package/dist/budgets/components/bubblechart/Mercury.d.ts +2 -0
  15. package/dist/budgets/components/budgetdetails/AddSubBudget.d.ts +8 -0
  16. package/dist/budgets/components/{BudgetDetails.d.ts → budgetdetails/BudgetDetails.d.ts} +1 -1
  17. package/dist/budgets/components/budgetdetails/Header.d.ts +7 -0
  18. package/dist/budgets/components/budgetdetails/SubBudgetList.d.ts +7 -0
  19. package/dist/budgets/components/budgetlist/BudgetRow.d.ts +1 -1
  20. package/dist/budgets/components/budgetlist/SubBudgetRow.d.ts +1 -1
  21. package/dist/budgets/components/budgetlist/SubBudgetZeroState.d.ts +3 -1
  22. package/dist/budgets/components/shared/BudgetAmount.d.ts +8 -0
  23. package/dist/budgets/store/BudgetsStore.d.ts +8 -2
  24. package/dist/budgets/utils/BubblesSVG.d.ts +5 -3
  25. package/dist/budgets/utils/BudgetUtil.d.ts +6 -4
  26. package/dist/categories/index.d.ts +1 -0
  27. package/dist/categories/stores/CategoryStore.d.ts +5 -36
  28. package/dist/categories/util/CategoryUtil.d.ts +8 -0
  29. package/dist/common/components/charts/LineChart.d.ts +7 -1
  30. package/dist/common/components/charts/linechart/CustomMark.d.ts +7 -0
  31. package/dist/common/components/dialog/Dialog.d.ts +2 -0
  32. package/dist/common/components/drawer/Drawer.d.ts +4 -0
  33. package/dist/common/components/drawer/Header.d.ts +1 -0
  34. package/dist/common/components/index.d.ts +1 -0
  35. package/dist/common/constants/Analytics.d.ts +5 -0
  36. package/dist/common/context/hooks.d.ts +3 -1
  37. package/dist/common/context/index.d.ts +1 -1
  38. package/dist/common/stores/GlobalStore.d.ts +4 -0
  39. package/dist/common/types/Account.d.ts +1 -0
  40. package/dist/common/types/Budget.d.ts +2 -4
  41. package/dist/common/types/Category.d.ts +22 -9
  42. package/dist/common/types/Debt.d.ts +15 -0
  43. package/dist/common/types/index.d.ts +3 -2
  44. package/dist/common/types/localization/BudgetsCopy.d.ts +36 -0
  45. package/dist/common/utils/Categories.d.ts +4 -1
  46. package/dist/common/utils/DateUtil.d.ts +1 -0
  47. package/dist/common/utils/index.d.ts +2 -1
  48. package/dist/debts/DebtsWidget.d.ts +5 -0
  49. package/dist/debts/index.d.ts +2 -0
  50. package/dist/debts/store/DebtsStore.d.ts +6 -0
  51. package/dist/debts/utils/DebtStore.d.ts +5 -0
  52. package/dist/goals/index.d.ts +1 -0
  53. package/dist/index.d.ts +1 -0
  54. package/dist/index.es.js +5683 -4641
  55. package/dist/index.es.js.map +1 -1
  56. package/dist/networth/NetWorthWidget.d.ts +3 -0
  57. package/dist/networth/components/AssetsLiabilitiesDetail.d.ts +4 -0
  58. package/dist/networth/components/GainsLossesDetail.d.ts +4 -0
  59. package/dist/networth/components/NetWorthChange.d.ts +12 -0
  60. package/dist/networth/components/NetWorthChart.d.ts +3 -0
  61. package/dist/networth/components/NetWorthList.d.ts +2 -6
  62. package/dist/networth/components/NetWorthListItem.d.ts +17 -0
  63. package/dist/networth/components/NetWorthSummary.d.ts +7 -0
  64. package/dist/networth/index.d.ts +3 -0
  65. package/dist/networth/stores/NetWorthStore.d.ts +7 -1
  66. package/dist/networth/types/NetWorth.d.ts +40 -1
  67. package/dist/networth/utils/NetWorthUtils.d.ts +22 -1
  68. package/dist/recurringactivity/stores/RecurringActivityStore.d.ts +1 -0
  69. package/dist/transactions/index.d.ts +1 -0
  70. package/package.json +3 -3
@@ -11,6 +11,7 @@ export declare class AccountStore {
11
11
  constructor(globalStore: GlobalStore);
12
12
  initialize: (endpoint: string, token: string) => Promise<void>;
13
13
  get cashAccounts(): Account[];
14
+ get debtAccounts(): Account[];
14
15
  get cashBalance(): number;
15
16
  addAccount: (account: Account) => Promise<void>;
16
17
  augmentAccounts: (accounts?: Account[]) => Account[];
@@ -1,8 +1,8 @@
1
- import { Budget, Fetch } from '../../common';
1
+ import { Budget, Category, Fetch } from '../../common';
2
2
  export declare class BudgetsApi {
3
3
  fetchInstance: Fetch;
4
4
  constructor(endpoint: string, token: string);
5
- addBudget: (budget: Budget) => Promise<any>;
5
+ addBudget: (category: Category, amount: number, parentGuid?: string | null) => Promise<any>;
6
6
  deleteBudget: (guid: string) => Promise<any>;
7
7
  generateBudgets: () => Promise<any>;
8
8
  getBudgets: () => Promise<any>;
@@ -0,0 +1,3 @@
1
+ export declare const AddBudgets: (() => import("react/jsx-runtime").JSX.Element) & {
2
+ displayName: string;
3
+ };
@@ -1,10 +1,8 @@
1
1
  import { default as React } from 'react';
2
- import { DetailedBudget } from '../../common';
3
2
  interface BubbleBudgetsProps {
3
+ height: number;
4
4
  isDraggable?: boolean;
5
- onClick?: (budget: DetailedBudget) => void;
6
5
  shouldShowZeroState: boolean;
7
- unavailableHeight?: number;
8
6
  unavailableWidth?: number;
9
7
  }
10
8
  export declare const BubbleBudgets: React.FC<BubbleBudgetsProps>;
@@ -1,16 +1,15 @@
1
1
  import { default as React } from 'react';
2
2
  import { SimulationNodeDatum } from 'd3-force';
3
- import { DetailedBudget } from '../../common/types/Budget';
3
+ import { DetailedBudget } from '../../common';
4
4
  export interface BubbleData extends SimulationNodeDatum {
5
- budget: DetailedBudget;
5
+ budget_guid: string;
6
6
  radius: number;
7
7
  }
8
8
  interface BubbleChartProps {
9
- data: BubbleData[];
10
9
  height: number;
11
10
  width: number;
12
11
  isDraggable?: boolean;
13
12
  onClick?: (budget: DetailedBudget) => void;
14
13
  }
15
- declare const BubbleChart: React.FC<BubbleChartProps>;
16
- export default BubbleChart;
14
+ declare const _default: React.FunctionComponent<BubbleChartProps>;
15
+ export default _default;
@@ -0,0 +1,3 @@
1
+ export declare const BudgetDetailsDrawer: (() => import("react/jsx-runtime").JSX.Element | undefined) & {
2
+ displayName: string;
3
+ };
@@ -1,7 +1,3 @@
1
- import { default as React } from 'react';
2
- import { DetailedBudget } from '../../common/types/Budget';
3
- interface BudgetListProps {
4
- onClick?: (budget: DetailedBudget) => void;
5
- }
6
- export declare const BudgetList: React.FC<BudgetListProps>;
7
- export {};
1
+ export declare const BudgetList: (() => import("react/jsx-runtime").JSX.Element) & {
2
+ displayName: string;
3
+ };
@@ -0,0 +1,3 @@
1
+ export declare const Header: (() => import("react/jsx-runtime").JSX.Element) & {
2
+ displayName: string;
3
+ };
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ import { DetailedCategory } from '../../../common';
3
+ interface RecalculateBudgetRowProps {
4
+ category: DetailedCategory;
5
+ }
6
+ export declare const RecalculateBudgetRow: React.FC<RecalculateBudgetRowProps>;
7
+ export {};
@@ -0,0 +1 @@
1
+ export declare const RecalculateBudgets: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ import { DetailedCategory } from '../../../common';
3
+ interface UnbudgetedRowProps {
4
+ category: DetailedCategory;
5
+ onAddBudget: (category: DetailedCategory, amount: number) => void;
6
+ }
7
+ export declare const UnbudgetedRow: React.FC<UnbudgetedRowProps>;
8
+ export {};
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { BubbleData } from '../BubbleChart';
3
- import { DetailedBudget } from '../../../common/types/Budget';
3
+ import { DetailedBudget } from '../../../common';
4
4
  interface BubbleProps {
5
5
  bubble: BubbleData;
6
6
  isDraggable: boolean;
@@ -1,7 +1,9 @@
1
1
  import { default as React } from 'react';
2
2
  import { BubbleData } from '../BubbleChart';
3
+ import { DetailedBudget } from '../../../common';
3
4
  interface MercuryProps {
4
5
  bubble: BubbleData;
6
+ budget: DetailedBudget;
5
7
  }
6
8
  export declare const Mercury: React.FC<MercuryProps>;
7
9
  export {};
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ import { DetailedBudget, DetailedCategory } from '../../../common';
3
+ interface AddSubBudgetProps {
4
+ category: DetailedCategory;
5
+ parentBudget: DetailedBudget;
6
+ }
7
+ export declare const AddSubBudget: React.FC<AddSubBudgetProps>;
8
+ export {};
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { DetailedBudget } from '../../common';
2
+ import { DetailedBudget } from '../../../common';
3
3
  interface BudgetDetailsProps {
4
4
  budget: DetailedBudget;
5
5
  }
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ import { DetailedBudget } from '../../../common';
3
+ interface HeaderProps {
4
+ budget: DetailedBudget;
5
+ }
6
+ export declare const Header: React.FC<HeaderProps>;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ import { DetailedBudget } from '../../../common';
3
+ interface SubBudgetListProps {
4
+ budget: DetailedBudget;
5
+ }
6
+ export declare const SubBudgetList: React.FC<SubBudgetListProps>;
7
+ export {};
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { DetailedBudget } from '../../../common/types/Budget';
2
+ import { DetailedBudget } from '../../../common';
3
3
  interface BudgetRowProps {
4
4
  budget: DetailedBudget;
5
5
  onClick?: (budget: DetailedBudget) => void;
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { DetailedBudget } from '../../../common/types/Budget';
2
+ import { DetailedBudget } from '../../../common';
3
3
  interface SubBudgetRowProps {
4
4
  budget: DetailedBudget;
5
5
  }
@@ -1 +1,3 @@
1
- export declare const SubBudgetZeroState: () => import("react/jsx-runtime").JSX.Element;
1
+ export declare const SubBudgetZeroState: (() => import("react/jsx-runtime").JSX.Element) & {
2
+ displayName: string;
3
+ };
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ interface BudgetAmountProps {
3
+ amount: string;
4
+ categoryName: string;
5
+ onAmountChanged: (amount: string) => void;
6
+ }
7
+ export declare const BudgetAmount: React.FC<BudgetAmountProps>;
8
+ export {};
@@ -1,5 +1,5 @@
1
1
  import { Theme } from '@mui/system';
2
- import { Account, Budget, CategoryTotal, DateRange, DetailedBudget, CategoryApi, GlobalStore } from '../../common';
2
+ import { Account, Budget, Category, CategoryTotal, DateRange, DetailedBudget, DetailedCategory, CategoryApi, GlobalStore } from '../../common';
3
3
  import { BudgetsApi } from '../api/BudgetsApi';
4
4
  export declare class BudgetsStore {
5
5
  api: BudgetsApi;
@@ -8,16 +8,22 @@ export declare class BudgetsStore {
8
8
  dateRange: DateRange;
9
9
  budgets: Budget[];
10
10
  categoryTotals: CategoryTotal[];
11
+ selectedBudget: DetailedBudget | undefined;
12
+ selectedSubBudget: DetailedBudget | undefined;
11
13
  theme: Theme;
12
14
  constructor(globalStore: GlobalStore);
13
15
  initialize: (endpoint: string, token: string) => Promise<void>;
14
16
  get detailedBudgets(): DetailedBudget[];
15
- addBudget: (budget: Budget) => Promise<void>;
17
+ get unbudgetedCategories(): DetailedCategory[];
18
+ get totalBudgeted(): number;
19
+ addBudget: (category: Category, amount: number, parentGuid?: string | null) => Promise<void>;
16
20
  deleteBudget: (guid: string) => Promise<void>;
17
21
  generateBudgets: () => Promise<void>;
18
22
  loadBudgets: () => Promise<void>;
19
23
  loadCategoryTotals: (accounts: Account[], dateRange: DateRange) => Promise<void>;
20
24
  setDateRange: (dateRange: DateRange) => DateRange;
25
+ setSelectedBudget: (budget: DetailedBudget | undefined) => DetailedBudget | undefined;
26
+ setSelectedSubBudget: (budget: DetailedBudget | undefined) => DetailedBudget | undefined;
21
27
  setTheme: (theme: Theme) => Theme;
22
28
  updateBudget: (budget: Budget) => Promise<void>;
23
29
  }
@@ -1,8 +1,9 @@
1
1
  import { Simulation } from 'd3';
2
2
  import { SimulationNodeDatum } from 'd3-force';
3
3
  import { BubbleData } from '../components/BubbleChart';
4
+ import { DetailedBudget } from '../../common';
4
5
  import * as d3 from 'd3';
5
- type SimulationType = Simulation<SimulationNodeDatum, undefined>;
6
+ export type SimulationType = Simulation<SimulationNodeDatum, undefined>;
6
7
  /**
7
8
  * Enables dragging of bubbles
8
9
  * @param simulation D3 Simulation
@@ -10,9 +11,10 @@ type SimulationType = Simulation<SimulationNodeDatum, undefined>;
10
11
  export declare const drag: (simulation: SimulationType) => d3.DragBehavior<Element, unknown, unknown>;
11
12
  /**
12
13
  * Provide d values for the arc between the start and end radius based on time
14
+ * @param budget Budget data
13
15
  * @param data Bubble data
14
16
  */
15
- export declare const arcTween: (data: BubbleData) => (t: number) => string;
17
+ export declare const arcTween: (budget: DetailedBudget, data: BubbleData) => (t: number) => string;
16
18
  /**
17
19
  * Enable drag
18
20
  * @param simulation D3 Simulation
@@ -25,9 +27,9 @@ export declare const enableDrag: (simulation: SimulationType) => void;
25
27
  * @param width New width
26
28
  */
27
29
  export declare const resize: (simulation: SimulationType, height: number, width: number) => void;
30
+ export declare const getScale: (min: number, max: number) => d3.ScaleLinear<number, number, never>;
28
31
  /**
29
32
  * Simulates the chart
30
33
  * @param data All Bubble data for the chart
31
34
  */
32
35
  export declare const simulate: (data: BubbleData[]) => d3.Simulation<d3.SimulationNodeDatum, undefined>;
33
- export {};
@@ -1,6 +1,8 @@
1
1
  import { Theme } from '@mui/system';
2
- import { Budget, BudgetColors, BudgetsCopy, Category, CategoryTotal, DetailedBudget } from '../../common';
3
- export declare const getBudgetPercentage: (budget: Budget) => number;
4
- export declare const getBudgetColors: (budget: Budget, theme: Theme) => BudgetColors;
2
+ import { Budget, BudgetColors, BudgetsCopy, DetailedCategory, DetailedBudget } from '../../common';
3
+ export declare const getBudgetPercentage: (budgetAmount: number, totalAmount: number) => number;
4
+ export declare const getBudgetColors: (percentage: number, theme: Theme) => BudgetColors;
5
5
  export declare const useGetBudgetDifference: () => number;
6
- export declare const augmentBudgets: (budgets: Budget[], categories: Category[], categoryTotals: CategoryTotal[], copy: BudgetsCopy, theme: Theme) => DetailedBudget[];
6
+ export declare const augmentBudgets: (budgets: Budget[], categories: DetailedCategory[], copy: BudgetsCopy, theme: Theme) => DetailedBudget[];
7
+ export declare const findBudget: (budgets: DetailedBudget[], guid: string) => DetailedBudget | undefined;
8
+ export declare const findSubBudget: (budgets: DetailedBudget[], guid: string, parentGuid: string) => DetailedBudget | undefined;
@@ -1,4 +1,5 @@
1
1
  export { default as CategorySelector } from './components/CategorySelector';
2
2
  export { default as CategorySelectorDrawer } from './components/CategorySelectorDrawer';
3
+ export { default as CategoryRow } from './components/CategoryRow';
3
4
  export { CategoryStore } from './stores/CategoryStore';
4
5
  export { useCategoryUiStore } from './context/hooks';
@@ -1,51 +1,20 @@
1
- import { Account, CategoryApi, Category, DateRangeCategoryTotals, GlobalStore, MonthlyCategoryTotals } from '../../common';
1
+ import { Account, CategoryApi, Category, DetailedCategory, DateRangeCategoryTotals, GlobalStore, MonthlyCategoryTotals } from '../../common';
2
2
  import { UiStore } from './UiStore';
3
- import { DetailedCategory } from '../../common/types/Category';
4
3
  export declare class CategoryStore {
5
4
  api: CategoryApi;
6
5
  globalStore: GlobalStore;
7
6
  uiStore: UiStore;
8
7
  categories: Category[];
9
- detailedCategories: DetailedCategory[];
10
8
  dateRangeCategoryTotals: DateRangeCategoryTotals[];
11
9
  monthlyCategoryTotals: MonthlyCategoryTotals[];
12
10
  isLoadingCategoryTotals: boolean;
13
11
  constructor(globalStore: GlobalStore);
14
12
  initialize: (endpoint: string, token: string) => Promise<void>;
13
+ get detailedCategories(): DetailedCategory[];
14
+ get incomeCategories(): DetailedCategory[];
15
+ get spendCategories(): DetailedCategory[];
16
+ get transferCategories(): DetailedCategory[];
15
17
  addCategory: (name: string, parentGuid: string) => Promise<void>;
16
- augmentCategories(): {
17
- average: number;
18
- color: string;
19
- generalHistory: {
20
- timestamp: number;
21
- label: string;
22
- total: number;
23
- }[];
24
- history: {
25
- timestamp: number;
26
- label: string;
27
- total: number;
28
- }[];
29
- icon: string;
30
- isTransfer: boolean;
31
- monthlyTotals: MonthlyCategoryTotals[];
32
- total: number;
33
- value: number;
34
- guid: string;
35
- income: boolean;
36
- is_default: boolean;
37
- is_income: boolean;
38
- metadata?: string;
39
- name: string;
40
- parent_guid?: string;
41
- revision?: number;
42
- user_guid?: string;
43
- }[];
44
- getHistory: (totals: MonthlyCategoryTotals[], startDate?: number, monthsBack?: number) => {
45
- timestamp: number;
46
- label: string;
47
- total: number;
48
- }[];
49
18
  loadCategories: () => Promise<void>;
50
19
  loadDateRangeCategoryTotals: (accounts: Account[], startDate: Date, endDate: Date) => Promise<void>;
51
20
  loadMonthlyCategoryTotals: (accounts?: Account[], startDate?: Date, endDate?: Date) => Promise<void>;
@@ -0,0 +1,8 @@
1
+ import { Category, DateRangeCategoryTotals, DetailedCategory, MonthlyCategoryTotals } from '../../common';
2
+ /**
3
+ * Augment categories
4
+ * @param categories - Categories to augment
5
+ * @param monthlyCategoryTotals - Monthly category totals
6
+ * @param currentCategoryTotals - Current month category totals
7
+ */
8
+ export declare const augmentCategories: (categories: Category[], currentCategoryTotals: DateRangeCategoryTotals[], monthlyCategoryTotals: MonthlyCategoryTotals[]) => DetailedCategory[];
@@ -1,5 +1,7 @@
1
- import { default as React } from 'react';
1
+ import { default as React, CSSProperties } from 'react';
2
+ import { MarkHandlers } from './linechart/CustomMark';
2
3
  interface LineChartProps {
4
+ baseline?: string;
3
5
  colors: (string | undefined)[];
4
6
  datasets: {
5
7
  x: string;
@@ -7,10 +9,14 @@ interface LineChartProps {
7
9
  }[][];
8
10
  height?: number;
9
11
  labels: string[];
12
+ markHandlers?: MarkHandlers;
13
+ markStyles?: (markIndex: number) => CSSProperties;
10
14
  showArea?: boolean;
11
15
  showAverage?: boolean;
12
16
  showBars?: boolean;
13
17
  showMarkLabel?: boolean;
18
+ useCustomMark?: boolean;
19
+ valueFormatterString?: string;
14
20
  width?: number;
15
21
  }
16
22
  export declare const LineChart: React.FC<LineChartProps>;
@@ -1,6 +1,13 @@
1
1
  import { default as React } from 'react';
2
2
  import { MarkElementProps } from '@mui/x-charts';
3
+ export type MarkHandlers = {
4
+ onMarkClick?: (event: React.MouseEvent<SVGPathElement, MouseEvent>, dataIndex: number) => void;
5
+ onMouseEnter?: (dataIndex: number) => void;
6
+ onMouseLeave?: () => void;
7
+ };
3
8
  interface CustomMarkProps extends MarkElementProps {
9
+ handlers?: MarkHandlers;
10
+ showLabel: boolean;
4
11
  yData: number[];
5
12
  }
6
13
  export declare const CustomMark: React.FC<CustomMarkProps>;
@@ -12,7 +12,9 @@ export interface DialogProps extends Omit<MuiDialogProps, 'open'> {
12
12
  onClose: () => void;
13
13
  onPrimaryAction?: () => void;
14
14
  onSecondaryAction?: () => void;
15
+ primaryColor?: 'primary' | 'inherit' | 'secondary' | 'success' | 'error' | 'info' | 'warning';
15
16
  primaryText?: string;
17
+ secondaryColor?: 'primary' | 'inherit' | 'secondary' | 'success' | 'error' | 'info' | 'warning';
16
18
  secondaryText?: string;
17
19
  }
18
20
  declare const Dialog: React.FC<React.PropsWithChildren<DialogProps>>;
@@ -11,9 +11,13 @@ interface DrawerProps {
11
11
  isPrimaryDisabled?: boolean;
12
12
  onClose: () => void;
13
13
  onPrimaryAction?: () => void;
14
+ onSecondaryAction?: () => void;
15
+ primaryColor?: 'primary' | 'inherit' | 'secondary' | 'success' | 'error' | 'info' | 'warning';
14
16
  primaryText?: string;
17
+ secondaryColor?: 'primary' | 'inherit' | 'secondary' | 'success' | 'error' | 'info' | 'warning';
15
18
  secondaryText?: string;
16
19
  shouldShowHeaderBorders?: boolean;
20
+ shouldShowHeaderShadow?: boolean;
17
21
  sx?: SxProps;
18
22
  title: string;
19
23
  }
@@ -3,6 +3,7 @@ interface DrawerHeaderProps {
3
3
  ariaLabelClose: string;
4
4
  onClose: () => void;
5
5
  shouldShowBorders: boolean;
6
+ shouldShowShadow?: boolean;
6
7
  title: string;
7
8
  }
8
9
  declare const DrawerHeader: React.FC<DrawerHeaderProps>;
@@ -18,4 +18,5 @@ export { default as TabContentContainer } from './TabContentContainer';
18
18
  export { default as IconBacking } from './IconBacking';
19
19
  export { default as DataRow } from './DataRow';
20
20
  export { default as InformationTooltip } from './InformationTooltip';
21
+ export { CurrencyText } from './CurrencyText';
21
22
  export { ListItemWrapper } from './ListItemWrapper';
@@ -9,6 +9,11 @@ export declare const ANALYTICS_EVENTS: {
9
9
  ACCOUNT_DETAILS_CLICK_TRANSACTION: string;
10
10
  ACCOUNT_DETAILS_VIEW: string;
11
11
  ACCOUNT_DETAILS_VIEW_TRANSACTIONS: string;
12
+ BUDGETS_CLICK_FILTER: string;
13
+ BUDGETS_CLICK_ADD: string;
14
+ BUDGETS_CLICK_EDIT_INCOME: string;
15
+ BUDGETS_CLICK_BUDGET_CATEGORY: string;
16
+ BUDGETS_VIEW: string;
12
17
  CASH_FLOW_CLICK_SETTINGS: string;
13
18
  CASH_FLOW_CLICK_FILTER: string;
14
19
  RECURRING_ACTIVITY_CLICK_SETTINGS: string;
@@ -4,11 +4,13 @@ export declare const useBudgetsStore: () => import('../../budgets/store/BudgetsS
4
4
  export declare const useCashflowStore: () => import('../..').CashflowStore;
5
5
  export declare const useCategoryStore: () => import('../..').CategoryStore;
6
6
  export declare const useConnectStore: () => import('../stores/ConnectStore').ConnectStore;
7
+ export declare const useDebtStore: () => import('../..').DebtsStore;
7
8
  export declare const useGlobalStore: () => import('..').GlobalStore;
8
9
  export declare const useGlobalUiStore: () => import('../stores/GlobalUiStore').GlobalUiStore;
9
10
  export declare const useGlobalCopyStore: () => import('..').GlobalCopy;
10
- export declare const useGoalStore: () => import('..').GlobalStore;
11
+ export declare const useGoalStore: () => import('../..').GoalStore;
11
12
  export declare const useMerchantStore: () => import('../..').MerchantStore;
13
+ export declare const useNetWorthStore: () => import('../..').NetWorthStore;
12
14
  export declare const useNotificationStore: () => import('../..').NotificationStore;
13
15
  export declare const useRecurringActivityStore: () => import('../..').RecurringActivityStore;
14
16
  export declare const useTransactionStore: () => import('../..').TransactionStore;
@@ -1,3 +1,3 @@
1
- export { useAccountStore, useBudgetsStore, useCashflowStore, useCategoryStore, useEvent, useGlobalStore, useGlobalUiStore, useGlobalCopyStore, useMerchantStore, useNotificationStore, usePageView, useRecurringActivityStore, useTransactionStore, useUserStore, useWidgetContainerProvider, } from './hooks';
1
+ export { useAccountStore, useBudgetsStore, useCashflowStore, useCategoryStore, useDebtStore, useEvent, useGlobalStore, useGlobalUiStore, useGlobalCopyStore, useGoalStore, useMerchantStore, useNetWorthStore, useNotificationStore, usePageView, useRecurringActivityStore, useTransactionStore, useUserStore, useWidgetContainerProvider, } from './hooks';
2
2
  export { GlobalDataContext, GlobalDataProvider } from './GlobalDataProvider';
3
3
  export { WidgetContainerContext, WidgetContainerProvider } from './WidgetContainerProvider';
@@ -4,7 +4,9 @@ import { BudgetsStore } from '../../budgets/store/BudgetsStore';
4
4
  import { CashflowStore } from '../../cashflow';
5
5
  import { CategoryStore } from '../../categories';
6
6
  import { ConnectStore } from './ConnectStore';
7
+ import { DebtsStore } from '../../debts/index';
7
8
  import { GlobalUiStore } from './GlobalUiStore';
9
+ import { GoalStore } from '../../goals';
8
10
  import { MerchantStore } from '../../merchants';
9
11
  import { NetWorthStore } from '../../networth';
10
12
  import { NotificationStore } from '../../notifications';
@@ -20,6 +22,8 @@ export declare class GlobalStore {
20
22
  categoryStore: CategoryStore;
21
23
  connectStore: ConnectStore;
22
24
  copyStore: GlobalCopyStore;
25
+ goalStore: GoalStore;
26
+ debtsStore: DebtsStore;
23
27
  merchantStore: MerchantStore;
24
28
  netWorthStore: NetWorthStore;
25
29
  notificationStore: NotificationStore;
@@ -287,5 +287,6 @@ export declare enum ConnectionStatus {
287
287
  export declare const StatusName: any;
288
288
  export declare const AccountTypeName: any;
289
289
  export declare const AccountIcon: any;
290
+ export declare const AccountIconVariants: any;
290
291
  export declare const PropertyTypeName: any;
291
292
  export declare const PropertyIcon: any;
@@ -1,4 +1,4 @@
1
- import { Category } from './Category';
1
+ import { DetailedCategory } from './Category';
2
2
  export type BudgetColors = {
3
3
  background: string;
4
4
  mercury: string;
@@ -19,10 +19,8 @@ export interface Budget {
19
19
  }
20
20
  export interface DetailedBudget extends Budget {
21
21
  budgetColors: BudgetColors;
22
- category: Category;
22
+ category: DetailedCategory;
23
23
  description: string;
24
- icon: string;
25
- label: string;
26
24
  percentage: number;
27
25
  subBudgets: DetailedBudget[];
28
26
  }
@@ -25,21 +25,34 @@ export interface MonthlyCategoryTotals {
25
25
  year: number;
26
26
  year_month: number;
27
27
  }
28
- export interface CategoryHistory {
29
- timestamp: number;
28
+ export interface MonthlyAmount {
29
+ amount: number;
30
+ isoDate: string;
30
31
  label: string;
31
- total: number;
32
32
  }
33
+ /**
34
+ * @averageAmount - The average amount for this category
35
+ * @color - Color to represent this category
36
+ * @currentAmount - The amount of this category for the current month
37
+ * @monthlyAmounts - The past 12 monthly amounts for this category
38
+ * @icon - Icon to represent this category
39
+ * @isTransfer - Is this category for transfers
40
+ * @subCategories - Detailed subcategories for this category
41
+ * @totalAmount - The total amount (including subcategories) for the current month
42
+ * @totalAverageAmount - The total average amount (including subcategories) for this category
43
+ * @totalMonthlyAmounts - The past 12 total monthly amounts (including subcategories)
44
+ */
33
45
  export interface DetailedCategory extends Category {
34
- average: number;
46
+ averageAmount: number;
35
47
  color: string;
36
- generalHistory: CategoryHistory[];
37
- history: CategoryHistory[];
48
+ currentAmount: number;
49
+ monthlyAmounts: MonthlyAmount[];
38
50
  icon: string;
39
51
  isTransfer: boolean;
40
- monthlyTotals: MonthlyCategoryTotals[];
41
- total: number;
42
- value: number;
52
+ subCategories: DetailedCategory[];
53
+ totalAmount: number;
54
+ totalAverageAmount: number;
55
+ totalMonthlyAmounts: MonthlyAmount[];
43
56
  }
44
57
  export interface CategoryTotal {
45
58
  amount: number;
@@ -0,0 +1,15 @@
1
+ import { Account } from './Account';
2
+ import { Goal } from './Goal';
3
+ export type Debt = {
4
+ account: Account;
5
+ goal?: Goal;
6
+ balance: number;
7
+ guid?: string;
8
+ hasPaymentDueAt: boolean;
9
+ interestRate?: number;
10
+ isExcludedFromDebts: boolean;
11
+ isPaidOff: boolean;
12
+ isPayoffImpossible?: boolean;
13
+ minimumPayment: number;
14
+ paymentDate: number;
15
+ };
@@ -1,17 +1,18 @@
1
1
  export type { Account, DetailedAccount, Member, MonthlyAccountBalance } from './Account';
2
- export { AccountIcon, AccountSubType, AccountType, AccountTypeName, ConnectionStatus, ConnectionStatusEnums, ErrorStatuses, MfaStatuses, NonConnectedStatuses, ProcessingStatuses, PropertyType, PropertyTypeName, StatusName, } from './Account';
2
+ export { AccountIcon, AccountIconVariants, AccountSubType, AccountType, AccountTypeName, ConnectionStatus, ConnectionStatusEnums, ErrorStatuses, MfaStatuses, NonConnectedStatuses, ProcessingStatuses, PropertyType, PropertyTypeName, StatusName, } from './Account';
3
3
  export { type Activity, ActivityStatus, ActivityType } from './Activity';
4
4
  export type { AnalyticsEvent, AnalyticsPageview, BasicAnalyticsEvent, BasicAnalyticsPageview, AnalyticsSession, AnalyticEventFunction, AnalyticPageviewFunction, } from './Analytics';
5
5
  export type { Beat, DataSeries } from './Beat';
6
6
  export { UserVerification } from './Beat';
7
7
  export type { Budget, BudgetColors, DetailedBudget } from './Budget';
8
8
  export type { CashflowEvent, CashflowSequence, RepeatDay, RepeatInterval, RepeatMonth, RepeatWeekday, } from './Cashflow';
9
- export type { Category, CategoryTotal, DateRangeCategoryTotals, MonthlyCategoryTotals, } from './Category';
9
+ export type { Category, CategoryTotal, DateRangeCategoryTotals, DetailedCategory, MonthlyAmount, MonthlyCategoryTotals, } from './Category';
10
10
  export type { DateType, DateRange } from './Date';
11
11
  export type { Expense } from './Expense';
12
12
  export { ExpenseStatus, ScheduledPaymentTypes } from './Expense';
13
13
  export type { DynamicCopyElement, GlobalCopy } from './GlobalCopy';
14
14
  export type { Goal } from './Goal';
15
+ export type { Debt } from './Debt';
15
16
  export type { Institution } from './Institution';
16
17
  export * from './localization';
17
18
  export type { LocalizedContent } from './LocalizedContent';