{ from?: number, // default 0 size?: number, // default 30 ids?: number[], // optional: restrict to IDs asc?: string, // optional: sort asc, e.g. "Datum;ID" desc?: string, // optional: sort desc, e.g. "Datum;ID" on?: string[] // optional filters, tokens "Field;search;from;to" }
{ total: number, filtered: number, fields: DField[], data: any[], summary: { [key: string]: number }, query: DQuery } DField = { name: string, text?: string, sort?: 'asc'|'desc'|'', // simple values (one of these may be present) string?: string|null, number?: number|null, numbers?: number[], date?: string|null, // ISO YYYY-MM-DD checkbox?: boolean|null, select?: { // select-like inputs type: 'number'|'date'|'string', value?: any|null, options: { value: any, text: string }[] }, checkbuttons?: { // select-like inputs type: 'number'|'string', value?: any|null, options: { value: any, text: string }[] }, checkboxes?: { // select-like inputs type: 'number'|'date'|'string'|'number[]'|'string[]', values?: any[], options: { value: any, text: string }[], classInput?: string }, range?: { // ranges and validity type: 'number'|'date', nullable?: boolean, from?: number|string|Date|null, to?: number|string|Date|null }, valid_until?: { type: 'date', nullable?: boolean, value?: string|Date|null } } DQuery = { from: number, size: number, init?: number, fields: DField[] }
{ from?: string, // ISO date YYYY-MM-DD to?: string, // ISO date YYYY-MM-DD ucty: string[], // required: account numbers/prefixes stredisko?: number, // optional: centre ID cinnost?: number, // optional: activity ID zakazka?: string // optional: order number }
{ centre?: number, // optional: centre ID cinnost?: number, // optional: activity ID cislo_zak?: string, // optional: order number RelTpFak?: number[], // optional: invoice types [1,2,3,4,5,6,11,12,13,14,15,16] InvoiceType?: number, // optional: one of RelTpFak (affects sign) dateTo?: string, // optional: ISO date YYYY-MM-DD dateFrom?: string, // optional: ISO date YYYY-MM-DD from?: number, // optional: days lower bound, default 0 to?: number // optional: days upper bound, default 100 }
{ centre?: number, cinnost?: number, cislo_zak?: string, RelTpFak?: number[], InvoiceType?: number, dateTo?: string, // ISO date YYYY-MM-DD dateFrom?: string, // ISO date YYYY-MM-DD percentage: string // one of: '30','360','720','1080' }
{ centre?: number, cinnost?: number, cislo_zak?: string, RelTpFak?: number[], // invoice types [1,2,3,4,5,6,11,12,13,14,15,16] InvoiceType?: number, dateTo?: string, // ISO date YYYY-MM-DD dateFrom?: string, // ISO date YYYY-MM-DD type: 'N'|'P'|'S'|'C'|'l' // required: service code }
{ centre?: number, cinnost?: number, cislo_zak?: string, RelTpFak?: number[], InvoiceType?: number, dateTo?: string, // ISO date YYYY-MM-DD dateFrom?: string, // ISO date YYYY-MM-DD type: 'N'|'P'|'S'|'C'|'l' // required: service code }