import * as responses from './testResponses' ; export interface Responses { [ command ] : ( ( req : string [ ] | null ) => string ) | Responses ; } export const responses218 = { LOADBG : ( ) => '202 LOADBG OK' , LOAD : ( ) => '202 LOAD OK' , PLAY : ( ) => '202 PLAY OK' , PAUSE : ( ) => '202 PAUSE OK' , RESUME : ( ) => '202 RESUME OK' , STOP : ( ) => '202 STOP OK' , CLEAR : ( ) => '202 CLEAR OK' , CALL : ( ) => 'CALL' , SWAP : ( ) => 'SWAP' , ADD : ( ) => '202 ADD OK' , REMOVE : ( ) => '202 REMOVE OK' , PRINT : ( ) => '202 PRINT OK' , LOG : { LEVEL : ( c ) : string => c && c . length === 3 && c [ 2 ] . toLowerCase ( ) in [ 'trace' , 'debug' , 'info' , 'warning' , 'error' , 'fatal' ] ? '202 LOG OK' : '400 ERROR' , CATEGORY : ( c ) : string => ( c && c . length === 4 ? '202 LOG OK' : '400 ERROR' ) } , SET : ( ) => 'SET' , LOCK : ( ) => 'LOCK' , DATA : { STORE : ( ) : string => 'DATA STORE' , RETRIEVE : ( ) : string => 'DATA RETRIEVE' , LIST : ( ) : string => 'DATA LIST' , REMOVE : ( ) : string => 'DATA REMOVE' } , CG : { layer : { ADD : ( ) : string => 'CG ADD' , PLAY : ( ) : string => 'CG PLAY' , STOP : ( ) : string => 'CG STOP' , NEXT : ( ) : string => 'CG NEXT' , REMOVE : ( ) : string => 'CG REMOVE' , CLEAR : ( ) : string => 'CG CLEAR' , UPDATE : ( ) : string => 'CG UPDATE' , INVOKE : ( ) : string => 'CG INVOKE' , INFO : ( ) : string => 'CG INFO' } } , MIXER : { layer : { KEYER : ( ) : string => 'MIXER KEYER' , CHROMA : ( ) : string => 'MIXER CHROMA' , BLEND : ( ) : string => 'MIXER BLEND' , INVERT : ( ) : string => 'MIXER_INVERT' , OPACITY : ( ) : string => 'MIXER OPACITY' , BRIGHTNESS : ( ) : string => 'MIXER BRIGHTNESS' , SATURATION : ( ) : string => 'MIXER SATURATION' , CONTRAST : ( ) : string => 'MIXER CONTRAST' , LEVELS : ( ) : string => 'MIXER LEVELS' , FILL : ( ) : string => 'MIXER FILL' , CLIP : ( ) : string => 'MIXER CLIP' , ANCHOR : ( ) : string => 'MIXER ANCHOR' , CROP : ( ) : string => 'MIXER CROP' , ROTATION : ( ) : string => 'MIXER ROTATION' , PERSPECTIVE : ( ) : string => 'MIXER PERSPECTIVE' , MIPMAP : ( ) : string => 'MIXER MIPMAP' , VOLUME : ( ) : string => 'MIXER VOLUME' , MASTERVOLUME : ( ) : string => 'MIXER MASTERVOLUME' , STRAIGHT_ALPHA_OUTPUT : ( ) : string => 'MIXER STRAIGHT_ALPHA_OUTPUT' , GRID : ( ) : string => 'MIXER GRID' , COMMIT : ( ) : string => 'MIXER COMMIT' , CLEAR : ( ) : string => 'MIXER CLEAR' } } , CHANNEL_GRID : ( ) => '202 CHANNEL_GRID OK' , THUMBNAIL : { LIST : ( ) : string => 'THUMBNAIL LIST' , RETRIEVE : ( ) : string => 'THUMBNAIL RETRIEVE' , GENERATE : ( ) : string => 'THUMBNAIL GENERATE' , GENERATE_ALL : ( ) : string => 'THUMBNAIL GENERATE_ALL' } , CINF : ( ) => 'CINF' , CLS : ( ) => responses . clsResponse218 , FLS : ( ) => responses . flsResponse218 , TLS : ( ) => responses . tlsResponse218 , VERSION : ( ) => '201 VERSION OK\r\n2.1.8.12205 62ea2b24d NRK' , INFO : { none : ( ) : string => 'INFO' , number : ( ) : string => 'INFO channel' , TEMPLATE : ( ) : string => 'INFO TEMPLATE' , CONFIG : ( ) : string => 'INFO CONFIG' , PATHS : ( ) : string => 'INFO PATHS' , SYSTEM : ( ) : string => 'INFO SYSTEM' , SERVER : ( ) : string => 'INFO SERVER' , THREADS : ( ) : string => 'INFO THREADS' , DELAY : ( ) : string => 'INFO DELAY' } , DIAG : ( ) => '202 DIAG OK' , KILL : ( ) => '202 KILL OK' , RESTART : ( ) => '202 RESTART OK' , PING : ( c ) => ( c && c . length > 1 ? 'PONG ' + c . slice ( 1 ) . join ( ' ' ) : 'PONG' ) , HELP : { none : ( ) : string => 'HELP' , string : ( ) : string => 'HELP command' , PRODUCER : ( ) : string => 'HELP PRODUCER' , CONSUMER : ( ) : string => 'HELP CONSUMER' } , TIME : ( ) => 'TIME' , SCHEDULE : { SET : ( ) : string => 'SCHEDULE_SET' , LIST : ( ) : string => 'SCHEDULE_LIST' , CLEAR : ( ) : string => 'SCHEDULE_CLEAR' , REMOVE : ( ) : string => 'SCHEDULE_REMOVE' , INFO : ( ) : string => 'SCHEDULE_INFO' } , TIMECODE : { layer : { SOURCE : ( ) : string => 'TIMECODE_SOURCE' } } } ; export const responses207 = Object . assign ( { } , responses218 , { VERSION : ( ) => '201 VERSION OK\r\n2.0.7.e9fc25a Stable' , ROUTE : ( ) => 'ROUTE' , GL_INFO : ( ) => 'GL INFO' , GL_GC : ( ) => 'GL GC' , CLS : ( ) => responses . clsResponse207 , TLS : ( ) => responses . tlsResponse207 } ) ; responses207 . LOG = Object . assign ( { } , responses218 . LOG ) ; delete ( responses207 . LOG as Responses ) . CATEGORY ; let mixerLayer = Object . assign ( { } , ( responses218 . MIXER as Responses ) . layer ) ; delete ( mixerLayer as Responses ) . INVERT ; responses207 . MIXER = Object . assign ( { } , { layer : mixerLayer } ) ; delete responses207 . FLS ; delete responses207 . HELP ; delete responses207 . TIME ; delete responses207 . PING ; delete responses207 . SCHEDULE ; delete responses207 . TIMECODE ; const info = Object . assign ( { } , responses218 . INFO as Responses ) ; info . QUEUES = ( ) : string => 'INFO QUEUES' ; responses207 . INFO = info ; export const responses220 = Object . assign ( { } , responses218 , { VERSION : ( ) => '201 VERSION OK\r\n2.2.0 66a9e3e2 Stable' } ) ; responses220 . LOG = Object . assign ( { } , responses218 . LOG , { CLS : ( ) => responses . clsResponse220 , FLS : ( ) => responses . flsResponse220 , TLS : ( ) => responses . tlsResponse220 } ) ; delete ( responses220 . LOG as Responses ) . CATEGORY ; const cgLayer = Object . assign ( { } , ( responses218 . CG as Responses ) . layer ) ; delete ( cgLayer as Responses ) . INFO ; responses220 . CG = Object . assign ( { } , { layer : cgLayer } ) ; delete ( responses220 . CG . layer as Responses ) . INFO ; mixerLayer = Object . assign ( { } , ( responses218 . MIXER as Responses ) . layer ) ; delete ( mixerLayer as Responses ) . INVERT ; delete ( mixerLayer as Responses ) . STRAIGHT_ALPHA_OUTPUT ; responses220 . MIXER = Object . assign ( { } , { layer : mixerLayer } ) ; responses220 . INFO = { none : ( responses218 . INFO as Responses ) . none , number : ( responses218 . INFO as Responses ) . number } ; delete responses220 . HELP ; delete responses220 . TIME ; delete responses220 . SCHEDULE ; delete responses220 . TIMECODE ;