@golemio/municipal-libraries 1.2.9-dev.994277997 → 1.2.9-rc.1244031193
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.
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MunicipalLibrariesDataSourceFactory = void 0;
|
|
4
|
-
const
|
|
4
|
+
const _sch_1 = require("../../schema-definitions");
|
|
5
5
|
const config_1 = require("@golemio/core/dist/integration-engine/config");
|
|
6
|
+
const datasources_1 = require("@golemio/core/dist/integration-engine/datasources");
|
|
7
|
+
const HTTPFetchProtocolStrategy_1 = require("@golemio/core/dist/integration-engine/datasources/protocol-strategy/HTTPFetchProtocolStrategy");
|
|
6
8
|
const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
|
|
7
|
-
const _sch_1 = require("../../schema-definitions");
|
|
8
9
|
class MunicipalLibrariesDataSourceFactory {
|
|
9
10
|
static getDataSource() {
|
|
10
|
-
return new datasources_1.DataSource(_sch_1.MunicipalLibraries.datasources.municipalLibrariesDatasource.name, new
|
|
11
|
+
return new datasources_1.DataSource(_sch_1.MunicipalLibraries.datasources.municipalLibrariesDatasource.name, new HTTPFetchProtocolStrategy_1.HTTPFetchProtocolStrategy({
|
|
11
12
|
headers: {},
|
|
12
13
|
method: "GET",
|
|
14
|
+
responseType: "text",
|
|
13
15
|
url: config_1.config.datasources.MunicipalLibraries,
|
|
14
16
|
}), new datasources_1.XMLDataTypeStrategy({
|
|
15
17
|
resultsPath: "pobocky.pobocka",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MunicipalLibrariesDataSource.js","sourceRoot":"","sources":["../../../src/integration-engine/datasources/MunicipalLibrariesDataSource.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"MunicipalLibrariesDataSource.js","sourceRoot":"","sources":["../../../src/integration-engine/datasources/MunicipalLibrariesDataSource.ts"],"names":[],"mappings":";;;AAAA,mDAA0C;AAC1C,yEAAsE;AACtE,mFAAoG;AACpG,6IAA0I;AAC1I,mFAAkF;AAElF,MAAa,mCAAmC;IACrC,MAAM,CAAC,aAAa;QACvB,OAAO,IAAI,wBAAU,CACjB,yBAAkB,CAAC,WAAW,CAAC,4BAA4B,CAAC,IAAI,EAChE,IAAI,qDAAyB,CAAC;YAC1B,OAAO,EAAE,EAAE;YACX,MAAM,EAAE,KAAK;YACb,YAAY,EAAE,MAAM;YACpB,GAAG,EAAE,eAAM,CAAC,WAAW,CAAC,kBAAkB;SAC7C,CAAC,EACF,IAAI,iCAAmB,CAAC;YACpB,WAAW,EAAE,iBAAiB;YAC9B,YAAY,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE;SAC/G,CAAC,EACF,IAAI,uCAAmB,CACnB,yBAAkB,CAAC,WAAW,CAAC,4BAA4B,CAAC,IAAI,GAAG,WAAW,EAC9E,yBAAkB,CAAC,WAAW,CAAC,4BAA4B,CAAC,UAAU,CACzE,CACJ,CAAC;IACN,CAAC;CACJ;AApBD,kFAoBC"}
|
package/docs/openapi.yaml
CHANGED
|
@@ -10,23 +10,23 @@ info:
|
|
|
10
10
|
url: https://golemio.cz
|
|
11
11
|
|
|
12
12
|
servers:
|
|
13
|
-
- url: https://api.golemio.cz
|
|
13
|
+
- url: https://api.golemio.cz
|
|
14
14
|
description: Main (production) server
|
|
15
|
-
- url: https://rabin.golemio.cz
|
|
15
|
+
- url: https://rabin.golemio.cz
|
|
16
16
|
description: Test (development) server
|
|
17
17
|
|
|
18
18
|
tags:
|
|
19
|
-
- name: 🏢️ Municipal Libraries
|
|
19
|
+
- name: 🏢️ Municipal Libraries (v2)
|
|
20
20
|
description: <img src="https://img.shields.io/badge/opendata-available-green" alt="golemioapi-opendata-badge" /> 💡 Locations and Description of Municipal Libraries
|
|
21
21
|
|
|
22
22
|
paths:
|
|
23
|
-
/municipallibraries:
|
|
23
|
+
/v2/municipallibraries:
|
|
24
24
|
get:
|
|
25
25
|
summary: GET All Municipal Libraries
|
|
26
26
|
operationId: GETAllMunicipalLibraries
|
|
27
27
|
description: ""
|
|
28
28
|
tags:
|
|
29
|
-
- 🏢️ Municipal Libraries
|
|
29
|
+
- 🏢️ Municipal Libraries (v2)
|
|
30
30
|
parameters:
|
|
31
31
|
- name: latlng
|
|
32
32
|
in: query
|
|
@@ -41,14 +41,14 @@ paths:
|
|
|
41
41
|
description: Filter by distance from latlng in meters (range query). Depends on
|
|
42
42
|
the latlng parameter.
|
|
43
43
|
required: false
|
|
44
|
-
example:
|
|
44
|
+
example: 5000
|
|
45
45
|
schema:
|
|
46
46
|
type: number
|
|
47
47
|
- name: districts
|
|
48
48
|
in: query
|
|
49
49
|
description: Filter by Prague city districts (slug) separated by comma.
|
|
50
50
|
required: false
|
|
51
|
-
example: praha-4
|
|
51
|
+
example: ['praha-4']
|
|
52
52
|
schema:
|
|
53
53
|
type: array
|
|
54
54
|
items: {}
|
|
@@ -57,14 +57,14 @@ paths:
|
|
|
57
57
|
description: Limits number of retrieved items. The maximum is 10000 (default
|
|
58
58
|
value).
|
|
59
59
|
required: false
|
|
60
|
-
example:
|
|
60
|
+
example: 10
|
|
61
61
|
schema:
|
|
62
62
|
type: number
|
|
63
63
|
- name: offset
|
|
64
64
|
in: query
|
|
65
65
|
description: Number of the first items that are skipped.
|
|
66
66
|
required: false
|
|
67
|
-
example:
|
|
67
|
+
example: 0
|
|
68
68
|
schema:
|
|
69
69
|
type: number
|
|
70
70
|
- name: updatedSince
|
|
@@ -117,13 +117,13 @@ paths:
|
|
|
117
117
|
error_message: Forbidden
|
|
118
118
|
error_status: 403
|
|
119
119
|
|
|
120
|
-
/municipallibraries/{id}:
|
|
120
|
+
/v2/municipallibraries/{id}:
|
|
121
121
|
get:
|
|
122
122
|
summary: GET Municipal Library
|
|
123
123
|
operationId: GETMunicipalLibrary
|
|
124
124
|
description: ""
|
|
125
125
|
tags:
|
|
126
|
-
- 🏢️ Municipal Libraries
|
|
126
|
+
- 🏢️ Municipal Libraries (v2)
|
|
127
127
|
parameters:
|
|
128
128
|
- name: id
|
|
129
129
|
in: path
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golemio/municipal-libraries",
|
|
3
|
-
"version": "1.2.9-
|
|
3
|
+
"version": "1.2.9-rc.1244031193",
|
|
4
4
|
"description": "Golemio Municipal Libraries Module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@commitlint/cli": "^11.0.0",
|
|
35
35
|
"@commitlint/config-conventional": "^11.0.0",
|
|
36
|
-
"@golemio/city-districts": "1.2.
|
|
37
|
-
"@golemio/cli": "1.
|
|
38
|
-
"@golemio/core": "1.
|
|
39
|
-
"@golemio/db-common": "1.1.
|
|
36
|
+
"@golemio/city-districts": "1.2.7",
|
|
37
|
+
"@golemio/cli": "1.5.0",
|
|
38
|
+
"@golemio/core": "1.9.16-dev.1226254874",
|
|
39
|
+
"@golemio/db-common": "1.1.2",
|
|
40
40
|
"@golemio/eslint-config": "1.1.1",
|
|
41
41
|
"@types/chai": "4.2.3",
|
|
42
42
|
"@types/chai-as-promised": "7.1.2",
|
|
@@ -67,6 +67,6 @@
|
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
69
|
"@golemio/city-districts": ">=1.2.5",
|
|
70
|
-
"@golemio/core": ">=1.
|
|
70
|
+
"@golemio/core": ">=1.9.0"
|
|
71
71
|
}
|
|
72
72
|
}
|