UNPKG

@tak-ps/node-tak

Version:

Lightweight JavaScript library for communicating with TAK Server

34 lines 1.04 kB
import { TAKAuth } from './auth.js'; import { Type } from '@sinclair/typebox'; export const CommandConfig = Type.Object({ version: Type.Integer(), profiles: Type.Record(Type.String(), Type.Object({ host: Type.String(), ports: Type.Object({ marti: Type.Integer(), webtak: Type.Integer(), stream: Type.Integer() }), auth: Type.Optional(TAKAuth) })) }); export var CommandOutputFormat; (function (CommandOutputFormat) { CommandOutputFormat["JSON"] = "json"; CommandOutputFormat["GEOJSON"] = "geojson"; CommandOutputFormat["XML"] = "xml"; CommandOutputFormat["BINARY"] = "binary"; })(CommandOutputFormat || (CommandOutputFormat = {})); export default class Commands { api; schema = {}; constructor(api) { this.api = api; } async cli(args) { if (!args) throw new Error('Args object must be provided'); throw new Error('Command not yet supported'); } } //# sourceMappingURL=commands.js.map