UNPKG

event-app-api

Version:

Package for easy access to Event App API

452 lines (451 loc) 32.4 kB
import { Attendee, AttendeeInput, AttendeeProfile, Note, NoteUpdateInput, UserNotification } from "../api/attendee/types"; import { RegisterManagerInput, ResponseAccountEventsType } from "../api/authentication/types"; import { CalendarEvent } from "../api/calendar/types"; import { LoginResponse, SendResetPasswordBody } from "../api/context/types"; import { Account, AccountInput, Answer, Booking, DocumentType, Event, EventLocation, EventRegistration, EventServerResponse, EventStream, Exhibition, ExhibitionInput, GroupServerResponse, OptionServerResponse, Stream, StreamInput, TicketServerResponse, UserRegistrationsEvent, ZoomParams } from "../api/event/types"; import { EventMeetingStatisticsItem, MeetingItem } from "../api/meetings/types"; import { Page } from "../api/pages/types"; import { CommentBody, Post, PostBody, UpdatePostBody } from "../api/posts/types"; import { PublicEventItem, ResponsePaginationType } from "../api/public/types"; import { Session, SessionFull, SessionInput } from "../api/sessions/types"; import { Track } from "../api/tracks/types"; import { AttendeeReport, ExhibitionReport, SessionReport } from "../api/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; LOCATIONS: string; PAGES: string; PAYMENT_ACCOUNTS: string; STREAMS: string; ACCOUNT_TRIAL: string; INVITATION: 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>; fetchEventGroups: (basePath: string, token: string, eventId: string) => Promise<GroupServerResponse[]>; fetchEventBookings: (basePath: string, token: string, eventId: 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, token: string, accountId: string, data: RegisterManagerInput) => Promise<any>; confirmManager: (basePath: string, token: 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) => Promise<any[]>; 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) => 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>; 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<any>; updateDiscount: (basePath: string, token: string, discountId: string, data: any) => Promise<any>; createDiscount: (basePath: string, token: string, data: any) => Promise<any>; fetchEventDiscounts: (basePath: string, token: string, eventId: string) => Promise<any>; 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>; 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, attendeeId: 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>; 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>; updateAttendee: (basePath: string, token: string, updatedAttendee: AttendeeInput, attendeeId: string) => Promise<AttendeeProfile>; updateGlobalAttendeeImage: (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<Response>; unpinAttendee: (basePath: string, token: string, attendeeId: string, pinAttendeeId: string) => Promise<Response>; confirmMyEventInvitation: (basePath: string, token: string, attendeeId: string) => Promise<Response>; checkIn: (basePath: string, token: string, attendeeId: string) => Promise<Response>; checkout: (basePath: string, token: string, attendeeId: string) => Promise<Response>; sendAttendeeOnboardingAnswers: (basePath: string, token: string, attendeeId: string, body: { [key: string]: Answer; }) => Promise<Response>; createAttendee: (basePath: string, token: string, eventId: string, type: string, body: Attendee) => Promise<Response>; importProfileFromLinkedIn: (basePath: string, token: string, body: { event?: string | undefined; callback_url: string; }) => Promise<string>; reportAttendeeAction: (basePath: string, token: string, requestData: AttendeeReport) => Promise<Response>; fetchMyNotes: (basePath: string, token: string) => Promise<Note[]>; createNote: (basePath: string, token: string, note: Note) => Promise<Response>; updateNote: (basePath: string, token: string, noteId: string, note: Note) => Promise<Response>; deleteNote: (basePath: string, token: string, noteId: string) => Promise<Response>; fetchUserNotifications: (basePath: string, token: string) => Promise<UserNotification[]>; markUserNotificationAsRead: (basePath: string, token: string, notificationId: string) => Promise<Response>; deleteUserNotification: (basePath: string, token: string, notificationId: string) => Promise<Response>; deleteAllUserNotifications: (basePath: string, token: string) => Promise<Response>; 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<Response>; unpinSession: (basePath: string, token: string, sessionId: string) => Promise<Response>; rateSession: (basePath: string, token: string, sessionId: string, body: { name: number; }) => Promise<Response>; reserveSeat: (basePath: string, token: string, sessionId: string) => Promise<Response>; removeSeat: (basePath: string, token: string, sessionId: string) => Promise<Response>; watchSession: (basePath: string, token: string, sessionId: string) => Promise<Response>; 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<Response>; fetchMeetings: (basePath: string, token: string) => Promise<MeetingItem[]>; fetchArrangedMeetings: (basePath: string, token: string, eventId: string) => Promise<MeetingItem[]>; fetchLocation: (basePath: string, token: string, locationId: string) => Promise<Response>; 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<Response>; deliverMeeting: (basePath: string, token: string, meetingId: string) => Promise<Response>; 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<Response>; deleteComment: (basePath: string, token: string, postId: string, commentId: string) => Promise<Post>; fetchPages: (basePath: string, token: string, eventId: 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<Response>; unblockEvent: (basePath: string, token: string, availabilityId: string) => Promise<Response>; 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<Response>; sendNewPassword: (basePath: string, userId: string, body: SendResetPasswordBody) => Promise<Response>; fetchAllPublicEvents: (basePath: string, token: string, nbPage?: number, params?: string) => Promise<ResponsePaginationType<PublicEventItem>>; fetchPublicExhibitions: (basePath: string, token: string, eventId: string, nbPage?: number, params?: string) => Promise<ResponsePaginationType<Exhibition>>; fetchPublicAgenda: (basePath: string, token: string, eventId: string, nbPage?: number, params?: string) => Promise<ResponsePaginationType<Session>>; logout: (basePath: string, token: string) => Promise<Response>; 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<Stream>; deleteStream: (basePath: string, token: string, streamId: string) => Promise<Response>; 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<Response>; updateExhibition: (basePath: string, token: string, exhibitionId: string, files: any, data: ExhibitionInput) => Promise<Exhibition>; deleteExhibition: (basePath: string, token: string, exhibitionId: string) => Promise<Response>; 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<Response>; promoteSession: (basePath: string, token: string, sessionId: string, promotionDate: string) => Promise<Response>; editMeeting: (basePath: string, token: string, body: MeetingItem) => Promise<MeetingItem>; fetchEventMeetingsStatistics: (basePath: string, token: string, eventId: string) => Promise<EventMeetingStatisticsItem[]>; }; export type EventAPIType = { config: BaseAPIConfigType; init: (baseUrl: string, email: string, password: string) => Promise<string>; initWithToken: (baseUrl: string, token: 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[]>; fetchEventBookings: (eventId: 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) => Promise<any[]>; 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) => 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>; 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<any>; updateDiscount: (discountId: string, data: any) => Promise<any>; createDiscount: (data: any) => Promise<any>; fetchEventDiscounts: (eventId: string) => Promise<any>; 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>; 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: (attendeeId: string) => Promise<any>; createEvent: (data: any, files: { name: string; value: File; }[]) => Promise<any>; assignPaymentAccount: (eventId: string, requestData: { payment_account: 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>; updateAttendee: (updatedAttendee: AttendeeInput, attendeeId: string) => Promise<AttendeeProfile>; updateGlobalAttendeeImage: (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<Response>; unpinAttendee: (attendeeId: string, pinAttendeeId: string) => Promise<Response>; confirmMyEventInvitation: (attendeeId: string) => Promise<Response>; checkIn: (attendeeId: string) => Promise<Response>; checkout: (attendeeId: string) => Promise<Response>; sendAttendeeOnboardingAnswers: (attendeeId: string, body: { [key: string]: Answer; }) => Promise<Response>; createAttendee: (eventId: string, type: string, body: Attendee) => Promise<Response>; importProfileFromLinkedIn: (body: { event?: string | undefined; callback_url: string; }) => Promise<string>; reportAttendeeAction: (requestData: AttendeeReport) => Promise<Response>; fetchMyNotes: () => Promise<Note[]>; createNote: (note: Note) => Promise<Response>; updateNote: (noteId: string, note: NoteUpdateInput) => Promise<Response>; deleteNote: (noteId: string) => Promise<Response>; fetchUserNotifications: () => Promise<UserNotification[]>; markUserNotificationAsRead: (notificationId: string) => Promise<Response>; deleteUserNotification: (notificationId: string) => Promise<Response>; deleteAllUserNotifications: () => Promise<Response>; fetchAgenda: (eventId: string) => Promise<Session[]>; pinSession: (sessionId: string) => Promise<Response>; unpinSession: (sessionId: string) => Promise<Response>; rateSession: (sessionId: string, body: { name: number; }) => Promise<Response>; reserveSeat: (sessionId: string) => Promise<Response>; removeSeat: (sessionId: string) => Promise<Response>; watchSession: (sessionId: string) => Promise<Response>; postSessionComment: (sessionId: string, message: string) => Promise<Session>; refetchSessionDiscussion: (sessionId: string) => Promise<Session>; reportSessionAction: (sessionId: string, requestData: SessionReport) => Promise<Response>; fetchMeetings: () => Promise<MeetingItem[]>; fetchArrangedMeetings: (eventId: string) => Promise<MeetingItem[]>; fetchLocation: (locationId: string) => Promise<Response>; cancelMeeting: (meetingId: string) => Promise<MeetingItem>; declineMeeting: (meetingId: string) => Promise<MeetingItem>; confirmMeeting: (meetingId: string) => Promise<MeetingItem>; rateMeeting: (meetingId: string, rate: string) => Promise<Response>; deliverMeeting: (meetingId: string) => Promise<Response>; 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<Response>; deleteComment: (postId: string, commentId: string) => Promise<Post>; fetchPages: (eventId: string) => Promise<Page[]>; fetchEventTracks: (eventId: string) => Promise<Track[]>; fetchCalendarEvents: () => Promise<CalendarEvent[]>; blockEvent: (event: string, startDate: string, endDate: string) => Promise<Response>; unblockEvent: (availabilityId: string) => Promise<Response>; fetchAccounts: () => Promise<Account[]>; fetchEventsForAccount: (accountId: string) => Promise<UserRegistrationsEvent[]>; logout: () => Promise<Response>; 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>>; fetchZoomContent: (body: ZoomParams) => Promise<string>; fetchYoutubeContent: (reference: string) => Promise<string>; createStream: (data: StreamInput) => Promise<Stream>; updateStream: (streamId: string, data: StreamInput) => Promise<Stream>; deleteStream: (streamId: string) => Promise<Response>; fetchAllExhibitions: (eventId: string) => Promise<Exhibition[]>; fetchMyExhibitions: () => Promise<Exhibition[]>; createExhibition: (files: any, data: ExhibitionInput) => Promise<Exhibition>; importExhibition: (eventId: string, eventSource: string) => Promise<Response>; updateExhibition: (exhibitionId: string, files: any, data: ExhibitionInput) => Promise<Exhibition>; deleteExhibition: (exhibitionId: string) => Promise<Response>; 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<Response>; promoteSession: (sessionId: string, promotionDate: string) => Promise<Response>; editMeeting: (body: MeetingItem) => Promise<MeetingItem>; fetchEventMeetingsStatistics: (eventId: string) => Promise<EventMeetingStatisticsItem[]>; }; export type BaseAPIConfigType = { baseUrl?: string; token?: string; }; export type Response = { status?: string | number; error?: string; message?: string; }; export type ResetPasswordBody = { email: string; method: string; };