UNPKG

@bbc/timeline-state-resolver-types

Version:
34 lines 1.36 kB
/** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and re-run the "tsr-schema-types" tool to regenerate this file. */ import type { ActionExecutionResult } from "../actions"; export interface TcpSendOptions { host: string; port: number; bufferEncoding?: 'ascii' | 'utf8' | 'utf-8' | 'utf16le' | 'ucs2' | 'ucs-2' | 'base64' | 'base64url' | 'latin1' | 'binary' | 'hex'; } export type SomeMappingTcpSend = Record<string, never>; export interface SendTcpCommandPayload { message: string; temporalPriority?: number; queueId?: string; [k: string]: unknown; } export declare enum TcpSendActions { Reconnect = "reconnect", ResetState = "resetState", SendTcpCommand = "sendTcpCommand" } export interface TcpSendActionMethods { [TcpSendActions.Reconnect]: (payload: Record<string, never>) => Promise<ActionExecutionResult<void>>; [TcpSendActions.ResetState]: (payload: Record<string, never>) => Promise<ActionExecutionResult<void>>; [TcpSendActions.SendTcpCommand]: (payload: SendTcpCommandPayload) => Promise<ActionExecutionResult<void>>; } export interface TcpSendDeviceTypes { Options: TcpSendOptions; Mappings: SomeMappingTcpSend; Actions: TcpSendActionMethods; } //# sourceMappingURL=tcpSend.d.ts.map