@golemio/waze-ccp 1.1.8-dev.1082572769 → 1.1.8-dev.1086068318

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,141 @@
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
+ - name: limit
42
+ in: query
43
+ description: >-
44
+ Limits number of retrieved items.
45
+ required: false
46
+ schema:
47
+ type: integer
48
+ format: int64
49
+ example: 10
50
+ - name: offset
51
+ in: query
52
+ description: Number of the first items that are skipped
53
+ required: false
54
+ schema:
55
+ type: integer
56
+ format: int64
57
+ example: 0
58
+ responses:
59
+ "200":
60
+ description: successful operation
61
+ content:
62
+ application/json:
63
+ schema:
64
+ $ref: "#/components/schemas/PotHolesCollection"
65
+ "401":
66
+ $ref: "#/components/responses/UnauthorizedError"
67
+ "404":
68
+ description: Not found
69
+ components:
70
+ responses:
71
+ UnauthorizedError:
72
+ description: API key is missing or invalid
73
+ headers:
74
+ WWW_Authenticate:
75
+ schema:
76
+ type: string
77
+
78
+ schemas:
79
+ PotHolesCollection:
80
+ type: object
81
+ properties:
82
+ features:
83
+ type: array
84
+ items:
85
+ $ref: "#/components/schemas/Potholes"
86
+ type:
87
+ type: string
88
+ example: FeatureCollection
89
+ Potholes:
90
+ type: object
91
+ properties:
92
+ geometry:
93
+ type: object
94
+ properties:
95
+ coordinates:
96
+ type: array
97
+ items:
98
+ type: number
99
+ example: [14.416880835710145, 50.089021646755796]
100
+ type:
101
+ type: string
102
+ example: Point
103
+ properties:
104
+ type: object
105
+ properties:
106
+ uuid:
107
+ type: string
108
+ example: "a6771712-9256-b870-c6d3-e232d9bc7b1a"
109
+ city:
110
+ type: string
111
+ example: "Praha"
112
+ street:
113
+ type: string
114
+ example: "Liberecká"
115
+ road_type:
116
+ type: integer
117
+ example: 3
118
+ event_direction:
119
+ type: integer
120
+ example: 41
121
+ published_at:
122
+ type: string
123
+ example: "2023-11-20 15:38:04.105+01"
124
+ valid_from:
125
+ type: string
126
+ example: "2023-11-20 15:38:04.105+01"
127
+ last_reported_at:
128
+ type: string
129
+ example: "2023-11-20 15:38:04.105+01"
130
+ reliability:
131
+ type: integer
132
+ example: 5
133
+ confidence:
134
+ type: integer
135
+ example: 0
136
+ duplicate_count:
137
+ type: integer
138
+ example: 1
139
+ type:
140
+ type: string
141
+ example: Feature
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golemio/waze-ccp",
3
- "version": "1.1.8-dev.1082572769",
3
+ "version": "1.1.8-dev.1086068318",
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-dev.1078474063",
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",