@golemio/bicycle-counters 1.3.3-dev.1450636341 → 1.3.3
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/docs/asyncapi.yaml +157 -0
- package/package.json +3 -3
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
asyncapi: 3.0.0
|
|
2
|
+
info:
|
|
3
|
+
title: Bicycle Counters
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
description: Bicycle Counters
|
|
6
|
+
channels:
|
|
7
|
+
refreshCameaDataLastXHoursInDB:
|
|
8
|
+
address: dataplatform.bicyclecounters.refreshCameaDataLastXHoursInDB
|
|
9
|
+
description: updates locations, direction database tables and sends message to queue updateCamea
|
|
10
|
+
bindings:
|
|
11
|
+
amqp:
|
|
12
|
+
is: queue
|
|
13
|
+
queue:
|
|
14
|
+
durable: true
|
|
15
|
+
messages:
|
|
16
|
+
empty:
|
|
17
|
+
$ref: "#/components/messages/EmptyObject"
|
|
18
|
+
refreshCameaDataPreviousDayInDB:
|
|
19
|
+
address: dataplatform.bicyclecounters.refreshCameaDataPreviousDayInDB
|
|
20
|
+
description: updates locations, direction database tables and sends message to queue updateCamea
|
|
21
|
+
bindings:
|
|
22
|
+
amqp:
|
|
23
|
+
is: queue
|
|
24
|
+
queue:
|
|
25
|
+
durable: true
|
|
26
|
+
messages:
|
|
27
|
+
empty:
|
|
28
|
+
$ref: "#/components/messages/EmptyObject"
|
|
29
|
+
refreshCameaDataSpecificDayInDB:
|
|
30
|
+
address: dataplatform.bicyclecounters.refreshCameaDataSpecificDayInDB
|
|
31
|
+
description: updates locations, direction database tables and sends message to queue updateCamea
|
|
32
|
+
bindings:
|
|
33
|
+
amqp:
|
|
34
|
+
is: queue
|
|
35
|
+
queue:
|
|
36
|
+
durable: true
|
|
37
|
+
messages:
|
|
38
|
+
date:
|
|
39
|
+
$ref: "#/components/messages/date"
|
|
40
|
+
updateCamea:
|
|
41
|
+
address: dataplatform.bicyclecounters.updateCamea
|
|
42
|
+
description: based on the parameters from the message updates measurement data in the database
|
|
43
|
+
bindings:
|
|
44
|
+
amqp:
|
|
45
|
+
is: queue
|
|
46
|
+
queue:
|
|
47
|
+
durable: true
|
|
48
|
+
messages:
|
|
49
|
+
vendorAndDuration:
|
|
50
|
+
$ref: "#/components/messages/vendorAndDuration"
|
|
51
|
+
refreshEcoCounterDataInDB:
|
|
52
|
+
address: dataplatform.bicyclecounters.refreshEcoCounterDataInDB
|
|
53
|
+
description: updates locations, direction database tables and sends multiple messages to queue updateEcoCounter (1 for each direction)
|
|
54
|
+
bindings:
|
|
55
|
+
amqp:
|
|
56
|
+
is: queue
|
|
57
|
+
queue:
|
|
58
|
+
durable: true
|
|
59
|
+
messages:
|
|
60
|
+
empty:
|
|
61
|
+
$ref: "#/components/messages/EmptyObject"
|
|
62
|
+
updateEcoCounter:
|
|
63
|
+
address: dataplatform.bicyclecounters.updateEcoCounter
|
|
64
|
+
description: based on the parameters from the message updates measurement data in the database
|
|
65
|
+
bindings:
|
|
66
|
+
amqp:
|
|
67
|
+
is: queue
|
|
68
|
+
queue:
|
|
69
|
+
durable: true
|
|
70
|
+
messages:
|
|
71
|
+
updateEcoCounterMessage:
|
|
72
|
+
$ref: "#/components/messages/updateEcoCounterMessage"
|
|
73
|
+
operations:
|
|
74
|
+
refreshCameaDataLastXHoursInDB:
|
|
75
|
+
action: "send"
|
|
76
|
+
channel:
|
|
77
|
+
$ref: "#/channels/refreshCameaDataLastXHoursInDB"
|
|
78
|
+
refreshCameaDataPreviousDayInDB:
|
|
79
|
+
action: "send"
|
|
80
|
+
channel:
|
|
81
|
+
$ref: "#/channels/refreshCameaDataPreviousDayInDB"
|
|
82
|
+
refreshCameaDataSpecificDayInDB:
|
|
83
|
+
action: "send"
|
|
84
|
+
channel:
|
|
85
|
+
$ref: "#/channels/refreshCameaDataSpecificDayInDB"
|
|
86
|
+
updateCamea:
|
|
87
|
+
action: "send"
|
|
88
|
+
channel:
|
|
89
|
+
$ref: "#/channels/updateCamea"
|
|
90
|
+
refreshEcoCounterDataInDB:
|
|
91
|
+
action: "send"
|
|
92
|
+
channel:
|
|
93
|
+
$ref: "#/channels/refreshEcoCounterDataInDB"
|
|
94
|
+
updateEcoCounter:
|
|
95
|
+
action: "send"
|
|
96
|
+
channel:
|
|
97
|
+
$ref: "#/channels/updateEcoCounter"
|
|
98
|
+
components:
|
|
99
|
+
messages:
|
|
100
|
+
EmptyObject:
|
|
101
|
+
payload:
|
|
102
|
+
type: object
|
|
103
|
+
additionalProperties: false
|
|
104
|
+
vendorAndDuration:
|
|
105
|
+
payload:
|
|
106
|
+
type: object
|
|
107
|
+
$ref: "#/components/schemas/IVendorAndDuration"
|
|
108
|
+
additionalProperties: false
|
|
109
|
+
date:
|
|
110
|
+
payload:
|
|
111
|
+
type: object
|
|
112
|
+
properties:
|
|
113
|
+
date:
|
|
114
|
+
type: string
|
|
115
|
+
format: date
|
|
116
|
+
additionalProperties: false
|
|
117
|
+
updateEcoCounterMessage:
|
|
118
|
+
payload:
|
|
119
|
+
type: object
|
|
120
|
+
$ref: "#/components/schemas/IUpdateEcoCounterMessage"
|
|
121
|
+
additionalProperties: false
|
|
122
|
+
schemas:
|
|
123
|
+
IVendorAndDuration:
|
|
124
|
+
type: object
|
|
125
|
+
properties:
|
|
126
|
+
id:
|
|
127
|
+
type: string
|
|
128
|
+
description: vendor id
|
|
129
|
+
duration:
|
|
130
|
+
type: number
|
|
131
|
+
description: supports three modes 0 - last3Hours, 1 - previousDay, 2 - specificDay
|
|
132
|
+
enum:
|
|
133
|
+
- 0
|
|
134
|
+
- 1
|
|
135
|
+
- 2
|
|
136
|
+
date:
|
|
137
|
+
type: string
|
|
138
|
+
nullable: true
|
|
139
|
+
format: date
|
|
140
|
+
description: relevant only if duration is 2
|
|
141
|
+
additionalProperties: false
|
|
142
|
+
IUpdateEcoCounterMessage:
|
|
143
|
+
type: object
|
|
144
|
+
properties:
|
|
145
|
+
id:
|
|
146
|
+
type: string
|
|
147
|
+
description: vendor id
|
|
148
|
+
category:
|
|
149
|
+
type: string
|
|
150
|
+
description: category of the counter, only 'bicycle' is used
|
|
151
|
+
directions_id:
|
|
152
|
+
type: string
|
|
153
|
+
description: direction id
|
|
154
|
+
locations_id:
|
|
155
|
+
type: string
|
|
156
|
+
description: location id
|
|
157
|
+
additionalProperties: false
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golemio/bicycle-counters",
|
|
3
|
-
"version": "1.3.3
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"description": "Golemio Bicycle Counters Module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@commitlint/cli": "^11.0.0",
|
|
33
33
|
"@commitlint/config-conventional": "^11.0.0",
|
|
34
|
-
"@golemio/cli": "1.7.
|
|
35
|
-
"@golemio/core": "1.
|
|
34
|
+
"@golemio/cli": "1.7.3",
|
|
35
|
+
"@golemio/core": "1.15.0",
|
|
36
36
|
"@golemio/db-common": "1.1.4",
|
|
37
37
|
"@golemio/eslint-config": "1.1.2",
|
|
38
38
|
"@types/chai": "4.2.3",
|