@hubs101/js-api-skd-client 1.0.10537 → 1.0.10539
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 +0 -0
- package/lib/api/attendee/index.js +20 -20
- package/lib/api/attendee/types.d.ts +0 -0
- package/lib/api/attendee/types.js +1 -1
- package/lib/api/authentication/index.d.ts +0 -0
- package/lib/api/authentication/index.js +0 -0
- package/lib/api/authentication/types.d.ts +0 -0
- package/lib/api/authentication/types.js +0 -0
- package/lib/api/calendar/index.d.ts +0 -0
- package/lib/api/calendar/index.js +0 -0
- package/lib/api/calendar/types.d.ts +0 -0
- package/lib/api/calendar/types.js +0 -0
- package/lib/api/context/EventAPIContext.d.ts +0 -0
- package/lib/api/context/EventAPIContext.js +0 -0
- package/lib/api/context/types.d.ts +0 -0
- package/lib/api/context/types.js +0 -0
- package/lib/api/event/index.d.ts +3 -0
- package/lib/api/event/index.js +27 -11
- package/lib/api/event/types.d.ts +0 -0
- package/lib/api/event/types.js +3 -3
- package/lib/api/meetings/index.d.ts +0 -0
- package/lib/api/meetings/index.js +2 -2
- package/lib/api/meetings/types.d.ts +0 -0
- package/lib/api/meetings/types.js +0 -0
- package/lib/api/pages/index.d.ts +0 -0
- package/lib/api/pages/index.js +0 -0
- package/lib/api/pages/types.d.ts +0 -0
- package/lib/api/pages/types.js +0 -0
- package/lib/api/posts/index.d.ts +0 -0
- package/lib/api/posts/index.js +2 -2
- package/lib/api/posts/types.d.ts +0 -0
- package/lib/api/posts/types.js +0 -0
- package/lib/api/public/index.d.ts +0 -0
- package/lib/api/public/index.js +0 -0
- package/lib/api/public/types.d.ts +2 -0
- package/lib/api/public/types.js +0 -0
- package/lib/api/sessions/index.d.ts +1 -0
- package/lib/api/sessions/index.js +7 -1
- package/lib/api/sessions/types.d.ts +0 -0
- package/lib/api/sessions/types.js +0 -0
- package/lib/api/tracks/index.d.ts +0 -0
- package/lib/api/tracks/index.js +0 -0
- package/lib/api/tracks/types.d.ts +0 -0
- package/lib/api/tracks/types.js +0 -0
- package/lib/api/types.d.ts +0 -0
- package/lib/api/types.js +0 -0
- package/lib/constants/api.d.ts +80 -80
- package/lib/constants/api.js +0 -0
- package/lib/index.d.ts +0 -0
- package/lib/index.js +30 -22
- package/lib/types/base.d.ts +6 -0
- package/lib/types/base.js +0 -0
- package/lib/utils/api.d.ts +1 -0
- package/lib/utils/api.js +17 -11
- package/lib/utils/base.d.ts +0 -0
- package/lib/utils/base.js +1 -1
- package/lib/utils/hooks.d.ts +0 -0
- package/lib/utils/hooks.js +0 -0
- package/package.json +1 -1
|
File without changes
|
|
@@ -32,52 +32,52 @@ const _fetchMyUser = (basePath, token) => __awaiter(void 0, void 0, void 0, func
|
|
|
32
32
|
});
|
|
33
33
|
exports._fetchMyUser = _fetchMyUser;
|
|
34
34
|
const _updateAttendeeImage = (basePath, token, file, param, attendeeId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
35
|
-
var
|
|
35
|
+
var _b;
|
|
36
36
|
const base = (0, base_1.getBasePath)(basePath);
|
|
37
37
|
const attendee = yield (0, api_1.postFileRequestWE)(`${base.ATTENDEES}/${attendeeId}`, file, param, token);
|
|
38
|
-
return ((
|
|
38
|
+
return ((_b = attendee === null || attendee === void 0 ? void 0 : attendee.data) === null || _b === void 0 ? void 0 : _b.data) || (attendee === null || attendee === void 0 ? void 0 : attendee.data) || attendee;
|
|
39
39
|
});
|
|
40
40
|
exports._updateAttendeeImage = _updateAttendeeImage;
|
|
41
41
|
const _updateAttendeeImageNative = (basePath, token, file, param, attendeeId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
42
|
-
var
|
|
42
|
+
var _c;
|
|
43
43
|
const base = (0, base_1.getBasePath)(basePath);
|
|
44
44
|
const attendee = yield (0, api_1.postFileRequest)(`${base.ATTENDEES}/${attendeeId}`, file, param, token);
|
|
45
|
-
return ((
|
|
45
|
+
return ((_c = attendee === null || attendee === void 0 ? void 0 : attendee.data) === null || _c === void 0 ? void 0 : _c.data) || (attendee === null || attendee === void 0 ? void 0 : attendee.data) || attendee;
|
|
46
46
|
});
|
|
47
47
|
exports._updateAttendeeImageNative = _updateAttendeeImageNative;
|
|
48
48
|
const _updateAttendee = (basePath, token, updatedAttendee, attendeeId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
49
|
-
var
|
|
49
|
+
var _d;
|
|
50
50
|
const base = (0, base_1.getBasePath)(basePath);
|
|
51
51
|
const attendee = yield (0, api_1.putRequest)(`${base.ATTENDEES}/${attendeeId}`, token, Object.assign({}, updatedAttendee));
|
|
52
|
-
return ((
|
|
52
|
+
return ((_d = attendee === null || attendee === void 0 ? void 0 : attendee.data) === null || _d === void 0 ? void 0 : _d.data) || (attendee === null || attendee === void 0 ? void 0 : attendee.data) || attendee;
|
|
53
53
|
});
|
|
54
54
|
exports._updateAttendee = _updateAttendee;
|
|
55
55
|
const _updateGlobalAttendeeImage = (basePath, token, file, param) => __awaiter(void 0, void 0, void 0, function* () {
|
|
56
|
-
var
|
|
56
|
+
var _e;
|
|
57
57
|
const base = (0, base_1.getBasePath)(basePath);
|
|
58
58
|
const attendee = yield (0, api_1.postFileRequestWE)(base.PROFILE, file, param, token);
|
|
59
|
-
return ((
|
|
59
|
+
return ((_e = attendee === null || attendee === void 0 ? void 0 : attendee.data) === null || _e === void 0 ? void 0 : _e.data) || (attendee === null || attendee === void 0 ? void 0 : attendee.data) || attendee;
|
|
60
60
|
});
|
|
61
61
|
exports._updateGlobalAttendeeImage = _updateGlobalAttendeeImage;
|
|
62
62
|
const _updateGlobalAttendeeImageNative = (basePath, token, file, param) => __awaiter(void 0, void 0, void 0, function* () {
|
|
63
|
-
var
|
|
63
|
+
var _f;
|
|
64
64
|
const base = (0, base_1.getBasePath)(basePath);
|
|
65
65
|
const attendee = yield (0, api_1.postFileRequest)(base.PROFILE, file, param, token);
|
|
66
|
-
return ((
|
|
66
|
+
return ((_f = attendee === null || attendee === void 0 ? void 0 : attendee.data) === null || _f === void 0 ? void 0 : _f.data) || (attendee === null || attendee === void 0 ? void 0 : attendee.data) || attendee;
|
|
67
67
|
});
|
|
68
68
|
exports._updateGlobalAttendeeImageNative = _updateGlobalAttendeeImageNative;
|
|
69
69
|
const _updateGlobalAttendee = (basePath, token, updatedAttendee) => __awaiter(void 0, void 0, void 0, function* () {
|
|
70
|
-
var
|
|
70
|
+
var _g;
|
|
71
71
|
const base = (0, base_1.getBasePath)(basePath);
|
|
72
72
|
const attendee = yield (0, api_1.putRequest)(base.PROFILE, token, Object.assign({}, updatedAttendee));
|
|
73
|
-
return ((
|
|
73
|
+
return ((_g = attendee === null || attendee === void 0 ? void 0 : attendee.data) === null || _g === void 0 ? void 0 : _g.data) || (attendee === null || attendee === void 0 ? void 0 : attendee.data) || attendee;
|
|
74
74
|
});
|
|
75
75
|
exports._updateGlobalAttendee = _updateGlobalAttendee;
|
|
76
76
|
const _fetchMyConnections = (basePath, token) => __awaiter(void 0, void 0, void 0, function* () {
|
|
77
|
-
var
|
|
77
|
+
var _h;
|
|
78
78
|
const base = (0, base_1.getBasePath)(basePath);
|
|
79
79
|
const myConnections = yield (0, api_1.getRequest)(base.CONNECTIONS, token);
|
|
80
|
-
return ((
|
|
80
|
+
return ((_h = myConnections === null || myConnections === void 0 ? void 0 : myConnections.data) === null || _h === void 0 ? void 0 : _h.data) || (myConnections === null || myConnections === void 0 ? void 0 : myConnections.data) || myConnections;
|
|
81
81
|
});
|
|
82
82
|
exports._fetchMyConnections = _fetchMyConnections;
|
|
83
83
|
const _addConnection = (basePath, token, profile, leadsToken) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -152,10 +152,10 @@ const _reportAttendeeAction = (basePath, token, requestData) => __awaiter(void 0
|
|
|
152
152
|
});
|
|
153
153
|
exports._reportAttendeeAction = _reportAttendeeAction;
|
|
154
154
|
const _fetchMyNotes = (basePath, token) => __awaiter(void 0, void 0, void 0, function* () {
|
|
155
|
-
var
|
|
155
|
+
var _j;
|
|
156
156
|
const base = (0, base_1.getBasePath)(basePath);
|
|
157
157
|
const myNotes = yield (0, api_1.getRequest)(`${base.NOTES}`, token);
|
|
158
|
-
return ((
|
|
158
|
+
return ((_j = myNotes === null || myNotes === void 0 ? void 0 : myNotes.data) === null || _j === void 0 ? void 0 : _j.data) || (myNotes === null || myNotes === void 0 ? void 0 : myNotes.data) || myNotes;
|
|
159
159
|
});
|
|
160
160
|
exports._fetchMyNotes = _fetchMyNotes;
|
|
161
161
|
const _createNote = (basePath, token, note) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -177,10 +177,10 @@ const _deleteNote = (basePath, token, noteId) => __awaiter(void 0, void 0, void
|
|
|
177
177
|
});
|
|
178
178
|
exports._deleteNote = _deleteNote;
|
|
179
179
|
const _fetchUserNotifications = (basePath, token) => __awaiter(void 0, void 0, void 0, function* () {
|
|
180
|
-
var
|
|
180
|
+
var _k;
|
|
181
181
|
const base = (0, base_1.getBasePath)(basePath);
|
|
182
182
|
const userNotifications = yield (0, api_1.getRequest)(`${base.USER_NOTIFICATIONS}`, token);
|
|
183
|
-
return (((
|
|
183
|
+
return (((_k = userNotifications === null || userNotifications === void 0 ? void 0 : userNotifications.data) === null || _k === void 0 ? void 0 : _k.data) ||
|
|
184
184
|
(userNotifications === null || userNotifications === void 0 ? void 0 : userNotifications.data) ||
|
|
185
185
|
userNotifications);
|
|
186
186
|
});
|
|
@@ -263,9 +263,9 @@ const _updateVisibilityAttendee = (basePath, token, attendeeId, visibility) => _
|
|
|
263
263
|
});
|
|
264
264
|
exports._updateVisibilityAttendee = _updateVisibilityAttendee;
|
|
265
265
|
const _fetchAttendeeDetails = (basePath, token, attendeeId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
266
|
-
var
|
|
266
|
+
var _l;
|
|
267
267
|
const base = (0, base_1.getBasePath)(basePath);
|
|
268
268
|
const attendee = yield (0, api_1.getRequest)(`${base.ATTENDEES}/${attendeeId}`, token);
|
|
269
|
-
return ((
|
|
269
|
+
return ((_l = attendee === null || attendee === void 0 ? void 0 : attendee.data) === null || _l === void 0 ? void 0 : _l.data) || (attendee === null || attendee === void 0 ? void 0 : attendee.data) || attendee;
|
|
270
270
|
});
|
|
271
271
|
exports._fetchAttendeeDetails = _fetchAttendeeDetails;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/api/context/types.js
CHANGED
|
File without changes
|
package/lib/api/event/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { GenericResponseServerType, PublicAdResponse, ResponsePaginationType, Re
|
|
|
2
2
|
import { ExhibitionReport, FetchCurrentEventAttendeesActionsResponse } from "../types";
|
|
3
3
|
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";
|
|
4
4
|
import { APIResponse } from "../../types/base";
|
|
5
|
+
import { Attendee } from "../attendee/types";
|
|
5
6
|
import { Page } from "../pages/types";
|
|
6
7
|
export declare const _fetchEventRegistrations: (basePath: string, token: string, eventId: string) => Promise<EventRegistration[]>;
|
|
7
8
|
export declare const _fetchAccounts: (basePath: string, token: string) => Promise<Account[]>;
|
|
@@ -138,3 +139,5 @@ export declare const _updateEventWebsite: (basePath: string, token: string, even
|
|
|
138
139
|
}, files?: any) => Promise<EventServerResponse>;
|
|
139
140
|
export declare const _importTickets: (basePath: string, token: string, eventId: string, ticketsList: string[]) => Promise<ResponsePaginationType<TicketServerResponse>>;
|
|
140
141
|
export declare const _fetchPublicEventAdvertisement: (basePath: string, eventId: string) => Promise<GenericResponseServerType<PublicAdResponse[]>>;
|
|
142
|
+
export declare const _activateDataManagers: (basePath: string, token: string, eventId: string, attendeeIds: string[]) => Promise<Attendee[]>;
|
|
143
|
+
export declare const _deactivateDataManagers: (basePath: string, token: string, eventId: string, attendeeIds: string[]) => Promise<Attendee[]>;
|
package/lib/api/event/index.js
CHANGED
|
@@ -11,7 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports._resendTicketEmail = exports._fetchEventAttendeeActions = exports._fetchPublicEventGroups = exports._fetchEventGroups = exports._unpinExhibition = exports._pinExhibition = exports._unpinDocument = exports._pinDocument = exports._reportExhibitionAction = exports._deleteDocument = exports._updateDocument = exports._createExhibitionDocument = 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
13
|
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 = exports._checkBooking = exports._resendBookingEmail = void 0;
|
|
14
|
-
exports._fetchPublicEventAdvertisement = exports._importTickets = exports._updateEventWebsite = exports._addMediaFolder = exports._deleteMediaDirectoryFiles = exports._deleteMediaDirectories = exports._renameFolder = exports._uploadImageToFolder = exports._fetchMediaFileDetails = exports._fetchMediaDirectoryFiles = exports._fetchMediaDirectories = exports._deletePortfolioBlogPage = exports._updatePortfolioBlogPage = exports._createBlogPage = void 0;
|
|
14
|
+
exports._deactivateDataManagers = exports._activateDataManagers = exports._fetchPublicEventAdvertisement = exports._importTickets = exports._updateEventWebsite = exports._addMediaFolder = exports._deleteMediaDirectoryFiles = exports._deleteMediaDirectories = exports._renameFolder = exports._uploadImageToFolder = exports._fetchMediaFileDetails = exports._fetchMediaDirectoryFiles = exports._fetchMediaDirectories = exports._deletePortfolioBlogPage = exports._updatePortfolioBlogPage = exports._createBlogPage = 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* () {
|
|
@@ -46,10 +46,10 @@ const _fetchExhibitions = (basePath, token, eventId) => __awaiter(void 0, void 0
|
|
|
46
46
|
});
|
|
47
47
|
exports._fetchExhibitions = _fetchExhibitions;
|
|
48
48
|
const _fetchEventDetails = (basePath, token, eventId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
49
|
-
var
|
|
49
|
+
var _b;
|
|
50
50
|
const base = (0, base_1.getBasePath)(basePath);
|
|
51
51
|
const eventDetails = yield (0, api_1.getRequest)(`${base.EVENTS}/${eventId}`, token);
|
|
52
|
-
return ((
|
|
52
|
+
return ((_b = eventDetails === null || eventDetails === void 0 ? void 0 : eventDetails.data) === null || _b === void 0 ? void 0 : _b.data) || (eventDetails === null || eventDetails === void 0 ? void 0 : eventDetails.data) || eventDetails;
|
|
53
53
|
});
|
|
54
54
|
exports._fetchEventDetails = _fetchEventDetails;
|
|
55
55
|
const _sendNotification = (basePath, token, eventId, message, date, url) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -185,10 +185,10 @@ const _deleteDiscount = (basePath, token, discountId) => __awaiter(void 0, void
|
|
|
185
185
|
});
|
|
186
186
|
exports._deleteDiscount = _deleteDiscount;
|
|
187
187
|
const _fetchExhibitionDetails = (basePath, token, exhibitionId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
188
|
-
var
|
|
188
|
+
var _c;
|
|
189
189
|
const base = (0, base_1.getBasePath)(basePath);
|
|
190
190
|
const exhibitionDetails = yield (0, api_1.getRequest)(`${base.EXHIBITIONS}/${exhibitionId}`, token);
|
|
191
|
-
return (((
|
|
191
|
+
return (((_c = exhibitionDetails === null || exhibitionDetails === void 0 ? void 0 : exhibitionDetails.data) === null || _c === void 0 ? void 0 : _c.data) ||
|
|
192
192
|
(exhibitionDetails === null || exhibitionDetails === void 0 ? void 0 : exhibitionDetails.data) ||
|
|
193
193
|
exhibitionDetails);
|
|
194
194
|
});
|
|
@@ -212,10 +212,10 @@ const _deleteLocation = (basePath, token, locationId) => __awaiter(void 0, void
|
|
|
212
212
|
});
|
|
213
213
|
exports._deleteLocation = _deleteLocation;
|
|
214
214
|
const _fetchEventLocations = (basePath, token, eventId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
215
|
-
var
|
|
215
|
+
var _d;
|
|
216
216
|
const base = (0, base_1.getBasePath)(basePath);
|
|
217
217
|
const { data: eventLocations } = yield (0, api_1.getRequest)(`${base.EVENTS}/${eventId}/locations`, token);
|
|
218
|
-
return ((
|
|
218
|
+
return ((_d = eventLocations === null || eventLocations === void 0 ? void 0 : eventLocations.data) === null || _d === void 0 ? void 0 : _d.data) || (eventLocations === null || eventLocations === void 0 ? void 0 : eventLocations.data) || eventLocations;
|
|
219
219
|
});
|
|
220
220
|
exports._fetchEventLocations = _fetchEventLocations;
|
|
221
221
|
const _fetchEventStreams = (basePath, token, eventId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -225,19 +225,19 @@ const _fetchEventStreams = (basePath, token, eventId) => __awaiter(void 0, void
|
|
|
225
225
|
});
|
|
226
226
|
exports._fetchEventStreams = _fetchEventStreams;
|
|
227
227
|
const _fetchUserRegistrationsEvents = (basePath, token) => __awaiter(void 0, void 0, void 0, function* () {
|
|
228
|
-
var
|
|
228
|
+
var _e;
|
|
229
229
|
const base = (0, base_1.getBasePath)(basePath);
|
|
230
230
|
const { data: userRegistrationsEvents } = yield (0, api_1.getRequest)(`${base.USERS}/registrations`, token);
|
|
231
|
-
return (((
|
|
231
|
+
return (((_e = userRegistrationsEvents === null || userRegistrationsEvents === void 0 ? void 0 : userRegistrationsEvents.data) === null || _e === void 0 ? void 0 : _e.data) ||
|
|
232
232
|
(userRegistrationsEvents === null || userRegistrationsEvents === void 0 ? void 0 : userRegistrationsEvents.data) ||
|
|
233
233
|
userRegistrationsEvents);
|
|
234
234
|
});
|
|
235
235
|
exports._fetchUserRegistrationsEvents = _fetchUserRegistrationsEvents;
|
|
236
236
|
const _fetchEventDocuments = (basePath, token, eventId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
237
|
-
var
|
|
237
|
+
var _f;
|
|
238
238
|
const base = (0, base_1.getBasePath)(basePath);
|
|
239
239
|
const { data: eventDocuments } = yield (0, api_1.getRequest)(`${base.EVENTS}/${eventId}/documents`, token);
|
|
240
|
-
return ((
|
|
240
|
+
return ((_f = eventDocuments === null || eventDocuments === void 0 ? void 0 : eventDocuments.data) === null || _f === void 0 ? void 0 : _f.data) || (eventDocuments === null || eventDocuments === void 0 ? void 0 : eventDocuments.data) || eventDocuments;
|
|
241
241
|
});
|
|
242
242
|
exports._fetchEventDocuments = _fetchEventDocuments;
|
|
243
243
|
const _assignDocumentToEvent = (basePath, token, eventId, documentId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -738,3 +738,19 @@ const _fetchPublicEventAdvertisement = (basePath, eventId) => __awaiter(void 0,
|
|
|
738
738
|
return data;
|
|
739
739
|
});
|
|
740
740
|
exports._fetchPublicEventAdvertisement = _fetchPublicEventAdvertisement;
|
|
741
|
+
const _activateDataManagers = (basePath, token, eventId, attendeeIds) => __awaiter(void 0, void 0, void 0, function* () {
|
|
742
|
+
var _g;
|
|
743
|
+
const base = (0, base_1.getBasePath)(basePath);
|
|
744
|
+
const attendeeIdsString = attendeeIds.join("%2");
|
|
745
|
+
const attendees = yield (0, api_1.postRequestWE)(`${base.EVENTS}/${eventId}/data-manager?attendee_list=${attendeeIdsString}`, null, token);
|
|
746
|
+
return ((_g = attendees === null || attendees === void 0 ? void 0 : attendees.data) === null || _g === void 0 ? void 0 : _g.data) || (attendees === null || attendees === void 0 ? void 0 : attendees.data) || attendees;
|
|
747
|
+
});
|
|
748
|
+
exports._activateDataManagers = _activateDataManagers;
|
|
749
|
+
const _deactivateDataManagers = (basePath, token, eventId, attendeeIds) => __awaiter(void 0, void 0, void 0, function* () {
|
|
750
|
+
var _h;
|
|
751
|
+
const base = (0, base_1.getBasePath)(basePath);
|
|
752
|
+
const attendeeIdsString = attendeeIds.join("%2");
|
|
753
|
+
const attendees = yield (0, api_1.deleteRequestWE)(`${base.EVENTS}/${eventId}/data-manager?attendee_list=${attendeeIdsString}`, token);
|
|
754
|
+
return ((_h = attendees === null || attendees === void 0 ? void 0 : attendees.data) === null || _h === void 0 ? void 0 : _h.data) || (attendees === null || attendees === void 0 ? void 0 : attendees.data) || attendees;
|
|
755
|
+
});
|
|
756
|
+
exports._deactivateDataManagers = _deactivateDataManagers;
|
package/lib/api/event/types.d.ts
CHANGED
|
File without changes
|
package/lib/api/event/types.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MENU_ITEM_TYPE = exports.DEFAULT_MENU_ITEM = exports.DEFAULT_MENU_TYPES = exports.MENU_ITEM_STYLING_TYPE = exports.MENU_ITEM_STYLING = exports.MENU_ITEM_TYPES = exports.GROUP_STYLE = void 0;
|
|
4
4
|
exports.GROUP_STYLE = [
|
|
5
|
-
{ "": "" },
|
|
6
|
-
{ "1": "default" },
|
|
7
|
-
{ "2": "highlighted" },
|
|
5
|
+
{ "": "" },
|
|
6
|
+
{ "1": "default" },
|
|
7
|
+
{ "2": "highlighted" },
|
|
8
8
|
{ "3": "big" }, // LP
|
|
9
9
|
];
|
|
10
10
|
exports.MENU_ITEM_TYPES = {
|
|
File without changes
|
|
@@ -20,10 +20,10 @@ const _fetchMeetings = (basePath, token) => __awaiter(void 0, void 0, void 0, fu
|
|
|
20
20
|
});
|
|
21
21
|
exports._fetchMeetings = _fetchMeetings;
|
|
22
22
|
const _fetchArrangedMeetings = (basePath, token, eventId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
23
|
-
var
|
|
23
|
+
var _b;
|
|
24
24
|
const base = (0, base_1.getBasePath)(basePath);
|
|
25
25
|
const response = yield (0, api_1.getRequest)(`${base.EVENTS}/${eventId}/meetings/arranged`, token);
|
|
26
|
-
return ((
|
|
26
|
+
return ((_b = response === null || response === void 0 ? void 0 : response.data) === null || _b === void 0 ? void 0 : _b.data) || (response === null || response === void 0 ? void 0 : response.data) || response;
|
|
27
27
|
});
|
|
28
28
|
exports._fetchArrangedMeetings = _fetchArrangedMeetings;
|
|
29
29
|
const _fetchLocation = (basePath, token, locationId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
File without changes
|
|
File without changes
|
package/lib/api/pages/index.d.ts
CHANGED
|
File without changes
|
package/lib/api/pages/index.js
CHANGED
|
File without changes
|
package/lib/api/pages/types.d.ts
CHANGED
|
File without changes
|
package/lib/api/pages/types.js
CHANGED
|
File without changes
|
package/lib/api/posts/index.d.ts
CHANGED
|
File without changes
|
package/lib/api/posts/index.js
CHANGED
|
@@ -20,10 +20,10 @@ const _fetchPosts = (basePath, token, eventId) => __awaiter(void 0, void 0, void
|
|
|
20
20
|
});
|
|
21
21
|
exports._fetchPosts = _fetchPosts;
|
|
22
22
|
const _fetchPostDetails = (basePath, token, postId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
23
|
-
var
|
|
23
|
+
var _b;
|
|
24
24
|
const base = (0, base_1.getBasePath)(basePath);
|
|
25
25
|
const postDetails = yield (0, api_1.getRequest)(`${base.POSTS}/${postId}`, token);
|
|
26
|
-
return ((
|
|
26
|
+
return ((_b = postDetails === null || postDetails === void 0 ? void 0 : postDetails.data) === null || _b === void 0 ? void 0 : _b.data) || (postDetails === null || postDetails === void 0 ? void 0 : postDetails.data) || postDetails;
|
|
27
27
|
});
|
|
28
28
|
exports._fetchPostDetails = _fetchPostDetails;
|
|
29
29
|
const _likePost = (basePath, token, postId) => __awaiter(void 0, void 0, void 0, function* () {
|
package/lib/api/posts/types.d.ts
CHANGED
|
File without changes
|
package/lib/api/posts/types.js
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/api/public/index.js
CHANGED
|
File without changes
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Attendee } from "../attendee/types";
|
|
2
2
|
import { Exhibition } from "../event/types";
|
|
3
|
+
import { SessionFull } from "../sessions/types";
|
|
3
4
|
export type Pagination = {
|
|
4
5
|
total: number;
|
|
5
6
|
count: number;
|
|
@@ -125,6 +126,7 @@ export type PublicEventsContextType = {
|
|
|
125
126
|
fetchAllEvents: (nbPage?: number, params?: string) => Promise<any>;
|
|
126
127
|
fetchExhibitions: (eventId: string, nbPage?: number, params?: string) => Promise<any>;
|
|
127
128
|
fetchAgenda: (eventId: string, nbPage?: number, params?: string) => Promise<any>;
|
|
129
|
+
fetchColocatedAgenda: (eventId: string) => Promise<SessionFull>;
|
|
128
130
|
selectPublicEvent: (selectedPublicEvent: PublicEventItem) => void;
|
|
129
131
|
} & PublicEventsProviderState;
|
|
130
132
|
export type ResponseServerType<T> = {
|
package/lib/api/public/types.js
CHANGED
|
File without changes
|
|
@@ -19,3 +19,4 @@ export declare const _createSession: (basePath: string, token: string, data: Ses
|
|
|
19
19
|
export declare const _updateSession: (basePath: string, token: string, sessionId: string, data: SessionInput, files: any) => Promise<Session>;
|
|
20
20
|
export declare const _deleteSession: (basePath: string, token: string, sessionId: string) => Promise<APIResponse>;
|
|
21
21
|
export declare const _promoteSession: (basePath: string, token: string, sessionId: string, promotionDate: string) => Promise<APIResponse>;
|
|
22
|
+
export declare const _fetchColocatedAgenda: (basePath: string, eventId: string) => Promise<SessionFull[]>;
|
|
@@ -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._promoteSession = exports._deleteSession = exports._updateSession = exports._createSession = exports._fetchSelectedEventSessions = exports._reportSessionAction = exports._refetchSessionDiscussion = exports._postSessionComment = exports._watchSession = exports._removeSeat = exports._reserveSeat = exports._rateSession = exports._unpinSession = exports._pinSession = exports._fetchZoomSignature = exports._fetchAgenda = void 0;
|
|
12
|
+
exports._fetchColocatedAgenda = exports._promoteSession = exports._deleteSession = exports._updateSession = exports._createSession = exports._fetchSelectedEventSessions = exports._reportSessionAction = exports._refetchSessionDiscussion = exports._postSessionComment = exports._watchSession = exports._removeSeat = exports._reserveSeat = exports._rateSession = exports._unpinSession = exports._pinSession = exports._fetchZoomSignature = exports._fetchAgenda = void 0;
|
|
13
13
|
const api_1 = require("../../utils/api");
|
|
14
14
|
const base_1 = require("../../utils/base");
|
|
15
15
|
const _fetchAgenda = (basePath, token, eventId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -105,3 +105,9 @@ const _promoteSession = (basePath, token, sessionId, promotionDate) => __awaiter
|
|
|
105
105
|
return session;
|
|
106
106
|
});
|
|
107
107
|
exports._promoteSession = _promoteSession;
|
|
108
|
+
const _fetchColocatedAgenda = (basePath, eventId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
109
|
+
const base = (0, base_1.getBasePath)(basePath);
|
|
110
|
+
const agenda = yield (0, api_1.getRequest)(`${base.PUBLIC_EVENTS}/${eventId}/colocated-agenda`);
|
|
111
|
+
return (agenda === null || agenda === void 0 ? void 0 : agenda.data) || agenda;
|
|
112
|
+
});
|
|
113
|
+
exports._fetchColocatedAgenda = _fetchColocatedAgenda;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/api/tracks/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/api/tracks/types.js
CHANGED
|
File without changes
|
package/lib/api/types.d.ts
CHANGED
|
File without changes
|
package/lib/api/types.js
CHANGED
|
File without changes
|
package/lib/constants/api.d.ts
CHANGED
|
@@ -4,120 +4,120 @@ export declare const PRODUCTION_URL_UNAUTHORIZED = "https://api.we-conect.com";
|
|
|
4
4
|
export declare const STAGING_URL_UNAUTHORIZED = "https://api-staging.hubs101.com";
|
|
5
5
|
export declare const WEB_APP_STAGE = "https://staging.hubs101.com";
|
|
6
6
|
export declare const WEB_APP_PROD = "https://app.hubs101.com";
|
|
7
|
-
export declare const PRODUCTION_URL
|
|
8
|
-
export declare const STAGING_URL
|
|
9
|
-
export declare const UNAUTHORIZED_PRODUCTION_URL
|
|
10
|
-
export declare const UNAUTHORIZED_STAGING_URL
|
|
7
|
+
export declare const PRODUCTION_URL: string;
|
|
8
|
+
export declare const STAGING_URL: string;
|
|
9
|
+
export declare const UNAUTHORIZED_PRODUCTION_URL: string;
|
|
10
|
+
export declare const UNAUTHORIZED_STAGING_URL: string;
|
|
11
11
|
export declare const BASE_PROD_RESOURCE_URL = "https://media.hubs101.com/";
|
|
12
12
|
export declare const BASE_STAGE_RESOURCE_URL = "https://staging-media.hubs101.com/";
|
|
13
13
|
export declare const API_PROD_PATH: Readonly<{
|
|
14
|
-
ACCOUNTS:
|
|
15
|
-
ATTENDEES:
|
|
14
|
+
ACCOUNTS: `${string}/accounts`;
|
|
15
|
+
ATTENDEES: `${string}/attendees`;
|
|
16
16
|
AUTH: {
|
|
17
17
|
LOGIN: string;
|
|
18
18
|
LOGOUT: string;
|
|
19
19
|
TOKEN_REFRESH: string;
|
|
20
20
|
RESET_PASSWORD: string;
|
|
21
21
|
};
|
|
22
|
-
CONNECTIONS:
|
|
23
|
-
EVENTS:
|
|
24
|
-
PROFILE:
|
|
25
|
-
USERS:
|
|
26
|
-
SESSIONS:
|
|
27
|
-
TRACKS:
|
|
28
|
-
EXHIBITIONS:
|
|
29
|
-
USER_EVENTS:
|
|
22
|
+
CONNECTIONS: `${string}/users/connections`;
|
|
23
|
+
EVENTS: `${string}/events`;
|
|
24
|
+
PROFILE: `${string}/users/profile`;
|
|
25
|
+
USERS: `${string}/users`;
|
|
26
|
+
SESSIONS: `${string}/sessions`;
|
|
27
|
+
TRACKS: `${string}/tracks`;
|
|
28
|
+
EXHIBITIONS: `${string}/exhibitions`;
|
|
29
|
+
USER_EVENTS: `${string}/users/events`;
|
|
30
30
|
REGISTER: "https://api.we-conect.com/v1/register";
|
|
31
31
|
ZOOM: {
|
|
32
32
|
SIGNATURE: string;
|
|
33
33
|
};
|
|
34
|
-
MEETINGS_USERS_API_KEY:
|
|
35
|
-
LOCATION_API_KEY:
|
|
36
|
-
MEETINGS_API_KEY:
|
|
37
|
-
POSTS:
|
|
38
|
-
LINKEDIN_IMPORT_PROFILE:
|
|
39
|
-
ACTIONS_EXHIBITIONS:
|
|
40
|
-
ACTIONS_ATTENDEES:
|
|
41
|
-
YOUTUBE_SDK_API:
|
|
42
|
-
DOCUMENTS:
|
|
43
|
-
ACTIONS_SESSIONS:
|
|
34
|
+
MEETINGS_USERS_API_KEY: `${string}/users/meetings`;
|
|
35
|
+
LOCATION_API_KEY: `${string}/locations`;
|
|
36
|
+
MEETINGS_API_KEY: `${string}/meetings`;
|
|
37
|
+
POSTS: `${string}/posts`;
|
|
38
|
+
LINKEDIN_IMPORT_PROFILE: `${string}/linkedin/authorization`;
|
|
39
|
+
ACTIONS_EXHIBITIONS: `${string}/actions/exhibitions`;
|
|
40
|
+
ACTIONS_ATTENDEES: `${string}/actions/profiles`;
|
|
41
|
+
YOUTUBE_SDK_API: `${string}/sdk/youtube`;
|
|
42
|
+
DOCUMENTS: `${string}/documents`;
|
|
43
|
+
ACTIONS_SESSIONS: `${string}/actions/sessions`;
|
|
44
44
|
TERMS_URL: "https://hubs101.com/terms-of-use";
|
|
45
45
|
PRIVACY_URL: "https://hubs101.com/privacy-policy";
|
|
46
46
|
VERSIONS: "https://api.we-conect.com/versions";
|
|
47
47
|
PASSWORD_ACTIVATION: "https://api.we-conect.com/v1/activation";
|
|
48
|
-
VIMEO_VIEW:
|
|
49
|
-
NOTES:
|
|
50
|
-
MEETINGS_ARRANGE:
|
|
51
|
-
USER_NOTIFICATIONS:
|
|
52
|
-
NOTIFICATIONS:
|
|
53
|
-
GROUPS:
|
|
54
|
-
OPTIONS:
|
|
55
|
-
TICKETS:
|
|
56
|
-
DISCOUNTS:
|
|
57
|
-
LOCATIONS:
|
|
58
|
-
PAGES:
|
|
59
|
-
PORTFOLIOS:
|
|
60
|
-
PAYMENT_ACCOUNTS:
|
|
61
|
-
ACCOUNT_TRIAL:
|
|
62
|
-
INVITATION:
|
|
63
|
-
BOOKINGS:
|
|
64
|
-
PUBLIC_BOOKINGS:
|
|
48
|
+
VIMEO_VIEW: `${string}/sdk/vimeo/mobile`;
|
|
49
|
+
NOTES: `${string}/users/notes`;
|
|
50
|
+
MEETINGS_ARRANGE: `${string}/meetings/arrange`;
|
|
51
|
+
USER_NOTIFICATIONS: `${string}/users/notifications`;
|
|
52
|
+
NOTIFICATIONS: `${string}/notifications`;
|
|
53
|
+
GROUPS: `${string}/groups`;
|
|
54
|
+
OPTIONS: `${string}/options`;
|
|
55
|
+
TICKETS: `${string}/tickets`;
|
|
56
|
+
DISCOUNTS: `${string}/discounts`;
|
|
57
|
+
LOCATIONS: `${string}/locations`;
|
|
58
|
+
PAGES: `${string}/pages`;
|
|
59
|
+
PORTFOLIOS: `${string}/portfolios`;
|
|
60
|
+
PAYMENT_ACCOUNTS: `${string}/payment-account`;
|
|
61
|
+
ACCOUNT_TRIAL: `${string}/accounts/trial`;
|
|
62
|
+
INVITATION: `${string}/invitation`;
|
|
63
|
+
BOOKINGS: `${string}/bookings`;
|
|
64
|
+
PUBLIC_BOOKINGS: `${string}/bookings`;
|
|
65
65
|
}>;
|
|
66
66
|
export declare const API_STAGE_PATH: Readonly<{
|
|
67
|
-
ACCOUNTS:
|
|
68
|
-
ATTENDEES:
|
|
67
|
+
ACCOUNTS: `${string}/accounts`;
|
|
68
|
+
ATTENDEES: `${string}/attendees`;
|
|
69
69
|
AUTH: {
|
|
70
70
|
LOGIN: string;
|
|
71
71
|
LOGOUT: string;
|
|
72
72
|
TOKEN_REFRESH: string;
|
|
73
73
|
RESET_PASSWORD: string;
|
|
74
74
|
};
|
|
75
|
-
CONNECTIONS:
|
|
76
|
-
EVENTS:
|
|
77
|
-
PROFILE:
|
|
78
|
-
USERS:
|
|
79
|
-
SESSIONS:
|
|
80
|
-
TRACKS:
|
|
81
|
-
EXHIBITIONS:
|
|
82
|
-
USER_EVENTS:
|
|
75
|
+
CONNECTIONS: `${string}/users/connections`;
|
|
76
|
+
EVENTS: `${string}/events`;
|
|
77
|
+
PROFILE: `${string}/users/profile`;
|
|
78
|
+
USERS: `${string}/users`;
|
|
79
|
+
SESSIONS: `${string}/sessions`;
|
|
80
|
+
TRACKS: `${string}/tracks`;
|
|
81
|
+
EXHIBITIONS: `${string}/exhibitions`;
|
|
82
|
+
USER_EVENTS: `${string}/users/events`;
|
|
83
83
|
REGISTER: "https://api-staging.hubs101.com/v1/register";
|
|
84
84
|
ZOOM: {
|
|
85
85
|
SIGNATURE: string;
|
|
86
86
|
};
|
|
87
|
-
MEETINGS_USERS_API_KEY:
|
|
88
|
-
LOCATION_API_KEY:
|
|
89
|
-
MEETINGS_API_KEY:
|
|
90
|
-
POSTS:
|
|
91
|
-
LINKEDIN_IMPORT_PROFILE:
|
|
92
|
-
ACTIONS_EXHIBITIONS:
|
|
93
|
-
ACTIONS_ATTENDEES:
|
|
94
|
-
YOUTUBE_SDK_API:
|
|
95
|
-
DOCUMENTS:
|
|
96
|
-
ACTIONS_SESSIONS:
|
|
87
|
+
MEETINGS_USERS_API_KEY: `${string}/users/meetings`;
|
|
88
|
+
LOCATION_API_KEY: `${string}/locations`;
|
|
89
|
+
MEETINGS_API_KEY: `${string}/meetings`;
|
|
90
|
+
POSTS: `${string}/posts`;
|
|
91
|
+
LINKEDIN_IMPORT_PROFILE: `${string}/linkedin/authorization`;
|
|
92
|
+
ACTIONS_EXHIBITIONS: `${string}/actions/exhibitions`;
|
|
93
|
+
ACTIONS_ATTENDEES: `${string}/actions/profiles`;
|
|
94
|
+
YOUTUBE_SDK_API: `${string}/sdk/youtube`;
|
|
95
|
+
DOCUMENTS: `${string}/documents`;
|
|
96
|
+
ACTIONS_SESSIONS: `${string}/actions/sessions`;
|
|
97
97
|
TERMS_URL: "https://hubs101.com/terms-of-use";
|
|
98
98
|
PRIVACY_URL: "https://hubs101.com/privacy-policy";
|
|
99
99
|
VERSIONS: "https://api-staging.hubs101.com/versions";
|
|
100
100
|
PASSWORD_ACTIVATION: "https://api-staging.hubs101.com/v1/activation";
|
|
101
101
|
JITSI_RAW: "https://staging.hubs101.com/virtual-meeting-raw";
|
|
102
|
-
VIMEO_VIEW:
|
|
103
|
-
NOTES:
|
|
104
|
-
MEETINGS_ARRANGE:
|
|
105
|
-
USER_NOTIFICATIONS:
|
|
106
|
-
NOTIFICATIONS:
|
|
107
|
-
GROUPS:
|
|
108
|
-
OPTIONS:
|
|
109
|
-
TICKETS:
|
|
110
|
-
DISCOUNTS:
|
|
111
|
-
LOCATIONS:
|
|
112
|
-
PAGES:
|
|
113
|
-
PORTFOLIOS:
|
|
114
|
-
PAYMENT_ACCOUNTS:
|
|
115
|
-
ACCOUNT_TRIAL:
|
|
116
|
-
INVITATION:
|
|
117
|
-
BOOKINGS:
|
|
118
|
-
PUBLIC_BOOKINGS:
|
|
119
|
-
ACTIONS_EVENTS:
|
|
120
|
-
ACTIONS_ATTENDEE:
|
|
102
|
+
VIMEO_VIEW: `${string}/sdk/vimeo/mobile`;
|
|
103
|
+
NOTES: `${string}/users/notes`;
|
|
104
|
+
MEETINGS_ARRANGE: `${string}/meetings/arrange`;
|
|
105
|
+
USER_NOTIFICATIONS: `${string}/users/notifications`;
|
|
106
|
+
NOTIFICATIONS: `${string}/notifications`;
|
|
107
|
+
GROUPS: `${string}/groups`;
|
|
108
|
+
OPTIONS: `${string}/options`;
|
|
109
|
+
TICKETS: `${string}/tickets`;
|
|
110
|
+
DISCOUNTS: `${string}/discounts`;
|
|
111
|
+
LOCATIONS: `${string}/locations`;
|
|
112
|
+
PAGES: `${string}/pages`;
|
|
113
|
+
PORTFOLIOS: `${string}/portfolios`;
|
|
114
|
+
PAYMENT_ACCOUNTS: `${string}/payment-account`;
|
|
115
|
+
ACCOUNT_TRIAL: `${string}/accounts/trial`;
|
|
116
|
+
INVITATION: `${string}/invitation`;
|
|
117
|
+
BOOKINGS: `${string}/bookings`;
|
|
118
|
+
PUBLIC_BOOKINGS: `${string}/bookings`;
|
|
119
|
+
ACTIONS_EVENTS: `${string}/actions/events`;
|
|
120
|
+
ACTIONS_ATTENDEE: `${string}/actions/attendees`;
|
|
121
121
|
}>;
|
|
122
122
|
export declare const ACTION_NAME: {
|
|
123
123
|
readonly VIEW: "view";
|
package/lib/constants/api.js
CHANGED
|
File without changes
|
package/lib/index.d.ts
CHANGED
|
File without changes
|
package/lib/index.js
CHANGED
|
@@ -15,23 +15,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) ||
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
35
25
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
36
26
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
37
27
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -42,8 +32,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
42
32
|
});
|
|
43
33
|
};
|
|
44
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
|
-
exports.useAPIContext = exports.BaseAPI = void 0;
|
|
46
|
-
exports.EventAPIProvider = EventAPIProvider;
|
|
35
|
+
exports.useAPIContext = exports.BaseAPI = exports.EventAPIProvider = void 0;
|
|
47
36
|
const EventAPIContext_1 = __importStar(require("./api/context/EventAPIContext"));
|
|
48
37
|
/* eslint-disable prefer-arrow/prefer-arrow-functions */
|
|
49
38
|
const react_1 = __importStar(require("react"));
|
|
@@ -1008,10 +997,22 @@ function EventAPIProvider(props) {
|
|
|
1008
997
|
(0, api_1.validateConfig)(config);
|
|
1009
998
|
return (0, event_1._importTickets)(config.baseUrl, config.token, eventId, ticketsList);
|
|
1010
999
|
}), [config, config.baseUrl, config.token]);
|
|
1000
|
+
const fetchColocatedAgenda = (0, react_1.useCallback)((eventId) => __awaiter(this, void 0, void 0, function* () {
|
|
1001
|
+
(0, api_1.validateBaseUrl)(config);
|
|
1002
|
+
return (0, sessions_1._fetchColocatedAgenda)(config.baseUrl, eventId);
|
|
1003
|
+
}), [config, config.baseUrl]);
|
|
1011
1004
|
const fetchPublicEventAdvertisement = (0, react_1.useCallback)((eventId) => __awaiter(this, void 0, void 0, function* () {
|
|
1012
|
-
(0, api_1.
|
|
1005
|
+
(0, api_1.validateBaseUrl)(config);
|
|
1013
1006
|
return (0, event_1._fetchPublicEventAdvertisement)(config.baseUrl, eventId);
|
|
1014
1007
|
}), [config, config.baseUrl]);
|
|
1008
|
+
const activateDataManagers = (0, react_1.useCallback)((eventId, attendeeIds) => __awaiter(this, void 0, void 0, function* () {
|
|
1009
|
+
(0, api_1.validateConfig)(config);
|
|
1010
|
+
return (0, event_1._activateDataManagers)(config.baseUrl, config.token, eventId, attendeeIds);
|
|
1011
|
+
}), [config, config.baseUrl, config.token]);
|
|
1012
|
+
const deactivateDataManagers = (0, react_1.useCallback)((eventId, attendeeIds) => __awaiter(this, void 0, void 0, function* () {
|
|
1013
|
+
(0, api_1.validateConfig)(config);
|
|
1014
|
+
return (0, event_1._deactivateDataManagers)(config.baseUrl, config.token, eventId, attendeeIds);
|
|
1015
|
+
}), [config, config.baseUrl, config.token]);
|
|
1015
1016
|
return (react_1.default.createElement(EventAPIContext_1.default.Provider, { value: {
|
|
1016
1017
|
config,
|
|
1017
1018
|
init,
|
|
@@ -1246,9 +1247,13 @@ function EventAPIProvider(props) {
|
|
|
1246
1247
|
updateGlobalAttendeeImageNative,
|
|
1247
1248
|
fetchEventsByAccount,
|
|
1248
1249
|
importTickets,
|
|
1249
|
-
fetchPublicEventAdvertisement
|
|
1250
|
+
fetchPublicEventAdvertisement,
|
|
1251
|
+
fetchColocatedAgenda,
|
|
1252
|
+
activateDataManagers,
|
|
1253
|
+
deactivateDataManagers,
|
|
1250
1254
|
} }, props.children));
|
|
1251
1255
|
}
|
|
1256
|
+
exports.EventAPIProvider = EventAPIProvider;
|
|
1252
1257
|
exports.BaseAPI = {
|
|
1253
1258
|
fetchEventRegistrations: event_1._fetchEventRegistrations,
|
|
1254
1259
|
fetchExhibitions: event_1._fetchExhibitions,
|
|
@@ -1481,6 +1486,9 @@ exports.BaseAPI = {
|
|
|
1481
1486
|
updateGlobalAttendeeImageNative: attendee_1._updateGlobalAttendeeImageNative,
|
|
1482
1487
|
fetchEventsByAccount: authentication_1._fetchEventsByAccount,
|
|
1483
1488
|
importTickets: event_1._importTickets,
|
|
1484
|
-
fetchPublicEventAdvertisement: event_1._fetchPublicEventAdvertisement
|
|
1489
|
+
fetchPublicEventAdvertisement: event_1._fetchPublicEventAdvertisement,
|
|
1490
|
+
fetchColocatedAgenda: sessions_1._fetchColocatedAgenda,
|
|
1491
|
+
activateDataManagers: event_1._activateDataManagers,
|
|
1492
|
+
deactivateDataManagers: event_1._deactivateDataManagers,
|
|
1485
1493
|
};
|
|
1486
1494
|
exports.useAPIContext = EventAPIContext_1.useAPIContext;
|
package/lib/types/base.d.ts
CHANGED
|
@@ -334,6 +334,9 @@ export type BaseAPIType = {
|
|
|
334
334
|
fetchEventsByAccount: (basePath: string, token: string, accountId: string, params?: string) => Promise<ResponseAccountEventsType>;
|
|
335
335
|
importTickets: (basePath: string, token: string, eventId: string, ticketsList: string[]) => Promise<ResponsePaginationType<TicketServerResponse>>;
|
|
336
336
|
fetchPublicEventAdvertisement: (basePath: string, eventId: string) => Promise<GenericResponseServerType<PublicAdResponse[]>>;
|
|
337
|
+
fetchColocatedAgenda: (basePath: string, eventId: string) => Promise<SessionFull[]>;
|
|
338
|
+
activateDataManagers: (basePath: string, token: string, eventId: string, attendeeIds: string[]) => Promise<Attendee[]>;
|
|
339
|
+
deactivateDataManagers: (basePath: string, token: string, eventId: string, attendeeIds: string[]) => Promise<Attendee[]>;
|
|
337
340
|
};
|
|
338
341
|
export type EventAPIType = {
|
|
339
342
|
config: BaseAPIConfigType;
|
|
@@ -596,6 +599,9 @@ export type EventAPIType = {
|
|
|
596
599
|
fetchEventsByAccount: (accountId: string, params?: string) => Promise<ResponseAccountEventsType>;
|
|
597
600
|
importTickets: (eventId: string, ticketsList: string[]) => Promise<GenericResponseServerType<any[]>>;
|
|
598
601
|
fetchPublicEventAdvertisement: (basePath: string, eventId: string) => Promise<GenericResponseServerType<PublicAdResponse[]>>;
|
|
602
|
+
fetchColocatedAgenda: (eventId: string) => Promise<SessionFull[]>;
|
|
603
|
+
activateDataManagers: (eventId: string, attendeeIds: string[]) => Promise<Attendee[]>;
|
|
604
|
+
deactivateDataManagers: (eventId: string, attendeeIds: string[]) => Promise<Attendee[]>;
|
|
599
605
|
};
|
|
600
606
|
export type BaseAPIConfigType = {
|
|
601
607
|
baseUrl?: string;
|
package/lib/types/base.js
CHANGED
|
File without changes
|
package/lib/utils/api.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export declare const patchRequest: (url: string, token: string, body: any) => Pr
|
|
|
11
11
|
export declare const getRequest: (url: string, token?: string, headers?: any) => Promise<any>;
|
|
12
12
|
export declare const getFormRequest: (url: string, token: string, body: any, headers?: any) => Promise<any>;
|
|
13
13
|
export declare const validateConfig: (config: BaseAPIConfigType) => void;
|
|
14
|
+
export declare const validateBaseUrl: (config: BaseAPIConfigType) => void;
|
|
14
15
|
export declare const postFilesAndDataRequest: (url: string, payload: any, files: {
|
|
15
16
|
value: File;
|
|
16
17
|
name: string;
|
package/lib/utils/api.js
CHANGED
|
@@ -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.patchRequestWe = exports.postRequestJSON = exports.postFileRequestWE = exports.deleteRequestWE = exports.postRequestWE = exports.postRequestWithRetry = exports.postFilesAndDataRequest = exports.validateConfig = exports.getFormRequest = exports.getRequest = exports.patchRequest = exports.putRequest = exports.postFileRequest = exports.deleteRequest = exports.getRequestSimple = exports.postRequestSimple = exports.postRequest = exports.trimUndefined = exports.error400 = void 0;
|
|
12
|
+
exports.patchRequestWe = exports.postRequestJSON = exports.postFileRequestWE = exports.deleteRequestWE = exports.postRequestWE = exports.postRequestWithRetry = exports.postFilesAndDataRequest = exports.validateBaseUrl = exports.validateConfig = exports.getFormRequest = exports.getRequest = exports.patchRequest = exports.putRequest = exports.postFileRequest = exports.deleteRequest = exports.getRequestSimple = exports.postRequestSimple = exports.postRequest = exports.trimUndefined = exports.error400 = void 0;
|
|
13
13
|
exports.error400 = '"status":400';
|
|
14
14
|
const trimUndefined = (obj) => Object.keys(obj).reduce((result, key) => obj[key] === undefined ? result : ((result[key] = obj[key]), result), {});
|
|
15
15
|
exports.trimUndefined = trimUndefined;
|
|
@@ -164,7 +164,7 @@ const postFileRequest = (url, file, param, token) => __awaiter(void 0, void 0, v
|
|
|
164
164
|
return data === null || data === void 0 ? void 0 : data.result;
|
|
165
165
|
});
|
|
166
166
|
exports.postFileRequest = postFileRequest;
|
|
167
|
-
const putRequest = (
|
|
167
|
+
const putRequest = (url, token, body, withoutStatus = true) => __awaiter(void 0, void 0, void 0, function* () {
|
|
168
168
|
let form;
|
|
169
169
|
if (body) {
|
|
170
170
|
form = new FormData();
|
|
@@ -174,7 +174,7 @@ const putRequest = (url_1, token_1, body_1, ...args_1) => __awaiter(void 0, [url
|
|
|
174
174
|
form.append("_method", "put");
|
|
175
175
|
}
|
|
176
176
|
const response = yield fetch(url, {
|
|
177
|
-
method: "POST",
|
|
177
|
+
method: "POST",
|
|
178
178
|
headers: {
|
|
179
179
|
accept: "application/json",
|
|
180
180
|
Authorization: `Bearer ${token}`,
|
|
@@ -204,7 +204,7 @@ const patchRequest = (url, token, body) => __awaiter(void 0, void 0, void 0, fun
|
|
|
204
204
|
form.append("_method", "patch");
|
|
205
205
|
}
|
|
206
206
|
const response = yield fetch(url, {
|
|
207
|
-
method: "POST",
|
|
207
|
+
method: "POST",
|
|
208
208
|
headers: {
|
|
209
209
|
accept: "application/json",
|
|
210
210
|
"Content-Type": "multipart/form-data",
|
|
@@ -271,8 +271,14 @@ const validateConfig = (config) => {
|
|
|
271
271
|
}
|
|
272
272
|
};
|
|
273
273
|
exports.validateConfig = validateConfig;
|
|
274
|
+
const validateBaseUrl = (config) => {
|
|
275
|
+
if (!config.baseUrl) {
|
|
276
|
+
throw Error("Base url not set");
|
|
277
|
+
}
|
|
278
|
+
};
|
|
279
|
+
exports.validateBaseUrl = validateBaseUrl;
|
|
274
280
|
const postFilesAndDataRequest = (url, payload, files, token, method) => __awaiter(void 0, void 0, void 0, function* () {
|
|
275
|
-
var
|
|
281
|
+
var _c, _d;
|
|
276
282
|
const getFormData = (object) => Object.keys(object).reduce((form, key) => {
|
|
277
283
|
form.append(key, object[key]);
|
|
278
284
|
return form;
|
|
@@ -312,7 +318,7 @@ const postFilesAndDataRequest = (url, payload, files, token, method) => __awaite
|
|
|
312
318
|
}
|
|
313
319
|
if (data.status === 400 && data.invalid_fields) {
|
|
314
320
|
// eslint-disable-next-line @typescript-eslint/no-base-to-string
|
|
315
|
-
throw new Error((
|
|
321
|
+
throw new Error((_c = Object.values(data === null || data === void 0 ? void 0 : data.invalid_fields)) === null || _c === void 0 ? void 0 : _c.join(", "));
|
|
316
322
|
}
|
|
317
323
|
const isSuccess = (data === null || data === void 0 ? void 0 : data.status) >= 200 && (data === null || data === void 0 ? void 0 : data.status) <= 299;
|
|
318
324
|
if (!isSuccess && !(data === null || data === void 0 ? void 0 : data.result)) {
|
|
@@ -321,7 +327,7 @@ const postFilesAndDataRequest = (url, payload, files, token, method) => __awaite
|
|
|
321
327
|
if (!isSuccess && data.message) {
|
|
322
328
|
throw new Error(data.message);
|
|
323
329
|
}
|
|
324
|
-
return (
|
|
330
|
+
return (_d = data === null || data === void 0 ? void 0 : data.result) !== null && _d !== void 0 ? _d : data === null || data === void 0 ? void 0 : data.message;
|
|
325
331
|
});
|
|
326
332
|
exports.postFilesAndDataRequest = postFilesAndDataRequest;
|
|
327
333
|
const postRequestWithRetry = (url, body, token, headers, retries) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -352,7 +358,7 @@ const postRequestWithRetry = (url, body, token, headers, retries) => __awaiter(v
|
|
|
352
358
|
});
|
|
353
359
|
exports.postRequestWithRetry = postRequestWithRetry;
|
|
354
360
|
const postRequestWE = (url, body, token, headers) => __awaiter(void 0, void 0, void 0, function* () {
|
|
355
|
-
var
|
|
361
|
+
var _e;
|
|
356
362
|
let form;
|
|
357
363
|
if (body) {
|
|
358
364
|
if (headers &&
|
|
@@ -380,7 +386,7 @@ const postRequestWE = (url, body, token, headers) => __awaiter(void 0, void 0, v
|
|
|
380
386
|
throw new Error("errors.api-40900000");
|
|
381
387
|
}
|
|
382
388
|
if (data.status === 400 && data.invalid_fields) {
|
|
383
|
-
throw new Error((
|
|
389
|
+
throw new Error((_e = Object.values(data === null || data === void 0 ? void 0 : data.invalid_fields)) === null || _e === void 0 ? void 0 : _e.toString());
|
|
384
390
|
}
|
|
385
391
|
if (String(data.status).startsWith("4")) {
|
|
386
392
|
throw new Error(data.message);
|
|
@@ -425,7 +431,7 @@ const postFileRequestWE = (url, file, param, token) => __awaiter(void 0, void 0,
|
|
|
425
431
|
});
|
|
426
432
|
exports.postFileRequestWE = postFileRequestWE;
|
|
427
433
|
const postRequestJSON = (url, body, token, headers) => __awaiter(void 0, void 0, void 0, function* () {
|
|
428
|
-
var
|
|
434
|
+
var _f;
|
|
429
435
|
let form;
|
|
430
436
|
if (body) {
|
|
431
437
|
if ((headers &&
|
|
@@ -456,7 +462,7 @@ const postRequestJSON = (url, body, token, headers) => __awaiter(void 0, void 0,
|
|
|
456
462
|
throw new Error("errors.api-40900000");
|
|
457
463
|
}
|
|
458
464
|
if (data.status === 400 && data.invalid_fields) {
|
|
459
|
-
throw new Error((
|
|
465
|
+
throw new Error((_f = Object.values(data === null || data === void 0 ? void 0 : data.invalid_fields)) === null || _f === void 0 ? void 0 : _f.toString());
|
|
460
466
|
}
|
|
461
467
|
if (String(data.status).startsWith("4")) {
|
|
462
468
|
throw new Error(data.message);
|
package/lib/utils/base.d.ts
CHANGED
|
File without changes
|
package/lib/utils/base.js
CHANGED
|
@@ -37,7 +37,7 @@ const getBasePath = (basePath) => {
|
|
|
37
37
|
LINKEDIN_IMPORT_PROFILE: `${authorizedBasePath}/linkedin/authorization`,
|
|
38
38
|
ACTIONS_EXHIBITIONS: `${authorizedBasePath}/actions/exhibitions`,
|
|
39
39
|
ACTIONS_ATTENDEES: `${authorizedBasePath}/actions/profiles`,
|
|
40
|
-
YOUTUBE_SDK_API: `${authorizedBasePath}/sdk/zoom/youtube`,
|
|
40
|
+
YOUTUBE_SDK_API: `${authorizedBasePath}/sdk/zoom/youtube`,
|
|
41
41
|
DOCUMENTS: `${authorizedBasePath}/documents`,
|
|
42
42
|
LOCATIONS: `${authorizedBasePath}/locations`,
|
|
43
43
|
PAGES: `${authorizedBasePath}/pages`,
|
package/lib/utils/hooks.d.ts
CHANGED
|
File without changes
|
package/lib/utils/hooks.js
CHANGED
|
File without changes
|