@golemio/gardens 1.2.5-dev.899783218 → 1.2.5-rc.1243988941

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,13 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.gardensDataSource = void 0;
4
- const datasources_1 = require("@golemio/core/dist/integration-engine/datasources");
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 GardensDataSourceFactory {
9
10
  constructor() {
10
- this.gardensDataSource = new datasources_1.DataSource(_sch_1.Gardens.datasources.gardensDatasource.name, new datasources_1.HTTPProtocolStrategy({
11
+ this.gardensDataSource = new datasources_1.DataSource(_sch_1.Gardens.datasources.gardensDatasource.name, new HTTPFetchProtocolStrategy_1.HTTPFetchProtocolStrategy({
11
12
  headers: {
12
13
  Authorization: "Basic " + config_1.config.datasources.OICTEndpointApikey,
13
14
  },
@@ -1 +1 @@
1
- {"version":3,"file":"GardensDataSourceFactory.js","sourceRoot":"","sources":["../../../src/integration-engine/datasources/GardensDataSourceFactory.ts"],"names":[],"mappings":";;;AAAA,mFAA2H;AAC3H,yEAAsE;AACtE,mFAAkF;AAClF,mDAA+B;AAE/B,MAAM,wBAAwB;IAG1B;QACI,IAAI,CAAC,iBAAiB,GAAG,IAAI,wBAAU,CACnC,cAAO,CAAC,WAAW,CAAC,iBAAiB,CAAC,IAAI,EAC1C,IAAI,kCAAoB,CAAC;YACrB,OAAO,EAAE;gBACL,aAAa,EAAE,QAAQ,GAAG,eAAM,CAAC,WAAW,CAAC,kBAAkB;aAClE;YACD,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,eAAM,CAAC,WAAW,CAAC,OAAO;SAClC,CAAC,EACF,IAAI,kCAAoB,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,EAC7C,IAAI,uCAAmB,CACnB,cAAO,CAAC,WAAW,CAAC,iBAAiB,CAAC,IAAI,GAAG,WAAW,EACxD,cAAO,CAAC,WAAW,CAAC,iBAAiB,CAAC,UAAU,CACnD,CACJ,CAAC;IACN,CAAC;CACJ;AAED,MAAM,wBAAwB,GAAG,IAAI,wBAAwB,EAAE,CAAC;AAChE,MAAM,iBAAiB,GAAG,wBAAwB,CAAC,iBAAiB,CAAC;AAE5D,8CAAiB"}
1
+ {"version":3,"file":"GardensDataSourceFactory.js","sourceRoot":"","sources":["../../../src/integration-engine/datasources/GardensDataSourceFactory.ts"],"names":[],"mappings":";;;AAAA,mDAA+B;AAC/B,yEAAsE;AACtE,mFAAqG;AACrG,6IAA0I;AAC1I,mFAAkF;AAElF,MAAM,wBAAwB;IAG1B;QACI,IAAI,CAAC,iBAAiB,GAAG,IAAI,wBAAU,CACnC,cAAO,CAAC,WAAW,CAAC,iBAAiB,CAAC,IAAI,EAC1C,IAAI,qDAAyB,CAAC;YAC1B,OAAO,EAAE;gBACL,aAAa,EAAE,QAAQ,GAAG,eAAM,CAAC,WAAW,CAAC,kBAAkB;aAClE;YACD,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,eAAM,CAAC,WAAW,CAAC,OAAO;SAClC,CAAC,EACF,IAAI,kCAAoB,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,EAC7C,IAAI,uCAAmB,CACnB,cAAO,CAAC,WAAW,CAAC,iBAAiB,CAAC,IAAI,GAAG,WAAW,EACxD,cAAO,CAAC,WAAW,CAAC,iBAAiB,CAAC,UAAU,CACnD,CACJ,CAAC;IACN,CAAC;CACJ;AAED,MAAM,wBAAwB,GAAG,IAAI,wBAAwB,EAAE,CAAC;AAChE,MAAM,iBAAiB,GAAG,wBAAwB,CAAC,iBAAiB,CAAC;AAE5D,8CAAiB"}
package/docs/openapi.yaml CHANGED
@@ -5,28 +5,28 @@ info:
5
5
  description: Locations and Description of Gardens
6
6
  version: 1.0.0
7
7
  contact:
8
- name: Golemio Prague Data Plaform
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/v2
13
+ - url: https://api.golemio.cz
14
14
  description: Main (production) server
15
- - url: https://rabin.golemio.cz/v2
15
+ - url: https://rabin.golemio.cz
16
16
  description: Test (development) server
17
17
 
18
18
  tags:
19
- - name: 🌳 Gardens
19
+ - name: 🌳 Gardens (v2)
20
20
  description: <img src="https://img.shields.io/badge/opendata-available-green" alt="golemioapi-opendata-badge" /> 💡 Locations and Description of Gardens
21
21
 
22
22
  paths:
23
- /gardens/:
23
+ /v2/gardens:
24
24
  get:
25
25
  summary: GET All Gardens
26
26
  operationId: GETAllGardens
27
27
  description: ""
28
28
  tags:
29
- - 🌳 Gardens
29
+ - 🌳 Gardens (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: "5000"
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: "10"
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: "0"
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
- /gardens/{id}:
119
+ /v2/gardens/{id}:
120
120
  get:
121
121
  summary: GET Gardens
122
122
  operationId: GETGardens
123
123
  description: ""
124
124
  tags:
125
- - 🌳 Gardens
125
+ - 🌳 Gardens (v2)
126
126
  parameters:
127
127
  - name: id
128
128
  in: path
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golemio/gardens",
3
- "version": "1.2.5-dev.899783218",
3
+ "version": "1.2.5-rc.1243988941",
4
4
  "description": "Golemio Gardens Module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -33,9 +33,9 @@
33
33
  "devDependencies": {
34
34
  "@commitlint/cli": "^16.2.1",
35
35
  "@commitlint/config-conventional": "^16.2.1",
36
- "@golemio/cli": "1.4.3",
37
- "@golemio/core": "1.8.0",
38
- "@golemio/db-common": "1.1.1",
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",
@@ -67,6 +67,6 @@
67
67
  "typescript-transform-paths": "^3.4.6"
68
68
  },
69
69
  "peerDependencies": {
70
- "@golemio/core": ">=1.7.0"
70
+ "@golemio/core": ">=1.9.0"
71
71
  }
72
72
  }