@mx-cartographer/experiences 6.26.8 → 6.26.9-alpha.al0
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/dist/categories/stores/CategoryStore.d.ts +2 -1
- package/dist/categories/util/CategoryUtil.d.ts +7 -1
- package/dist/common/types/Category.d.ts +3 -0
- package/dist/common/types/index.d.ts +1 -1
- package/dist/index.es.js +2711 -2702
- package/dist/index.es.js.map +1 -1
- package/dist/trends/stores/TrendsStore.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Account, CategoryApi, Category, DetailedCategory, DateRangeCategoryTotals, GlobalStore, MonthlyCategoryTotals } from '../../common';
|
|
1
|
+
import { Account, CategoryApi, Category, DetailedCategory, DetailedCategoryWithTransactions, DateRangeCategoryTotals, GlobalStore, MonthlyCategoryTotals } from '../../common';
|
|
2
2
|
import { UiStore } from './UiStore';
|
|
3
3
|
export declare class CategoryStore {
|
|
4
4
|
globalStore: GlobalStore;
|
|
@@ -12,6 +12,7 @@ export declare class CategoryStore {
|
|
|
12
12
|
monthlyTotalsLoaded: boolean;
|
|
13
13
|
constructor(globalStore: GlobalStore);
|
|
14
14
|
get detailedCategories(): DetailedCategory[];
|
|
15
|
+
get detailedCategoriesWithTransactions(): DetailedCategoryWithTransactions[];
|
|
15
16
|
get incomeCategories(): DetailedCategory[];
|
|
16
17
|
get spendCategories(): DetailedCategory[];
|
|
17
18
|
get transferCategories(): DetailedCategory[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Theme } from '@mui/material';
|
|
2
|
-
import { Category, DateRangeCategoryTotals, DetailedCategory, MonthlyCategoryTotals } from '../../common';
|
|
2
|
+
import { Category, DateRangeCategoryTotals, DetailedCategory, MonthlyCategoryTotals, Transaction, DetailedCategoryWithTransactions } from '../../common';
|
|
3
3
|
/**
|
|
4
4
|
* Augment categories
|
|
5
5
|
* @param categories - Categories to augment
|
|
@@ -9,3 +9,9 @@ import { Category, DateRangeCategoryTotals, DetailedCategory, MonthlyCategoryTot
|
|
|
9
9
|
export declare const augmentCategories: (categories: Category[], currentCategoryTotals: DateRangeCategoryTotals[], monthlyCategoryTotals: MonthlyCategoryTotals[]) => DetailedCategory[];
|
|
10
10
|
export declare const getCategoryColor: (guid: string, theme: Theme) => string;
|
|
11
11
|
export declare const getCategoryIcon: (guid: string) => string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* get the transactions belonging to parent categories
|
|
14
|
+
* @param detailedCategories - detailed categories from the category store
|
|
15
|
+
* @param transactions - sortedTransactions from the transaction store
|
|
16
|
+
*/
|
|
17
|
+
export declare const getDetailedCategoryTransactions: (detailedCategories: DetailedCategory[], transactions: Transaction[]) => DetailedCategoryWithTransactions[];
|
|
@@ -55,6 +55,9 @@ export interface DetailedCategory extends Category {
|
|
|
55
55
|
totalAverageAmount: number;
|
|
56
56
|
totalMonthlyAmounts: MonthlyAmount[];
|
|
57
57
|
}
|
|
58
|
+
export interface DetailedCategoryWithTransactions extends DetailedCategory {
|
|
59
|
+
transactions: Transaction[];
|
|
60
|
+
}
|
|
58
61
|
export interface CategoryListItem {
|
|
59
62
|
guid: string;
|
|
60
63
|
name: string;
|
|
@@ -6,7 +6,7 @@ export type { Beat, DataSeries } from './Beat';
|
|
|
6
6
|
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
|
-
export type { Category, CategoryListItem, CategoryTotal, DateRangeCategoryTotals, DetailedCategory, MonthlyAmount, MonthlyCategoryTotals, } from './Category';
|
|
9
|
+
export type { Category, CategoryListItem, CategoryTotal, DateRangeCategoryTotals, DetailedCategory, DetailedCategoryWithTransactions, MonthlyAmount, MonthlyCategoryTotals, } from './Category';
|
|
10
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';
|