@mx-cartographer/experiences 6.1.0-alpha.al9 → 6.1.0-alpha.bb2

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.
Files changed (42) hide show
  1. package/CHANGELOG.md +0 -9
  2. package/dist/budgets/api/BudgetsApi.d.ts +1 -0
  3. package/dist/budgets/components/BubbleBudgets.d.ts +0 -1
  4. package/dist/budgets/store/BudgetsStore.d.ts +1 -4
  5. package/dist/common/components/EmptyState.d.ts +2 -6
  6. package/dist/common/components/MiniWidgetContainer.d.ts +0 -2
  7. package/dist/common/constants/Analytics.d.ts +0 -1
  8. package/dist/common/constants/ApiEndpoints.d.ts +1 -1
  9. package/dist/common/context/hooks.d.ts +1 -1
  10. package/dist/common/context/index.d.ts +1 -1
  11. package/dist/common/stores/GlobalStore.d.ts +2 -2
  12. package/dist/common/types/Analytics.d.ts +0 -2
  13. package/dist/common/types/AppData.d.ts +0 -2
  14. package/dist/common/types/RepeatingTransaction.d.ts +50 -0
  15. package/dist/common/types/Transaction.d.ts +1 -0
  16. package/dist/common/types/index.d.ts +2 -1
  17. package/dist/common/types/localization/BudgetsCopy.d.ts +0 -13
  18. package/dist/index.d.ts +1 -1
  19. package/dist/index.es.js +6961 -6392
  20. package/dist/index.es.js.map +1 -1
  21. package/dist/recurringtransactions/RecurringTransactionsWidget.d.ts +4 -0
  22. package/dist/recurringtransactions/api/RepeatingTransactionsApi.d.ts +9 -0
  23. package/dist/recurringtransactions/components/ActivityBadges.d.ts +16 -0
  24. package/dist/recurringtransactions/components/ActivityDetails.d.ts +8 -0
  25. package/dist/recurringtransactions/components/ActivityList.d.ts +14 -0
  26. package/dist/recurringtransactions/components/ActivityRow.d.ts +9 -0
  27. package/dist/recurringtransactions/components/RecurringStatus.d.ts +12 -0
  28. package/dist/recurringtransactions/components/RecurringTransactions.d.ts +1 -0
  29. package/dist/recurringtransactions/components/activitycalendar/ActivityCalendar.d.ts +4 -0
  30. package/dist/recurringtransactions/components/activitycalendar/ActivityDay.d.ts +4 -0
  31. package/dist/recurringtransactions/components/activitycalendar/Legend.d.ts +4 -0
  32. package/dist/recurringtransactions/index.d.ts +1 -0
  33. package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +33 -0
  34. package/dist/recurringtransactions/util/RecurringTransactions.d.ts +11 -0
  35. package/dist/transactions/stores/TransactionStore.d.ts +1 -0
  36. package/dist/transactions/utils/buildDetailedTransactions.d.ts +1 -0
  37. package/package.json +1 -1
  38. package/dist/analytics/SurveyMiniWidget.d.ts +0 -9
  39. package/dist/budgets/components/BudgetsEmptyState.d.ts +0 -7
  40. package/dist/common/types/Holding.d.ts +0 -39
  41. package/dist/investments/api/HoldingApi.d.ts +0 -6
  42. package/dist/investments/stores/HoldingStore.d.ts +0 -10
@@ -0,0 +1,4 @@
1
+ import { WidgetProps } from '../common';
2
+ export declare const RecurringTransactionsWidget: (({ onBackClick, sx }: WidgetProps) => import("react/jsx-runtime").JSX.Element) & {
3
+ displayName: string;
4
+ };
@@ -0,0 +1,9 @@
1
+ import { Fetch, RepeatingTransaction } from '../../common';
2
+ export declare class RepeatingTransactionsApi {
3
+ fetchInstance: Fetch;
4
+ constructor(endpoint: string, token: string);
5
+ addRepeatingTransaction: (repeatingTransaction: RepeatingTransaction) => Promise<any>;
6
+ getRepeatingTransactions: () => Promise<any>;
7
+ updateRepeatingTransaction: (repeatingTransaction: RepeatingTransaction) => Promise<any>;
8
+ deleteRepeatingTransaction: (guid: string) => Promise<any>;
9
+ }
@@ -0,0 +1,16 @@
1
+ export declare const UpcomingExpenseBadge: ({ isOffset, size }: {
2
+ isOffset?: boolean | undefined;
3
+ size?: number | undefined;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const IncomeBadge: ({ isOffset, size }: {
6
+ isOffset?: boolean | undefined;
7
+ size?: number | undefined;
8
+ }) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const MissedBadge: ({ isOffset, size }: {
10
+ isOffset?: boolean | undefined;
11
+ size?: number | undefined;
12
+ }) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const PaidBadge: ({ isOffset, size }: {
14
+ isOffset?: boolean | undefined;
15
+ size?: number | undefined;
16
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ import { Activity } from '../../common/types/RepeatingTransaction';
3
+ interface ActivityDetailsProps {
4
+ activity: Activity;
5
+ onDeleted: () => void;
6
+ }
7
+ declare const _default: React.FunctionComponent<ActivityDetailsProps>;
8
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import { Activity } from '../../common/types/RepeatingTransaction';
2
+ import { SxProps } from '@mui/material/styles';
3
+ interface ActivityListProps {
4
+ activities: Activity[];
5
+ isMini?: boolean;
6
+ onResetClick?: () => void;
7
+ onActivityClick: (activity: Activity) => void;
8
+ sx?: SxProps;
9
+ title?: string;
10
+ }
11
+ export declare const ActivityList: (({ activities, isMini, onResetClick, onActivityClick, sx, title, }: ActivityListProps) => import("react/jsx-runtime").JSX.Element) & {
12
+ displayName: string;
13
+ };
14
+ export {};
@@ -0,0 +1,9 @@
1
+ import { Activity } from '../../common/types/RepeatingTransaction';
2
+ interface ActivityRowProps {
3
+ activity: Activity;
4
+ isMini?: boolean;
5
+ onActivityClick?: (activity: Activity) => void;
6
+ showOrdinal?: boolean;
7
+ }
8
+ export declare const ActivityRow: ({ activity, isMini, onActivityClick, showOrdinal, }: ActivityRowProps) => import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,12 @@
1
+ interface RecurringStatusProps {
2
+ title: string;
3
+ expected: number;
4
+ paid: number;
5
+ missed?: number;
6
+ total: number;
7
+ onNewClick?: () => void;
8
+ }
9
+ export declare const RecurringStatus: (({ title, expected, paid, missed, total, onNewClick, }: RecurringStatusProps) => import("react/jsx-runtime").JSX.Element) & {
10
+ displayName: string;
11
+ };
12
+ export {};
@@ -0,0 +1 @@
1
+ export declare const RecurringTransactions: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ declare const _default: (() => import("react/jsx-runtime").JSX.Element) & {
2
+ displayName: string;
3
+ };
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { PickersDayProps } from '@mui/x-date-pickers/PickersDay';
3
+ declare const _default: React.FunctionComponent<PickersDayProps<Date>>;
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ declare const _default: (() => import("react/jsx-runtime").JSX.Element) & {
2
+ displayName: string;
3
+ };
4
+ export default _default;
@@ -0,0 +1 @@
1
+ export { RecurringTransactionsWidget } from './RecurringTransactionsWidget';
@@ -0,0 +1,33 @@
1
+ import { RepeatingTransactionsApi } from '../api/RepeatingTransactionsApi';
2
+ import { GlobalStore, RepeatingTransaction, Transaction } from '../../common';
3
+ import { Activity } from '../../common/types/RepeatingTransaction';
4
+ export declare class RecurringTransactionsStore {
5
+ globalStore: GlobalStore;
6
+ api: RepeatingTransactionsApi;
7
+ transactions: Transaction[];
8
+ repeatingTransactions: RepeatingTransaction[];
9
+ selectedDay: Date | undefined;
10
+ isDataLoaded: boolean;
11
+ constructor(globalStore: GlobalStore);
12
+ get activities(): Activity[];
13
+ get paidActivities(): Activity[];
14
+ get upcomingActivities(): Activity[];
15
+ get expenses(): Activity[];
16
+ get paidExpenses(): Activity[];
17
+ get missedExpenses(): Activity[];
18
+ get income(): Activity[];
19
+ get paidIncome(): Activity[];
20
+ get upcomingIncome(): Activity[];
21
+ get expenseTotal(): number;
22
+ get paidExpenseTotal(): number;
23
+ get missedExpenseTotal(): number;
24
+ get incomeTotal(): number;
25
+ get paidIncomeTotal(): number;
26
+ get projectedIncome(): number;
27
+ get selectedDayActivities(): Activity[] | undefined;
28
+ setSelectedDay: (day: Date) => void;
29
+ loadRepeatingTransactions: () => Promise<void>;
30
+ addRepeatingTransaction: (transaction: RepeatingTransaction) => Promise<void>;
31
+ deleteRepeatingTransaction: (guid: string) => Promise<void>;
32
+ updateRepeatingTransaction: (transaction: RepeatingTransaction) => Promise<void>;
33
+ }
@@ -0,0 +1,11 @@
1
+ import { Account, RecurringCopy, RepeatingTransaction, Transaction, RecurrenceType } from '../../common';
2
+ import { Activity } from '../../common/types/RepeatingTransaction';
3
+ export type GroupedActivity = {
4
+ activities: Activity[];
5
+ id: string;
6
+ expectedDate: Date;
7
+ };
8
+ export declare const augmentRepeatingTransactions: (accounts: Account[], repeatingTransactions: RepeatingTransaction[], transactions: Transaction[]) => RepeatingTransaction[];
9
+ export declare const buildActivities: (repeatingTransactions: RepeatingTransaction[]) => Activity[];
10
+ export declare const groupAcitivitiesByDate: (activities: Activity[]) => GroupedActivity[];
11
+ export declare const getRecurrence: (copy: RecurringCopy, date: Date | null, type: RecurrenceType) => string;
@@ -81,6 +81,7 @@ export declare class TransactionStore {
81
81
  posted_date?: number | null;
82
82
  reference?: string | null;
83
83
  revision: number;
84
+ repeating_transaction_guid?: string | null;
84
85
  scheduled_payment_guid?: string | null;
85
86
  top_level_category_guid?: string;
86
87
  transaction_type: import('../../common').TransactionType;
@@ -47,6 +47,7 @@ export declare const buildDetailedTransactions: (transactions: Transaction[], ac
47
47
  posted_date?: number | null;
48
48
  reference?: string | null;
49
49
  revision: number;
50
+ repeating_transaction_guid?: string | null;
50
51
  scheduled_payment_guid?: string | null;
51
52
  top_level_category_guid?: string;
52
53
  transaction_type: import('../../common').TransactionType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "6.1.0-alpha.al9",
3
+ "version": "6.1.0-alpha.bb2",
4
4
  "description": "Library containing experience widgets",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,9 +0,0 @@
1
- import { default as React } from 'react';
2
- import { SurveyQuestion } from '../common/types/Analytics';
3
- interface SurveyProps {
4
- onDismiss: () => void;
5
- onSubmit: () => void;
6
- surveyQuestions: SurveyQuestion[];
7
- }
8
- declare const _default: React.FunctionComponent<SurveyProps>;
9
- export default _default;
@@ -1,7 +0,0 @@
1
- import { default as React } from 'react';
2
- interface BudgetsEmptyStateProps {
3
- onConnectAccountsClick: () => void;
4
- createBudgetOnClick: () => void;
5
- }
6
- export declare const BudgetsEmptyState: React.FC<BudgetsEmptyStateProps>;
7
- export {};
@@ -1,39 +0,0 @@
1
- export interface Holding {
2
- account_guid: string;
3
- allocations_cash: number;
4
- allocations_convertible: number;
5
- allocations_foreign_bond: number;
6
- allocations_foreign_stock: number;
7
- allocations_other: number;
8
- allocations_preferred: number;
9
- allocations_unknown: number;
10
- allocations_us_bond: number;
11
- allocations_us_stock: number;
12
- calculated_market_value: number | null;
13
- cost_basis: number;
14
- cost_basis_set_by: number;
15
- daily_change: number;
16
- description: string;
17
- equity_classification: number;
18
- fixed_income_classification: number;
19
- guid: string;
20
- large_core_weight: number;
21
- large_growth_weight: number;
22
- large_value_weight: number;
23
- market_value: number;
24
- metadata: number | string;
25
- mid_core_weight: number;
26
- mid_growth_weight: number;
27
- mid_value_weight: number;
28
- purchase_price: number;
29
- small_core_weight: number;
30
- small_growth_weight: number;
31
- small_value_weight: number;
32
- shares: number;
33
- symbol: string;
34
- unknown_weight: number;
35
- user_guid: string;
36
- cost_basis_updated_at: null | number;
37
- cusip: null | number;
38
- updated_at: number;
39
- }
@@ -1,6 +0,0 @@
1
- import { Fetch } from '../../common';
2
- export declare class HoldingApi {
3
- fetchInstance: Fetch;
4
- constructor(endpoint: string, token: string);
5
- getHoldings: () => Promise<any>;
6
- }
@@ -1,10 +0,0 @@
1
- import { HoldingApi } from '../api/HoldingApi';
2
- import { Holding, GlobalStore } from '../../common';
3
- export declare class HoldingStore {
4
- globalStore: GlobalStore;
5
- api: HoldingApi;
6
- holdings: Holding[];
7
- holdingsLoaded: boolean;
8
- constructor(globalStore: GlobalStore);
9
- loadHoldings: () => Promise<void>;
10
- }