@mx-cartographer/experiences 4.1.2-alpha.mega24 → 4.1.2-alpha.mega26
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/CHANGELOG.md +1 -1
- package/dist/common/api/UserApi.d.ts +1 -0
- package/dist/common/constants/ApiEndpoints.d.ts +1 -0
- package/dist/common/stores/UserStore.d.ts +3 -1
- package/dist/common/types/GlobalCopy.d.ts +2 -1
- package/dist/common/types/Help.d.ts +4 -1
- package/dist/common/types/User.d.ts +10 -0
- package/dist/common/types/index.d.ts +1 -1
- package/dist/common/types/localization/SettingsCopy.d.ts +20 -0
- package/dist/common/types/localization/index.d.ts +1 -0
- package/dist/goals/stores/GoalStore.d.ts +2 -0
- package/dist/help/{Help.d.ts → HelpWidget.d.ts} +2 -0
- package/dist/help/index.d.ts +1 -1
- package/dist/help/store/HelpStore.d.ts +1 -1
- package/dist/help/utils/index.d.ts +1 -5
- package/dist/index.es.js +384 -367
- package/dist/index.es.js.map +1 -1
- package/dist/settings/components/profile/ProfileDetails.d.ts +4 -0
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,7 @@ import { User, UserProfile } from '../types';
|
|
|
3
3
|
export declare class UserApi {
|
|
4
4
|
fetchInstance: Fetch;
|
|
5
5
|
constructor(endpoint: string, token: string);
|
|
6
|
+
getUserFeatures: () => Promise<any>;
|
|
6
7
|
updateUser: (user: User) => Promise<any>;
|
|
7
8
|
updateUserProfile: (userProfile: UserProfile) => Promise<any>;
|
|
8
9
|
}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { UserApi } from '../api';
|
|
2
|
-
import { User, UserProfile } from '../types';
|
|
2
|
+
import { User, UserFeatures, UserProfile } from '../types';
|
|
3
3
|
import { GlobalStore } from './GlobalStore';
|
|
4
4
|
export declare class UserStore {
|
|
5
5
|
globalStore: GlobalStore;
|
|
6
|
+
userFeatures: UserFeatures[];
|
|
6
7
|
api: UserApi;
|
|
7
8
|
constructor(globalStore: GlobalStore);
|
|
8
9
|
initialize: (endpoint: string, token: string) => Promise<void>;
|
|
9
10
|
get userProfile(): UserProfile;
|
|
10
11
|
get user(): User;
|
|
12
|
+
loadUserFeatures: () => Promise<void>;
|
|
11
13
|
updateUser: (user: User) => Promise<void>;
|
|
12
14
|
updateUserProfile: (userProfile: UserProfile) => Promise<void>;
|
|
13
15
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AccountsCopy, BudgetsCopy, CashflowCopy, CategoryCopy, CommonCopy, ConnectCopy, DebtsCopy, GoalsCopy, InsightsFeedCopy, MicroInsightsCopy, NetWorthCopy, NotificationsCopy, RecurringCopy, SpendingCopy, TransactionsCopy, TrendsCopy } from './localization';
|
|
1
|
+
import { AccountsCopy, BudgetsCopy, CashflowCopy, CategoryCopy, CommonCopy, ConnectCopy, DebtsCopy, GoalsCopy, InsightsFeedCopy, MicroInsightsCopy, NetWorthCopy, NotificationsCopy, RecurringCopy, SettingsCopy, SpendingCopy, TransactionsCopy, TrendsCopy } from './localization';
|
|
2
2
|
export interface GlobalCopy {
|
|
3
3
|
accounts: AccountsCopy;
|
|
4
4
|
budgets: BudgetsCopy;
|
|
@@ -13,6 +13,7 @@ export interface GlobalCopy {
|
|
|
13
13
|
net_worth: NetWorthCopy;
|
|
14
14
|
notifications: NotificationsCopy;
|
|
15
15
|
recurring: RecurringCopy;
|
|
16
|
+
settings: SettingsCopy;
|
|
16
17
|
spending: SpendingCopy;
|
|
17
18
|
transactions: TransactionsCopy;
|
|
18
19
|
trends: TrendsCopy;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ClientCommunicationProfile, ClientProfile } from './Client';
|
|
1
2
|
export interface HelpCategory {
|
|
2
3
|
flags?: string[];
|
|
3
4
|
guid: string;
|
|
@@ -6,9 +7,9 @@ export interface HelpCategory {
|
|
|
6
7
|
topics: HelpTopic[];
|
|
7
8
|
}
|
|
8
9
|
export interface HelpListProps {
|
|
9
|
-
helpTitle: string;
|
|
10
10
|
helpCategories: HelpCategory[];
|
|
11
11
|
helpContent: string;
|
|
12
|
+
helpTitle: string;
|
|
12
13
|
buttonText: string;
|
|
13
14
|
onRequestHelp: () => void;
|
|
14
15
|
onTopicSelect: (topicKey: string) => void;
|
|
@@ -17,3 +18,5 @@ export interface HelpTopic {
|
|
|
17
18
|
label: string;
|
|
18
19
|
topicKey: string;
|
|
19
20
|
}
|
|
21
|
+
export interface Profile extends ClientCommunicationProfile, ClientProfile {
|
|
22
|
+
}
|
|
@@ -10,6 +10,16 @@ export interface User {
|
|
|
10
10
|
phone?: string | null;
|
|
11
11
|
phone_is_verified: boolean;
|
|
12
12
|
}
|
|
13
|
+
export interface UserFeatures {
|
|
14
|
+
feature_guid: string;
|
|
15
|
+
feature_name: string;
|
|
16
|
+
guid: string;
|
|
17
|
+
is_enabled: boolean;
|
|
18
|
+
should_notify_user: boolean;
|
|
19
|
+
user_guid: string;
|
|
20
|
+
created_at: string;
|
|
21
|
+
updated_at: string;
|
|
22
|
+
}
|
|
13
23
|
export interface UserProfile {
|
|
14
24
|
guid: string;
|
|
15
25
|
has_completed_cash_flow_onboarding: boolean;
|
|
@@ -24,6 +24,6 @@ export type { ScheduledPayment } from './ScheduledPayment';
|
|
|
24
24
|
export type { SpendingPlan, SpendingPlanAccount, SpendingPlanIteration, IterationItem, } from './SpendingPlan';
|
|
25
25
|
export type { Tag, Tagging, Transaction, TransactionRule } from './Transaction';
|
|
26
26
|
export { TransactionStatus, TransactionType } from './Transaction';
|
|
27
|
-
export type { User, UserProfile } from './User';
|
|
27
|
+
export type { User, UserFeatures, UserProfile } from './User';
|
|
28
28
|
export { ScreenSize } from './ScreenSize';
|
|
29
29
|
export type { MiniWidgetProps, WidgetProps } from './Widgets';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface SettingsCopy {
|
|
2
|
+
birthdate: string;
|
|
3
|
+
credit_score: string;
|
|
4
|
+
email_address: string;
|
|
5
|
+
first_name: string;
|
|
6
|
+
last_name: string;
|
|
7
|
+
mobile_number: string;
|
|
8
|
+
profile_details: string;
|
|
9
|
+
profile_updated_error_alert: string;
|
|
10
|
+
profile_updated_success_alert: string;
|
|
11
|
+
send_verification: string;
|
|
12
|
+
update_profile_details: string;
|
|
13
|
+
verification_code_error_alert: string;
|
|
14
|
+
verification_code_success_alert: string;
|
|
15
|
+
verification_notice: string;
|
|
16
|
+
verify_contact: string;
|
|
17
|
+
verify_contact_detail: string;
|
|
18
|
+
verify_contact_button: string;
|
|
19
|
+
zip_code: string;
|
|
20
|
+
}
|
|
@@ -15,6 +15,7 @@ export type { MicroInsightsCopy } from './MicroInsightsCopy';
|
|
|
15
15
|
export type { NetWorthCopy } from './NetWorthCopy';
|
|
16
16
|
export type { NotificationsCopy } from './NotificationsCopy';
|
|
17
17
|
export type { RecurringCopy } from './RecurringCopy';
|
|
18
|
+
export type { SettingsCopy } from './SettingsCopy';
|
|
18
19
|
export type { SpendingCopy } from './SpendingCopy';
|
|
19
20
|
export type { TransactionsCopy } from './TransactionsCopy';
|
|
20
21
|
export type { TrendsCopy } from './TrendsCopy';
|
|
@@ -13,6 +13,8 @@ export declare class GoalStore {
|
|
|
13
13
|
initialize: (endpoint: string, token: string) => Promise<void>;
|
|
14
14
|
get orderedGoals(): Goal[];
|
|
15
15
|
get debtGoals(): Goal[];
|
|
16
|
+
get retirmentGoals(): Goal[];
|
|
17
|
+
get savingGoals(): Goal[];
|
|
16
18
|
addGoal: (goal: Goal) => Promise<void>;
|
|
17
19
|
addRetirementGoal: (goal: Goal) => Promise<void>;
|
|
18
20
|
addRetirementGoalAccount: (account: RetirementGoalAccount) => Promise<void>;
|
package/dist/help/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as
|
|
1
|
+
export { default as HelpWidget } from './HelpWidget';
|
|
2
2
|
export { HelpList } from './HelpList';
|
|
@@ -4,6 +4,6 @@ export declare class HelpStore {
|
|
|
4
4
|
appConfig: Config | undefined;
|
|
5
5
|
globalStore: GlobalStore;
|
|
6
6
|
constructor(globalStore: GlobalStore);
|
|
7
|
-
|
|
7
|
+
loadAppConfig: (config: Config) => Config;
|
|
8
8
|
get helpCategories(): import('../../common/types/Help').HelpCategory[];
|
|
9
9
|
}
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { HelpCategory } from '../../common/types/Help';
|
|
3
|
-
interface Profile extends ClientCommunicationProfile, ClientProfile {
|
|
4
|
-
}
|
|
1
|
+
import { HelpCategory, Profile } from '../../common/types/Help';
|
|
5
2
|
export declare const getAccessibleHelpCategories: (profile: Profile) => HelpCategory[];
|
|
6
|
-
export {};
|