@hubs101/js-api-skd-client 1.0.10614 → 1.0.10616

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.
@@ -17,7 +17,7 @@ export declare const _fetchEventNotifications: (basePath: string, token: string,
17
17
  export declare const _fetchEventTemplates: (basePath: string, token: string, eventId: string) => Promise<any>;
18
18
  export declare const _updateEventTemplates: (basePath: string, token: string, templateId: string, eventId: string, data: any) => Promise<any>;
19
19
  export declare const _fetchAttendeesAvailabilities: (basePath: string, token: string, eventId: string, date: string) => Promise<any>;
20
- export declare const _importAgenda: (basePath: string, token: string, eventId: string, eventSource: string) => Promise<any>;
20
+ export declare const _importAgenda: (basePath: string, token: string, eventId: string, sourceEvent: string) => Promise<any>;
21
21
  export declare const _createGroup: (basePath: string, token: string, data: any) => Promise<any>;
22
22
  export declare const _updateGroup: (basePath: string, token: string, groupId: string, data: any) => Promise<any>;
23
23
  export declare const _updateSpeakerRole: (basePath: string, token: string, attendeeId: string, data: any) => Promise<any>;
@@ -101,7 +101,7 @@ export declare const _deleteStream: (basePath: string, token: string, streamId:
101
101
  export declare const _fetchAllExhibitions: (basePath: string, token: string, eventId: string) => Promise<Exhibition[]>;
102
102
  export declare const _fetchMyExhibitions: (basePath: string, token: string) => Promise<Exhibition[]>;
103
103
  export declare const _createExhibition: (basePath: string, token: string, files: any, data: ExhibitionInput) => Promise<Exhibition>;
104
- export declare const _importExhibition: (basePath: string, token: string, eventId: string, eventSource: string) => Promise<APIResponse>;
104
+ export declare const _importExhibition: (basePath: string, token: string, eventId: string, sourceEvent: string) => Promise<APIResponse>;
105
105
  export declare const _updateExhibition: (basePath: string, token: string, exhibitionId: string, files: any, data: ExhibitionInput) => Promise<Exhibition>;
106
106
  export declare const _deleteExhibition: (basePath: string, token: string, exhibitionId: string) => Promise<APIResponse>;
107
107
  export declare const _createOffer: (basePath: string, token: string, accountId: string, data: CreateOfferInput, files?: {
@@ -88,9 +88,9 @@ const _fetchAttendeesAvailabilities = (basePath, token, eventId, date) => __awai
88
88
  return response;
89
89
  });
90
90
  exports._fetchAttendeesAvailabilities = _fetchAttendeesAvailabilities;
91
- const _importAgenda = (basePath, token, eventId, eventSource) => __awaiter(void 0, void 0, void 0, function* () {
91
+ const _importAgenda = (basePath, token, eventId, sourceEvent) => __awaiter(void 0, void 0, void 0, function* () {
92
92
  const base = (0, base_1.getBasePath)(basePath);
93
- const response = yield (0, api_1.postRequestWE)(`${base.EVENTS}/${eventId}/import/agenda`, { event_source: eventSource }, token);
93
+ const response = yield (0, api_1.postRequestWE)(`${base.EVENTS}/${eventId}/import/agenda`, { source_event: sourceEvent }, token);
94
94
  return response;
95
95
  });
96
96
  exports._importAgenda = _importAgenda;
@@ -568,10 +568,10 @@ const _createExhibition = (basePath, token, files, data) => __awaiter(void 0, vo
568
568
  return (exhibition === null || exhibition === void 0 ? void 0 : exhibition.data) || exhibition;
569
569
  });
570
570
  exports._createExhibition = _createExhibition;
571
- const _importExhibition = (basePath, token, eventId, eventSource) => __awaiter(void 0, void 0, void 0, function* () {
571
+ const _importExhibition = (basePath, token, eventId, sourceEvent) => __awaiter(void 0, void 0, void 0, function* () {
572
572
  const base = (0, base_1.getBasePath)(basePath);
573
573
  const response = yield (0, api_1.postRequest)(`${base.EVENTS}/${eventId}/import/exhibitions`, {
574
- event_source: eventSource,
574
+ source_event: sourceEvent,
575
575
  }, token);
576
576
  return response;
577
577
  });
@@ -817,13 +817,13 @@ exports._importTickets = _importTickets;
817
817
  const _importEventWebsiteContent = (basePath, token, eventId, eventSource, keysList) => __awaiter(void 0, void 0, void 0, function* () {
818
818
  const base = (0, base_1.getBasePath)(basePath);
819
819
  const requestBody = {
820
- event_source: eventSource,
820
+ source_event: eventSource,
821
821
  };
822
822
  if (keysList && keysList.length > 0) {
823
- requestBody.keys_list = keysList.join(",");
823
+ requestBody.keys_list = `[${keysList.join(",")}]`;
824
824
  }
825
- const response = yield (0, api_1.postRequestWE)(`${base.EVENTS}/${eventId}/import/websitecontent`, requestBody, token);
826
- return response;
825
+ const response = yield (0, api_1.postRequest)(`${base.EVENTS}/${eventId}/import/websitecontent`, requestBody, token);
826
+ return response === null || response === void 0 ? void 0 : response.data;
827
827
  });
828
828
  exports._importEventWebsiteContent = _importEventWebsiteContent;
829
829
  const _fetchPublicEventAdvertisement = (basePath, eventId) => __awaiter(void 0, void 0, void 0, function* () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubs101/js-api-skd-client",
3
- "version": "1.0.10614",
3
+ "version": "1.0.10616",
4
4
  "author": "Liveware",
5
5
  "scripts": {
6
6
  "test": "jest --config jestconfig.json",