@bratislava/ginis-sdk 1.3.1 → 2.0.0
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.
- package/README.md +11 -2
- package/dist/index.d.ts +217 -32
- package/dist/index.js +827 -367
- package/package.json +24 -24
package/README.md
CHANGED
|
@@ -87,11 +87,20 @@ const detailDokumentuRequestProperties = [
|
|
|
87
87
|
] as const
|
|
88
88
|
|
|
89
89
|
export type DetailDokumentuRequest = {
|
|
90
|
-
[K in (typeof detailDokumentuRequestProperties)[number] as K]?:
|
|
90
|
+
[K in (typeof detailDokumentuRequestProperties)[number] as K]?: RequestParamType
|
|
91
91
|
}
|
|
92
92
|
```
|
|
93
93
|
|
|
94
|
-
Currently, all request properties are marked as optional strings regardless of their actual type or if they are required by the endpoint. There is no input validation on the library side and all requests are ultimately accepted or rejected directly by the underlying Ginis API.
|
|
94
|
+
Currently, all request properties are marked as optional strings regardless of their actual type or if they are required by the endpoint. There is also a way to include XML tag attributes. There is no input validation on the library side and all requests are ultimately accepted or rejected directly by the underlying Ginis API.
|
|
95
|
+
|
|
96
|
+
```ts
|
|
97
|
+
export interface RequestParamValue {
|
|
98
|
+
value: string
|
|
99
|
+
attributes: string[]
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export type RequestParamType = string | undefined | RequestParamValue
|
|
103
|
+
```
|
|
95
104
|
|
|
96
105
|
#### Response type
|
|
97
106
|
|
package/dist/index.d.ts
CHANGED
|
@@ -2,9 +2,15 @@ import { z } from 'zod';
|
|
|
2
2
|
import { Readable } from 'stream';
|
|
3
3
|
import { AxiosError } from 'axios';
|
|
4
4
|
|
|
5
|
+
interface RequestParamValue {
|
|
6
|
+
value: string;
|
|
7
|
+
attributes: string[];
|
|
8
|
+
}
|
|
9
|
+
type RequestParamType = string | undefined | RequestParamValue;
|
|
10
|
+
|
|
5
11
|
declare const detailFunkcnihoMistaRequestProperties: readonly ["Id-funkce"];
|
|
6
12
|
type GinDetailFunkcnihoMistaRequest = {
|
|
7
|
-
[K in (typeof detailFunkcnihoMistaRequestProperties)[number] as K]?:
|
|
13
|
+
[K in (typeof detailFunkcnihoMistaRequestProperties)[number] as K]?: RequestParamType;
|
|
8
14
|
};
|
|
9
15
|
declare const detailFunkcnihoMistaSchema: z.ZodObject<{
|
|
10
16
|
'Id-funkce': z.ZodString;
|
|
@@ -66,7 +72,7 @@ declare function detailFunkcnihoMista(this: Ginis, bodyObj: GinDetailFunkcnihoMi
|
|
|
66
72
|
|
|
67
73
|
declare const detailReferentaRequestProperties: readonly ["Id-osoby"];
|
|
68
74
|
type GinDetailReferentaRequest = {
|
|
69
|
-
[K in (typeof detailReferentaRequestProperties)[number] as K]?:
|
|
75
|
+
[K in (typeof detailReferentaRequestProperties)[number] as K]?: RequestParamType;
|
|
70
76
|
};
|
|
71
77
|
declare const detailReferentaSchema: z.ZodObject<{
|
|
72
78
|
'Id-osoby': z.ZodString;
|
|
@@ -134,14 +140,94 @@ type GinDetailReferentaDetailReferenta = z.infer<typeof detailReferentaSchema>;
|
|
|
134
140
|
type GinDetailReferentaResponse = z.infer<typeof detailReferentaResponseSchema>;
|
|
135
141
|
declare function detailReferenta(this: Ginis, bodyObj: GinDetailReferentaRequest): Promise<GinDetailReferentaResponse>;
|
|
136
142
|
|
|
143
|
+
declare const vytvorEsuRequestProperties: readonly ["Id-esu", "Typ-esu", "Nazev", "Zkratka", "Poznamka", "Verifikace", "Stat", "Psc", "Obec", "Cast-obce", "Ulice", "Cislo-orientacni", "Cislo-popisne", "Kod-uir-adr", "Po-box", "Telefon", "E-mail", "Fax", "Obchodni-jmeno", "Typ-organizace", "Ico", "Dic", "Rodne-cislo", "Jmeno", "Prijmeni", "Titul-pred", "Titul-za", "Esu-txt", "Radek-obalky0", "Radek-obalky1", "Radek-obalky2", "Radek-obalky3", "Radek-obalky4", "Radek-obalky5", "Radek-obalky6", "Radek-obalky7", "Platce-dph", "Datum-narozeni", "Datum-umrti", "Uroven-pristupu", "Url", "Rodne-prijmeni", "Id-dat-schranky", "Typ-adr", "Id-esu-hlavni", "Duvod-ucel", "Id-eu", "Url-autority", "Osobni-cislo", "Prevzit-adresu-podle-kod-uir-adr", "Statni-prislusnost"];
|
|
144
|
+
type GinEditEsuRequestVytvorEsu = {
|
|
145
|
+
[K in (typeof vytvorEsuRequestProperties)[number] as K]?: RequestParamType;
|
|
146
|
+
};
|
|
147
|
+
declare const vytvorEsuSchema: z.ZodObject<{
|
|
148
|
+
'Id-esu': z.ZodString;
|
|
149
|
+
'Datum-zmeny': z.ZodString;
|
|
150
|
+
'Provedena-operace': z.ZodString;
|
|
151
|
+
}, z.core.$strip>;
|
|
152
|
+
declare const editEsuResponseSchema: z.ZodObject<{
|
|
153
|
+
'Vytvor-esu': z.ZodObject<{
|
|
154
|
+
'Id-esu': z.ZodString;
|
|
155
|
+
'Datum-zmeny': z.ZodString;
|
|
156
|
+
'Provedena-operace': z.ZodString;
|
|
157
|
+
}, z.core.$strip>;
|
|
158
|
+
}, z.core.$strip>;
|
|
159
|
+
type GinEditEsuVytvorEsu = z.infer<typeof vytvorEsuSchema>;
|
|
160
|
+
type GinEditEsuResponse = z.infer<typeof editEsuResponseSchema>;
|
|
161
|
+
declare function editEsu(this: Ginis, bodyObj: GinEditEsuRequestVytvorEsu): Promise<GinEditEsuResponse>;
|
|
162
|
+
|
|
163
|
+
declare const najdiEsuRequestProperties: readonly ["Lic", "Aktivita", "Poznamka", "Datum-zmeny", "Zkratka", "Nazev", "Obchodni-jmeno", "Typ-esu", "Verifikace", "Stat", "Psc", "Obec", "Cast-obce", "Ulice", "Cislo-orientacni", "Cislo-popisne", "Ico", "Dic", "Telefon", "E-mail", "Fax", "Typ-organizace", "Rodne-cislo", "Jmeno", "Prijmeni", "Titul-pred", "Titul-za", "Esu-txt", "Kod-uir-adr", "Po-box", "Radek-obalky0", "Radek-obalky1", "Radek-obalky2", "Radek-obalky3", "Radek-obalky4", "Radek-obalky5", "Radek-obalky6", "Radek-obalky7", "Platce-dph", "Datum-zmeny-od", "Datum-zmeny-do", "Id-dat-schranky", "Datum-narozeni", "Duvod-ucel", "Uroven-pristupu", "Id-esu-hlavni", "Id-aktualni-verze-esu", "Osobni-cislo", "Id-eu"];
|
|
164
|
+
type GinNajdiEsuRequest = {
|
|
165
|
+
[K in (typeof najdiEsuRequestProperties)[number] as K]?: RequestParamType;
|
|
166
|
+
};
|
|
167
|
+
declare const rizeniPrehleduRequestProperties$1: string[];
|
|
168
|
+
type GinNajdiEsuRequestRizeniPrehledu = {
|
|
169
|
+
[K in (typeof rizeniPrehleduRequestProperties$1)[number] as K]?: RequestParamType;
|
|
170
|
+
};
|
|
171
|
+
declare const najdiEsuSchema: z.ZodObject<{
|
|
172
|
+
'Id-esu': z.ZodString;
|
|
173
|
+
'Typ-esu': z.ZodOptional<z.ZodString>;
|
|
174
|
+
Nazev: z.ZodOptional<z.ZodString>;
|
|
175
|
+
Stat: z.ZodOptional<z.ZodString>;
|
|
176
|
+
Psc: z.ZodOptional<z.ZodString>;
|
|
177
|
+
Obec: z.ZodOptional<z.ZodString>;
|
|
178
|
+
Ulice: z.ZodOptional<z.ZodString>;
|
|
179
|
+
'Cislo-orientacni': z.ZodOptional<z.ZodString>;
|
|
180
|
+
'Cislo-popisne': z.ZodOptional<z.ZodString>;
|
|
181
|
+
Telefon: z.ZodOptional<z.ZodString>;
|
|
182
|
+
'E-mail': z.ZodOptional<z.ZodString>;
|
|
183
|
+
'Obchodni-jmeno': z.ZodOptional<z.ZodString>;
|
|
184
|
+
Ico: z.ZodOptional<z.ZodString>;
|
|
185
|
+
Dic: z.ZodOptional<z.ZodString>;
|
|
186
|
+
'Rodne-cislo': z.ZodOptional<z.ZodString>;
|
|
187
|
+
Jmeno: z.ZodOptional<z.ZodString>;
|
|
188
|
+
Prijmeni: z.ZodOptional<z.ZodString>;
|
|
189
|
+
'Id-dat-schranky': z.ZodOptional<z.ZodString>;
|
|
190
|
+
Verifikace: z.ZodString;
|
|
191
|
+
Aktivita: z.ZodString;
|
|
192
|
+
}, z.core.$strip>;
|
|
193
|
+
declare const najdiEsuResponseSchema: z.ZodObject<{
|
|
194
|
+
'Najdi-esu': z.ZodPipe<z.ZodTransform<{} | null | undefined, unknown>, z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
195
|
+
'Id-esu': z.ZodString;
|
|
196
|
+
'Typ-esu': z.ZodOptional<z.ZodString>;
|
|
197
|
+
Nazev: z.ZodOptional<z.ZodString>;
|
|
198
|
+
Stat: z.ZodOptional<z.ZodString>;
|
|
199
|
+
Psc: z.ZodOptional<z.ZodString>;
|
|
200
|
+
Obec: z.ZodOptional<z.ZodString>;
|
|
201
|
+
Ulice: z.ZodOptional<z.ZodString>;
|
|
202
|
+
'Cislo-orientacni': z.ZodOptional<z.ZodString>;
|
|
203
|
+
'Cislo-popisne': z.ZodOptional<z.ZodString>;
|
|
204
|
+
Telefon: z.ZodOptional<z.ZodString>;
|
|
205
|
+
'E-mail': z.ZodOptional<z.ZodString>;
|
|
206
|
+
'Obchodni-jmeno': z.ZodOptional<z.ZodString>;
|
|
207
|
+
Ico: z.ZodOptional<z.ZodString>;
|
|
208
|
+
Dic: z.ZodOptional<z.ZodString>;
|
|
209
|
+
'Rodne-cislo': z.ZodOptional<z.ZodString>;
|
|
210
|
+
Jmeno: z.ZodOptional<z.ZodString>;
|
|
211
|
+
Prijmeni: z.ZodOptional<z.ZodString>;
|
|
212
|
+
'Id-dat-schranky': z.ZodOptional<z.ZodString>;
|
|
213
|
+
Verifikace: z.ZodString;
|
|
214
|
+
Aktivita: z.ZodString;
|
|
215
|
+
}, z.core.$strip>>>>;
|
|
216
|
+
}, z.core.$strip>;
|
|
217
|
+
type GinNajdiEsuNajdiEsuItem = z.infer<typeof najdiEsuSchema>;
|
|
218
|
+
type GinNajdiEsuResponse = z.infer<typeof najdiEsuResponseSchema>;
|
|
219
|
+
declare function najdiEsu(this: Ginis, requestNajdiEsu: GinNajdiEsuRequest, requestRizeniPrehledu: GinNajdiEsuRequestRizeniPrehledu): Promise<GinNajdiEsuResponse>;
|
|
220
|
+
|
|
137
221
|
declare const _default$3: {
|
|
138
222
|
detailFunkcnihoMista: typeof detailFunkcnihoMista;
|
|
139
223
|
detailReferenta: typeof detailReferenta;
|
|
224
|
+
najdiEsu: typeof najdiEsu;
|
|
225
|
+
editEsu: typeof editEsu;
|
|
140
226
|
};
|
|
141
227
|
|
|
142
228
|
declare const detailElPodaniRequestProperties: readonly ["Id-zpravy", "Id-el-podani", "Id-esu", "Id-eu", "Zaradit-navazane"];
|
|
143
229
|
type PodDetailElPodaniRequest = {
|
|
144
|
-
[K in (typeof detailElPodaniRequestProperties)[number] as K]?:
|
|
230
|
+
[K in (typeof detailElPodaniRequestProperties)[number] as K]?: RequestParamType;
|
|
145
231
|
};
|
|
146
232
|
declare const detailElPodaniSchema: z.ZodObject<{
|
|
147
233
|
'Datum-prijeti': z.ZodString;
|
|
@@ -194,7 +280,7 @@ declare const _default$2: {
|
|
|
194
280
|
|
|
195
281
|
declare const detailDokumentuRequestProperties$1: readonly ["Id-dokumentu", "Vyradit-historii", "Vyradit-obsah-spisu", "Vyradit-prilohy", "Vyradit-souvisejici", "Id-esu", "Vyradit-doruceni", "Id-eu"];
|
|
196
282
|
type SslDetailDokumentuRequest = {
|
|
197
|
-
[K in (typeof detailDokumentuRequestProperties$1)[number] as K]?:
|
|
283
|
+
[K in (typeof detailDokumentuRequestProperties$1)[number] as K]?: RequestParamType;
|
|
198
284
|
};
|
|
199
285
|
declare const wflDokumentSchema: z.ZodObject<{
|
|
200
286
|
'Id-dokumentu': z.ZodString;
|
|
@@ -362,7 +448,7 @@ declare const vlozenoDoSpisuSchema: z.ZodObject<{
|
|
|
362
448
|
'Poradove-cislo-uziv': z.ZodOptional<z.ZodString>;
|
|
363
449
|
Poznamka: z.ZodOptional<z.ZodString>;
|
|
364
450
|
}, z.core.$strip>;
|
|
365
|
-
declare const
|
|
451
|
+
declare const detailDokumentuResponseSchema$1: z.ZodObject<{
|
|
366
452
|
'Wfl-dokument': z.ZodObject<{
|
|
367
453
|
'Id-dokumentu': z.ZodString;
|
|
368
454
|
'Id-spisu': z.ZodString;
|
|
@@ -542,16 +628,44 @@ type SslDetailDokumentuPrilohyDokumentuItem = z.infer<typeof prilohyDokumentuSch
|
|
|
542
628
|
type SslDetailDokumentuSouvisejiciDokumentyItem = z.infer<typeof souvisejiciDokumentySchema>;
|
|
543
629
|
type SslDetailDokumentuSpisovnaItem = z.infer<typeof spisovnaSchema>;
|
|
544
630
|
type SslDetailDokumentuVlozenoDoSpisu = z.infer<typeof vlozenoDoSpisuSchema>;
|
|
545
|
-
type SslDetailDokumentuResponse = z.infer<typeof
|
|
631
|
+
type SslDetailDokumentuResponse = z.infer<typeof detailDokumentuResponseSchema$1>;
|
|
546
632
|
declare function detailDokumentu$1(this: Ginis, bodyObj: SslDetailDokumentuRequest): Promise<SslDetailDokumentuResponse>;
|
|
547
633
|
|
|
634
|
+
declare const nastavitVlastnostDokumentuRequestProperties: string[];
|
|
635
|
+
type SslNastavitVlastnostDokumentuRequest = {
|
|
636
|
+
[K in (typeof nastavitVlastnostDokumentuRequestProperties)[number] as K]?: RequestParamType;
|
|
637
|
+
};
|
|
638
|
+
declare const nastavitVlastnostDokumentuSchema: z.ZodObject<{
|
|
639
|
+
'Id-dokumentu': z.ZodString;
|
|
640
|
+
'Id-profilu': z.ZodString;
|
|
641
|
+
'Id-struktury': z.ZodString;
|
|
642
|
+
'Id-vlastnosti': z.ZodString;
|
|
643
|
+
'Poradove-cislo': z.ZodString;
|
|
644
|
+
'Hodnota-raw': z.ZodOptional<z.ZodString>;
|
|
645
|
+
'Hodnota-popis': z.ZodOptional<z.ZodString>;
|
|
646
|
+
}, z.core.$strip>;
|
|
647
|
+
declare const nastavitVlastnostDokumentuResponseSchema: z.ZodObject<{
|
|
648
|
+
'Nastavit-vlastnost-dokumentu': z.ZodObject<{
|
|
649
|
+
'Id-dokumentu': z.ZodString;
|
|
650
|
+
'Id-profilu': z.ZodString;
|
|
651
|
+
'Id-struktury': z.ZodString;
|
|
652
|
+
'Id-vlastnosti': z.ZodString;
|
|
653
|
+
'Poradove-cislo': z.ZodString;
|
|
654
|
+
'Hodnota-raw': z.ZodOptional<z.ZodString>;
|
|
655
|
+
'Hodnota-popis': z.ZodOptional<z.ZodString>;
|
|
656
|
+
}, z.core.$strip>;
|
|
657
|
+
}, z.core.$strip>;
|
|
658
|
+
type SslNastavitVlastnostDokumentuNastavitVlastnostDokumentu = z.infer<typeof nastavitVlastnostDokumentuSchema>;
|
|
659
|
+
type SslNastavitVlastnostDokumentuResponse = z.infer<typeof nastavitVlastnostDokumentuResponseSchema>;
|
|
660
|
+
declare function nastavitVlastnostDokumentu(this: Ginis, bodyObj: SslNastavitVlastnostDokumentuRequest): Promise<SslNastavitVlastnostDokumentuResponse>;
|
|
661
|
+
|
|
548
662
|
declare const prehledDokumentuRequestProperties: string[];
|
|
549
663
|
type SslPrehledDokumentuRequest = {
|
|
550
|
-
[K in (typeof prehledDokumentuRequestProperties)[number] as K]?:
|
|
664
|
+
[K in (typeof prehledDokumentuRequestProperties)[number] as K]?: RequestParamType;
|
|
551
665
|
};
|
|
552
666
|
declare const rizeniPrehleduRequestProperties: string[];
|
|
553
667
|
type SslPrehledDokumentuRequestRizeniPrehledu = {
|
|
554
|
-
[K in (typeof rizeniPrehleduRequestProperties)[number] as K]?:
|
|
668
|
+
[K in (typeof rizeniPrehleduRequestProperties)[number] as K]?: RequestParamType;
|
|
555
669
|
};
|
|
556
670
|
declare const prehledDokumentuSchema: z.ZodObject<{
|
|
557
671
|
'Id-dokumentu': z.ZodString;
|
|
@@ -589,7 +703,7 @@ declare const stavPrehleduSchema: z.ZodObject<{
|
|
|
589
703
|
'Radek-do': z.ZodString;
|
|
590
704
|
'Radku-celkem': z.ZodString;
|
|
591
705
|
}, z.core.$strip>;
|
|
592
|
-
declare const
|
|
706
|
+
declare const prehledDokumentuResponseSchema: z.ZodObject<{
|
|
593
707
|
'Prehled-dokumentu': z.ZodPipe<z.ZodTransform<{} | null | undefined, unknown>, z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
594
708
|
'Id-dokumentu': z.ZodString;
|
|
595
709
|
'Id-spisu': z.ZodString;
|
|
@@ -629,22 +743,12 @@ declare const PrehledDokumentuResponseSchema: z.ZodObject<{
|
|
|
629
743
|
}, z.core.$strip>;
|
|
630
744
|
type SslPrehledDokumentuPrehledDokumentuItem = z.infer<typeof prehledDokumentuSchema>;
|
|
631
745
|
type SslPrehledDokumentuStavPrehledu = z.infer<typeof stavPrehleduSchema>;
|
|
632
|
-
type SslPrehledDokumentuResponse = z.infer<typeof
|
|
746
|
+
type SslPrehledDokumentuResponse = z.infer<typeof prehledDokumentuResponseSchema>;
|
|
633
747
|
declare function prehledDokumentu(this: Ginis, requestPrehledDokumentu: SslPrehledDokumentuRequest, requestRizeniPrehledu: SslPrehledDokumentuRequestRizeniPrehledu): Promise<SslPrehledDokumentuResponse>;
|
|
634
748
|
|
|
635
749
|
declare const pridatSouborRequestProperties: readonly ["Id-dokumentu", "Id-souboru", "Jmeno-souboru", "Typ-vazby", "Popis-souboru", "Podrobny-popis-souboru", "Data", "Kontrola-podpisu", "Priz-platna-verze", "Priz-archiv-verze", "Id-kategorie-typu-prilohy"];
|
|
636
|
-
/**
|
|
637
|
-
* File can be provided according to the documentation as base64 encoded string
|
|
638
|
-
* of its content inside of the Data attribute to send using a regular request.
|
|
639
|
-
*
|
|
640
|
-
* It is also possible to provide file as byte array inside of Obsah attribute.
|
|
641
|
-
* In this scenario a multipart request is sent and the file is send using MTOM XOP
|
|
642
|
-
* inside of Mime envelope. It allows for much faster a larger file transfers.
|
|
643
|
-
*/
|
|
644
750
|
type SslPridatSouborRequest = {
|
|
645
|
-
[K in (typeof pridatSouborRequestProperties)[number] as K]?:
|
|
646
|
-
} & {
|
|
647
|
-
Obsah?: Readable;
|
|
751
|
+
[K in (typeof pridatSouborRequestProperties)[number] as K]?: RequestParamType;
|
|
648
752
|
};
|
|
649
753
|
declare const pridatSouborSchema: z.ZodObject<{
|
|
650
754
|
'Datum-zmeny': z.ZodString;
|
|
@@ -661,35 +765,116 @@ declare const pridatSouborResponseSchema: z.ZodObject<{
|
|
|
661
765
|
type SslPridatSouborPridatSoubor = z.infer<typeof pridatSouborSchema>;
|
|
662
766
|
type SslPridatSouborResponse = z.infer<typeof pridatSouborResponseSchema>;
|
|
663
767
|
declare function pridatSoubor(this: Ginis, bodyObj: SslPridatSouborRequest): Promise<SslPridatSouborResponse>;
|
|
664
|
-
declare function pridatSouborMtom(this: Ginis, bodyObj: SslPridatSouborRequest): Promise<SslPridatSouborResponse>;
|
|
768
|
+
declare function pridatSouborMtom(this: Ginis, bodyObj: SslPridatSouborRequest, fileStream?: Readable): Promise<SslPridatSouborResponse>;
|
|
665
769
|
|
|
666
770
|
declare const prideleniRequestProperties: string[];
|
|
667
771
|
type SslPrideleniRequest = {
|
|
668
|
-
[K in (typeof prideleniRequestProperties)[number] as K]?:
|
|
772
|
+
[K in (typeof prideleniRequestProperties)[number] as K]?: RequestParamType;
|
|
669
773
|
};
|
|
670
774
|
declare const prideleniSchema: z.ZodObject<{
|
|
671
775
|
'Datum-zmeny': z.ZodString;
|
|
672
776
|
}, z.core.$strip>;
|
|
673
|
-
declare const
|
|
777
|
+
declare const prideleniResponseSchema: z.ZodObject<{
|
|
674
778
|
Prideleni: z.ZodObject<{
|
|
675
779
|
'Datum-zmeny': z.ZodString;
|
|
676
780
|
}, z.core.$strip>;
|
|
677
781
|
}, z.core.$strip>;
|
|
678
782
|
type SslPrideleniPrideleni = z.infer<typeof prideleniSchema>;
|
|
679
|
-
type SslPrideleniResponse = z.infer<typeof
|
|
783
|
+
type SslPrideleniResponse = z.infer<typeof prideleniResponseSchema>;
|
|
680
784
|
declare function prideleni(this: Ginis, bodyObj: SslPrideleniRequest): Promise<SslPrideleniResponse>;
|
|
681
785
|
|
|
786
|
+
declare const zalozCjRequestProperties: string[];
|
|
787
|
+
type SslZalozCjRequest = {
|
|
788
|
+
[K in (typeof zalozCjRequestProperties)[number] as K]?: RequestParamType;
|
|
789
|
+
};
|
|
790
|
+
declare const zalozCjSchema: z.ZodObject<{
|
|
791
|
+
'Id-init-dokumentu': z.ZodString;
|
|
792
|
+
'Denik-cj': z.ZodString;
|
|
793
|
+
'Rok-cj': z.ZodString;
|
|
794
|
+
'Poradove-cislo-cj': z.ZodString;
|
|
795
|
+
'Vec-cj': z.ZodOptional<z.ZodString>;
|
|
796
|
+
'Znacka-cj': z.ZodString;
|
|
797
|
+
}, z.core.$strip>;
|
|
798
|
+
declare const zalozCjResponseSchema: z.ZodObject<{
|
|
799
|
+
'Zaloz-cj': z.ZodObject<{
|
|
800
|
+
'Id-init-dokumentu': z.ZodString;
|
|
801
|
+
'Denik-cj': z.ZodString;
|
|
802
|
+
'Rok-cj': z.ZodString;
|
|
803
|
+
'Poradove-cislo-cj': z.ZodString;
|
|
804
|
+
'Vec-cj': z.ZodOptional<z.ZodString>;
|
|
805
|
+
'Znacka-cj': z.ZodString;
|
|
806
|
+
}, z.core.$strip>;
|
|
807
|
+
}, z.core.$strip>;
|
|
808
|
+
type SslZalozCjZalozCj = z.infer<typeof zalozCjSchema>;
|
|
809
|
+
type SslZalozCjResponse = z.infer<typeof zalozCjResponseSchema>;
|
|
810
|
+
/** Cj = číslo jednacie */
|
|
811
|
+
declare function zalozCj(this: Ginis, bodyObj: SslZalozCjRequest): Promise<SslZalozCjResponse>;
|
|
812
|
+
|
|
813
|
+
declare const wflDokumentRequestProperties: string[];
|
|
814
|
+
type SslZalozPisemnostRequestWflDokument = {
|
|
815
|
+
[K in (typeof wflDokumentRequestProperties)[number] as K]?: RequestParamType;
|
|
816
|
+
};
|
|
817
|
+
declare const doruceniRequestProperties: string[];
|
|
818
|
+
type SslZalozPisemnostRequestDoruceni = {
|
|
819
|
+
[K in (typeof doruceniRequestProperties)[number] as K]?: RequestParamType;
|
|
820
|
+
};
|
|
821
|
+
declare const sslDokumentRequestProperties: string[];
|
|
822
|
+
type SslZalozPisemnostRequestSslDokument = {
|
|
823
|
+
[K in (typeof sslDokumentRequestProperties)[number] as K]?: RequestParamType;
|
|
824
|
+
};
|
|
825
|
+
declare const zalozPisemnostSchema: z.ZodObject<{
|
|
826
|
+
'Id-dokumentu': z.ZodString;
|
|
827
|
+
'Datum-zmeny': z.ZodString;
|
|
828
|
+
}, z.core.$strip>;
|
|
829
|
+
declare const zalozPisemnostResponseSchema: z.ZodObject<{
|
|
830
|
+
'Zaloz-pisemnost': z.ZodObject<{
|
|
831
|
+
'Id-dokumentu': z.ZodString;
|
|
832
|
+
'Datum-zmeny': z.ZodString;
|
|
833
|
+
}, z.core.$strip>;
|
|
834
|
+
}, z.core.$strip>;
|
|
835
|
+
type SslZalozPisemnostZalozPisemnost = z.infer<typeof zalozPisemnostSchema>;
|
|
836
|
+
type SslZalozPisemnostResponse = z.infer<typeof zalozPisemnostResponseSchema>;
|
|
837
|
+
declare function zalozPisemnost(this: Ginis, requestWflDokument: SslZalozPisemnostRequestWflDokument, requestDoruceni: SslZalozPisemnostRequestDoruceni, requestSslDokument: SslZalozPisemnostRequestSslDokument): Promise<SslZalozPisemnostResponse>;
|
|
838
|
+
|
|
839
|
+
declare const zalozitVlastnostDokumentuRequestProperties: string[];
|
|
840
|
+
type SslZalozitVlastnostDokumentuRequest = {
|
|
841
|
+
[K in (typeof zalozitVlastnostDokumentuRequestProperties)[number] as K]?: RequestParamType;
|
|
842
|
+
};
|
|
843
|
+
declare const zalozitVlastnostDokumentuSchema: z.ZodObject<{
|
|
844
|
+
'Id-dokumentu': z.ZodString;
|
|
845
|
+
'Id-profilu': z.ZodString;
|
|
846
|
+
'Id-struktury': z.ZodOptional<z.ZodString>;
|
|
847
|
+
'Id-vlastnosti': z.ZodOptional<z.ZodString>;
|
|
848
|
+
'Poradove-cislo': z.ZodString;
|
|
849
|
+
}, z.core.$strip>;
|
|
850
|
+
declare const zalozitVlastnostDokumentuResponseSchema: z.ZodObject<{
|
|
851
|
+
'Zalozit-vlastnost-dokumentu': z.ZodObject<{
|
|
852
|
+
'Id-dokumentu': z.ZodString;
|
|
853
|
+
'Id-profilu': z.ZodString;
|
|
854
|
+
'Id-struktury': z.ZodOptional<z.ZodString>;
|
|
855
|
+
'Id-vlastnosti': z.ZodOptional<z.ZodString>;
|
|
856
|
+
'Poradove-cislo': z.ZodString;
|
|
857
|
+
}, z.core.$strip>;
|
|
858
|
+
}, z.core.$strip>;
|
|
859
|
+
type SslZalozitVlastnostDokumentuZalozitVlastnostDokumentu = z.infer<typeof zalozitVlastnostDokumentuSchema>;
|
|
860
|
+
type SslZalozitVlastnostDokumentuResponse = z.infer<typeof zalozitVlastnostDokumentuResponseSchema>;
|
|
861
|
+
declare function zalozitVlastnostDokumentu(this: Ginis, bodyObj: SslZalozitVlastnostDokumentuRequest): Promise<SslZalozitVlastnostDokumentuResponse>;
|
|
862
|
+
|
|
682
863
|
declare const _default$1: {
|
|
683
864
|
detailDokumentu: typeof detailDokumentu$1;
|
|
684
865
|
prehledDokumentu: typeof prehledDokumentu;
|
|
685
866
|
pridatSoubor: typeof pridatSoubor;
|
|
686
867
|
pridatSouborMtom: typeof pridatSouborMtom;
|
|
687
868
|
prideleni: typeof prideleni;
|
|
869
|
+
zalozCj: typeof zalozCj;
|
|
870
|
+
zalozPisemnost: typeof zalozPisemnost;
|
|
871
|
+
zalozitVlastnostDokumentu: typeof zalozitVlastnostDokumentu;
|
|
872
|
+
nastavitVlastnostDokumentu: typeof nastavitVlastnostDokumentu;
|
|
688
873
|
};
|
|
689
874
|
|
|
690
875
|
declare const detailDokumentuRequestProperties: readonly ["Vratit-info", "Id-zaznamu"];
|
|
691
876
|
type UdeDetailDokumentuRequest = {
|
|
692
|
-
[K in (typeof detailDokumentuRequestProperties)[number] as K]?:
|
|
877
|
+
[K in (typeof detailDokumentuRequestProperties)[number] as K]?: RequestParamType;
|
|
693
878
|
};
|
|
694
879
|
/** These types were created manually:
|
|
695
880
|
* - copied from https://robot.gordic.cz/xrg/Default.html?c=OpenMethodDetail&moduleName=UDE&version=524&methodName=detail-dokumentu&type=response
|
|
@@ -767,7 +952,7 @@ declare const protistranySmlSchema: z.ZodObject<{
|
|
|
767
952
|
* - DetailDokumentu usually comes as an array with one item
|
|
768
953
|
* - SouboryDokumentu usually comes as play item it there is only one file, array otherwise
|
|
769
954
|
*/
|
|
770
|
-
declare const
|
|
955
|
+
declare const detailDokumentuResponseSchema: z.ZodObject<{
|
|
771
956
|
'Detail-dokumentu': z.ZodOptional<z.ZodObject<{
|
|
772
957
|
'Id-zaznamu': z.ZodString;
|
|
773
958
|
Stav: z.ZodOptional<z.ZodString>;
|
|
@@ -836,12 +1021,12 @@ declare const DetailDokumentuResponseSchema: z.ZodObject<{
|
|
|
836
1021
|
type UdeDetailDokumentuDetailDokumentu = z.infer<typeof detailDokumentuSchema>;
|
|
837
1022
|
type UdeDetailDokumentuSouboryDokumentuItem = z.infer<typeof souboryDokumentuSchema>;
|
|
838
1023
|
type UdeDetailDokumentuProtistranySmlItem = z.infer<typeof protistranySmlSchema>;
|
|
839
|
-
type UdeDetailDokumentuResponse = z.infer<typeof
|
|
1024
|
+
type UdeDetailDokumentuResponse = z.infer<typeof detailDokumentuResponseSchema>;
|
|
840
1025
|
declare function detailDokumentu(this: Ginis, bodyObj: UdeDetailDokumentuRequest): Promise<UdeDetailDokumentuResponse>;
|
|
841
1026
|
|
|
842
1027
|
declare const nacistSouborRequestProperties: readonly ["Id-souboru"];
|
|
843
1028
|
type UdeNacistSouborRequest = {
|
|
844
|
-
[K in (typeof nacistSouborRequestProperties)[number] as K]?:
|
|
1029
|
+
[K in (typeof nacistSouborRequestProperties)[number] as K]?: RequestParamType;
|
|
845
1030
|
};
|
|
846
1031
|
declare const nacistSouborSchema: z.ZodObject<{
|
|
847
1032
|
'Jmeno-souboru': z.ZodString;
|
|
@@ -883,7 +1068,7 @@ declare const seznamDokumentuRequestProperties: readonly ["Vratit-info", "Stav",
|
|
|
883
1068
|
* interface-xrg - interface, xrg
|
|
884
1069
|
*/
|
|
885
1070
|
type UdeSeznamDokumentuRequest = {
|
|
886
|
-
[K in (typeof seznamDokumentuRequestProperties)[number] as K]?:
|
|
1071
|
+
[K in (typeof seznamDokumentuRequestProperties)[number] as K]?: RequestParamType;
|
|
887
1072
|
};
|
|
888
1073
|
/**
|
|
889
1074
|
* Manually typed according to https://robot.gordic.cz/xrg/Default.html?c=OpenMethodDetail&moduleName=UDE&version=390&methodName=seznam-dokumentu&type=response#
|
|
@@ -999,7 +1184,7 @@ declare const seznamKategoriiRequestProperties: readonly ["Id-uredni-desky"];
|
|
|
999
1184
|
* 'Id-uredni-desky' - Identifikátor úřední desky. Pokud je v GINIS naadministrována jen jedna deska, nemusí být uvedeno.
|
|
1000
1185
|
*/
|
|
1001
1186
|
type UdeSeznamKategoriiRequest = {
|
|
1002
|
-
[K in (typeof seznamKategoriiRequestProperties)[number] as K]?:
|
|
1187
|
+
[K in (typeof seznamKategoriiRequestProperties)[number] as K]?: RequestParamType;
|
|
1003
1188
|
};
|
|
1004
1189
|
declare const seznamKategoriiSchema: z.ZodObject<{
|
|
1005
1190
|
'Id-kategorie': z.ZodString;
|
|
@@ -1080,4 +1265,4 @@ declare class GinisError extends Error {
|
|
|
1080
1265
|
constructor(message: string, axiosError?: AxiosError);
|
|
1081
1266
|
}
|
|
1082
1267
|
|
|
1083
|
-
export { type GinDetailFunkcnihoMistaDetailFunkcnihoMista, type GinDetailFunkcnihoMistaRequest, type GinDetailFunkcnihoMistaResponse, type GinDetailReferentaDetailReferenta, type GinDetailReferentaRequest, type GinDetailReferentaResponse, Ginis, type GinisConfig, GinisError, type PodDetailElPodaniDetailElPodani, type PodDetailElPodaniNavazanyDokumentItem, type PodDetailElPodaniRequest, type PodDetailElPodaniResponse, type SslDetailDokumentuCjDokumentu, type SslDetailDokumentuDoruceni, type SslDetailDokumentuEDoruceni, type SslDetailDokumentuHistorieDokumentuItem, type SslDetailDokumentuPrilohyDokumentuItem, type SslDetailDokumentuRequest, type SslDetailDokumentuResponse, type SslDetailDokumentuSouvisejiciDokumentyItem, type SslDetailDokumentuSpisovnaItem, type SslDetailDokumentuSslDokument, type SslDetailDokumentuSslObsahSpisItem, type SslDetailDokumentuSslSpis, type SslDetailDokumentuVlozenoDoSpisu, type SslDetailDokumentuWflDokument, type SslPrehledDokumentuPrehledDokumentuItem, type SslPrehledDokumentuRequest, type SslPrehledDokumentuRequestRizeniPrehledu, type SslPrehledDokumentuResponse, type SslPrehledDokumentuStavPrehledu, type SslPridatSouborPridatSoubor, type SslPridatSouborRequest, type SslPridatSouborResponse, type SslPrideleniPrideleni, type SslPrideleniRequest, type SslPrideleniResponse, type UdeDetailDokumentuDetailDokumentu, type UdeDetailDokumentuProtistranySmlItem, type UdeDetailDokumentuRequest, type UdeDetailDokumentuResponse, type UdeDetailDokumentuSouboryDokumentuItem, type UdeNacistSouborNacistSoubor, type UdeNacistSouborRequest, type UdeNacistSouborResponse, type UdeSeznamDokumentuRequest, type UdeSeznamDokumentuResponse, type UdeSeznamDokumentuSejmuteDokumentyItem, type UdeSeznamDokumentuSeznamDokumentuItem, type UdeSeznamDokumentuZruseneDokumentyItem, type UdeSeznamKategoriiRequest, type UdeSeznamKategoriiResponse, type UdeSeznamKategoriiSeznamKategoriiItem };
|
|
1268
|
+
export { type GinDetailFunkcnihoMistaDetailFunkcnihoMista, type GinDetailFunkcnihoMistaRequest, type GinDetailFunkcnihoMistaResponse, type GinDetailReferentaDetailReferenta, type GinDetailReferentaRequest, type GinDetailReferentaResponse, type GinEditEsuRequestVytvorEsu, type GinEditEsuResponse, type GinEditEsuVytvorEsu, type GinNajdiEsuNajdiEsuItem, type GinNajdiEsuRequest, type GinNajdiEsuResponse, Ginis, type GinisConfig, GinisError, type PodDetailElPodaniDetailElPodani, type PodDetailElPodaniNavazanyDokumentItem, type PodDetailElPodaniRequest, type PodDetailElPodaniResponse, type SslDetailDokumentuCjDokumentu, type SslDetailDokumentuDoruceni, type SslDetailDokumentuEDoruceni, type SslDetailDokumentuHistorieDokumentuItem, type SslDetailDokumentuPrilohyDokumentuItem, type SslDetailDokumentuRequest, type SslDetailDokumentuResponse, type SslDetailDokumentuSouvisejiciDokumentyItem, type SslDetailDokumentuSpisovnaItem, type SslDetailDokumentuSslDokument, type SslDetailDokumentuSslObsahSpisItem, type SslDetailDokumentuSslSpis, type SslDetailDokumentuVlozenoDoSpisu, type SslDetailDokumentuWflDokument, type SslNastavitVlastnostDokumentuNastavitVlastnostDokumentu, type SslNastavitVlastnostDokumentuRequest, type SslNastavitVlastnostDokumentuResponse, type SslPrehledDokumentuPrehledDokumentuItem, type SslPrehledDokumentuRequest, type SslPrehledDokumentuRequestRizeniPrehledu, type SslPrehledDokumentuResponse, type SslPrehledDokumentuStavPrehledu, type SslPridatSouborPridatSoubor, type SslPridatSouborRequest, type SslPridatSouborResponse, type SslPrideleniPrideleni, type SslPrideleniRequest, type SslPrideleniResponse, type SslZalozCjRequest, type SslZalozCjResponse, type SslZalozCjZalozCj, type SslZalozPisemnostRequestDoruceni, type SslZalozPisemnostRequestSslDokument, type SslZalozPisemnostRequestWflDokument, type SslZalozPisemnostResponse, type SslZalozPisemnostZalozPisemnost, type SslZalozitVlastnostDokumentuRequest, type SslZalozitVlastnostDokumentuResponse, type SslZalozitVlastnostDokumentuZalozitVlastnostDokumentu, type UdeDetailDokumentuDetailDokumentu, type UdeDetailDokumentuProtistranySmlItem, type UdeDetailDokumentuRequest, type UdeDetailDokumentuResponse, type UdeDetailDokumentuSouboryDokumentuItem, type UdeNacistSouborNacistSoubor, type UdeNacistSouborRequest, type UdeNacistSouborResponse, type UdeSeznamDokumentuRequest, type UdeSeznamDokumentuResponse, type UdeSeznamDokumentuSejmuteDokumentyItem, type UdeSeznamDokumentuSeznamDokumentuItem, type UdeSeznamDokumentuZruseneDokumentyItem, type UdeSeznamKategoriiRequest, type UdeSeznamKategoriiResponse, type UdeSeznamKategoriiSeznamKategoriiItem };
|