@mx-cartographer/experiences 6.17.0 → 6.17.1-alpha.mega1

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.
@@ -29,6 +29,7 @@ export declare class TransactionStore {
29
29
  constructor(globalStore: GlobalStore);
30
30
  loadTransactionData: () => Promise<void>;
31
31
  get sortedTransactions(): Transaction[];
32
+ get sortedTransactionsWithSplits(): Transaction[];
32
33
  get transactions(): Transaction[];
33
34
  addTag: (name: string) => Promise<void>;
34
35
  addTagging: (tagGuid: string, transactionGuid: string) => Promise<void>;
@@ -1,2 +1,11 @@
1
1
  import { Tag, Transaction } from '../../common';
2
+ /**
3
+ * Combines sorted parent transactions with their split child transactions.
4
+ * Child transactions are sorted by absolute amount in descending order.
5
+ *
6
+ * Removes duplicates based on `guid` because expanded transactions may already
7
+ * be injected into `sortedTransactions`. To avoid duplication during the merge
8
+ * with `allTransactions`, we skip any transactions that have already been included.
9
+ */
10
+ export declare const getSortedTransactionsWithSplits: (sortedTransactions: Transaction[], allTransactions: Transaction[]) => Transaction[];
2
11
  export declare const exportTransactionsToCSV: (transactions: Transaction[], tags: Tag[]) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "6.17.0",
3
+ "version": "6.17.1-alpha.mega1",
4
4
  "description": "Library containing experience widgets",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",
@@ -125,4 +125,4 @@
125
125
  "README.md"
126
126
  ],
127
127
  "packageManager": "yarn@4.9.2"
128
- }
128
+ }