UNPKG

@isaac-platform/isaac-integration-sdk

Version:

A Typescript SDK for integrating with ISAAC

57 lines 1.44 kB
export type IsaacScheduleItem = { type: "EVENT" | "PLAYABLE"; typeId: number; displayName: string; description?: string; duration: number; _links: any[]; }; export type IsaacScheduleEntryType = { _id: string; itemId: number; itemType: "EVENT" | "PLAYABLE"; displayName: string; description?: string; duration?: number; _links?: string[]; createdAt: string; updatedAt: string; zone?: any; zoneId: number; /** * Start time of the scheduleData entry. */ startTime: string; /** * End time of the scheduleData entry. */ endTime: string; /** * Start time of the scheduleData entry in seconds since epoch. */ startTimeUnix: number; /** * End time of the scheduleData entry in seconds since epoch. */ endTimeUnix: number; command: string; /** * ExternalRef unique identifier for the scheduleData entry. */ externalRef: string; }; export type IsaacScheduleType = { _id: string; queryTime: number; countLimitReached: boolean; depthLimitReached: boolean; generatedAt: string; numberOfResults: number; values: IsaacScheduleEntryType[]; }; export interface ScheduleEvents { newSchedule: (schedule: IsaacScheduleType) => void; scheduleUpdate: () => void; scheduleEntryStart: (entry: IsaacScheduleEntryType) => void; } //# sourceMappingURL=types.d.ts.map