@bratislava/ginis-sdk 0.3.6 → 0.3.7

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 (2) hide show
  1. package/dist/index.d.ts +211 -0
  2. package/package.json +1 -1
@@ -0,0 +1,211 @@
1
+ export { AxiosError } from 'axios';
2
+
3
+ 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
+ interface DetailDokumentuXrg {
14
+ WflDokument: WflDokument[];
15
+ Doruceni: Doruceni;
16
+ EDoruceni: EDoruceni;
17
+ HistorieDokumentu: HistorieDokumentu[];
18
+ CjDokumentu: CjDokumentu;
19
+ Atribut_Xrg_IxsExt: string;
20
+ }
21
+ 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
+ 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
+ interface EDoruceni {
58
+ DatumPrijeti: string;
59
+ DatumDoruceni: string;
60
+ IdDsOdesilatele: string;
61
+ }
62
+ 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
+ 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
+ declare function detailDokumentu(this: Ginis, bodyObj: DetailDokumentuRequest): Promise<DetailDokumentuXrg>;
106
+
107
+ type PridatSouborRequest = {
108
+ 'Id-dokumentu': string;
109
+ 'Id-souboru'?: string;
110
+ 'Jmeno-souboru': string;
111
+ 'Typ-vazby': string;
112
+ 'Popis-souboru'?: string;
113
+ 'Podrobny-popis-souboru'?: string;
114
+ Data: string;
115
+ 'Kontrola-podpisu'?: string;
116
+ 'Priz-platna-verze'?: 0 | 1;
117
+ 'Priz-archiv-verze'?: 0 | 1;
118
+ 'Id-kategorie-typu-prilohy'?: string;
119
+ };
120
+ type PridatSouborXrg = {
121
+ Atribut_Xrg_ixsExt?: string;
122
+ PridatSoubor: Array<{
123
+ DatumZmeny: string;
124
+ IdSouboru: string;
125
+ VerzeSouboru: number;
126
+ }>;
127
+ };
128
+ declare function pridatSoubor(this: Ginis, bodyObj: PridatSouborRequest): Promise<PridatSouborXrg>;
129
+
130
+ declare const _default$1: {
131
+ detailDokumentu: typeof detailDokumentu;
132
+ pridatSoubor: typeof pridatSoubor;
133
+ };
134
+
135
+ type DetailElPodaniRequest = {
136
+ 'Id-zpravy'?: string;
137
+ 'Id-el-podani'?: string;
138
+ 'Id-esu'?: string;
139
+ 'Id-eu'?: string;
140
+ 'Zaradit-navazane'?: string;
141
+ };
142
+ type DetailElPodaniXrg = {
143
+ DetailElPodani: {
144
+ DatumPrijeti: string;
145
+ StavZpracovani: string;
146
+ DuvodOdmitnuti?: string;
147
+ StavPodaniKod: string;
148
+ StavPodaniText?: string;
149
+ StavOdpovediKod: string;
150
+ StavOdpovediText?: string;
151
+ IdDokumentu: string;
152
+ Vec?: string;
153
+ SpisZnacka?: string;
154
+ Znacka?: string;
155
+ }[];
156
+ NavazanyDokument?: {
157
+ IdDokumentu: string;
158
+ Vec?: string;
159
+ SpisZnacka?: string;
160
+ Znacka?: string;
161
+ };
162
+ };
163
+ declare function detailElPodani(this: Ginis, bodyObj: DetailElPodaniRequest): Promise<DetailElPodaniXrg>;
164
+
165
+ declare const _default: {
166
+ detailElPodani: typeof detailElPodani;
167
+ };
168
+
169
+ type GinisConfig = {
170
+ username: string;
171
+ password: string;
172
+ urls: {
173
+ ude?: string;
174
+ ssl?: string;
175
+ pod?: string;
176
+ };
177
+ debug?: boolean;
178
+ };
179
+ type _Ssl = typeof _default$1;
180
+ /**
181
+ * full SSL service docs: https://robot.gordic.cz/xrg/Default.html?c=OpenModuleDetail&moduleName=SSL&language=cs-CZ&version=390
182
+ */
183
+ type Ssl = {
184
+ [P in keyof _Ssl]: OmitThisParameter<_Ssl[P]>;
185
+ };
186
+ type _Pod = typeof _default;
187
+ /**
188
+ * full POD service docs: https://robot.gordic.cz/xrg/Default.html?c=OpenModuleDetail&moduleName=POD&language=cs-CZ&version=390
189
+ */
190
+ type Pod = {
191
+ [P in keyof _Pod]: OmitThisParameter<_Pod[P]>;
192
+ };
193
+ declare class Ginis {
194
+ config: GinisConfig;
195
+ /**
196
+ * Exports functions of the api's with config and url values bound.
197
+ * See documentation of the api for request options.
198
+ * Inputs are typed objects, outputs unformatted xml.
199
+ */
200
+ json: {
201
+ ssl: Ssl;
202
+ pod: Pod;
203
+ };
204
+ constructor(config: GinisConfig);
205
+ }
206
+
207
+ declare class GinisError extends Error {
208
+ constructor(message: string);
209
+ }
210
+
211
+ export { Ginis, GinisConfig, GinisError };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bratislava/ginis-sdk",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "description": "A small wrapper for most commonly used requests towards the Bratislava GINIS system",
5
5
  "main": "dist/ginis-sdk",
6
6
  "files": [