@hubs101/js-api-skd-client 1.0.10528 → 1.0.10530
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 +1 -0
- package/lib/api/attendee/index.js +8 -1
- package/lib/api/authentication/index.d.ts +2 -2
- package/lib/api/event/index.d.ts +3 -2
- package/lib/api/event/index.js +9 -3
- package/lib/api/event/types.d.ts +48 -1
- package/lib/index.js +16 -4
- package/lib/types/base.d.ts +10 -6
- package/package.json +1 -1
|
@@ -40,3 +40,4 @@ 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 _fetchAttendeeDetails: (basePath: string, token: string, attendeeId: string) => Promise<AttendeeProfile>;
|
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports._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._fetchAttendeeDetails = exports._updateVisibilityAttendee = exports._showAttendee = exports._hideAttendee = exports._resendWelcomeEmail = exports._addOnsiteAttendee = exports._removeOnsiteAttendee = exports._checkAvailabilityAttendee = exports._resendConfirmationEmail = exports._confirmAttendee = exports._deleteAllUserNotifications = exports._deleteUserNotification = exports._markUserNotificationAsRead = exports._fetchUserNotifications = exports._deleteNote = exports._updateNote = exports._createNote = exports._fetchMyNotes = exports._reportAttendeeAction = exports._importProfileFromLinkedIn = exports._createAttendee = exports._sendAttendeeOnboardingAnswers = exports._checkout = exports._checkIn = exports._confirmMyEventInvitation = exports._unpinAttendee = exports._pinAttendee = exports._removeConnection = exports._addConnection = exports._fetchMyConnections = exports._updateGlobalAttendee = exports._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,10 @@ const _updateVisibilityAttendee = (basePath, token, attendeeId, visibility) => _
|
|
|
247
247
|
return response;
|
|
248
248
|
});
|
|
249
249
|
exports._updateVisibilityAttendee = _updateVisibilityAttendee;
|
|
250
|
+
const _fetchAttendeeDetails = (basePath, token, attendeeId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
251
|
+
var _a;
|
|
252
|
+
const base = (0, base_1.getBasePath)(basePath);
|
|
253
|
+
const attendee = yield (0, api_1.getRequest)(`${base.ATTENDEES}/${attendeeId}`, token);
|
|
254
|
+
return ((_a = attendee === null || attendee === void 0 ? void 0 : attendee.data) === null || _a === void 0 ? void 0 : _a.data) || (attendee === null || attendee === void 0 ? void 0 : attendee.data) || attendee;
|
|
255
|
+
});
|
|
256
|
+
exports._fetchAttendeeDetails = _fetchAttendeeDetails;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LoginResponse, ResetPasswordBody, SendResetPasswordBody } from "../context/types";
|
|
2
2
|
import { ColocatedEventsGroupInputType, ColocatedEventsGroupType, GroupInputType, GroupResponseType, PackageType, RegisterManagerInput, ResponseAccountEventsType } from "./types";
|
|
3
3
|
import { APIResponse } from "../../types/base";
|
|
4
|
-
import { GroupType } from "../event/types";
|
|
4
|
+
import { AccountDetails, GroupType } from "../event/types";
|
|
5
5
|
import { ResponsePaginationType } from "../public/types";
|
|
6
6
|
export declare const _login: (basePath: string, email: string, password: string) => Promise<LoginResponse>;
|
|
7
7
|
export declare const _logout: (basePath: string, token: string) => Promise<APIResponse>;
|
|
@@ -30,4 +30,4 @@ export declare const _editColocatedEvents: (basePath: string, token: string, id:
|
|
|
30
30
|
export declare const _deleteColocatedEvents: (basePath: string, token: string, id: string) => Promise<string>;
|
|
31
31
|
export declare const _updatePackages: (basePath: string, token: string, accountId: string, data: {
|
|
32
32
|
packages: PackageType[];
|
|
33
|
-
}) => Promise<
|
|
33
|
+
}) => Promise<AccountDetails>;
|
package/lib/api/event/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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
1
|
import { GenericResponseServerType, ResponsePaginationType, ResponseServerType } from "../public/types";
|
|
2
|
+
import { ExhibitionReport, FetchCurrentEventAttendeesActionsResponse } from "../types";
|
|
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
5
|
import { Page } from "../pages/types";
|
|
6
6
|
export declare const _fetchEventRegistrations: (basePath: string, token: string, eventId: string) => Promise<EventRegistration[]>;
|
|
@@ -41,6 +41,7 @@ export declare const _fetchUserRegistrationsEvents: (basePath: string, token: st
|
|
|
41
41
|
export declare const _fetchEventDocuments: (basePath: string, token: string, eventId: string) => Promise<DocumentType[]>;
|
|
42
42
|
export declare const _assignDocumentToEvent: (basePath: string, token: string, eventId: string, documentId: string) => Promise<any>;
|
|
43
43
|
export declare const _createDocument: (basePath: string, token: string, files: any, data: any) => Promise<any>;
|
|
44
|
+
export declare const _createExhibitionDocument: (basePath: string, token: string, exhibitionId: string, files: any, data: any) => Promise<any>;
|
|
44
45
|
export declare const _updateDocument: (basePath: string, token: string, documentId: string, data: any) => Promise<any>;
|
|
45
46
|
export declare const _deleteDocument: (basePath: string, token: string, documentId: string) => Promise<any>;
|
|
46
47
|
export declare const _reportExhibitionAction: (basePath: string, token: string, exhibitionId: string, requestData: ExhibitionReport) => Promise<void>;
|
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 = exports._fetchMediaDirectories = exports._deletePortfolioBlogPage = void 0;
|
|
12
|
+
exports._resendBookingEmail = exports._resendTicketEmail = exports._fetchEventAttendeeActions = 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
|
+
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 = exports._checkBooking = void 0;
|
|
14
|
+
exports._updateEventWebsite = exports._addMediaFolder = exports._deleteMediaDirectoryFiles = exports._deleteMediaDirectories = exports._renameFolder = exports._uploadImageToFolder = exports._fetchMediaFileDetails = exports._fetchMediaDirectoryFiles = exports._fetchMediaDirectories = exports._deletePortfolioBlogPage = exports._updatePortfolioBlogPage = 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* () {
|
|
@@ -252,6 +252,12 @@ const _createDocument = (basePath, token, files, data) => __awaiter(void 0, void
|
|
|
252
252
|
return response;
|
|
253
253
|
});
|
|
254
254
|
exports._createDocument = _createDocument;
|
|
255
|
+
const _createExhibitionDocument = (basePath, token, exhibitionId, files, data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
256
|
+
const base = (0, base_1.getBasePath)(basePath);
|
|
257
|
+
const { data: response } = yield (0, api_1.postFilesAndDataRequest)(`${base.EXHIBITIONS}/${exhibitionId}/documents`, data, files, token);
|
|
258
|
+
return response;
|
|
259
|
+
});
|
|
260
|
+
exports._createExhibitionDocument = _createExhibitionDocument;
|
|
255
261
|
const _updateDocument = (basePath, token, documentId, data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
256
262
|
const base = (0, base_1.getBasePath)(basePath);
|
|
257
263
|
const response = yield (0, api_1.postFilesAndDataRequest)(`${base.DOCUMENTS}/${documentId}`, data, [], token, "put");
|
package/lib/api/event/types.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Attendee } from "../attendee/types";
|
|
1
|
+
import { Attendee, Contact } from "../attendee/types";
|
|
2
|
+
import { PackageType } from "../authentication/types";
|
|
2
3
|
import { Address } from "../types";
|
|
3
4
|
export type UrlType = "internal" | "external";
|
|
4
5
|
export type VideoType = "vimeo" | "youtube" | "zoom" | "jitsi";
|
|
@@ -398,6 +399,52 @@ export type Account = {
|
|
|
398
399
|
address: Address;
|
|
399
400
|
images: Images;
|
|
400
401
|
};
|
|
402
|
+
export type GeneralUser = {
|
|
403
|
+
user: string;
|
|
404
|
+
profile: string;
|
|
405
|
+
email: string;
|
|
406
|
+
first_name: string;
|
|
407
|
+
last_name: string;
|
|
408
|
+
};
|
|
409
|
+
/**
|
|
410
|
+
* /accounts/{accountId}
|
|
411
|
+
*/
|
|
412
|
+
export type AccountDetails = {
|
|
413
|
+
id: string;
|
|
414
|
+
name: string;
|
|
415
|
+
slug: string;
|
|
416
|
+
is_test: boolean;
|
|
417
|
+
booking_enabled: boolean;
|
|
418
|
+
about: string;
|
|
419
|
+
chat: {
|
|
420
|
+
host: string;
|
|
421
|
+
apiKey: string;
|
|
422
|
+
apiUser: string;
|
|
423
|
+
secret: string;
|
|
424
|
+
};
|
|
425
|
+
stream: {
|
|
426
|
+
zoomApiKey: string;
|
|
427
|
+
zoomApiSecret: string;
|
|
428
|
+
zoomHost: string;
|
|
429
|
+
};
|
|
430
|
+
content_managers: GeneralUser[];
|
|
431
|
+
finance_managers: string[];
|
|
432
|
+
owner: GeneralUser;
|
|
433
|
+
address: Address;
|
|
434
|
+
images: Images;
|
|
435
|
+
contact: Contact;
|
|
436
|
+
booking_setting: {
|
|
437
|
+
defaultTax: string;
|
|
438
|
+
currencyConversionRate: string;
|
|
439
|
+
};
|
|
440
|
+
tags: string[];
|
|
441
|
+
links: {
|
|
442
|
+
name: string;
|
|
443
|
+
url: string;
|
|
444
|
+
lang: string;
|
|
445
|
+
}[];
|
|
446
|
+
packages: PackageType[];
|
|
447
|
+
};
|
|
401
448
|
export type Images = {
|
|
402
449
|
picture: string;
|
|
403
450
|
logo: string;
|
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");
|
|
54
55
|
const calendar_1 = require("./api/calendar");
|
|
55
56
|
const meetings_1 = require("./api/meetings");
|
|
56
|
-
const
|
|
57
|
+
const public_1 = require("./api/public");
|
|
57
58
|
const sessions_1 = require("./api/sessions");
|
|
58
59
|
const tracks_1 = require("./api/tracks");
|
|
59
|
-
const public_1 = require("./api/public");
|
|
60
60
|
const pages_1 = require("./api/pages");
|
|
61
|
-
const hooks_1 = require("./utils/hooks");
|
|
62
61
|
const api_1 = require("./utils/api");
|
|
62
|
+
const hooks_1 = require("./utils/hooks");
|
|
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* () {
|
|
@@ -391,6 +391,10 @@ function EventAPIProvider(props) {
|
|
|
391
391
|
(0, api_1.validateConfig)(config);
|
|
392
392
|
return (0, event_1._createDocument)(config.baseUrl, config.token, files, data);
|
|
393
393
|
}), [config, config.baseUrl, config.token]);
|
|
394
|
+
const createExhibitionDocument = (0, react_1.useCallback)((exhibitionId, files, data) => __awaiter(this, void 0, void 0, function* () {
|
|
395
|
+
(0, api_1.validateConfig)(config);
|
|
396
|
+
return (0, event_1._createExhibitionDocument)(config.baseUrl, config.token, exhibitionId, files, data);
|
|
397
|
+
}), [config, config.baseUrl, config.token]);
|
|
394
398
|
const createTrack = (0, react_1.useCallback)((data) => __awaiter(this, void 0, void 0, function* () {
|
|
395
399
|
(0, api_1.validateConfig)(config);
|
|
396
400
|
return (0, tracks_1._createTrack)(config.baseUrl, config.token, data);
|
|
@@ -976,6 +980,10 @@ function EventAPIProvider(props) {
|
|
|
976
980
|
(0, api_1.validateConfig)(config);
|
|
977
981
|
return (0, event_1._renameFolder)(config.baseUrl, config.token, accountId, path, name_old, name_new);
|
|
978
982
|
}), [config, config.baseUrl, config.token]);
|
|
983
|
+
const fetchAttendeeDetails = (0, react_1.useCallback)((attendeeId) => __awaiter(this, void 0, void 0, function* () {
|
|
984
|
+
(0, api_1.validateConfig)(config);
|
|
985
|
+
return (0, attendee_1._fetchAttendeeDetails)(config.baseUrl, config.token, attendeeId);
|
|
986
|
+
}), [config, config.baseUrl, config.token]);
|
|
979
987
|
const updatePackages = (0, react_1.useCallback)((accountId, data) => __awaiter(this, void 0, void 0, function* () {
|
|
980
988
|
(0, api_1.validateConfig)(config);
|
|
981
989
|
return (0, authentication_1._updatePackages)(config.baseUrl, config.token, accountId, data);
|
|
@@ -1055,6 +1063,7 @@ function EventAPIProvider(props) {
|
|
|
1055
1063
|
createLocation,
|
|
1056
1064
|
deleteDocument,
|
|
1057
1065
|
createDocument,
|
|
1066
|
+
createExhibitionDocument,
|
|
1058
1067
|
assignDocumentToEvent,
|
|
1059
1068
|
updateDocument,
|
|
1060
1069
|
createTrack,
|
|
@@ -1206,6 +1215,7 @@ function EventAPIProvider(props) {
|
|
|
1206
1215
|
fetchMediaFileDetails,
|
|
1207
1216
|
uploadImageToFolder,
|
|
1208
1217
|
renameFolder,
|
|
1218
|
+
fetchAttendeeDetails,
|
|
1209
1219
|
updatePackages
|
|
1210
1220
|
} }, props.children));
|
|
1211
1221
|
}
|
|
@@ -1279,6 +1289,7 @@ exports.BaseAPI = {
|
|
|
1279
1289
|
deleteLocation: event_1._deleteLocation,
|
|
1280
1290
|
deleteDocument: event_1._deleteDocument,
|
|
1281
1291
|
createDocument: event_1._createDocument,
|
|
1292
|
+
createExhibitionDocument: event_1._createExhibitionDocument,
|
|
1282
1293
|
assignDocumentToEvent: event_1._assignDocumentToEvent,
|
|
1283
1294
|
updateDocument: event_1._updateDocument,
|
|
1284
1295
|
createTrack: tracks_1._createTrack,
|
|
@@ -1433,6 +1444,7 @@ exports.BaseAPI = {
|
|
|
1433
1444
|
fetchMediaFileDetails: event_1._fetchMediaFileDetails,
|
|
1434
1445
|
uploadImageToFolder: event_1._uploadImageToFolder,
|
|
1435
1446
|
renameFolder: event_1._renameFolder,
|
|
1436
|
-
|
|
1447
|
+
fetchAttendeeDetails: attendee_1._fetchAttendeeDetails,
|
|
1448
|
+
updatePackages: authentication_1._updatePackages,
|
|
1437
1449
|
};
|
|
1438
1450
|
exports.useAPIContext = EventAPIContext_1.useAPIContext;
|
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";
|
|
2
1
|
import { Attendee, AttendeeInput, AttendeeProfile, Note, NoteUpdateInput, UserNotification } from "../api/attendee/types";
|
|
3
|
-
import { AttendeeReport, ExhibitionReport, FetchCurrentEventAttendeesActionsResponse, SessionReport, SuccessResponse } from "../api/types";
|
|
4
2
|
import { ColocatedEventsGroupInputType, ColocatedEventsGroupType, GroupInputType, GroupResponseType, PackageType, PublicGroupResponseType, RegisterManagerInput, ResponseAccountEventsType } from "../api/authentication/types";
|
|
5
|
-
import {
|
|
3
|
+
import { LoginResponse, SendResetPasswordBody } from "../api/context/types";
|
|
4
|
+
import { Account, AccountDetails, 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";
|
|
6
5
|
import { EventMeetingStatisticsItem, MeetingItem } from "../api/meetings/types";
|
|
6
|
+
import { CommentBody, Post, PostBody, UpdatePostBody } from "../api/posts/types";
|
|
7
7
|
import { GenericResponseServerType, PublicEventItem, ResponsePaginationType, ResponseServerType } from "../api/public/types";
|
|
8
|
-
import { LoginResponse, SendResetPasswordBody } from "../api/context/types";
|
|
9
8
|
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";
|
|
@@ -145,6 +145,7 @@ export type BaseAPIType = {
|
|
|
145
145
|
deleteDocument: (basePath: string, token: string, documentId: string) => Promise<any>;
|
|
146
146
|
updateDocument: (basePath: string, token: string, documentId: string, data: any) => Promise<any>;
|
|
147
147
|
createDocument: (basePath: string, token: string, files: any, data: any) => Promise<any>;
|
|
148
|
+
createExhibitionDocument: (basePath: string, token: string, exhibitionId: string, files: any, data: any) => Promise<any>;
|
|
148
149
|
assignDocumentToEvent: (basePath: string, token: string, eventId: string, documentId: string) => Promise<any>;
|
|
149
150
|
createTrack: (basePath: string, token: string, data: any) => Promise<any>;
|
|
150
151
|
updateTrack: (basePath: string, token: string, trackId: string, data: any) => Promise<any>;
|
|
@@ -323,9 +324,10 @@ export type BaseAPIType = {
|
|
|
323
324
|
fetchMediaFileDetails: (basePath: string, token: string, accountId: string, filepath: string) => Promise<FileDetails>;
|
|
324
325
|
uploadImageToFolder: (basePath: string, token: string, accountId: string, folderPath: string, fileName: string, blob: Blob) => Promise<APIResponse>;
|
|
325
326
|
renameFolder: (basePath: string, token: string, accountId: string, path: string, name_old: string, name_new: string) => Promise<APIResponse>;
|
|
327
|
+
fetchAttendeeDetails: (basePath: string, token: string, attendeeId: string) => Promise<AttendeeProfile>;
|
|
326
328
|
updatePackages: (basePath: string, token: string, accountId: string, data: {
|
|
327
329
|
packages: PackageType[];
|
|
328
|
-
}) => Promise<
|
|
330
|
+
}) => Promise<AccountDetails>;
|
|
329
331
|
};
|
|
330
332
|
export type EventAPIType = {
|
|
331
333
|
config: BaseAPIConfigType;
|
|
@@ -402,6 +404,7 @@ export type EventAPIType = {
|
|
|
402
404
|
deleteDocument: (documentId: string) => Promise<any>;
|
|
403
405
|
updateDocument: (documentId: string, data: any) => Promise<any>;
|
|
404
406
|
createDocument: (files: any, data: any) => Promise<any>;
|
|
407
|
+
createExhibitionDocument: (exhibitionId: string, files: any, data: any) => Promise<any>;
|
|
405
408
|
assignDocumentToEvent: (eventId: string, documentId: string) => Promise<any>;
|
|
406
409
|
createTrack: (data: any) => Promise<any>;
|
|
407
410
|
updateTrack: (trackId: string, data: any) => Promise<any>;
|
|
@@ -577,9 +580,10 @@ export type EventAPIType = {
|
|
|
577
580
|
fetchMediaFileDetails: (accountId: string, filepath: string) => Promise<FileDetails>;
|
|
578
581
|
uploadImageToFolder: (accountId: string, folderPath: string, fileName: string, blob: Blob) => Promise<APIResponse>;
|
|
579
582
|
renameFolder: (accountId: string, path: string, name_old: string, name_new: string) => Promise<APIResponse>;
|
|
583
|
+
fetchAttendeeDetails: (attendeeId: string) => Promise<AttendeeProfile>;
|
|
580
584
|
updatePackages: (accountId: string, data: {
|
|
581
585
|
packages: PackageType[];
|
|
582
|
-
}) => Promise<
|
|
586
|
+
}) => Promise<AccountDetails>;
|
|
583
587
|
};
|
|
584
588
|
export type BaseAPIConfigType = {
|
|
585
589
|
baseUrl?: string;
|