@golemio/microclimate 1.1.2-dev.788237500 → 1.1.2
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/db/example/00_truncate_tables.sql +2 -2
- package/db/example/01_microclimate.sql +2 -44
- package/dist/schema-definitions/index.js +0 -6
- package/dist/schema-definitions/index.js.map +1 -1
- package/docs/implementation_documentation.md +1 -20
- package/package.json +2 -2
- package/db/migrations/postgresql/20230215185618-og-api.js +0 -53
- package/db/migrations/postgresql/sqls/20230215185618-og-api-down.sql +0 -2
- package/db/migrations/postgresql/sqls/20230215185618-og-api-up.sql +0 -164
- package/dist/output-gateway/MicroclimateRouter.d.ts +0 -4
- package/dist/output-gateway/MicroclimateRouter.js +0 -85
- package/dist/output-gateway/MicroclimateRouter.js.map +0 -1
- package/dist/output-gateway/helpers/LocationsOutputMapper.d.ts +0 -18
- package/dist/output-gateway/helpers/LocationsOutputMapper.js +0 -35
- package/dist/output-gateway/helpers/LocationsOutputMapper.js.map +0 -1
- package/dist/output-gateway/helpers/PointsOutputMapper.d.ts +0 -27
- package/dist/output-gateway/helpers/PointsOutputMapper.js +0 -45
- package/dist/output-gateway/helpers/PointsOutputMapper.js.map +0 -1
- package/dist/output-gateway/index.d.ts +0 -1
- package/dist/output-gateway/index.js +0 -18
- package/dist/output-gateway/index.js.map +0 -1
- package/dist/output-gateway/repositories/SensorDevicesImportRepository.d.ts +0 -19
- package/dist/output-gateway/repositories/SensorDevicesImportRepository.js +0 -55
- package/dist/output-gateway/repositories/SensorDevicesImportRepository.js.map +0 -1
- package/dist/output-gateway/repositories/SensorMeasurementsViewRepository.d.ts +0 -16
- package/dist/output-gateway/repositories/SensorMeasurementsViewRepository.js +0 -49
- package/dist/output-gateway/repositories/SensorMeasurementsViewRepository.js.map +0 -1
- package/dist/output-gateway/repositories/SensorPointsViewRepository.d.ts +0 -11
- package/dist/output-gateway/repositories/SensorPointsViewRepository.js +0 -43
- package/dist/output-gateway/repositories/SensorPointsViewRepository.js.map +0 -1
- package/dist/output-gateway/repositories/index.d.ts +0 -3
- package/dist/output-gateway/repositories/index.js +0 -20
- package/dist/output-gateway/repositories/index.js.map +0 -1
- package/dist/schema-definitions/SensorDevicesImport.d.ts +0 -33
- package/dist/schema-definitions/SensorDevicesImport.js +0 -8
- package/dist/schema-definitions/SensorDevicesImport.js.map +0 -1
- package/dist/schema-definitions/SensorMeasurementsView.d.ts +0 -13
- package/dist/schema-definitions/SensorMeasurementsView.js +0 -8
- package/dist/schema-definitions/SensorMeasurementsView.js.map +0 -1
- package/dist/schema-definitions/SensorPointsView.d.ts +0 -23
- package/dist/schema-definitions/SensorPointsView.js +0 -8
- package/dist/schema-definitions/SensorPointsView.js.map +0 -1
- package/dist/schema-definitions/models/SensorDevicesImportModel.d.ts +0 -32
- package/dist/schema-definitions/models/SensorDevicesImportModel.js +0 -37
- package/dist/schema-definitions/models/SensorDevicesImportModel.js.map +0 -1
- package/dist/schema-definitions/models/SensorMeasurementsViewModel.d.ts +0 -12
- package/dist/schema-definitions/models/SensorMeasurementsViewModel.js +0 -17
- package/dist/schema-definitions/models/SensorMeasurementsViewModel.js.map +0 -1
- package/dist/schema-definitions/models/SensorPointsViewModel.d.ts +0 -22
- package/dist/schema-definitions/models/SensorPointsViewModel.js +0 -27
- package/dist/schema-definitions/models/SensorPointsViewModel.js.map +0 -1
- package/docs/openapi.yaml +0 -298
package/docs/openapi.yaml
DELETED
|
@@ -1,298 +0,0 @@
|
|
|
1
|
-
openapi: 3.0.3
|
|
2
|
-
|
|
3
|
-
info:
|
|
4
|
-
title: 🌡️ Microclimate
|
|
5
|
-
description: Microclimate info
|
|
6
|
-
version: 1.0.0
|
|
7
|
-
contact:
|
|
8
|
-
name: Golemio Prague Data Platform
|
|
9
|
-
email: golemio@operatorict.cz
|
|
10
|
-
url: https://golemio.cz
|
|
11
|
-
|
|
12
|
-
servers:
|
|
13
|
-
- url: https://api.golemio.cz/v2
|
|
14
|
-
description: Main (production) server
|
|
15
|
-
- url: https://rabin.golemio.cz/v2
|
|
16
|
-
description: Test (development) server
|
|
17
|
-
|
|
18
|
-
tags:
|
|
19
|
-
- name: 🌡️ Microclimate
|
|
20
|
-
description: 💡 Microclimate info
|
|
21
|
-
|
|
22
|
-
paths:
|
|
23
|
-
/microclimate/locations:
|
|
24
|
-
get:
|
|
25
|
-
summary: GET All Microclimate Sensor Locations
|
|
26
|
-
operationId: GETAllMicroclimateSensorLocations
|
|
27
|
-
description: ""
|
|
28
|
-
tags:
|
|
29
|
-
- 🌡️ Microclimate
|
|
30
|
-
parameters:
|
|
31
|
-
- name: locationId
|
|
32
|
-
in: query
|
|
33
|
-
description: Filter by location
|
|
34
|
-
required: false
|
|
35
|
-
example: 130
|
|
36
|
-
schema:
|
|
37
|
-
type: number
|
|
38
|
-
responses:
|
|
39
|
-
"200":
|
|
40
|
-
description: OK
|
|
41
|
-
headers: {}
|
|
42
|
-
content:
|
|
43
|
-
application/json; charset=utf-8:
|
|
44
|
-
schema:
|
|
45
|
-
type: array
|
|
46
|
-
items:
|
|
47
|
-
$ref: "#/components/schemas/Location"
|
|
48
|
-
|
|
49
|
-
"401":
|
|
50
|
-
$ref: "#/components/responses/UnauthorizedError"
|
|
51
|
-
"403":
|
|
52
|
-
$ref: "#/components/responses/ForbiddenError"
|
|
53
|
-
|
|
54
|
-
/microclimate/points:
|
|
55
|
-
get:
|
|
56
|
-
summary: GET Microclimate Sensor Points
|
|
57
|
-
operationId: GETMicroclimateSensorPoints
|
|
58
|
-
description: ""
|
|
59
|
-
tags:
|
|
60
|
-
- 🌡️ Microclimate
|
|
61
|
-
parameters:
|
|
62
|
-
- name: locationId
|
|
63
|
-
in: query
|
|
64
|
-
description: Filter by location
|
|
65
|
-
required: false
|
|
66
|
-
example: 130
|
|
67
|
-
schema:
|
|
68
|
-
type: number
|
|
69
|
-
- name: pointId
|
|
70
|
-
in: query
|
|
71
|
-
description: Filter by location
|
|
72
|
-
required: false
|
|
73
|
-
example: 131
|
|
74
|
-
schema:
|
|
75
|
-
type: number
|
|
76
|
-
responses:
|
|
77
|
-
"200":
|
|
78
|
-
description: OK
|
|
79
|
-
headers: {}
|
|
80
|
-
content:
|
|
81
|
-
application/json; charset=utf-8:
|
|
82
|
-
schema:
|
|
83
|
-
$ref: "#/components/schemas/Point"
|
|
84
|
-
"401":
|
|
85
|
-
$ref: "#/components/responses/UnauthorizedError"
|
|
86
|
-
"403":
|
|
87
|
-
$ref: "#/components/responses/ForbiddenError"
|
|
88
|
-
|
|
89
|
-
/microclimate/measurements:
|
|
90
|
-
get:
|
|
91
|
-
summary: GET All Microclimate Sensor Measurements
|
|
92
|
-
operationId: GETAllMicroclimateSensorMeasurements
|
|
93
|
-
description: ""
|
|
94
|
-
tags:
|
|
95
|
-
- 🌡️ Microclimate
|
|
96
|
-
parameters:
|
|
97
|
-
- name: locationId
|
|
98
|
-
in: query
|
|
99
|
-
description: Filter by location
|
|
100
|
-
required: false
|
|
101
|
-
example: 130
|
|
102
|
-
schema:
|
|
103
|
-
type: number
|
|
104
|
-
- name: pointId
|
|
105
|
-
in: query
|
|
106
|
-
description: Filter by location
|
|
107
|
-
required: false
|
|
108
|
-
example: 131
|
|
109
|
-
schema:
|
|
110
|
-
type: number
|
|
111
|
-
- name: measure
|
|
112
|
-
in: query
|
|
113
|
-
description: Filter by measure type
|
|
114
|
-
required: false
|
|
115
|
-
example: air_temp200
|
|
116
|
-
schema:
|
|
117
|
-
type: string
|
|
118
|
-
- name: from
|
|
119
|
-
in: query
|
|
120
|
-
description: Filter by measured_at
|
|
121
|
-
required: false
|
|
122
|
-
example: 2023-02-16T23:03:42.588Z
|
|
123
|
-
schema:
|
|
124
|
-
type: string
|
|
125
|
-
format: date-time
|
|
126
|
-
- name: to
|
|
127
|
-
in: query
|
|
128
|
-
description: Filter by measured_at
|
|
129
|
-
required: false
|
|
130
|
-
example: 2023-02-16T23:03:42.588Z
|
|
131
|
-
schema:
|
|
132
|
-
type: string
|
|
133
|
-
format: date-time
|
|
134
|
-
responses:
|
|
135
|
-
"200":
|
|
136
|
-
description: OK
|
|
137
|
-
headers: {}
|
|
138
|
-
content:
|
|
139
|
-
application/json; charset=utf-8:
|
|
140
|
-
schema:
|
|
141
|
-
type: array
|
|
142
|
-
items:
|
|
143
|
-
$ref: "#/components/schemas/Measurement"
|
|
144
|
-
"401":
|
|
145
|
-
$ref: "#/components/responses/UnauthorizedError"
|
|
146
|
-
"403":
|
|
147
|
-
$ref: "#/components/responses/ForbiddenError"
|
|
148
|
-
components:
|
|
149
|
-
responses:
|
|
150
|
-
UnauthorizedError:
|
|
151
|
-
description: API key is missing or invalid
|
|
152
|
-
headers:
|
|
153
|
-
WWW_Authenticate:
|
|
154
|
-
schema:
|
|
155
|
-
type: string
|
|
156
|
-
ForbiddenError:
|
|
157
|
-
description: Forbidden
|
|
158
|
-
headers: { }
|
|
159
|
-
content:
|
|
160
|
-
application/json; charset=utf-8:
|
|
161
|
-
schema:
|
|
162
|
-
type: object
|
|
163
|
-
properties:
|
|
164
|
-
error_message:
|
|
165
|
-
type: string
|
|
166
|
-
error_status:
|
|
167
|
-
type: number
|
|
168
|
-
required:
|
|
169
|
-
- error_message
|
|
170
|
-
- error_status
|
|
171
|
-
examples:
|
|
172
|
-
response:
|
|
173
|
-
value:
|
|
174
|
-
error_message: Forbidden
|
|
175
|
-
error_status: 403
|
|
176
|
-
schemas:
|
|
177
|
-
Location:
|
|
178
|
-
type: object
|
|
179
|
-
properties:
|
|
180
|
-
location_id:
|
|
181
|
-
type: integer
|
|
182
|
-
example: 130
|
|
183
|
-
location:
|
|
184
|
-
type: string
|
|
185
|
-
example: Pražská Holešovická tržnice
|
|
186
|
-
loc_description:
|
|
187
|
-
type: string
|
|
188
|
-
example: areál bez zeleně
|
|
189
|
-
loc_orientation:
|
|
190
|
-
type: string
|
|
191
|
-
example: východ-západ
|
|
192
|
-
loc_surface:
|
|
193
|
-
type: string
|
|
194
|
-
example: asfalt/beton
|
|
195
|
-
address:
|
|
196
|
-
type: string
|
|
197
|
-
example: Pražská tržnice
|
|
198
|
-
points:
|
|
199
|
-
type: array
|
|
200
|
-
items:
|
|
201
|
-
type: object
|
|
202
|
-
properties:
|
|
203
|
-
point_id:
|
|
204
|
-
type: integer
|
|
205
|
-
example: 131
|
|
206
|
-
point_name:
|
|
207
|
-
type: string
|
|
208
|
-
example: Pražská tržnice osvětlení
|
|
209
|
-
required:
|
|
210
|
-
- location_id
|
|
211
|
-
Point:
|
|
212
|
-
type: object
|
|
213
|
-
properties:
|
|
214
|
-
point_id:
|
|
215
|
-
type: integer
|
|
216
|
-
example: 131
|
|
217
|
-
location_id:
|
|
218
|
-
type: integer
|
|
219
|
-
example: 130
|
|
220
|
-
point_named:
|
|
221
|
-
type: string
|
|
222
|
-
example: Pražská tržnice osvětlení
|
|
223
|
-
location:
|
|
224
|
-
type: string
|
|
225
|
-
example: Pražská Holešovická tržnice
|
|
226
|
-
loc_description:
|
|
227
|
-
type: string
|
|
228
|
-
example: areál bez zeleně
|
|
229
|
-
loc_orientation:
|
|
230
|
-
type: string
|
|
231
|
-
example: východ-západ
|
|
232
|
-
loc_surface:
|
|
233
|
-
type: string
|
|
234
|
-
example: asfalt/beton
|
|
235
|
-
lat:
|
|
236
|
-
type: number
|
|
237
|
-
example: 50.098934
|
|
238
|
-
lng:
|
|
239
|
-
type: number
|
|
240
|
-
example: 14.445023
|
|
241
|
-
x_jtsk:
|
|
242
|
-
type: number
|
|
243
|
-
example: -741926.70
|
|
244
|
-
y_jtsk:
|
|
245
|
-
type: number
|
|
246
|
-
example: -1040946.85
|
|
247
|
-
elevation_m:
|
|
248
|
-
type: number
|
|
249
|
-
example: 184.3
|
|
250
|
-
measures:
|
|
251
|
-
type: array
|
|
252
|
-
items:
|
|
253
|
-
type: object
|
|
254
|
-
properties:
|
|
255
|
-
measure:
|
|
256
|
-
type: string
|
|
257
|
-
example: air_temp200
|
|
258
|
-
measure_cz:
|
|
259
|
-
type: string
|
|
260
|
-
example: Teplota vzduchu
|
|
261
|
-
unit:
|
|
262
|
-
type: string
|
|
263
|
-
example: °C
|
|
264
|
-
required:
|
|
265
|
-
- measure
|
|
266
|
-
- unit
|
|
267
|
-
sensor_position:
|
|
268
|
-
type: string
|
|
269
|
-
example: veřejné osvětlení
|
|
270
|
-
sensor_position_detail:
|
|
271
|
-
type: string
|
|
272
|
-
example: veřejné osvětlení ve středu Tržnice
|
|
273
|
-
required:
|
|
274
|
-
- point_id
|
|
275
|
-
- location_id
|
|
276
|
-
Measurement:
|
|
277
|
-
type: object
|
|
278
|
-
properties:
|
|
279
|
-
point_id:
|
|
280
|
-
type: number
|
|
281
|
-
example: 131
|
|
282
|
-
location_id:
|
|
283
|
-
type: number
|
|
284
|
-
example: 130
|
|
285
|
-
measured_at:
|
|
286
|
-
type: string
|
|
287
|
-
example: 2022-08-21T17:30:00.000Z
|
|
288
|
-
measure:
|
|
289
|
-
type: string
|
|
290
|
-
example: air_temp200
|
|
291
|
-
value:
|
|
292
|
-
type: number
|
|
293
|
-
example: 20
|
|
294
|
-
unit:
|
|
295
|
-
type: string
|
|
296
|
-
example: °C
|
|
297
|
-
required:
|
|
298
|
-
- measured_at
|