UNPKG

@juriskop/swish-client

Version:

A JavaScript/TypeScript client for interfacing with SWISH supporting HTTP digest auth.

56 lines (55 loc) 1.11 kB
export interface SWISHProgramDataJson { chats: { total: number; }; data: string; meta: { author: string; commit: string; commit_message: string; data: string; identity: string; modify: string[]; name: string; previous: string; public: string; symbolic: string; time: number; }; } export interface SWISHQuerySuccessfulAnswer { data: { data: Record<string, any>[]; event: 'success'; id: string; more: boolean; projection: string[]; time: number; }; event: string; id: string; } export interface SWISHQueryFailureAnswer { data: { event: 'failure'; id: string; time: number; }; event: string; id: string; } export interface SWISHQueryErrorAnswer { data: { arg1?: any; arg2?: any; arg3?: any; arg4?: any; arg5?: any; code: string; data: string; event: 'error'; id: string; }; event: string; id: string; }