@mx-cartographer/experiences 6.25.0-alpha.sms1 → 6.25.0-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.
@@ -9,15 +9,15 @@ export declare class AccountStore {
9
9
  members: Member[];
10
10
  uiStore: UiStore;
11
11
  constructor(globalStore: GlobalStore);
12
- loadAccountData: () => Promise<void>;
13
- setAccountData: ({ accounts, institutions }: {
14
- accounts: Account[];
15
- institutions: Institution[];
16
- }) => void;
17
12
  getAccountData: () => {
18
13
  accounts: Account[];
19
14
  institutions: Institution[];
20
15
  };
16
+ loadAccountData: ({ accounts, institutions, members }: {
17
+ accounts?: Account[];
18
+ institutions?: Institution[];
19
+ members?: Member[];
20
+ }) => Promise<void>;
21
21
  get cashAccounts(): Account[];
22
22
  get cashBalance(): number;
23
23
  get checkingAccounts(): Account[];
@@ -33,9 +33,9 @@ export declare class AccountStore {
33
33
  get visibleSavingsAccounts(): Account[];
34
34
  addAccount: (account: Account) => Promise<void>;
35
35
  augmentAccounts: (accounts?: Account[]) => Account[];
36
- loadAccounts: () => Promise<void>;
37
- loadInstitutions: () => Promise<void>;
38
- loadMembers: () => Promise<void>;
36
+ loadAccounts: (accountsOverride?: Account[], members?: Member[]) => Promise<void>;
37
+ loadInstitutions: (institutionsOverride?: Institution[]) => Promise<void>;
38
+ loadMembers: (membersOverride?: Member[]) => Promise<void>;
39
39
  mergeAccounts: (accountGuids: string[]) => Promise<void>;
40
40
  sortAccounts: (accounts?: Account[]) => Account[];
41
41
  refreshAccounts: () => Promise<void>;
@@ -16,7 +16,10 @@ export declare class CategoryStore {
16
16
  get spendCategories(): DetailedCategory[];
17
17
  get transferCategories(): DetailedCategory[];
18
18
  addCategory: (name: string, parentGuid: string) => Promise<void>;
19
- loadCategories: () => Promise<void>;
19
+ getCategoryData: () => {
20
+ categories: Category[];
21
+ };
22
+ loadCategories: (categoriesOverride?: Category[]) => Promise<void>;
20
23
  loadDateRangeCategoryTotals: (accounts: Account[], startDate: Date, endDate: Date) => Promise<void>;
21
24
  loadMonthlyCategoryTotals: (accounts?: Account[], startDate?: Date, endDate?: Date) => Promise<void>;
22
25
  reloadCategoryTotals: (accounts: Account[], startDate: Date, endDate: Date) => Promise<void>;
@@ -15,7 +15,7 @@ export declare class AppDataStore {
15
15
  get user(): User;
16
16
  get userCommunicationProfile(): UserCommunicationProfile;
17
17
  get userProfile(): UserProfile;
18
- loadAppData: () => Promise<void>;
18
+ loadAppData: (appDataOverrides?: AppData) => Promise<void>;
19
19
  loadBanner: () => Promise<void>;
20
20
  setUser: (user: User) => User;
21
21
  setUserCommunicationProfile: (profile: UserCommunicationProfile) => UserCommunicationProfile;
@@ -21,7 +21,21 @@ import { ConnectStore } from './ConnectStore';
21
21
  import { GlobalCopyStore } from './GlobalCopyStore';
22
22
  import { GlobalUiStore } from './GlobalUiStore';
23
23
  import { UserStore } from './UserStore';
24
- import { AppConfig } from '../types';
24
+ import { Account, Category, Institution, Member } from '../../common';
25
+ import { AppConfig, AppData, Beat, Tag, Tagging, Transaction, TransactionRule, UserFeature } from '../types';
26
+ interface LoadDataProps {
27
+ accounts?: Account[];
28
+ appData?: AppData;
29
+ associatedBeats?: Beat[];
30
+ categories?: Category[];
31
+ institutions?: Institution[];
32
+ members?: Member[];
33
+ taggings?: Tagging[];
34
+ tags?: Tag[];
35
+ transactionRules?: TransactionRule[];
36
+ transactions?: Transaction[];
37
+ userFeatures?: UserFeature[];
38
+ }
25
39
  export declare class GlobalStore {
26
40
  appConfig: AppConfig;
27
41
  endpoint: string;
@@ -51,5 +65,6 @@ export declare class GlobalStore {
51
65
  globalUiStore: GlobalUiStore;
52
66
  constructor(appConfig?: AppConfig, endpoint?: string);
53
67
  get isInitialized(): boolean;
54
- loadData: () => Promise<void>;
68
+ loadData: ({ accounts, appData, associatedBeats, categories, institutions, members, taggings, tags, transactionRules, transactions, userFeatures, }: LoadDataProps) => Promise<void>;
55
69
  }
70
+ export {};
@@ -9,7 +9,7 @@ export declare class UserStore {
9
9
  initialize: (endpoint: string, token: string) => Promise<void>;
10
10
  get userProfile(): UserProfile;
11
11
  get user(): User;
12
- loadUserFeatures: () => Promise<void>;
12
+ loadUserFeatures: (featuresOverrides?: UserFeature[]) => Promise<void>;
13
13
  updateUser: (user: User) => Promise<void>;
14
14
  updateUserProfile: (userProfile: UserProfile) => Promise<void>;
15
15
  }