@mx-cartographer/experiences 3.11.0 → 3.12.1

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,14 @@
1
+ ## [3.12.1] - 10-26-2024
2
+
3
+ - **UPDATED** - icon and pulse sub header
4
+
5
+ ## [3.12.0] - 10-25-2024
6
+
7
+ - **ADDED** - PulseIcon
8
+ - **ADDED** - PulseSubHeader
9
+ - **UPDATED** - SetUpDirectDeposit made isDarkMode optional
10
+ - **UPDATED** - SwitchDirectDeposit made isDarkMode optional
11
+
1
12
  ## [3.11.0] - 10-25-2024
2
13
 
3
14
  - **ADDED** - MonthlyEmergencyFundReview BeatBody
@@ -8,6 +8,7 @@ export declare class AccountApi {
8
8
  getAccounts: () => Promise<any>;
9
9
  getInstitutions: () => Promise<any>;
10
10
  getMembers: () => Promise<any>;
11
+ getMonthlyAccountBalances: (guid: string) => Promise<any>;
11
12
  mergeAccounts: (accountGuids: string[]) => Promise<any>;
12
13
  refreshAllMembers: () => Promise<any>;
13
14
  updateAccount: (account: Account) => Promise<any>;
@@ -1,6 +1,10 @@
1
- import { Fetch } from '../../common';
1
+ import { Budget, Fetch } from '../../common';
2
2
  export declare class BudgetsApi {
3
3
  fetchInstance: Fetch;
4
4
  constructor(endpoint: string, token: string);
5
- getBudgets(): Promise<any>;
5
+ addBudget: (budget: Budget) => Promise<any>;
6
+ deleteBudget: (guid: string) => Promise<any>;
7
+ generateBudgets: () => Promise<any>;
8
+ getBudgets: () => Promise<any>;
9
+ updateBudget: (budget: Budget) => Promise<any>;
6
10
  }
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { DetailedBudget } from '../../common/types/Budget';
2
+ import { DetailedBudget } from '../../common';
3
3
  interface BubbleBudgetsProps {
4
4
  isDraggable?: boolean;
5
5
  onClick?: (budget: DetailedBudget) => void;
@@ -7,5 +7,5 @@ interface BubbleBudgetsProps {
7
7
  unavailableHeight?: number;
8
8
  unavailableWidth?: number;
9
9
  }
10
- declare const _default: React.FunctionComponent<BubbleBudgetsProps>;
11
- export default _default;
10
+ export declare const BubbleBudgets: React.FC<BubbleBudgetsProps>;
11
+ export {};
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { DetailedBudget } from '../../common/types/Budget';
2
+ import { DetailedBudget } from '../../common';
3
3
  interface BudgetDetailsProps {
4
4
  budget: DetailedBudget;
5
5
  }
@@ -1,13 +1,23 @@
1
- import { Budget, BudgetsCopy, GlobalStore } from '../../common';
2
- import { BudgetsApi } from '../api/BudgetsApi';
3
- import { DetailedBudget } from '../../common/types/Budget';
4
1
  import { Theme } from '@mui/system';
2
+ import { Account, Budget, CategoryTotal, DateRange, DetailedBudget, CategoryApi, GlobalStore } from '../../common';
3
+ import { BudgetsApi } from '../api/BudgetsApi';
5
4
  export declare class BudgetsStore {
6
5
  api: BudgetsApi;
6
+ categoryApi: CategoryApi;
7
7
  globalStore: GlobalStore;
8
- budgets: DetailedBudget[];
9
- income: Budget | undefined;
8
+ dateRange: DateRange;
9
+ budgets: Budget[];
10
+ categoryTotals: CategoryTotal[];
11
+ theme: Theme;
10
12
  constructor(globalStore: GlobalStore);
11
13
  initialize: (endpoint: string, token: string) => Promise<void>;
12
- loadBudgets: (copy: BudgetsCopy, theme: Theme) => Promise<void>;
14
+ get detailedBudgets(): DetailedBudget[];
15
+ addBudget: (budget: Budget) => Promise<void>;
16
+ deleteBudget: (guid: string) => Promise<void>;
17
+ generateBudgets: () => Promise<void>;
18
+ loadBudgets: () => Promise<void>;
19
+ loadCategoryTotals: (accounts: Account[], dateRange: DateRange) => Promise<void>;
20
+ setDateRange: (dateRange: DateRange) => DateRange;
21
+ setTheme: (theme: Theme) => Theme;
22
+ updateBudget: (budget: Budget) => Promise<void>;
13
23
  }
@@ -1,7 +1,6 @@
1
1
  import { Theme } from '@mui/system';
2
- import { Budget, BudgetsCopy, Category } from '../../common';
3
- import { BudgetColors, DetailedBudget } from '../../common/types/Budget';
2
+ import { Budget, BudgetColors, BudgetsCopy, Category, CategoryTotal, DetailedBudget } from '../../common';
4
3
  export declare const getBudgetPercentage: (budget: Budget) => number;
5
4
  export declare const getBudgetColors: (budget: Budget, theme: Theme) => BudgetColors;
6
5
  export declare const useGetBudgetDifference: () => number;
7
- export declare const augmentBudgets: (budgets: Budget[], categories: Category[], copy: BudgetsCopy, theme: Theme) => DetailedBudget[];
6
+ export declare const augmentBudgets: (budgets: Budget[], categories: Category[], categoryTotals: CategoryTotal[], copy: BudgetsCopy, theme: Theme) => DetailedBudget[];
@@ -6,6 +6,7 @@ import { CategoryStore } from '../../categories';
6
6
  import { ConnectStore } from './ConnectStore';
7
7
  import { GlobalUiStore } from './GlobalUiStore';
8
8
  import { MerchantStore } from '../../merchants';
9
+ import { NetWorthStore } from '../../networth';
9
10
  import { NotificationStore } from '../../notifications';
10
11
  import { RecurringActivityStore } from '../../recurringactivity';
11
12
  import { TransactionStore } from '../../transactions';
@@ -20,6 +21,7 @@ export declare class GlobalStore {
20
21
  connectStore: ConnectStore;
21
22
  copyStore: GlobalCopyStore;
22
23
  merchantStore: MerchantStore;
24
+ netWorthStore: NetWorthStore;
23
25
  notificationStore: NotificationStore;
24
26
  recurringActivityStore: RecurringActivityStore;
25
27
  transactionStore: TransactionStore;
@@ -100,6 +100,18 @@ export interface Member {
100
100
  successfully_aggregated_at?: number;
101
101
  connectionStatus?: ConnectionStatus;
102
102
  }
103
+ export interface MonthlyAccountBalance {
104
+ account_guid: string;
105
+ balance: number;
106
+ credit_transaction_total: number;
107
+ debit_transaction_total: number;
108
+ id: string;
109
+ month: number;
110
+ transaction_total: number;
111
+ user_guid: string;
112
+ year: number;
113
+ year_month: number;
114
+ }
103
115
  export declare enum AccountType {
104
116
  ANY = 0,
105
117
  CHECKING = 1,
@@ -41,3 +41,9 @@ export interface DetailedCategory extends Category {
41
41
  total: number;
42
42
  value: number;
43
43
  }
44
+ export interface CategoryTotal {
45
+ amount: number;
46
+ category: Category;
47
+ guid: string;
48
+ subCategoryTotals: CategoryTotal[];
49
+ }
@@ -1 +1,5 @@
1
1
  export type DateType = Date | [Date, Date];
2
+ export type DateRange = {
3
+ start: Date;
4
+ end: Date;
5
+ };
@@ -1,13 +1,13 @@
1
- export type { Account, DetailedAccount, Member } from './Account';
1
+ export type { Account, DetailedAccount, Member, MonthlyAccountBalance } from './Account';
2
2
  export { AccountIcon, 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
5
  export type { Beat, DataSeries } from './Beat';
6
6
  export { UserVerification } from './Beat';
7
- export type { Budget } from './Budget';
7
+ export type { Budget, BudgetColors, DetailedBudget } from './Budget';
8
8
  export type { CashflowEvent, CashflowSequence, RepeatDay, RepeatInterval, RepeatMonth, RepeatWeekday, } from './Cashflow';
9
- export type { Category, DateRangeCategoryTotals, MonthlyCategoryTotals } from './Category';
10
- export type { DateType } from './Date';
9
+ export type { Category, CategoryTotal, DateRangeCategoryTotals, MonthlyCategoryTotals, } from './Category';
10
+ export type { DateType, DateRange } from './Date';
11
11
  export type { Expense } from './Expense';
12
12
  export { ExpenseStatus, ScheduledPaymentTypes } from './Expense';
13
13
  export type { DynamicCopyElement, GlobalCopy } from './GlobalCopy';
@@ -1,2 +1,3 @@
1
- import { Category } from '../types';
2
- export declare const getCategory: (categories: Category[], categoryGuid: string | undefined) => string;
1
+ import { Category, CategoryTotal, DateRangeCategoryTotals } from '../types';
2
+ export declare const getCategory: (categories: Category[], categoryGuid: string | undefined) => Category | undefined;
3
+ export declare const getCategoryTotalsByParent: (categories: Category[], dateRangeTotals: DateRangeCategoryTotals[]) => CategoryTotal[];
@@ -1,4 +1,5 @@
1
1
  export { analyticsSession } from './Analytics';
2
+ export { getCategory, getCategoryTotalsByParent } from './Categories';
2
3
  export { Fetch } from './Fetch';
3
4
  export { buildDynamicCopy, buildPluralCopy, getLocale } from './Localization';
4
5
  export { formatCurrency, formatOrdinal, formatPercentage, getCurrencyCodes, isValidNumber, } from './NumberFormatting';
package/dist/index.d.ts CHANGED
@@ -8,6 +8,7 @@ export * from './goals';
8
8
  export * from './insights';
9
9
  export * from './merchants';
10
10
  export * from './microinsights';
11
+ export * from './networth';
11
12
  export * from './notifications';
12
13
  export * from './recurringactivity';
13
14
  export * from './spending';