@mx-cartographer/experiences 6.10.2 → 6.10.3-alpha.al1

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 CHANGED
@@ -1,3 +1,7 @@
1
+ ## [6.10.3] - 06-27-2025
2
+
3
+ - **UPDATED** - AppData to include client insight profile
4
+
1
5
  ## [6.10.2] - 06-27-2025
2
6
 
3
7
  - **REVERTED** - Removed the simulateCompact function from the BubbleChart
@@ -1,5 +1,5 @@
1
1
  import { AppDataApi } from '../api/AppDataApi';
2
- import { AppConfig, AppData, Banner, User, UserCommunicationProfile, UserProfile } from '../types';
2
+ import { AppConfig, AppData, Banner, ClientInsightProfile, User, UserCommunicationProfile, UserProfile } from '../types';
3
3
  import { BannerApi } from '../api';
4
4
  import { GlobalStore } from './GlobalStore';
5
5
  export declare class AppDataStore {
@@ -8,6 +8,7 @@ export declare class AppDataStore {
8
8
  bannerApi: BannerApi;
9
9
  appData: AppData;
10
10
  banner: Banner;
11
+ clientInsightProfile: ClientInsightProfile;
11
12
  constructor(globalStore: GlobalStore);
12
13
  get appConfig(): AppConfig;
13
14
  get clientCommunicationProfile(): import('../types').ClientCommunicationProfile;
@@ -1,4 +1,4 @@
1
- import { Client, ClientColorScheme, ClientCommunicationProfile, ClientProfile, ClientStyleProfile } from './Client';
1
+ import { Client, ClientColorScheme, ClientCommunicationProfile, ClientInsightProfile, ClientProfile, ClientStyleProfile } from './Client';
2
2
  import { User, UserCommunicationProfile, UserFeature, UserProfile } from './User';
3
3
  export interface AppData {
4
4
  appConfig: AppConfig;
@@ -8,6 +8,7 @@ export interface AppData {
8
8
  client: Client;
9
9
  client_color_scheme: ClientColorScheme;
10
10
  client_communication_profile: ClientCommunicationProfile;
11
+ client_insight_profile: ClientInsightProfile;
11
12
  client_profile: ClientProfile;
12
13
  user: User;
13
14
  user_communication_profile: UserCommunicationProfile;
@@ -80,6 +80,20 @@ export interface ClientProfile {
80
80
  uses_oauth: boolean;
81
81
  default_institution_guid?: string | null;
82
82
  }
83
+ export interface ClientInsightProfile {
84
+ client_guid: string;
85
+ default_to_preferred_color_scheme_enabled: boolean;
86
+ enabled_beat_templates: string;
87
+ guid: string;
88
+ is_accounts_3d_experience_enabled: boolean;
89
+ is_transactions_3d_experience_enabled: boolean;
90
+ is_dark_mode_enabled: boolean;
91
+ is_enabled: boolean;
92
+ savings_opportunity_minimum_checking_account_balance: number;
93
+ uses_custom_communications_post_message: boolean;
94
+ is_accounts_control_enabled: boolean;
95
+ is_recurring_transactions_manager_enabled: boolean;
96
+ }
83
97
  export interface ClientStyleProfile {
84
98
  primary_color?: string;
85
99
  primary_font_regular?: string;
@@ -7,7 +7,7 @@ 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
9
  export type { Category, CategoryTotal, DateRangeCategoryTotals, DetailedCategory, MonthlyAmount, MonthlyCategoryTotals, } from './Category';
10
- export type { Client, ClientColorScheme, ClientCommunicationProfile, ClientProfile, ClientStyleProfile, } from './Client';
10
+ export type { Client, ClientColorScheme, ClientCommunicationProfile, ClientInsightProfile, ClientProfile, ClientStyleProfile, } from './Client';
11
11
  export type { DateType, DateRange } from './Date';
12
12
  export type { Expense } from './Expense';
13
13
  export { ExpenseStatus, ScheduledPaymentTypes } from './Expense';
package/dist/index.es.js CHANGED
@@ -19604,6 +19604,7 @@ class iC {
19604
19604
  bannerApi = new Ko("/");
19605
19605
  appData = {};
19606
19606
  banner = {};
19607
+ clientInsightProfile = {};
19607
19608
  constructor(n) {
19608
19609
  this.globalStore = n, this.api = new Br(n.endpoint, n.sessionToken), Pe(this);
19609
19610
  }
@@ -19613,6 +19614,9 @@ class iC {
19613
19614
  get clientCommunicationProfile() {
19614
19615
  return this.appData.client_communication_profile;
19615
19616
  }
19617
+ // get clientInsightProfile() {
19618
+ // return this.appData.client_insight_profile
19619
+ // }
19616
19620
  get user() {
19617
19621
  return this.appData.user;
19618
19622
  }
@@ -19626,7 +19630,7 @@ class iC {
19626
19630
  try {
19627
19631
  const n = await this.api.getAppData();
19628
19632
  X(() => {
19629
- this.appData = n, this.bannerApi = new Ko(n.address?.bullseye || "/");
19633
+ this.appData = n, this.bannerApi = new Ko(n.address?.bullseye || "/"), this.clientInsightProfile = n.client_insight_profile;
19630
19634
  });
19631
19635
  } catch (n) {
19632
19636
  console.error(`Error loading app data: ${n}`);
@@ -21466,7 +21470,6 @@ const LC = () => {
21466
21470
  borderColor: n.palette.border.light,
21467
21471
  "&:hover": {
21468
21472
  // temp hardcoded dark mode color until design team decision
21469
- // eslint-disable-next-line no-nested-ternary
21470
21473
  backgroundColor: n.palette.mode === "dark" ? "#0749B240" : n.palette.primary.lighter,
21471
21474
  borderColor: n.palette.primary.main
21472
21475
  }