@hubs101/js-api-skd-client 1.0.10313 → 1.0.10314
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 +1 -1
- package/lib/api/event/index.d.ts +1 -3
- package/lib/index.js +1 -1
- package/lib/types/base.d.ts +2 -6
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ Accessing API via stateless interface:
|
|
|
20
20
|
|
|
21
21
|
## Creating new release
|
|
22
22
|
|
|
23
|
-
1. Commit al changes to git
|
|
23
|
+
1. Commit al changes to git
|
|
24
24
|
2. Prepare build: `npm run build`
|
|
25
25
|
3. Create new patch version run: `npm version patch`
|
|
26
26
|
4. Publish package to NPM: `npm publish`
|
package/lib/api/event/index.d.ts
CHANGED
|
@@ -83,9 +83,7 @@ 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<
|
|
87
|
-
data: Stream;
|
|
88
|
-
}>;
|
|
86
|
+
export declare const _updateStream: (basePath: string, token: string, streamId: string, data: StreamInput) => Promise<Stream>;
|
|
89
87
|
export declare const _deleteStream: (basePath: string, token: string, streamId: string) => Promise<Response>;
|
|
90
88
|
export declare const _fetchAllExhibitions: (basePath: string, token: string, eventId: string) => Promise<Exhibition[]>;
|
|
91
89
|
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 =
|
|
771
|
+
const updateStream = react_1.default.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]);
|
package/lib/types/base.d.ts
CHANGED
|
@@ -256,9 +256,7 @@ 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<
|
|
260
|
-
data: Stream;
|
|
261
|
-
}>;
|
|
259
|
+
updateStream: (basePath: string, token: string, streamId: string, data: StreamInput) => Promise<Stream>;
|
|
262
260
|
deleteStream: (basePath: string, token: string, streamId: string) => Promise<Response>;
|
|
263
261
|
fetchAllExhibitions: (basePath: string, token: string, eventId: string) => Promise<Exhibition[]>;
|
|
264
262
|
fetchMyExhibitions: (basePath: string, token: string) => Promise<Exhibition[]>;
|
|
@@ -461,9 +459,7 @@ export type EventAPIType = {
|
|
|
461
459
|
fetchZoomContent: (body: ZoomParams) => Promise<string>;
|
|
462
460
|
fetchYoutubeContent: (reference: string) => Promise<string>;
|
|
463
461
|
createStream: (data: StreamInput) => Promise<Stream>;
|
|
464
|
-
updateStream: (streamId: string, data: StreamInput) => Promise<
|
|
465
|
-
data: Stream;
|
|
466
|
-
}>;
|
|
462
|
+
updateStream: (streamId: string, data: StreamInput) => Promise<Stream>;
|
|
467
463
|
deleteStream: (streamId: string) => Promise<Response>;
|
|
468
464
|
fetchAllExhibitions: (eventId: string) => Promise<Exhibition[]>;
|
|
469
465
|
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.
|
|
3
|
+
"version": "1.0.10314",
|
|
4
4
|
"author": "Liveware",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "jest --config jestconfig.json",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"preversion": "npm run lint",
|
|
13
13
|
"version": "npm run format && git add -A src",
|
|
14
14
|
"postversion": "git push && git push --tags",
|
|
15
|
-
"new-version": "git pull
|
|
15
|
+
"new-version": "git pull ; npm run build && git commit -m \"update api\" -a --no-verify && npm version patch && npm publish"
|
|
16
16
|
},
|
|
17
17
|
"meta": {},
|
|
18
18
|
"description": "Package for easy access to Event App API",
|