@bratislava/ginis-sdk 1.2.0 → 1.3.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/dist/index.d.ts +332 -1
- package/dist/index.js +362 -152
- package/package.json +17 -17
package/dist/index.d.ts
CHANGED
|
@@ -1947,6 +1947,303 @@ type SslDetailDokumentuVlozenoDoSpisu = z.infer<typeof vlozenoDoSpisuSchema>;
|
|
|
1947
1947
|
type SslDetailDokumentuResponse = z.infer<typeof DetailDokumentuResponseSchema$1>;
|
|
1948
1948
|
declare function detailDokumentu$1(this: Ginis, bodyObj: SslDetailDokumentuRequest): Promise<SslDetailDokumentuResponse>;
|
|
1949
1949
|
|
|
1950
|
+
declare const prehledDokumentuRequestProperties: string[];
|
|
1951
|
+
type SslPrehledDokumentuRequest = {
|
|
1952
|
+
[K in (typeof prehledDokumentuRequestProperties)[number] as K]?: string;
|
|
1953
|
+
};
|
|
1954
|
+
declare const rizeniPrehleduRequestProperties: string[];
|
|
1955
|
+
type SslPrehledDokumentuRequestRizeniPrehledu = {
|
|
1956
|
+
[K in (typeof rizeniPrehleduRequestProperties)[number] as K]?: string;
|
|
1957
|
+
};
|
|
1958
|
+
declare const prehledDokumentuSchema: z.ZodObject<{
|
|
1959
|
+
'Id-dokumentu': z.ZodString;
|
|
1960
|
+
'Id-spisu': z.ZodString;
|
|
1961
|
+
'Priznak-spisu': z.ZodString;
|
|
1962
|
+
'Priznak-cj': z.ZodString;
|
|
1963
|
+
'Id-funkce-vlastnika': z.ZodString;
|
|
1964
|
+
Vec: z.ZodOptional<z.ZodString>;
|
|
1965
|
+
Znacka: z.ZodOptional<z.ZodString>;
|
|
1966
|
+
'Stav-distribuce': z.ZodString;
|
|
1967
|
+
'Stav-dokumentu': z.ZodString;
|
|
1968
|
+
'Id-agendy': z.ZodString;
|
|
1969
|
+
'Id-typu-dokumentu': z.ZodString;
|
|
1970
|
+
'Priznak-doruceni': z.ZodString;
|
|
1971
|
+
'Priznak-evidence-ssl': z.ZodString;
|
|
1972
|
+
'Priznak-fyz-existence': z.ZodString;
|
|
1973
|
+
'Priznak-el-obrazu': z.ZodString;
|
|
1974
|
+
'Misto-vzniku': z.ZodString;
|
|
1975
|
+
'Datum-podani': z.ZodString;
|
|
1976
|
+
'Datum-zmeny': z.ZodString;
|
|
1977
|
+
'Id-zmenu-provedl': z.ZodString;
|
|
1978
|
+
'Id-spisoveho-planu': z.ZodOptional<z.ZodString>;
|
|
1979
|
+
'Id-spisoveho-znaku': z.ZodOptional<z.ZodString>;
|
|
1980
|
+
'Vec-podrobne': z.ZodOptional<z.ZodString>;
|
|
1981
|
+
'Vec-cj': z.ZodOptional<z.ZodString>;
|
|
1982
|
+
'Znacka-cj': z.ZodOptional<z.ZodString>;
|
|
1983
|
+
'Stav-cj': z.ZodOptional<z.ZodString>;
|
|
1984
|
+
'Id-init-dokumentu': z.ZodOptional<z.ZodString>;
|
|
1985
|
+
'Id-vyriz-dokumentu': z.ZodOptional<z.ZodString>;
|
|
1986
|
+
'Id-odesilatele': z.ZodOptional<z.ZodString>;
|
|
1987
|
+
'Id-osoby-vlastnika': z.ZodString;
|
|
1988
|
+
}, "strip", z.ZodTypeAny, {
|
|
1989
|
+
'Id-dokumentu': string;
|
|
1990
|
+
'Id-spisu': string;
|
|
1991
|
+
'Priznak-spisu': string;
|
|
1992
|
+
'Priznak-cj': string;
|
|
1993
|
+
'Id-funkce-vlastnika': string;
|
|
1994
|
+
'Stav-distribuce': string;
|
|
1995
|
+
'Stav-dokumentu': string;
|
|
1996
|
+
'Id-agendy': string;
|
|
1997
|
+
'Id-typu-dokumentu': string;
|
|
1998
|
+
'Priznak-doruceni': string;
|
|
1999
|
+
'Priznak-evidence-ssl': string;
|
|
2000
|
+
'Misto-vzniku': string;
|
|
2001
|
+
'Datum-podani': string;
|
|
2002
|
+
'Priznak-fyz-existence': string;
|
|
2003
|
+
'Priznak-el-obrazu': string;
|
|
2004
|
+
'Datum-zmeny': string;
|
|
2005
|
+
'Id-zmenu-provedl': string;
|
|
2006
|
+
'Id-osoby-vlastnika': string;
|
|
2007
|
+
Vec?: string | undefined;
|
|
2008
|
+
Znacka?: string | undefined;
|
|
2009
|
+
'Id-odesilatele'?: string | undefined;
|
|
2010
|
+
'Id-spisoveho-planu'?: string | undefined;
|
|
2011
|
+
'Id-spisoveho-znaku'?: string | undefined;
|
|
2012
|
+
'Vec-podrobne'?: string | undefined;
|
|
2013
|
+
'Id-init-dokumentu'?: string | undefined;
|
|
2014
|
+
'Id-vyriz-dokumentu'?: string | undefined;
|
|
2015
|
+
'Vec-cj'?: string | undefined;
|
|
2016
|
+
'Znacka-cj'?: string | undefined;
|
|
2017
|
+
'Stav-cj'?: string | undefined;
|
|
2018
|
+
}, {
|
|
2019
|
+
'Id-dokumentu': string;
|
|
2020
|
+
'Id-spisu': string;
|
|
2021
|
+
'Priznak-spisu': string;
|
|
2022
|
+
'Priznak-cj': string;
|
|
2023
|
+
'Id-funkce-vlastnika': string;
|
|
2024
|
+
'Stav-distribuce': string;
|
|
2025
|
+
'Stav-dokumentu': string;
|
|
2026
|
+
'Id-agendy': string;
|
|
2027
|
+
'Id-typu-dokumentu': string;
|
|
2028
|
+
'Priznak-doruceni': string;
|
|
2029
|
+
'Priznak-evidence-ssl': string;
|
|
2030
|
+
'Misto-vzniku': string;
|
|
2031
|
+
'Datum-podani': string;
|
|
2032
|
+
'Priznak-fyz-existence': string;
|
|
2033
|
+
'Priznak-el-obrazu': string;
|
|
2034
|
+
'Datum-zmeny': string;
|
|
2035
|
+
'Id-zmenu-provedl': string;
|
|
2036
|
+
'Id-osoby-vlastnika': string;
|
|
2037
|
+
Vec?: string | undefined;
|
|
2038
|
+
Znacka?: string | undefined;
|
|
2039
|
+
'Id-odesilatele'?: string | undefined;
|
|
2040
|
+
'Id-spisoveho-planu'?: string | undefined;
|
|
2041
|
+
'Id-spisoveho-znaku'?: string | undefined;
|
|
2042
|
+
'Vec-podrobne'?: string | undefined;
|
|
2043
|
+
'Id-init-dokumentu'?: string | undefined;
|
|
2044
|
+
'Id-vyriz-dokumentu'?: string | undefined;
|
|
2045
|
+
'Vec-cj'?: string | undefined;
|
|
2046
|
+
'Znacka-cj'?: string | undefined;
|
|
2047
|
+
'Stav-cj'?: string | undefined;
|
|
2048
|
+
}>;
|
|
2049
|
+
declare const stavPrehleduSchema: z.ZodObject<{
|
|
2050
|
+
'Radek-od': z.ZodString;
|
|
2051
|
+
'Radek-do': z.ZodString;
|
|
2052
|
+
'Radku-celkem': z.ZodString;
|
|
2053
|
+
}, "strip", z.ZodTypeAny, {
|
|
2054
|
+
'Radek-od': string;
|
|
2055
|
+
'Radek-do': string;
|
|
2056
|
+
'Radku-celkem': string;
|
|
2057
|
+
}, {
|
|
2058
|
+
'Radek-od': string;
|
|
2059
|
+
'Radek-do': string;
|
|
2060
|
+
'Radku-celkem': string;
|
|
2061
|
+
}>;
|
|
2062
|
+
declare const PrehledDokumentuResponseSchema: z.ZodObject<{
|
|
2063
|
+
'Prehled-dokumentu': z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2064
|
+
'Id-dokumentu': z.ZodString;
|
|
2065
|
+
'Id-spisu': z.ZodString;
|
|
2066
|
+
'Priznak-spisu': z.ZodString;
|
|
2067
|
+
'Priznak-cj': z.ZodString;
|
|
2068
|
+
'Id-funkce-vlastnika': z.ZodString;
|
|
2069
|
+
Vec: z.ZodOptional<z.ZodString>;
|
|
2070
|
+
Znacka: z.ZodOptional<z.ZodString>;
|
|
2071
|
+
'Stav-distribuce': z.ZodString;
|
|
2072
|
+
'Stav-dokumentu': z.ZodString;
|
|
2073
|
+
'Id-agendy': z.ZodString;
|
|
2074
|
+
'Id-typu-dokumentu': z.ZodString;
|
|
2075
|
+
'Priznak-doruceni': z.ZodString;
|
|
2076
|
+
'Priznak-evidence-ssl': z.ZodString;
|
|
2077
|
+
'Priznak-fyz-existence': z.ZodString;
|
|
2078
|
+
'Priznak-el-obrazu': z.ZodString;
|
|
2079
|
+
'Misto-vzniku': z.ZodString;
|
|
2080
|
+
'Datum-podani': z.ZodString;
|
|
2081
|
+
'Datum-zmeny': z.ZodString;
|
|
2082
|
+
'Id-zmenu-provedl': z.ZodString;
|
|
2083
|
+
'Id-spisoveho-planu': z.ZodOptional<z.ZodString>;
|
|
2084
|
+
'Id-spisoveho-znaku': z.ZodOptional<z.ZodString>;
|
|
2085
|
+
'Vec-podrobne': z.ZodOptional<z.ZodString>;
|
|
2086
|
+
'Vec-cj': z.ZodOptional<z.ZodString>;
|
|
2087
|
+
'Znacka-cj': z.ZodOptional<z.ZodString>;
|
|
2088
|
+
'Stav-cj': z.ZodOptional<z.ZodString>;
|
|
2089
|
+
'Id-init-dokumentu': z.ZodOptional<z.ZodString>;
|
|
2090
|
+
'Id-vyriz-dokumentu': z.ZodOptional<z.ZodString>;
|
|
2091
|
+
'Id-odesilatele': z.ZodOptional<z.ZodString>;
|
|
2092
|
+
'Id-osoby-vlastnika': z.ZodString;
|
|
2093
|
+
}, "strip", z.ZodTypeAny, {
|
|
2094
|
+
'Id-dokumentu': string;
|
|
2095
|
+
'Id-spisu': string;
|
|
2096
|
+
'Priznak-spisu': string;
|
|
2097
|
+
'Priznak-cj': string;
|
|
2098
|
+
'Id-funkce-vlastnika': string;
|
|
2099
|
+
'Stav-distribuce': string;
|
|
2100
|
+
'Stav-dokumentu': string;
|
|
2101
|
+
'Id-agendy': string;
|
|
2102
|
+
'Id-typu-dokumentu': string;
|
|
2103
|
+
'Priznak-doruceni': string;
|
|
2104
|
+
'Priznak-evidence-ssl': string;
|
|
2105
|
+
'Misto-vzniku': string;
|
|
2106
|
+
'Datum-podani': string;
|
|
2107
|
+
'Priznak-fyz-existence': string;
|
|
2108
|
+
'Priznak-el-obrazu': string;
|
|
2109
|
+
'Datum-zmeny': string;
|
|
2110
|
+
'Id-zmenu-provedl': string;
|
|
2111
|
+
'Id-osoby-vlastnika': string;
|
|
2112
|
+
Vec?: string | undefined;
|
|
2113
|
+
Znacka?: string | undefined;
|
|
2114
|
+
'Id-odesilatele'?: string | undefined;
|
|
2115
|
+
'Id-spisoveho-planu'?: string | undefined;
|
|
2116
|
+
'Id-spisoveho-znaku'?: string | undefined;
|
|
2117
|
+
'Vec-podrobne'?: string | undefined;
|
|
2118
|
+
'Id-init-dokumentu'?: string | undefined;
|
|
2119
|
+
'Id-vyriz-dokumentu'?: string | undefined;
|
|
2120
|
+
'Vec-cj'?: string | undefined;
|
|
2121
|
+
'Znacka-cj'?: string | undefined;
|
|
2122
|
+
'Stav-cj'?: string | undefined;
|
|
2123
|
+
}, {
|
|
2124
|
+
'Id-dokumentu': string;
|
|
2125
|
+
'Id-spisu': string;
|
|
2126
|
+
'Priznak-spisu': string;
|
|
2127
|
+
'Priznak-cj': string;
|
|
2128
|
+
'Id-funkce-vlastnika': string;
|
|
2129
|
+
'Stav-distribuce': string;
|
|
2130
|
+
'Stav-dokumentu': string;
|
|
2131
|
+
'Id-agendy': string;
|
|
2132
|
+
'Id-typu-dokumentu': string;
|
|
2133
|
+
'Priznak-doruceni': string;
|
|
2134
|
+
'Priznak-evidence-ssl': string;
|
|
2135
|
+
'Misto-vzniku': string;
|
|
2136
|
+
'Datum-podani': string;
|
|
2137
|
+
'Priznak-fyz-existence': string;
|
|
2138
|
+
'Priznak-el-obrazu': string;
|
|
2139
|
+
'Datum-zmeny': string;
|
|
2140
|
+
'Id-zmenu-provedl': string;
|
|
2141
|
+
'Id-osoby-vlastnika': string;
|
|
2142
|
+
Vec?: string | undefined;
|
|
2143
|
+
Znacka?: string | undefined;
|
|
2144
|
+
'Id-odesilatele'?: string | undefined;
|
|
2145
|
+
'Id-spisoveho-planu'?: string | undefined;
|
|
2146
|
+
'Id-spisoveho-znaku'?: string | undefined;
|
|
2147
|
+
'Vec-podrobne'?: string | undefined;
|
|
2148
|
+
'Id-init-dokumentu'?: string | undefined;
|
|
2149
|
+
'Id-vyriz-dokumentu'?: string | undefined;
|
|
2150
|
+
'Vec-cj'?: string | undefined;
|
|
2151
|
+
'Znacka-cj'?: string | undefined;
|
|
2152
|
+
'Stav-cj'?: string | undefined;
|
|
2153
|
+
}>, "many">>, {
|
|
2154
|
+
'Id-dokumentu': string;
|
|
2155
|
+
'Id-spisu': string;
|
|
2156
|
+
'Priznak-spisu': string;
|
|
2157
|
+
'Priznak-cj': string;
|
|
2158
|
+
'Id-funkce-vlastnika': string;
|
|
2159
|
+
'Stav-distribuce': string;
|
|
2160
|
+
'Stav-dokumentu': string;
|
|
2161
|
+
'Id-agendy': string;
|
|
2162
|
+
'Id-typu-dokumentu': string;
|
|
2163
|
+
'Priznak-doruceni': string;
|
|
2164
|
+
'Priznak-evidence-ssl': string;
|
|
2165
|
+
'Misto-vzniku': string;
|
|
2166
|
+
'Datum-podani': string;
|
|
2167
|
+
'Priznak-fyz-existence': string;
|
|
2168
|
+
'Priznak-el-obrazu': string;
|
|
2169
|
+
'Datum-zmeny': string;
|
|
2170
|
+
'Id-zmenu-provedl': string;
|
|
2171
|
+
'Id-osoby-vlastnika': string;
|
|
2172
|
+
Vec?: string | undefined;
|
|
2173
|
+
Znacka?: string | undefined;
|
|
2174
|
+
'Id-odesilatele'?: string | undefined;
|
|
2175
|
+
'Id-spisoveho-planu'?: string | undefined;
|
|
2176
|
+
'Id-spisoveho-znaku'?: string | undefined;
|
|
2177
|
+
'Vec-podrobne'?: string | undefined;
|
|
2178
|
+
'Id-init-dokumentu'?: string | undefined;
|
|
2179
|
+
'Id-vyriz-dokumentu'?: string | undefined;
|
|
2180
|
+
'Vec-cj'?: string | undefined;
|
|
2181
|
+
'Znacka-cj'?: string | undefined;
|
|
2182
|
+
'Stav-cj'?: string | undefined;
|
|
2183
|
+
}[], unknown>;
|
|
2184
|
+
'Stav-prehledu': z.ZodObject<{
|
|
2185
|
+
'Radek-od': z.ZodString;
|
|
2186
|
+
'Radek-do': z.ZodString;
|
|
2187
|
+
'Radku-celkem': z.ZodString;
|
|
2188
|
+
}, "strip", z.ZodTypeAny, {
|
|
2189
|
+
'Radek-od': string;
|
|
2190
|
+
'Radek-do': string;
|
|
2191
|
+
'Radku-celkem': string;
|
|
2192
|
+
}, {
|
|
2193
|
+
'Radek-od': string;
|
|
2194
|
+
'Radek-do': string;
|
|
2195
|
+
'Radku-celkem': string;
|
|
2196
|
+
}>;
|
|
2197
|
+
}, "strip", z.ZodTypeAny, {
|
|
2198
|
+
'Prehled-dokumentu': {
|
|
2199
|
+
'Id-dokumentu': string;
|
|
2200
|
+
'Id-spisu': string;
|
|
2201
|
+
'Priznak-spisu': string;
|
|
2202
|
+
'Priznak-cj': string;
|
|
2203
|
+
'Id-funkce-vlastnika': string;
|
|
2204
|
+
'Stav-distribuce': string;
|
|
2205
|
+
'Stav-dokumentu': string;
|
|
2206
|
+
'Id-agendy': string;
|
|
2207
|
+
'Id-typu-dokumentu': string;
|
|
2208
|
+
'Priznak-doruceni': string;
|
|
2209
|
+
'Priznak-evidence-ssl': string;
|
|
2210
|
+
'Misto-vzniku': string;
|
|
2211
|
+
'Datum-podani': string;
|
|
2212
|
+
'Priznak-fyz-existence': string;
|
|
2213
|
+
'Priznak-el-obrazu': string;
|
|
2214
|
+
'Datum-zmeny': string;
|
|
2215
|
+
'Id-zmenu-provedl': string;
|
|
2216
|
+
'Id-osoby-vlastnika': string;
|
|
2217
|
+
Vec?: string | undefined;
|
|
2218
|
+
Znacka?: string | undefined;
|
|
2219
|
+
'Id-odesilatele'?: string | undefined;
|
|
2220
|
+
'Id-spisoveho-planu'?: string | undefined;
|
|
2221
|
+
'Id-spisoveho-znaku'?: string | undefined;
|
|
2222
|
+
'Vec-podrobne'?: string | undefined;
|
|
2223
|
+
'Id-init-dokumentu'?: string | undefined;
|
|
2224
|
+
'Id-vyriz-dokumentu'?: string | undefined;
|
|
2225
|
+
'Vec-cj'?: string | undefined;
|
|
2226
|
+
'Znacka-cj'?: string | undefined;
|
|
2227
|
+
'Stav-cj'?: string | undefined;
|
|
2228
|
+
}[];
|
|
2229
|
+
'Stav-prehledu': {
|
|
2230
|
+
'Radek-od': string;
|
|
2231
|
+
'Radek-do': string;
|
|
2232
|
+
'Radku-celkem': string;
|
|
2233
|
+
};
|
|
2234
|
+
}, {
|
|
2235
|
+
'Stav-prehledu': {
|
|
2236
|
+
'Radek-od': string;
|
|
2237
|
+
'Radek-do': string;
|
|
2238
|
+
'Radku-celkem': string;
|
|
2239
|
+
};
|
|
2240
|
+
'Prehled-dokumentu'?: unknown;
|
|
2241
|
+
}>;
|
|
2242
|
+
type SslPrehledDokumentuPrehledDokumentuItem = z.infer<typeof prehledDokumentuSchema>;
|
|
2243
|
+
type SslPrehledDokumentuStavPrehledu = z.infer<typeof stavPrehleduSchema>;
|
|
2244
|
+
type SslPrehledDokumentuResponse = z.infer<typeof PrehledDokumentuResponseSchema>;
|
|
2245
|
+
declare function prehledDokumentu(this: Ginis, requestPrehledDokumentu: SslPrehledDokumentuRequest, requestRizeniPrehledu: SslPrehledDokumentuRequestRizeniPrehledu): Promise<SslPrehledDokumentuResponse>;
|
|
2246
|
+
|
|
1950
2247
|
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"];
|
|
1951
2248
|
/**
|
|
1952
2249
|
* File can be provided according to the documentation as base64 encoded string
|
|
@@ -2006,10 +2303,44 @@ type SslPridatSouborResponse = z.infer<typeof pridatSouborResponseSchema>;
|
|
|
2006
2303
|
declare function pridatSoubor(this: Ginis, bodyObj: SslPridatSouborRequest): Promise<SslPridatSouborResponse>;
|
|
2007
2304
|
declare function pridatSouborMtom(this: Ginis, bodyObj: SslPridatSouborRequest): Promise<SslPridatSouborResponse>;
|
|
2008
2305
|
|
|
2306
|
+
declare const prideleniRequestProperties: string[];
|
|
2307
|
+
type SslPrideleniRequest = {
|
|
2308
|
+
[K in (typeof prideleniRequestProperties)[number] as K]?: string;
|
|
2309
|
+
};
|
|
2310
|
+
declare const prideleniSchema: z.ZodObject<{
|
|
2311
|
+
'Datum-zmeny': z.ZodString;
|
|
2312
|
+
}, "strip", z.ZodTypeAny, {
|
|
2313
|
+
'Datum-zmeny': string;
|
|
2314
|
+
}, {
|
|
2315
|
+
'Datum-zmeny': string;
|
|
2316
|
+
}>;
|
|
2317
|
+
declare const PrideleniResponseSchema: z.ZodObject<{
|
|
2318
|
+
Prideleni: z.ZodObject<{
|
|
2319
|
+
'Datum-zmeny': z.ZodString;
|
|
2320
|
+
}, "strip", z.ZodTypeAny, {
|
|
2321
|
+
'Datum-zmeny': string;
|
|
2322
|
+
}, {
|
|
2323
|
+
'Datum-zmeny': string;
|
|
2324
|
+
}>;
|
|
2325
|
+
}, "strip", z.ZodTypeAny, {
|
|
2326
|
+
Prideleni: {
|
|
2327
|
+
'Datum-zmeny': string;
|
|
2328
|
+
};
|
|
2329
|
+
}, {
|
|
2330
|
+
Prideleni: {
|
|
2331
|
+
'Datum-zmeny': string;
|
|
2332
|
+
};
|
|
2333
|
+
}>;
|
|
2334
|
+
type SslPrideleniPrideleni = z.infer<typeof prideleniSchema>;
|
|
2335
|
+
type SslPrideleniResponse = z.infer<typeof PrideleniResponseSchema>;
|
|
2336
|
+
declare function prideleni(this: Ginis, bodyObj: SslPrideleniRequest): Promise<SslPrideleniResponse>;
|
|
2337
|
+
|
|
2009
2338
|
declare const _default$1: {
|
|
2010
2339
|
detailDokumentu: typeof detailDokumentu$1;
|
|
2340
|
+
prehledDokumentu: typeof prehledDokumentu;
|
|
2011
2341
|
pridatSoubor: typeof pridatSoubor;
|
|
2012
2342
|
pridatSouborMtom: typeof pridatSouborMtom;
|
|
2343
|
+
prideleni: typeof prideleni;
|
|
2013
2344
|
};
|
|
2014
2345
|
|
|
2015
2346
|
declare const detailDokumentuRequestProperties: readonly ["Vratit-info", "Id-zaznamu"];
|
|
@@ -3369,4 +3700,4 @@ declare class GinisError extends Error {
|
|
|
3369
3700
|
constructor(message: string, axiosError?: AxiosError);
|
|
3370
3701
|
}
|
|
3371
3702
|
|
|
3372
|
-
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 SslPridatSouborPridatSoubor, type SslPridatSouborRequest, type SslPridatSouborResponse, 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 };
|
|
3703
|
+
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 };
|
package/dist/index.js
CHANGED
|
@@ -121,6 +121,9 @@ function createXmlRequestConfig(requestName2, requestNamespace2) {
|
|
|
121
121
|
}
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
|
+
function generateRequestNode(paramOrder, paramsBody) {
|
|
125
|
+
return `<${paramOrder.name}>${paramOrder.params.filter((e) => paramsBody[e]).map((e) => `<${e}>${paramsBody[e]}</${e}>`).join("")}</${paramOrder.name}>`;
|
|
126
|
+
}
|
|
124
127
|
function createXmlRequestBody(config, requestInfo) {
|
|
125
128
|
return `<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
|
|
126
129
|
<s:Header>
|
|
@@ -135,9 +138,7 @@ function createXmlRequestBody(config, requestInfo) {
|
|
|
135
138
|
<${requestInfo.name} xmlns="${requestInfo.namespace}">
|
|
136
139
|
<requestXml>
|
|
137
140
|
<Xrg xmlns="${requestInfo.xrgNamespace}">
|
|
138
|
-
|
|
139
|
-
${requestInfo.paramOrder.filter((e) => requestInfo.paramsBody[e]).map((e) => `<${e}>${requestInfo.paramsBody[e]}</${e}>`).join("")}
|
|
140
|
-
</${requestInfo.name}>
|
|
141
|
+
${requestInfo.paramOrders.map((e, i) => generateRequestNode(e, requestInfo.paramsBodies.at(i))).join("")}
|
|
141
142
|
</Xrg>
|
|
142
143
|
</requestXml>
|
|
143
144
|
</${requestInfo.name}>
|
|
@@ -219,6 +220,12 @@ Response: ${responseString}`
|
|
|
219
220
|
|
|
220
221
|
// src/api/gin/Detail-funkcniho-mista.ts
|
|
221
222
|
var detailFunkcnihoMistaRequestProperties = ["Id-funkce"];
|
|
223
|
+
var detailFunkcnihoMistaParamOrders = [
|
|
224
|
+
{
|
|
225
|
+
name: "Detail-funkcniho-mista",
|
|
226
|
+
params: detailFunkcnihoMistaRequestProperties
|
|
227
|
+
}
|
|
228
|
+
];
|
|
222
229
|
var detailFunkcnihoMistaSchema = import_zod.z.object({
|
|
223
230
|
"Id-funkce": import_zod.z.string(),
|
|
224
231
|
Aktivita: import_zod.z.string(),
|
|
@@ -260,8 +267,8 @@ async function detailFunkcnihoMista(bodyObj) {
|
|
|
260
267
|
name: requestName2,
|
|
261
268
|
namespace: requestNamespace2,
|
|
262
269
|
xrgNamespace: "http://www.gordic.cz/xrg/gin/detail-funkcniho-mista/request/v_1.0.0.0",
|
|
263
|
-
|
|
264
|
-
|
|
270
|
+
paramsBodies: [bodyObj],
|
|
271
|
+
paramOrders: detailFunkcnihoMistaParamOrders
|
|
265
272
|
}),
|
|
266
273
|
this.config.debug
|
|
267
274
|
);
|
|
@@ -271,6 +278,12 @@ async function detailFunkcnihoMista(bodyObj) {
|
|
|
271
278
|
// src/api/gin/Detail-referenta.ts
|
|
272
279
|
var import_zod2 = require("zod");
|
|
273
280
|
var detailReferentaRequestProperties = ["Id-osoby"];
|
|
281
|
+
var detailReferentaParamOrders = [
|
|
282
|
+
{
|
|
283
|
+
name: "Detail-referenta",
|
|
284
|
+
params: detailReferentaRequestProperties
|
|
285
|
+
}
|
|
286
|
+
];
|
|
274
287
|
var detailReferentaSchema = import_zod2.z.object({
|
|
275
288
|
"Id-osoby": import_zod2.z.string(),
|
|
276
289
|
Aktivita: import_zod2.z.string(),
|
|
@@ -322,8 +335,8 @@ async function detailReferenta(bodyObj) {
|
|
|
322
335
|
name: requestName2,
|
|
323
336
|
namespace: requestNamespace2,
|
|
324
337
|
xrgNamespace: "http://www.gordic.cz/xrg/gin/detail-referenta/request/v_1.0.0.0",
|
|
325
|
-
|
|
326
|
-
|
|
338
|
+
paramsBodies: [bodyObj],
|
|
339
|
+
paramOrders: detailReferentaParamOrders
|
|
327
340
|
}),
|
|
328
341
|
this.config.debug
|
|
329
342
|
);
|
|
@@ -356,6 +369,12 @@ var detailElPodaniRequestProperties = [
|
|
|
356
369
|
"Id-eu",
|
|
357
370
|
"Zaradit-navazane"
|
|
358
371
|
];
|
|
372
|
+
var detailElPodaniParamOrders = [
|
|
373
|
+
{
|
|
374
|
+
name: "Detail-el-podani",
|
|
375
|
+
params: detailElPodaniRequestProperties
|
|
376
|
+
}
|
|
377
|
+
];
|
|
359
378
|
var detailElPodaniSchema = import_zod4.z.object({
|
|
360
379
|
"Datum-prijeti": import_zod4.z.string(),
|
|
361
380
|
"Stav-zpracovani": import_zod4.z.string(),
|
|
@@ -391,8 +410,8 @@ async function detailElPodani(bodyObj) {
|
|
|
391
410
|
name: requestName2,
|
|
392
411
|
namespace: requestNamespace2,
|
|
393
412
|
xrgNamespace: "http://www.gordic.cz/xrg/pod/detail-el-podani/request/v_1.0.0.0",
|
|
394
|
-
|
|
395
|
-
|
|
413
|
+
paramsBodies: [bodyObj],
|
|
414
|
+
paramOrders: detailElPodaniParamOrders
|
|
396
415
|
}),
|
|
397
416
|
this.config.debug
|
|
398
417
|
);
|
|
@@ -416,6 +435,12 @@ var detailDokumentuRequestProperties = [
|
|
|
416
435
|
"Vyradit-doruceni",
|
|
417
436
|
"Id-eu"
|
|
418
437
|
];
|
|
438
|
+
var detailDokumentuParamOrders = [
|
|
439
|
+
{
|
|
440
|
+
name: "Detail-dokumentu",
|
|
441
|
+
params: detailDokumentuRequestProperties
|
|
442
|
+
}
|
|
443
|
+
];
|
|
419
444
|
var wflDokumentSchema = import_zod5.z.object({
|
|
420
445
|
"Id-dokumentu": import_zod5.z.string(),
|
|
421
446
|
"Id-spisu": import_zod5.z.string(),
|
|
@@ -608,18 +633,129 @@ async function detailDokumentu(bodyObj) {
|
|
|
608
633
|
name: requestName2,
|
|
609
634
|
namespace: requestNamespace2,
|
|
610
635
|
xrgNamespace: "http://www.gordic.cz/xrg/ssl/wfl-dokument/detail-dokumentu/request/v_1.0.0.0",
|
|
611
|
-
|
|
612
|
-
|
|
636
|
+
paramsBodies: [bodyObj],
|
|
637
|
+
paramOrders: detailDokumentuParamOrders
|
|
613
638
|
}),
|
|
614
639
|
this.config.debug
|
|
615
640
|
);
|
|
616
641
|
return await extractResponseJson(response.data, requestName2, DetailDokumentuResponseSchema);
|
|
617
642
|
}
|
|
618
643
|
|
|
644
|
+
// src/api/ssl/Prehled-dokumentu.ts
|
|
645
|
+
var import_zod6 = require("zod");
|
|
646
|
+
var prehledDokumentuRequestProperties = [
|
|
647
|
+
"Id-osoby-akt",
|
|
648
|
+
"Id-funkce-akt",
|
|
649
|
+
"Id-uzlu-akt",
|
|
650
|
+
"Datum-podani-od",
|
|
651
|
+
"Datum-podani-do",
|
|
652
|
+
"Priznak-spisu",
|
|
653
|
+
"Priznak-cj",
|
|
654
|
+
"Id-agendy",
|
|
655
|
+
"Id-odesilatele",
|
|
656
|
+
"Stav-dokumentu",
|
|
657
|
+
"Id-typu-dokumentu",
|
|
658
|
+
"Datum-zmeny-od",
|
|
659
|
+
"Datum-zmeny-do",
|
|
660
|
+
"Id-spisoveho-planu",
|
|
661
|
+
"Id-spisoveho-znaku",
|
|
662
|
+
"Id-spisu",
|
|
663
|
+
"Denik",
|
|
664
|
+
"Rok",
|
|
665
|
+
"Znacka",
|
|
666
|
+
"Vec",
|
|
667
|
+
"Poradove-cislo-cj",
|
|
668
|
+
"Id-funkce-resitele",
|
|
669
|
+
"Id-funkce-schvalovatele",
|
|
670
|
+
"Datum-zmeny-epx-od",
|
|
671
|
+
"Datum-zmeny-epx-do",
|
|
672
|
+
"Id-dotceneho-esu",
|
|
673
|
+
"Id-profilu",
|
|
674
|
+
"Id-struktury",
|
|
675
|
+
"Id-vlastnosti",
|
|
676
|
+
"Hodnota-vlastnosti-raw"
|
|
677
|
+
];
|
|
678
|
+
var rizeniPrehleduRequestProperties = [
|
|
679
|
+
"Priznak-generovani",
|
|
680
|
+
"Radek-od",
|
|
681
|
+
"Radek-do",
|
|
682
|
+
"Priznak-zachovani",
|
|
683
|
+
"Rozsah-prehledu"
|
|
684
|
+
];
|
|
685
|
+
var prehledDokumentuParamOrders = [
|
|
686
|
+
{
|
|
687
|
+
name: "Prehled-dokumentu",
|
|
688
|
+
params: prehledDokumentuRequestProperties
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
name: "Rizeni-prehledu",
|
|
692
|
+
params: rizeniPrehleduRequestProperties
|
|
693
|
+
}
|
|
694
|
+
];
|
|
695
|
+
var prehledDokumentuSchema = import_zod6.z.object({
|
|
696
|
+
"Id-dokumentu": import_zod6.z.string(),
|
|
697
|
+
"Id-spisu": import_zod6.z.string(),
|
|
698
|
+
"Priznak-spisu": import_zod6.z.string(),
|
|
699
|
+
"Priznak-cj": import_zod6.z.string(),
|
|
700
|
+
"Id-funkce-vlastnika": import_zod6.z.string(),
|
|
701
|
+
Vec: import_zod6.z.string().optional(),
|
|
702
|
+
Znacka: import_zod6.z.string().optional(),
|
|
703
|
+
"Stav-distribuce": import_zod6.z.string(),
|
|
704
|
+
"Stav-dokumentu": import_zod6.z.string(),
|
|
705
|
+
"Id-agendy": import_zod6.z.string(),
|
|
706
|
+
"Id-typu-dokumentu": import_zod6.z.string(),
|
|
707
|
+
"Priznak-doruceni": import_zod6.z.string(),
|
|
708
|
+
"Priznak-evidence-ssl": import_zod6.z.string(),
|
|
709
|
+
"Priznak-fyz-existence": import_zod6.z.string(),
|
|
710
|
+
"Priznak-el-obrazu": import_zod6.z.string(),
|
|
711
|
+
"Misto-vzniku": import_zod6.z.string(),
|
|
712
|
+
"Datum-podani": import_zod6.z.string(),
|
|
713
|
+
"Datum-zmeny": import_zod6.z.string(),
|
|
714
|
+
"Id-zmenu-provedl": import_zod6.z.string(),
|
|
715
|
+
"Id-spisoveho-planu": import_zod6.z.string().optional(),
|
|
716
|
+
"Id-spisoveho-znaku": import_zod6.z.string().optional(),
|
|
717
|
+
"Vec-podrobne": import_zod6.z.string().optional(),
|
|
718
|
+
"Vec-cj": import_zod6.z.string().optional(),
|
|
719
|
+
"Znacka-cj": import_zod6.z.string().optional(),
|
|
720
|
+
"Stav-cj": import_zod6.z.string().optional(),
|
|
721
|
+
"Id-init-dokumentu": import_zod6.z.string().optional(),
|
|
722
|
+
"Id-vyriz-dokumentu": import_zod6.z.string().optional(),
|
|
723
|
+
"Id-odesilatele": import_zod6.z.string().optional(),
|
|
724
|
+
"Id-osoby-vlastnika": import_zod6.z.string()
|
|
725
|
+
});
|
|
726
|
+
var stavPrehleduSchema = import_zod6.z.object({
|
|
727
|
+
"Radek-od": import_zod6.z.string(),
|
|
728
|
+
"Radek-do": import_zod6.z.string(),
|
|
729
|
+
"Radku-celkem": import_zod6.z.string()
|
|
730
|
+
});
|
|
731
|
+
var PrehledDokumentuResponseSchema = import_zod6.z.object({
|
|
732
|
+
"Prehled-dokumentu": coercedArray(prehledDokumentuSchema),
|
|
733
|
+
"Stav-prehledu": stavPrehleduSchema
|
|
734
|
+
});
|
|
735
|
+
async function prehledDokumentu(requestPrehledDokumentu, requestRizeniPrehledu) {
|
|
736
|
+
const url = this.config.urls.ssl;
|
|
737
|
+
if (!url) throw new GinisError("GINIS SDK Error: Missing SSL url in GINIS config");
|
|
738
|
+
const requestName2 = "Prehled-dokumentu";
|
|
739
|
+
const requestNamespace2 = "http://www.gordic.cz/svc/xrg-ssl/v_1.0.0.0";
|
|
740
|
+
const response = await makeAxiosRequest(
|
|
741
|
+
createXmlRequestConfig(requestName2, requestNamespace2),
|
|
742
|
+
url,
|
|
743
|
+
createXmlRequestBody(this.config, {
|
|
744
|
+
name: requestName2,
|
|
745
|
+
namespace: requestNamespace2,
|
|
746
|
+
xrgNamespace: "http://www.gordic.cz/xrg/ssl/wfl-dokument/prehled-dokumentu/request/v_1.0.0.0",
|
|
747
|
+
paramsBodies: [requestPrehledDokumentu, requestRizeniPrehledu],
|
|
748
|
+
paramOrders: prehledDokumentuParamOrders
|
|
749
|
+
}),
|
|
750
|
+
this.config.debug
|
|
751
|
+
);
|
|
752
|
+
return await extractResponseJson(response.data, requestName2, PrehledDokumentuResponseSchema);
|
|
753
|
+
}
|
|
754
|
+
|
|
619
755
|
// src/api/ssl/Pridat-soubor.ts
|
|
620
756
|
var import_stream2 = require("stream");
|
|
621
757
|
var import_uuid = require("uuid");
|
|
622
|
-
var
|
|
758
|
+
var import_zod7 = require("zod");
|
|
623
759
|
var pridatSouborRequestProperties = [
|
|
624
760
|
"Id-dokumentu",
|
|
625
761
|
"Id-souboru",
|
|
@@ -633,12 +769,18 @@ var pridatSouborRequestProperties = [
|
|
|
633
769
|
"Priz-archiv-verze",
|
|
634
770
|
"Id-kategorie-typu-prilohy"
|
|
635
771
|
];
|
|
636
|
-
var
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
772
|
+
var pridatSouborParamOrders = [
|
|
773
|
+
{
|
|
774
|
+
name: "Pridat-soubor",
|
|
775
|
+
params: pridatSouborRequestProperties
|
|
776
|
+
}
|
|
777
|
+
];
|
|
778
|
+
var pridatSouborSchema = import_zod7.z.object({
|
|
779
|
+
"Datum-zmeny": import_zod7.z.string(),
|
|
780
|
+
"Id-souboru": import_zod7.z.string(),
|
|
781
|
+
"Verze-souboru": import_zod7.z.string()
|
|
640
782
|
});
|
|
641
|
-
var pridatSouborResponseSchema =
|
|
783
|
+
var pridatSouborResponseSchema = import_zod7.z.object({
|
|
642
784
|
"Pridat-soubor": pridatSouborSchema
|
|
643
785
|
});
|
|
644
786
|
var requestName = "Pridat-soubor";
|
|
@@ -651,8 +793,8 @@ async function pridatSoubor(bodyObj) {
|
|
|
651
793
|
name: requestName,
|
|
652
794
|
namespace: requestNamespace,
|
|
653
795
|
xrgNamespace: requestXrgNamespace,
|
|
654
|
-
|
|
655
|
-
|
|
796
|
+
paramsBodies: [bodyObj],
|
|
797
|
+
paramOrders: pridatSouborParamOrders
|
|
656
798
|
};
|
|
657
799
|
const response = await makeAxiosRequest(
|
|
658
800
|
createXmlRequestConfig(requestName, requestNamespace),
|
|
@@ -676,8 +818,8 @@ async function pridatSouborMtom(bodyObj) {
|
|
|
676
818
|
name: requestName,
|
|
677
819
|
namespace: requestNamespace,
|
|
678
820
|
xrgNamespace: requestXrgNamespace,
|
|
679
|
-
|
|
680
|
-
|
|
821
|
+
paramsBodies: [bodyObj],
|
|
822
|
+
paramOrders: pridatSouborParamOrders
|
|
681
823
|
};
|
|
682
824
|
const requestContentId = "soap-req";
|
|
683
825
|
const fileContentId = "attachment-file";
|
|
@@ -706,51 +848,101 @@ async function pridatSouborMtom(bodyObj) {
|
|
|
706
848
|
return extractMultipartResponseJson(response.data, requestName, pridatSouborResponseSchema);
|
|
707
849
|
}
|
|
708
850
|
|
|
851
|
+
// src/api/ssl/Prideleni.ts
|
|
852
|
+
var import_zod8 = require("zod");
|
|
853
|
+
var prideleniRequestProperties = [
|
|
854
|
+
"Id-dokumentu",
|
|
855
|
+
"Id-uzlu",
|
|
856
|
+
"Id-funkce",
|
|
857
|
+
"Id-osoby",
|
|
858
|
+
"Ucel-distribuce",
|
|
859
|
+
"Prime-prideleni"
|
|
860
|
+
];
|
|
861
|
+
var prideleniParamOrders = [
|
|
862
|
+
{
|
|
863
|
+
name: "Prideleni",
|
|
864
|
+
params: prideleniRequestProperties
|
|
865
|
+
}
|
|
866
|
+
];
|
|
867
|
+
var prideleniSchema = import_zod8.z.object({
|
|
868
|
+
"Datum-zmeny": import_zod8.z.string()
|
|
869
|
+
});
|
|
870
|
+
var PrideleniResponseSchema = import_zod8.z.object({
|
|
871
|
+
Prideleni: prideleniSchema
|
|
872
|
+
});
|
|
873
|
+
async function prideleni(bodyObj) {
|
|
874
|
+
const url = this.config.urls.ssl;
|
|
875
|
+
if (!url) throw new GinisError("GINIS SDK Error: Missing SSL url in GINIS config");
|
|
876
|
+
const requestName2 = "Prideleni";
|
|
877
|
+
const requestNamespace2 = "http://www.gordic.cz/svc/xrg-ssl/v_1.0.0.0";
|
|
878
|
+
const response = await makeAxiosRequest(
|
|
879
|
+
createXmlRequestConfig(requestName2, requestNamespace2),
|
|
880
|
+
url,
|
|
881
|
+
createXmlRequestBody(this.config, {
|
|
882
|
+
name: requestName2,
|
|
883
|
+
namespace: requestNamespace2,
|
|
884
|
+
xrgNamespace: "http://www.gordic.cz/xrg/ssl/wfl-dokument/prideleni/request/v_1.0.0.0",
|
|
885
|
+
paramsBodies: [bodyObj],
|
|
886
|
+
paramOrders: prideleniParamOrders
|
|
887
|
+
}),
|
|
888
|
+
this.config.debug
|
|
889
|
+
);
|
|
890
|
+
return await extractResponseJson(response.data, requestName2, PrideleniResponseSchema);
|
|
891
|
+
}
|
|
892
|
+
|
|
709
893
|
// src/api/ssl/index.ts
|
|
710
894
|
var ssl_default = {
|
|
711
895
|
detailDokumentu,
|
|
896
|
+
prehledDokumentu,
|
|
712
897
|
pridatSoubor,
|
|
713
|
-
pridatSouborMtom
|
|
898
|
+
pridatSouborMtom,
|
|
899
|
+
prideleni
|
|
714
900
|
};
|
|
715
901
|
|
|
716
902
|
// src/api/ude/Detail-dokumentu.ts
|
|
717
|
-
var
|
|
903
|
+
var import_zod9 = require("zod");
|
|
718
904
|
var detailDokumentuRequestProperties2 = ["Vratit-info", "Id-zaznamu"];
|
|
719
|
-
var
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
905
|
+
var detailDokumentuParamOrders2 = [
|
|
906
|
+
{
|
|
907
|
+
name: "Detail-dokumentu",
|
|
908
|
+
params: detailDokumentuRequestProperties2
|
|
909
|
+
}
|
|
910
|
+
];
|
|
911
|
+
var detailDokumentuSchema = import_zod9.z.object({
|
|
912
|
+
"Id-zaznamu": import_zod9.z.string(),
|
|
913
|
+
Stav: import_zod9.z.string().optional(),
|
|
914
|
+
Kategorie: import_zod9.z.string(),
|
|
915
|
+
Nazev: import_zod9.z.string(),
|
|
916
|
+
Popis: import_zod9.z.string().optional(),
|
|
917
|
+
Poznamka: import_zod9.z.string().optional(),
|
|
726
918
|
/**
|
|
727
919
|
* date
|
|
728
920
|
*/
|
|
729
|
-
"Vyveseno-dne":
|
|
921
|
+
"Vyveseno-dne": import_zod9.z.string(),
|
|
730
922
|
/**
|
|
731
923
|
* date
|
|
732
924
|
*/
|
|
733
|
-
"Sejmuto-dne":
|
|
734
|
-
Zdroj:
|
|
735
|
-
"Id-fun-navrhl":
|
|
736
|
-
Navrhl:
|
|
737
|
-
"Id-fun-schvalil":
|
|
738
|
-
Schvalil:
|
|
739
|
-
Cj:
|
|
925
|
+
"Sejmuto-dne": import_zod9.z.string().optional(),
|
|
926
|
+
Zdroj: import_zod9.z.string(),
|
|
927
|
+
"Id-fun-navrhl": import_zod9.z.string(),
|
|
928
|
+
Navrhl: import_zod9.z.string(),
|
|
929
|
+
"Id-fun-schvalil": import_zod9.z.string(),
|
|
930
|
+
Schvalil: import_zod9.z.string(),
|
|
931
|
+
Cj: import_zod9.z.string().optional(),
|
|
740
932
|
/**
|
|
741
933
|
* Počet vyvěšených souborů.
|
|
742
934
|
* int
|
|
743
935
|
*/
|
|
744
|
-
"Pocet-souboru":
|
|
745
|
-
"Id-dokumentu":
|
|
936
|
+
"Pocet-souboru": import_zod9.z.string(),
|
|
937
|
+
"Id-dokumentu": import_zod9.z.string().optional(),
|
|
746
938
|
/**
|
|
747
939
|
* Datum a čas změny záznamu na úřední desce (změna nastala po tomto okamžiku).
|
|
748
940
|
* dateTime
|
|
749
941
|
*/
|
|
750
|
-
"Datum-zmeny":
|
|
751
|
-
"Puvod-dokumentu":
|
|
752
|
-
"Odesilatel-dokumentu":
|
|
753
|
-
"Typ-dokumentu":
|
|
942
|
+
"Datum-zmeny": import_zod9.z.string(),
|
|
943
|
+
"Puvod-dokumentu": import_zod9.z.string().optional(),
|
|
944
|
+
"Odesilatel-dokumentu": import_zod9.z.string().optional(),
|
|
945
|
+
"Typ-dokumentu": import_zod9.z.string().optional(),
|
|
754
946
|
/**
|
|
755
947
|
* Příznak, zda je elektronický obraz podepsán. Vráceno v případě, že byl záznam vyvěšen zveřejněním el. obrazu nebo příloh z GINIS dokumentu.
|
|
756
948
|
* int
|
|
@@ -760,35 +952,35 @@ var detailDokumentuSchema = import_zod7.z.object({
|
|
|
760
952
|
* 2 - Soubor je elektronicky podepsán čas. razítkem.
|
|
761
953
|
* 3 - Dokument je opatřen čas. razítkem.
|
|
762
954
|
*/
|
|
763
|
-
"El-obraz-podpis":
|
|
764
|
-
"Cj-spisu":
|
|
765
|
-
"Cislo-sml":
|
|
766
|
-
"Typ-sml":
|
|
767
|
-
"Nazev-sml":
|
|
768
|
-
"Subjekt-sml":
|
|
769
|
-
"Nazev-sub-sml":
|
|
770
|
-
"Prijmeni-sub-sml":
|
|
771
|
-
"Jmeno-sub-sml":
|
|
772
|
-
"Ico-sub-sml":
|
|
773
|
-
"Obec-sub-sml":
|
|
774
|
-
"Ulice-sub-sml":
|
|
775
|
-
"Cor-sub-sml":
|
|
776
|
-
"Cpop-sub-sml":
|
|
777
|
-
"Psc-sub-sml":
|
|
778
|
-
"Typ-sub-sml":
|
|
779
|
-
"Datum-uzavreni-sml":
|
|
780
|
-
"Odbor-sml":
|
|
781
|
-
"Celkova-castka-sml":
|
|
782
|
-
"Mena-sml":
|
|
955
|
+
"El-obraz-podpis": import_zod9.z.string().optional(),
|
|
956
|
+
"Cj-spisu": import_zod9.z.string().optional(),
|
|
957
|
+
"Cislo-sml": import_zod9.z.string().optional(),
|
|
958
|
+
"Typ-sml": import_zod9.z.string().optional(),
|
|
959
|
+
"Nazev-sml": import_zod9.z.string().optional(),
|
|
960
|
+
"Subjekt-sml": import_zod9.z.string().optional(),
|
|
961
|
+
"Nazev-sub-sml": import_zod9.z.string().optional(),
|
|
962
|
+
"Prijmeni-sub-sml": import_zod9.z.string().optional(),
|
|
963
|
+
"Jmeno-sub-sml": import_zod9.z.string().optional(),
|
|
964
|
+
"Ico-sub-sml": import_zod9.z.string().optional(),
|
|
965
|
+
"Obec-sub-sml": import_zod9.z.string().optional(),
|
|
966
|
+
"Ulice-sub-sml": import_zod9.z.string().optional(),
|
|
967
|
+
"Cor-sub-sml": import_zod9.z.string().optional(),
|
|
968
|
+
"Cpop-sub-sml": import_zod9.z.string().optional(),
|
|
969
|
+
"Psc-sub-sml": import_zod9.z.string().optional(),
|
|
970
|
+
"Typ-sub-sml": import_zod9.z.string().optional(),
|
|
971
|
+
"Datum-uzavreni-sml": import_zod9.z.string().optional(),
|
|
972
|
+
"Odbor-sml": import_zod9.z.string().optional(),
|
|
973
|
+
"Celkova-castka-sml": import_zod9.z.string().optional(),
|
|
974
|
+
"Mena-sml": import_zod9.z.string().optional()
|
|
783
975
|
});
|
|
784
|
-
var souboryDokumentuSchema =
|
|
785
|
-
"Id-souboru":
|
|
786
|
-
Nazev:
|
|
976
|
+
var souboryDokumentuSchema = import_zod9.z.object({
|
|
977
|
+
"Id-souboru": import_zod9.z.string(),
|
|
978
|
+
Nazev: import_zod9.z.string(),
|
|
787
979
|
/**
|
|
788
980
|
* Velikost souboru včetně jednotky (např. KB).
|
|
789
981
|
* string
|
|
790
982
|
*/
|
|
791
|
-
Velikost:
|
|
983
|
+
Velikost: import_zod9.z.string().optional(),
|
|
792
984
|
/**
|
|
793
985
|
* Příznak, zda se jedná o el. obraz GINIS dokumentu. Informace je k dispozici u záznamů vyvěšených přes GINIS v. 364 a vyšší.
|
|
794
986
|
* short
|
|
@@ -796,11 +988,11 @@ var souboryDokumentuSchema = import_zod7.z.object({
|
|
|
796
988
|
* 0 - Soubor není el. obraz GINIS dokumentu (soubor je příloha, nebo vložen přes modul UDA01).
|
|
797
989
|
* 1 - Soubor je el. obraz GINIS dokumentu.
|
|
798
990
|
*/
|
|
799
|
-
"Priznak-el-obr":
|
|
991
|
+
"Priznak-el-obr": import_zod9.z.string().optional(),
|
|
800
992
|
/**
|
|
801
993
|
* Poznámka k souboru.
|
|
802
994
|
*/
|
|
803
|
-
Poznamka:
|
|
995
|
+
Poznamka: import_zod9.z.string().optional(),
|
|
804
996
|
/**
|
|
805
997
|
* Příznak, zda je soubor el. podepsán. Vráceno v případě, že byl záznam vyvěšen zveřejněním el. obrazu nebo příloh z GINIS dokumentu.
|
|
806
998
|
* short
|
|
@@ -810,20 +1002,20 @@ var souboryDokumentuSchema = import_zod7.z.object({
|
|
|
810
1002
|
* 2 - Soubor je elektronicky podepsán čas. razítkem.
|
|
811
1003
|
* 3 - Dokument je opatřen čas. razítkem.
|
|
812
1004
|
*/
|
|
813
|
-
"Priznak-podpis":
|
|
1005
|
+
"Priznak-podpis": import_zod9.z.string().optional()
|
|
814
1006
|
});
|
|
815
|
-
var protistranySmlSchema =
|
|
816
|
-
"Typ-protistrany":
|
|
817
|
-
Subjekt:
|
|
818
|
-
"Nazev-sub":
|
|
819
|
-
"Prijmeni-sub":
|
|
820
|
-
"Jmeno-sub":
|
|
821
|
-
"Ico-sub":
|
|
822
|
-
"Obec-sub":
|
|
823
|
-
"Ulice-sub":
|
|
824
|
-
"Cor-sub":
|
|
825
|
-
"Cpop-sub":
|
|
826
|
-
"Psc-sub":
|
|
1007
|
+
var protistranySmlSchema = import_zod9.z.object({
|
|
1008
|
+
"Typ-protistrany": import_zod9.z.string().optional(),
|
|
1009
|
+
Subjekt: import_zod9.z.string().optional(),
|
|
1010
|
+
"Nazev-sub": import_zod9.z.string().optional(),
|
|
1011
|
+
"Prijmeni-sub": import_zod9.z.string().optional(),
|
|
1012
|
+
"Jmeno-sub": import_zod9.z.string().optional(),
|
|
1013
|
+
"Ico-sub": import_zod9.z.string().optional(),
|
|
1014
|
+
"Obec-sub": import_zod9.z.string().optional(),
|
|
1015
|
+
"Ulice-sub": import_zod9.z.string().optional(),
|
|
1016
|
+
"Cor-sub": import_zod9.z.string().optional(),
|
|
1017
|
+
"Cpop-sub": import_zod9.z.string().optional(),
|
|
1018
|
+
"Psc-sub": import_zod9.z.string().optional(),
|
|
827
1019
|
/**
|
|
828
1020
|
* Typ subjektu smlouvy.
|
|
829
1021
|
*
|
|
@@ -832,9 +1024,9 @@ var protistranySmlSchema = import_zod7.z.object({
|
|
|
832
1024
|
* fyz-osoba - Fyzická osoba
|
|
833
1025
|
* fyz-osoba-osvc - Fyzická osoba OSVČ
|
|
834
1026
|
*/
|
|
835
|
-
"Typ-sub":
|
|
1027
|
+
"Typ-sub": import_zod9.z.string().optional()
|
|
836
1028
|
});
|
|
837
|
-
var DetailDokumentuResponseSchema2 =
|
|
1029
|
+
var DetailDokumentuResponseSchema2 = import_zod9.z.object({
|
|
838
1030
|
"Detail-dokumentu": detailDokumentuSchema.optional(),
|
|
839
1031
|
"Soubory-dokumentu": coercedArray(souboryDokumentuSchema),
|
|
840
1032
|
"Protistrany-sml": coercedArray(protistranySmlSchema)
|
|
@@ -851,8 +1043,8 @@ async function detailDokumentu2(bodyObj) {
|
|
|
851
1043
|
name: requestName2,
|
|
852
1044
|
namespace: requestNamespace2,
|
|
853
1045
|
xrgNamespace: "http://www.gordic.cz/xrg/ude/detail-dokumentu/request/v_1.0.0.0",
|
|
854
|
-
|
|
855
|
-
|
|
1046
|
+
paramsBodies: [bodyObj],
|
|
1047
|
+
paramOrders: detailDokumentuParamOrders2
|
|
856
1048
|
}),
|
|
857
1049
|
this.config.debug
|
|
858
1050
|
);
|
|
@@ -860,22 +1052,28 @@ async function detailDokumentu2(bodyObj) {
|
|
|
860
1052
|
}
|
|
861
1053
|
|
|
862
1054
|
// src/api/ude/Nacist-soubor.ts
|
|
863
|
-
var
|
|
1055
|
+
var import_zod10 = require("zod");
|
|
864
1056
|
var nacistSouborRequestProperties = ["Id-souboru"];
|
|
865
|
-
var
|
|
1057
|
+
var nacistSouborParamOrders = [
|
|
1058
|
+
{
|
|
1059
|
+
name: "Nacist-soubor",
|
|
1060
|
+
params: nacistSouborRequestProperties
|
|
1061
|
+
}
|
|
1062
|
+
];
|
|
1063
|
+
var nacistSouborSchema = import_zod10.z.object({
|
|
866
1064
|
/**
|
|
867
1065
|
* Jméno el. souboru.
|
|
868
1066
|
* string
|
|
869
1067
|
* Max. délka: 254, Min. délka: 1,
|
|
870
1068
|
*/
|
|
871
|
-
"Jmeno-souboru":
|
|
1069
|
+
"Jmeno-souboru": import_zod10.z.string(),
|
|
872
1070
|
/**
|
|
873
1071
|
* Binární data souboru v base64 formátu.
|
|
874
1072
|
* base64Binary
|
|
875
1073
|
*/
|
|
876
|
-
Data:
|
|
1074
|
+
Data: import_zod10.z.string()
|
|
877
1075
|
});
|
|
878
|
-
var nacistSouborResponseSchema =
|
|
1076
|
+
var nacistSouborResponseSchema = import_zod10.z.object({
|
|
879
1077
|
/**
|
|
880
1078
|
* Nacist-soubor - vyžadován: Ne , max. výskyt: 1
|
|
881
1079
|
*/
|
|
@@ -893,8 +1091,8 @@ async function nacistSoubor(bodyObj) {
|
|
|
893
1091
|
name: requestName2,
|
|
894
1092
|
namespace: requestNamespace2,
|
|
895
1093
|
xrgNamespace: "http://www.gordic.cz/xrg/ude/nacist-soubor/request/v_1.0.0.0",
|
|
896
|
-
|
|
897
|
-
|
|
1094
|
+
paramsBodies: [bodyObj],
|
|
1095
|
+
paramOrders: nacistSouborParamOrders
|
|
898
1096
|
}),
|
|
899
1097
|
this.config.debug
|
|
900
1098
|
);
|
|
@@ -902,7 +1100,7 @@ async function nacistSoubor(bodyObj) {
|
|
|
902
1100
|
}
|
|
903
1101
|
|
|
904
1102
|
// src/api/ude/Seznam-dokumentu.ts
|
|
905
|
-
var
|
|
1103
|
+
var import_zod11 = require("zod");
|
|
906
1104
|
var seznamDokumentuRequestProperties = [
|
|
907
1105
|
/**
|
|
908
1106
|
* 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.
|
|
@@ -988,102 +1186,108 @@ var seznamDokumentuRequestProperties = [
|
|
|
988
1186
|
"Celkova-castka-do-sml",
|
|
989
1187
|
"Mena-sml"
|
|
990
1188
|
];
|
|
991
|
-
var
|
|
992
|
-
|
|
1189
|
+
var seznamDokumentuParamOrders = [
|
|
1190
|
+
{
|
|
1191
|
+
name: "Seznam-dokumentu",
|
|
1192
|
+
params: seznamDokumentuRequestProperties
|
|
1193
|
+
}
|
|
1194
|
+
];
|
|
1195
|
+
var seznamDokumentuSchema = import_zod11.z.object({
|
|
1196
|
+
"Id-zaznamu": import_zod11.z.string(),
|
|
993
1197
|
/**
|
|
994
1198
|
* pripraveno - Připraveno – schváleno k vyvěšení, ale ještě nenastalo datum vyvěšení. Záznamy s touto hodnotou se na výstupu mohou objevit pouze u desek, které vrací v metodě seznam-desek element Stav-pripraveno = 'true'.
|
|
995
1199
|
* vyveseno - Vyvěšeno – schváleno k vyvěšení + nastalo datum vyvěšení (a ještě nenastalo datum sejmutí)
|
|
996
1200
|
* sejmuto - Sejmuto – záznam byl na desce, ale už nastalo datum sejmutí a nebo byl ručně sejmut (a do okamžiku ručního sejmutí se posunulo datum sejmutí)
|
|
997
1201
|
*/
|
|
998
|
-
Stav:
|
|
1202
|
+
Stav: import_zod11.z.string().optional(),
|
|
999
1203
|
/**
|
|
1000
1204
|
* Název kategorie.
|
|
1001
1205
|
*/
|
|
1002
|
-
Kategorie:
|
|
1003
|
-
Nazev:
|
|
1004
|
-
Popis:
|
|
1206
|
+
Kategorie: import_zod11.z.string(),
|
|
1207
|
+
Nazev: import_zod11.z.string(),
|
|
1208
|
+
Popis: import_zod11.z.string().optional(),
|
|
1005
1209
|
/**
|
|
1006
1210
|
* ISO-string date
|
|
1007
1211
|
*/
|
|
1008
|
-
"Vyveseno-dne":
|
|
1212
|
+
"Vyveseno-dne": import_zod11.z.string(),
|
|
1009
1213
|
/**
|
|
1010
1214
|
* ISO-string date
|
|
1011
1215
|
*/
|
|
1012
|
-
"Sejmuto-dne":
|
|
1013
|
-
Zdroj:
|
|
1216
|
+
"Sejmuto-dne": import_zod11.z.string().optional(),
|
|
1217
|
+
Zdroj: import_zod11.z.string(),
|
|
1014
1218
|
/**
|
|
1015
1219
|
* Identifikace GINIS funkce, která navrhla dokument k vyvěšení.
|
|
1016
1220
|
*/
|
|
1017
|
-
"Id-fun-navrhl":
|
|
1221
|
+
"Id-fun-navrhl": import_zod11.z.string(),
|
|
1018
1222
|
/**
|
|
1019
1223
|
* Osoba, která navrhla dokument k vyvěšení.
|
|
1020
1224
|
*/
|
|
1021
|
-
Navrhl:
|
|
1225
|
+
Navrhl: import_zod11.z.string(),
|
|
1022
1226
|
/**
|
|
1023
1227
|
* Identifikace GINIS funkce, která dokument schválila resp. vyvěsila.
|
|
1024
1228
|
*/
|
|
1025
|
-
"Id-fun-schvalil":
|
|
1229
|
+
"Id-fun-schvalil": import_zod11.z.string(),
|
|
1026
1230
|
/**
|
|
1027
1231
|
* Osoba, která dokument schválila resp. vyvěsila.
|
|
1028
1232
|
*/
|
|
1029
|
-
Schvalil:
|
|
1233
|
+
Schvalil: import_zod11.z.string(),
|
|
1030
1234
|
/**
|
|
1031
1235
|
* Číslo jednací resp. značka.
|
|
1032
1236
|
*/
|
|
1033
|
-
Cj:
|
|
1237
|
+
Cj: import_zod11.z.string().optional(),
|
|
1034
1238
|
/**
|
|
1035
1239
|
* Počet vyvěšených souborů.
|
|
1036
1240
|
* int
|
|
1037
1241
|
*/
|
|
1038
|
-
"Pocet-souboru":
|
|
1242
|
+
"Pocet-souboru": import_zod11.z.string(),
|
|
1039
1243
|
/**
|
|
1040
1244
|
* Identifikace GINIS dokumentu. Vráceno v případě, že byl záznam vyvěšen zveřejněním el. obrazu nebo příloh z GINIS dokumentu.
|
|
1041
1245
|
*/
|
|
1042
|
-
"Id-dokumentu":
|
|
1246
|
+
"Id-dokumentu": import_zod11.z.string().optional(),
|
|
1043
1247
|
/**
|
|
1044
1248
|
* Celkový počet vyvěšených dokumentů/záznamů.
|
|
1045
1249
|
* int
|
|
1046
1250
|
*/
|
|
1047
|
-
"Pocet-vyveseno":
|
|
1251
|
+
"Pocet-vyveseno": import_zod11.z.string(),
|
|
1048
1252
|
/**
|
|
1049
1253
|
* Celkový počet dokumentů/záznamů v archivu (sejmutých).
|
|
1050
1254
|
* int
|
|
1051
1255
|
*/
|
|
1052
|
-
"Pocet-archiv":
|
|
1256
|
+
"Pocet-archiv": import_zod11.z.string(),
|
|
1053
1257
|
/**
|
|
1054
1258
|
* Datum a čas změny záznamu na úřední desce.
|
|
1055
1259
|
* dateTime
|
|
1056
1260
|
*/
|
|
1057
|
-
"Datum-zmeny":
|
|
1058
|
-
"Puvod-dokumentu":
|
|
1059
|
-
"Odesilatel-dokumentu":
|
|
1060
|
-
"Typ-dokumentu":
|
|
1061
|
-
"El-obraz-podpis":
|
|
1062
|
-
"Cj-spisu":
|
|
1063
|
-
"Cislo-sml":
|
|
1064
|
-
"Typ-sml":
|
|
1065
|
-
"Nazev-sml":
|
|
1066
|
-
"Subjekt-sml":
|
|
1067
|
-
"Nazev-sub-sml":
|
|
1068
|
-
"Prijmeni-sub-sml":
|
|
1069
|
-
"Jmeno-sub-sml":
|
|
1070
|
-
"Ico-sub-sml":
|
|
1071
|
-
"Obec-sub-sml":
|
|
1072
|
-
"Ulice-sub-sml":
|
|
1073
|
-
"Cor-sub-sml":
|
|
1074
|
-
"Cpop-sub-sml":
|
|
1075
|
-
"Psc-sub-sml":
|
|
1076
|
-
"Typ-sub-sml":
|
|
1077
|
-
"Datum-uzavreni-sml":
|
|
1078
|
-
"Odbor-sml":
|
|
1079
|
-
"Celkova-castka-sml":
|
|
1080
|
-
"Mena-sml":
|
|
1261
|
+
"Datum-zmeny": import_zod11.z.string(),
|
|
1262
|
+
"Puvod-dokumentu": import_zod11.z.string().optional(),
|
|
1263
|
+
"Odesilatel-dokumentu": import_zod11.z.string().optional(),
|
|
1264
|
+
"Typ-dokumentu": import_zod11.z.string().optional(),
|
|
1265
|
+
"El-obraz-podpis": import_zod11.z.string().optional(),
|
|
1266
|
+
"Cj-spisu": import_zod11.z.string().optional(),
|
|
1267
|
+
"Cislo-sml": import_zod11.z.string().optional(),
|
|
1268
|
+
"Typ-sml": import_zod11.z.string().optional(),
|
|
1269
|
+
"Nazev-sml": import_zod11.z.string().optional(),
|
|
1270
|
+
"Subjekt-sml": import_zod11.z.string().optional(),
|
|
1271
|
+
"Nazev-sub-sml": import_zod11.z.string().optional(),
|
|
1272
|
+
"Prijmeni-sub-sml": import_zod11.z.string().optional(),
|
|
1273
|
+
"Jmeno-sub-sml": import_zod11.z.string().optional(),
|
|
1274
|
+
"Ico-sub-sml": import_zod11.z.string().optional(),
|
|
1275
|
+
"Obec-sub-sml": import_zod11.z.string().optional(),
|
|
1276
|
+
"Ulice-sub-sml": import_zod11.z.string().optional(),
|
|
1277
|
+
"Cor-sub-sml": import_zod11.z.string().optional(),
|
|
1278
|
+
"Cpop-sub-sml": import_zod11.z.string().optional(),
|
|
1279
|
+
"Psc-sub-sml": import_zod11.z.string().optional(),
|
|
1280
|
+
"Typ-sub-sml": import_zod11.z.string().optional(),
|
|
1281
|
+
"Datum-uzavreni-sml": import_zod11.z.string().optional(),
|
|
1282
|
+
"Odbor-sml": import_zod11.z.string().optional(),
|
|
1283
|
+
"Celkova-castka-sml": import_zod11.z.string().optional(),
|
|
1284
|
+
"Mena-sml": import_zod11.z.string().optional()
|
|
1081
1285
|
});
|
|
1082
|
-
var dokumentySchema =
|
|
1083
|
-
"Id-zaznamu":
|
|
1084
|
-
"Datum-zmeny":
|
|
1286
|
+
var dokumentySchema = import_zod11.z.object({
|
|
1287
|
+
"Id-zaznamu": import_zod11.z.string().optional(),
|
|
1288
|
+
"Datum-zmeny": import_zod11.z.string().optional()
|
|
1085
1289
|
});
|
|
1086
|
-
var seznamDokumentuResponseSchema =
|
|
1290
|
+
var seznamDokumentuResponseSchema = import_zod11.z.object({
|
|
1087
1291
|
"Seznam-dokumentu": coercedArray(seznamDokumentuSchema),
|
|
1088
1292
|
"Sejmute-dokumenty": coercedArray(dokumentySchema),
|
|
1089
1293
|
"Zrusene-dokumenty": coercedArray(dokumentySchema)
|
|
@@ -1100,8 +1304,8 @@ async function seznamDokumentu(bodyObj) {
|
|
|
1100
1304
|
name: requestName2,
|
|
1101
1305
|
namespace: requestNamespace2,
|
|
1102
1306
|
xrgNamespace: "http://www.gordic.cz/xrg/ude/seznam-dokumentu/request/v_1.0.0.0",
|
|
1103
|
-
|
|
1104
|
-
|
|
1307
|
+
paramsBodies: [bodyObj],
|
|
1308
|
+
paramOrders: seznamDokumentuParamOrders
|
|
1105
1309
|
}),
|
|
1106
1310
|
this.config.debug
|
|
1107
1311
|
);
|
|
@@ -1109,26 +1313,32 @@ async function seznamDokumentu(bodyObj) {
|
|
|
1109
1313
|
}
|
|
1110
1314
|
|
|
1111
1315
|
// src/api/ude/Seznam-kategorii.ts
|
|
1112
|
-
var
|
|
1316
|
+
var import_zod12 = require("zod");
|
|
1113
1317
|
var seznamKategoriiRequestProperties = [
|
|
1114
1318
|
// Identifikátor úřední desky. Pokud je v GINIS naadministrována jen jedna deska, nemusí být uvedeno.
|
|
1115
1319
|
"Id-uredni-desky"
|
|
1116
1320
|
];
|
|
1117
|
-
var
|
|
1118
|
-
|
|
1119
|
-
|
|
1321
|
+
var seznamKategoriiParamOrders = [
|
|
1322
|
+
{
|
|
1323
|
+
name: "Seznam-kategorii",
|
|
1324
|
+
params: seznamKategoriiRequestProperties
|
|
1325
|
+
}
|
|
1326
|
+
];
|
|
1327
|
+
var seznamKategoriiSchema = import_zod12.z.object({
|
|
1328
|
+
"Id-kategorie": import_zod12.z.string(),
|
|
1329
|
+
Nazev: import_zod12.z.string().optional(),
|
|
1120
1330
|
/**
|
|
1121
1331
|
* Počet vyvěšených dokumentů/záznamů v této kategorii.
|
|
1122
1332
|
* int
|
|
1123
1333
|
*/
|
|
1124
|
-
"Pocet-vyveseno":
|
|
1334
|
+
"Pocet-vyveseno": import_zod12.z.string(),
|
|
1125
1335
|
/**
|
|
1126
1336
|
* Počet dokumentů/záznamů v archivu (sejmutých) této kategorie.
|
|
1127
1337
|
* int
|
|
1128
1338
|
*/
|
|
1129
|
-
"Pocet-archiv":
|
|
1339
|
+
"Pocet-archiv": import_zod12.z.string()
|
|
1130
1340
|
});
|
|
1131
|
-
var seznamKategoriiResponseSchema =
|
|
1341
|
+
var seznamKategoriiResponseSchema = import_zod12.z.object({
|
|
1132
1342
|
/**
|
|
1133
1343
|
* Seznam-kategorii - vyžadován: Ne , max. výskyt: neomezeně
|
|
1134
1344
|
*/
|
|
@@ -1146,8 +1356,8 @@ async function seznamKategorii(bodyObj) {
|
|
|
1146
1356
|
name: requestName2,
|
|
1147
1357
|
namespace: requestNamespace2,
|
|
1148
1358
|
xrgNamespace: "http://www.gordic.cz/xrg/ude/seznam-kategorii/request/v_1.0.0.0",
|
|
1149
|
-
|
|
1150
|
-
|
|
1359
|
+
paramsBodies: [bodyObj],
|
|
1360
|
+
paramOrders: seznamKategoriiParamOrders
|
|
1151
1361
|
}),
|
|
1152
1362
|
this.config.debug
|
|
1153
1363
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bratislava/ginis-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "A small wrapper for most commonly used requests towards the Bratislava GINIS system",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -32,25 +32,25 @@
|
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://github.com/bratislava/ginis-sdk#readme",
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@babel/core": "^7.
|
|
36
|
-
"@babel/preset-env": "^7.
|
|
37
|
-
"@babel/preset-typescript": "^7.27.
|
|
38
|
-
"@darraghor/eslint-plugin-nestjs-typed": "^6.4.
|
|
39
|
-
"@eslint/js": "^9.
|
|
40
|
-
"@eslint/json": "^0.
|
|
41
|
-
"@eslint/markdown": "^6.
|
|
35
|
+
"@babel/core": "^7.27.1",
|
|
36
|
+
"@babel/preset-env": "^7.27.1",
|
|
37
|
+
"@babel/preset-typescript": "^7.27.1",
|
|
38
|
+
"@darraghor/eslint-plugin-nestjs-typed": "^6.4.12",
|
|
39
|
+
"@eslint/js": "^9.25.1",
|
|
40
|
+
"@eslint/json": "^0.12.0",
|
|
41
|
+
"@eslint/markdown": "^6.4.0",
|
|
42
42
|
"@types/eslint-config-prettier": "^6.11.3",
|
|
43
43
|
"@types/eslint-plugin-security": "^3.0.0",
|
|
44
44
|
"@types/jest": "^29.5.14",
|
|
45
45
|
"@types/lodash": "^4.17.16",
|
|
46
46
|
"@types/uuid": "^10.0.0",
|
|
47
47
|
"@types/xml2js": "^0.4.14",
|
|
48
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
49
|
-
"@typescript-eslint/parser": "^8.
|
|
48
|
+
"@typescript-eslint/eslint-plugin": "^8.31.1",
|
|
49
|
+
"@typescript-eslint/parser": "^8.31.1",
|
|
50
50
|
"babel-jest": "^29.7.0",
|
|
51
|
-
"dotenv": "^16.
|
|
52
|
-
"eslint": "^9.
|
|
53
|
-
"eslint-config-prettier": "^10.1.
|
|
51
|
+
"dotenv": "^16.5.0",
|
|
52
|
+
"eslint": "^9.25.1",
|
|
53
|
+
"eslint-config-prettier": "^10.1.2",
|
|
54
54
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
55
55
|
"eslint-plugin-jest": "^28.11.0",
|
|
56
56
|
"eslint-plugin-jest-async": "^1.0.3",
|
|
@@ -63,11 +63,11 @@
|
|
|
63
63
|
"jest": "^29.7.0",
|
|
64
64
|
"jiti": "^2.4.2",
|
|
65
65
|
"prettier": "^3.5.3",
|
|
66
|
-
"ts-jest": "^29.3.
|
|
66
|
+
"ts-jest": "^29.3.2",
|
|
67
67
|
"ts-loader": "^9.5.2",
|
|
68
68
|
"tsup": "^8.4.0",
|
|
69
69
|
"typescript": "^5.8.3",
|
|
70
|
-
"typescript-eslint": "^8.
|
|
70
|
+
"typescript-eslint": "^8.31.1"
|
|
71
71
|
},
|
|
72
72
|
"overrides": {
|
|
73
73
|
"glob": "^11.0.1"
|
|
@@ -77,14 +77,14 @@
|
|
|
77
77
|
"npm": ">=10.2.x"
|
|
78
78
|
},
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"axios": "^1.
|
|
80
|
+
"axios": "^1.9.0",
|
|
81
81
|
"crypto-browserify": "^3.12.1",
|
|
82
82
|
"lodash": "^4.17.21",
|
|
83
83
|
"stream-browserify": "^3.0.0",
|
|
84
84
|
"typescript": "5.8.3",
|
|
85
85
|
"uuid": "^11.1.0",
|
|
86
86
|
"xml2js": "^0.6.2",
|
|
87
|
-
"zod": "^3.24.
|
|
87
|
+
"zod": "^3.24.3"
|
|
88
88
|
},
|
|
89
89
|
"volta": {
|
|
90
90
|
"node": "22.14.0",
|