@hubs101/js-api-skd-client 1.0.10311 → 1.0.10313

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.
@@ -136,6 +136,10 @@ export type AttendeeProfile = Attendee & {
136
136
  dinner?: number;
137
137
  icebreaker?: number;
138
138
  };
139
+ booking_answers: {
140
+ answers: AnswersType[];
141
+ count: number;
142
+ };
139
143
  };
140
144
  export type Speaker = Attendee & {
141
145
  priority: number;
@@ -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[]>;
@@ -611,10 +611,10 @@ export type BookingDetails = {
611
611
  date: string;
612
612
  };
613
613
  booking_answers: {
614
- answers: any[];
614
+ answers: AnswersType[];
615
615
  count: number;
616
616
  };
617
- booking_questions: any[];
617
+ booking_questions: BookingQuestion[];
618
618
  event: {
619
619
  end_date: string;
620
620
  id: string;
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.10311",
3
+ "version": "1.0.10313",
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; npm run build && git commit -m \"update api\" -a --no-verify; npm version patch && npm publish"
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",