@mx-cartographer/experiences 5.3.3 → 6.0.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.
@@ -1,9 +1,10 @@
1
1
  import { BeatApi } from '../../common/api/BeatApi';
2
2
  import { Beat } from '../../common/types/Beat';
3
+ import { GlobalStore } from '../../common';
3
4
  export declare class BeatStore {
4
- beats: Beat[];
5
+ globalStore: GlobalStore;
5
6
  api: BeatApi;
6
- constructor();
7
- initialize: (endpoint: string, token: string) => Promise<void>;
7
+ beats: Beat[];
8
+ constructor(globalStore: GlobalStore);
8
9
  loadBeats: () => Promise<void>;
9
10
  }
@@ -1,15 +1,15 @@
1
1
  import { MerchantApi } from '../api/MerchantApi';
2
- import { Merchant } from '../../common';
2
+ import { GlobalStore, Merchant } from '../../common';
3
3
  export interface CopyObject {
4
4
  [key: string]: string;
5
5
  }
6
6
  export declare class MerchantStore {
7
+ globalStore: GlobalStore;
7
8
  api: MerchantApi;
8
9
  merchant: Merchant | null;
9
10
  merchants: Merchant[];
10
11
  isLoading: boolean;
11
- constructor();
12
- initialize: (endpoint: string, token: string) => Promise<void>;
12
+ constructor(globalStore: GlobalStore);
13
13
  loadMerchants: (searchValue?: string) => Promise<void>;
14
14
  loadMerchantByGuid: (guid: string) => Promise<void>;
15
15
  }
@@ -1,10 +1,11 @@
1
- import { NotificationApi, Notification } from '../../common';
1
+ import { NotificationApi, Notification, GlobalStore } from '../../common';
2
2
  export declare class NotificationStore {
3
+ globalStore: GlobalStore;
3
4
  api: NotificationApi;
4
5
  isLoading: boolean;
5
6
  notifications: Notification[];
6
7
  recentNotifications: Notification[];
7
- constructor();
8
+ constructor(globalStore: GlobalStore);
8
9
  initialize: (endpoint: string, token: string) => Promise<void>;
9
10
  get newNotifications(): Notification[];
10
11
  loadNotifications: () => Promise<void>;
@@ -11,10 +11,10 @@ export type TransactionFilter = {
11
11
  searchTerm?: string;
12
12
  };
13
13
  export declare class TransactionStore {
14
- api: TransactionApi;
15
- beatApi: BeatApi;
16
14
  globalStore: GlobalStore;
17
15
  uiStore: UiStore;
16
+ api: TransactionApi;
17
+ beatApi: BeatApi;
18
18
  isLoading: boolean;
19
19
  taggings: Tagging[];
20
20
  tags: Tag[];
@@ -22,12 +22,13 @@ export declare class TransactionStore {
22
22
  transactions: Transaction[];
23
23
  associatedBeats: Beat[];
24
24
  cachedStartDate: Date;
25
- onAnalyticEvent: (event: string, session: import('../analytics').AnalyticSession | null) => Promise<any>;
26
25
  sortColumn: string;
27
26
  sortDirection: string;
28
27
  filter: TransactionFilter;
28
+ onAnalyticEvent: (event: string, session: import('../analytics').AnalyticSession | null) => Promise<any>;
29
29
  constructor(globalStore: GlobalStore);
30
30
  initialize: (endpoint: string, token: string) => Promise<void>;
31
+ loadTransactionData: () => Promise<void>;
31
32
  get sortedTransactions(): Transaction[];
32
33
  addTag: (name: string) => Promise<void>;
33
34
  addTagging: (tagGuid: string, transactionGuid: string) => Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "5.3.3",
3
+ "version": "6.0.0-alpha.bb2",
4
4
  "description": "Library containing experience widgets",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",