@golemio/playgrounds 1.1.6-dev.899785441 → 1.1.6-rc.1244010409
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.
|
@@ -5,6 +5,7 @@ exports.PlaygroundsDataSource = void 0;
|
|
|
5
5
|
const SourceSchemaProvider_1 = require("../schema-definitions/json-schema/SourceSchemaProvider");
|
|
6
6
|
const integration_engine_1 = require("@golemio/core/dist/integration-engine");
|
|
7
7
|
const config_1 = require("@golemio/core/dist/integration-engine/config");
|
|
8
|
+
const HTTPFetchProtocolStrategy_1 = require("@golemio/core/dist/integration-engine/datasources/protocol-strategy/HTTPFetchProtocolStrategy");
|
|
8
9
|
const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
|
|
9
10
|
class PlaygroundsDataSource {
|
|
10
11
|
}
|
|
@@ -12,7 +13,7 @@ exports.PlaygroundsDataSource = PlaygroundsDataSource;
|
|
|
12
13
|
_a = PlaygroundsDataSource;
|
|
13
14
|
PlaygroundsDataSource.dataSourceName = "PlaygroundsDataSource";
|
|
14
15
|
PlaygroundsDataSource.get = () => {
|
|
15
|
-
return new integration_engine_1.DataSource(_a.dataSourceName, new
|
|
16
|
+
return new integration_engine_1.DataSource(_a.dataSourceName, new HTTPFetchProtocolStrategy_1.HTTPFetchProtocolStrategy({
|
|
16
17
|
headers: {},
|
|
17
18
|
method: "GET",
|
|
18
19
|
url: config_1.config.datasources.Playgrounds,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlaygroundsDataSource.js","sourceRoot":"","sources":["../../src/integration-engine/PlaygroundsDataSource.ts"],"names":[],"mappings":";;;;AAAA,iGAA6E;AAC7E,
|
|
1
|
+
{"version":3,"file":"PlaygroundsDataSource.js","sourceRoot":"","sources":["../../src/integration-engine/PlaygroundsDataSource.ts"],"names":[],"mappings":";;;;AAAA,iGAA6E;AAC7E,8EAAyF;AACzF,yEAAsE;AACtE,6IAA0I;AAC1I,mFAAkF;AAElF,MAAa,qBAAqB;;AAAlC,sDAeC;;AAdkB,oCAAc,GAAG,uBAAuB,AAA1B,CAA2B;AAE1C,yBAAG,GAAG,GAAe,EAAE;IACjC,OAAO,IAAI,+BAAU,CACjB,EAAI,CAAC,cAAc,EACnB,IAAI,qDAAyB,CAAC;QAC1B,OAAO,EAAE,EAAE;QACX,MAAM,EAAE,KAAK;QACb,GAAG,EAAE,eAAM,CAAC,WAAW,CAAC,WAAW;KACtC,CAAC,EACF,IAAI,yCAAoB,CAAC,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,EAClD,IAAI,uCAAmB,CAAC,EAAI,CAAC,cAAc,GAAG,WAAW,EAAE,2CAAoB,CAAC,UAAU,EAAE,IAAI,CAAC,CACpG,CAAC;AACN,CAAC,AAXgB,CAWf"}
|
package/docs/openapi.yaml
CHANGED
|
@@ -5,28 +5,28 @@ info:
|
|
|
5
5
|
description: Locations and Description of Playgrounds
|
|
6
6
|
version: 1.0.0
|
|
7
7
|
contact:
|
|
8
|
-
name: Golemio Prague Data
|
|
8
|
+
name: Golemio Prague Data Platform
|
|
9
9
|
email: golemio@operatorict.cz
|
|
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: 🏸 Playgrounds
|
|
19
|
+
- name: 🏸 Playgrounds (v2)
|
|
20
20
|
description: <img src="https://img.shields.io/badge/opendata-available-green" alt="golemioapi-opendata-badge" /> 💡 Locations and Description of Playgrounds
|
|
21
21
|
|
|
22
22
|
paths:
|
|
23
|
-
/playgrounds
|
|
23
|
+
/v2/playgrounds:
|
|
24
24
|
get:
|
|
25
25
|
summary: GET All Playgrounds
|
|
26
26
|
operationId: GETAllPlaygrounds
|
|
27
27
|
description: ""
|
|
28
28
|
tags:
|
|
29
|
-
- 🏸 Playgrounds
|
|
29
|
+
- 🏸 Playgrounds (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
|
|
@@ -116,13 +116,13 @@ paths:
|
|
|
116
116
|
error_message: Forbidden
|
|
117
117
|
error_status: 403
|
|
118
118
|
|
|
119
|
-
/playgrounds/{id}:
|
|
119
|
+
/v2/playgrounds/{id}:
|
|
120
120
|
get:
|
|
121
121
|
summary: GET Playground
|
|
122
122
|
operationId: GETPlaygrounds
|
|
123
123
|
description: ""
|
|
124
124
|
tags:
|
|
125
|
-
- 🏸 Playgrounds
|
|
125
|
+
- 🏸 Playgrounds (v2)
|
|
126
126
|
parameters:
|
|
127
127
|
- name: id
|
|
128
128
|
in: path
|
|
@@ -188,7 +188,7 @@ paths:
|
|
|
188
188
|
operationId: GETAllPlaygroundsProperties
|
|
189
189
|
description: ""
|
|
190
190
|
tags:
|
|
191
|
-
- 🏸 Playgrounds
|
|
191
|
+
- 🏸 Playgrounds (v2)
|
|
192
192
|
responses:
|
|
193
193
|
"200":
|
|
194
194
|
description: OK
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golemio/playgrounds",
|
|
3
|
-
"version": "1.1.6-
|
|
3
|
+
"version": "1.1.6-rc.1244010409",
|
|
4
4
|
"description": "Golemio Playgrounds Module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@commitlint/cli": "^11.0.0",
|
|
34
34
|
"@commitlint/config-conventional": "^11.0.0",
|
|
35
|
-
"@golemio/city-districts": "1.2.
|
|
36
|
-
"@golemio/cli": "1.
|
|
37
|
-
"@golemio/core": "1.
|
|
38
|
-
"@golemio/db-common": "1.1.
|
|
35
|
+
"@golemio/city-districts": "1.2.7",
|
|
36
|
+
"@golemio/cli": "1.5.0",
|
|
37
|
+
"@golemio/core": "1.9.16-dev.1226254874",
|
|
38
|
+
"@golemio/db-common": "1.1.2",
|
|
39
39
|
"@golemio/eslint-config": "1.1.1",
|
|
40
40
|
"@types/chai": "4.2.3",
|
|
41
41
|
"@types/chai-as-promised": "7.1.2",
|
|
@@ -68,6 +68,6 @@
|
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"@golemio/city-districts": ">=1.2.5",
|
|
71
|
-
"@golemio/core": ">=1.
|
|
71
|
+
"@golemio/core": ">=1.9.0"
|
|
72
72
|
}
|
|
73
73
|
}
|