@golemio/waze-ccp 1.1.8-dev.1082572769 → 1.1.8-dev.1086028547
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,2 +1,2 @@
|
|
|
1
|
-
TRUNCATE wazeccp_alerts
|
|
1
|
+
TRUNCATE wazeccp_alerts;
|
|
2
2
|
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
openapi: 3.0.3
|
|
2
|
+
info:
|
|
3
|
+
title: 👻 Waze
|
|
4
|
+
description: >-
|
|
5
|
+
<p>💡👻 Waze.</p>
|
|
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://rabin.golemio.cz
|
|
14
|
+
description: Test (development) server
|
|
15
|
+
- url: https://api.golemio.cz
|
|
16
|
+
description: Main (production) server
|
|
17
|
+
|
|
18
|
+
paths:
|
|
19
|
+
/v1/potholes/data:
|
|
20
|
+
get:
|
|
21
|
+
summary: GET All Pot holes
|
|
22
|
+
description: Provides information about pot holes
|
|
23
|
+
tags:
|
|
24
|
+
- 👻 Waze (v1)
|
|
25
|
+
operationId: getPotHoles
|
|
26
|
+
parameters:
|
|
27
|
+
- name: from
|
|
28
|
+
in: query
|
|
29
|
+
description: Date in ISO8601, limits data measured from this datetime
|
|
30
|
+
required: false
|
|
31
|
+
schema:
|
|
32
|
+
type: string
|
|
33
|
+
example: "2020-05-16T04:27:58.000Z"
|
|
34
|
+
- name: to
|
|
35
|
+
in: query
|
|
36
|
+
description: Date in ISO8601, limits data measured up until this datetime (default 7 days into past)
|
|
37
|
+
required: false
|
|
38
|
+
schema:
|
|
39
|
+
type: string
|
|
40
|
+
example: "2020-05-18T04:27:58.000Z"
|
|
41
|
+
responses:
|
|
42
|
+
"200":
|
|
43
|
+
description: successful operation
|
|
44
|
+
content:
|
|
45
|
+
application/json:
|
|
46
|
+
schema:
|
|
47
|
+
$ref: "#/components/schemas/PotHolesCollection"
|
|
48
|
+
"401":
|
|
49
|
+
$ref: "#/components/responses/UnauthorizedError"
|
|
50
|
+
"404":
|
|
51
|
+
description: Not found
|
|
52
|
+
components:
|
|
53
|
+
responses:
|
|
54
|
+
UnauthorizedError:
|
|
55
|
+
description: API key is missing or invalid
|
|
56
|
+
headers:
|
|
57
|
+
WWW_Authenticate:
|
|
58
|
+
schema:
|
|
59
|
+
type: string
|
|
60
|
+
|
|
61
|
+
schemas:
|
|
62
|
+
PotHolesCollection:
|
|
63
|
+
type: object
|
|
64
|
+
properties:
|
|
65
|
+
features:
|
|
66
|
+
type: array
|
|
67
|
+
items:
|
|
68
|
+
$ref: "#/components/schemas/Potholes"
|
|
69
|
+
type:
|
|
70
|
+
type: string
|
|
71
|
+
example: FeatureCollection
|
|
72
|
+
Potholes:
|
|
73
|
+
type: object
|
|
74
|
+
properties:
|
|
75
|
+
geometry:
|
|
76
|
+
type: object
|
|
77
|
+
properties:
|
|
78
|
+
coordinates:
|
|
79
|
+
type: array
|
|
80
|
+
items:
|
|
81
|
+
type: number
|
|
82
|
+
example: [14.416880835710145, 50.089021646755796]
|
|
83
|
+
type:
|
|
84
|
+
type: string
|
|
85
|
+
example: Point
|
|
86
|
+
properties:
|
|
87
|
+
type: object
|
|
88
|
+
properties:
|
|
89
|
+
uuid:
|
|
90
|
+
type: string
|
|
91
|
+
example: "a6771712-9256-b870-c6d3-e232d9bc7b1a"
|
|
92
|
+
city:
|
|
93
|
+
type: string
|
|
94
|
+
example: "Praha"
|
|
95
|
+
street:
|
|
96
|
+
type: string
|
|
97
|
+
example: "Liberecká"
|
|
98
|
+
road_type:
|
|
99
|
+
type: integer
|
|
100
|
+
example: 3
|
|
101
|
+
event_direction:
|
|
102
|
+
type: integer
|
|
103
|
+
example: 41
|
|
104
|
+
published_at:
|
|
105
|
+
type: string
|
|
106
|
+
example: "2023-11-20 15:38:04.105+01"
|
|
107
|
+
valid_from:
|
|
108
|
+
type: string
|
|
109
|
+
example: "2023-11-20 15:38:04.105+01"
|
|
110
|
+
last_reported_at:
|
|
111
|
+
type: string
|
|
112
|
+
example: "2023-11-20 15:38:04.105+01"
|
|
113
|
+
reliability:
|
|
114
|
+
type: integer
|
|
115
|
+
example: 5
|
|
116
|
+
confidence:
|
|
117
|
+
type: integer
|
|
118
|
+
example: 0
|
|
119
|
+
duplicate_count:
|
|
120
|
+
type: integer
|
|
121
|
+
example: 1
|
|
122
|
+
type:
|
|
123
|
+
type: string
|
|
124
|
+
example: Feature
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golemio/waze-ccp",
|
|
3
|
-
"version": "1.1.8-dev.
|
|
3
|
+
"version": "1.1.8-dev.1086028547",
|
|
4
4
|
"description": "Golemio Waze CCP Module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@commitlint/config-conventional": "^11.0.0",
|
|
39
39
|
"@golemio/cli": "1.5.0",
|
|
40
40
|
"@golemio/core": "1.9.4",
|
|
41
|
-
"@golemio/db-common": "1.1.3
|
|
41
|
+
"@golemio/db-common": "1.1.3",
|
|
42
42
|
"@golemio/eslint-config": "1.1.1",
|
|
43
43
|
"@types/chai": "4.2.3",
|
|
44
44
|
"@types/chai-as-promised": "7.1.2",
|