@hubs101/js-api-skd-client
Version:
Package for easy access to Event App API
618 lines (617 loc) • 61.3 kB
TypeScript
import { Attendee, AttendeeInput, AttendeeProfile, Note, NoteUpdateInput, UserNotification } from "../api/attendee/types";
import { ColocatedEventDetailsResponse, ColocatedEventsGroupInputType, ColocatedEventsGroupType, GroupInputType, GroupResponseType, PackageType, PublicGroupResponseType, RegisterManagerInput, ResponseAccountEventsType, SessionType, FeedType, FeedInputType, FeedDetailsType } from "../api/authentication/types";
import { LoginResponse, SendResetPasswordBody } from "../api/context/types";
import { Account, AccountDetails, AccountInput, BlogPage, BlogPageInput, Booking, BookingDetails, CreateOfferInput, Directory, DirectoryFiles, DiscountServerResponse, DocumentType, Event, EventLocation, EventSpeaker, EventRegistration, EventServerResponse, EventStream, Exhibition, ExhibitionInput, ExhibitionBulkUpdateInput, FaqInput, FileDetails, GroupServerResponse, GroupType, KeyTopicInput, KeyTopicResponse, OfferServerResponse, SpeakerAdvertInput, SessionBulkUpdateInput, OnsiteInput, OptionServerResponse, Portfolio, PortfolioInput, Blog, BlogInput, StatisticInput, StatisticResponse, Stream, StreamInput, TestimonialInput, TestimonialResponse, TicketServerResponse, UserRegistrationsEvent, ZoomParams } from "../api/event/types";
import { EventMeetingStatisticsItem, MeetingItem } from "../api/meetings/types";
import { CommentBody, Post, PostBody, UpdatePostBody } from "../api/posts/types";
import { GenericResponseServerType, PublicAdResponse, PublicEventItem, ResponsePaginationType, ResponseServerType } from "../api/public/types";
import { Session, SessionFull, SessionInput } from "../api/sessions/types";
import { AttendeeReport, ExhibitionReport, FetchCurrentEventAttendeesActionsResponse, SessionReport, SuccessResponse } from "../api/types";
import { CalendarEvent } from "../api/calendar/types";
import { Page } from "../api/pages/types";
import { Track } from "../api/tracks/types";
export type ClientBase = {
ACCOUNTS: string;
ADMIN: string;
ATTENDEES: string;
AUTH: {
LOGIN: string;
LOGOUT: string;
TOKEN_REFRESH: string;
RESET_PASSWORD: string;
};
CONNECTIONS: string;
EVENTS: string;
PROFILE: string;
USERS: string;
SESSIONS: string;
TRACKS: string;
EXHIBITIONS: string;
USER_EVENTS: string;
REGISTER: string;
ZOOM: {
SIGNATURE: string;
CLIENT: string;
};
MEETINGS_USERS_API_KEY: string;
LOCATION_API_KEY: string;
MEETINGS_API_KEY: string;
POSTS: string;
LINKEDIN_IMPORT_PROFILE: string;
ACTIONS_EXHIBITIONS: string;
ACTIONS_ATTENDEES: string;
YOUTUBE_SDK_API: string;
YOUTUBE: string;
DOCUMENTS: string;
ACTIONS_SESSIONS: string;
TERMS_URL: string;
PRIVACY_URL: string;
VERSIONS: string;
PASSWORD_ACTIVATION: string;
VIMEO_VIEW: string;
NOTES: string;
MEETINGS_ARRANGE: string;
USER_NOTIFICATIONS: string;
NOTIFICATIONS: string;
GROUPS: string;
OPTIONS: string;
TICKETS: string;
DISCOUNTS: string;
PUBLIC_EVENTS: string;
PUBLIC_ACCOUNTS: string;
PUBLIC_GROUPS: string;
PUBLIC_OFFERS: string;
PUBLIC_OFFERS_UPLOAD: string;
LOCATIONS: string;
PAGES: string;
PAYMENT_ACCOUNTS: string;
STREAMS: string;
ACCOUNT_TRIAL: string;
INVITATION: string;
PUBLIC_INVITATIONS: string;
PUBLIC_TICKETS: string;
BOOKINGS: string;
PUBLIC_BOOKINGS: string;
ACTIONS_EVENTS: string;
ACTIONS_ATTENDEE: string;
PORTFOLIOS: string;
BLOGS: string;
};
export type BaseAPIType = {
addPostNative: (basePath: string, token: string, body: FormData) => Promise<Post>;
createOffer: (basePath: string, token: string, accountId: string, body: CreateOfferInput, files: any[]) => Promise<OfferServerResponse>;
fetchOffers: (basePath: string, token: string, accountId: string, params?: string) => Promise<OfferServerResponse[]>;
fetchOfferDetails: (basePath: string, token: string, accountId: string, offerId: string) => Promise<OfferServerResponse>;
updateOffer: (basePath: string, token: string, accountId: string, offerId: string, body: CreateOfferInput, files: any[]) => Promise<OfferServerResponse>;
sendOffer: (basePath: string, token: string, accountId: string, offerId: string) => Promise<{
message: string;
}>;
approveOffer: (basePath: string, token: string, accountId: string, offerId: string) => Promise<OfferServerResponse>;
fetchEventSpeakers: (basePath: string, token: string, eventId: string) => Promise<EventSpeaker[]>;
fetchEventRegistrations: (basePath: string, token: string, eventId: string) => Promise<EventRegistration[]>;
fetchExhibitions: (basePath: string, token: string, eventId: string) => Promise<Exhibition[]>;
fetchEventDetails: (basePath: string, token: string, eventId: string) => Promise<Event>;
fetchExhibitionDetails: (basePath: string, token: string, exhibitorId: string) => Promise<Exhibition>;
fetchEventLocations: (basePath: string, token: string, eventId: string) => Promise<EventLocation[]>;
fetchEventStreams: (basePath: string, token: string, eventId: string) => Promise<EventStream[]>;
fetchUserRegistrationsEvents: (basePath: string, token: string) => Promise<UserRegistrationsEvent[]>;
fetchEventDocuments: (basePath: string, token: string, eventId: string) => Promise<DocumentType[]>;
reportExhibitionAction: (basePath: string, token: string, exhibitionId: string, requestData: ExhibitionReport) => Promise<void>;
pinDocument: (basePath: string, token: string, eventId: string, documentId: string) => Promise<boolean>;
unpinDocument: (basePath: string, token: string, eventId: string, documentId: string) => Promise<boolean>;
pinExhibition: (basePath: string, token: string, exhibitionId: string) => Promise<boolean>;
unpinExhibition: (basePath: string, token: string, exhibitionId: string) => Promise<boolean>;
getPublicRegistrationForm: (basePath: string, eventId: string) => Promise<any>;
fetchEventGroups: (basePath: string, token: string, eventId: string) => Promise<GroupServerResponse[]>;
fetchPublicEventGroups: (basePath: string, eventId: string) => Promise<GroupServerResponse[]>;
deleteMediaDirectories: (basePath: string, token: string, accountId: string, path: string, name: string) => Promise<APIResponse>;
addMediaFolder: (basePath: string, token: string, accountId: string, path: string, name: string) => Promise<APIResponse>;
updateEventWebsite: (basePath: string, token: string, eventId: string, keyData: string, data: {
website_content: Record<string, string | boolean | File>[];
}, files?: any) => Promise<EventServerResponse>;
deleteMediaDirectoryFiles: (basePath: string, token: string, accountId: string, filepath: string) => Promise<APIResponse>;
updateAccountGroup: (basePath: string, token: string, accountId: string, groupId: string, data: GroupInputType) => Promise<GroupResponseType>;
fetchAccountGroups: (basePath: string, token: string, accountId: string, type: GroupType) => Promise<ResponsePaginationType<GroupResponseType>>;
fetchEventAttendeeActions: (basePath: string, token: string, eventId: string) => Promise<ResponseServerType<FetchCurrentEventAttendeesActionsResponse[]>>;
fetchAccountBookings: (basePath: string, token: string, accountId: string, params?: string) => Promise<ResponsePaginationType<Booking>>;
fetchAccountDocuments: (basePath: string, token: string, accountId: string, params?: string) => Promise<ResponsePaginationType<DocumentType>>;
fetchAccountProfiles: (basePath: string, token: string, accountId: string, params?: string) => Promise<ResponsePaginationType<AttendeeProfile>>;
resendTicketEmail: (basePath: string, token: string, ticketId: string) => Promise<any>;
resendBookingEmail: (basePath: string, token: string, bookingId: string) => Promise<any>;
postTicketDetails: (basePath: string, eventId: string, profileId: string, access: string, body: any) => Promise<any>;
confirmAttendee: (basePath: string, token: string, attendeeId: string, data: any) => Promise<any>;
checkBooking: (basePath: string, body: any, lang: string) => Promise<any>;
createBooking: (basePath: string, body: any, lang: string) => Promise<any>;
fetchEventOrderedTickets: (basePath: string, token: string, eventId: string) => Promise<any>;
acceptInternTicket: (basePath: string, token: string, ticketId: string, body: any) => Promise<any>;
fetchTickets: (basePath: string, token: string) => Promise<ResponsePaginationType<BookingDetails>>;
fetchMyBookings: (basePath: string, token: string) => Promise<ResponsePaginationType<Booking>>;
assignTicket: (basePath: string, token: string, bookingId: string, ticketId: string, data: any) => Promise<any>;
acceptTicket: (basePath: string, ticketId: string, access: string, body: any) => Promise<any>;
fetchTicketDetails: (basePath: string, eventId: string, profileId: string, access: string) => Promise<ResponsePaginationType<BookingDetails>>;
fetchEventBookings: (basePath: string, token: string, eventId: string) => Promise<ResponsePaginationType<Booking>>;
confirmBooking: (basePath: string, token: string, bookingId: string) => Promise<ResponsePaginationType<Booking>>;
createFreeTrialAccount: (basePath: string, token: string, data: any) => Promise<any>;
eventInvitationRegistration: (basePath: string, token: string, userId: string, data: any) => Promise<any>;
fetchAccountDetails: (basePath: string, token: string, accountId: string) => Promise<any>;
fetchSpeakers: (basePath: string, token: string, url: string) => Promise<any>;
fetchSpeakerById: (basePath: string, eventId: string, id: string) => Promise<any>;
fetchEditableEvents: (basePath: string, token: string, url: string) => Promise<any>;
fetchMySessions: (basePath: string, token: string, url: string) => Promise<any>;
updateAccountWithFiles: (basePath: string, token: string, accountId: string, updatedMyAccount: AccountInput, files: any) => Promise<any>;
createPaymentAccount: (basePath: string, token: string, data: any) => Promise<any>;
updatePaymentAccount: (basePath: string, token: string, paymentAccountId: string, data: any) => Promise<any>;
inviteContentManager: (basePath: string, token: string, accountId: string, data: any) => Promise<any>;
deleteContentManager: (basePath: string, token: string, accountId: string, profileId: string) => Promise<any>;
registerManager: (basePath: string, accountId: string, data: RegisterManagerInput) => Promise<any>;
registerManagerNative: (basePath: string, accountId: string, data: RegisterManagerInput) => Promise<any>;
confirmManager: (basePath: string, accountId: string, data: any) => Promise<any>;
confirmManagerNative: (basePath: string, accountId: string, data: any) => Promise<any>;
inviteFinanceManager: (basePath: string, token: string, accountId: string, data: any) => Promise<any>;
inviteSalesManager: (basePath: string, token: string, accountId: string, data: any) => Promise<any>;
deleteFinanceManager: (basePath: string, token: string, accountId: string, profileId: string) => Promise<any>;
deleteSalesManager: (basePath: string, token: string, accountId: string, profileId: string) => Promise<any>;
deletePaymentAccount: (basePath: string, token: string, paymentAccountId: string) => Promise<any>;
fetchAccountEvents: (basePath: string, token: string, url: string) => Promise<ResponseAccountEventsType>;
fetchPaymentAccount: (basePath: string, token: string, paymentAccountId: string) => Promise<any>;
fetchPaymentAccounts: (basePath: string, token: string, accountId: string) => Promise<any>;
fetchEventPages: (basePath: string, token: string, eventId: string, nbPage?: number, params?: string) => Promise<ResponsePaginationType<Page>>;
createPage: (basePath: string, token: string, data: any) => Promise<any>;
updatePage: (basePath: string, token: string, pageId: string, data: any) => Promise<any>;
deletePage: (basePath: string, token: string, eventId: string, pageId: string) => Promise<any>;
createLocation: (basePath: string, token: string, files: any, data: any) => Promise<any>;
updateLocation: (basePath: string, token: string, locationId: string, data: any, files?: any) => Promise<any>;
deleteLocation: (basePath: string, token: string, locationId: string) => Promise<any>;
deleteDocument: (basePath: string, token: string, documentId: string) => Promise<any>;
updateDocument: (basePath: string, token: string, documentId: string, data: any) => Promise<any>;
createDocument: (basePath: string, token: string, files: any, data: any) => Promise<any>;
createExhibitionDocument: (basePath: string, token: string, exhibitionId: string, files: any, data: any) => Promise<any>;
assignDocumentToEvent: (basePath: string, token: string, eventId: string, documentId: string) => Promise<any>;
createTrack: (basePath: string, token: string, data: any) => Promise<any>;
updateTrack: (basePath: string, token: string, trackId: string, data: any) => Promise<any>;
deleteTrack: (basePath: string, token: string, trackId: string) => Promise<any>;
fetchEventTemplates: (basePath: string, token: string, eventId: string) => Promise<any>;
showAttendee: (basePath: string, token: string, attendeeId: string) => Promise<any>;
hideAttendee: (basePath: string, token: string, attendeeId: string) => Promise<any>;
resendWelcomeEmail: (basePath: string, token: string, attendeeId: string) => Promise<any>;
addOnsiteAttendee: (basePath: string, token: string, attendeeId: string) => Promise<any>;
removeOnsiteAttendee: (basePath: string, token: string, attendeeId: string) => Promise<any>;
checkAvailabilityAttendee: (basePath: string, token: string, attendeeId: string) => Promise<any>;
deleteDiscount: (basePath: string, token: string, discountId: string) => Promise<string>;
updateDiscount: (basePath: string, token: string, discountId: string, data: any) => Promise<ResponseServerType<DiscountServerResponse>>;
createDiscount: (basePath: string, token: string, data: any) => Promise<GenericResponseServerType<DiscountServerResponse>>;
fetchEventDiscounts: (basePath: string, token: string, eventId: string) => Promise<ResponsePaginationType<DiscountServerResponse>>;
deleteTicket: (basePath: string, token: string, ticketId: string) => Promise<any>;
updateTicket: (basePath: string, token: string, ticketId: string, data: any) => Promise<any>;
createTicket: (basePath: string, token: string, data: any) => Promise<any>;
deleteOption: (basePath: string, token: string, optionId: string) => Promise<any>;
updateOption: (basePath: string, token: string, optionId: string, data: any) => Promise<any>;
createOption: (basePath: string, token: string, data: any) => Promise<any>;
deleteGroup: (basePath: string, token: string, groupId: string) => Promise<any>;
updateGroup: (basePath: string, token: string, groupId: string, data: any) => Promise<any>;
createGroup: (basePath: string, token: string, data: any) => Promise<any>;
updateSpeakerRole: (basePath: string, token: string, attendeeId: string, data: any) => Promise<any>;
deleteSpeakerRole: (basePath: string, token: string, attendeeId: string) => Promise<any>;
importAgenda: (basePath: string, token: string, eventId: string, eventSource: string) => Promise<any>;
importEventWebsiteContent: (basePath: string, token: string, eventId: string, eventSource: string, keysList?: string[]) => Promise<APIResponse>;
fetchAttendeesAvailabilities: (basePath: string, token: string, eventId: string, date: string) => Promise<any>;
updateEventTemplates: (basePath: string, token: string, templateId: string, eventId: string, data: any) => Promise<any>;
fetchEventNotifications: (basePath: string, token: string, eventId: string) => Promise<any>;
updateEvent: (basePath: string, token: string, eventId: string, data: any, files: any) => Promise<EventServerResponse>;
sendSingleNotification: (basePath: string, token: string, attendeeId: string, message: string, date?: string, url?: string) => Promise<any>;
sendNotification: (basePath: string, token: string, eventId: string, message: string, date: string, url: string) => Promise<any>;
resendConfirmationEmail: (basePath: string, token: string, eventId: string, attendeeList: string) => Promise<any>;
createEvent: (basePath: string, token: string, data: any, files: {
name: string;
value: File;
}[]) => Promise<any>;
fetchEventTickets: (basePath: string, token: string, eventId: string) => Promise<TicketServerResponse[]>;
fetchEventOptions: (basePath: string, token: string, eventId: string) => Promise<OptionServerResponse[]>;
assignPaymentAccount: (basePath: string, token: string, eventId: string, requestData: {
payment_account: string;
}) => Promise<any>;
unassignPaymentAccount: (basePath: string, token: string, eventId: string, paymentAccountId: string) => Promise<any>;
fetchAttendeeProfile: (basePath: string, token: string, attendeeId: string) => Promise<AttendeeProfile>;
fetchAttendees: (basePath: string, token: string, eventId: string) => Promise<AttendeeProfile[]>;
fetchColocatedAttendees: (basePath: string, eventId: string) => Promise<AttendeeProfile[]>;
fetchMyUser: (basePath: string, token: string) => Promise<AttendeeProfile>;
updateAttendeeImage: (basePath: string, token: string, file: any, param: string, attendeeId: string) => Promise<AttendeeProfile>;
updateAttendeeImageNative: (basePath: string, token: string, file: any, param: string, attendeeId: string) => Promise<AttendeeProfile>;
updateAttendee: (basePath: string, token: string, updatedAttendee: AttendeeInput, attendeeId: string) => Promise<AttendeeProfile>;
updateGlobalAttendeeImage: (basePath: string, token: string, file: any, param: string) => Promise<AttendeeProfile>;
updateGlobalAttendeeImageNative: (basePath: string, token: string, file: any, param: string) => Promise<AttendeeProfile>;
updateGlobalAttendee: (basePath: string, token: string, updatedAttendee: AttendeeInput) => Promise<AttendeeProfile>;
fetchMyConnections: (basePath: string, token: string) => Promise<Attendee[]>;
addConnection: (basePath: string, token: string, profile: string, leadsToken: string) => Promise<void>;
removeConnection: (basePath: string, token: string, profile: string) => Promise<void>;
pinAttendee: (basePath: string, token: string, attendeeId: string, pinAttendeeId: string) => Promise<APIResponse>;
unpinAttendee: (basePath: string, token: string, attendeeId: string, pinAttendeeId: string) => Promise<APIResponse>;
confirmMyEventInvitation: (basePath: string, token: string, attendeeId: string) => Promise<APIResponse>;
checkIn: (basePath: string, token: string, attendeeId: string) => Promise<AttendeeProfile>;
checkout: (basePath: string, token: string, attendeeId: string) => Promise<APIResponse>;
sendAttendeeOnboardingAnswers: (basePath: string, token: string, attendeeId: string, body: Record<string, string>) => Promise<APIResponse>;
createAttendee: (basePath: string, token: string, eventId: string, type: string, body: Attendee) => Promise<APIResponse>;
importProfileFromLinkedIn: (basePath: string, token: string, body: {
event?: string | undefined;
callback_url: string;
}) => Promise<string>;
reportAttendeeAction: (basePath: string, token: string, requestData: AttendeeReport) => Promise<APIResponse>;
fetchMyNotes: (basePath: string, token: string) => Promise<Note[]>;
createNote: (basePath: string, token: string, note: Note) => Promise<APIResponse>;
updateNote: (basePath: string, token: string, noteId: string, note: Note) => Promise<APIResponse>;
deleteNote: (basePath: string, token: string, noteId: string) => Promise<APIResponse>;
fetchUserNotifications: (basePath: string, token: string) => Promise<UserNotification[]>;
markUserNotificationAsRead: (basePath: string, token: string, notificationId: string) => Promise<APIResponse>;
deleteUserNotification: (basePath: string, token: string, notificationId: string) => Promise<APIResponse>;
deleteAllUserNotifications: (basePath: string, token: string) => Promise<APIResponse>;
fetchAgenda: (basePath: string, token: string, eventId: string) => Promise<SessionFull[]>;
fetchZoomSignature: (basePath: string, token: string, account: string, zoomSdkKey: string) => Promise<string[]>;
pinSession: (basePath: string, token: string, sessionId: string) => Promise<APIResponse>;
unpinSession: (basePath: string, token: string, sessionId: string) => Promise<APIResponse>;
rateSession: (basePath: string, token: string, sessionId: string, body: {
name: number;
}) => Promise<APIResponse>;
reserveSeat: (basePath: string, token: string, sessionId: string) => Promise<APIResponse>;
removeSeat: (basePath: string, token: string, sessionId: string) => Promise<APIResponse>;
removeSeatNative: (basePath: string, token: string, sessionId: string) => Promise<APIResponse>;
watchSession: (basePath: string, token: string, sessionId: string) => Promise<APIResponse>;
postSessionComment: (basePath: string, token: string, sessionId: string, message: string) => Promise<Session>;
refetchSessionDiscussion: (basePath: string, token: string, sessionId: string) => Promise<Session>;
reportSessionAction: (basePath: string, token: string, sessionId: string, requestData: SessionReport) => Promise<APIResponse>;
fetchMeetings: (basePath: string, token: string) => Promise<MeetingItem[]>;
fetchArrangedMeetings: (basePath: string, token: string, eventId: string) => Promise<MeetingItem[]>;
fetchLocation: (basePath: string, token: string, locationId: string) => Promise<APIResponse>;
cancelMeeting: (basePath: string, token: string, meetingId: string) => Promise<MeetingItem>;
declineMeeting: (basePath: string, token: string, meetingId: string) => Promise<MeetingItem>;
confirmMeeting: (basePath: string, token: string, meetingId: string) => Promise<MeetingItem>;
rateMeeting: (basePath: string, token: string, meetingId: string, rate: string) => Promise<APIResponse>;
deliverMeeting: (basePath: string, token: string, meetingId: string) => Promise<APIResponse>;
createMeeting: (basePath: string, token: string, body: MeetingItem) => Promise<MeetingItem>;
createArrangedMeeting: (basePath: string, token: string, body: MeetingItem) => Promise<MeetingItem>;
fetchPosts: (basePath: string, token: string, eventId: string) => Promise<Post[]>;
fetchPostDetails: (basePath: string, token: string, postId: string) => Promise<Post>;
likePost: (basePath: string, token: string, postId: string) => Promise<Post>;
unlikePost: (basePath: string, token: string, postId: string) => Promise<Post>;
likeComment: (basePath: string, token: string, postId: string, commentId: string) => Promise<Post>;
unlikeComment: (basePath: string, token: string, postId: string, commentId: string) => Promise<Post>;
unlikeCommentNative: (basePath: string, token: string, postId: string, commentId: string) => Promise<Post>;
unlikePostNative: (basePath: string, token: string, postId: string) => Promise<Post>;
addComment: (basePath: string, token: string, postId: string, body: CommentBody) => Promise<Comment>;
addPost: (basePath: string, token: string, body: PostBody) => Promise<Post>;
updatePost: (basePath: string, token: string, postId: string, body: UpdatePostBody) => Promise<Post>;
deletePost: (basePath: string, token: string, postId: string) => Promise<APIResponse>;
deleteComment: (basePath: string, token: string, postId: string, commentId: string) => Promise<Post>;
fetchPages: (basePath: string, token: string, eventId: string, nbPage?: number, params?: string) => Promise<Page[]>;
fetchEventTracks: (basePath: string, token: string, eventId: string) => Promise<Track[]>;
fetchCalendarEvents: (basePath: string, token: string) => Promise<CalendarEvent[]>;
blockEvent: (basePath: string, token: string, event: string, startDate: string, endDate: string) => Promise<APIResponse>;
unblockEvent: (basePath: string, token: string, availabilityId: string) => Promise<APIResponse>;
fetchAccounts: (basePath: string, token: string) => Promise<Account[]>;
fetchEventsForAccount: (basePath: string, token: string, accountId: string) => Promise<Event[]>;
login: (basePath: string, email: string, password: string) => Promise<LoginResponse>;
resetPassword: (basePath: string, body: ResetPasswordBody) => Promise<APIResponse>;
sendNewPassword: (basePath: string, userId: string, body: SendResetPasswordBody) => Promise<APIResponse>;
fetchAllPublicEvents: (basePath: string, nbPage?: number, params?: string) => Promise<ResponsePaginationType<PublicEventItem>>;
fetchPublicExhibitions: (basePath: string, eventId: string, nbPage?: number, params?: string) => Promise<ResponsePaginationType<Exhibition>>;
fetchPublicAgenda: (basePath: string, eventId: string, nbPage?: number, params?: string) => Promise<ResponsePaginationType<Session>>;
fetchPublicEventStatistics: (basePath: string, eventId: string) => Promise<APIResponse>;
logout: (basePath: string, token: string) => Promise<APIResponse>;
fetchZoomContent: (basePath: string, token: string, body: ZoomParams) => Promise<string>;
fetchYoutubeContent: (basePath: string, token: string, reference: string) => Promise<string>;
createStream: (basePath: string, token: string, data: StreamInput) => Promise<Stream>;
updateStream: (basePath: string, token: string, streamId: string, data: StreamInput) => Promise<{
data: Stream;
}>;
deleteStream: (basePath: string, token: string, streamId: string) => Promise<APIResponse>;
fetchAllExhibitions: (basePath: string, token: string, eventId: string) => Promise<Exhibition[]>;
fetchMyExhibitions: (basePath: string, token: string) => Promise<Exhibition[]>;
createExhibition: (basePath: string, token: string, files: any, data: ExhibitionInput) => Promise<Exhibition>;
importExhibition: (basePath: string, token: string, eventId: string, exhibitionsList: string) => Promise<APIResponse>;
updateExhibition: (basePath: string, token: string, exhibitionId: string, files: any, data: ExhibitionInput) => Promise<Exhibition>;
bulkExhibitionsOrder: (basePath: string, token: string, exhibitions: {
id: string;
order: number;
}[]) => Promise<Exhibition>;
deleteExhibition: (basePath: string, token: string, exhibitionId: string) => Promise<APIResponse>;
importOnboardingQuestions: (basePath: string, token: string, eventId: string, eventSource: string, removeAnswers?: boolean) => Promise<APIResponse>;
fetchSelectedEventSessions: (basePath: string, token: string, eventId: string) => Promise<Session[]>;
createSession: (basePath: string, token: string, data: SessionInput, files: any) => Promise<Session>;
updateSession: (basePath: string, token: string, sessionId: string, data: SessionInput, files: any) => Promise<Session>;
deleteSession: (basePath: string, token: string, sessionId: string) => Promise<APIResponse>;
promoteSession: (basePath: string, token: string, sessionId: string, promotionDate: string) => Promise<APIResponse>;
editMeeting: (basePath: string, token: string, body: MeetingItem) => Promise<MeetingItem>;
editMeetingNative: (basePath: string, token: string, body: MeetingItem) => Promise<MeetingItem>;
fetchEventMeetingsStatistics: (basePath: string, token: string, eventId: string) => Promise<EventMeetingStatisticsItem[]>;
fetchPortfolios: (basePath: string, token: string, accountId: string) => Promise<Portfolio[]>;
deletePortfolio: (basePath: string, token: string, portfolioId: string) => Promise<APIResponse>;
assignPortfolio: (basePath: string, token: string, eventId: string, portfolioId: string) => Promise<APIResponse>;
unassignPortfolio: (basePath: string, token: string, eventId: string, portfolioId: string) => Promise<APIResponse>;
createPortfolio: (basePath: string, token: string, data: PortfolioInput, files: {
name: string;
value: File;
}[]) => Promise<Portfolio>;
updatePortfolio: (basePath: string, token: string, portfolioId: string, data: PortfolioInput, files: {
name: string;
value: File;
}[]) => Promise<Portfolio>;
fetchPortfolioDetails: (basePath: string, token: string, portfolioId: string) => Promise<Portfolio>;
fetchBlogs: (basePath: string, token: string, accountId: string) => Promise<Blog[]>;
deleteBlog: (basePath: string, token: string, blogId: string) => Promise<APIResponse>;
assignBlog: (basePath: string, token: string, eventId: string, blogId: string) => Promise<APIResponse>;
unassignBlog: (basePath: string, token: string, eventId: string, blogId: string) => Promise<APIResponse>;
createBlog: (basePath: string, token: string, data: BlogInput, files: {
name: string;
value: File;
}[]) => Promise<Blog>;
updateBlog: (basePath: string, token: string, blogId: string, data: BlogInput, files: {
name: string;
value: File;
}[]) => Promise<Blog>;
fetchBlogDetails: (basePath: string, token: string, blogId: string) => Promise<Blog>;
fetchBlogEvents: (basePath: string, token: string, blogId: string) => Promise<Event[]>;
fetchBlogEventsBySlug: (basePath: string, accountId: string, blogSlug: string) => Promise<Event[]>;
fetchPortfolioEvents: (basePath: string, token: string, portfolioId: string) => Promise<Event[]>;
createBlogPage: (basePath: string, token: string, portfolioId: string, data: BlogPageInput, files: {
name: string;
value: File;
}[]) => Promise<BlogPage>;
fetchBlogPages: (basePath: string, token: string, accountId: string, portfolioId?: string) => Promise<BlogPage[]>;
createAccountGroup: (basePath: string, token: string, accountId: string, data: GroupInputType) => Promise<GroupResponseType>;
getPublicGroupDetails: <T>(basePath: string, groupId: string) => Promise<PublicGroupResponseType<T>>;
updatePortfolioBlogPage: (basePath: string, token: string, portfolioId: string, blogPostId: string, data: BlogPageInput, files: {
name: string;
value: File;
}[]) => Promise<BlogPage>;
deletePortfolioBlogPage: (basePath: string, token: string, portfolioId: string, blogPostId: string) => Promise<APIResponse>;
fetchColocatedEvents: (basePath: string, token: string, accountId: string) => Promise<ResponsePaginationType<ColocatedEventsGroupType>>;
fetchColocatedEventDetails: (basePath: string, token: string, accountId: string, eventId: string) => Promise<ColocatedEventDetailsResponse>;
createColocatedEvents: (basePath: string, token: string, accountId: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>;
editColocatedEvents: (basePath: string, token: string, id: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>;
deleteColocatedEvents: (basePath: string, token: string, id: string) => Promise<string>;
updateVisibilityAttendee: (basePath: string, token: string, attendeeId: string, visibility: string) => Promise<SuccessResponse>;
fetchMediaDirectories: (basePath: string, token: string, accountId: string, path: string) => Promise<Directory>;
fetchMediaDirectoryFiles: (basePath: string, token: string, accountId: string, path: string) => Promise<DirectoryFiles>;
fetchMediaFileDetails: (basePath: string, token: string, accountId: string, filepath: string) => Promise<FileDetails>;
uploadFileToFolder: (basePath: string, token: string, accountId: string, folderPath: string, fileName: string, blob: Blob) => Promise<FileDetails>;
renameFolder: (basePath: string, token: string, accountId: string, path: string, name_old: string, name_new: string) => Promise<APIResponse>;
fetchAttendeeDetails: (basePath: string, token: string, attendeeId: string) => Promise<AttendeeProfile>;
updatePackages: (basePath: string, token: string, accountId: string, data: {
packages: PackageType[];
}) => Promise<AccountDetails>;
fetchSessionTypes: (basePath: string, token: string, accountId: string) => Promise<SessionType[]>;
updateSessionTypes: (basePath: string, token: string, accountId: string, data: {
session_types: string;
}) => Promise<AccountDetails>;
fetchEventsByAccount: (basePath: string, token: string, accountId: string, params?: string) => Promise<ResponseAccountEventsType>;
importTickets: (basePath: string, token: string, eventId: string, ticketsList: string[]) => Promise<ResponsePaginationType<TicketServerResponse>>;
fetchPublicEventAdvertisement: (basePath: string, eventId: string) => Promise<GenericResponseServerType<PublicAdResponse[]>>;
fetchColocatedAgenda: (basePath: string, eventId: string) => Promise<SessionFull[]>;
activateDataManagers: (basePath: string, token: string, eventId: string, attendeeIds: string[]) => Promise<Attendee[]>;
deactivateDataManagers: (basePath: string, token: string, eventId: string, attendeeIds: string[]) => Promise<Attendee[]>;
fetchFeeds: (basePath: string, token: string, accountId: string, params?: string) => Promise<ResponsePaginationType<FeedType>>;
fetchPublicFeeds: (basePath: string, accountId: string, params?: string) => Promise<ResponsePaginationType<FeedType>>;
fetchPublicOffer: (basePath: string, offerId: string, userId: string, access: string) => Promise<OfferServerResponse>;
uploadPublicOfferPdf: (basePath: string, offerId: string, userId: string, access: string, file: File) => Promise<any>;
fetchFeed: (basePath: string, token: string, accountId: string, feedId: string) => Promise<FeedDetailsType>;
createFeed: (basePath: string, token: string, accountId: string, data: FeedInputType, files: any[]) => Promise<FeedType>;
updateFeed: (basePath: string, token: string, accountId: string, feedId: string, data: FeedInputType, files: any[]) => Promise<FeedType>;
deleteFeed: (basePath: string, token: string, accountId: string, feedId: string) => Promise<any>;
createTestimonial: (basePath: string, token: string, eventId: string, data: TestimonialInput, files?: any) => Promise<TestimonialResponse>;
updateTestimonial: (basePath: string, token: string, eventId: string, testimonialId: string, data: TestimonialInput, files?: any) => Promise<TestimonialResponse>;
createStatistic: (basePath: string, token: string, eventId: string, data: StatisticInput) => Promise<StatisticResponse>;
updateStatistic: (basePath: string, token: string, eventId: string, statisticId: string, data: StatisticInput) => Promise<StatisticResponse>;
createKeyTopic: (basePath: string, token: string, eventId: string, data: KeyTopicInput, files?: any) => Promise<KeyTopicResponse>;
updateKeyTopic: (basePath: string, token: string, eventId: string, keyTopicId: string, data: KeyTopicInput) => Promise<KeyTopicResponse>;
updateEventTargetGroups: (basePath: string, token: string, eventId: string, data: {
targetgroups: Record<string, string | boolean | File>[];
}) => Promise<EventServerResponse>;
updateEventCitations: (basePath: string, token: string, eventId: string, data: {
citations: Record<string, string | boolean | File>[];
}) => Promise<EventServerResponse>;
updateEventSurveys: (basePath: string, token: string, eventId: string, data: {
surveys: Record<string, string | boolean | File>[];
}) => Promise<EventServerResponse>;
updateEventTickets: (basePath: string, token: string, eventId: string, data: {
tickets: Record<string, string | boolean | File>[];
}) => Promise<EventServerResponse>;
updateEventFaqs: (basePath: string, token: string, eventId: string, data: {
faqs: FaqInput[];
}) => Promise<EventServerResponse>;
updateEventSpeakerAdverts: (basePath: string, token: string, eventId: string, data: {
speakeradverts: SpeakerAdvertInput[];
}, files?: {
name: string;
value: File;
}[]) => Promise<EventServerResponse>;
updateEventExhibitions: (basePath: string, token: string, eventId: string, data: ExhibitionBulkUpdateInput) => Promise<EventServerResponse>;
updateEventOnsite: (basePath: string, token: string, eventId: string, data: OnsiteInput, files?: {
name: string;
value: File;
}[]) => Promise<EventServerResponse>;
updateEventSessions: (basePath: string, token: string, eventId: string, data: SessionBulkUpdateInput) => Promise<EventServerResponse>;
};
export type EventAPIType = {
config: BaseAPIConfigType;
init: (baseUrl: string, email: string, password: string) => Promise<string>;
initWithToken: (baseUrl: string, token: string) => Promise<boolean>;
initWithoutToken: (baseUrl: string) => Promise<boolean>;
fetchEventSpeakers: (eventId: string) => Promise<EventSpeaker[]>;
fetchEventRegistrations: (eventId: string) => Promise<EventRegistration[]>;
fetchEventDetails: (eventId: string) => Promise<Event>;
fetchExhibitions: (eventId: string) => Promise<Exhibition[]>;
fetchExhibitionDetails: (exhibitionId: string) => Promise<Exhibition>;
fetchEventLocations: (eventId: string) => Promise<EventLocation[]>;
fetchEventStreams: (eventId: string) => Promise<EventStream[]>;
fetchUserRegistrationsEvents: () => Promise<UserRegistrationsEvent[]>;
fetchEventDocuments: (eventId: string) => Promise<DocumentType[]>;
reportExhibitionAction: (exhibitionId: string, requestData: ExhibitionReport) => Promise<void>;
pinDocument: (eventId: string, documentId: string) => Promise<DocumentType[]>;
unpinDocument: (eventId: string, documentId: string) => Promise<boolean>;
pinExhibition: (exhibitionId: string) => Promise<boolean>;
unpinExhibition: (exhibitionId: string) => Promise<boolean>;
fetchEventGroups: (eventId: string) => Promise<GroupServerResponse[]>;
fetchPublicEventGroups: (eventId: string) => Promise<GroupServerResponse[]>;
deleteMediaDirectories: (accountId: string, path: string, name: string) => Promise<APIResponse>;
addMediaFolder: (accountId: string, path: string, name: string) => Promise<APIResponse>;
updateEventWebsite: (eventId: string, keyData: string, data: {
website_content: Record<string, string | boolean | File>[];
}, files?: any) => Promise<EventServerResponse>;
deleteMediaDirectoryFiles: (accountId: string, filepath: string) => Promise<APIResponse>;
updateAccountGroup: (accountId: string, groupId: string, data: GroupInputType) => Promise<GroupResponseType>;
fetchAccountGroups: (accountId: string, type: GroupType) => Promise<ResponsePaginationType<GroupResponseType>>;
fetchEventAttendeeActions: (eventId: string) => Promise<ResponseServerType<FetchCurrentEventAttendeesActionsResponse[]>>;
fetchAccountBookings: (accountId: string, params?: string) => Promise<ResponsePaginationType<Booking>>;
fetchAccountDocuments: (accountId: string, params?: string) => Promise<ResponsePaginationType<DocumentType>>;
fetchAccountProfiles: (accountId: string, params?: string) => Promise<ResponsePaginationType<AttendeeProfile>>;
resendTicketEmail: (ticketId: string) => Promise<any>;
resendBookingEmail: (bookingId: string) => Promise<any>;
postTicketDetails: (eventId: string, profileId: string, access: string, body: any) => Promise<ResponsePaginationType<BookingDetails>>;
confirmAttendee: (attendeeId: string, data: any) => Promise<any>;
checkBooking: (body: any, lang: string) => Promise<any>;
createBooking: (body: any, lang: string) => Promise<any>;
fetchEventOrderedTickets: (eventId: string) => Promise<any>;
acceptInternTicket: (ticketId: string, body: any) => Promise<any>;
fetchTickets: () => Promise<ResponsePaginationType<BookingDetails>>;
getPublicRegistrationForm: (eventId: string) => Promise<any>;
fetchMyBookings: () => Promise<ResponsePaginationType<Booking>>;
assignTicket: (bookingId: string, ticketId: string, data: any) => Promise<any>;
acceptTicket: (ticketId: string, access: string, body: any) => Promise<any>;
fetchTicketDetails: (eventId: string, profileId: string, access: string) => Promise<ResponsePaginationType<BookingDetails>>;
fetchEventBookings: (eventId: string) => Promise<ResponsePaginationType<Booking>>;
confirmBooking: (bookingId: string) => Promise<ResponsePaginationType<Booking>>;
createFreeTrialAccount: (data: any) => Promise<any>;
eventInvitationRegistration: (userId: string, data: any) => Promise<any>;
fetchAccountDetails: (accountId: string) => Promise<any>;
fetchSpeakers: (url: string) => Promise<any>;
fetchSpeakerById: (eventId: string, id: string) => Promise<any>;
fetchEditableEvents: (url: string) => Promise<any>;
fetchMySessions: (basePath: string) => Promise<any>;
updateAccountWithFiles: (accountId: string, updatedMyAccount: AccountInput, files: any) => Promise<any>;
createPaymentAccount: (data: any) => Promise<any>;
updatePaymentAccount: (paymentAccountId: string, data: any) => Promise<any>;
inviteContentManager: (accountId: string, data: any) => Promise<any>;
deleteContentManager: (accountId: string, profileId: string) => Promise<any>;
registerManager: (accountId: string, data: RegisterManagerInput) => Promise<any>;
confirmManager: (accountId: string, data: any) => Promise<any>;
inviteFinanceManager: (accountId: string, data: any) => Promise<any>;
deleteFinanceManager: (accountId: string, profileId: string) => Promise<any>;
inviteSalesManager: (accountId: string, data: any) => Promise<any>;
deleteSalesManager: (accountId: string, profileId: string) => Promise<any>;
deletePaymentAccount: (paymentAccountId: string) => Promise<any>;
fetchAccountEvents: (url: string) => Promise<ResponseAccountEventsType>;
clearToken: () => void;
fetchPaymentAccounts: (accountId: string) => Promise<any>;
fetchPaymentAccount: (paymentAccountId: string) => Promise<any>;
fetchEventPages: (eventId: string, nbPage?: number, params?: string) => Promise<ResponsePaginationType<Page>>;
createPage: (data: any) => Promise<any>;
updatePage: (pageId: string, data: any) => Promise<any>;
deletePage: (eventId: string, pageId: string) => Promise<any>;
createLocation: (files: any, data: any) => Promise<any>;
updateLocation: (locationId: string, data: any, files?: any) => Promise<any>;
deleteLocation: (locationId: string) => Promise<any>;
deleteDocument: (documentId: string) => Promise<any>;
updateDocument: (documentId: string, data: any) => Promise<any>;
createDocument: (files: any, data: any) => Promise<any>;
createExhibitionDocument: (exhibitionId: string, files: any, data: any) => Promise<any>;
assignDocumentToEvent: (eventId: string, documentId: string) => Promise<any>;
createTrack: (data: any) => Promise<any>;
updateTrack: (trackId: string, data: any) => Promise<any>;
deleteTrack: (trackId: string) => Promise<any>;
fetchEventTemplates: (eventId: string) => Promise<any>;
showAttendee: (attendeeId: string) => Promise<any>;
hideAttendee: (attendeeId: string) => Promise<any>;
resendWelcomeEmail: (attendeeId: string) => Promise<any>;
addOnsiteAttendee: (attendeeId: string) => Promise<any>;
removeOnsiteAttendee: (attendeeId: string) => Promise<any>;
checkAvailabilityAttendee: (attendeeId: string) => Promise<any>;
deleteDiscount: (discountId: string) => Promise<string>;
updateDiscount: (discountId: string, data: any) => Promise<ResponseServerType<DiscountServerResponse>>;
createDiscount: (data: any) => Promise<GenericResponseServerType<DiscountServerResponse>>;
fetchEventDiscounts: (eventId: string) => Promise<ResponsePaginationType<DiscountServerResponse>>;
deleteTicket: (ticketId: string) => Promise<any>;
updateTicket: (ticketId: string, data: any) => Promise<any>;
createTicket: (data: any) => Promise<any>;
deleteOption: (optionId: string) => Promise<any>;
updateOption: (optionId: string, data: any) => Promise<any>;
createOption: (data: any) => Promise<any>;
deleteGroup: (groupId: string) => Promise<any>;
updateGroup: (groupId: string, data: any) => Promise<any>;
createGroup: (data: any) => Promise<any>;
updateSpeakerRole: (attendeeId: string, data: any) => Promise<any>;
deleteSpeakerRole: (attendeeId: string) => Promise<any>;
importAgenda: (eventId: string, eventSource: string) => Promise<any>;
importEventWebsiteContent: (eventId: string, eventSource: string, keysList?: string[]) => Promise<APIResponse>;
fetchAttendeesAvailabilities: (eventId: string, date: string) => Promise<any>;
updateEventTemplates: (templateId: string, eventId: string, data: any) => Promise<any>;
fetchEventNotifications: (eventId: string) => Promise<any>;
sendSingleNotification: (attendeeId: string, message: string, date?: string, url?: string) => Promise<any>;
sendNotification: (eventId: string, message: string, date: string, url: string) => Promise<any>;
updateEvent: (eventId: string, data: any, files: any) => Promise<EventServerResponse>;
resendConfirmationEmail: (eventId: string, attendeeList: string) => Promise<any>;
createEvent: (data: any, files: {
name: string;
value: File;
}[]) => Promise<any>;
assignPaymentAccount: (eventId: string, requestData: {
payment_account: string;
}) => Promise<any>;
unassignPaymentAccount: (eventId: string, paymentAccountId: string) => Promise<any>;
fetchEventTickets: (eventId: string) => Promise<TicketServerResponse[]>;
fetchEventOptions: (eventId: string) => Promise<OptionServerResponse[]>;
fetchAttendeeProfile: (attendeeId: string) => Promise<AttendeeProfile>;
fetchAttendees: (eventId: string) => Promise<AttendeeProfile[]>;
fetchColocatedAttendees: (eventId: string) => Promise<AttendeeProfile[]>;
fetchMyUser: () => Promise<AttendeeProfile>;
updateAttendeeImage: (file: any, param: string, attendeeId: string) => Promise<AttendeeProfile>;
updateAttendeeImageNative: (file: any, param: string, attendeeId: string) => Promise<AttendeeProfile>;
updateAttendee: (updatedAttendee: AttendeeInput, attendeeId: string) => Promise<AttendeeProfile>;
updateGlobalAttendeeImage: (file: any, param: string) => Promise<AttendeeProfile>;
updateGlobalAttendeeImageNative: (file: any, param: string) => Promise<AttendeeProfile>;
updateGlobalAttendee: (updatedAttendee: AttendeeInput) => Promise<AttendeeProfile>;
fetchMyConnections: () => Promise<Attendee[]>;
addConnection: (profile: string, leadsToken: string) => Promise<void>;
removeConnection: (profile: string) => Promise<void>;
pinAttendee: (attendeeId: string, pinAttendeeId: string) => Promise<APIResponse>;
unpinAttendee: (attendeeId: string, pinAttendeeId: string) => Promise<APIResponse>;
confirmMyEventInvitation: (attendeeId: string) => Promise<APIResponse>;
checkIn: (attendeeId: string) => Promise<AttendeeProfile>;
checkout: (attendeeId: string) => Promise<APIResponse>;
sendAttendeeOnboardingAnswers: (attendeeId: string, body: Record<string, string>) => Promise<APIResponse>;
createAttendee: (eventId: string, type: string, body: Attendee) => Promise<APIResponse>;
importProfileFromLinkedIn: (body: {
event?: string | undefined;
callback_url: string;
}) => Promise<string>;
reportAttendeeAction: (requestData: AttendeeReport) => Promise<APIResponse>;
fetchMyNotes: () => Promise<Note[]>;
createNote: (note: Note) => Promise<APIResponse>;
updateNote: (noteId: string, note: NoteUpdateInput) => Promise<APIResponse>;
deleteNote: (noteId: string) => Promise<APIResponse>;
fetchUserNotifications: () => Promise<UserNotification[]>;
markUserNotificationAsRead: (notificationId: string) => Promise<APIResponse>;
deleteUserNotification: (notificationId: string) => Promise<APIResponse>;
deleteAllUserNotifications: () => Promise<APIResponse>;
fetchAgenda: (eventId: string) => Promise<Session[]>;
pinSession: (sessionId: string) => Promise<APIResponse>;
unpinSession: (sessionId: string) => Promise<APIResponse>;
rateSession: (sessionId: string, body: {
name: number;
}) => Promise<APIResponse>;
reserveSeat: (sessionId: string) => Promise<APIResponse>;
removeSeat: (sessionId: string) => Promise<APIResponse>;
removeSeatNative: (sessionId: string) => Promise<APIResponse>;
watchSession: (sessionId: string) => Promise<APIResponse>;
postSessionComment: (sessionId: string, message: string) => Promise<Session>;
refetchSessionDiscussion: (sessionId: string) => Promise<Session>;
reportSessionAction: (sessionId: string, requestData: SessionReport) => Promise<APIResponse>;
fetchMeetings: () => Promise<MeetingItem[]>;
fetchArrangedMeetings: (eventId: string) => Promise<MeetingItem[]>;
fetchLocation: (locationId: string) => Promise<APIResponse>;
cancelMeeting: (meetingId: string) => Promise<MeetingItem>;
declineMeeting: (meetingId: string) => Promise<MeetingItem>;
confirmMeeting: (meetingId: string) => Promise<MeetingItem>;
rateMeeting: (meetingId: string, rate: string) => Promise<APIResponse>;
deliverMeeting: (meetingId: string) => Promise<APIResponse>;
createMeeting: (body: MeetingItem) => Promise<MeetingItem>;
createArrangedMeeting: (body: MeetingItem) => Promise<MeetingItem>;
fetchZoomSignature: (account: string, meeting: string) => Promise<string[]>;