import { Observable } from 'rxjs'; import { InputParams } from './module/fn.socket.io.server/fn.socket.io.gateway'; import { SessionParams, TFile, TRequestType } from './fn.core.type'; export interface OnCommand { onCommand(sessionParams: SessionParams, inputParams?: INPUT, files?: Array): OUTPUT | Promise | Observable; } export interface CommandParams { commandName: string; needAuthorization?: boolean; version?: string; method?: TRequestType; } export interface PostgresEventParams { eventName: string; } export interface FnCommandContainer { commandInstance: OnCommand; needAuthorization: boolean; } export type ICommandGenerateDeviceTokenOut = { userGuid: number; token: string; };