@golemio/municipal-authorities 1.2.2-rc.1450458255 → 1.2.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.
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
asyncapi: 3.0.0
|
|
2
|
+
info:
|
|
3
|
+
title: Municipal Authorities
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
description: This module saves data from municipal authorities of the city of Prague
|
|
6
|
+
channels:
|
|
7
|
+
municipalauthorities.refreshDataInDB:
|
|
8
|
+
address: dataplatform.municipalauthorities.refreshDataInDB
|
|
9
|
+
description: saves data from municipal authorities to the table municipalauthorities
|
|
10
|
+
bindings:
|
|
11
|
+
amqp:
|
|
12
|
+
is: queue
|
|
13
|
+
queue:
|
|
14
|
+
durable: true
|
|
15
|
+
messages:
|
|
16
|
+
empty:
|
|
17
|
+
$ref: "#/components/messages/emptyMessage"
|
|
18
|
+
municipalauthorities.refreshWaitingQueues:
|
|
19
|
+
address: dataplatform.municipalauthorities.refreshWaitingQueues
|
|
20
|
+
description: saves data from municipal authorities to the table skodapalace_queues
|
|
21
|
+
bindings:
|
|
22
|
+
amqp:
|
|
23
|
+
is: queue
|
|
24
|
+
queue:
|
|
25
|
+
durable: true
|
|
26
|
+
messages:
|
|
27
|
+
refreshWaitingQueues:
|
|
28
|
+
$ref: "#/components/messages/emptyMessage"
|
|
29
|
+
municipalauthorities.saveWaitingQueuesDataToHistory:
|
|
30
|
+
address: dataplatform.municipalauthorities.saveWaitingQueuesDataToHistory
|
|
31
|
+
description: saves data to the table skodapalace_queues_history for historization
|
|
32
|
+
bindings:
|
|
33
|
+
amqp:
|
|
34
|
+
is: queue
|
|
35
|
+
queue:
|
|
36
|
+
durable: true
|
|
37
|
+
messages:
|
|
38
|
+
updateGeoAndDistrictMessage:
|
|
39
|
+
$ref: "#/components/messages/municipalauthorities.saveWaitingQueuesDataToHistory"
|
|
40
|
+
operations:
|
|
41
|
+
municipalauthorities.refreshDataInDB:
|
|
42
|
+
action: "send"
|
|
43
|
+
channel:
|
|
44
|
+
$ref: "#/channels/municipalauthorities.refreshDataInDB"
|
|
45
|
+
municipalauthorities.refreshWaitingQueues:
|
|
46
|
+
action: "send"
|
|
47
|
+
channel:
|
|
48
|
+
$ref: "#/channels/municipalauthorities.refreshWaitingQueues"
|
|
49
|
+
municipalauthorities.saveWaitingQueuesDataToHistory:
|
|
50
|
+
action: "send"
|
|
51
|
+
channel:
|
|
52
|
+
$ref: "#/channels/municipalauthorities.saveWaitingQueuesDataToHistory"
|
|
53
|
+
components:
|
|
54
|
+
messages:
|
|
55
|
+
emptyMessage:
|
|
56
|
+
title: Empty message
|
|
57
|
+
municipalauthorities.saveWaitingQueuesDataToHistory:
|
|
58
|
+
payload:
|
|
59
|
+
$ref: "#/components/schemas/municipalauthorities.saveWaitingQueuesDataToHistory"
|
|
60
|
+
schemas:
|
|
61
|
+
municipalauthorities.saveWaitingQueuesDataToHistory:
|
|
62
|
+
type: object
|
|
63
|
+
properties:
|
|
64
|
+
last_updated:
|
|
65
|
+
type: string
|
|
66
|
+
format: date-time
|
|
67
|
+
example: "2021-06-01T12:00:00Z"
|
|
68
|
+
municipal_authority_id:
|
|
69
|
+
type: string
|
|
70
|
+
example: "skoduv-palac"
|
|
71
|
+
activity:
|
|
72
|
+
type: string
|
|
73
|
+
example: "Lítačka - objednaní klienti"
|
|
74
|
+
number_of_person_in_queue:
|
|
75
|
+
type: integer
|
|
76
|
+
example: 10
|
|
77
|
+
number_of_serving_counters:
|
|
78
|
+
type: integer
|
|
79
|
+
example: 5
|
|
80
|
+
title:
|
|
81
|
+
type: string
|
|
82
|
+
example: "Lítačka"
|
|
83
|
+
updated_at:
|
|
84
|
+
type: string
|
|
85
|
+
format: date-time
|
|
86
|
+
example: "2021-06-01T12:00:00Z"
|
|
87
|
+
nullable: true
|
|
88
|
+
additionalProperties: false
|
|
@@ -65,7 +65,7 @@ Modul slouží k ukládání a poskytování informací o Municipal Authorities.
|
|
|
65
65
|
- závislé fronty (do kterých jsou odesílány zprávy z metody workeru)
|
|
66
66
|
- název: dataplatform.municipalauthorities.saveWaitingQueuesDataToHistory
|
|
67
67
|
|
|
68
|
-
#### _task: SaveWaitingQueuesDataToHistoryTask
|
|
68
|
+
#### \_task: SaveWaitingQueuesDataToHistoryTask
|
|
69
69
|
|
|
70
70
|
Ukládá data do db pro historizaci.
|
|
71
71
|
|
|
@@ -96,6 +96,8 @@ Ukládá data do db pro historizaci.
|
|
|
96
96
|
- api je veřejné
|
|
97
97
|
- postman kolekce
|
|
98
98
|
- TBD
|
|
99
|
+
- Asyncapi dokumentace RabbitMQ front
|
|
100
|
+
- [AsyncAPI](./asyncapi.yaml)
|
|
99
101
|
|
|
100
102
|
#### /municipalauthorities
|
|
101
103
|
|
package/docs/openapi.yaml
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golemio/municipal-authorities",
|
|
3
|
-
"version": "1.2.2
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "Golemio Municipal Authorities Module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -70,4 +70,4 @@
|
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"geojson": "^0.5.0"
|
|
72
72
|
}
|
|
73
|
-
}
|
|
73
|
+
}
|