export const SESSIONIZE_API_ORIGIN = 'https://sessionize.com' export const SESSIONIZE_DEMO_ENDPOINT_ID = 'jl4ktls0' export const SESSIONIZE_VIEWS = [ 'All', 'Sessions', 'Speakers', 'GridSmart', ] as const /** * Describe the shared Sessionize type exports. * * @example * import describeSessionizeTypes from 'kody:@kody/sessionize/types' * const info = describeSessionizeTypes() * // => { demoEndpointId: 'jl4ktls0', views: ['All', 'Sessions', 'Speakers', 'GridSmart'] } */ export default function describeSessionizeTypes() { return { demoEndpointId: SESSIONIZE_DEMO_ENDPOINT_ID, apiOrigin: SESSIONIZE_API_ORIGIN, views: SESSIONIZE_VIEWS, } } export type SessionizeView = (typeof SESSIONIZE_VIEWS)[number] export type SessionizeLink = { title: string url: string linkType: string } export type SessionizeRoom = { id: number name: string sort: number } export type SessionizeCategoryItem = { id: number name: string sort?: number } export type SessionizeCategory = { id: number title: string type: string sort?: number items: Array } export type SessionizeQuestion = { id: number question: string questionType: string sort: number } export type SessionizeQuestionAnswer = { questionId: number answerValue: string } export type SessionizeSpeakerRef = { id: string name: string } export type SessionizeCategoryRef = { id: number name: string sort?: number categoryItems: Array<{ id: number; name: string }> } export type SessionizeAllSession = { id: string title: string description: string | null startsAt: string | null endsAt: string | null isServiceSession: boolean isPlenumSession: boolean speakers: Array categoryItems: Array questionAnswers: Array roomId: number | null liveUrl: string | null recordingUrl: string | null status: string | null } export type SessionizeAllSpeaker = { id: string firstName: string lastName: string fullName: string bio: string | null tagLine: string | null profilePicture: string | null isTopSpeaker: boolean links: Array sessions: Array questionAnswers: Array } export type SessionizeAllResult = { sessions: Array speakers: Array questions: Array categories: Array rooms: Array } export type SessionizeListedSession = { id: string title: string description: string | null startsAt: string | null endsAt: string | null isServiceSession: boolean isPlenumSession: boolean speakers: Array categories: Array roomId: number | null room: string | null liveUrl: string | null recordingUrl: string | null status: string | null } export type SessionizeSessionGroup = { groupId: number groupName: string isDefault: boolean sessions: Array } export type SessionizeListedSpeaker = { id: string firstName: string lastName: string fullName: string bio: string | null tagLine: string | null profilePicture: string | null isTopSpeaker: boolean links: Array sessions: Array<{ id: number | string; name: string }> questionAnswers: Array } export type SessionizeScheduleSession = { id: string title: string description: string | null startsAt: string | null endsAt: string | null isServiceSession: boolean isPlenumSession: boolean speakers: Array roomId: number | null room: string | null status: string | null } export type SessionizeScheduleRoom = { id: number name: string hasOnlyPlenumSessions?: boolean sessions: Array } export type SessionizeScheduleDay = { date: string isDefault: boolean rooms: Array timeSlots: Array<{ slotStart: string rooms: Array }> } export type EndpointInput = { /** Sessionize API / Embed endpoint id from `/api/v2//view/All`. */ endpointId: string } export type SlimSession = { id: string title: string startsAt: string | null endsAt: string | null roomId: number | null room: string | null speakers: Array categories: Array<{ name: string; values: Array }> isServiceSession: boolean isPlenumSession: boolean status: string | null } export type SlimSpeaker = { id: string fullName: string firstName: string lastName: string tagLine: string | null isTopSpeaker: boolean profilePicture: string | null links: Array sessionIds: Array sessionTitles: Array } export type EventSummary = { endpointId: string sessionCount: number speakerCount: number roomCount: number categoryCount: number rooms: Array<{ id: number; name: string }> categories: Array<{ id: number title: string type: string items: Array<{ id: number; name: string }> }> sessions: Array speakers: Array } export type ScheduleSlot = { startsAt: string | null endsAt: string | null roomId: number | null room: string | null session: { id: string title: string isServiceSession: boolean isPlenumSession: boolean speakers: Array } } export type EventSchedule = { endpointId: string days: Array<{ date: string rooms: Array<{ id: number; name: string }> slots: Array }> }