@mx-cartographer/experiences 4.0.14-alpha.al0 → 4.0.14-alpha.sms2
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/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.d.ts +4 -1
- package/dist/accounts/index.d.ts +3 -0
- package/dist/accounts/stores/AccountStore.d.ts +3 -0
- package/dist/common/api/AppDataApi.d.ts +7 -0
- package/dist/common/api/UserApi.d.ts +2 -2
- package/dist/common/components/ListItemAction.d.ts +16 -0
- package/dist/common/components/index.d.ts +1 -0
- package/dist/common/constants/Analytics.d.ts +2 -0
- package/dist/common/constants/ApiEndpoints.d.ts +3 -0
- package/dist/common/stores/AppDataStore.d.ts +13 -0
- package/dist/common/stores/GlobalStore.d.ts +3 -1
- package/dist/common/stores/UserStore.d.ts +7 -4
- package/dist/common/types/AppData.d.ts +13 -0
- package/dist/common/types/Client.d.ts +82 -0
- package/dist/common/types/Debt.d.ts +7 -9
- package/dist/common/types/Goal.d.ts +12 -0
- package/dist/common/types/User.d.ts +12 -0
- package/dist/common/types/index.d.ts +4 -3
- package/dist/common/types/localization/GoalsCopy.d.ts +31 -0
- package/dist/debts/components/DebtDrawer.d.ts +7 -0
- package/dist/debts/components/DebtsChart.d.ts +5 -13
- package/dist/debts/components/DebtsTable.d.ts +4 -4
- package/dist/debts/components/SnowballCard.d.ts +5 -2
- package/dist/debts/components/debtsdrawer/DebtDetailsChart.d.ts +4 -0
- package/dist/debts/components/debtsdrawer/DebtDetailsContent.d.ts +4 -0
- package/dist/debts/components/debtsdrawer/DebtDetailsTab.d.ts +4 -0
- package/dist/debts/components/debtsdrawer/DebtScheduleTab.d.ts +4 -0
- package/dist/debts/components/debtsdrawer/DebtStatusCard.d.ts +7 -0
- package/dist/debts/hooks/useDebtsUiStore.d.ts +1 -0
- package/dist/debts/store/DebtsStore.d.ts +2 -0
- package/dist/debts/store/DebtsUiStore.d.ts +10 -0
- package/dist/debts/utils/DebtStore.d.ts +1 -2
- package/dist/debts/utils/DebtsChart.d.ts +2 -0
- package/dist/debts/utils/DebtsWidget.d.ts +10 -9
- package/dist/debts/utils/SnowballCard.d.ts +2 -2
- package/dist/goals/api/GoalApi.d.ts +9 -2
- package/dist/goals/components/AccountSelectionDrawer.d.ts +10 -0
- package/dist/goals/components/AddGoal.d.ts +6 -0
- package/dist/goals/components/GoalDetails.d.ts +3 -1
- package/dist/goals/components/GoalDetailsDrawer.d.ts +8 -0
- package/dist/goals/components/actions/AccountAction.d.ts +6 -0
- package/dist/goals/components/actions/AddRetirementAccountAction.d.ts +6 -0
- package/dist/goals/components/actions/AmountToSaveAction.d.ts +6 -0
- package/dist/goals/components/actions/BirthdayAction.d.ts +8 -0
- package/dist/goals/components/actions/ChangeAccountAction.d.ts +6 -0
- package/dist/goals/components/actions/GoalNameAction.d.ts +8 -0
- package/dist/goals/components/actions/InterestRateAction.d.ts +6 -0
- package/dist/goals/components/actions/MonthlyPaymentAction.d.ts +6 -0
- package/dist/goals/components/actions/OriginalBalanceAction.d.ts +6 -0
- package/dist/goals/components/actions/RetirementAgeAction.d.ts +6 -0
- package/dist/goals/components/addgoal/AddGoalListItem.d.ts +8 -0
- package/dist/goals/stores/GoalStore.d.ts +11 -1
- package/dist/goals/util/GoalsUtil.d.ts +15 -1
- package/dist/index.es.js +8268 -7374
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
interface AccountDetailsHeaderProps {
|
|
2
|
+
customDetailsChart?: React.ReactElement;
|
|
3
|
+
}
|
|
4
|
+
declare const _default: (({ customDetailsChart }: AccountDetailsHeaderProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
2
5
|
displayName: string;
|
|
3
6
|
};
|
|
4
7
|
export default _default;
|
package/dist/accounts/index.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
export { default as AccountsWidget } from './AccountsWidget';
|
|
2
2
|
export { default as AccountsMiniWidget } from './AccountsMiniWidget';
|
|
3
3
|
export { default as ConnectMiniWidget } from './ConnectMiniWidget';
|
|
4
|
+
export { default as AccountDetailsHeader } from './components/detailsdrawer/Accounts/AccountDetailsHeader';
|
|
5
|
+
export { default as AccountDetailsContent } from './components/detailsdrawer/Accounts/AccountDetailsContent';
|
|
4
6
|
export { getAccountBalanceDetails, getAccountDetailFields } from './utils/AccountFields';
|
|
5
7
|
export { FieldType, MemberConnectionStatus } from './constants/Accounts';
|
|
6
8
|
export { useGetMergeableAccounts } from './hooks/useGetMergeableAccounts';
|
|
7
9
|
export { AccountApi } from './api/AccountApi';
|
|
8
10
|
export { AccountStore } from './stores/AccountStore';
|
|
11
|
+
export { useAccountUiStore } from './hooks/useUiStore';
|
|
@@ -11,8 +11,11 @@ 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 checkingAccounts(): Account[];
|
|
14
15
|
get debtAccounts(): Account[];
|
|
16
|
+
get investmentAccounts(): Account[];
|
|
15
17
|
get cashBalance(): number;
|
|
18
|
+
get savingsAccounts(): Account[];
|
|
16
19
|
addAccount: (account: Account) => Promise<void>;
|
|
17
20
|
augmentAccounts: (accounts?: Account[]) => Account[];
|
|
18
21
|
loadAccounts: () => Promise<void>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { default as Fetch } from '../utils/Fetch';
|
|
2
|
-
import { UserProfile } from '../types';
|
|
2
|
+
import { User, UserProfile } from '../types';
|
|
3
3
|
export declare class UserApi {
|
|
4
4
|
fetchInstance: Fetch;
|
|
5
5
|
constructor(endpoint: string, token: string);
|
|
6
|
-
|
|
6
|
+
updateUser: (user: User) => Promise<any>;
|
|
7
7
|
updateUserProfile: (userProfile: UserProfile) => Promise<any>;
|
|
8
8
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface ListItemActionProps {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
isDisabled?: boolean;
|
|
5
|
+
isSaveDisabled?: boolean;
|
|
6
|
+
label: string;
|
|
7
|
+
onCancel?: () => void;
|
|
8
|
+
onSave: () => void;
|
|
9
|
+
primaryText: string;
|
|
10
|
+
secondaryText: string;
|
|
11
|
+
zeroStateText?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const ListItemAction: (({ children, isDisabled, isSaveDisabled, label, onCancel, onSave, primaryText, secondaryText, zeroStateText, }: ListItemActionProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
14
|
+
displayName: string;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
@@ -19,4 +19,5 @@ export { default as IconBacking } from './IconBacking';
|
|
|
19
19
|
export { default as DataRow } from './DataRow';
|
|
20
20
|
export { default as InformationTooltip } from './InformationTooltip';
|
|
21
21
|
export { CurrencyText } from './CurrencyText';
|
|
22
|
+
export { ListItemAction } from './ListItemAction';
|
|
22
23
|
export { ListItemWrapper } from './ListItemWrapper';
|
|
@@ -18,6 +18,8 @@ export declare const ANALYTICS_EVENTS: {
|
|
|
18
18
|
CASH_FLOW_CLICK_FILTER: string;
|
|
19
19
|
DEBTS_CLICK_TABLE_SORT: string;
|
|
20
20
|
DEBTS_CLICK_TABLE_ROW: string;
|
|
21
|
+
DEBT_DETAILS_VIEW: string;
|
|
22
|
+
DEBT_SCHEDULE_VIEW: string;
|
|
21
23
|
GOALS_VIEW: string;
|
|
22
24
|
GOALS_CLICK_FILTER: string;
|
|
23
25
|
GOALS_CLICK_ADD: string;
|
|
@@ -19,12 +19,15 @@ export declare const ApiEndpoints: {
|
|
|
19
19
|
MERCHANTS: string;
|
|
20
20
|
MONTHLY_CATEGORY_TOTALS: string;
|
|
21
21
|
NOTIFICATIONS: string;
|
|
22
|
+
RETIREMENT_GOALS: string;
|
|
23
|
+
RETIREMENT_GOAL_ACCOUNTS: string;
|
|
22
24
|
SCHEDULED_PAYMENTS: string;
|
|
23
25
|
SPENDING_PLANS: string;
|
|
24
26
|
TAGGINGS: string;
|
|
25
27
|
TAGS: string;
|
|
26
28
|
TRANSACTION_RULES: string;
|
|
27
29
|
TRANSACTIONS: string;
|
|
30
|
+
USER: string;
|
|
28
31
|
USER_PROFILES: string;
|
|
29
32
|
WIDGET_URLS: string;
|
|
30
33
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AppDataApi } from '../api/AppDataApi';
|
|
2
|
+
import { AppData, User, UserProfile } from '../types';
|
|
3
|
+
export declare class AppDataStore {
|
|
4
|
+
appData: AppData;
|
|
5
|
+
api: AppDataApi;
|
|
6
|
+
constructor();
|
|
7
|
+
initialize: (endpoint: string, token: string) => Promise<void>;
|
|
8
|
+
get user(): User;
|
|
9
|
+
get userProfile(): UserProfile;
|
|
10
|
+
loadAppData: () => Promise<void>;
|
|
11
|
+
setUser: (user: User) => User;
|
|
12
|
+
setUserProfile: (userProfile: UserProfile) => UserProfile;
|
|
13
|
+
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { AccountStore } from '../../accounts';
|
|
2
|
+
import { AppDataStore } from './AppDataStore';
|
|
2
3
|
import { BeatStore } from '../../insights/store/BeatStore';
|
|
3
4
|
import { BudgetsStore } from '../../budgets/store/BudgetsStore';
|
|
4
5
|
import { CashflowStore } from '../../cashflow';
|
|
5
6
|
import { CategoryStore } from '../../categories';
|
|
6
7
|
import { ConnectStore } from './ConnectStore';
|
|
7
|
-
import { DebtsStore } from '../../debts
|
|
8
|
+
import { DebtsStore } from '../../debts';
|
|
8
9
|
import { GlobalUiStore } from './GlobalUiStore';
|
|
9
10
|
import { GoalStore } from '../../goals';
|
|
10
11
|
import { MerchantStore } from '../../merchants';
|
|
@@ -16,6 +17,7 @@ import { UserStore } from './UserStore';
|
|
|
16
17
|
import { GlobalCopyStore } from './GlobalCopyStore';
|
|
17
18
|
export declare class GlobalStore {
|
|
18
19
|
accountStore: AccountStore;
|
|
20
|
+
appDataStore: AppDataStore;
|
|
19
21
|
beatStore: BeatStore;
|
|
20
22
|
budgetsStore: BudgetsStore;
|
|
21
23
|
cashflowStore: CashflowStore;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { UserApi } from '../api';
|
|
2
|
-
import { UserProfile } from '../types';
|
|
2
|
+
import { User, UserProfile } from '../types';
|
|
3
|
+
import { GlobalStore } from './GlobalStore';
|
|
3
4
|
export declare class UserStore {
|
|
5
|
+
globalStore: GlobalStore;
|
|
4
6
|
api: UserApi;
|
|
5
|
-
|
|
6
|
-
constructor();
|
|
7
|
+
constructor(globalStore: GlobalStore);
|
|
7
8
|
initialize: (endpoint: string, token: string) => Promise<void>;
|
|
8
|
-
|
|
9
|
+
get userProfile(): UserProfile;
|
|
10
|
+
get user(): User;
|
|
11
|
+
updateUser: (user: User) => Promise<void>;
|
|
9
12
|
updateUserProfile: (userProfile: UserProfile) => Promise<void>;
|
|
10
13
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Client, ClientColorScheme, ClientCommunicationProfile, ClientProfile } from './Client';
|
|
2
|
+
import { User, UserProfile } from './User';
|
|
3
|
+
export interface AppData {
|
|
4
|
+
address: {
|
|
5
|
+
bullseye?: string | null;
|
|
6
|
+
};
|
|
7
|
+
client: Client;
|
|
8
|
+
client_color_scheme: ClientColorScheme;
|
|
9
|
+
client_communication_profile: ClientCommunicationProfile;
|
|
10
|
+
client_profile: ClientProfile;
|
|
11
|
+
user: User;
|
|
12
|
+
user_profile: UserProfile;
|
|
13
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
export interface Client {
|
|
2
|
+
guid: string;
|
|
3
|
+
default_institution_guid?: string | null;
|
|
4
|
+
external_guid?: string | null;
|
|
5
|
+
name: string;
|
|
6
|
+
urls?: string | null;
|
|
7
|
+
}
|
|
8
|
+
export interface ClientColorScheme {
|
|
9
|
+
primary_100?: string | null;
|
|
10
|
+
primary_200?: string | null;
|
|
11
|
+
primary_300?: string | null;
|
|
12
|
+
primary_400?: string | null;
|
|
13
|
+
primary_500?: string | null;
|
|
14
|
+
primary_color?: string | null;
|
|
15
|
+
secondary_color?: string | null;
|
|
16
|
+
widget_brand_color?: string | null;
|
|
17
|
+
}
|
|
18
|
+
export interface ClientCommunicationProfile {
|
|
19
|
+
alerts_display_name?: string | null;
|
|
20
|
+
budget_exceeded_notifications_enabled: boolean;
|
|
21
|
+
budget_off_target_notifications_enabled: boolean;
|
|
22
|
+
can_edit_contact_info: boolean;
|
|
23
|
+
debt_payment_reminder_notifications_enabled: boolean;
|
|
24
|
+
device_created_email_enabled: boolean;
|
|
25
|
+
device_deleted_email_enabled: boolean;
|
|
26
|
+
duplicate_payment_notifications_enabled: boolean;
|
|
27
|
+
email_notifications_enabled: boolean;
|
|
28
|
+
goal_progress_notifications_enabled: boolean;
|
|
29
|
+
large_deposit_notifications_enabled: boolean;
|
|
30
|
+
large_expense_notifications_enabled: boolean;
|
|
31
|
+
low_balance_notifications_enabled: boolean;
|
|
32
|
+
offer_notifications_enabled: boolean;
|
|
33
|
+
password_changed_email_enabled: boolean;
|
|
34
|
+
push_notifications_enabled: boolean;
|
|
35
|
+
sms_notifications_enabled: boolean;
|
|
36
|
+
sms_shortcode?: string | null;
|
|
37
|
+
sms_shortcode_privacy_policy_url?: string | null;
|
|
38
|
+
sms_shortcode_terms_of_service_url?: string | null;
|
|
39
|
+
sms_verification_enabled: boolean;
|
|
40
|
+
sms_welcome_enabled: boolean;
|
|
41
|
+
transaction_fee_notifications_enabled: boolean;
|
|
42
|
+
transaction_is_international_notifications_enabled: boolean;
|
|
43
|
+
user_summary_notifications_enabled: boolean;
|
|
44
|
+
verification_email_enabled: boolean;
|
|
45
|
+
welcome_email_enabled: boolean;
|
|
46
|
+
}
|
|
47
|
+
export interface ClientProfile {
|
|
48
|
+
account_verification_is_enabled: boolean;
|
|
49
|
+
allow_accounts_widget: boolean;
|
|
50
|
+
allow_budgets_widget: boolean;
|
|
51
|
+
allow_cash_flow_widget: boolean;
|
|
52
|
+
allow_debts_widget: boolean;
|
|
53
|
+
allow_goals_widget: boolean;
|
|
54
|
+
allow_investments_widget: boolean;
|
|
55
|
+
allow_linked_account_add: boolean;
|
|
56
|
+
allow_mobile_master_widget: boolean;
|
|
57
|
+
allow_net_worth_widget: boolean;
|
|
58
|
+
allow_notifications_settings_widget: boolean;
|
|
59
|
+
allow_spending_widget: boolean;
|
|
60
|
+
allow_transactions_widget: boolean;
|
|
61
|
+
allow_trends_widget: boolean;
|
|
62
|
+
client_guid: string;
|
|
63
|
+
custom_copy_namespace?: string | null;
|
|
64
|
+
institution_display_name?: string | null;
|
|
65
|
+
is_microdeposits_enabled: boolean;
|
|
66
|
+
is_pfm_feedback_enabled: boolean;
|
|
67
|
+
locale?: string | null;
|
|
68
|
+
mobile_app_android_url?: string | null;
|
|
69
|
+
mobile_app_itunes_url?: string | null;
|
|
70
|
+
privacy_policy_url?: string | null;
|
|
71
|
+
show_bubble_budgets: boolean;
|
|
72
|
+
show_external_link_popup: boolean;
|
|
73
|
+
show_insurance_as_default_top_level_account_type: boolean;
|
|
74
|
+
show_notifications_settings_widget: boolean;
|
|
75
|
+
show_prepaid_as_default_top_level_account_type: boolean;
|
|
76
|
+
tax_statement_is_enabled: boolean;
|
|
77
|
+
use_cases_is_enabled: boolean;
|
|
78
|
+
uses_custom_popular_institution_list: boolean;
|
|
79
|
+
uses_mobile_sign_on_tokens: boolean;
|
|
80
|
+
uses_oauth: boolean;
|
|
81
|
+
default_institution_guid?: string | null;
|
|
82
|
+
}
|
|
@@ -2,17 +2,15 @@ import { Account } from './Account';
|
|
|
2
2
|
import { Goal } from './Goal';
|
|
3
3
|
export type Debt = {
|
|
4
4
|
account: Account;
|
|
5
|
+
balance: number;
|
|
5
6
|
goal?: Goal;
|
|
6
7
|
guid?: string;
|
|
8
|
+
interest_rate?: number;
|
|
9
|
+
is_paid_off: boolean;
|
|
10
|
+
is_impossible: boolean;
|
|
7
11
|
name: string;
|
|
8
|
-
|
|
9
|
-
balance: number;
|
|
10
|
-
interest_rate: number;
|
|
11
|
-
monthly_payment: number;
|
|
12
|
-
current_amount: number;
|
|
12
|
+
monthly_payment?: number;
|
|
13
13
|
payment_due_date: number;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
is_paid_off: boolean;
|
|
17
|
-
is_impossible?: boolean;
|
|
14
|
+
priority?: number | string;
|
|
15
|
+
projected_payoff_date?: Date;
|
|
18
16
|
};
|
|
@@ -20,12 +20,24 @@ export interface Goal {
|
|
|
20
20
|
name: string;
|
|
21
21
|
payment_due_at?: number;
|
|
22
22
|
position: number;
|
|
23
|
+
projected_amount?: number;
|
|
24
|
+
projected_growth_rate?: number;
|
|
23
25
|
projected_to_complete_at?: number;
|
|
26
|
+
retirement_age?: number;
|
|
24
27
|
revision: number;
|
|
28
|
+
target_amount?: number;
|
|
25
29
|
track_type?: TrackType;
|
|
26
30
|
updated_at: number;
|
|
27
31
|
user_guid: string;
|
|
28
32
|
}
|
|
33
|
+
export interface RetirementGoalAccount {
|
|
34
|
+
account_guid: string;
|
|
35
|
+
created_at: number;
|
|
36
|
+
guid: string;
|
|
37
|
+
retirement_goal_guid: string;
|
|
38
|
+
updated_at: number;
|
|
39
|
+
user_guid: string;
|
|
40
|
+
}
|
|
29
41
|
export declare enum TrackType {
|
|
30
42
|
DEBT_TRACK = 1,
|
|
31
43
|
SAVINGS_TRACK = 2,
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
export interface User {
|
|
2
|
+
guid: string;
|
|
3
|
+
birthday?: number | null;
|
|
4
|
+
client_guid?: string | null;
|
|
5
|
+
email?: string | null;
|
|
6
|
+
email_is_verified: boolean;
|
|
7
|
+
external_guid?: string | null;
|
|
8
|
+
first_name?: string | null;
|
|
9
|
+
last_name?: string | null;
|
|
10
|
+
phone?: string | null;
|
|
11
|
+
phone_is_verified: boolean;
|
|
12
|
+
}
|
|
1
13
|
export interface UserProfile {
|
|
2
14
|
guid: string;
|
|
3
15
|
has_completed_cash_flow_onboarding: boolean;
|
|
@@ -2,6 +2,7 @@ export type { Account, DetailedAccount, Member, MonthlyAccountBalance } from './
|
|
|
2
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
|
+
export type { AppData } from './AppData';
|
|
5
6
|
export type { Beat, DataSeries } from './Beat';
|
|
6
7
|
export { UserVerification } from './Beat';
|
|
7
8
|
export type { Budget, BudgetColors, DetailedBudget } from './Budget';
|
|
@@ -11,8 +12,8 @@ export type { DateType, DateRange } from './Date';
|
|
|
11
12
|
export type { Expense } from './Expense';
|
|
12
13
|
export { ExpenseStatus, ScheduledPaymentTypes } from './Expense';
|
|
13
14
|
export type { DynamicCopyElement, GlobalCopy } from './GlobalCopy';
|
|
14
|
-
export { TrackType } from './Goal';
|
|
15
|
-
export type { Goal } from './Goal';
|
|
15
|
+
export { MetaType, TrackType } from './Goal';
|
|
16
|
+
export type { Goal, RetirementGoalAccount } from './Goal';
|
|
16
17
|
export type { Debt } from './Debt';
|
|
17
18
|
export type { Institution } from './Institution';
|
|
18
19
|
export * from './localization';
|
|
@@ -23,6 +24,6 @@ export type { ScheduledPayment } from './ScheduledPayment';
|
|
|
23
24
|
export type { SpendingPlan, SpendingPlanAccount, SpendingPlanIteration, IterationItem, } from './SpendingPlan';
|
|
24
25
|
export type { Tag, Tagging, Transaction, TransactionRule } from './Transaction';
|
|
25
26
|
export { TransactionStatus, TransactionType } from './Transaction';
|
|
26
|
-
export type { UserProfile } from './User';
|
|
27
|
+
export type { User, UserProfile } from './User';
|
|
27
28
|
export { ScreenSize } from './ScreenSize';
|
|
28
29
|
export type { MiniWidgetProps, WidgetProps } from './Widgets';
|
|
@@ -1,7 +1,23 @@
|
|
|
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;
|
|
3
11
|
complete_title: string;
|
|
4
12
|
complete_label: string;
|
|
13
|
+
connect_button: string;
|
|
14
|
+
connect_description: string;
|
|
15
|
+
connect_drawer_title: string;
|
|
16
|
+
connect_title: string;
|
|
17
|
+
debt_goal_description: string;
|
|
18
|
+
debt_goal_label: string;
|
|
19
|
+
delete_description: string;
|
|
20
|
+
delete_goal: string;
|
|
5
21
|
details_account: string;
|
|
6
22
|
details_accounts: string;
|
|
7
23
|
details_add_account: string;
|
|
@@ -26,6 +42,21 @@ export interface GoalsCopy {
|
|
|
26
42
|
manage_debt_goals: string;
|
|
27
43
|
manage_retirement_goals: string;
|
|
28
44
|
manage_saving_goals: string;
|
|
45
|
+
retirement: string;
|
|
46
|
+
retirement_goal_description: string;
|
|
47
|
+
retirement_goal_label: string;
|
|
48
|
+
saving_gaol_automobile: string;
|
|
49
|
+
saving_goal_college: string;
|
|
50
|
+
saving_goal_description: string;
|
|
51
|
+
saving_goal_electronic: string;
|
|
52
|
+
saving_goal_emergency_fund: string;
|
|
53
|
+
saving_goal_home: string;
|
|
54
|
+
saving_goal_label: string;
|
|
55
|
+
saving_goal_other: string;
|
|
56
|
+
saving_goal_recreational: string;
|
|
57
|
+
saving_goal_vacation: string;
|
|
58
|
+
select_debt_accounts_description: string;
|
|
59
|
+
select_debt_accounts_title: string;
|
|
29
60
|
tab_debt_title: string;
|
|
30
61
|
tab_retirement_title: string;
|
|
31
62
|
tab_saving_title: string;
|
|
@@ -1,21 +1,13 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
x: Date;
|
|
4
|
-
y: number;
|
|
5
|
-
};
|
|
6
|
-
type Dataset = DataPoint[];
|
|
7
|
-
interface DebtData {
|
|
8
|
-
guid: string | undefined;
|
|
9
|
-
name: string;
|
|
10
|
-
dataset: Dataset;
|
|
11
|
-
}
|
|
2
|
+
import { DebtChartData } from '../utils/DebtsWidget';
|
|
12
3
|
interface DebtsChartProps {
|
|
13
4
|
sx?: any;
|
|
14
5
|
height?: number;
|
|
15
6
|
width?: number;
|
|
16
|
-
debts:
|
|
17
|
-
hoveredDebtGuid
|
|
18
|
-
|
|
7
|
+
debts: DebtChartData[];
|
|
8
|
+
hoveredDebtGuid?: string;
|
|
9
|
+
onClickArea?: () => void;
|
|
10
|
+
onHoverArea?: (debtGuid: string) => void;
|
|
19
11
|
}
|
|
20
12
|
export declare const DebtsChart: React.FC<DebtsChartProps>;
|
|
21
13
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { DebtChartData } from '../utils/DebtsWidget';
|
|
3
3
|
interface DebtsTableProps {
|
|
4
4
|
sx?: any;
|
|
5
|
-
debts:
|
|
5
|
+
debts: DebtChartData[];
|
|
6
6
|
hoveredDebtGuid: string;
|
|
7
|
-
onHoverRow
|
|
8
|
-
onClickRow
|
|
7
|
+
onHoverRow: (debtGuid: string) => void;
|
|
8
|
+
onClickRow: () => void;
|
|
9
9
|
}
|
|
10
10
|
export declare const DebtsTable: React.FC<DebtsTableProps>;
|
|
11
11
|
export {};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { MouseEventHandler } from 'react';
|
|
2
|
-
|
|
2
|
+
import { DebtChartData } from '../utils/DebtsWidget';
|
|
3
|
+
interface SnowballCardProps {
|
|
4
|
+
debts: DebtChartData[];
|
|
3
5
|
onClickCta: MouseEventHandler;
|
|
4
6
|
sx?: any;
|
|
5
|
-
}
|
|
7
|
+
}
|
|
8
|
+
declare const _default: (({ debts, onClickCta, sx }: SnowballCardProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
6
9
|
displayName: string;
|
|
7
10
|
};
|
|
8
11
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useDebtsUiStore: () => import('../store/DebtsUiStore').DebtsUiStore;
|
|
@@ -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
|
-
|
|
5
|
-
export { createDebt, isImpossible, loadDebts };
|
|
4
|
+
export { createDebt, loadDebts };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Debt } from '../../common';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
export
|
|
2
|
+
type DataPoint = {
|
|
3
|
+
x: Date;
|
|
4
|
+
y: number;
|
|
5
|
+
};
|
|
6
|
+
type Dataset = DataPoint[];
|
|
7
|
+
export interface DebtChartData extends Debt {
|
|
8
|
+
dataset: Dataset;
|
|
9
|
+
}
|
|
10
|
+
export declare const transformDebtsChartData: (debts: Debt[], initialExtraPayment?: number) => DebtChartData[];
|
|
11
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DebtChartData } from './DebtsWidget';
|
|
2
2
|
type PayoffProjection = {
|
|
3
3
|
payoffSavings: string;
|
|
4
4
|
payoffDate: string;
|
|
5
5
|
payoffDuration: string;
|
|
6
6
|
};
|
|
7
|
-
export declare function getPayoffProjection(debts:
|
|
7
|
+
export declare function getPayoffProjection(debts: DebtChartData[], extraPayment?: number): PayoffProjection;
|
|
8
8
|
export {};
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
import { Fetch, Goal } from '../../common';
|
|
1
|
+
import { Fetch, Goal, 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
|
+
getRetirementGoals: () => Promise<any>;
|
|
11
|
+
getRetirementGoalAccounts: () => Promise<any>;
|
|
8
12
|
removeGoal: (guid: string) => Promise<any>;
|
|
9
|
-
|
|
13
|
+
removeRetirementGoal: (guid: string) => Promise<any>;
|
|
14
|
+
removeRetirementGoalAccount: (guid: string) => Promise<any>;
|
|
15
|
+
updateGoal: (goal: Goal) => Promise<any>;
|
|
16
|
+
updateRetirementGoal: (goal: Goal) => Promise<any>;
|
|
10
17
|
}
|
|
@@ -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 {};
|
|
@@ -2,5 +2,7 @@ import { Goal } from '../../common';
|
|
|
2
2
|
interface GoalDetailsProps {
|
|
3
3
|
goal: Goal;
|
|
4
4
|
}
|
|
5
|
-
export declare const GoalDetails: ({ goal }: GoalDetailsProps) => import("react/jsx-runtime").JSX.Element
|
|
5
|
+
export declare const GoalDetails: (({ goal }: GoalDetailsProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
6
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 {};
|