@hubs101/js-api-skd-client 1.0.10415 → 1.0.10417

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.
@@ -1,7 +1,7 @@
1
+ import { Attendee, AttendeeInput, AttendeeProfile, Note, NoteUpdateInput, UserNotification } from "./types";
1
2
  import { Response } from "../../types/base";
2
3
  import { Answer } from "../event/types";
3
4
  import { AttendeeReport } from "../types";
4
- import { Attendee, AttendeeInput, AttendeeProfile, Note, NoteUpdateInput, UserNotification } from "./types";
5
5
  export declare const _fetchAttendeeProfile: (basePath: string, token: string, attendeeId: string) => Promise<AttendeeProfile>;
6
6
  export declare const _fetchAttendees: (basePath: string, token: string, eventId: string) => Promise<AttendeeProfile[]>;
7
7
  export declare const _fetchMyUser: (basePath: string, token: string) => Promise<AttendeeProfile>;
@@ -42,3 +42,4 @@ export declare const _addOnsiteAttendee: (basePath: string, token: string, atten
42
42
  export declare const _resendWelcomeEmail: (basePath: string, token: string, attendeeId: string) => Promise<any>;
43
43
  export declare const _hideAttendee: (basePath: string, token: string, attendeeId: string) => Promise<any>;
44
44
  export declare const _showAttendee: (basePath: string, token: string, attendeeId: string) => Promise<any>;
45
+ export declare const _updateVisibilityAttendee: (basePath: string, token: string, attendeeId: string, visibility: string) => Promise<any>;
@@ -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._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._updateGlobalAttendeeImage = exports._updateAttendee = exports._updateAttendeeImage = exports._fetchMyUser = exports._fetchAttendees = exports._fetchAttendeeProfile = void 0;
12
+ 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._updateGlobalAttendeeImage = exports._updateAttendee = exports._updateAttendeeImage = exports._fetchMyUser = 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* () {
@@ -239,3 +239,11 @@ const _showAttendee = (basePath, token, attendeeId) => __awaiter(void 0, void 0,
239
239
  return response;
240
240
  });
241
241
  exports._showAttendee = _showAttendee;
242
+ const _updateVisibilityAttendee = (basePath, token, attendeeId, visibility) => __awaiter(void 0, void 0, void 0, function* () {
243
+ const base = (0, base_1.getBasePath)(basePath);
244
+ const response = yield (0, api_1.putRequest)(`${base.ATTENDEES}/${attendeeId}/visibility`, token, {
245
+ visibility,
246
+ });
247
+ return response;
248
+ });
249
+ exports._updateVisibilityAttendee = _updateVisibilityAttendee;
@@ -140,6 +140,7 @@ export type AttendeeProfile = Attendee & {
140
140
  answers: AnswersType[];
141
141
  count: number;
142
142
  };
143
+ visibility: string;
143
144
  };
144
145
  export type Speaker = Attendee & {
145
146
  priority: number;
@@ -1,5 +1,5 @@
1
1
  import { LoginResponse, ResetPasswordBody, SendResetPasswordBody } from "../context/types";
2
- import { ColocatedEventsGroupInputType, ColocatedEventsGroupType, GroupInputType, GroupResponseType, RegisterManagerInput, ResponseAccountEventsType } from "./types";
2
+ import { GroupInputType, GroupResponseType, RegisterManagerInput, ResponseAccountEventsType } from "./types";
3
3
  import { GroupType } from "../event/types";
4
4
  import { ResponsePaginationType } from "../public/types";
5
5
  export declare const _login: (basePath: string, email: string, password: string) => Promise<LoginResponse>;
@@ -22,7 +22,3 @@ export declare const _deletePaymentAccount: (basePath: string, token: string, pa
22
22
  export declare const _fetchAccountEvents: (basePath: string, token: string, url: string) => Promise<ResponseAccountEventsType>;
23
23
  export declare const _fetchAccountGroups: (basePath: string, token: string, accountId: string, type: GroupType) => Promise<ResponsePaginationType<GroupResponseType>>;
24
24
  export declare const _createAccountGroup: (basePath: string, token: string, accountId: string, data: GroupInputType) => Promise<GroupResponseType>;
25
- export declare const _fetchColocatedEventsGroups: (basePath: string, token: string, accountId: string) => Promise<ResponsePaginationType<ColocatedEventsGroupType>>;
26
- export declare const _createColocatedEventsGroup: (basePath: string, token: string, accountId: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>;
27
- export declare const _editColocatedEventsGroup: (basePath: string, token: string, id: string, data: ColocatedEventsGroupType) => Promise<ColocatedEventsGroupType>;
28
- export declare const _deleteColocatedEventsGroup: (basePath: string, token: string, id: string) => Promise<Response>;
@@ -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._deleteColocatedEventsGroup = exports._editColocatedEventsGroup = exports._createColocatedEventsGroup = exports._fetchColocatedEventsGroups = exports._createAccountGroup = exports._fetchAccountGroups = exports._fetchAccountEvents = exports._deletePaymentAccount = exports._deleteFinanceManager = exports._inviteFinanceManager = exports._confirmManagerNative = exports._confirmManager = exports._registerManagerNative = exports._registerManager = exports._deleteContentManager = exports._inviteContentManager = exports._updatePaymentAccount = exports._createPaymentAccount = exports._fetchPaymentAccounts = exports._fetchPaymentAccount = exports._sendNewPassword = exports._resetPassword = exports._logout = exports._login = void 0;
12
+ exports._createAccountGroup = exports._fetchAccountGroups = exports._fetchAccountEvents = exports._deletePaymentAccount = exports._deleteFinanceManager = exports._inviteFinanceManager = exports._confirmManagerNative = exports._confirmManager = exports._registerManagerNative = exports._registerManager = exports._deleteContentManager = exports._inviteContentManager = exports._updatePaymentAccount = exports._createPaymentAccount = exports._fetchPaymentAccounts = exports._fetchPaymentAccount = exports._sendNewPassword = exports._resetPassword = exports._logout = exports._login = void 0;
13
13
  const api_1 = require("../../utils/api");
14
14
  const base_1 = require("../../utils/base");
15
15
  const _login = (basePath, email, password) => __awaiter(void 0, void 0, void 0, function* () {
@@ -139,27 +139,3 @@ const _createAccountGroup = (basePath, token, accountId, data) => __awaiter(void
139
139
  return (0, api_1.postRequestWE)(`${base.ACCOUNTS}/${accountId}/groups`, data, token);
140
140
  });
141
141
  exports._createAccountGroup = _createAccountGroup;
142
- const _fetchColocatedEventsGroups = (basePath, token, accountId) => __awaiter(void 0, void 0, void 0, function* () {
143
- const base = (0, base_1.getBasePath)(basePath);
144
- const groups = yield (0, api_1.getRequest)(`${base.ACCOUNTS}/${accountId}/colocated-events`, token);
145
- return groups;
146
- });
147
- exports._fetchColocatedEventsGroups = _fetchColocatedEventsGroups;
148
- const _createColocatedEventsGroup = (basePath, token, accountId, data) => __awaiter(void 0, void 0, void 0, function* () {
149
- const base = (0, base_1.getBasePath)(basePath);
150
- const groups = yield (0, api_1.postRequestWE)(`${base.ACCOUNTS}/${accountId}/colocated-events`, data, token);
151
- return groups;
152
- });
153
- exports._createColocatedEventsGroup = _createColocatedEventsGroup;
154
- const _editColocatedEventsGroup = (basePath, token, id, data) => __awaiter(void 0, void 0, void 0, function* () {
155
- const base = (0, base_1.getBasePath)(basePath);
156
- const groups = yield (0, api_1.putRequest)(`${base.ACCOUNTS}/colocated-events/${id}`, token, data);
157
- return groups;
158
- });
159
- exports._editColocatedEventsGroup = _editColocatedEventsGroup;
160
- const _deleteColocatedEventsGroup = (basePath, token, id) => __awaiter(void 0, void 0, void 0, function* () {
161
- const base = (0, base_1.getBasePath)(basePath);
162
- const groups = yield (0, api_1.deleteRequestWE)(`${base.ACCOUNTS}/colocated-events/${id}`, token);
163
- return groups;
164
- });
165
- exports._deleteColocatedEventsGroup = _deleteColocatedEventsGroup;
@@ -55,12 +55,3 @@ export type GroupInputType = {
55
55
  style?: string;
56
56
  list?: string;
57
57
  };
58
- export type ColocatedEventsGroupInputType = {
59
- name: string;
60
- events: string[];
61
- };
62
- export type ColocatedEventsGroupType = {
63
- id: string;
64
- name: string;
65
- events: string[];
66
- };
package/lib/index.js CHANGED
@@ -141,6 +141,10 @@ function EventAPIProvider(props) {
141
141
  (0, api_1.validateConfig)(config);
142
142
  return (0, event_1._fetchEventGroups)(config.baseUrl, config.token, eventId);
143
143
  }), [config, config.baseUrl, config.token]);
144
+ const updateVisibilityAttendee = (0, react_1.useCallback)((attendeeId, visibility) => __awaiter(this, void 0, void 0, function* () {
145
+ (0, api_1.validateConfig)(config);
146
+ return (0, attendee_1._updateVisibilityAttendee)(config.baseUrl, config.token, attendeeId, visibility);
147
+ }), [config, config.baseUrl, config.token]);
144
148
  const fetchAccountGroups = (0, react_1.useCallback)((accountId, type) => __awaiter(this, void 0, void 0, function* () {
145
149
  (0, api_1.validateConfig)(config);
146
150
  return (0, authentication_1._fetchAccountGroups)(config.baseUrl, config.token, accountId, type);
@@ -897,22 +901,6 @@ function EventAPIProvider(props) {
897
901
  (0, api_1.validateConfig)(config);
898
902
  return (0, event_1._deletePortfolioBlogPage)(config.baseUrl, config.token, portfolioId, blogPostId);
899
903
  }), [config, config.baseUrl, config.token]);
900
- const fetchColocatedEventsGroups = (0, react_1.useCallback)((accountId) => __awaiter(this, void 0, void 0, function* () {
901
- (0, api_1.validateConfig)(config);
902
- return (0, authentication_1._fetchColocatedEventsGroups)(config.baseUrl, config.token, accountId);
903
- }), [config, config.baseUrl, config.token]);
904
- const createColocatedEventsGroup = (0, react_1.useCallback)((accountId, data) => __awaiter(this, void 0, void 0, function* () {
905
- (0, api_1.validateConfig)(config);
906
- return (0, authentication_1._createColocatedEventsGroup)(config.baseUrl, config.token, accountId, data);
907
- }), [config, config.baseUrl, config.token]);
908
- const editColocatedEventsGroup = (0, react_1.useCallback)((id, data) => __awaiter(this, void 0, void 0, function* () {
909
- (0, api_1.validateConfig)(config);
910
- return (0, authentication_1._editColocatedEventsGroup)(config.baseUrl, config.token, id, data);
911
- }), [config, config.baseUrl, config.token]);
912
- const deleteColocatedEventsGroup = (0, react_1.useCallback)((id) => __awaiter(this, void 0, void 0, function* () {
913
- (0, api_1.validateConfig)(config);
914
- return (0, authentication_1._deleteColocatedEventsGroup)(config.baseUrl, config.token, id);
915
- }), [config, config.baseUrl, config.token]);
916
904
  return (react_1.default.createElement(EventAPIContext_1.default.Provider, { value: {
917
905
  config,
918
906
  init,
@@ -932,6 +920,7 @@ function EventAPIProvider(props) {
932
920
  pinExhibition,
933
921
  unpinExhibition,
934
922
  fetchEventGroups,
923
+ updateVisibilityAttendee,
935
924
  fetchAccountGroups,
936
925
  fetchEventAttendeeActions,
937
926
  fetchAccountBookings,
@@ -1122,10 +1111,6 @@ function EventAPIProvider(props) {
1122
1111
  getPublicGroupDetails,
1123
1112
  updatePortfolioBlogPage,
1124
1113
  deletePortfolioBlogPage,
1125
- fetchColocatedEventsGroups,
1126
- createColocatedEventsGroup,
1127
- editColocatedEventsGroup,
1128
- deleteColocatedEventsGroup,
1129
1114
  } }, props.children));
1130
1115
  }
1131
1116
  exports.EventAPIProvider = EventAPIProvider;
@@ -1144,6 +1129,7 @@ exports.BaseAPI = {
1144
1129
  pinExhibition: event_1._pinExhibition,
1145
1130
  unpinExhibition: event_1._unpinExhibition,
1146
1131
  fetchEventGroups: event_1._fetchEventGroups,
1132
+ updateVisibilityAttendee: attendee_1._updateVisibilityAttendee,
1147
1133
  fetchAccountGroups: authentication_1._fetchAccountGroups,
1148
1134
  fetchEventAttendeeActions: event_1._fetchEventAttendeeActions,
1149
1135
  fetchAccountBookings: event_1._fetchAccountBookings,
@@ -1336,9 +1322,5 @@ exports.BaseAPI = {
1336
1322
  getPublicGroupDetails: public_1._getPublicGroupDetails,
1337
1323
  updatePortfolioBlogPage: event_1._updatePortfolioBlogPage,
1338
1324
  deletePortfolioBlogPage: event_1._deletePortfolioBlogPage,
1339
- fetchColocatedEventsGroups: authentication_1._fetchColocatedEventsGroups,
1340
- createColocatedEventsGroup: authentication_1._createColocatedEventsGroup,
1341
- editColocatedEventsGroup: authentication_1._editColocatedEventsGroup,
1342
- deleteColocatedEventsGroup: authentication_1._deleteColocatedEventsGroup,
1343
1325
  };
1344
1326
  exports.useAPIContext = EventAPIContext_1.useAPIContext;
@@ -1,5 +1,5 @@
1
1
  import { Attendee, AttendeeInput, AttendeeProfile, Note, NoteUpdateInput, UserNotification } from "../api/attendee/types";
2
- import { ColocatedEventsGroupInputType, ColocatedEventsGroupType, GroupInputType, GroupResponseType, PublicGroupResponseType, RegisterManagerInput, ResponseAccountEventsType } from "../api/authentication/types";
2
+ import { GroupInputType, GroupResponseType, PublicGroupResponseType, RegisterManagerInput, ResponseAccountEventsType } from "../api/authentication/types";
3
3
  import { LoginResponse, SendResetPasswordBody } from "../api/context/types";
4
4
  import { Account, AccountInput, Answer, BlogPage, BlogPageInput, Booking, BookingDetails, DiscountServerResponse, DocumentType, Event, EventLocation, EventRegistration, EventServerResponse, EventStream, Exhibition, ExhibitionInput, GroupServerResponse, GroupType, OptionServerResponse, Portfolio, PortfolioInput, Stream, StreamInput, TicketServerResponse, UserRegistrationsEvent, ZoomParams } from "../api/event/types";
5
5
  import { EventMeetingStatisticsItem, MeetingItem } from "../api/meetings/types";
@@ -89,6 +89,7 @@ export type BaseAPIType = {
89
89
  unpinExhibition: (basePath: string, token: string, exhibitionId: string) => Promise<boolean>;
90
90
  getPublicRegistrationForm: (basePath: string, eventId: string) => Promise<any>;
91
91
  fetchEventGroups: (basePath: string, token: string, eventId: string) => Promise<GroupServerResponse[]>;
92
+ updateVisibilityAttendee: (basePath: string, token: string, attendeeId: string, visibility: string) => Promise<any>;
92
93
  fetchAccountGroups: (basePath: string, token: string, accountId: string, type: GroupType) => Promise<ResponsePaginationType<GroupResponseType>>;
93
94
  fetchEventAttendeeActions: (basePath: string, token: string, eventId: string) => Promise<ResponseServerType<FetchCurrentEventAttendeesActionsResponse[]>>;
94
95
  fetchAccountBookings: (basePath: string, token: string, accountId: string, params?: string) => Promise<ResponsePaginationType<Booking>>;
@@ -306,10 +307,6 @@ export type BaseAPIType = {
306
307
  value: File;
307
308
  }[]) => Promise<BlogPage>;
308
309
  deletePortfolioBlogPage: (basePath: string, token: string, portfolioId: string, blogPostId: string) => Promise<Response>;
309
- fetchColocatedEventsGroups: (basePath: string, token: string, accountId: string) => Promise<ResponsePaginationType<ColocatedEventsGroupType>>;
310
- createColocatedEventsGroup: (basePath: string, token: string, accountId: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>;
311
- editColocatedEventsGroup: (basePath: string, token: string, id: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>;
312
- deleteColocatedEventsGroup: (basePath: string, token: string, id: string) => Promise<Response>;
313
310
  };
314
311
  export type EventAPIType = {
315
312
  config: BaseAPIConfigType;
@@ -330,6 +327,7 @@ export type EventAPIType = {
330
327
  pinExhibition: (exhibitionId: string) => Promise<boolean>;
331
328
  unpinExhibition: (exhibitionId: string) => Promise<boolean>;
332
329
  fetchEventGroups: (eventId: string) => Promise<GroupServerResponse[]>;
330
+ updateVisibilityAttendee: (attendeeId: string, visibility: string) => Promise<any>;
333
331
  fetchAccountGroups: (accountId: string, type: GroupType) => Promise<ResponsePaginationType<GroupResponseType>>;
334
332
  fetchEventAttendeeActions: (eventId: string) => Promise<ResponseServerType<FetchCurrentEventAttendeesActionsResponse[]>>;
335
333
  fetchAccountBookings: (accountId: string, params?: string) => Promise<ResponsePaginationType<Booking>>;
@@ -544,10 +542,6 @@ export type EventAPIType = {
544
542
  value: File;
545
543
  }[]) => Promise<BlogPage>;
546
544
  deletePortfolioBlogPage: (portfolioId: string, blogPostId: string) => Promise<Response>;
547
- fetchColocatedEventsGroups: (accountId: string) => Promise<ResponsePaginationType<ColocatedEventsGroupType>>;
548
- createColocatedEventsGroup: (accountId: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>;
549
- editColocatedEventsGroup: (id: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>;
550
- deleteColocatedEventsGroup: (id: string) => Promise<Response>;
551
545
  };
552
546
  export type BaseAPIConfigType = {
553
547
  baseUrl?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubs101/js-api-skd-client",
3
- "version": "1.0.10415",
3
+ "version": "1.0.10417",
4
4
  "author": "Liveware",
5
5
  "scripts": {
6
6
  "test": "jest --config jestconfig.json",