@hubs101/js-api-skd-client 1.0.10624 → 1.0.10626
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 _removeConnection: (basePath: string, token: string, profil
|
|
|
17
17
|
export declare const _pinAttendee: (basePath: string, token: string, attendeeId: string, pinAttendeeId: string) => Promise<APIResponse>;
|
|
18
18
|
export declare const _unpinAttendee: (basePath: string, token: string, attendeeId: string, pinAttendeeId: string) => Promise<APIResponse>;
|
|
19
19
|
export declare const _confirmMyEventInvitation: (basePath: string, token: string, attendeeId: string) => Promise<APIResponse>;
|
|
20
|
-
export declare const _checkIn: (basePath: string, token: string, attendeeId: string) => Promise<
|
|
20
|
+
export declare const _checkIn: (basePath: string, token: string, attendeeId: string) => Promise<AttendeeProfile>;
|
|
21
21
|
export declare const _checkout: (basePath: string, token: string, attendeeId: string) => Promise<APIResponse>;
|
|
22
22
|
export declare const _sendAttendeeOnboardingAnswers: (basePath: string, token: string, attendeeId: string, body: Record<string, string>) => Promise<APIResponse>;
|
|
23
23
|
export declare const _createAttendee: (basePath: string, token: string, eventId: string, type: string, body: Attendee) => Promise<APIResponse>;
|
|
@@ -123,9 +123,10 @@ const _confirmMyEventInvitation = (basePath, token, attendeeId) => __awaiter(voi
|
|
|
123
123
|
});
|
|
124
124
|
exports._confirmMyEventInvitation = _confirmMyEventInvitation;
|
|
125
125
|
const _checkIn = (basePath, token, attendeeId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
126
|
+
var _a;
|
|
126
127
|
const base = (0, base_1.getBasePath)(basePath);
|
|
127
128
|
const response = yield (0, api_1.getRequest)(`${base.ATTENDEES}/${attendeeId}/check-in`, token);
|
|
128
|
-
return response;
|
|
129
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || (response === null || response === void 0 ? void 0 : response.data) || response;
|
|
129
130
|
});
|
|
130
131
|
exports._checkIn = _checkIn;
|
|
131
132
|
const _checkout = (basePath, token, attendeeId) => __awaiter(void 0, void 0, void 0, function* () {
|
package/lib/api/event/index.d.ts
CHANGED
|
@@ -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,
|
|
104
|
+
export declare const _importExhibition: (basePath: string, token: string, eventId: string, eventSource: 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?: {
|
package/lib/api/event/index.js
CHANGED
|
@@ -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,
|
|
571
|
+
const _importExhibition = (basePath, token, eventId, eventSource) => __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
|
-
|
|
574
|
+
event_source: eventSource,
|
|
575
575
|
}, token);
|
|
576
576
|
return response;
|
|
577
577
|
});
|
|
@@ -823,7 +823,7 @@ const _importEventWebsiteContent = (basePath, token, eventId, eventSource, keysL
|
|
|
823
823
|
requestBody.keys_list = keysList;
|
|
824
824
|
}
|
|
825
825
|
const response = yield (0, api_1.postRequestJSON)(`${base.EVENTS}/${eventId}/import/websitecontent`, requestBody, token, { "Content-Type": "application/json" });
|
|
826
|
-
return response === null || response === void 0 ? void 0 : response.data;
|
|
826
|
+
return response || (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/lib/types/base.d.ts
CHANGED
|
@@ -223,7 +223,7 @@ export type BaseAPIType = {
|
|
|
223
223
|
pinAttendee: (basePath: string, token: string, attendeeId: string, pinAttendeeId: string) => Promise<APIResponse>;
|
|
224
224
|
unpinAttendee: (basePath: string, token: string, attendeeId: string, pinAttendeeId: string) => Promise<APIResponse>;
|
|
225
225
|
confirmMyEventInvitation: (basePath: string, token: string, attendeeId: string) => Promise<APIResponse>;
|
|
226
|
-
checkIn: (basePath: string, token: string, attendeeId: string) => Promise<
|
|
226
|
+
checkIn: (basePath: string, token: string, attendeeId: string) => Promise<AttendeeProfile>;
|
|
227
227
|
checkout: (basePath: string, token: string, attendeeId: string) => Promise<APIResponse>;
|
|
228
228
|
sendAttendeeOnboardingAnswers: (basePath: string, token: string, attendeeId: string, body: Record<string, string>) => Promise<APIResponse>;
|
|
229
229
|
createAttendee: (basePath: string, token: string, eventId: string, type: string, body: Attendee) => Promise<APIResponse>;
|
|
@@ -535,7 +535,7 @@ export type EventAPIType = {
|
|
|
535
535
|
pinAttendee: (attendeeId: string, pinAttendeeId: string) => Promise<APIResponse>;
|
|
536
536
|
unpinAttendee: (attendeeId: string, pinAttendeeId: string) => Promise<APIResponse>;
|
|
537
537
|
confirmMyEventInvitation: (attendeeId: string) => Promise<APIResponse>;
|
|
538
|
-
checkIn: (attendeeId: string) => Promise<
|
|
538
|
+
checkIn: (attendeeId: string) => Promise<AttendeeProfile>;
|
|
539
539
|
checkout: (attendeeId: string) => Promise<APIResponse>;
|
|
540
540
|
sendAttendeeOnboardingAnswers: (attendeeId: string, body: Record<string, string>) => Promise<APIResponse>;
|
|
541
541
|
createAttendee: (eventId: string, type: string, body: Attendee) => Promise<APIResponse>;
|