@hubs101/js-api-skd-client 1.0.10613 → 1.0.10615

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?: {
@@ -160,7 +160,7 @@ export declare const _updateStatistic: (basePath: string, token: string, eventId
160
160
  export declare const _createKeyTopic: (basePath: string, token: string, eventId: string, data: KeyTopicInput, files?: any) => Promise<KeyTopicResponse>;
161
161
  export declare const _updateKeyTopic: (basePath: string, token: string, eventId: string, keyTopicId: string, data: KeyTopicInput) => Promise<KeyTopicResponse>;
162
162
  export declare const _importTickets: (basePath: string, token: string, eventId: string, ticketsList: string[]) => Promise<ResponsePaginationType<TicketServerResponse>>;
163
- export declare const _importEventWebsiteContent: (basePath: string, token: string, eventId: string, eventSource: string) => Promise<APIResponse>;
163
+ export declare const _importEventWebsiteContent: (basePath: string, token: string, eventId: string, eventSource: string, keysList?: string[]) => Promise<APIResponse>;
164
164
  export declare const _fetchPublicEventAdvertisement: (basePath: string, eventId: string) => Promise<GenericResponseServerType<PublicAdResponse[]>>;
165
165
  export declare const _activateDataManagers: (basePath: string, token: string, eventId: string, attendeeIds: string[]) => Promise<Attendee[]>;
166
166
  export declare const _deactivateDataManagers: (basePath: string, token: string, eventId: string, attendeeIds: string[]) => Promise<Attendee[]>;
@@ -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
  });
@@ -814,9 +814,15 @@ const _importTickets = (basePath, token, eventId, ticketsList) => __awaiter(void
814
814
  return response;
815
815
  });
816
816
  exports._importTickets = _importTickets;
817
- const _importEventWebsiteContent = (basePath, token, eventId, eventSource) => __awaiter(void 0, void 0, void 0, function* () {
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
- const response = yield (0, api_1.postRequestWE)(`${base.EVENTS}/${eventId}/import/websitecontent`, { event_source: eventSource }, token);
819
+ const requestBody = {
820
+ source_event: eventSource,
821
+ };
822
+ if (keysList && keysList.length > 0) {
823
+ requestBody.keys_list = keysList.join(",");
824
+ }
825
+ const response = yield (0, api_1.postRequestWE)(`${base.EVENTS}/${eventId}/import/websitecontent`, requestBody, token);
820
826
  return response;
821
827
  });
822
828
  exports._importEventWebsiteContent = _importEventWebsiteContent;
package/lib/index.js CHANGED
@@ -976,9 +976,9 @@ function EventAPIProvider(props) {
976
976
  (0, api_1.validateConfig)(config);
977
977
  return (0, event_1._importExhibition)(config.baseUrl, config.token, eventId, eventSource);
978
978
  }), [config, config.baseUrl, config.token]);
979
- const importEventWebsiteContent = (0, react_1.useCallback)((eventId, eventSource) => __awaiter(this, void 0, void 0, function* () {
979
+ const importEventWebsiteContent = (0, react_1.useCallback)((eventId, eventSource, keysList) => __awaiter(this, void 0, void 0, function* () {
980
980
  (0, api_1.validateConfig)(config);
981
- return yield (0, event_1._importEventWebsiteContent)(config.baseUrl, config.token, eventId, eventSource);
981
+ return yield (0, event_1._importEventWebsiteContent)(config.baseUrl, config.token, eventId, eventSource, keysList);
982
982
  }), [config, config.baseUrl, config.token]);
983
983
  const updateExhibition = react_1.default.useCallback((exhibitionId, files, data) => __awaiter(this, void 0, void 0, function* () {
984
984
  (0, api_1.validateConfig)(config);
@@ -189,7 +189,7 @@ export type BaseAPIType = {
189
189
  updateSpeakerRole: (basePath: string, token: string, attendeeId: string, data: any) => Promise<any>;
190
190
  deleteSpeakerRole: (basePath: string, token: string, attendeeId: string) => Promise<any>;
191
191
  importAgenda: (basePath: string, token: string, eventId: string, eventSource: string) => Promise<any>;
192
- importEventWebsiteContent: (basePath: string, token: string, eventId: string, eventSource: string) => Promise<APIResponse>;
192
+ importEventWebsiteContent: (basePath: string, token: string, eventId: string, eventSource: string, keysList?: string[]) => Promise<APIResponse>;
193
193
  fetchAttendeesAvailabilities: (basePath: string, token: string, eventId: string, date: string) => Promise<any>;
194
194
  updateEventTemplates: (basePath: string, token: string, templateId: string, eventId: string, data: any) => Promise<any>;
195
195
  fetchEventNotifications: (basePath: string, token: string, eventId: string) => Promise<any>;
@@ -501,7 +501,7 @@ export type EventAPIType = {
501
501
  updateSpeakerRole: (attendeeId: string, data: any) => Promise<any>;
502
502
  deleteSpeakerRole: (attendeeId: string) => Promise<any>;
503
503
  importAgenda: (eventId: string, eventSource: string) => Promise<any>;
504
- importEventWebsiteContent: (eventId: string, eventSource: string) => Promise<APIResponse>;
504
+ importEventWebsiteContent: (eventId: string, eventSource: string, keysList?: string[]) => Promise<APIResponse>;
505
505
  fetchAttendeesAvailabilities: (eventId: string, date: string) => Promise<any>;
506
506
  updateEventTemplates: (templateId: string, eventId: string, data: any) => Promise<any>;
507
507
  fetchEventNotifications: (eventId: string) => Promise<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubs101/js-api-skd-client",
3
- "version": "1.0.10613",
3
+ "version": "1.0.10615",
4
4
  "author": "Liveware",
5
5
  "scripts": {
6
6
  "test": "jest --config jestconfig.json",