@hubs101/js-api-skd-client
Version:
Package for easy access to Event App API
144 lines (143 loc) • 15.9 kB
TypeScript
import { GenericResponseServerType, PublicAdResponse, ResponsePaginationType, ResponseServerType } from "../public/types";
import { ExhibitionReport, FetchCurrentEventAttendeesActionsResponse } from "../types";
import { Account, AccountInput, BlogPage, BlogPageInput, Booking, BookingDetails, Directory, DirectoryFiles, DiscountServerResponse, DocumentType, Event, EventLocation, EventRegistration, EventServerResponse, EventStream, Exhibition, ExhibitionInput, FileDetails, GroupServerResponse, OptionServerResponse, Portfolio, PortfolioInput, Stream, StreamInput, TicketServerResponse, UserRegistrationsEvent, ZoomParams } from "./types";
import { APIResponse } from "../../types/base";
import { Attendee } from "../attendee/types";
import { Page } from "../pages/types";
export declare const _fetchEventRegistrations: (basePath: string, token: string, eventId: string) => Promise<EventRegistration[]>;
export declare const _fetchAccounts: (basePath: string, token: string) => Promise<Account[]>;
export declare const _fetchTickets: (basePath: string, token: string) => Promise<ResponsePaginationType<BookingDetails>>;
export declare const _fetchEventsForAccount: (basePath: string, token: string, accountId: string) => Promise<Event[]>;
export declare const _fetchExhibitions: (basePath: string, token: string, eventId: string) => Promise<Exhibition[]>;
export declare const _fetchEventDetails: (basePath: string, token: string, eventId: string) => Promise<Event>;
export declare const _sendNotification: (basePath: string, token: string, eventId: string, message: string, date: string, url: string) => Promise<any>;
export declare const _sendSingleNotification: (basePath: string, token: string, attendeeId: string, message: string, date?: string, url?: string) => Promise<any>;
export declare const _fetchEventNotifications: (basePath: string, token: string, eventId: string) => Promise<any>;
export declare const _fetchEventTemplates: (basePath: string, token: string, eventId: string) => Promise<any>;
export declare const _updateEventTemplates: (basePath: string, token: string, templateId: string, eventId: string, data: any) => Promise<any>;
export declare const _fetchAttendeesAvailabilities: (basePath: string, token: string, eventId: string, date: string) => Promise<any>;
export declare const _importAgenda: (basePath: string, token: string, eventId: string, eventSource: string) => Promise<any>;
export declare const _createGroup: (basePath: string, token: string, data: any) => Promise<any>;
export declare const _updateGroup: (basePath: string, token: string, groupId: string, data: any) => Promise<any>;
export declare const _updateSpeakerRole: (basePath: string, token: string, attendeeId: string, data: any) => Promise<any>;
export declare const _deleteSpeakerRole: (basePath: string, token: string, attendeeId: string) => Promise<any>;
export declare const _deleteGroup: (basePath: string, token: string, groupId: string) => Promise<any>;
export declare const _createOption: (basePath: string, token: string, data: any) => Promise<any>;
export declare const _updateOption: (basePath: string, token: string, optionId: string, data: any) => Promise<any>;
export declare const _deleteOption: (basePath: string, token: string, optionId: string) => Promise<any>;
export declare const _createTicket: (basePath: string, token: string, data: any) => Promise<any>;
export declare const _updateTicket: (basePath: string, token: string, ticketId: string, data: any) => Promise<any>;
export declare const _deleteTicket: (basePath: string, token: string, ticketId: string) => Promise<any>;
export declare const _fetchEventDiscounts: (basePath: string, token: string, eventId: string) => Promise<ResponsePaginationType<DiscountServerResponse>>;
export declare const _createDiscount: (basePath: string, token: string, data: any) => Promise<GenericResponseServerType<DiscountServerResponse>>;
export declare const _updateDiscount: (basePath: string, token: string, discountId: string, data: any) => Promise<ResponseServerType<DiscountServerResponse>>;
export declare const _deleteDiscount: (basePath: string, token: string, discountId: string) => Promise<string>;
export declare const _fetchExhibitionDetails: (basePath: string, token: string, exhibitionId: string) => Promise<Exhibition>;
export declare const _createLocation: (basePath: string, token: string, files: any, data: any) => Promise<any>;
export declare const _updateLocation: (basePath: string, token: string, locationId: string, data: any, files?: any) => Promise<any>;
export declare const _deleteLocation: (basePath: string, token: string, locationId: string) => Promise<any>;
export declare const _fetchEventLocations: (basePath: string, token: string, eventId: string) => Promise<EventLocation[]>;
export declare const _fetchEventStreams: (basePath: string, token: string, eventId: string) => Promise<EventStream[]>;
export declare const _fetchUserRegistrationsEvents: (basePath: string, token: string) => Promise<UserRegistrationsEvent[]>;
export declare const _fetchEventDocuments: (basePath: string, token: string, eventId: string) => Promise<DocumentType[]>;
export declare const _assignDocumentToEvent: (basePath: string, token: string, eventId: string, documentId: string) => Promise<any>;
export declare const _createDocument: (basePath: string, token: string, files: any, data: any) => Promise<any>;
export declare const _createExhibitionDocument: (basePath: string, token: string, exhibitionId: string, files: any, data: any) => Promise<any>;
export declare const _updateDocument: (basePath: string, token: string, documentId: string, data: any) => Promise<any>;
export declare const _deleteDocument: (basePath: string, token: string, documentId: string) => Promise<any>;
export declare const _reportExhibitionAction: (basePath: string, token: string, exhibitionId: string, requestData: ExhibitionReport) => Promise<void>;
export declare const _pinDocument: (basePath: string, token: string, eventId: string, documentId: string) => Promise<boolean>;
export declare const _unpinDocument: (basePath: string, token: string, eventId: string, documentId: string) => Promise<boolean>;
export declare const _pinExhibition: (basePath: string, token: string, exhibitionId: string) => Promise<boolean>;
export declare const _unpinExhibition: (basePath: string, token: string, exhibitionId: string) => Promise<boolean>;
export declare const _fetchEventGroups: (basePath: string, token: string, eventId: string) => Promise<GroupServerResponse[]>;
export declare const _fetchPublicEventGroups: (basePath: string, eventId: string) => Promise<GroupServerResponse[]>;
export declare const _fetchEventAttendeeActions: (basePath: string, token: string, eventId: string) => Promise<ResponseServerType<FetchCurrentEventAttendeesActionsResponse[]>>;
export declare const _resendTicketEmail: (basePath: string, token: string, ticketId: string) => Promise<any>;
export declare const _resendBookingEmail: (basePath: string, token: string, bookingId: string) => Promise<any>;
export declare const _checkBooking: (basePath: string, body: any, lang: string) => Promise<any>;
export declare const _createBooking: (basePath: string, body: any, lang: string) => Promise<any>;
export declare const _fetchMyBookings: (basePath: string, token: string) => Promise<ResponsePaginationType<Booking>>;
export declare const _fetchAccountBookings: (basePath: string, token: string, accountId: string, params?: string) => Promise<ResponsePaginationType<Booking>>;
export declare const _assignTicket: (basePath: string, token: string, bookingId: string, ticketId: string, data: any) => Promise<any>;
export declare const _fetchTicketDetails: (basePath: string, eventId: string, profileId: string, access: string) => Promise<ResponsePaginationType<BookingDetails>>;
export declare const _postTicketDetails: (basePath: string, eventId: string, profileId: string, access: string, body: any) => Promise<any>;
export declare const _acceptTicket: (basePath: string, ticketId: string, access: string, body: any) => Promise<any>;
export declare const _acceptInternTicket: (basePath: string, token: string, ticketId: string, body: any) => Promise<any>;
export declare const _fetchEventBookings: (basePath: string, token: string, eventId: string) => Promise<ResponsePaginationType<Booking>>;
export declare const _confirmBooking: (basePath: string, token: string, bookingId: string) => Promise<ResponsePaginationType<Booking>>;
export declare const _fetchEventOrderedTickets: (basePath: string, token: string, eventId: string) => Promise<any>;
export declare const _createFreeTrialAccount: (basePath: string, token: string, data: any) => Promise<any>;
export declare const _eventInvitationRegistration: (basePath: string, token: string, userId: string, data: any) => Promise<any>;
export declare const _fetchAccountDetails: (basePath: string, token: string, accountId: string) => Promise<any>;
export declare const _fetchSpeakers: (basePath: string, token: string, url: string) => Promise<any>;
export declare const _fetchEditableEvents: (basePath: string, token: string, url: string) => Promise<any>;
export declare const _fetchMySessions: (basePath: string, token: string, url: string) => Promise<any>;
export declare const _updateAccountWithFiles: (basePath: string, token: string, accountId: string, updatedMyAccount: AccountInput, files: any) => Promise<any>;
export declare const _fetchEventPages: (basePath: string, token: string, eventId: string, nbPage?: number, params?: string) => Promise<ResponsePaginationType<Page>>;
export declare const _createPage: (basePath: string, token: string, data: any) => Promise<any>;
export declare const _updatePage: (basePath: string, token: string, pageId: string, data: any) => Promise<any>;
export declare const _deletePage: (basePath: string, token: string, eventId: string, pageId: string) => Promise<any>;
export declare const _updateEvent: (basePath: string, token: string, eventId: string, data: any, files: any) => Promise<EventServerResponse>;
export declare const _fetchEventTickets: (basePath: string, token: string, eventId: string) => Promise<TicketServerResponse[]>;
export declare const _fetchEventOptions: (basePath: string, token: string, eventId: string) => Promise<OptionServerResponse[]>;
export declare const _assignPaymentAccount: (basePath: string, token: string, eventId: string, requestData: {
payment_account: string;
}) => Promise<any>;
export declare const _unassignPaymentAccount: (basePath: string, token: string, eventId: string, paymentAccountId: string) => Promise<any>;
export declare const _createEvent: (basePath: string, token: string, data: any, files: {
name: string;
value: File;
}[]) => Promise<any>;
export declare const _fetchZoomContent: (basePath: string, token: string, body: ZoomParams) => Promise<string>;
export declare const _fetchYoutubeContent: (basePath: string, token: string, reference: string) => Promise<string>;
export declare const _createStream: (basePath: string, token: string, data: StreamInput) => Promise<Stream>;
export declare const _updateStream: (basePath: string, token: string, streamId: string, data: StreamInput) => Promise<{
data: Stream;
}>;
export declare const _deleteStream: (basePath: string, token: string, streamId: string) => Promise<APIResponse>;
export declare const _fetchAllExhibitions: (basePath: string, token: string, eventId: string) => Promise<Exhibition[]>;
export declare const _fetchMyExhibitions: (basePath: string, token: string) => Promise<Exhibition[]>;
export declare const _createExhibition: (basePath: string, token: string, files: any, data: ExhibitionInput) => Promise<Exhibition>;
export declare const _importExhibition: (basePath: string, token: string, eventId: string, eventSource: string) => Promise<APIResponse>;
export declare const _updateExhibition: (basePath: string, token: string, exhibitionId: string, files: any, data: ExhibitionInput) => Promise<Exhibition>;
export declare const _deleteExhibition: (basePath: string, token: string, exhibitionId: string) => Promise<APIResponse>;
export declare const _fetchPortfolios: (basePath: string, token: string, accountId: string) => Promise<Portfolio[]>;
export declare const _deletePortfolio: (basePath: string, token: string, portfolioId: string) => Promise<any>;
export declare const _assignPortfolio: (basePath: string, token: string, eventId: string, portfolioId: string) => Promise<any>;
export declare const _unassignPortfolio: (basePath: string, token: string, eventId: string, portfolioId: string) => Promise<any>;
export declare const _createPortfolio: (basePath: string, token: string, data: PortfolioInput, files: {
name: string;
value: File;
}[]) => Promise<any>;
export declare const _updatePortfolio: (basePath: string, token: string, portfolioId: string, data: PortfolioInput, files: {
name: string;
value: File;
}[]) => Promise<any>;
export declare const _fetchPortfolioDetails: (basePath: string, token: string, portfolioId: string) => Promise<Portfolio>;
export declare const _fetchPortfolioEvents: (basePath: string, token: string, portfolioId: string) => Promise<Event[]>;
export declare const _fetchBlogPages: (basePath: string, token: string, accountId: string, portfolioId?: string) => Promise<BlogPage[]>;
export declare const _createBlogPage: (basePath: string, token: string, portfolioId: string, data: BlogPageInput, files: {
name: string;
value: File;
}[]) => Promise<any>;
export declare const _updatePortfolioBlogPage: (basePath: string, token: string, portfolioId: string, blogPostId: string, data: BlogPageInput, files: {
name: string;
value: File;
}[]) => Promise<any>;
export declare const _deletePortfolioBlogPage: (basePath: string, token: string, portfolioId: string, blogPostId: string) => Promise<any>;
export declare const _fetchMediaDirectories: (basePath: string, token: string, accountId: string, path: string) => Promise<Directory>;
export declare const _fetchMediaDirectoryFiles: (basePath: string, token: string, accountId: string, path: string) => Promise<DirectoryFiles>;
export declare const _fetchMediaFileDetails: (basePath: string, token: string, accountId: string, filepath: string) => Promise<FileDetails>;
export declare const _uploadImageToFolder: (basePath: string, token: string, accountId: string, folderPath: string, fileName: string, blob: Blob) => Promise<APIResponse>;
export declare const _renameFolder: (basePath: string, token: string, accountId: string, path: string, name_old: string, name_new: string) => Promise<APIResponse>;
export declare const _deleteMediaDirectories: (basePath: string, token: string, accountId: string, path: string, name: string) => Promise<APIResponse>;
export declare const _deleteMediaDirectoryFiles: (basePath: string, token: string, accountId: string, filepath: string) => Promise<APIResponse>;
export declare const _addMediaFolder: (basePath: string, token: string, accountId: string, path: string, name: string) => Promise<APIResponse>;
export declare const _updateEventWebsite: (basePath: string, token: string, eventId: string, keyData: string, data: {
website_content: Record<string, string | boolean | File>[];
}, files?: any) => Promise<EventServerResponse>;
export declare const _importTickets: (basePath: string, token: string, eventId: string, ticketsList: string[]) => Promise<ResponsePaginationType<TicketServerResponse>>;
export declare const _fetchPublicEventAdvertisement: (basePath: string, eventId: string) => Promise<GenericResponseServerType<PublicAdResponse[]>>;
export declare const _activateDataManagers: (basePath: string, token: string, eventId: string, attendeeIds: string[]) => Promise<Attendee[]>;
export declare const _deactivateDataManagers: (basePath: string, token: string, eventId: string, attendeeIds: string[]) => Promise<Attendee[]>;