@hubs101/js-api-skd-client 1.0.10314 → 1.0.10315

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.
@@ -282,12 +282,20 @@ export type Note = {
282
282
  message: string;
283
283
  reference: string;
284
284
  event: string;
285
- detail: unknown;
285
+ detail: {
286
+ title: string;
287
+ subtitle: string;
288
+ url: string;
289
+ };
286
290
  updateDate: string;
287
291
  };
288
292
  export type NoteUpdateInput = {
289
293
  message: string;
290
- detail?: unknown;
294
+ detail?: {
295
+ title: string;
296
+ subtitle: string;
297
+ url: string;
298
+ };
291
299
  };
292
300
  export type NoteInput = {
293
301
  type: NOTE_TYPE;
@@ -83,7 +83,9 @@ export declare const _createEvent: (basePath: string, token: string, data: any,
83
83
  export declare const _fetchZoomContent: (basePath: string, token: string, body: ZoomParams) => Promise<string>;
84
84
  export declare const _fetchYoutubeContent: (basePath: string, token: string, reference: string) => Promise<string>;
85
85
  export declare const _createStream: (basePath: string, token: string, data: StreamInput) => Promise<Stream>;
86
- export declare const _updateStream: (basePath: string, token: string, streamId: string, data: StreamInput) => Promise<Stream>;
86
+ export declare const _updateStream: (basePath: string, token: string, streamId: string, data: StreamInput) => Promise<{
87
+ data: Stream;
88
+ }>;
87
89
  export declare const _deleteStream: (basePath: string, token: string, streamId: string) => Promise<Response>;
88
90
  export declare const _fetchAllExhibitions: (basePath: string, token: string, eventId: string) => Promise<Exhibition[]>;
89
91
  export declare const _fetchMyExhibitions: (basePath: string, token: string) => Promise<Exhibition[]>;
package/lib/index.js CHANGED
@@ -768,7 +768,7 @@ function EventAPIProvider(props) {
768
768
  (0, api_1.validateConfig)(config);
769
769
  return (0, event_1._createStream)(config.baseUrl, config.token, data);
770
770
  }), [config, config.baseUrl, config.token]);
771
- const updateStream = react_1.default.useCallback((streamId, data) => __awaiter(this, void 0, void 0, function* () {
771
+ const updateStream = (0, react_1.useCallback)((streamId, data) => __awaiter(this, void 0, void 0, function* () {
772
772
  (0, api_1.validateConfig)(config);
773
773
  return (0, event_1._updateStream)(config.baseUrl, config.token, streamId, data);
774
774
  }), [config, config.baseUrl, config.token]);
@@ -256,7 +256,9 @@ export type BaseAPIType = {
256
256
  fetchZoomContent: (basePath: string, token: string, body: ZoomParams) => Promise<string>;
257
257
  fetchYoutubeContent: (basePath: string, token: string, reference: string) => Promise<string>;
258
258
  createStream: (basePath: string, token: string, data: StreamInput) => Promise<Stream>;
259
- updateStream: (basePath: string, token: string, streamId: string, data: StreamInput) => Promise<Stream>;
259
+ updateStream: (basePath: string, token: string, streamId: string, data: StreamInput) => Promise<{
260
+ data: Stream;
261
+ }>;
260
262
  deleteStream: (basePath: string, token: string, streamId: string) => Promise<Response>;
261
263
  fetchAllExhibitions: (basePath: string, token: string, eventId: string) => Promise<Exhibition[]>;
262
264
  fetchMyExhibitions: (basePath: string, token: string) => Promise<Exhibition[]>;
@@ -459,7 +461,9 @@ export type EventAPIType = {
459
461
  fetchZoomContent: (body: ZoomParams) => Promise<string>;
460
462
  fetchYoutubeContent: (reference: string) => Promise<string>;
461
463
  createStream: (data: StreamInput) => Promise<Stream>;
462
- updateStream: (streamId: string, data: StreamInput) => Promise<Stream>;
464
+ updateStream: (streamId: string, data: StreamInput) => Promise<{
465
+ data: Stream;
466
+ }>;
463
467
  deleteStream: (streamId: string) => Promise<Response>;
464
468
  fetchAllExhibitions: (eventId: string) => Promise<Exhibition[]>;
465
469
  fetchMyExhibitions: () => Promise<Exhibition[]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubs101/js-api-skd-client",
3
- "version": "1.0.10314",
3
+ "version": "1.0.10315",
4
4
  "author": "Liveware",
5
5
  "scripts": {
6
6
  "test": "jest --config jestconfig.json",
@@ -27,6 +27,7 @@
27
27
  ],
28
28
  "license": "ISC",
29
29
  "dependencies": {
30
+ "@hubs101/js-api-skd-client": "^1.0.10314",
30
31
  "@types/react": "*",
31
32
  "react": "^18.2.0"
32
33
  },