@bratislava/ginis-sdk 1.1.2 → 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 +334 -3
- package/dist/index.js +368 -154
- package/package.json +17 -17
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
2
|
+
import { Readable } from 'stream';
|
|
3
3
|
import { AxiosError } from 'axios';
|
|
4
4
|
|
|
5
5
|
declare const detailFunkcnihoMistaRequestProperties: readonly ["Id-funkce"];
|
|
@@ -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
|
|
@@ -1959,7 +2256,7 @@ declare const pridatSouborRequestProperties: readonly ["Id-dokumentu", "Id-soubo
|
|
|
1959
2256
|
type SslPridatSouborRequest = {
|
|
1960
2257
|
[K in (typeof pridatSouborRequestProperties)[number] as K]?: string;
|
|
1961
2258
|
} & {
|
|
1962
|
-
Obsah?:
|
|
2259
|
+
Obsah?: Readable;
|
|
1963
2260
|
};
|
|
1964
2261
|
declare const pridatSouborSchema: z.ZodObject<{
|
|
1965
2262
|
'Datum-zmeny': z.ZodString;
|
|
@@ -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
|
-
var
|
|
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),
|
|
@@ -664,7 +806,11 @@ async function pridatSoubor(bodyObj) {
|
|
|
664
806
|
}
|
|
665
807
|
async function pridatSouborMtom(bodyObj) {
|
|
666
808
|
if (!bodyObj.Obsah) {
|
|
667
|
-
bodyObj.Obsah = new
|
|
809
|
+
bodyObj.Obsah = new import_stream2.Readable({
|
|
810
|
+
read() {
|
|
811
|
+
this.push(null);
|
|
812
|
+
}
|
|
813
|
+
});
|
|
668
814
|
}
|
|
669
815
|
const url = this.config.urls.ssl_mtom;
|
|
670
816
|
if (!url) throw new GinisError("GINIS SDK Error: Missing SSL url in GINIS config");
|
|
@@ -672,8 +818,8 @@ async function pridatSouborMtom(bodyObj) {
|
|
|
672
818
|
name: requestName,
|
|
673
819
|
namespace: requestNamespace,
|
|
674
820
|
xrgNamespace: requestXrgNamespace,
|
|
675
|
-
|
|
676
|
-
|
|
821
|
+
paramsBodies: [bodyObj],
|
|
822
|
+
paramOrders: pridatSouborParamOrders
|
|
677
823
|
};
|
|
678
824
|
const requestContentId = "soap-req";
|
|
679
825
|
const fileContentId = "attachment-file";
|
|
@@ -702,51 +848,101 @@ async function pridatSouborMtom(bodyObj) {
|
|
|
702
848
|
return extractMultipartResponseJson(response.data, requestName, pridatSouborResponseSchema);
|
|
703
849
|
}
|
|
704
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
|
+
|
|
705
893
|
// src/api/ssl/index.ts
|
|
706
894
|
var ssl_default = {
|
|
707
895
|
detailDokumentu,
|
|
896
|
+
prehledDokumentu,
|
|
708
897
|
pridatSoubor,
|
|
709
|
-
pridatSouborMtom
|
|
898
|
+
pridatSouborMtom,
|
|
899
|
+
prideleni
|
|
710
900
|
};
|
|
711
901
|
|
|
712
902
|
// src/api/ude/Detail-dokumentu.ts
|
|
713
|
-
var
|
|
903
|
+
var import_zod9 = require("zod");
|
|
714
904
|
var detailDokumentuRequestProperties2 = ["Vratit-info", "Id-zaznamu"];
|
|
715
|
-
var
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
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(),
|
|
722
918
|
/**
|
|
723
919
|
* date
|
|
724
920
|
*/
|
|
725
|
-
"Vyveseno-dne":
|
|
921
|
+
"Vyveseno-dne": import_zod9.z.string(),
|
|
726
922
|
/**
|
|
727
923
|
* date
|
|
728
924
|
*/
|
|
729
|
-
"Sejmuto-dne":
|
|
730
|
-
Zdroj:
|
|
731
|
-
"Id-fun-navrhl":
|
|
732
|
-
Navrhl:
|
|
733
|
-
"Id-fun-schvalil":
|
|
734
|
-
Schvalil:
|
|
735
|
-
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(),
|
|
736
932
|
/**
|
|
737
933
|
* Počet vyvěšených souborů.
|
|
738
934
|
* int
|
|
739
935
|
*/
|
|
740
|
-
"Pocet-souboru":
|
|
741
|
-
"Id-dokumentu":
|
|
936
|
+
"Pocet-souboru": import_zod9.z.string(),
|
|
937
|
+
"Id-dokumentu": import_zod9.z.string().optional(),
|
|
742
938
|
/**
|
|
743
939
|
* Datum a čas změny záznamu na úřední desce (změna nastala po tomto okamžiku).
|
|
744
940
|
* dateTime
|
|
745
941
|
*/
|
|
746
|
-
"Datum-zmeny":
|
|
747
|
-
"Puvod-dokumentu":
|
|
748
|
-
"Odesilatel-dokumentu":
|
|
749
|
-
"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(),
|
|
750
946
|
/**
|
|
751
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.
|
|
752
948
|
* int
|
|
@@ -756,35 +952,35 @@ var detailDokumentuSchema = import_zod7.z.object({
|
|
|
756
952
|
* 2 - Soubor je elektronicky podepsán čas. razítkem.
|
|
757
953
|
* 3 - Dokument je opatřen čas. razítkem.
|
|
758
954
|
*/
|
|
759
|
-
"El-obraz-podpis":
|
|
760
|
-
"Cj-spisu":
|
|
761
|
-
"Cislo-sml":
|
|
762
|
-
"Typ-sml":
|
|
763
|
-
"Nazev-sml":
|
|
764
|
-
"Subjekt-sml":
|
|
765
|
-
"Nazev-sub-sml":
|
|
766
|
-
"Prijmeni-sub-sml":
|
|
767
|
-
"Jmeno-sub-sml":
|
|
768
|
-
"Ico-sub-sml":
|
|
769
|
-
"Obec-sub-sml":
|
|
770
|
-
"Ulice-sub-sml":
|
|
771
|
-
"Cor-sub-sml":
|
|
772
|
-
"Cpop-sub-sml":
|
|
773
|
-
"Psc-sub-sml":
|
|
774
|
-
"Typ-sub-sml":
|
|
775
|
-
"Datum-uzavreni-sml":
|
|
776
|
-
"Odbor-sml":
|
|
777
|
-
"Celkova-castka-sml":
|
|
778
|
-
"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()
|
|
779
975
|
});
|
|
780
|
-
var souboryDokumentuSchema =
|
|
781
|
-
"Id-souboru":
|
|
782
|
-
Nazev:
|
|
976
|
+
var souboryDokumentuSchema = import_zod9.z.object({
|
|
977
|
+
"Id-souboru": import_zod9.z.string(),
|
|
978
|
+
Nazev: import_zod9.z.string(),
|
|
783
979
|
/**
|
|
784
980
|
* Velikost souboru včetně jednotky (např. KB).
|
|
785
981
|
* string
|
|
786
982
|
*/
|
|
787
|
-
Velikost:
|
|
983
|
+
Velikost: import_zod9.z.string().optional(),
|
|
788
984
|
/**
|
|
789
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šší.
|
|
790
986
|
* short
|
|
@@ -792,11 +988,11 @@ var souboryDokumentuSchema = import_zod7.z.object({
|
|
|
792
988
|
* 0 - Soubor není el. obraz GINIS dokumentu (soubor je příloha, nebo vložen přes modul UDA01).
|
|
793
989
|
* 1 - Soubor je el. obraz GINIS dokumentu.
|
|
794
990
|
*/
|
|
795
|
-
"Priznak-el-obr":
|
|
991
|
+
"Priznak-el-obr": import_zod9.z.string().optional(),
|
|
796
992
|
/**
|
|
797
993
|
* Poznámka k souboru.
|
|
798
994
|
*/
|
|
799
|
-
Poznamka:
|
|
995
|
+
Poznamka: import_zod9.z.string().optional(),
|
|
800
996
|
/**
|
|
801
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.
|
|
802
998
|
* short
|
|
@@ -806,20 +1002,20 @@ var souboryDokumentuSchema = import_zod7.z.object({
|
|
|
806
1002
|
* 2 - Soubor je elektronicky podepsán čas. razítkem.
|
|
807
1003
|
* 3 - Dokument je opatřen čas. razítkem.
|
|
808
1004
|
*/
|
|
809
|
-
"Priznak-podpis":
|
|
1005
|
+
"Priznak-podpis": import_zod9.z.string().optional()
|
|
810
1006
|
});
|
|
811
|
-
var protistranySmlSchema =
|
|
812
|
-
"Typ-protistrany":
|
|
813
|
-
Subjekt:
|
|
814
|
-
"Nazev-sub":
|
|
815
|
-
"Prijmeni-sub":
|
|
816
|
-
"Jmeno-sub":
|
|
817
|
-
"Ico-sub":
|
|
818
|
-
"Obec-sub":
|
|
819
|
-
"Ulice-sub":
|
|
820
|
-
"Cor-sub":
|
|
821
|
-
"Cpop-sub":
|
|
822
|
-
"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(),
|
|
823
1019
|
/**
|
|
824
1020
|
* Typ subjektu smlouvy.
|
|
825
1021
|
*
|
|
@@ -828,9 +1024,9 @@ var protistranySmlSchema = import_zod7.z.object({
|
|
|
828
1024
|
* fyz-osoba - Fyzická osoba
|
|
829
1025
|
* fyz-osoba-osvc - Fyzická osoba OSVČ
|
|
830
1026
|
*/
|
|
831
|
-
"Typ-sub":
|
|
1027
|
+
"Typ-sub": import_zod9.z.string().optional()
|
|
832
1028
|
});
|
|
833
|
-
var DetailDokumentuResponseSchema2 =
|
|
1029
|
+
var DetailDokumentuResponseSchema2 = import_zod9.z.object({
|
|
834
1030
|
"Detail-dokumentu": detailDokumentuSchema.optional(),
|
|
835
1031
|
"Soubory-dokumentu": coercedArray(souboryDokumentuSchema),
|
|
836
1032
|
"Protistrany-sml": coercedArray(protistranySmlSchema)
|
|
@@ -847,8 +1043,8 @@ async function detailDokumentu2(bodyObj) {
|
|
|
847
1043
|
name: requestName2,
|
|
848
1044
|
namespace: requestNamespace2,
|
|
849
1045
|
xrgNamespace: "http://www.gordic.cz/xrg/ude/detail-dokumentu/request/v_1.0.0.0",
|
|
850
|
-
|
|
851
|
-
|
|
1046
|
+
paramsBodies: [bodyObj],
|
|
1047
|
+
paramOrders: detailDokumentuParamOrders2
|
|
852
1048
|
}),
|
|
853
1049
|
this.config.debug
|
|
854
1050
|
);
|
|
@@ -856,22 +1052,28 @@ async function detailDokumentu2(bodyObj) {
|
|
|
856
1052
|
}
|
|
857
1053
|
|
|
858
1054
|
// src/api/ude/Nacist-soubor.ts
|
|
859
|
-
var
|
|
1055
|
+
var import_zod10 = require("zod");
|
|
860
1056
|
var nacistSouborRequestProperties = ["Id-souboru"];
|
|
861
|
-
var
|
|
1057
|
+
var nacistSouborParamOrders = [
|
|
1058
|
+
{
|
|
1059
|
+
name: "Nacist-soubor",
|
|
1060
|
+
params: nacistSouborRequestProperties
|
|
1061
|
+
}
|
|
1062
|
+
];
|
|
1063
|
+
var nacistSouborSchema = import_zod10.z.object({
|
|
862
1064
|
/**
|
|
863
1065
|
* Jméno el. souboru.
|
|
864
1066
|
* string
|
|
865
1067
|
* Max. délka: 254, Min. délka: 1,
|
|
866
1068
|
*/
|
|
867
|
-
"Jmeno-souboru":
|
|
1069
|
+
"Jmeno-souboru": import_zod10.z.string(),
|
|
868
1070
|
/**
|
|
869
1071
|
* Binární data souboru v base64 formátu.
|
|
870
1072
|
* base64Binary
|
|
871
1073
|
*/
|
|
872
|
-
Data:
|
|
1074
|
+
Data: import_zod10.z.string()
|
|
873
1075
|
});
|
|
874
|
-
var nacistSouborResponseSchema =
|
|
1076
|
+
var nacistSouborResponseSchema = import_zod10.z.object({
|
|
875
1077
|
/**
|
|
876
1078
|
* Nacist-soubor - vyžadován: Ne , max. výskyt: 1
|
|
877
1079
|
*/
|
|
@@ -889,8 +1091,8 @@ async function nacistSoubor(bodyObj) {
|
|
|
889
1091
|
name: requestName2,
|
|
890
1092
|
namespace: requestNamespace2,
|
|
891
1093
|
xrgNamespace: "http://www.gordic.cz/xrg/ude/nacist-soubor/request/v_1.0.0.0",
|
|
892
|
-
|
|
893
|
-
|
|
1094
|
+
paramsBodies: [bodyObj],
|
|
1095
|
+
paramOrders: nacistSouborParamOrders
|
|
894
1096
|
}),
|
|
895
1097
|
this.config.debug
|
|
896
1098
|
);
|
|
@@ -898,7 +1100,7 @@ async function nacistSoubor(bodyObj) {
|
|
|
898
1100
|
}
|
|
899
1101
|
|
|
900
1102
|
// src/api/ude/Seznam-dokumentu.ts
|
|
901
|
-
var
|
|
1103
|
+
var import_zod11 = require("zod");
|
|
902
1104
|
var seznamDokumentuRequestProperties = [
|
|
903
1105
|
/**
|
|
904
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.
|
|
@@ -984,102 +1186,108 @@ var seznamDokumentuRequestProperties = [
|
|
|
984
1186
|
"Celkova-castka-do-sml",
|
|
985
1187
|
"Mena-sml"
|
|
986
1188
|
];
|
|
987
|
-
var
|
|
988
|
-
|
|
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(),
|
|
989
1197
|
/**
|
|
990
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'.
|
|
991
1199
|
* vyveseno - Vyvěšeno – schváleno k vyvěšení + nastalo datum vyvěšení (a ještě nenastalo datum sejmutí)
|
|
992
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í)
|
|
993
1201
|
*/
|
|
994
|
-
Stav:
|
|
1202
|
+
Stav: import_zod11.z.string().optional(),
|
|
995
1203
|
/**
|
|
996
1204
|
* Název kategorie.
|
|
997
1205
|
*/
|
|
998
|
-
Kategorie:
|
|
999
|
-
Nazev:
|
|
1000
|
-
Popis:
|
|
1206
|
+
Kategorie: import_zod11.z.string(),
|
|
1207
|
+
Nazev: import_zod11.z.string(),
|
|
1208
|
+
Popis: import_zod11.z.string().optional(),
|
|
1001
1209
|
/**
|
|
1002
1210
|
* ISO-string date
|
|
1003
1211
|
*/
|
|
1004
|
-
"Vyveseno-dne":
|
|
1212
|
+
"Vyveseno-dne": import_zod11.z.string(),
|
|
1005
1213
|
/**
|
|
1006
1214
|
* ISO-string date
|
|
1007
1215
|
*/
|
|
1008
|
-
"Sejmuto-dne":
|
|
1009
|
-
Zdroj:
|
|
1216
|
+
"Sejmuto-dne": import_zod11.z.string().optional(),
|
|
1217
|
+
Zdroj: import_zod11.z.string(),
|
|
1010
1218
|
/**
|
|
1011
1219
|
* Identifikace GINIS funkce, která navrhla dokument k vyvěšení.
|
|
1012
1220
|
*/
|
|
1013
|
-
"Id-fun-navrhl":
|
|
1221
|
+
"Id-fun-navrhl": import_zod11.z.string(),
|
|
1014
1222
|
/**
|
|
1015
1223
|
* Osoba, která navrhla dokument k vyvěšení.
|
|
1016
1224
|
*/
|
|
1017
|
-
Navrhl:
|
|
1225
|
+
Navrhl: import_zod11.z.string(),
|
|
1018
1226
|
/**
|
|
1019
1227
|
* Identifikace GINIS funkce, která dokument schválila resp. vyvěsila.
|
|
1020
1228
|
*/
|
|
1021
|
-
"Id-fun-schvalil":
|
|
1229
|
+
"Id-fun-schvalil": import_zod11.z.string(),
|
|
1022
1230
|
/**
|
|
1023
1231
|
* Osoba, která dokument schválila resp. vyvěsila.
|
|
1024
1232
|
*/
|
|
1025
|
-
Schvalil:
|
|
1233
|
+
Schvalil: import_zod11.z.string(),
|
|
1026
1234
|
/**
|
|
1027
1235
|
* Číslo jednací resp. značka.
|
|
1028
1236
|
*/
|
|
1029
|
-
Cj:
|
|
1237
|
+
Cj: import_zod11.z.string().optional(),
|
|
1030
1238
|
/**
|
|
1031
1239
|
* Počet vyvěšených souborů.
|
|
1032
1240
|
* int
|
|
1033
1241
|
*/
|
|
1034
|
-
"Pocet-souboru":
|
|
1242
|
+
"Pocet-souboru": import_zod11.z.string(),
|
|
1035
1243
|
/**
|
|
1036
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.
|
|
1037
1245
|
*/
|
|
1038
|
-
"Id-dokumentu":
|
|
1246
|
+
"Id-dokumentu": import_zod11.z.string().optional(),
|
|
1039
1247
|
/**
|
|
1040
1248
|
* Celkový počet vyvěšených dokumentů/záznamů.
|
|
1041
1249
|
* int
|
|
1042
1250
|
*/
|
|
1043
|
-
"Pocet-vyveseno":
|
|
1251
|
+
"Pocet-vyveseno": import_zod11.z.string(),
|
|
1044
1252
|
/**
|
|
1045
1253
|
* Celkový počet dokumentů/záznamů v archivu (sejmutých).
|
|
1046
1254
|
* int
|
|
1047
1255
|
*/
|
|
1048
|
-
"Pocet-archiv":
|
|
1256
|
+
"Pocet-archiv": import_zod11.z.string(),
|
|
1049
1257
|
/**
|
|
1050
1258
|
* Datum a čas změny záznamu na úřední desce.
|
|
1051
1259
|
* dateTime
|
|
1052
1260
|
*/
|
|
1053
|
-
"Datum-zmeny":
|
|
1054
|
-
"Puvod-dokumentu":
|
|
1055
|
-
"Odesilatel-dokumentu":
|
|
1056
|
-
"Typ-dokumentu":
|
|
1057
|
-
"El-obraz-podpis":
|
|
1058
|
-
"Cj-spisu":
|
|
1059
|
-
"Cislo-sml":
|
|
1060
|
-
"Typ-sml":
|
|
1061
|
-
"Nazev-sml":
|
|
1062
|
-
"Subjekt-sml":
|
|
1063
|
-
"Nazev-sub-sml":
|
|
1064
|
-
"Prijmeni-sub-sml":
|
|
1065
|
-
"Jmeno-sub-sml":
|
|
1066
|
-
"Ico-sub-sml":
|
|
1067
|
-
"Obec-sub-sml":
|
|
1068
|
-
"Ulice-sub-sml":
|
|
1069
|
-
"Cor-sub-sml":
|
|
1070
|
-
"Cpop-sub-sml":
|
|
1071
|
-
"Psc-sub-sml":
|
|
1072
|
-
"Typ-sub-sml":
|
|
1073
|
-
"Datum-uzavreni-sml":
|
|
1074
|
-
"Odbor-sml":
|
|
1075
|
-
"Celkova-castka-sml":
|
|
1076
|
-
"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()
|
|
1077
1285
|
});
|
|
1078
|
-
var dokumentySchema =
|
|
1079
|
-
"Id-zaznamu":
|
|
1080
|
-
"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()
|
|
1081
1289
|
});
|
|
1082
|
-
var seznamDokumentuResponseSchema =
|
|
1290
|
+
var seznamDokumentuResponseSchema = import_zod11.z.object({
|
|
1083
1291
|
"Seznam-dokumentu": coercedArray(seznamDokumentuSchema),
|
|
1084
1292
|
"Sejmute-dokumenty": coercedArray(dokumentySchema),
|
|
1085
1293
|
"Zrusene-dokumenty": coercedArray(dokumentySchema)
|
|
@@ -1096,8 +1304,8 @@ async function seznamDokumentu(bodyObj) {
|
|
|
1096
1304
|
name: requestName2,
|
|
1097
1305
|
namespace: requestNamespace2,
|
|
1098
1306
|
xrgNamespace: "http://www.gordic.cz/xrg/ude/seznam-dokumentu/request/v_1.0.0.0",
|
|
1099
|
-
|
|
1100
|
-
|
|
1307
|
+
paramsBodies: [bodyObj],
|
|
1308
|
+
paramOrders: seznamDokumentuParamOrders
|
|
1101
1309
|
}),
|
|
1102
1310
|
this.config.debug
|
|
1103
1311
|
);
|
|
@@ -1105,26 +1313,32 @@ async function seznamDokumentu(bodyObj) {
|
|
|
1105
1313
|
}
|
|
1106
1314
|
|
|
1107
1315
|
// src/api/ude/Seznam-kategorii.ts
|
|
1108
|
-
var
|
|
1316
|
+
var import_zod12 = require("zod");
|
|
1109
1317
|
var seznamKategoriiRequestProperties = [
|
|
1110
1318
|
// Identifikátor úřední desky. Pokud je v GINIS naadministrována jen jedna deska, nemusí být uvedeno.
|
|
1111
1319
|
"Id-uredni-desky"
|
|
1112
1320
|
];
|
|
1113
|
-
var
|
|
1114
|
-
|
|
1115
|
-
|
|
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(),
|
|
1116
1330
|
/**
|
|
1117
1331
|
* Počet vyvěšených dokumentů/záznamů v této kategorii.
|
|
1118
1332
|
* int
|
|
1119
1333
|
*/
|
|
1120
|
-
"Pocet-vyveseno":
|
|
1334
|
+
"Pocet-vyveseno": import_zod12.z.string(),
|
|
1121
1335
|
/**
|
|
1122
1336
|
* Počet dokumentů/záznamů v archivu (sejmutých) této kategorie.
|
|
1123
1337
|
* int
|
|
1124
1338
|
*/
|
|
1125
|
-
"Pocet-archiv":
|
|
1339
|
+
"Pocet-archiv": import_zod12.z.string()
|
|
1126
1340
|
});
|
|
1127
|
-
var seznamKategoriiResponseSchema =
|
|
1341
|
+
var seznamKategoriiResponseSchema = import_zod12.z.object({
|
|
1128
1342
|
/**
|
|
1129
1343
|
* Seznam-kategorii - vyžadován: Ne , max. výskyt: neomezeně
|
|
1130
1344
|
*/
|
|
@@ -1142,8 +1356,8 @@ async function seznamKategorii(bodyObj) {
|
|
|
1142
1356
|
name: requestName2,
|
|
1143
1357
|
namespace: requestNamespace2,
|
|
1144
1358
|
xrgNamespace: "http://www.gordic.cz/xrg/ude/seznam-kategorii/request/v_1.0.0.0",
|
|
1145
|
-
|
|
1146
|
-
|
|
1359
|
+
paramsBodies: [bodyObj],
|
|
1360
|
+
paramOrders: seznamKategoriiParamOrders
|
|
1147
1361
|
}),
|
|
1148
1362
|
this.config.debug
|
|
1149
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",
|