@bratislava/ginis-sdk 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -5
- package/dist/index.js +5 -10
- package/package.json +24 -25
package/README.md
CHANGED
|
@@ -6,10 +6,6 @@ A small wrapper for most commonly used requests towards the GINIS system. Made t
|
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
9
|
-
`yarn add @bratislava/ginis-sdk`
|
|
10
|
-
|
|
11
|
-
or
|
|
12
|
-
|
|
13
9
|
`npm i @bratislava/ginis-sdk`
|
|
14
10
|
|
|
15
11
|
## Using the library
|
|
@@ -63,7 +59,7 @@ You need to have GINIS credentials setup in `.env` file - see `.env.example`. If
|
|
|
63
59
|
|
|
64
60
|
Start the test using
|
|
65
61
|
|
|
66
|
-
`
|
|
62
|
+
`npm test`
|
|
67
63
|
|
|
68
64
|
## XML example
|
|
69
65
|
|
package/dist/index.js
CHANGED
|
@@ -105,8 +105,7 @@ var GinisError = class extends Error {
|
|
|
105
105
|
// src/api/json/ssl/Detail-dokumentu.ts
|
|
106
106
|
async function detailDokumentu(bodyObj) {
|
|
107
107
|
const url = this.config.urls.ssl;
|
|
108
|
-
if (!url)
|
|
109
|
-
throw new GinisError("GINIS SDK Error: Missing SSL url in GINIS config");
|
|
108
|
+
if (!url) throw new GinisError("GINIS SDK Error: Missing SSL url in GINIS config");
|
|
110
109
|
const response = await makeAxiosRequest(
|
|
111
110
|
void 0,
|
|
112
111
|
`${url}/json/Detail-dokumentu`,
|
|
@@ -125,8 +124,7 @@ async function detailDokumentu(bodyObj) {
|
|
|
125
124
|
// src/api/json/ssl/Pridat-soubor.ts
|
|
126
125
|
async function pridatSoubor(bodyObj) {
|
|
127
126
|
const url = this.config.urls.ssl;
|
|
128
|
-
if (!url)
|
|
129
|
-
throw new GinisError("GINIS SDK Error: Missing SSL url in GINIS config");
|
|
127
|
+
if (!url) throw new GinisError("GINIS SDK Error: Missing SSL url in GINIS config");
|
|
130
128
|
const response = await makeAxiosRequest(
|
|
131
129
|
void 0,
|
|
132
130
|
`${url}/json/Pridat-soubor`,
|
|
@@ -151,8 +149,7 @@ var ssl_default = {
|
|
|
151
149
|
// src/api/json/pod/Detail-el-podani.ts
|
|
152
150
|
async function detailElPodani(bodyObj) {
|
|
153
151
|
const url = this.config.urls.pod;
|
|
154
|
-
if (!url)
|
|
155
|
-
throw new GinisError("GINIS SDK Error: Missing POD url in GINIS config");
|
|
152
|
+
if (!url) throw new GinisError("GINIS SDK Error: Missing POD url in GINIS config");
|
|
156
153
|
const response = await makeAxiosRequest(
|
|
157
154
|
void 0,
|
|
158
155
|
`${url}/json/Detail-el-podani`,
|
|
@@ -176,8 +173,7 @@ var pod_default = {
|
|
|
176
173
|
// src/api/json/gin/Detail-funkcniho-mista.ts
|
|
177
174
|
async function detailFunkcnihoMista(bodyObj) {
|
|
178
175
|
const url = this.config.urls.gin;
|
|
179
|
-
if (!url)
|
|
180
|
-
throw new GinisError("GINIS SDK Error: Missing GIN url in GINIS config");
|
|
176
|
+
if (!url) throw new GinisError("GINIS SDK Error: Missing GIN url in GINIS config");
|
|
181
177
|
const response = await makeAxiosRequest(
|
|
182
178
|
void 0,
|
|
183
179
|
`${url}/json/Detail-funkcniho-mista`,
|
|
@@ -196,8 +192,7 @@ async function detailFunkcnihoMista(bodyObj) {
|
|
|
196
192
|
// src/api/json/gin/Detail-referenta.ts
|
|
197
193
|
async function detailReferenta(bodyObj) {
|
|
198
194
|
const url = this.config.urls.gin;
|
|
199
|
-
if (!url)
|
|
200
|
-
throw new GinisError("GINIS SDK Error: Missing GIN url in GINIS config");
|
|
195
|
+
if (!url) throw new GinisError("GINIS SDK Error: Missing GIN url in GINIS config");
|
|
201
196
|
const response = await makeAxiosRequest(
|
|
202
197
|
void 0,
|
|
203
198
|
`${url}/json/Detail-referenta`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bratislava/ginis-sdk",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
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": [
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"test": "jest --watch",
|
|
13
13
|
"typecheck": "tsc",
|
|
14
14
|
"lint": "eslint --color --ext .js,.json,.ts .",
|
|
15
|
-
"lint:fix": "
|
|
15
|
+
"lint:fix": "npm run lint -- --fix"
|
|
16
16
|
},
|
|
17
17
|
"bin": {
|
|
18
18
|
"ginis-sdk": "./bin/index.js"
|
|
@@ -30,37 +30,36 @@
|
|
|
30
30
|
},
|
|
31
31
|
"homepage": "https://github.com/bratislava/ginis-sdk#readme",
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@babel/core": "^7.
|
|
34
|
-
"@babel/preset-env": "^7.
|
|
35
|
-
"@babel/preset-typescript": "^7.
|
|
36
|
-
"@types/jest": "^29.
|
|
37
|
-
"@types/lodash": "^4.
|
|
38
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
39
|
-
"@typescript-eslint/parser": "^
|
|
40
|
-
"babel-jest": "^29.
|
|
41
|
-
"dotenv": "^16.
|
|
42
|
-
"eslint": "^
|
|
43
|
-
"eslint-config-prettier": "^
|
|
33
|
+
"@babel/core": "^7.26.0",
|
|
34
|
+
"@babel/preset-env": "^7.26.0",
|
|
35
|
+
"@babel/preset-typescript": "^7.26.0",
|
|
36
|
+
"@types/jest": "^29.5.14",
|
|
37
|
+
"@types/lodash": "^4.17.13",
|
|
38
|
+
"@typescript-eslint/eslint-plugin": "^8.17.0",
|
|
39
|
+
"@typescript-eslint/parser": "^8.17.0",
|
|
40
|
+
"babel-jest": "^29.7.0",
|
|
41
|
+
"dotenv": "^16.4.7",
|
|
42
|
+
"eslint": "^9.16.0",
|
|
43
|
+
"eslint-config-prettier": "^9.1.0",
|
|
44
44
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
45
|
-
"eslint-plugin-import": "^2.
|
|
46
|
-
"eslint-plugin-no-secrets": "^
|
|
47
|
-
"jest": "^29.
|
|
48
|
-
"prettier": "^
|
|
49
|
-
"ts-jest": "^29.
|
|
50
|
-
"ts-loader": "^9.
|
|
51
|
-
"tsup": "^
|
|
45
|
+
"eslint-plugin-import": "^2.31.0",
|
|
46
|
+
"eslint-plugin-no-secrets": "^2.1.1",
|
|
47
|
+
"jest": "^29.7.0",
|
|
48
|
+
"prettier": "^3.4.2",
|
|
49
|
+
"ts-jest": "^29.2.5",
|
|
50
|
+
"ts-loader": "^9.5.1",
|
|
51
|
+
"tsup": "^8.3.5"
|
|
52
52
|
},
|
|
53
53
|
"engines": {
|
|
54
54
|
"node": ">=20.x.x",
|
|
55
|
-
"npm": ">=9.x.x"
|
|
56
|
-
"yarn": "1.22"
|
|
55
|
+
"npm": ">=9.x.x"
|
|
57
56
|
},
|
|
58
57
|
"dependencies": {
|
|
59
|
-
"axios": "^1.
|
|
60
|
-
"crypto-browserify": "^3.12.
|
|
58
|
+
"axios": "^1.7.9",
|
|
59
|
+
"crypto-browserify": "^3.12.1",
|
|
61
60
|
"lodash": "^4.17.21",
|
|
62
61
|
"stream-browserify": "^3.0.0",
|
|
63
|
-
"typescript": "5.
|
|
62
|
+
"typescript": "5.7.2"
|
|
64
63
|
},
|
|
65
64
|
"volta": {
|
|
66
65
|
"node": "20.11.1"
|