@mx-cartographer/experiences 4.1.0-alpha.j2 → 4.1.0-alpha.j21

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.
@@ -0,0 +1,7 @@
1
+ import { AccountBannerType } from '../types';
2
+ import { default as Fetch } from '../utils/Fetch';
3
+ export declare class MarketingApi {
4
+ fetchInstance: Fetch;
5
+ constructor(endpoint: string, token: string);
6
+ getAccountBanner: (bullseyeUrl: string, userGuid: string) => Promise<AccountBannerType>;
7
+ }
@@ -1,5 +1,6 @@
1
1
  export declare const useGlobalDataContext: (providerName?: string) => import('./GlobalDataProvider').GlobalStoreContextTypes;
2
2
  export declare const useAccountStore: () => import('../..').AccountStore;
3
+ export declare const useAppStore: () => import('../stores/AppStore').AppStore;
3
4
  export declare const useBudgetsStore: () => import('../../budgets/store/BudgetsStore').BudgetsStore;
4
5
  export declare const useCashflowStore: () => import('../..').CashflowStore;
5
6
  export declare const useCategoryStore: () => import('../..').CategoryStore;
@@ -9,6 +10,7 @@ export declare const useGlobalStore: () => import('..').GlobalStore;
9
10
  export declare const useGlobalUiStore: () => import('../stores/GlobalUiStore').GlobalUiStore;
10
11
  export declare const useGlobalCopyStore: () => import('..').GlobalCopy;
11
12
  export declare const useGoalStore: () => import('../..').GoalStore;
13
+ export declare const useMarketingStore: () => import('../stores/MarketingStore').MarketingStore;
12
14
  export declare const useMerchantStore: () => import('../..').MerchantStore;
13
15
  export declare const useNetWorthStore: () => import('../..').NetWorthStore;
14
16
  export declare const useNotificationStore: () => import('../..').NotificationStore;
@@ -1,3 +1,3 @@
1
- export { useAccountStore, useBudgetsStore, useCashflowStore, useCategoryStore, useDebtStore, useEvent, useGlobalStore, useGlobalUiStore, useGlobalCopyStore, useGoalStore, useMerchantStore, useNetWorthStore, useNotificationStore, usePageView, useRecurringActivityStore, useTransactionStore, useUserStore, useWidgetContainerProvider, } from './hooks';
1
+ export { useAccountStore, useAppStore, useBudgetsStore, useCashflowStore, useCategoryStore, useDebtStore, useEvent, useGlobalStore, useGlobalUiStore, useGlobalCopyStore, useGoalStore, useMarketingStore, useMerchantStore, useNetWorthStore, useNotificationStore, usePageView, useRecurringActivityStore, useTransactionStore, useUserStore, useWidgetContainerProvider, } from './hooks';
2
2
  export { GlobalDataContext, GlobalDataProvider } from './GlobalDataProvider';
3
3
  export { WidgetContainerContext, WidgetContainerProvider } from './WidgetContainerProvider';
@@ -7,5 +7,5 @@ export declare class AppStore {
7
7
  constructor();
8
8
  initialize: (endpoint: string, token: string) => Promise<void>;
9
9
  loadAppData: () => Promise<void>;
10
- updateUserProfile: (updatedProfile: UserProfile) => void;
10
+ updateUserProfile: (userProfile: UserProfile) => Promise<void>;
11
11
  }
@@ -8,6 +8,7 @@ import { ConnectStore } from './ConnectStore';
8
8
  import { DebtsStore } from '../../debts/index';
9
9
  import { GlobalUiStore } from './GlobalUiStore';
10
10
  import { GoalStore } from '../../goals';
11
+ import { MarketingStore } from './MarketingStore';
11
12
  import { MerchantStore } from '../../merchants';
12
13
  import { NetWorthStore } from '../../networth';
13
14
  import { NotificationStore } from '../../notifications';
@@ -26,6 +27,7 @@ export declare class GlobalStore {
26
27
  copyStore: GlobalCopyStore;
27
28
  goalStore: GoalStore;
28
29
  debtsStore: DebtsStore;
30
+ marketingStore: MarketingStore;
29
31
  merchantStore: MerchantStore;
30
32
  netWorthStore: NetWorthStore;
31
33
  notificationStore: NotificationStore;
@@ -0,0 +1,8 @@
1
+ import { MarketingApi } from '../api/MarketingApi';
2
+ import { AccountBannerType } from '../types';
3
+ export declare class MarketingStore {
4
+ accountBanner: AccountBannerType;
5
+ api: MarketingApi;
6
+ constructor();
7
+ loadAccountBanner: (bullseyeUrl: string, userGuid: string) => Promise<void>;
8
+ }
@@ -7,5 +7,5 @@ export declare class UserStore {
7
7
  constructor(globalStore: GlobalStore);
8
8
  initialize: (endpoint: string, token: string) => Promise<void>;
9
9
  updateUserProfile: (userProfile: UserProfile) => Promise<void>;
10
- get userProfile(): UserProfile;
10
+ get userProfile(): import('../types/AppData').UserProfile;
11
11
  }
@@ -0,0 +1,17 @@
1
+ export interface AccountBannerType {
2
+ "guid": string;
3
+ "dashboard_position": null;
4
+ "dismiss_button_action_uri": null;
5
+ "image_url": string;
6
+ "is_static": false;
7
+ "left_button_action_type": null;
8
+ "left_button_action_uri": null;
9
+ "left_button_image_url": null;
10
+ "left_button_success_image_url": null;
11
+ "redirect_url": string;
12
+ "right_button_action_type": null;
13
+ "right_button_action_uri": null;
14
+ "right_button_image_url": null;
15
+ "right_button_success_image_url": null;
16
+ "viewed_action_uri": null;
17
+ }
@@ -1,4 +1,3 @@
1
- import { UserProfile } from './User';
2
1
  export interface AppData {
3
2
  client: {
4
3
  guid: string;
@@ -85,28 +84,7 @@ export interface AppData {
85
84
  uses_oauth: boolean;
86
85
  default_institution_guid: string;
87
86
  };
88
- user: {
89
- guid: string;
90
- birthday: number;
91
- client_guid: string;
92
- credit_score: number;
93
- email: string;
94
- email_is_verified: boolean;
95
- external_guid: string;
96
- first_name: string;
97
- has_accepted_terms: boolean;
98
- has_password: boolean;
99
- has_updated_terms_and_conditions: boolean;
100
- health_score: number;
101
- last_name: string;
102
- metadata: null;
103
- phone: null;
104
- phone_is_verified: boolean;
105
- postal_code: string;
106
- sex: null;
107
- uses_single_sign_on: boolean;
108
- created_at: number;
109
- };
87
+ user: User;
110
88
  user_profile: UserProfile;
111
89
  user_communication_profile: {
112
90
  client_guid: string;
@@ -124,3 +102,45 @@ export interface AppData {
124
102
  bullseye: string;
125
103
  };
126
104
  }
105
+ export interface User {
106
+ guid: string;
107
+ birthday: number;
108
+ client_guid: string;
109
+ credit_score: number;
110
+ email: string;
111
+ email_is_verified: boolean;
112
+ external_guid: string;
113
+ first_name: string;
114
+ has_accepted_terms: boolean;
115
+ has_password: boolean;
116
+ has_updated_terms_and_conditions: boolean;
117
+ health_score: number;
118
+ last_name: string;
119
+ metadata: null;
120
+ phone: null;
121
+ phone_is_verified: boolean;
122
+ postal_code: string;
123
+ sex: null;
124
+ uses_single_sign_on: boolean;
125
+ created_at: number;
126
+ }
127
+ export interface UserProfile {
128
+ guid: string;
129
+ has_completed_cash_flow_onboarding: boolean;
130
+ has_completed_finstrong_onboarding: boolean;
131
+ has_completed_guide_me_wizard: boolean;
132
+ has_completed_budgets2_onboarding: boolean;
133
+ has_completed_recurring_transactions_manager_onboarding: boolean;
134
+ has_completed_spending_plan_onboarding: boolean;
135
+ has_completed_widgets_wizard: boolean;
136
+ has_closed_accounts_widget_help_state: boolean;
137
+ has_closed_budgets_widget_help_state: boolean;
138
+ has_closed_debts_widget_help_state: boolean;
139
+ has_closed_goals_widget_help_state: boolean;
140
+ has_closed_net_worth_widget_help_state: boolean;
141
+ has_closed_spending_widget_help_state: boolean;
142
+ has_closed_transactions_widget_help_state: boolean;
143
+ has_closed_trends_widget_help_state: boolean;
144
+ uses_detailed_notifications: boolean;
145
+ user_guid: string;
146
+ }
@@ -1,5 +1,6 @@
1
1
  export type { Account, DetailedAccount, Member, MonthlyAccountBalance } from './Account';
2
2
  export { AccountIcon, AccountIconVariants, AccountSubType, AccountType, AccountTypeName, ConnectionStatus, ConnectionStatusEnums, ErrorStatuses, MfaStatuses, NonConnectedStatuses, ProcessingStatuses, PropertyType, PropertyTypeName, StatusName, } from './Account';
3
+ export type { AccountBannerType } from './AccountBanner';
3
4
  export { type Activity, ActivityStatus, ActivityType } from './Activity';
4
5
  export type { AnalyticsEvent, AnalyticsPageview, BasicAnalyticsEvent, BasicAnalyticsPageview, AnalyticsSession, AnalyticEventFunction, AnalyticPageviewFunction, } from './Analytics';
5
6
  export type { AppData } from './AppData';
@@ -6,5 +6,6 @@ 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>;
9
10
  }
10
11
  export default Fetch;