@mx-cartographer/experiences 4.1.0-alpha.j9 → 4.1.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 (81) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.d.ts +4 -1
  3. package/dist/accounts/index.d.ts +3 -0
  4. package/dist/accounts/stores/AccountStore.d.ts +3 -0
  5. package/dist/categories/stores/CategoryStore.d.ts +1 -0
  6. package/dist/common/api/{AppApi.d.ts → AppDataApi.d.ts} +2 -2
  7. package/dist/common/api/UserApi.d.ts +2 -2
  8. package/dist/common/api/index.d.ts +0 -1
  9. package/dist/common/components/ListItemAction.d.ts +16 -0
  10. package/dist/common/components/index.d.ts +1 -0
  11. package/dist/common/constants/Analytics.d.ts +2 -0
  12. package/dist/common/constants/ApiEndpoints.d.ts +4 -0
  13. package/dist/common/context/hooks.d.ts +0 -2
  14. package/dist/common/context/index.d.ts +1 -1
  15. package/dist/common/stores/AppDataStore.d.ts +13 -0
  16. package/dist/common/stores/GlobalStore.d.ts +3 -5
  17. package/dist/common/stores/UserStore.d.ts +13 -0
  18. package/dist/common/types/AppData.d.ts +8 -142
  19. package/dist/common/types/Client.d.ts +82 -0
  20. package/dist/common/types/Debt.d.ts +7 -8
  21. package/dist/common/types/Goal.d.ts +25 -0
  22. package/dist/common/types/User.d.ts +12 -0
  23. package/dist/common/types/index.d.ts +3 -4
  24. package/dist/common/types/localization/GoalsCopy.d.ts +77 -0
  25. package/dist/common/utils/Fetch.d.ts +0 -1
  26. package/dist/debts/components/DebtDrawer.d.ts +7 -0
  27. package/dist/debts/components/DebtsChart.d.ts +6 -10
  28. package/dist/debts/components/DebtsTable.d.ts +5 -3
  29. package/dist/debts/components/SnowballCard.d.ts +11 -0
  30. package/dist/debts/components/SnowballDrawer.d.ts +9 -0
  31. package/dist/debts/components/debtsdrawer/DebtDetailsChart.d.ts +4 -0
  32. package/dist/debts/components/debtsdrawer/DebtDetailsContent.d.ts +4 -0
  33. package/dist/debts/components/debtsdrawer/DebtDetailsTab.d.ts +4 -0
  34. package/dist/debts/components/debtsdrawer/DebtScheduleTab.d.ts +4 -0
  35. package/dist/debts/components/debtsdrawer/DebtStatusCard.d.ts +7 -0
  36. package/dist/debts/hooks/useDebtsUiStore.d.ts +1 -0
  37. package/dist/debts/store/DebtsStore.d.ts +2 -0
  38. package/dist/debts/store/DebtsUiStore.d.ts +10 -0
  39. package/dist/debts/utils/DebtStore.d.ts +1 -2
  40. package/dist/debts/utils/DebtsChart.d.ts +2 -0
  41. package/dist/debts/utils/DebtsWidget.d.ts +12 -8
  42. package/dist/debts/utils/SnowballCard.d.ts +8 -0
  43. package/dist/goals/api/GoalApi.d.ts +12 -2
  44. package/dist/goals/components/AccountSelectionDrawer.d.ts +10 -0
  45. package/dist/goals/components/AddGoal.d.ts +6 -0
  46. package/dist/goals/components/GoalDetails.d.ts +8 -0
  47. package/dist/goals/components/GoalDetailsDrawer.d.ts +8 -0
  48. package/dist/goals/components/GoalList.d.ts +1 -2
  49. package/dist/goals/components/GoalStatusCard.d.ts +3 -1
  50. package/dist/goals/components/ManageGoals.d.ts +6 -0
  51. package/dist/goals/components/actions/AccountAction.d.ts +6 -0
  52. package/dist/goals/components/actions/AddRetirementAccountAction.d.ts +6 -0
  53. package/dist/goals/components/actions/AmountToSaveAction.d.ts +6 -0
  54. package/dist/goals/components/actions/BirthdayAction.d.ts +8 -0
  55. package/dist/goals/components/actions/ChangeAccountAction.d.ts +6 -0
  56. package/dist/goals/components/actions/ContributionAction.d.ts +8 -0
  57. package/dist/goals/components/actions/GoalNameAction.d.ts +8 -0
  58. package/dist/goals/components/actions/InterestRateAction.d.ts +6 -0
  59. package/dist/goals/components/actions/MonthlyPaymentAction.d.ts +6 -0
  60. package/dist/goals/components/actions/OriginalBalanceAction.d.ts +6 -0
  61. package/dist/goals/components/actions/RetirementAgeAction.d.ts +6 -0
  62. package/dist/goals/components/addgoal/AddGoalListItem.d.ts +8 -0
  63. package/dist/goals/components/managegoals/CompleteListItem.d.ts +6 -0
  64. package/dist/goals/components/managegoals/OngoingListItem.d.ts +7 -0
  65. package/dist/goals/components/managegoals/ReorderGoals.d.ts +6 -0
  66. package/dist/goals/index.d.ts +1 -0
  67. package/dist/goals/stores/GoalStore.d.ts +19 -3
  68. package/dist/goals/util/GoalsUtil.d.ts +16 -1
  69. package/dist/index.es.js +9563 -7683
  70. package/dist/index.es.js.map +1 -1
  71. package/dist/trends/components/TrendsTable.d.ts +4 -0
  72. package/dist/trends/utils/SpendingData.d.ts +4 -0
  73. package/dist/trends/utils/TrendsData.d.ts +1 -8
  74. package/package.json +15 -15
  75. package/dist/common/api/MarketingApi.d.ts +0 -7
  76. package/dist/common/constants/Offers.d.ts +0 -12
  77. package/dist/common/stores/AppStore.d.ts +0 -14
  78. package/dist/common/stores/MarketingStore.d.ts +0 -9
  79. package/dist/common/types/AccountBanner.d.ts +0 -17
  80. package/dist/dashboard/AccountBanner.d.ts +0 -2
  81. package/dist/goals/constants/CopyKeys.d.ts +0 -11
@@ -1,14 +1,91 @@
1
1
  export interface GoalsCopy {
2
+ add_age: string;
3
+ add_amount: string;
4
+ add_birthday: string;
5
+ add_interest_rate: string;
6
+ add_monthly_payment: string;
7
+ add_original_balance: string;
8
+ add_select_accounts: string;
2
9
  add_title: string;
10
+ add_goal_title: string;
11
+ alert_account_added: string;
12
+ alert_account_changed: string;
13
+ alert_contribution_updated: string;
14
+ alert_goal_added: string;
15
+ alert_goal_completed: string;
16
+ alert_goal_deleted: string;
17
+ alert_goal_updated_amount: string;
18
+ alert_goal_updated_balance: string;
19
+ alert_goal_updated_birthday: string;
20
+ alert_goal_updated_interest_rate: string;
21
+ alert_goal_updated_name: string;
22
+ alert_goal_updated_payment: string;
23
+ alert_goal_updated_retirement_age: string;
24
+ alert_goals_reordered: string;
3
25
  complete_title: string;
4
26
  complete_label: string;
27
+ completed_label: string;
28
+ connect_button: string;
29
+ connect_description: string;
30
+ connect_drawer_title: string;
31
+ connect_title: string;
32
+ contribution_label: string;
33
+ debt_goal_description: string;
34
+ debt_goal_label: string;
35
+ delete_description: string;
36
+ delete_goal: string;
37
+ details_account: string;
38
+ details_accounts: string;
39
+ details_add_account: string;
40
+ details_amount_to_save: string;
41
+ details_birthday: string;
42
+ details_change_account: string;
43
+ details_change_account_description: string;
44
+ details_debt_title: string;
45
+ details_goal_name: string;
46
+ details_interest_rate: string;
47
+ details_monthly_payment: string;
48
+ details_original_balance: string;
49
+ details_retirement_age: string;
50
+ details_retirement_title: string;
51
+ details_save_title: string;
52
+ details_title: string;
53
+ goal_details: string;
5
54
  goal_percentage: string;
55
+ goal_priority: string;
6
56
  goal_projection: string;
7
57
  ongoing_title: string;
8
58
  projected_label: string;
59
+ manage_debt_description: string;
60
+ manage_debt_drawer_title: string;
9
61
  manage_debt_goals: string;
62
+ manage_debt_title: string;
63
+ manage_retirement_description: string;
64
+ manage_retirement_drawer_title: string;
10
65
  manage_retirement_goals: string;
66
+ manage_retirement_title: string;
67
+ manage_saving_description: string;
68
+ manage_saving_drawer_title: string;
11
69
  manage_saving_goals: string;
70
+ manage_saving_title: string;
71
+ mark_as_complete_button: string;
72
+ reorder_goals_title: string;
73
+ reorder_goals_description: string;
74
+ retirement: string;
75
+ retirement_goal_description: string;
76
+ retirement_goal_label: string;
77
+ saving_gaol_automobile: string;
78
+ saving_goal_college: string;
79
+ saving_goal_description: string;
80
+ saving_goal_electronic: string;
81
+ saving_goal_emergency_fund: string;
82
+ saving_goal_home: string;
83
+ saving_goal_label: string;
84
+ saving_goal_other: string;
85
+ saving_goal_recreational: string;
86
+ saving_goal_vacation: string;
87
+ select_debt_accounts_description: string;
88
+ select_debt_accounts_title: string;
12
89
  tab_debt_title: string;
13
90
  tab_retirement_title: string;
14
91
  tab_saving_title: string;
@@ -6,6 +6,5 @@ export declare class Fetch {
6
6
  post: (url: string, data?: any) => Promise<any>;
7
7
  put: (url: string, data: any) => Promise<any>;
8
8
  delete: (url: string) => Promise<any>;
9
- externalGet: (url: string) => Promise<any>;
10
9
  }
11
10
  export default Fetch;
@@ -0,0 +1,7 @@
1
+ interface DebtDrawerProps {
2
+ isOpen: boolean;
3
+ onClose: () => void;
4
+ sx?: any;
5
+ }
6
+ declare const DebtDrawer: ({ isOpen, onClose, sx }: DebtDrawerProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default DebtDrawer;
@@ -1,17 +1,13 @@
1
1
  import { default as React } from 'react';
2
- type DataPoint = {
3
- x: Date;
4
- y: number;
5
- };
6
- type Dataset = DataPoint[];
7
- interface DebtData {
8
- name: string;
9
- dataset: Dataset;
10
- }
2
+ import { DebtChartData } from '../utils/DebtsWidget';
11
3
  interface DebtsChartProps {
12
- debts: DebtData[];
4
+ sx?: any;
13
5
  height?: number;
14
6
  width?: number;
7
+ debts: DebtChartData[];
8
+ hoveredDebtGuid?: string;
9
+ onClickArea?: () => void;
10
+ onHoverArea?: (debtGuid: string) => void;
15
11
  }
16
12
  export declare const DebtsChart: React.FC<DebtsChartProps>;
17
13
  export {};
@@ -1,9 +1,11 @@
1
1
  import { default as React } from 'react';
2
- import { Debt } from '../../common';
2
+ import { DebtChartData } from '../utils/DebtsWidget';
3
3
  interface DebtsTableProps {
4
- debts: Debt[];
5
- onClickRow?: (debtGuid: string) => void;
6
4
  sx?: any;
5
+ debts: DebtChartData[];
6
+ hoveredDebtGuid: string;
7
+ onHoverRow: (debtGuid: string) => void;
8
+ onClickRow: () => void;
7
9
  }
8
10
  export declare const DebtsTable: React.FC<DebtsTableProps>;
9
11
  export {};
@@ -0,0 +1,11 @@
1
+ import { MouseEventHandler } from 'react';
2
+ import { DebtChartData } from '../utils/DebtsWidget';
3
+ interface SnowballCardProps {
4
+ debts: DebtChartData[];
5
+ onClickCta: MouseEventHandler;
6
+ sx?: any;
7
+ }
8
+ declare const _default: (({ debts, onClickCta, sx }: SnowballCardProps) => import("react/jsx-runtime").JSX.Element) & {
9
+ displayName: string;
10
+ };
11
+ export default _default;
@@ -0,0 +1,9 @@
1
+ interface SnowballDrawerProps {
2
+ isOpen: boolean;
3
+ onClose: () => void;
4
+ sx?: any;
5
+ }
6
+ declare const _default: (({ isOpen, onClose, sx }: SnowballDrawerProps) => import("react/jsx-runtime").JSX.Element) & {
7
+ displayName: string;
8
+ };
9
+ export default _default;
@@ -0,0 +1,4 @@
1
+ declare const _default: (() => import("react/jsx-runtime").JSX.Element) & {
2
+ displayName: string;
3
+ };
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ declare const _default: (() => import("react/jsx-runtime").JSX.Element) & {
2
+ displayName: string;
3
+ };
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ declare const _default: (() => import("react/jsx-runtime").JSX.Element) & {
2
+ displayName: string;
3
+ };
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ declare const _default: (() => import("react/jsx-runtime").JSX.Element) & {
2
+ displayName: string;
3
+ };
4
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ interface DebtStatusCardProps {
3
+ setTabValue: (val: number) => void;
4
+ sx?: any;
5
+ }
6
+ declare const _default: React.FunctionComponent<DebtStatusCardProps>;
7
+ export default _default;
@@ -0,0 +1 @@
1
+ export declare const useDebtsUiStore: () => import('../store/DebtsUiStore').DebtsUiStore;
@@ -1,6 +1,8 @@
1
1
  import { GlobalStore, Debt } from '../../common';
2
+ import { DebtsUiStore } from './DebtsUiStore';
2
3
  export declare class DebtsStore {
3
4
  globalStore: GlobalStore;
5
+ uiStore: DebtsUiStore;
4
6
  constructor(globalStore: GlobalStore);
5
7
  get debts(): Debt[];
6
8
  }
@@ -0,0 +1,10 @@
1
+ import { DebtChartData } from '../utils/DebtsWidget';
2
+ export declare class DebtsUiStore {
3
+ isLoading: boolean;
4
+ selectedDebtChartData: DebtChartData;
5
+ constructor();
6
+ get showError(): boolean;
7
+ get showCompleted(): boolean;
8
+ setIsLoading: (isLoading: boolean) => boolean;
9
+ setSelectedDebtChartData: (data: DebtChartData) => DebtChartData;
10
+ }
@@ -1,5 +1,4 @@
1
1
  import { Account, Debt, Goal } from '../../common';
2
2
  declare function loadDebts(accounts: Account[], goals: Goal[]): Debt[];
3
3
  declare function createDebt(account: Account, goal?: Goal): Debt;
4
- declare function isImpossible(goal: Goal): boolean;
5
- export { createDebt, isImpossible, loadDebts };
4
+ export { createDebt, loadDebts };
@@ -0,0 +1,2 @@
1
+ export declare const BASE_LINE_COLOR = "#FF7B08";
2
+ export declare function adjustBrightness(color: string, factor: number): string;
@@ -1,9 +1,13 @@
1
1
  import { Debt } from '../../common';
2
- declare const transformDebtsChartData: (debts: Debt[]) => {
3
- name: string;
4
- dataset: {
5
- x: Date;
6
- y: number;
7
- }[];
8
- }[];
9
- export { transformDebtsChartData };
2
+ type DataPoint = {
3
+ x: Date;
4
+ y: number;
5
+ payment?: number;
6
+ extra?: number;
7
+ };
8
+ type Dataset = DataPoint[];
9
+ export interface DebtChartData extends Debt {
10
+ dataset: Dataset;
11
+ }
12
+ export declare const transformDebtsChartData: (debts: Debt[], initialExtraPayment?: number) => DebtChartData[];
13
+ export {};
@@ -0,0 +1,8 @@
1
+ import { DebtChartData } from './DebtsWidget';
2
+ type PayoffProjection = {
3
+ payoffSavings: string;
4
+ payoffDate: string;
5
+ payoffDuration: string;
6
+ };
7
+ export declare function getPayoffProjection(debts: DebtChartData[], extraPayment?: number): PayoffProjection;
8
+ export {};
@@ -1,10 +1,20 @@
1
- import { Fetch, Goal } from '../../common';
1
+ import { Fetch, Goal, MonthlyCashFlowProfile, RetirementGoalAccount } from '../../common';
2
2
  export declare class GoalApi {
3
3
  fetchInstance: Fetch;
4
4
  constructor(endpoint: string, token: string);
5
5
  addGoal: (goal: Goal) => Promise<any>;
6
+ addRetirementGoal: (goal: Goal) => Promise<any>;
7
+ addRetirementGoalAccount: (retirementAccount: RetirementGoalAccount) => Promise<any>;
6
8
  getGoalByGuid: (guid: string) => Promise<any>;
7
9
  getGoals: () => Promise<any>;
10
+ getMonthlyCashFlowProfile: () => Promise<any>;
11
+ getRetirementGoals: () => Promise<any>;
12
+ getRetirementGoalAccounts: () => Promise<any>;
8
13
  removeGoal: (guid: string) => Promise<any>;
9
- updateGoal: (goal: Goal, guid: string) => Promise<any>;
14
+ removeRetirementGoal: (guid: string) => Promise<any>;
15
+ removeRetirementGoalAccount: (guid: string) => Promise<any>;
16
+ reorderGoals: (goals: Goal[]) => Promise<any>;
17
+ updateGoal: (goal: Goal) => Promise<any>;
18
+ updateMonthlyCashFlowProfile: (profile: MonthlyCashFlowProfile) => Promise<any>;
19
+ updateRetirementGoal: (goal: Goal) => Promise<any>;
10
20
  }
@@ -0,0 +1,10 @@
1
+ import { Account } from '../../common';
2
+ interface AccountSelectionDrawerProps {
3
+ accounts: Account[];
4
+ isOpen: boolean;
5
+ onClose: () => void;
6
+ onSave: (accounts: Account[]) => void;
7
+ title: string;
8
+ }
9
+ export declare const AccountSelectionDrawer: ({ accounts, isOpen, onClose, onSave, title, }: AccountSelectionDrawerProps) => import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,6 @@
1
+ import { TrackType } from '../../common';
2
+ interface AddGoalProps {
3
+ onClose?: (trackType: TrackType) => void;
4
+ }
5
+ export declare const AddGoal: ({ onClose }: AddGoalProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ import { Goal } from '../../common';
2
+ interface GoalDetailsProps {
3
+ goal: Goal;
4
+ }
5
+ export declare const GoalDetails: (({ goal }: GoalDetailsProps) => import("react/jsx-runtime").JSX.Element) & {
6
+ displayName: string;
7
+ };
8
+ export {};
@@ -0,0 +1,8 @@
1
+ import { TrackType } from '../../common';
2
+ interface GoalDetailsDrawerProps {
3
+ onClose?: (trackType: TrackType) => void;
4
+ }
5
+ export declare const GoalDetailsDrawer: (({ onClose }: GoalDetailsDrawerProps) => import("react/jsx-runtime").JSX.Element) & {
6
+ displayName: string;
7
+ };
8
+ export {};
@@ -1,9 +1,8 @@
1
1
  import { TrackType } from '../../common';
2
2
  interface GoalListProps {
3
3
  trackType: TrackType;
4
- onManageClick: (trackType: TrackType) => void;
5
4
  }
6
- export declare const GoalList: (({ onManageClick, trackType }: GoalListProps) => import("react/jsx-runtime").JSX.Element) & {
5
+ export declare const GoalList: (({ trackType }: GoalListProps) => import("react/jsx-runtime").JSX.Element) & {
7
6
  displayName: string;
8
7
  };
9
8
  export {};
@@ -1,8 +1,10 @@
1
1
  import { Goal } from '../../common';
2
2
  interface GoalStatusCardProps {
3
3
  goal: Goal;
4
+ isInDrawer?: boolean;
5
+ onClick?: () => void;
4
6
  }
5
- export declare const GoalStatusCard: (({ goal }: GoalStatusCardProps) => import("react/jsx-runtime").JSX.Element) & {
7
+ export declare const GoalStatusCard: (({ goal, isInDrawer, onClick }: GoalStatusCardProps) => import("react/jsx-runtime").JSX.Element) & {
6
8
  displayName: string;
7
9
  };
8
10
  export {};
@@ -0,0 +1,6 @@
1
+ import { TrackType } from '../../common';
2
+ interface ManageGoalProps {
3
+ trackType: TrackType;
4
+ }
5
+ export declare const ManageGoals: ({ trackType }: ManageGoalProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { Account } from '../../../common';
2
+ interface AccountActionProps {
3
+ account: Account;
4
+ }
5
+ export declare const AccountAction: ({ account }: AccountActionProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { Goal } from '../../../common';
2
+ interface AddRetirementAccountActionProps {
3
+ goal: Goal;
4
+ }
5
+ export declare const AddRetirementAccountAction: ({ goal }: AddRetirementAccountActionProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { Goal } from '../../../common';
2
+ interface AmountToSaveActionProps {
3
+ goal: Goal;
4
+ }
5
+ export declare const AmountToSaveAction: ({ goal }: AmountToSaveActionProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ import { Goal } from '../../../common';
2
+ interface BirthdayActionProps {
3
+ goal: Goal;
4
+ }
5
+ export declare const BirthdayAction: (({ goal }: BirthdayActionProps) => import("react/jsx-runtime").JSX.Element) & {
6
+ displayName: string;
7
+ };
8
+ export {};
@@ -0,0 +1,6 @@
1
+ import { Goal } from '../../../common';
2
+ interface ChangeAccountProps {
3
+ goal: Goal;
4
+ }
5
+ export declare const ChangeAccountAction: ({ goal }: ChangeAccountProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ import { TrackType } from '../../../common';
2
+ interface ContributionActionProps {
3
+ trackType: TrackType;
4
+ }
5
+ export declare const ContributionAction: (({ trackType }: ContributionActionProps) => import("react/jsx-runtime").JSX.Element) & {
6
+ displayName: string;
7
+ };
8
+ export {};
@@ -0,0 +1,8 @@
1
+ import { Goal } from '../../../common';
2
+ interface GoalNameActionProps {
3
+ goal: Goal;
4
+ }
5
+ export declare const GoalNameAction: (({ goal }: GoalNameActionProps) => import("react/jsx-runtime").JSX.Element) & {
6
+ displayName: string;
7
+ };
8
+ export {};
@@ -0,0 +1,6 @@
1
+ import { Goal } from '../../../common';
2
+ interface InterestRateActionProps {
3
+ goal: Goal;
4
+ }
5
+ export declare const InterestRateAction: ({ goal }: InterestRateActionProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { Goal } from '../../../common';
2
+ interface MonthlyPaymentActionProps {
3
+ goal: Goal;
4
+ }
5
+ export declare const MonthlyPaymentAction: ({ goal }: MonthlyPaymentActionProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { Goal } from '../../../common';
2
+ interface OriginalBalanceActionProps {
3
+ goal: Goal;
4
+ }
5
+ export declare const OriginalBalanceAction: ({ goal }: OriginalBalanceActionProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { Goal } from '../../../common';
2
+ interface RetirementAgeActionProps {
3
+ goal: Goal;
4
+ }
5
+ export declare const RetirementAgeAction: ({ goal }: RetirementAgeActionProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ import { MetaType, TrackType } from '../../../common';
2
+ import { GoalType } from '../../util/GoalsUtil';
3
+ interface AddGoalListItemProps {
4
+ goalType: GoalType;
5
+ onClick: (name: string, metaType: MetaType, type: TrackType) => void;
6
+ }
7
+ export declare const AddGoalListItem: ({ goalType, onClick }: AddGoalListItemProps) => import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,6 @@
1
+ import { Goal } from '../../../common';
2
+ interface CompleteListItemProps {
3
+ goal: Goal;
4
+ }
5
+ export declare const CompleteListItem: ({ goal }: CompleteListItemProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,7 @@
1
+ import { Goal } from '../../../common';
2
+ interface OngoingListItemProps {
3
+ goal: Goal;
4
+ index: number;
5
+ }
6
+ export declare const OngoingListItem: ({ goal, index }: OngoingListItemProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,6 @@
1
+ import { Goal } from '../../../common';
2
+ interface RearrangeGoalsProps {
3
+ goals: Goal[];
4
+ }
5
+ export declare const ReorderGoals: ({ goals }: RearrangeGoalsProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1,2 +1,3 @@
1
+ export { GoalApi } from './api/GoalApi';
1
2
  export { GoalsWidget } from './GoalsWidget';
2
3
  export { GoalStore } from './stores/GoalStore';
@@ -1,13 +1,29 @@
1
1
  import { GoalApi } from '../api/GoalApi';
2
- import { Goal, GlobalStore } from '../../common';
2
+ import { Goal, GlobalStore, RetirementGoalAccount, MonthlyCashFlowProfile } from '../../common';
3
3
  export declare class GoalStore {
4
4
  api: GoalApi;
5
5
  globalStore: GlobalStore;
6
+ alert: string;
6
7
  goals: Goal[];
8
+ retirementGoalAccounts: RetirementGoalAccount[];
9
+ newRetirementGoalAccounts: RetirementGoalAccount[];
10
+ selectedGoal: Goal | undefined;
11
+ monthlyCashFlowProfile: MonthlyCashFlowProfile | undefined;
7
12
  constructor(globalStore: GlobalStore);
8
13
  initialize: (endpoint: string, token: string) => Promise<void>;
14
+ get orderedGoals(): Goal[];
9
15
  get debtGoals(): Goal[];
10
- get retirementGoals(): Goal[];
11
- get savingsGoals(): Goal[];
16
+ addGoal: (goal: Goal) => Promise<void>;
17
+ addRetirementGoal: (goal: Goal) => Promise<void>;
18
+ addRetirementGoalAccount: (account: RetirementGoalAccount) => Promise<void>;
12
19
  loadGoals: () => Promise<void>;
20
+ deleteGoal: (guid: string) => Promise<void>;
21
+ deleteRetirementGoal: (goal: Goal) => Promise<void>;
22
+ deleteRetirementGoalAccount: (guid: string) => Promise<void>;
23
+ reorderGoals: (goals: Goal[]) => Promise<void>;
24
+ setAlert: (alert: string) => string;
25
+ setNewRetirementGoalAccounts: (accounts: RetirementGoalAccount[]) => void;
26
+ setSelectedGoal: (goal: Goal | undefined) => Goal | undefined;
27
+ updateGoal: (goal: Goal) => Promise<void>;
28
+ updateMonthlyCashFlowProfile: (profile: MonthlyCashFlowProfile) => Promise<void>;
13
29
  }
@@ -1,8 +1,23 @@
1
- import { Goal, GoalsCopy } from '../../common';
1
+ import { IconList } from '@mxenabled/mx-icons';
2
+ import { Goal, GoalsCopy, TrackType, MetaType } from '../../common';
2
3
  export interface GoalStatusData {
4
+ backgroundColor: string;
3
5
  color: string;
4
6
  percentage: number;
5
7
  percentageText: string;
6
8
  projectedText: string;
7
9
  }
10
+ export type GoalType = {
11
+ bgcolor: string;
12
+ icon: keyof typeof IconList;
13
+ label: string;
14
+ description: string;
15
+ subTypes: {
16
+ icon: keyof typeof IconList;
17
+ label: string;
18
+ metaType: MetaType;
19
+ }[];
20
+ type: TrackType;
21
+ };
8
22
  export declare function getGoalStatusData(copy: GoalsCopy, goal: Goal): GoalStatusData;
23
+ export declare function getGoalTypes(copy: GoalsCopy): GoalType[];