@hubs101/js-api-skd-client 1.0.10545 → 1.0.10546

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.
@@ -3,6 +3,7 @@ import { APIResponse } from "../../types/base";
3
3
  import { AttendeeReport } from "../types";
4
4
  export declare const _fetchAttendeeProfile: (basePath: string, token: string, attendeeId: string) => Promise<AttendeeProfile>;
5
5
  export declare const _fetchAttendees: (basePath: string, token: string, eventId: string) => Promise<AttendeeProfile[]>;
6
+ export declare const _fetchColocatedAttendees: (basePath: string, eventId: string) => Promise<AttendeeProfile[]>;
6
7
  export declare const _fetchMyUser: (basePath: string, token: string) => Promise<AttendeeProfile>;
7
8
  export declare const _updateAttendeeImage: (basePath: string, token: string, file: any, param: string, attendeeId: string) => Promise<AttendeeProfile>;
8
9
  export declare const _updateAttendeeImageNative: (basePath: string, token: string, file: any, param: string, attendeeId: string) => Promise<AttendeeProfile>;
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports._fetchAttendeeDetails = exports._updateVisibilityAttendee = exports._showAttendee = exports._hideAttendee = exports._resendWelcomeEmail = exports._addOnsiteAttendee = exports._removeOnsiteAttendee = exports._checkAvailabilityAttendee = exports._resendConfirmationEmail = exports._confirmAttendee = exports._deleteAllUserNotifications = exports._deleteUserNotification = exports._markUserNotificationAsRead = exports._fetchUserNotifications = exports._deleteNote = exports._updateNote = exports._createNote = exports._fetchMyNotes = exports._reportAttendeeAction = exports._importProfileFromLinkedIn = exports._createAttendee = exports._sendAttendeeOnboardingAnswers = exports._checkout = exports._checkIn = exports._confirmMyEventInvitation = exports._unpinAttendee = exports._pinAttendee = exports._removeConnection = exports._addConnection = exports._fetchMyConnections = exports._updateGlobalAttendee = exports._updateGlobalAttendeeImageNative = exports._updateGlobalAttendeeImage = exports._updateAttendee = exports._updateAttendeeImageNative = exports._updateAttendeeImage = exports._fetchMyUser = exports._fetchAttendees = exports._fetchAttendeeProfile = void 0;
12
+ exports._fetchAttendeeDetails = exports._updateVisibilityAttendee = exports._showAttendee = exports._hideAttendee = exports._resendWelcomeEmail = exports._addOnsiteAttendee = exports._removeOnsiteAttendee = exports._checkAvailabilityAttendee = exports._resendConfirmationEmail = exports._confirmAttendee = exports._deleteAllUserNotifications = exports._deleteUserNotification = exports._markUserNotificationAsRead = exports._fetchUserNotifications = exports._deleteNote = exports._updateNote = exports._createNote = exports._fetchMyNotes = exports._reportAttendeeAction = exports._importProfileFromLinkedIn = exports._createAttendee = exports._sendAttendeeOnboardingAnswers = exports._checkout = exports._checkIn = exports._confirmMyEventInvitation = exports._unpinAttendee = exports._pinAttendee = exports._removeConnection = exports._addConnection = exports._fetchMyConnections = exports._updateGlobalAttendee = exports._updateGlobalAttendeeImageNative = exports._updateGlobalAttendeeImage = exports._updateAttendee = exports._updateAttendeeImageNative = exports._updateAttendeeImage = exports._fetchMyUser = exports._fetchColocatedAttendees = exports._fetchAttendees = exports._fetchAttendeeProfile = void 0;
13
13
  const api_1 = require("../../utils/api");
14
14
  const base_1 = require("../../utils/base");
15
15
  const _fetchAttendeeProfile = (basePath, token, attendeeId) => __awaiter(void 0, void 0, void 0, function* () {
@@ -25,6 +25,13 @@ const _fetchAttendees = (basePath, token, eventId) => __awaiter(void 0, void 0,
25
25
  return ((_a = attendees === null || attendees === void 0 ? void 0 : attendees.data) === null || _a === void 0 ? void 0 : _a.data) || (attendees === null || attendees === void 0 ? void 0 : attendees.data) || attendees;
26
26
  });
27
27
  exports._fetchAttendees = _fetchAttendees;
28
+ const _fetchColocatedAttendees = (basePath, eventId) => __awaiter(void 0, void 0, void 0, function* () {
29
+ var _a;
30
+ const base = (0, base_1.getBasePath)(basePath);
31
+ const attendees = yield (0, api_1.getRequest)(`${base.PUBLIC_EVENTS}/${eventId}/colocated-attendees`);
32
+ return ((_a = attendees === null || attendees === void 0 ? void 0 : attendees.data) === null || _a === void 0 ? void 0 : _a.data) || (attendees === null || attendees === void 0 ? void 0 : attendees.data) || attendees;
33
+ });
34
+ exports._fetchColocatedAttendees = _fetchColocatedAttendees;
28
35
  const _fetchMyUser = (basePath, token) => __awaiter(void 0, void 0, void 0, function* () {
29
36
  const base = (0, base_1.getBasePath)(basePath);
30
37
  const user = yield (0, api_1.getRequest)(`${base.PROFILE}`, token);
package/lib/index.js CHANGED
@@ -567,6 +567,10 @@ function EventAPIProvider(props) {
567
567
  (0, api_1.validateConfig)(config);
568
568
  return (0, attendee_1._fetchAttendees)(config.baseUrl, config.token, eventId);
569
569
  }), [config, config.baseUrl, config.token]);
570
+ const fetchColocatedAttendees = react_1.default.useCallback((eventId) => __awaiter(this, void 0, void 0, function* () {
571
+ (0, api_1.validateConfig)(config);
572
+ return (0, attendee_1._fetchColocatedAttendees)(config.baseUrl, eventId);
573
+ }), [config, config.baseUrl]);
570
574
  const fetchMyUser = react_1.default.useCallback(() => __awaiter(this, void 0, void 0, function* () {
571
575
  (0, api_1.validateConfig)(config);
572
576
  return (0, attendee_1._fetchMyUser)(config.baseUrl, config.token);
@@ -1151,6 +1155,7 @@ function EventAPIProvider(props) {
1151
1155
  unassignPaymentAccount,
1152
1156
  fetchAttendeeProfile,
1153
1157
  fetchAttendees,
1158
+ fetchColocatedAttendees,
1154
1159
  fetchMyUser,
1155
1160
  updateAttendeeImage,
1156
1161
  updateAttendee,
@@ -1388,6 +1393,7 @@ exports.BaseAPI = {
1388
1393
  unassignPaymentAccount: event_1._unassignPaymentAccount,
1389
1394
  fetchAttendeeProfile: attendee_1._fetchAttendeeProfile,
1390
1395
  fetchAttendees: attendee_1._fetchAttendees,
1396
+ fetchColocatedAttendees: attendee_1._fetchColocatedAttendees,
1391
1397
  fetchMyUser: attendee_1._fetchMyUser,
1392
1398
  updateAttendeeImage: attendee_1._updateAttendeeImage,
1393
1399
  updateAttendee: attendee_1._updateAttendee,
@@ -194,6 +194,7 @@ export type BaseAPIType = {
194
194
  unassignPaymentAccount: (basePath: string, token: string, eventId: string, paymentAccountId: string) => Promise<any>;
195
195
  fetchAttendeeProfile: (basePath: string, token: string, attendeeId: string) => Promise<AttendeeProfile>;
196
196
  fetchAttendees: (basePath: string, token: string, eventId: string) => Promise<AttendeeProfile[]>;
197
+ fetchColocatedAttendees: (basePath: string, eventId: string) => Promise<AttendeeProfile[]>;
197
198
  fetchMyUser: (basePath: string, token: string) => Promise<AttendeeProfile>;
198
199
  updateAttendeeImage: (basePath: string, token: string, file: any, param: string, attendeeId: string) => Promise<AttendeeProfile>;
199
200
  updateAttendeeImageNative: (basePath: string, token: string, file: any, param: string, attendeeId: string) => Promise<AttendeeProfile>;
@@ -464,6 +465,7 @@ export type EventAPIType = {
464
465
  fetchEventOptions: (eventId: string) => Promise<OptionServerResponse[]>;
465
466
  fetchAttendeeProfile: (attendeeId: string) => Promise<AttendeeProfile>;
466
467
  fetchAttendees: (eventId: string) => Promise<AttendeeProfile[]>;
468
+ fetchColocatedAttendees: (eventId: string) => Promise<AttendeeProfile[]>;
467
469
  fetchMyUser: () => Promise<AttendeeProfile>;
468
470
  updateAttendeeImage: (file: any, param: string, attendeeId: string) => Promise<AttendeeProfile>;
469
471
  updateAttendeeImageNative: (file: any, param: string, attendeeId: string) => Promise<AttendeeProfile>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubs101/js-api-skd-client",
3
- "version": "1.0.10545",
3
+ "version": "1.0.10546",
4
4
  "author": "Liveware",
5
5
  "scripts": {
6
6
  "test": "jest --config jestconfig.json",