text/xml // body: XML conforming to Pamica data.xsd (CZ) // either a single entity or a <dat:dataPack> wrapper
<dat:dataPack version="2.0" id="import" application="API"> <dat:dataPackItem id="1" version="2.0"> <per:data version="2.0">...</per:data> </dat:dataPackItem> </dat:dataPack>
{ from?: number, // default 0 size?: number, // default 30 fields?: DField[] // optional filters and sort; see DField in Response below }
{ 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[] }
{ ids: number[] }
{ id: number, pwd: string, email: string }
{ id: number, pwd?: string, email?: string, number?: string }
{ employee_ids?: number[] }
{ DatOd?: string, // YYYY-MM-DD DatDo?: string, // YYYY-MM-DD RefAg?: number, // employment id RefSlozky?: number, // benefit type id (sMZslozky.ID) RelDruhSlozky?: number, // category code Hod?: number, Kc?: number, Proc?: number, Sazba?: number, SText?: string, Ucet?: string, KodBanky?: string, VarSym?: string, SpecSym?: string, KonstSym?: string }
{ RefAg: number, // required employment id RefSlozky: number, // required benefit type id (sMZslozky.ID) DatOd: string, // YYYY-MM-DD DatDo: string, // YYYY-MM-DD Hod?: number, Kc?: number, Proc?: number, Sazba?: number, SText?: string, RelDruhSlozky?: number, Ucet?: string, KodBanky?: string, VarSym?: string, SpecSym?: string, KonstSym?: string }
{ employee_ids?: number[] }
{ from?: number, // default 0 size?: number, // default 30 fields?: DField[] // optional filters and sort // default sort: { name: 'FilterDatum', sort: 'desc' } }
{ 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[] }
{ // Required basics created_at: string, // ISO datetime updated_at: string, // ISO datetime company_ico: string, party_id: string, pracovny_stav: number, titul_pred: string, // max 14 meno: string, priezvisko: string, titul_za: string, // max 14 email: string, id_pracovna_pozicia: string, pracovna_pozicia: string, klasifikacia: string, // max 7 (SK ISCO) popis_prace: string, note?: string, // Employment details (optional) druh_pracovneho_pomeru?: number, zaciatok_pracovneho_pomeru?: string, // ISO date miesto_prace?: string, miesto_prace_kod?: string, // max 6 (LAU/LSUJ) stredisko?: string, hruba_mzda?: number, hruba_mzda_slovom?: string, reldruhm?: number, pracovny_fond?: number, pracovny_fond_den?: number, praca_na_dobu_urcitu?: string, // ISO date date_sent?: string, // ISO date pohlavie?: number, // Personal data datum_narodenia?: string, // ISO date rodne_priezvisko: string, rodne_cislo: string, // d{6}/d{3,4} miesto_narodenia: string, narodnost: string, statna_prislusnost: string, cislo_op: string, rodinny_stav?: number, // Foreign national cudzinec: boolean, krajina_narodenia: string, // 2-letter cudzinec_op?: string, cudzinec_adresa?: string, cudzinec_doklad?: string, cudzinec_poistovna?: string, cudzinec_cssz?: string, // Address adresa_ulica: string, adresa_cislo: string, adresa_psc: string, adresa_mesto: string, adresa_stat: string, // 2-letter kontakt_adresa_ulica: string, kontakt_adresa_cislo: string, kontakt_adresa_psc: string, kontakt_adresa_mesto: string, kontakt_adresa_stat: string, // 2-letter kontakt_telefon?: string, // Payments iban: string, swift_bic: string, var_sym?: string, zdravotna_poistovna?: number, // Benefits/flags ztp: boolean, starobny_dochodok: boolean, invalidny_dochodok: boolean, vysluhovy_dochodok: boolean, dochodca: boolean, invalidita: string, trvala_starostlivost_dieta: boolean, nezdanitelna_cast: boolean, dan_bonus: boolean, // Children deti: { meno: string, rodne_cislo: string }[], // Attachments files: ({ name: string, type: string, size: number, content: string }| { id: number, name: string, type: string, size: number, content?: string })[], // Consent + token gdpr: boolean, token?: string }