@hubs101/js-api-skd-client 1.0.10613 → 1.0.10614
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/lib/api/event/index.d.ts +1 -1
- package/lib/api/event/index.js +8 -2
- package/lib/index.js +2 -2
- package/lib/types/base.d.ts +2 -2
- package/package.json +1 -1
package/lib/api/event/index.d.ts
CHANGED
|
@@ -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[]>;
|
package/lib/api/event/index.js
CHANGED
|
@@ -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
|
|
819
|
+
const requestBody = {
|
|
820
|
+
event_source: 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);
|
package/lib/types/base.d.ts
CHANGED
|
@@ -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>;
|