buzzcasting-storage 3.14.3 → 3.14.5

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/README.md CHANGED
@@ -68,7 +68,7 @@ actions = (messageEvent: MessageEvent) => {
68
68
  this.widgetUpdated.emit(messageEvent.data.data)
69
69
  break
70
70
  default:
71
- // console.log('[storage]', messageEvent.data)
71
+ // console.log('[storage]', messageEvent.data)
72
72
  }
73
73
  }
74
74
  ```
@@ -79,7 +79,7 @@ actions = (messageEvent: MessageEvent) => {
79
79
  git clone https://github.com/TouchFlows/buzzcasting-storage.git
80
80
  cd buzzcasting-storage
81
81
  pnpm install
82
- ````
82
+ ```
83
83
 
84
84
  ## Usage
85
85
 
@@ -94,6 +94,10 @@ The project contains the following scripts:
94
94
  - `test:coverage` - Run all tests with code coverage report
95
95
  - `prepare` - Script for setting up husky hooks
96
96
 
97
+ ## Useful Links
98
+
99
+ - [IndexedDB Reference](https://app.studyraid.com/en/read/11356/355143/optimizing-database-schema-design)
100
+
97
101
  ## License
98
102
 
99
103
  This template was created under the [MIT License](LICENSE).
@@ -13,8 +13,10 @@ export declare class BuzzcastingStorageManager {
13
13
  constructor(options: IStorageOptions);
14
14
  addSubscriber(query: IQuery): void;
15
15
  deleteSubscriber(query: IQuery): void;
16
- update: (query: IQuery) => Promise<void>;
16
+ update: (data: any) => Promise<void>;
17
+ apiQuery: (apiQuery: any) => Promise<IprocessResponse>;
17
18
  private processResponse;
19
+ startBroadcastListener: () => void;
18
20
  private broadcastUpdate;
19
21
  hide: (query: IQuery) => void;
20
22
  private actions;
@@ -43,7 +45,7 @@ export declare class BuzzcastingStorageManager {
43
45
  setWidget: (query: IQuery) => Promise<IResponse | undefined>;
44
46
  loadDashboards: (query?: IQuery) => Promise<IResponse | undefined>;
45
47
  getDashboard: (query: IQuery) => Promise<IResponse | undefined>;
46
- getDashboards: (query: IQuery) => Promise<IResponse | undefined>;
48
+ getDashboards: () => Promise<IResponse | undefined>;
47
49
  setDashboard: (query: IQuery) => Promise<IResponse | undefined>;
48
50
  loadImages: (folder: string) => Promise<IResponse | undefined>;
49
51
  storeImage: (imageFile: FormData) => Promise<IResponse | number>;
@@ -75,6 +77,11 @@ export declare class BuzzcastingStorageReader {
75
77
  getSeries: (query: IQuery) => Promise<IResponse>;
76
78
  }
77
79
 
80
+ declare interface IprocessResponse {
81
+ code: number;
82
+ hash: string;
83
+ }
84
+
78
85
  /**
79
86
  * Main class for managing widgets and data updates
80
87
  */
@@ -103,6 +110,8 @@ export declare class Widget {
103
110
  * This takes place when the container indicates it has finished loading (ready)
104
111
  */
105
112
  subscribe(): void;
113
+ setHash(hash: string): void;
114
+ getHash(): string | undefined;
106
115
  /**
107
116
  * Generic call to any query type
108
117
  *