@bratislava/ginis-sdk 1.1.1 → 1.2.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 +2 -2
- package/dist/index.js +6 -2
- package/package.json +9 -9
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"];
|
|
@@ -1959,7 +1959,7 @@ declare const pridatSouborRequestProperties: readonly ["Id-dokumentu", "Id-soubo
|
|
|
1959
1959
|
type SslPridatSouborRequest = {
|
|
1960
1960
|
[K in (typeof pridatSouborRequestProperties)[number] as K]?: string;
|
|
1961
1961
|
} & {
|
|
1962
|
-
Obsah?:
|
|
1962
|
+
Obsah?: Readable;
|
|
1963
1963
|
};
|
|
1964
1964
|
declare const pridatSouborSchema: z.ZodObject<{
|
|
1965
1965
|
'Datum-zmeny': z.ZodString;
|
package/dist/index.js
CHANGED
|
@@ -617,7 +617,7 @@ async function detailDokumentu(bodyObj) {
|
|
|
617
617
|
}
|
|
618
618
|
|
|
619
619
|
// src/api/ssl/Pridat-soubor.ts
|
|
620
|
-
var
|
|
620
|
+
var import_stream2 = require("stream");
|
|
621
621
|
var import_uuid = require("uuid");
|
|
622
622
|
var import_zod6 = require("zod");
|
|
623
623
|
var pridatSouborRequestProperties = [
|
|
@@ -664,7 +664,11 @@ async function pridatSoubor(bodyObj) {
|
|
|
664
664
|
}
|
|
665
665
|
async function pridatSouborMtom(bodyObj) {
|
|
666
666
|
if (!bodyObj.Obsah) {
|
|
667
|
-
bodyObj.Obsah = new
|
|
667
|
+
bodyObj.Obsah = new import_stream2.Readable({
|
|
668
|
+
read() {
|
|
669
|
+
this.push(null);
|
|
670
|
+
}
|
|
671
|
+
});
|
|
668
672
|
}
|
|
669
673
|
const url = this.config.urls.ssl_mtom;
|
|
670
674
|
if (!url) throw new GinisError("GINIS SDK Error: Missing SSL url in GINIS config");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bratislava/ginis-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.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": [
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@babel/preset-env": "^7.26.9",
|
|
37
37
|
"@babel/preset-typescript": "^7.27.0",
|
|
38
38
|
"@darraghor/eslint-plugin-nestjs-typed": "^6.4.4",
|
|
39
|
-
"@eslint/js": "^9.
|
|
39
|
+
"@eslint/js": "^9.24.0",
|
|
40
40
|
"@eslint/json": "^0.11.0",
|
|
41
41
|
"@eslint/markdown": "^6.3.0",
|
|
42
42
|
"@types/eslint-config-prettier": "^6.11.3",
|
|
@@ -45,11 +45,11 @@
|
|
|
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.29.1",
|
|
49
|
+
"@typescript-eslint/parser": "^8.29.1",
|
|
50
50
|
"babel-jest": "^29.7.0",
|
|
51
51
|
"dotenv": "^16.4.7",
|
|
52
|
-
"eslint": "^9.
|
|
52
|
+
"eslint": "^9.24.0",
|
|
53
53
|
"eslint-config-prettier": "^10.1.1",
|
|
54
54
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
55
55
|
"eslint-plugin-jest": "^28.11.0",
|
|
@@ -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.1",
|
|
67
67
|
"ts-loader": "^9.5.2",
|
|
68
68
|
"tsup": "^8.4.0",
|
|
69
|
-
"typescript": "^5.8.
|
|
70
|
-
"typescript-eslint": "^8.
|
|
69
|
+
"typescript": "^5.8.3",
|
|
70
|
+
"typescript-eslint": "^8.29.1"
|
|
71
71
|
},
|
|
72
72
|
"overrides": {
|
|
73
73
|
"glob": "^11.0.1"
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"crypto-browserify": "^3.12.1",
|
|
82
82
|
"lodash": "^4.17.21",
|
|
83
83
|
"stream-browserify": "^3.0.0",
|
|
84
|
-
"typescript": "5.8.
|
|
84
|
+
"typescript": "5.8.3",
|
|
85
85
|
"uuid": "^11.1.0",
|
|
86
86
|
"xml2js": "^0.6.2",
|
|
87
87
|
"zod": "^3.24.2"
|