@hubs101/js-api-skd-client 1.0.10499 → 1.0.10501
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/attendee/index.d.ts +2 -0
- package/lib/api/attendee/index.js +13 -1
- package/lib/api/event/index.d.ts +4 -2
- package/lib/api/event/index.js +15 -3
- package/lib/index.js +17 -3
- package/lib/types/base.d.ts +10 -4
- package/package.json +1 -1
|
@@ -40,3 +40,5 @@ export declare const _resendWelcomeEmail: (basePath: string, token: string, atte
|
|
|
40
40
|
export declare const _hideAttendee: (basePath: string, token: string, attendeeId: string) => Promise<any>;
|
|
41
41
|
export declare const _showAttendee: (basePath: string, token: string, attendeeId: string) => Promise<any>;
|
|
42
42
|
export declare const _updateVisibilityAttendee: (basePath: string, token: string, attendeeId: string, visibility: string) => Promise<SuccessResponse>;
|
|
43
|
+
export declare const _assignSpeakerRoleToAttendee: (basePath: string, token: string, attendeeId: string) => Promise<SuccessResponse>;
|
|
44
|
+
export declare const _removeSpeakerRoleFromAttendee: (basePath: string, token: string, attendeeId: string) => Promise<SuccessResponse>;
|
|
@@ -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._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;
|
|
12
|
+
exports._removeSpeakerRoleFromAttendee = exports._assignSpeakerRoleToAttendee = 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* () {
|
|
@@ -247,3 +247,15 @@ const _updateVisibilityAttendee = (basePath, token, attendeeId, visibility) => _
|
|
|
247
247
|
return response;
|
|
248
248
|
});
|
|
249
249
|
exports._updateVisibilityAttendee = _updateVisibilityAttendee;
|
|
250
|
+
const _assignSpeakerRoleToAttendee = (basePath, token, attendeeId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
251
|
+
const base = (0, base_1.getBasePath)(basePath);
|
|
252
|
+
const response = yield (0, api_1.putRequest)(`${base.ATTENDEES}/${attendeeId}/speaker`, token, {});
|
|
253
|
+
return response;
|
|
254
|
+
});
|
|
255
|
+
exports._assignSpeakerRoleToAttendee = _assignSpeakerRoleToAttendee;
|
|
256
|
+
const _removeSpeakerRoleFromAttendee = (basePath, token, attendeeId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
257
|
+
const base = (0, base_1.getBasePath)(basePath);
|
|
258
|
+
const response = yield (0, api_1.deleteRequest)(`${base.ATTENDEES}/${attendeeId}/speaker`, {}, token);
|
|
259
|
+
return response;
|
|
260
|
+
});
|
|
261
|
+
exports._removeSpeakerRoleFromAttendee = _removeSpeakerRoleFromAttendee;
|
package/lib/api/event/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { GenericResponseServerType, ResponsePaginationType, ResponseServerType } from "../public/types";
|
|
2
|
-
import { ExhibitionReport, FetchCurrentEventAttendeesActionsResponse } from "../types";
|
|
3
1
|
import { Account, AccountInput, BlogPage, BlogPageInput, Booking, BookingDetails, Directory, DirectoryFiles, DiscountServerResponse, DocumentType, Event, EventLocation, EventRegistration, EventServerResponse, EventStream, Exhibition, ExhibitionInput, FileDetails, GroupServerResponse, OptionServerResponse, Portfolio, PortfolioInput, Stream, StreamInput, TicketServerResponse, UserRegistrationsEvent, ZoomParams } from "./types";
|
|
2
|
+
import { ExhibitionReport, FetchCurrentEventAttendeesActionsResponse } from "../types";
|
|
3
|
+
import { GenericResponseServerType, ResponsePaginationType, ResponseServerType } from "../public/types";
|
|
4
4
|
import { APIResponse } from "../../types/base";
|
|
5
5
|
import { Page } from "../pages/types";
|
|
6
6
|
export declare const _fetchEventRegistrations: (basePath: string, token: string, eventId: string) => Promise<EventRegistration[]>;
|
|
@@ -18,6 +18,8 @@ export declare const _fetchAttendeesAvailabilities: (basePath: string, token: st
|
|
|
18
18
|
export declare const _importAgenda: (basePath: string, token: string, eventId: string, eventSource: string) => Promise<any>;
|
|
19
19
|
export declare const _createGroup: (basePath: string, token: string, data: any) => Promise<any>;
|
|
20
20
|
export declare const _updateGroup: (basePath: string, token: string, groupId: string, data: any) => Promise<any>;
|
|
21
|
+
export declare const _updateSpeakerRole: (basePath: string, token: string, attendeeId: string, data: any) => Promise<any>;
|
|
22
|
+
export declare const _deleteSpeakerRole: (basePath: string, token: string, attendeeId: string) => Promise<any>;
|
|
21
23
|
export declare const _deleteGroup: (basePath: string, token: string, groupId: string) => Promise<any>;
|
|
22
24
|
export declare const _createOption: (basePath: string, token: string, data: any) => Promise<any>;
|
|
23
25
|
export declare const _updateOption: (basePath: string, token: string, optionId: string, data: any) => Promise<any>;
|
package/lib/api/event/index.js
CHANGED
|
@@ -9,9 +9,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
14
|
-
exports._updateEventWebsite = exports._addMediaFolder = exports._deleteMediaDirectoryFiles = exports._deleteMediaDirectories = exports._renameFolder = exports._uploadImageToFolder = exports._fetchMediaFileDetails = exports._fetchMediaDirectoryFiles = void 0;
|
|
12
|
+
exports._checkBooking = exports._resendBookingEmail = exports._resendTicketEmail = exports._fetchEventAttendeeActions = exports._fetchEventGroups = exports._unpinExhibition = exports._pinExhibition = exports._unpinDocument = exports._pinDocument = exports._reportExhibitionAction = exports._deleteDocument = exports._updateDocument = exports._createDocument = exports._assignDocumentToEvent = exports._fetchEventDocuments = exports._fetchUserRegistrationsEvents = exports._fetchEventStreams = exports._fetchEventLocations = exports._deleteLocation = exports._updateLocation = exports._createLocation = exports._fetchExhibitionDetails = exports._deleteDiscount = exports._updateDiscount = exports._createDiscount = exports._fetchEventDiscounts = exports._deleteTicket = exports._updateTicket = exports._createTicket = exports._deleteOption = exports._updateOption = exports._createOption = exports._deleteGroup = exports._deleteSpeakerRole = exports._updateSpeakerRole = exports._updateGroup = exports._createGroup = exports._importAgenda = exports._fetchAttendeesAvailabilities = exports._updateEventTemplates = exports._fetchEventTemplates = exports._fetchEventNotifications = exports._sendSingleNotification = exports._sendNotification = exports._fetchEventDetails = exports._fetchExhibitions = exports._fetchEventsForAccount = exports._fetchTickets = exports._fetchAccounts = exports._fetchEventRegistrations = void 0;
|
|
13
|
+
exports._updatePortfolioBlogPage = exports._createBlogPage = exports._fetchBlogPages = exports._fetchPortfolioEvents = exports._fetchPortfolioDetails = exports._updatePortfolio = exports._createPortfolio = exports._unassignPortfolio = exports._assignPortfolio = exports._deletePortfolio = exports._fetchPortfolios = exports._deleteExhibition = exports._updateExhibition = exports._importExhibition = exports._createExhibition = exports._fetchMyExhibitions = exports._fetchAllExhibitions = exports._deleteStream = exports._updateStream = exports._createStream = exports._fetchYoutubeContent = exports._fetchZoomContent = exports._createEvent = exports._unassignPaymentAccount = exports._assignPaymentAccount = exports._fetchEventOptions = exports._fetchEventTickets = exports._updateEvent = exports._deletePage = exports._updatePage = exports._createPage = exports._fetchEventPages = exports._updateAccountWithFiles = exports._fetchMySessions = exports._fetchEditableEvents = exports._fetchSpeakers = exports._fetchAccountDetails = exports._eventInvitationRegistration = exports._createFreeTrialAccount = exports._fetchEventOrderedTickets = exports._confirmBooking = exports._fetchEventBookings = exports._acceptInternTicket = exports._acceptTicket = exports._postTicketDetails = exports._fetchTicketDetails = exports._assignTicket = exports._fetchAccountBookings = exports._fetchMyBookings = exports._createBooking = void 0;
|
|
14
|
+
exports._updateEventWebsite = exports._addMediaFolder = exports._deleteMediaDirectoryFiles = exports._deleteMediaDirectories = exports._renameFolder = exports._uploadImageToFolder = exports._fetchMediaFileDetails = exports._fetchMediaDirectoryFiles = exports._fetchMediaDirectories = exports._deletePortfolioBlogPage = void 0;
|
|
15
15
|
const api_1 = require("../../utils/api");
|
|
16
16
|
const base_1 = require("../../utils/base");
|
|
17
17
|
const _fetchEventRegistrations = (basePath, token, eventId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -106,6 +106,18 @@ const _updateGroup = (basePath, token, groupId, data) => __awaiter(void 0, void
|
|
|
106
106
|
return response;
|
|
107
107
|
});
|
|
108
108
|
exports._updateGroup = _updateGroup;
|
|
109
|
+
const _updateSpeakerRole = (basePath, token, attendeeId, data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
110
|
+
const base = (0, base_1.getBasePath)(basePath);
|
|
111
|
+
const response = yield (0, api_1.putRequest)(`${base.ATTENDEES}/${attendeeId}/speaker`, token, data);
|
|
112
|
+
return response;
|
|
113
|
+
});
|
|
114
|
+
exports._updateSpeakerRole = _updateSpeakerRole;
|
|
115
|
+
const _deleteSpeakerRole = (basePath, token, attendeeId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
116
|
+
const base = (0, base_1.getBasePath)(basePath);
|
|
117
|
+
const response = yield (0, api_1.deleteRequestWE)(`${base.ATTENDEES}/${attendeeId}/speaker`, token);
|
|
118
|
+
return response;
|
|
119
|
+
});
|
|
120
|
+
exports._deleteSpeakerRole = _deleteSpeakerRole;
|
|
109
121
|
const _deleteGroup = (basePath, token, groupId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
110
122
|
const base = (0, base_1.getBasePath)(basePath);
|
|
111
123
|
const response = yield (0, api_1.deleteRequestWE)(`${base.GROUPS}/${groupId}`, token);
|
package/lib/index.js
CHANGED
|
@@ -51,15 +51,15 @@ const event_1 = require("./api/event");
|
|
|
51
51
|
const posts_1 = require("./api/posts");
|
|
52
52
|
// index.ts
|
|
53
53
|
const attendee_1 = require("./api/attendee");
|
|
54
|
-
const authentication_1 = require("./api/authentication");
|
|
55
54
|
const calendar_1 = require("./api/calendar");
|
|
56
55
|
const meetings_1 = require("./api/meetings");
|
|
57
|
-
const
|
|
56
|
+
const authentication_1 = require("./api/authentication");
|
|
58
57
|
const sessions_1 = require("./api/sessions");
|
|
59
58
|
const tracks_1 = require("./api/tracks");
|
|
59
|
+
const public_1 = require("./api/public");
|
|
60
60
|
const pages_1 = require("./api/pages");
|
|
61
|
-
const api_1 = require("./utils/api");
|
|
62
61
|
const hooks_1 = require("./utils/hooks");
|
|
62
|
+
const api_1 = require("./utils/api");
|
|
63
63
|
function EventAPIProvider(props) {
|
|
64
64
|
const [config, setConfig] = (0, hooks_1.useSetState)({});
|
|
65
65
|
const init = react_1.default.useCallback((baseUrl, email, password) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -475,6 +475,14 @@ function EventAPIProvider(props) {
|
|
|
475
475
|
(0, api_1.validateConfig)(config);
|
|
476
476
|
return (0, event_1._deleteGroup)(config.baseUrl, config.token, groupId);
|
|
477
477
|
}), [config, config.baseUrl, config.token]);
|
|
478
|
+
const updateSpeakerRole = react_1.default.useCallback((attendeeId, data) => __awaiter(this, void 0, void 0, function* () {
|
|
479
|
+
(0, api_1.validateConfig)(config);
|
|
480
|
+
return (0, event_1._updateSpeakerRole)(config.baseUrl, config.token, attendeeId, data);
|
|
481
|
+
}), [config, config.baseUrl, config.token]);
|
|
482
|
+
const deleteSpeakerRole = react_1.default.useCallback((attendeeId) => __awaiter(this, void 0, void 0, function* () {
|
|
483
|
+
(0, api_1.validateConfig)(config);
|
|
484
|
+
return (0, event_1._deleteSpeakerRole)(config.baseUrl, config.token, attendeeId);
|
|
485
|
+
}), [config, config.baseUrl, config.token]);
|
|
478
486
|
const updateGroup = react_1.default.useCallback((groupId, data) => __awaiter(this, void 0, void 0, function* () {
|
|
479
487
|
(0, api_1.validateConfig)(config);
|
|
480
488
|
return (0, event_1._updateGroup)(config.baseUrl, config.token, groupId, data);
|
|
@@ -1067,6 +1075,8 @@ function EventAPIProvider(props) {
|
|
|
1067
1075
|
createOption,
|
|
1068
1076
|
deleteGroup,
|
|
1069
1077
|
updateGroup,
|
|
1078
|
+
updateSpeakerRole,
|
|
1079
|
+
deleteSpeakerRole,
|
|
1070
1080
|
createGroup,
|
|
1071
1081
|
importAgenda,
|
|
1072
1082
|
fetchAttendeesAvailabilities,
|
|
@@ -1215,6 +1225,8 @@ exports.BaseAPI = {
|
|
|
1215
1225
|
deleteMediaDirectoryFiles: event_1._deleteMediaDirectoryFiles,
|
|
1216
1226
|
updateAccountGroup: authentication_1._updateAccountGroup,
|
|
1217
1227
|
updateVisibilityAttendee: attendee_1._updateVisibilityAttendee,
|
|
1228
|
+
assignSpeakerRoleToAttendee: attendee_1._assignSpeakerRoleToAttendee,
|
|
1229
|
+
removeSpeakerRoleFromAttendee: attendee_1._removeSpeakerRoleFromAttendee,
|
|
1218
1230
|
fetchAccountGroups: authentication_1._fetchAccountGroups,
|
|
1219
1231
|
fetchEventAttendeeActions: event_1._fetchEventAttendeeActions,
|
|
1220
1232
|
fetchAccountBookings: event_1._fetchAccountBookings,
|
|
@@ -1288,6 +1300,8 @@ exports.BaseAPI = {
|
|
|
1288
1300
|
createOption: event_1._createOption,
|
|
1289
1301
|
deleteGroup: event_1._deleteGroup,
|
|
1290
1302
|
updateGroup: event_1._updateGroup,
|
|
1303
|
+
updateSpeakerRole: event_1._updateSpeakerRole,
|
|
1304
|
+
deleteSpeakerRole: event_1._deleteSpeakerRole,
|
|
1291
1305
|
createGroup: event_1._createGroup,
|
|
1292
1306
|
importAgenda: event_1._importAgenda,
|
|
1293
1307
|
fetchAttendeesAvailabilities: event_1._fetchAttendeesAvailabilities,
|
package/lib/types/base.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import { Account, AccountInput, BlogPage, BlogPageInput, Booking, BookingDetails, Directory, DirectoryFiles, DiscountServerResponse, DocumentType, Event, EventLocation, EventRegistration, EventServerResponse, EventStream, Exhibition, ExhibitionInput, FileDetails, GroupServerResponse, GroupType, OptionServerResponse, Portfolio, PortfolioInput, Stream, StreamInput, TicketServerResponse, UserRegistrationsEvent, ZoomParams } from "../api/event/types";
|
|
1
2
|
import { Attendee, AttendeeInput, AttendeeProfile, Note, NoteUpdateInput, UserNotification } from "../api/attendee/types";
|
|
3
|
+
import { AttendeeReport, ExhibitionReport, FetchCurrentEventAttendeesActionsResponse, SessionReport, SuccessResponse } from "../api/types";
|
|
2
4
|
import { ColocatedEventsGroupInputType, ColocatedEventsGroupType, GroupInputType, GroupResponseType, PublicGroupResponseType, RegisterManagerInput, ResponseAccountEventsType } from "../api/authentication/types";
|
|
3
|
-
import { LoginResponse, SendResetPasswordBody } from "../api/context/types";
|
|
4
|
-
import { Account, AccountInput, BlogPage, BlogPageInput, Booking, BookingDetails, Directory, DirectoryFiles, DiscountServerResponse, DocumentType, Event, EventLocation, EventRegistration, EventServerResponse, EventStream, Exhibition, ExhibitionInput, FileDetails, GroupServerResponse, GroupType, OptionServerResponse, Portfolio, PortfolioInput, Stream, StreamInput, TicketServerResponse, UserRegistrationsEvent, ZoomParams } from "../api/event/types";
|
|
5
|
-
import { EventMeetingStatisticsItem, MeetingItem } from "../api/meetings/types";
|
|
6
5
|
import { CommentBody, Post, PostBody, UpdatePostBody } from "../api/posts/types";
|
|
6
|
+
import { EventMeetingStatisticsItem, MeetingItem } from "../api/meetings/types";
|
|
7
7
|
import { GenericResponseServerType, PublicEventItem, ResponsePaginationType, ResponseServerType } from "../api/public/types";
|
|
8
|
+
import { LoginResponse, SendResetPasswordBody } from "../api/context/types";
|
|
8
9
|
import { Session, SessionFull, SessionInput } from "../api/sessions/types";
|
|
9
|
-
import { AttendeeReport, ExhibitionReport, FetchCurrentEventAttendeesActionsResponse, SessionReport, SuccessResponse } from "../api/types";
|
|
10
10
|
import { CalendarEvent } from "../api/calendar/types";
|
|
11
11
|
import { Page } from "../api/pages/types";
|
|
12
12
|
import { Track } from "../api/tracks/types";
|
|
@@ -169,6 +169,8 @@ export type BaseAPIType = {
|
|
|
169
169
|
deleteGroup: (basePath: string, token: string, groupId: string) => Promise<any>;
|
|
170
170
|
updateGroup: (basePath: string, token: string, groupId: string, data: any) => Promise<any>;
|
|
171
171
|
createGroup: (basePath: string, token: string, data: any) => Promise<any>;
|
|
172
|
+
updateSpeakerRole: (basePath: string, token: string, attendeeId: string, data: any) => Promise<any>;
|
|
173
|
+
deleteSpeakerRole: (basePath: string, token: string, attendeeId: string) => Promise<any>;
|
|
172
174
|
importAgenda: (basePath: string, token: string, eventId: string, eventSource: string) => Promise<any>;
|
|
173
175
|
fetchAttendeesAvailabilities: (basePath: string, token: string, eventId: string, date: string) => Promise<any>;
|
|
174
176
|
updateEventTemplates: (basePath: string, token: string, templateId: string, eventId: string, data: any) => Promise<any>;
|
|
@@ -321,6 +323,8 @@ export type BaseAPIType = {
|
|
|
321
323
|
fetchMediaFileDetails: (basePath: string, token: string, accountId: string, filepath: string) => Promise<FileDetails>;
|
|
322
324
|
uploadImageToFolder: (basePath: string, token: string, accountId: string, folderPath: string, fileName: string, blob: Blob) => Promise<APIResponse>;
|
|
323
325
|
renameFolder: (basePath: string, token: string, accountId: string, path: string, name_old: string, name_new: string) => Promise<APIResponse>;
|
|
326
|
+
assignSpeakerRoleToAttendee: (basePath: string, token: string, attendeeId: string) => Promise<APIResponse>;
|
|
327
|
+
removeSpeakerRoleFromAttendee: (basePath: string, token: string, attendeeId: string) => Promise<APIResponse>;
|
|
324
328
|
};
|
|
325
329
|
export type EventAPIType = {
|
|
326
330
|
config: BaseAPIConfigType;
|
|
@@ -421,6 +425,8 @@ export type EventAPIType = {
|
|
|
421
425
|
deleteGroup: (groupId: string) => Promise<any>;
|
|
422
426
|
updateGroup: (groupId: string, data: any) => Promise<any>;
|
|
423
427
|
createGroup: (data: any) => Promise<any>;
|
|
428
|
+
updateSpeakerRole: (attendeeId: string, data: any) => Promise<any>;
|
|
429
|
+
deleteSpeakerRole: (attendeeId: string) => Promise<any>;
|
|
424
430
|
importAgenda: (eventId: string, eventSource: string) => Promise<any>;
|
|
425
431
|
fetchAttendeesAvailabilities: (eventId: string, date: string) => Promise<any>;
|
|
426
432
|
updateEventTemplates: (templateId: string, eventId: string, data: any) => Promise<any>;
|