UNPKG

@hubs101/js-api-skd-client

Version:
621 lines (620 loc) 47.8 kB
import { Attendee, AttendeeInput, AttendeeProfile, Note, NoteUpdateInput, UserNotification } from "../api/attendee/types"; import { ColocatedEventsGroupInputType, ColocatedEventsGroupType, GroupInputType, GroupResponseType, PackageType, PublicGroupResponseType, RegisterManagerInput, ResponseAccountEventsType } from "../api/authentication/types"; import { LoginResponse, SendResetPasswordBody } from "../api/context/types"; 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"; 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_GROUPS: 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; }; export type BaseAPIType = { 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>>; 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>; 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>; deleteFinanceManager: (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>; 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[]>; 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<APIResponse>; 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>; 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>; 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, eventSource: string) => Promise<APIResponse>; updateExhibition: (basePath: string, token: string, exhibitionId: string, files: any, data: ExhibitionInput) => Promise<Exhibition>; deleteExhibition: (basePath: string, token: string, exhibitionId: string) => 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>; 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>; 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>>; 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>; uploadImageToFolder: (basePath: string, token: string, accountId: string, folderPath: string, fileName: string, blob: Blob) => Promise<APIResponse>; 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>; 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[]>; }; 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>; 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>>; 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>; 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>; 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>; 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[]>; 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<APIResponse>; 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>; 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[]>; fetchPosts: (eventId: string) => Promise<Post[]>; fetchPostDetails: (postId: string) => Promise<Post>; likePost: (postId: string) => Promise<Post>; unlikePost: (postId: string) => Promise<Post>; likeComment: (postId: string, commentId: string) => Promise<Post>; unlikeComment: (postId: string, commentId: string) => Promise<Post>; addComment: (postId: string, body: CommentBody) => Promise<Comment>; addPost: (body: PostBody) => Promise<Post>; updatePost: (postId: string, body: UpdatePostBody) => Promise<Post>; deletePost: (postId: string) => Promise<APIResponse>; deleteComment: (postId: string, commentId: string) => Promise<Post>; fetchPages: (eventId: string, nbPage?: number, params?: string) => Promise<Page[]>; fetchEventTracks: (eventId: string) => Promise<Track[]>; fetchCalendarEvents: () => Promise<CalendarEvent[]>; blockEvent: (event: string, startDate: string, endDate: string) => Promise<APIResponse>; unblockEvent: (availabilityId: string) => Promise<APIResponse>; fetchAccounts: () => Promise<Account[]>; fetchEventsForAccount: (accountId: string) => Promise<UserRegistrationsEvent[]>; logout: () => Promise<APIResponse>; fetchAllPublicEvents: (nbPage?: number, params?: string) => Promise<ResponsePaginationType<PublicEventItem>>; fetchPublicExhibitions: (eventId: string, nbPage?: number, params?: string) => Promise<ResponsePaginationType<Exhibition>>; fetchPublicAgenda: (eventId: string, nbPage?: number, params?: string) => Promise<ResponsePaginationType<Session>>; fetchPublicEventStatistics: (eventId: string) => Promise<APIResponse>; fetchZoomContent: (body: ZoomParams) => Promise<string>; fetchYoutubeContent: (reference: string) => Promise<string>; createStream: (data: StreamInput) => Promise<Stream>; updateStream: (streamId: string, data: StreamInput) => Promise<{ data: Stream; }>; deleteStream: (streamId: string) => Promise<APIResponse>; fetchAllExhibitions: (eventId: string) => Promise<Exhibition[]>; fetchMyExhibitions: () => Promise<Exhibition[]>; createExhibition: (files: any, data: ExhibitionInput) => Promise<Exhibition>; importExhibition: (eventId: string, eventSource: string) => Promise<APIResponse>; updateExhibition: (exhibitionId: string, files: any, data: ExhibitionInput) => Promise<Exhibition>; deleteExhibition: (exhibitionId: string) => Promise<APIResponse>; fetchSelectedEventSessions: (eventId: string) => Promise<Session[]>; createSession: (data: SessionInput, files: any) => Promise<Session>; updateSession: (sessionId: string, data: SessionInput, files: any) => Promise<Session>; deleteSession: (sessionId: string) => Promise<APIResponse>; promoteSession: (sessionId: string, promotionDate: string) => Promise<APIResponse>; editMeeting: (body: MeetingItem) => Promise<MeetingItem>; fetchEventMeetingsStatistics: (eventId: string) => Promise<EventMeetingStatisticsItem[]>; fetchPortfolios: (accountId: string) => Promise<Portfolio[]>; deletePortfolio: (portfolioId: string) => Promise<APIResponse>; assignPortfolio: (eventId: string, portfolioId: string) => Promise<APIResponse>; unassignPortfolio: (eventId: string, portfolioId: string) => Promise<APIResponse>; createPortfolio: (data: PortfolioInput, files: { name: string; value: File; }[]) => Promise<Portfolio>; updatePortfolio: (portfolioId: string, data: PortfolioInput, files: { name: string; value: File; }[]) => Promise<Portfolio>; fetchPortfolioDetails: (portfolioId: string) => Promise<Portfolio>; fetchPortfolioEvents: (portfolioId: string) => Promise<Event[]>; createBlogPage: (portfolioId: string, data: BlogPageInput, files: { name: string; value: File; }[]) => Promise<BlogPage>; fetchBlogPages: (accountId: string, portfolioId?: string) => Promise<BlogPage[]>; createAccountGroup: (accountId: string, data: GroupInputType) => Promise<GroupResponseType>; getPublicGroupDetails: <T>(groupId: string) => Promise<PublicGroupResponseType<T>>; updatePortfolioBlogPage: (portfolioId: string, blogPostId: string, data: BlogPageInput, files: { name: string; value: File; }[]) => Promise<BlogPage>; deletePortfolioBlogPage: (portfolioId: string, blogPostId: string) => Promise<APIResponse>; fetchColocatedEvents: (accountId: string) => Promise<ResponsePaginationType<ColocatedEventsGroupType>>; createColocatedEvents: (accountId: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>; editColocatedEvents: (id: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>; deleteColocatedEvents: (id: string) => Promise<string>; updateVisibilityAttendee: (attendeeId: string, visibility: string) => Promise<SuccessResponse>; fetchMediaDirectories: (accountId: string, path: string) => Promise<Directory>; fetchMediaDirectoryFiles: (accountId: string, path: string) => Promise<DirectoryFiles>; fetchMediaFileDetails: (accountId: string, filepath: string) => Promise<FileDetails>; uploadImageToFolder: (accountId: string, folderPath: string, fileName: string, blob: Blob) => Promise<APIResponse>; renameFolder: (accountId: string, path: string, name_old: string, name_new: string) => Promise<APIResponse>; fetchAttendeeDetails: (attendeeId: string) => Promise<AttendeeProfile>; updatePackages: (accountId: string, data: { packages: PackageType[]; }) => Promise<AccountDetails>; fetchEventsByAccount: (accountId: string, params?: string) => Promise<ResponseAccountEventsType>; importTickets: (eventId: string, ticketsList: string[]) => Promise<GenericResponseServerType<any[]>>; fetchPublicEventAdvertisement: (basePath: string, eventId: string) => Promise<GenericResponseServerType<PublicAdResponse[]>>; fetchColocatedAgenda: (eventId: string) => Promise<SessionFull[]>; activateDataManagers: (eventId: string, attendeeIds: string[]) => Promise<Attendee[]>; deactivateDataManagers: (eventId: string, attendeeIds: string[]) => Promise<Attendee[]>; }; export type BaseAPIConfigType = { baseUrl?: string; token?: string; }; export type APIResponse = { status?: string | number; error?: string; message?: string; }; export type ResetPasswordBody = { email: string; method: string; };