@hubs101/booking-api-skd-client
Version:
Package for easy access to Event App API
338 lines (337 loc) • 11 kB
TypeScript
import { AgendaItem, AssigneeInput, Blog, BookingCheckDetails, BookingDetails, CustomResponseType3, Group, InboundData, Page, Portfolio, PublicAttendee, PublicBookingsCheckInput, PublicEventDetails, PublicEventDetailsResponse, PublicExhibitionItem, ResponsePaginationType, Ticket, VisitorDataInput, VisitorDetails } from "./types";
export declare const getPublicTicketDetails: ({ baseUrl, id, access, }: {
baseUrl: string;
id: string;
access: string;
}) => Promise<BookingDetails>;
export declare const assignTicketTo: ({ baseUrl, id, access, reference, assignee, }: {
baseUrl: string;
id: string;
access: string;
reference: string;
assignee: AssigneeInput;
}) => Promise<any>;
export declare const getPublicEvents: ({ baseUrl, page, limit, slug, language, }: {
baseUrl: string;
page?: number;
limit?: number;
slug?: string;
language: string;
}) => Promise<{
events: any;
}>;
export declare const getPublicAgenda: ({ baseUrl, page, eventId, language, }: {
baseUrl: string;
page?: number;
eventId?: string;
language: string;
}) => Promise<AgendaItem>;
export declare const getPublicEventExhibitions: ({ baseUrl, page, eventId, language, }: {
baseUrl: string;
eventId: string;
page?: number;
language?: string;
}) => Promise<PublicExhibitionItem[]>;
export declare const getPublicTickets: ({ baseUrl, page, ticketCode, eventSlug, language, }: {
baseUrl: string;
ticketCode?: string;
page?: number;
eventSlug?: string;
language: string;
}) => Promise<{
tickets: any;
}>;
export declare const getTicketByCode: ({ baseUrl, code, }: {
baseUrl: string;
code: string;
}) => Promise<{
ticket: unknown;
}>;
export declare const getTicketById: ({ baseUrl, id, }: {
baseUrl: string;
id: string;
}) => Promise<{
ticket: unknown;
}>;
export declare const getParamsTicket: ({ baseUrl, params, }: {
baseUrl: string;
params: string;
}) => Promise<{
ticket: Ticket;
}>;
export declare const checkDiscountTicket: ({ baseUrl, ticketsIds, discountCode, language, eventId, }: {
baseUrl: string;
ticketsIds: string[];
discountCode: string;
language: string;
eventId: string;
}) => Promise<{
discount: any;
}>;
export declare const getPublicPaymentMethods: ({ id, baseUrl, language, }: {
id: string;
baseUrl: string;
language: string;
}) => Promise<{
paymentMethods: any;
}>;
export declare const postPublicBookingsCheck: ({ baseUrl, bookingCheck, language, }: {
baseUrl: string;
bookingCheck: PublicBookingsCheckInput;
language: string;
}) => Promise<BookingCheckDetails>;
export declare const postPublicBookingsMutation: ({ baseUrl, bookingCheck, language, }: {
baseUrl: string;
bookingCheck: PublicBookingsCheckInput;
language: string;
}) => Promise<{
bookings: any;
}>;
export declare const postPublicBookings: ({ baseUrl, bookingCheck, language, }: {
baseUrl: string;
bookingCheck: PublicBookingsCheckInput;
language: string;
}) => Promise<{
bookings: any;
}>;
export declare const getPublicTicketGroupsByEvent: ({ baseUrl, eventId, language, }: {
baseUrl: string;
eventId: string;
language: string;
}) => Promise<{
ticketGroups: any;
}>;
export declare const getPublicAttendees: ({ baseUrl, eventId, params, }: {
baseUrl: string;
eventId?: string;
params?: string;
}) => Promise<{
attendees: PublicAttendee[];
}>;
export declare const getPublicPortfoliosByAccount: ({ baseUrl, accountId, page, slug, }: {
baseUrl: string;
accountId: string;
page?: number;
slug?: string;
}) => Promise<ResponsePaginationType<Portfolio>>;
export declare const getPublicBlogsByAccount: ({ baseUrl, accountId, page, limit, slug, tags, search, }: {
baseUrl: string;
accountId: string;
page?: number;
limit?: number;
slug?: string;
tags?: string;
search?: string;
}) => Promise<ResponsePaginationType<Blog>>;
export declare const getPublicEventDetailsById: ({ baseUrl, eventId, }: {
baseUrl: string;
eventId: string;
}) => Promise<PublicEventDetails>;
export declare const getPublicEventDetailsBySlug: ({ baseUrl, eventSlug, }: {
baseUrl: string;
eventSlug: string;
}) => Promise<PublicEventDetailsResponse[]>;
export declare const getPublicPortfolioEvents: ({ baseUrl, accountId, portfolioSlug, params, }: {
baseUrl: string;
accountId: string;
portfolioSlug: string;
params: string;
}) => Promise<ResponsePaginationType<PublicEventDetailsResponse>>;
export declare const getPublicEventPageDetailsBySlug: ({ baseUrl, eventId, pageSlug, }: {
baseUrl: string;
eventId: string;
pageSlug: string;
}) => Promise<Page>;
export declare const getPublicGroupDetailsById: ({ baseUrl, groupId, }: {
baseUrl: string;
groupId: string;
}) => Promise<Group>;
export declare const getPublicCoLocatedEventsByEventId: ({ baseUrl, eventId, }: {
baseUrl: string;
eventId: string;
}) => Promise<PublicEventDetailsResponse[]>;
export declare const postVisitor: ({ visitorData, }: {
visitorData: VisitorDataInput;
}) => Promise<VisitorDetails>;
export declare const postInbound: ({ inboundData, secret, }: {
inboundData: InboundData;
secret: string;
}) => Promise<CustomResponseType3>;
export declare const getVisitor: ({ visitorId, secret, }: {
visitorId: string;
secret: string;
}) => Promise<VisitorDetails>;
export declare const getPublicSpeakerGroupsByCategory: ({ baseUrl, eventId, category, }: {
baseUrl: string;
eventId: string;
category: string;
}) => Promise<any[]>;
export declare const getPublicExhibitionGroupsByCategory: ({ baseUrl, eventId, category, }: {
baseUrl: string;
eventId: string;
category: string;
}) => Promise<any[]>;
export declare const BaseAPI: {
getPublicEvents: ({ baseUrl, page, limit, slug, language, }: {
baseUrl: string;
page?: number;
limit?: number;
slug?: string;
language: string;
}) => Promise<{
events: any;
}>;
getPublicTicketDetails: ({ baseUrl, id, access, }: {
baseUrl: string;
id: string;
access: string;
}) => Promise<BookingDetails>;
assignTicketTo: ({ baseUrl, id, access, reference, assignee, }: {
baseUrl: string;
id: string;
access: string;
reference: string;
assignee: AssigneeInput;
}) => Promise<any>;
getPublicTickets: ({ baseUrl, page, ticketCode, eventSlug, language, }: {
baseUrl: string;
ticketCode?: string;
page?: number;
eventSlug?: string;
language: string;
}) => Promise<{
tickets: any;
}>;
getTicketByCode: ({ baseUrl, code, }: {
baseUrl: string;
code: string;
}) => Promise<{
ticket: unknown;
}>;
getTicketById: ({ baseUrl, id, }: {
baseUrl: string;
id: string;
}) => Promise<{
ticket: unknown;
}>;
getParamsTicket: ({ baseUrl, params, }: {
baseUrl: string;
params: string;
}) => Promise<{
ticket: Ticket;
}>;
checkDiscountTicket: ({ baseUrl, ticketsIds, discountCode, language, eventId, }: {
baseUrl: string;
ticketsIds: string[];
discountCode: string;
language: string;
eventId: string;
}) => Promise<{
discount: any;
}>;
getPublicPaymentMethods: ({ id, baseUrl, language, }: {
id: string;
baseUrl: string;
language: string;
}) => Promise<{
paymentMethods: any;
}>;
postPublicBookingsCheck: ({ baseUrl, bookingCheck, language, }: {
baseUrl: string;
bookingCheck: PublicBookingsCheckInput;
language: string;
}) => Promise<BookingCheckDetails>;
postPublicBookingsMutation: ({ baseUrl, bookingCheck, language, }: {
baseUrl: string;
bookingCheck: PublicBookingsCheckInput;
language: string;
}) => Promise<{
bookings: any;
}>;
postPublicBookings: ({ baseUrl, bookingCheck, language, }: {
baseUrl: string;
bookingCheck: PublicBookingsCheckInput;
language: string;
}) => Promise<{
bookings: any;
}>;
getPublicTicketGroupsByEvent: ({ baseUrl, eventId, language, }: {
baseUrl: string;
eventId: string;
language: string;
}) => Promise<{
ticketGroups: any;
}>;
getPublicAttendees: ({ baseUrl, eventId, params, }: {
baseUrl: string;
eventId?: string;
params?: string;
}) => Promise<{
attendees: PublicAttendee[];
}>;
getPublicPortfoliosByAccount: ({ baseUrl, accountId, page, slug, }: {
baseUrl: string;
accountId: string;
page?: number;
slug?: string;
}) => Promise<ResponsePaginationType<Portfolio>>;
getPublicBlogsByAccount: ({ baseUrl, accountId, page, limit, slug, tags, search, }: {
baseUrl: string;
accountId: string;
page?: number;
limit?: number;
slug?: string;
tags?: string;
search?: string;
}) => Promise<ResponsePaginationType<Blog>>;
getPublicEventDetailsById: ({ baseUrl, eventId, }: {
baseUrl: string;
eventId: string;
}) => Promise<PublicEventDetails>;
getPublicEventDetailsBySlug: ({ baseUrl, eventSlug, }: {
baseUrl: string;
eventSlug: string;
}) => Promise<PublicEventDetailsResponse[]>;
getPublicPortfolioEvents: ({ baseUrl, accountId, portfolioSlug, params, }: {
baseUrl: string;
accountId: string;
portfolioSlug: string;
params: string;
}) => Promise<ResponsePaginationType<PublicEventDetailsResponse>>;
getPublicEventPageDetailsBySlug: ({ baseUrl, eventId, pageSlug, }: {
baseUrl: string;
eventId: string;
pageSlug: string;
}) => Promise<Page>;
getPublicGroupDetailsById: ({ baseUrl, groupId, }: {
baseUrl: string;
groupId: string;
}) => Promise<Group>;
getPublicCoLocatedEventsByEventId: ({ baseUrl, eventId, }: {
baseUrl: string;
eventId: string;
}) => Promise<PublicEventDetailsResponse[]>;
getPublicEventExhibitions: ({ baseUrl, page, eventId, language, }: {
baseUrl: string;
eventId: string;
page?: number;
language?: string;
}) => Promise<PublicExhibitionItem[]>;
postVisitor: ({ visitorData, }: {
visitorData: VisitorDataInput;
}) => Promise<VisitorDetails>;
postInbound: ({ inboundData, secret, }: {
inboundData: InboundData;
secret: string;
}) => Promise<CustomResponseType3>;
getPublicSpeakerGroupsByCategory: ({ baseUrl, eventId, category, }: {
baseUrl: string;
eventId: string;
category: string;
}) => Promise<any[]>;
getPublicExhibitionGroupsByCategory: ({ baseUrl, eventId, category, }: {
baseUrl: string;
eventId: string;
category: string;
}) => Promise<any[]>;
};