@hubs101/js-api-skd-client 1.0.10625 → 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<APIResponse>;
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* () {
@@ -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<APIResponse>;
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<APIResponse>;
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>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubs101/js-api-skd-client",
3
- "version": "1.0.10625",
3
+ "version": "1.0.10626",
4
4
  "author": "Liveware",
5
5
  "scripts": {
6
6
  "test": "jest --config jestconfig.json",