@bratislava/ginis-sdk 0.3.2 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/dist/index.js +2 -0
  2. package/dist/index.js.map +7 -0
  3. package/package.json +8 -3
  4. package/.env.example +0 -2
  5. package/.eslintrc.json +0 -84
  6. package/.github/dependabot.yml +0 -11
  7. package/.github/workflows/publish.yml +0 -18
  8. package/.github/workflows/pull.yml +0 -38
  9. package/.prettierrc +0 -7
  10. package/babel.config.js +0 -6
  11. package/dist/api/json/pod/Detail-el-podani.d.ts +0 -36
  12. package/dist/api/json/pod/Detail-el-podani.d.ts.map +0 -1
  13. package/dist/api/json/pod/__tests__/Detail-el-podani.test.d.ts +0 -2
  14. package/dist/api/json/pod/__tests__/Detail-el-podani.test.d.ts.map +0 -1
  15. package/dist/api/json/pod/index.d.ts +0 -6
  16. package/dist/api/json/pod/index.d.ts.map +0 -1
  17. package/dist/api/json/ssl/Detail-dokumentu.d.ts +0 -110
  18. package/dist/api/json/ssl/Detail-dokumentu.d.ts.map +0 -1
  19. package/dist/api/json/ssl/Pridat-soubor.d.ts +0 -29
  20. package/dist/api/json/ssl/Pridat-soubor.d.ts.map +0 -1
  21. package/dist/api/json/ssl/__tests__/Detail-dokumentu.test.d.ts +0 -2
  22. package/dist/api/json/ssl/__tests__/Detail-dokumentu.test.d.ts.map +0 -1
  23. package/dist/api/json/ssl/__tests__/Pridat-soubor.test.d.ts +0 -2
  24. package/dist/api/json/ssl/__tests__/Pridat-soubor.test.d.ts.map +0 -1
  25. package/dist/api/json/ssl/index.d.ts +0 -8
  26. package/dist/api/json/ssl/index.d.ts.map +0 -1
  27. package/dist/api/xml/ssl.d.ts +0 -35
  28. package/dist/api/xml/ssl.d.ts.map +0 -1
  29. package/dist/api/xml/ude.d.ts +0 -103
  30. package/dist/api/xml/ude.d.ts.map +0 -1
  31. package/dist/ginis-sdk.js +0 -3
  32. package/dist/ginis-sdk.js.LICENSE.txt +0 -10
  33. package/dist/ginis.d.ts +0 -42
  34. package/dist/ginis.d.ts.map +0 -1
  35. package/dist/index.d.ts +0 -5
  36. package/dist/index.d.ts.map +0 -1
  37. package/dist/utils/api.d.ts +0 -18
  38. package/dist/utils/api.d.ts.map +0 -1
  39. package/dist/utils/errors.d.ts +0 -4
  40. package/dist/utils/errors.d.ts.map +0 -1
  41. package/dist/utils/types.d.ts +0 -3
  42. package/dist/utils/types.d.ts.map +0 -1
  43. package/docs/.nojekyll +0 -1
  44. package/docs/assets/26e93147f10415a0ed4a.svg +0 -6
  45. package/docs/assets/75c9471662e97ee24f29.svg +0 -7
  46. package/docs/assets/custom.css +0 -1
  47. package/docs/assets/custom.js +0 -1
  48. package/docs/assets/db90e4df2373980c497d.svg +0 -9
  49. package/docs/assets/highlight.css +0 -92
  50. package/docs/assets/main.js +0 -58
  51. package/docs/assets/search.js +0 -1
  52. package/docs/assets/style.css +0 -1280
  53. package/docs/classes/index.Ginis.html +0 -115
  54. package/docs/functions/api_ssl.pridatSoubor-1.html +0 -73
  55. package/docs/functions/api_ude.seznamDokumentu-1.html +0 -73
  56. package/docs/index.html +0 -110
  57. package/docs/modules/api_ssl.html +0 -75
  58. package/docs/modules/api_ude.html +0 -75
  59. package/docs/modules/index.html +0 -71
  60. package/docs/modules.html +0 -62
  61. package/docs/types/api_ssl.pridatSoubor.html +0 -87
  62. package/docs/types/api_ude.seznamDokumentu.html +0 -171
  63. package/docs/types/index.GinisConfig.html +0 -76
  64. package/docs/variables/api_ssl.default.html +0 -80
  65. package/docs/variables/api_ude.default.html +0 -80
  66. package/ginis.d.ts +0 -41
  67. package/jest.config.js +0 -1
  68. package/src/api/json/pod/Detail-el-podani.ts +0 -59
  69. package/src/api/json/pod/__tests__/Detail-el-podani.test.ts +0 -27
  70. package/src/api/json/pod/index.ts +0 -5
  71. package/src/api/json/ssl/Detail-dokumentu.ts +0 -140
  72. package/src/api/json/ssl/Pridat-soubor.ts +0 -54
  73. package/src/api/json/ssl/__tests__/Detail-dokumentu.test.ts +0 -27
  74. package/src/api/json/ssl/__tests__/Pridat-soubor.test.ts +0 -37
  75. package/src/api/json/ssl/__tests__/raw-data.bin +0 -0
  76. package/src/api/json/ssl/index.ts +0 -7
  77. package/src/api/xml/ssl.ts +0 -71
  78. package/src/api/xml/ude.ts +0 -141
  79. package/src/ginis.ts +0 -58
  80. package/src/index.ts +0 -6
  81. package/src/utils/api.ts +0 -78
  82. package/src/utils/errors.ts +0 -7
  83. package/src/utils/types.ts +0 -7
  84. package/tsconfig.json +0 -37
  85. package/tsconfig.spec.json +0 -5
  86. package/typedoc.json +0 -9
  87. package/webpack.config.js +0 -42
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";var _=Object.create;var l=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var z=Object.getOwnPropertyNames;var v=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty;var A=(i,t)=>{for(var r in t)l(i,r,{get:t[r],enumerable:!0})},I=(i,t,r,u)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of z(t))!w.call(i,o)&&o!==r&&l(i,o,{get:()=>t[o],enumerable:!(u=h(t,o))||u.enumerable});return i};var P=(i,t,r)=>(r=i!=null?_(v(i)):{},I(t||!i||!i.__esModule?l(r,"default",{value:i,enumerable:!0}):r,i)),N=i=>I(l({},"__esModule",{value:!0}),i);var j={};A(j,{AxiosError:()=>G.AxiosError,Ginis:()=>p,GinisError:()=>s});module.exports=N(j);var G=require("axios");var k=P(require("axios")),x=P(require("crypto")),C={headers:{"Content-Type":"application/json"}},a=async(i,t,r,u)=>{var m,c,D;if(!t)throw new Error("Missing GINIS url for the service you are trying to reach.");let o=i||C;u&&(console.log("########### GINIS REQUEST ###########"),console.log("headers: ",o.headers),console.log("body: ",r),console.log("########### GINIS REQUEST END ###########"));let n;try{n=await k.default.post(t,r,o)}catch(f){if(u){let e=f;console.error(e),console.log("########### GINIS ERROR RESPONSE ###########"),console.log("status: ",(m=e==null?void 0:e.response)==null?void 0:m.status),console.log("statusText: ",(c=e==null?void 0:e.response)==null?void 0:c.statusText),console.log("data: ",(D=e==null?void 0:e.response)==null?void 0:D.data),console.log("########### GINIS RESPONSE END ###########")}throw f}return u&&(console.log("########### GINIS RESPONSE ###########"),console.log("status: ",n.status),console.log("statusText: ",n.statusText),console.log("data: ",n.data),console.log("########### GINIS RESPONSE END ###########")),{data:n.data,status:n.status,statusText:n.statusText}},g=(i,t)=>({RequestName:"Xrg",RequestNamespace:t,User:i.username,Password:i.password,PasswordText:!0,Nonce:x.default.randomBytes(10).toString("base64"),Created:new Date().toISOString()});var s=class extends Error{constructor(t){super(t)}};async function S(i){let t=this.config.urls.ssl;if(!t)throw new s("GINIS SDK Error: Missing SSL url in GINIS config");return(await a(void 0,`${t}/json/Detail-dokumentu`,{GRestHeader:g(this.config,"http://www.gordic.cz/xrg/ssl/wfl-dokument/detail-dokumentu/request/v_1.0.0.0"),Xrg:{"Detail-dokumentu":i}},this.config.debug)).data.Xrg}async function b(i){let t=this.config.urls.ssl;if(!t)throw new s("GINIS SDK Error: Missing SSL url in GINIS config");return(await a(void 0,`${t}/json/Pridat-soubor`,{GRestHeader:g(this.config,"http://www.gordic.cz/xrg/ssl/wfl-dokument/pridat-soubor/request/v_1.0.0.0"),Xrg:{"Pridat-soubor":i}},this.config.debug)).data.Xrg}var y={detailDokumentu:S,pridatSoubor:b};async function E(i){let t=this.config.urls.pod;if(!t)throw new s("GINIS SDK Error: Missing POD url in GINIS config");return(await a(void 0,`${t}/json/Detail-el-podani`,{GRestHeader:g(this.config,"http://www.gordic.cz/xrg/pod/detail-el-podani/request/v_1.0.0.0"),Xrg:{"Detail-el-podani":i}},this.config.debug)).data.Xrg}var R={detailElPodani:E};var d=require("lodash"),Z={},p=class{constructor(t){this.config={...Z,...t},this.json={ssl:(0,d.mapValues)(y,r=>(0,d.bind)(r,this)),pod:(0,d.mapValues)(R,r=>(0,d.bind)(r,this))}}};0&&(module.exports={AxiosError,Ginis,GinisError});
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/index.ts", "../src/utils/api.ts", "../src/utils/errors.ts", "../src/api/json/ssl/Detail-dokumentu.ts", "../src/api/json/ssl/Pridat-soubor.ts", "../src/api/json/ssl/index.ts", "../src/api/json/pod/Detail-el-podani.ts", "../src/api/json/pod/index.ts", "../src/ginis.ts"],
4
+ "sourcesContent": ["// exporting axios error for easier handling of possible throws\nimport { AxiosError } from 'axios'\nimport { Ginis, GinisConfig } from './ginis'\nimport { GinisError } from './utils/errors'\n\nexport { Ginis, GinisConfig, AxiosError, GinisError }\n", "import axios, { AxiosRequestConfig } from 'axios'\nimport crypto from 'crypto'\nimport type { GinisConfig } from '../ginis'\n\nconst defaultAxiosConfig: AxiosRequestConfig = {\n headers: {\n 'Content-Type': 'application/json',\n },\n}\n\nexport const makeAxiosRequest = async <T>(\n axiosConfig: AxiosRequestConfig | undefined,\n url: string | undefined,\n body: string | object,\n debug?: boolean\n) => {\n if (!url) {\n throw new Error('Missing GINIS url for the service you are trying to reach.')\n }\n\n const requestConfig = axiosConfig || defaultAxiosConfig\n\n if (debug) {\n console.log('########### GINIS REQUEST ###########')\n console.log('headers: ', requestConfig.headers)\n console.log('body: ', body)\n console.log('########### GINIS REQUEST END ###########')\n }\n let responseAxios\n try {\n responseAxios = await axios.post<T>(url, body, requestConfig)\n } catch (error) {\n if (debug) {\n let anyError = error as any\n console.error(anyError)\n console.log('########### GINIS ERROR RESPONSE ###########')\n console.log('status: ', anyError?.response?.status)\n console.log('statusText: ', anyError?.response?.statusText)\n console.log('data: ', anyError?.response?.data)\n console.log('########### GINIS RESPONSE END ###########')\n }\n throw error\n }\n if (debug) {\n console.log('########### GINIS RESPONSE ###########')\n console.log('status: ', responseAxios.status)\n console.log('statusText: ', responseAxios.statusText)\n console.log('data: ', responseAxios.data)\n console.log('########### GINIS RESPONSE END ###########')\n }\n return {\n data: responseAxios.data,\n status: responseAxios.status,\n statusText: responseAxios.statusText,\n }\n}\n\nexport type GRestHeader = {\n RequestName: string\n RequestNamespace: string\n User: string\n Password: string\n PasswordText: boolean\n Nonce: string\n Created: string\n}\n\nexport const getGRestHeader = (config: GinisConfig, requestNamespace: string): GRestHeader => {\n return {\n RequestName: 'Xrg',\n RequestNamespace: requestNamespace,\n User: config.username,\n Password: config.password,\n PasswordText: true,\n Nonce: crypto.randomBytes(10).toString('base64'),\n Created: new Date().toISOString(),\n }\n}\n", "// may get more data later\n// for now serves as a way to easily distinguish in client code by instance type\nexport class GinisError extends Error {\n constructor(message: string) {\n super(message)\n }\n}\n", "import type { Ginis } from '../../../ginis'\nimport { makeAxiosRequest, getGRestHeader, GRestHeader } from '../../../utils/api'\nimport { GinisError } from '../../../utils/errors'\n\n// https://robot.gordic.cz/xrg/Default.html?c=OpenMethodDetail&moduleName=SSL&version=390&methodName=Detail-dokumentu&type=request\nexport type DetailDokumentuRequest = {\n 'Id-dokumentu': string\n 'Vyradit-historii'?: string\n 'Vyradit-obsah-spisu'?: string\n 'Vyradit-prilohy'?: string\n 'Vyradit-souvisejici'?: string\n 'Id-esu'?: string\n 'Vyradit-doruceni'?: string\n 'Id-eu'?: string\n}\n\n// https://robot.gordic.cz/xrg/Default.html?c=OpenMethodDetail&moduleName=SSL&version=390&methodName=Detail-dokumentu&type=response\nexport interface DetailDokumentuXrg {\n WflDokument: WflDokument[]\n Doruceni: Doruceni\n EDoruceni: EDoruceni\n HistorieDokumentu: HistorieDokumentu[]\n CjDokumentu: CjDokumentu\n Atribut_Xrg_IxsExt: string\n}\n\nexport interface CjDokumentu {\n IdInitDokumentu: string\n Atribut_IdInitDokumentu_Externi: string\n IdVyrizDokumentu: string\n Atribut_IdVyrizDokumentu_Externi: string\n Atribut_IdVyrizDokumentu_Nil: string\n DenikCj: string\n RokCj: string\n PoradoveCisloCj: string\n ZnackaCj: string\n StavCj: string\n DatumEvidence: string\n IdZpusobVyrizeni: string\n Atribut_IdZpusobVyrizeni_Externi: string\n Atribut_IdZpusobVyrizeni_Nil: string\n DoplnekCj: string\n}\n\nexport interface Doruceni {\n IdDokumentu: string\n Atribut_IdDokumentu_Externi: string\n Stat: string\n DatumOdeslani: string\n ZnackaOdesilatele: string\n DatumZeDne: string\n PodaciCislo: string\n ZpusobDoruceni: string\n DruhZasilky: string\n DruhZachazeni: string\n DatumPrijmuPodani: string\n IdOdesilatele: string\n Atribut_IdOdesilatele_Externi: string\n PocetPriloh: string\n IdUzluPodani: string\n Atribut_IdUzluPodani_Externi: string\n PoradoveCisloPodani: string\n}\n\nexport interface EDoruceni {\n DatumPrijeti: string\n DatumDoruceni: string\n IdDsOdesilatele: string\n}\n\nexport interface HistorieDokumentu {\n IdDokumentu: string\n Atribut_IdDokumentu_Externi: string\n TextZmeny: string\n Poznamka: string\n DatumZmeny: string\n IdZmenuProvedl: string\n Atribut_IdZmenuProvedl_Externi: string\n IdKtgZmeny: string\n}\n\nexport interface WflDokument {\n IdDokumentu: string\n Atribut_IdDokumentu_Externi: string\n IdSpisu: string\n Atribut_IdSpisu_Externi: string\n PriznakSpisu: string\n PriznakCj: string\n IdFunkceVlastnika: string\n Atribut_IdFunkceVlastnika_Externi: string\n Vec: string\n Znacka: string\n StavDistribuce: string\n StavDokumentu: string\n IdAgendy: string\n IdTypuDokumentu: string\n PriznakDoruceni: string\n PriznakEvidenceSsl: string\n MistoVzniku: string\n DatumPodani: string\n PriznakFyzExistence: string\n PriznakElObrazu: string\n IdSouboru: string\n Atribut_IdSouboru_Externi: string\n JmenoSouboru: string\n PopisSouboru: string\n DatumZmeny: string\n IdZmenuProvedl: string\n Atribut_IdZmenuProvedl_Externi: string\n VerzeSouboru: string\n DatumZmenySouboru: string\n VelikostSouboru: string\n PriznakSouboruRo: string\n}\n\nexport type DetailDokumentuResponse = {\n GRestHeader: GRestHeader\n Xrg: DetailDokumentuXrg\n}\n\nexport async function detailDokumentu(\n this: Ginis,\n bodyObj: DetailDokumentuRequest\n): Promise<DetailDokumentuXrg> {\n const url = this.config.urls.ssl\n if (!url) throw new GinisError('GINIS SDK Error: Missing SSL url in GINIS config')\n const response = await makeAxiosRequest<DetailDokumentuResponse>(\n undefined,\n `${url}/json/Detail-dokumentu`,\n {\n GRestHeader: getGRestHeader(\n this.config,\n 'http://www.gordic.cz/xrg/ssl/wfl-dokument/detail-dokumentu/request/v_1.0.0.0'\n ),\n Xrg: { 'Detail-dokumentu': bodyObj },\n },\n this.config.debug\n )\n return response.data.Xrg\n}\n", "import type { Ginis } from '../../../ginis'\nimport { makeAxiosRequest, getGRestHeader, GRestHeader } from '../../../utils/api'\nimport { GinisError } from '../../../utils/errors'\n\n// https://robot.gordic.cz/xrg/Default.html?c=OpenMethodDetail&moduleName=SSL&version=390&methodName=pridat-soubor&type=request\nexport type PridatSouborRequest = {\n 'Id-dokumentu': string\n 'Id-souboru'?: string\n 'Jmeno-souboru': string\n 'Typ-vazby': string\n 'Popis-souboru'?: string\n 'Podrobny-popis-souboru'?: string\n Data: string\n 'Kontrola-podpisu'?: string\n 'Priz-platna-verze'?: 0 | 1\n 'Priz-archiv-verze'?: 0 | 1\n 'Id-kategorie-typu-prilohy'?: string\n}\n\n// https://robot.gordic.cz/xrg/Default.html?c=OpenMethodDetail&moduleName=SSL&version=390&methodName=pridat-soubor&type=response\nexport type PridatSouborXrg = {\n Atribut_Xrg_ixsExt?: string\n PridatSoubor: Array<{\n DatumZmeny: string\n IdSouboru: string\n VerzeSouboru: number\n }>\n}\n\nexport type PridatSouborResponse = {\n GRestHeader: GRestHeader\n Xrg: PridatSouborXrg\n}\n\nexport async function pridatSoubor(\n this: Ginis,\n bodyObj: PridatSouborRequest\n): Promise<PridatSouborXrg> {\n const url = this.config.urls.ssl\n if (!url) throw new GinisError('GINIS SDK Error: Missing SSL url in GINIS config')\n const response = await makeAxiosRequest<PridatSouborResponse>(\n undefined,\n `${url}/json/Pridat-soubor`,\n {\n GRestHeader: getGRestHeader(\n this.config,\n 'http://www.gordic.cz/xrg/ssl/wfl-dokument/pridat-soubor/request/v_1.0.0.0'\n ),\n Xrg: { 'Pridat-soubor': bodyObj },\n },\n this.config.debug\n )\n return response.data.Xrg\n}\n", "import { detailDokumentu } from './Detail-dokumentu'\nimport { pridatSoubor } from './Pridat-soubor'\n\nexport default {\n detailDokumentu,\n pridatSoubor,\n}\n", "import type { Ginis } from '../../../ginis'\nimport { makeAxiosRequest, getGRestHeader, GRestHeader } from '../../../utils/api'\nimport { GinisError } from '../../../utils/errors'\n\nexport type DetailElPodaniRequest = {\n 'Id-zpravy'?: string\n 'Id-el-podani'?: string\n 'Id-esu'?: string\n 'Id-eu'?: string\n 'Zaradit-navazane'?: string\n}\n\nexport type DetailElPodaniXrg = {\n DetailElPodani: {\n DatumPrijeti: string\n StavZpracovani: string\n DuvodOdmitnuti?: string\n StavPodaniKod: string\n StavPodaniText?: string\n StavOdpovediKod: string\n StavOdpovediText?: string\n IdDokumentu: string\n Vec?: string\n SpisZnacka?: string\n Znacka?: string\n }[]\n NavazanyDokument?: {\n IdDokumentu: string\n Vec?: string\n SpisZnacka?: string\n Znacka?: string\n }\n}\n\nexport type DetailElPodaniResponse = {\n GRestHeader: GRestHeader\n Xrg: DetailElPodaniXrg\n}\n\nexport async function detailElPodani(\n this: Ginis,\n bodyObj: DetailElPodaniRequest\n): Promise<DetailElPodaniXrg> {\n const url = this.config.urls.pod\n if (!url) throw new GinisError('GINIS SDK Error: Missing POD url in GINIS config')\n const response = await makeAxiosRequest<DetailElPodaniResponse>(\n undefined,\n `${url}/json/Detail-el-podani`,\n {\n GRestHeader: getGRestHeader(\n this.config,\n 'http://www.gordic.cz/xrg/pod/detail-el-podani/request/v_1.0.0.0'\n ),\n Xrg: { 'Detail-el-podani': bodyObj },\n },\n this.config.debug\n )\n return response.data.Xrg\n}\n", "import { detailElPodani } from './Detail-el-podani'\n\nexport default {\n detailElPodani,\n}\n", "import ssl from './api/json/ssl'\nimport pod from './api/json/pod'\nimport { bind, mapValues } from 'lodash'\n\nexport type GinisConfig = {\n username: string\n password: string\n urls: {\n ude?: string\n ssl?: string\n pod?: string\n }\n debug?: boolean\n}\n\n// presently empty, prepared in case we're to add default values in the future\nexport const defaultConfig = {}\n\ntype _Ssl = typeof ssl\n/**\n * full SSL service docs: https://robot.gordic.cz/xrg/Default.html?c=OpenModuleDetail&moduleName=SSL&language=cs-CZ&version=390\n */\nexport type Ssl = {\n [P in keyof _Ssl]: OmitThisParameter<_Ssl[P]>\n}\n\ntype _Pod = typeof pod\n/**\n * full POD service docs: https://robot.gordic.cz/xrg/Default.html?c=OpenModuleDetail&moduleName=POD&language=cs-CZ&version=390\n */\nexport type Pod = {\n [P in keyof _Pod]: OmitThisParameter<_Pod[P]>\n}\n\n// exports all services with server config bound to the one passed at construction\nexport class Ginis {\n config: GinisConfig\n /**\n * Exports functions of the api's with config and url values bound.\n * See documentation of the api for request options.\n * Inputs are typed objects, outputs unformatted xml.\n */\n json: {\n ssl: Ssl\n pod: Pod\n }\n\n constructor(config: GinisConfig) {\n this.config = {\n ...defaultConfig,\n ...config,\n }\n this.json = {\n ssl: mapValues(ssl, (v) => bind(v, this)),\n pod: mapValues(pod, (v) => bind(v, this)),\n }\n }\n}\n"],
5
+ "mappings": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,uCAAAE,EAAA,eAAAC,IAAA,eAAAC,EAAAJ,GACA,IAAAK,EAA2B,iBCD3B,IAAAC,EAA0C,oBAC1CC,EAAmB,qBAGbC,EAAyC,CAC7C,QAAS,CACP,eAAgB,kBAClB,CACF,EAEaC,EAAmB,MAC9BC,EACAC,EACAC,EACAC,IACG,CAfL,IAAAC,EAAAC,EAAAC,EAgBE,GAAI,CAACL,EACH,MAAM,IAAI,MAAM,4DAA4D,EAG9E,IAAMM,EAAgBP,GAAeF,EAEjCK,IACF,QAAQ,IAAI,uCAAuC,EACnD,QAAQ,IAAI,YAAaI,EAAc,OAAO,EAC9C,QAAQ,IAAI,SAAUL,CAAI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GAAGF,CAAG,yBACN,CACE,YAAaG,EACX,KAAK,OACL,8EACF,EACA,IAAK,CAAE,mBAAoBJ,CAAQ,CACrC,EACA,KAAK,OAAO,KACd,GACgB,KAAK,GACvB,CCzGA,eAAsBK,EAEpBC,EAC0B,CAC1B,IAAMC,EAAM,KAAK,OAAO,KAAK,IAC7B,GAAI,CAACA,EAAK,MAAM,IAAIC,EAAW,kDAAkD,EAajF,OAZiB,MAAMC,EACrB,OACA,GAAGF,CAAG,sBACN,CACE,YAAaG,EACX,KAAK,OACL,2EACF,EACA,IAAK,CAAE,gBAAiBJ,CAAQ,CAClC,EACA,KAAK,OAAO,KACd,GACgB,KAAK,GACvB,CClDA,IAAOK,EAAQ,CACb,gBAAAC,EACA,aAAAC,CACF,ECiCA,eAAsBC,EAEpBC,EAC4B,CAC5B,IAAMC,EAAM,KAAK,OAAO,KAAK,IAC7B,GAAI,CAACA,EAAK,MAAM,IAAIC,EAAW,kDAAkD,EAajF,OAZiB,MAAMC,EACrB,OACA,GAAGF,CAAG,yBACN,CACE,YAAaG,EACX,KAAK,OACL,iEACF,EACA,IAAK,CAAE,mBAAoBJ,CAAQ,CACrC,EACA,KAAK,OAAO,KACd,GACgB,KAAK,GACvB,CCxDA,IAAOK,EAAQ,CACb,eAAAC,CACF,ECFA,IAAAC,EAAgC,kBAcnBC,EAAgB,CAAC,EAmBjBC,EAAN,KAAY,CAYjB,YAAYC,EAAqB,CAC/B,KAAK,OAAS,CACZ,GAAGF,EACH,GAAGE,CACL,EACA,KAAK,KAAO,CACV,OAAK,aAAUC,EAAMC,MAAM,QAAKA,EAAG,IAAI,CAAC,EACxC,OAAK,aAAUC,EAAMD,MAAM,QAAKA,EAAG,IAAI,CAAC,CAC1C,CACF,CACF",
6
+ "names": ["src_exports", "__export", "Ginis", "GinisError", "__toCommonJS", "import_axios", "import_axios", "import_crypto", "defaultAxiosConfig", "makeAxiosRequest", "axiosConfig", "url", "body", "debug", "_a", "_b", "_c", "requestConfig", "responseAxios", "axios", "error", "anyError", "getGRestHeader", "config", "requestNamespace", "crypto", "GinisError", "message", "detailDokumentu", "bodyObj", "url", "GinisError", "makeAxiosRequest", "getGRestHeader", "pridatSoubor", "bodyObj", "url", "GinisError", "makeAxiosRequest", "getGRestHeader", "ssl_default", "detailDokumentu", "pridatSoubor", "detailElPodani", "bodyObj", "url", "GinisError", "makeAxiosRequest", "getGRestHeader", "pod_default", "detailElPodani", "import_lodash", "defaultConfig", "Ginis", "config", "ssl_default", "v", "pod_default"]
7
+ }
package/package.json CHANGED
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "name": "@bratislava/ginis-sdk",
3
- "version": "0.3.2",
3
+ "version": "0.3.5",
4
4
  "description": "A small wrapper for most commonly used requests towards the Bratislava GINIS system",
5
- "main": "dist/ginis-sdk.js",
6
- "types": "dist/ginis-sdk.d.ts",
5
+ "main": "dist/ginis-sdk",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "types": "dist/index.d.ts",
7
10
  "scripts": {
8
11
  "build": "webpack",
9
12
  "test": "jest --watch",
@@ -37,6 +40,8 @@
37
40
  "@typescript-eslint/parser": "^5.39.0",
38
41
  "babel-jest": "^29.1.2",
39
42
  "dotenv": "^16.0.3",
43
+ "esbuild": "^0.19.3",
44
+ "esbuild-node-externals": "^1.9.0",
40
45
  "eslint": "^8.24.0",
41
46
  "eslint-config-prettier": "^8.5.0",
42
47
  "eslint-plugin-eslint-comments": "^3.2.0",
package/.env.example DELETED
@@ -1,2 +0,0 @@
1
- GINIS_USERNAME=
2
- GINIS_PASSWORD=
package/.eslintrc.json DELETED
@@ -1,84 +0,0 @@
1
- {
2
- "root": true,
3
- "env": {
4
- "es2021": true,
5
- "node": true
6
- },
7
- "parser": "@typescript-eslint/parser",
8
- "parserOptions": {
9
- "ecmaVersion": 12,
10
- "project": "tsconfig.json",
11
- "sourceType": "module"
12
- },
13
- "ignorePatterns": [
14
- ".eslintrc.js"
15
- ],
16
- "plugins": [
17
- "@typescript-eslint/eslint-plugin",
18
- "prettier",
19
- "import"
20
- ],
21
- "extends": [
22
- "plugin:@typescript-eslint/recommended",
23
- "prettier"
24
- ],
25
- "rules": {
26
- "prettier/prettier": "off",
27
- "@typescript-eslint/interface-name-prefix": "off",
28
- "@typescript-eslint/explicit-function-return-type": "off",
29
- "@typescript-eslint/explicit-module-boundary-types": "off",
30
- "@typescript-eslint/no-explicit-any": "off",
31
- "import/prefer-default-export": "off",
32
- "class-methods-use-this": "off",
33
- "max-classes-per-file": "off",
34
- "sonarjs/no-duplicate-string": "off",
35
- "no-restricted-syntax": "off",
36
- "new-cap": "off",
37
- "no-underscore-dangle": "off",
38
- "guard-for-in": "off"
39
- },
40
- "overrides": [
41
- {
42
- "files": [
43
- "**/*.spec.ts",
44
- "**/*.e2e-spec.ts",
45
- "**/*.spec.js",
46
- "**/*.e2e-spec.js"
47
- ],
48
- "env": {
49
- "es2021": true,
50
- "node": true
51
- },
52
- "plugins": [
53
- "@typescript-eslint/eslint-plugin",
54
- "sonarjs",
55
- "prettier",
56
- "import"
57
- ],
58
- "extends": [
59
- "plugin:@typescript-eslint/recommended",
60
- "prettier"
61
- ],
62
- "settings": {
63
- "jest": {
64
- "version": 27
65
- }
66
- },
67
- "rules": {
68
- "prettier/prettier": "off",
69
- "@typescript-eslint/interface-name-prefix": "off",
70
- "@typescript-eslint/explicit-function-return-type": "off",
71
- "@typescript-eslint/explicit-module-boundary-types": "off",
72
- "@typescript-eslint/no-explicit-any": "off",
73
- "import/prefer-default-export": "off",
74
- "class-methods-use-this": "off",
75
- "max-classes-per-file": "off",
76
- "sonarjs/no-duplicate-string": "off",
77
- "no-restricted-syntax": "off",
78
- "new-cap": "off",
79
- "no-underscore-dangle": "off",
80
- "guard-for-in": "off"
81
- }
82
- }
83
- ]
84
- }
@@ -1,11 +0,0 @@
1
- # To get started with Dependabot version updates, you'll need to specify which
2
- # package ecosystems to update and where the package manifests are located.
3
- # Please see the documentation for all configuration options:
4
- # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5
-
6
- version: 2
7
- updates:
8
- - package-ecosystem: 'npm' # See documentation for possible values
9
- directory: '/' # Location of package manifests
10
- schedule:
11
- interval: 'weekly'
@@ -1,18 +0,0 @@
1
- name: Publish Package to npm
2
- on:
3
- release:
4
- types: [created]
5
- jobs:
6
- publish:
7
- runs-on: ubuntu-latest
8
- steps:
9
- - uses: actions/checkout@v3
10
- - uses: actions/setup-node@v3
11
- with:
12
- node-version: '16'
13
- registry-url: 'https://registry.npmjs.org'
14
- - run: yarn --frozen-lockfile
15
- - run: yarn build
16
- - run: yarn publish --access public
17
- env:
18
- NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
@@ -1,38 +0,0 @@
1
- name: Validate code
2
-
3
- on:
4
- push:
5
- branches: ['master']
6
- pull_request:
7
- branches: ['master']
8
-
9
- jobs:
10
- build:
11
- name: Typescript check
12
- runs-on: ubuntu-latest
13
-
14
- steps:
15
- - uses: actions/checkout@v3
16
- - uses: actions/setup-node@v3
17
- with:
18
- node-version: '16'
19
- - run: yarn --frozen-lockfile
20
- - name: Typescript check
21
- uses: EPMatt/reviewdog-action-tsc@v1
22
- with:
23
- # Change reviewdog reporter if you need
24
- # [github-pr-check,github-check,github-pr-review].
25
- # More about reviewdog reporters at
26
- # https://github.com/reviewdog/reviewdog#reporters
27
- reporter: github-check
28
- # Change reporter level if you need
29
- # [info,warning,error].
30
- # More about reviewdog reporter level at
31
- # https://github.com/reviewdog/reviewdog#reporters
32
- level: warning
33
- - name: Typescript strict plugin check
34
- run: yarn typecheck
35
-
36
- # Tests require internal network - until we have GINIS mocked for ci we're omitting
37
- # - name: Tests
38
- # run: yarn test:ci
package/.prettierrc DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "trailingComma": "es5",
3
- "tabWidth": 2,
4
- "semi": false,
5
- "singleQuote": true,
6
- "printWidth": 100
7
- }
package/babel.config.js DELETED
@@ -1,6 +0,0 @@
1
- module.exports = {
2
- presets: [
3
- ['@babel/preset-env', {targets: {node: 'current'}}],
4
- '@babel/preset-typescript',
5
- ],
6
- };
@@ -1,36 +0,0 @@
1
- import type { Ginis } from '../../../ginis';
2
- import { GRestHeader } from '../../../utils/api';
3
- export type DetailElPodaniRequest = {
4
- 'Id-zpravy'?: string;
5
- 'Id-el-podani'?: string;
6
- 'Id-esu'?: string;
7
- 'Id-eu'?: string;
8
- 'Zaradit-navazane'?: string;
9
- };
10
- export type DetailElPodaniXrg = {
11
- DetailElPodani: {
12
- DatumPrijeti: string;
13
- StavZpracovani: string;
14
- DuvodOdmitnuti?: string;
15
- StavPodaniKod: string;
16
- StavPodaniText?: string;
17
- StavOdpovediKod: string;
18
- StavOdpovediText?: string;
19
- IdDokumentu: string;
20
- Vec?: string;
21
- SpisZnacka?: string;
22
- Znacka?: string;
23
- }[];
24
- NavazanyDokument?: {
25
- IdDokumentu: string;
26
- Vec?: string;
27
- SpisZnacka?: string;
28
- Znacka?: string;
29
- };
30
- };
31
- export type DetailElPodaniResponse = {
32
- GRestHeader: GRestHeader;
33
- Xrg: DetailElPodaniXrg;
34
- };
35
- export declare function detailElPodani(this: Ginis, bodyObj: DetailElPodaniRequest): Promise<DetailElPodaniXrg>;
36
- //# sourceMappingURL=Detail-el-podani.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Detail-el-podani.d.ts","sourceRoot":"","sources":["../../../../src/api/json/pod/Detail-el-podani.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAC3C,OAAO,EAAoC,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAGlF,MAAM,MAAM,qBAAqB,GAAG;IAClC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,cAAc,EAAE;QACd,YAAY,EAAE,MAAM,CAAA;QACpB,cAAc,EAAE,MAAM,CAAA;QACtB,cAAc,CAAC,EAAE,MAAM,CAAA;QACvB,aAAa,EAAE,MAAM,CAAA;QACrB,cAAc,CAAC,EAAE,MAAM,CAAA;QACvB,eAAe,EAAE,MAAM,CAAA;QACvB,gBAAgB,CAAC,EAAE,MAAM,CAAA;QACzB,WAAW,EAAE,MAAM,CAAA;QACnB,GAAG,CAAC,EAAE,MAAM,CAAA;QACZ,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,EAAE,CAAA;IACH,gBAAgB,CAAC,EAAE;QACjB,WAAW,EAAE,MAAM,CAAA;QACnB,GAAG,CAAC,EAAE,MAAM,CAAA;QACZ,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,CAAA;CACF,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,WAAW,EAAE,WAAW,CAAA;IACxB,GAAG,EAAE,iBAAiB,CAAA;CACvB,CAAA;AAED,wBAAsB,cAAc,CAClC,IAAI,EAAE,KAAK,EACX,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,iBAAiB,CAAC,CAgB5B"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=Detail-el-podani.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Detail-el-podani.test.d.ts","sourceRoot":"","sources":["../../../../../src/api/json/pod/__tests__/Detail-el-podani.test.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
1
- import { detailElPodani } from './Detail-el-podani';
2
- declare const _default: {
3
- detailElPodani: typeof detailElPodani;
4
- };
5
- export default _default;
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/json/pod/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;;;;AAEnD,wBAEC"}
@@ -1,110 +0,0 @@
1
- import type { Ginis } from '../../../ginis';
2
- import { GRestHeader } from '../../../utils/api';
3
- export type DetailDokumentuRequest = {
4
- 'Id-dokumentu': string;
5
- 'Vyradit-historii'?: string;
6
- 'Vyradit-obsah-spisu'?: string;
7
- 'Vyradit-prilohy'?: string;
8
- 'Vyradit-souvisejici'?: string;
9
- 'Id-esu'?: string;
10
- 'Vyradit-doruceni'?: string;
11
- 'Id-eu'?: string;
12
- };
13
- export interface DetailDokumentuXrg {
14
- WflDokument: WflDokument[];
15
- Doruceni: Doruceni;
16
- EDoruceni: EDoruceni;
17
- HistorieDokumentu: HistorieDokumentu[];
18
- CjDokumentu: CjDokumentu;
19
- Atribut_Xrg_IxsExt: string;
20
- }
21
- export interface CjDokumentu {
22
- IdInitDokumentu: string;
23
- Atribut_IdInitDokumentu_Externi: string;
24
- IdVyrizDokumentu: string;
25
- Atribut_IdVyrizDokumentu_Externi: string;
26
- Atribut_IdVyrizDokumentu_Nil: string;
27
- DenikCj: string;
28
- RokCj: string;
29
- PoradoveCisloCj: string;
30
- ZnackaCj: string;
31
- StavCj: string;
32
- DatumEvidence: string;
33
- IdZpusobVyrizeni: string;
34
- Atribut_IdZpusobVyrizeni_Externi: string;
35
- Atribut_IdZpusobVyrizeni_Nil: string;
36
- DoplnekCj: string;
37
- }
38
- export interface Doruceni {
39
- IdDokumentu: string;
40
- Atribut_IdDokumentu_Externi: string;
41
- Stat: string;
42
- DatumOdeslani: string;
43
- ZnackaOdesilatele: string;
44
- DatumZeDne: string;
45
- PodaciCislo: string;
46
- ZpusobDoruceni: string;
47
- DruhZasilky: string;
48
- DruhZachazeni: string;
49
- DatumPrijmuPodani: string;
50
- IdOdesilatele: string;
51
- Atribut_IdOdesilatele_Externi: string;
52
- PocetPriloh: string;
53
- IdUzluPodani: string;
54
- Atribut_IdUzluPodani_Externi: string;
55
- PoradoveCisloPodani: string;
56
- }
57
- export interface EDoruceni {
58
- DatumPrijeti: string;
59
- DatumDoruceni: string;
60
- IdDsOdesilatele: string;
61
- }
62
- export interface HistorieDokumentu {
63
- IdDokumentu: string;
64
- Atribut_IdDokumentu_Externi: string;
65
- TextZmeny: string;
66
- Poznamka: string;
67
- DatumZmeny: string;
68
- IdZmenuProvedl: string;
69
- Atribut_IdZmenuProvedl_Externi: string;
70
- IdKtgZmeny: string;
71
- }
72
- export interface WflDokument {
73
- IdDokumentu: string;
74
- Atribut_IdDokumentu_Externi: string;
75
- IdSpisu: string;
76
- Atribut_IdSpisu_Externi: string;
77
- PriznakSpisu: string;
78
- PriznakCj: string;
79
- IdFunkceVlastnika: string;
80
- Atribut_IdFunkceVlastnika_Externi: string;
81
- Vec: string;
82
- Znacka: string;
83
- StavDistribuce: string;
84
- StavDokumentu: string;
85
- IdAgendy: string;
86
- IdTypuDokumentu: string;
87
- PriznakDoruceni: string;
88
- PriznakEvidenceSsl: string;
89
- MistoVzniku: string;
90
- DatumPodani: string;
91
- PriznakFyzExistence: string;
92
- PriznakElObrazu: string;
93
- IdSouboru: string;
94
- Atribut_IdSouboru_Externi: string;
95
- JmenoSouboru: string;
96
- PopisSouboru: string;
97
- DatumZmeny: string;
98
- IdZmenuProvedl: string;
99
- Atribut_IdZmenuProvedl_Externi: string;
100
- VerzeSouboru: string;
101
- DatumZmenySouboru: string;
102
- VelikostSouboru: string;
103
- PriznakSouboruRo: string;
104
- }
105
- export type DetailDokumentuResponse = {
106
- GRestHeader: GRestHeader;
107
- Xrg: DetailDokumentuXrg;
108
- };
109
- export declare function detailDokumentu(this: Ginis, bodyObj: DetailDokumentuRequest): Promise<DetailDokumentuXrg>;
110
- //# sourceMappingURL=Detail-dokumentu.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Detail-dokumentu.d.ts","sourceRoot":"","sources":["../../../../src/api/json/ssl/Detail-dokumentu.ts"],"names":[],"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,EAAE,MAAM,CAAA;IACd,cAAc,EAAE,MAAM,CAAA;IACtB,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,MAAM,CAAA;IAChB,eAAe,EAAE,MAAM,CAAA;IACvB,eAAe,EAAE,MAAM,CAAA;IACvB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,mBAAmB,EAAE,MAAM,CAAA;IAC3B,eAAe,EAAE,MAAM,CAAA;IACvB,SAAS,EAAE,MAAM,CAAA;IACjB,yBAAyB,EAAE,MAAM,CAAA;IACjC,YAAY,EAAE,MAAM,CAAA;IACpB,YAAY,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,MAAM,CAAA;IACtB,8BAA8B,EAAE,MAAM,CAAA;IACtC,YAAY,EAAE,MAAM,CAAA;IACpB,iBAAiB,EAAE,MAAM,CAAA;IACzB,eAAe,EAAE,MAAM,CAAA;IACvB,gBAAgB,EAAE,MAAM,CAAA;CACzB;AAED,MAAM,MAAM,uBAAuB,GAAG;IACpC,WAAW,EAAE,WAAW,CAAA;IACxB,GAAG,EAAE,kBAAkB,CAAA;CACxB,CAAA;AAED,wBAAsB,eAAe,CACnC,IAAI,EAAE,KAAK,EACX,OAAO,EAAE,sBAAsB,GAC9B,OAAO,CAAC,kBAAkB,CAAC,CAgB7B"}
@@ -1,29 +0,0 @@
1
- import type { Ginis } from '../../../ginis';
2
- import { GRestHeader } from '../../../utils/api';
3
- export type PridatSouborRequest = {
4
- 'Id-dokumentu': string;
5
- 'Id-souboru'?: string;
6
- 'Jmeno-souboru': string;
7
- 'Typ-vazby': string;
8
- 'Popis-souboru'?: string;
9
- 'Podrobny-popis-souboru'?: string;
10
- Data: string;
11
- 'Kontrola-podpisu'?: string;
12
- 'Priz-platna-verze'?: 0 | 1;
13
- 'Priz-archiv-verze'?: 0 | 1;
14
- 'Id-kategorie-typu-prilohy'?: string;
15
- };
16
- export type PridatSouborXrg = {
17
- Atribut_Xrg_ixsExt?: string;
18
- PridatSoubor: Array<{
19
- DatumZmeny: string;
20
- IdSouboru: string;
21
- VerzeSouboru: number;
22
- }>;
23
- };
24
- export type PridatSouborResponse = {
25
- GRestHeader: GRestHeader;
26
- Xrg: PridatSouborXrg;
27
- };
28
- export declare function pridatSoubor(this: Ginis, bodyObj: PridatSouborRequest): Promise<PridatSouborXrg>;
29
- //# sourceMappingURL=Pridat-soubor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Pridat-soubor.d.ts","sourceRoot":"","sources":["../../../../src/api/json/ssl/Pridat-soubor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAC3C,OAAO,EAAoC,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAIlF,MAAM,MAAM,mBAAmB,GAAG;IAChC,cAAc,EAAE,MAAM,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,eAAe,EAAE,MAAM,CAAA;IACvB,WAAW,EAAE,MAAM,CAAA;IACnB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,wBAAwB,CAAC,EAAE,MAAM,CAAA;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,mBAAmB,CAAC,EAAE,CAAC,GAAG,CAAC,CAAA;IAC3B,mBAAmB,CAAC,EAAE,CAAC,GAAG,CAAC,CAAA;IAC3B,2BAA2B,CAAC,EAAE,MAAM,CAAA;CACrC,CAAA;AAGD,MAAM,MAAM,eAAe,GAAG;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,YAAY,EAAE,KAAK,CAAC;QAClB,UAAU,EAAE,MAAM,CAAA;QAClB,SAAS,EAAE,MAAM,CAAA;QACjB,YAAY,EAAE,MAAM,CAAA;KACrB,CAAC,CAAA;CACH,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,WAAW,EAAE,WAAW,CAAA;IACxB,GAAG,EAAE,eAAe,CAAA;CACrB,CAAA;AAED,wBAAsB,YAAY,CAChC,IAAI,EAAE,KAAK,EACX,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,eAAe,CAAC,CAgB1B"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=Detail-dokumentu.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Detail-dokumentu.test.d.ts","sourceRoot":"","sources":["../../../../../src/api/json/ssl/__tests__/Detail-dokumentu.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=Pridat-soubor.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Pridat-soubor.test.d.ts","sourceRoot":"","sources":["../../../../../src/api/json/ssl/__tests__/Pridat-soubor.test.ts"],"names":[],"mappings":""}
@@ -1,8 +0,0 @@
1
- import { detailDokumentu } from './Detail-dokumentu';
2
- import { pridatSoubor } from './Pridat-soubor';
3
- declare const _default: {
4
- detailDokumentu: typeof detailDokumentu;
5
- pridatSoubor: typeof pridatSoubor;
6
- };
7
- export default _default;
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/json/ssl/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;;;;;AAE9C,wBAGC"}
@@ -1,35 +0,0 @@
1
- import type { GinisConfig } from '../../ginis';
2
- /**
3
- * full docs https://robot.gordic.cz/xrg/Default.html?c=OpenMethodDetail&moduleName=UDE&version=390&methodName=pridat-soubor&type=request
4
- */
5
- export type pridatSoubor = {
6
- 'Id-dokumentu'?: string;
7
- 'Id-souboru'?: string;
8
- 'Jmeno-souboru': string;
9
- /**
10
- * elektronicky-obraz - Soubor je elektronický obrazem - obtiskem skutečného fyzického dokumentu. Fyzický dokument přitom nemusí v dané chvíli existovat. Např. bude vytištěn a nebo po nascanování byl uložen, zničen, odeslána atd.. Elektronický obraz může být k evidovanému dokumentu vždy jediný.
11
- * elektronicka-priloha - Elektronický soubor je přílohou k evidovanému dokumentu. Evidovaný dokument může obsahovat neomezené množství příloh.
12
- */
13
- 'Typ-vazby': 'elektronicky-obraz' | 'elektronicka-priloha';
14
- 'Popis-souboru'?: string;
15
- 'Podrobny-popis-souboru'?: string;
16
- /**
17
- * Base64 encoded
18
- */
19
- Data: string;
20
- 'Kontrola-podpisu'?: string;
21
- };
22
- export declare const pridatSoubor: (config: GinisConfig, url: string | undefined, bodyObj: pridatSoubor) => Promise<{
23
- data: unknown;
24
- status: number;
25
- statusText: string;
26
- }>;
27
- declare const _default: {
28
- pridatSoubor: (config: GinisConfig, url: string | undefined, bodyObj: pridatSoubor) => Promise<{
29
- data: unknown;
30
- status: number;
31
- statusText: string;
32
- }>;
33
- };
34
- export default _default;
35
- //# sourceMappingURL=ssl.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ssl.d.ts","sourceRoot":"","sources":["../../../src/api/xml/ssl.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAG9C;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,eAAe,EAAE,MAAM,CAAA;IACvB;;;OAGG;IACH,WAAW,EAAE,oBAAoB,GAAG,sBAAsB,CAAA;IAC1D,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,wBAAwB,CAAC,EAAE,MAAM,CAAA;IACjC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B,CAAA;AAED,eAAO,MAAM,YAAY,WACf,WAAW,OACd,MAAM,GAAG,SAAS,WACd,YAAY;;;;EAqCtB,CAAA;;;;;;;;AAED,wBAEC"}
@@ -1,103 +0,0 @@
1
- import type { GinisConfig } from '../../ginis';
2
- /**
3
- * Full docs: https://robot.gordic.cz/xrg/Default.html?c=OpenMethodDetail&moduleName=UDE&version=390&methodName=seznam-dokumentu&type=request
4
- */
5
- export type seznamDokumentu = {
6
- /**
7
- * UDE - Vrátit pouze informace evidované v GINIS modulu Úřední deska. Tj. základní informace o vyvěšeném záznamu. Elementy: Id-zaznamu ... Id-dokumentu.
8
- * UDEWFL - Když byl záznam vyvěšen z GINIS modulu, jsou o něm dotaženy základní informace (další možno získat voláním XRG-SSL). Elementy: Id-zaznamu ... Id-dokumentu + Puvod-dokumentu ... Cj-spisu
9
- * UDESML - Když byl záznam vyvěšen z GINIS modulu SML, jsou o něm dotaženy informace. Elementy: Id-zaznamu ... Id-dokumentu + Cislo-sml ... Odbor-sml.
10
- * UDEWFLSML - Informace UDE + WFL + SML. Vrátí vše.
11
- */
12
- 'Vratit-info'?: 'UDE' | 'UDEWFL' | 'UDESML' | 'UDEWFLSML';
13
- /**
14
- * vyveseno - vyvěšeno
15
- * sejmuto - sejmuto
16
- */
17
- Stav?: string;
18
- 'Id-uredni-desky'?: string;
19
- 'Id-kategorie'?: string;
20
- /**
21
- * ISO-string date format
22
- */
23
- 'Vyveseno-od'?: string;
24
- /**
25
- * ISO-string date format
26
- */
27
- 'Vyveseno-od-horni-mez'?: string;
28
- /**
29
- * ISO-string date format
30
- */
31
- 'Sejmuto-od'?: string;
32
- /**
33
- * ISO-string date format
34
- */
35
- 'Sejmuto-od-horni-mez'?: string;
36
- /**
37
- * Název záznamu. Hledáno přes LIKE "%hodnota%" bez ohledu na diakritiku a velikost písmen (na db stroji Informix s ohledem na diakritiku)
38
- * Max 254 chars
39
- */
40
- Nazev?: string;
41
- /**
42
- * Popis záznamu. Hledáno přes LIKE "%hodnota%" bez ohledu na diakritiku a velikost písmen (na db stroji Informix s ohledem na diakritiku)
43
- * Max 254 chars
44
- */
45
- Popis?: string;
46
- Zdroj?: string;
47
- /**
48
- * rucni-evidence - ruční evidence
49
- * elektronicke-podani - elektronické podání
50
- * datova-schranka - datová schránka
51
- * interface-xrg - interface, xrg
52
- */
53
- 'Puvod-dokumentu'?: string;
54
- 'Odesilatel-dokumentu'?: string;
55
- 'Cj-spisu'?: string;
56
- /**
57
- * ISO-string date-time format
58
- */
59
- 'Datum-zmeny'?: string;
60
- /**
61
- * ISO-string date-time format
62
- */
63
- 'Datum-zmeny-horni-mez'?: string;
64
- 'Cislo-sml'?: string;
65
- 'Typ-sml'?: string;
66
- 'Nazev-sml'?: string;
67
- 'Nazev-sub-sml'?: string;
68
- 'Prijmeni-sub-sml'?: string;
69
- 'Jmeno-sub-sml'?: string;
70
- 'Ico-sub-sml'?: string;
71
- 'Obec-sub-sml'?: string;
72
- 'Ulice-sub-sml'?: string;
73
- 'Cor-sub-sml'?: string;
74
- 'Cpop-sub-sml'?: string;
75
- 'Psc-sub-sml'?: string;
76
- 'Typ-sub-sml'?: string;
77
- /**
78
- * ISO-string date format
79
- */
80
- 'Datum-uzavreni-sml-od'?: string;
81
- /**
82
- * ISO-string date format
83
- */
84
- 'Datum-uzavreni-sml-do'?: string;
85
- 'Odbor-sml'?: string;
86
- 'Celkova-castka-od-sml'?: string;
87
- 'Celkova-castka-do-sml'?: string;
88
- 'Mena-sml'?: string;
89
- };
90
- export declare const seznamDokumentu: (config: GinisConfig, url: string | undefined, bodyObj: seznamDokumentu) => Promise<{
91
- data: unknown;
92
- status: number;
93
- statusText: string;
94
- }>;
95
- declare const _default: {
96
- seznamDokumentu: (config: GinisConfig, url: string | undefined, bodyObj: seznamDokumentu) => Promise<{
97
- data: unknown;
98
- status: number;
99
- statusText: string;
100
- }>;
101
- };
102
- export default _default;
103
- //# sourceMappingURL=ude.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ude.d.ts","sourceRoot":"","sources":["../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