import { Mapping } from './mapping'; import { TSRTimelineObjBase, DeviceType } from '.'; export interface MappingHTTPSend extends Mapping { device: DeviceType.HTTPSEND; } export interface HTTPSendCommandContent { type: TimelineContentTypeHTTP; url: string; params: { [key: string]: number | string | any; }; temporalPriority?: number; /** Commands in the same queue will be sent in order (will wait for the previous to finish before sending next */ queueId?: string; } export interface HTTPSendOptions { makeReadyCommands?: HTTPSendCommandContent[]; /** Whether a makeReady should be treated as a reset of the device. It should be assumed clean, with the queue discarded, and state reapplied from empty */ makeReadyDoesReset?: boolean; /** Minimum time in ms before a command is resent, set to <= 0 or undefined to disable */ resendTime?: number; } export declare enum TimelineContentTypeHTTP { GET = "get", POST = "post", PUT = "put", DELETE = "delete" } export declare type TimelineObjHTTPSendAny = TimelineObjHTTPRequest; export interface TimelineObjHTTPSendBase extends TSRTimelineObjBase { content: { deviceType: DeviceType.HTTPSEND; }; } export interface TimelineObjHTTPRequest extends TimelineObjHTTPSendBase { content: { deviceType: DeviceType.HTTPSEND; } & HTTPSendCommandContent; } //# sourceMappingURL=httpSend.d.ts.map