@golemio/waze-ccp 1.2.8 → 1.2.9-dev.2484306206
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/dist/integration-engine/index.d.ts +2 -5
- package/dist/integration-engine/index.js +4 -5
- package/dist/integration-engine/index.js.map +1 -1
- package/dist/integration-engine/{WazeCCPAlertsTransformation.d.ts → transformations/WazeCCPAlertsTransformation.d.ts} +2 -2
- package/dist/integration-engine/{WazeCCPAlertsTransformation.js → transformations/WazeCCPAlertsTransformation.js} +3 -3
- package/dist/integration-engine/transformations/WazeCCPAlertsTransformation.js.map +1 -0
- package/dist/integration-engine/transformations/WazeCCPIrregularitiesTransformation.d.ts +12 -0
- package/dist/integration-engine/{WazeCCPIrregularitiesTransformation.js → transformations/WazeCCPIrregularitiesTransformation.js} +10 -38
- package/dist/integration-engine/transformations/WazeCCPIrregularitiesTransformation.js.map +1 -0
- package/dist/integration-engine/transformations/WazeCCPJamsTransformation.d.ts +12 -0
- package/dist/integration-engine/transformations/WazeCCPJamsTransformation.js +41 -0
- package/dist/integration-engine/transformations/WazeCCPJamsTransformation.js.map +1 -0
- package/dist/integration-engine/transformations/index.d.ts +3 -0
- package/dist/integration-engine/transformations/index.js +20 -0
- package/dist/integration-engine/transformations/index.js.map +1 -0
- package/dist/integration-engine/workers/WazeCCPWorker.d.ts +5 -0
- package/dist/integration-engine/workers/WazeCCPWorker.js +21 -0
- package/dist/integration-engine/workers/WazeCCPWorker.js.map +1 -0
- package/dist/integration-engine/workers/index.d.ts +2 -0
- package/dist/integration-engine/workers/index.js +6 -0
- package/dist/integration-engine/workers/index.js.map +1 -0
- package/dist/integration-engine/workers/tasks/RefreshAlertsInDBTask.d.ts +9 -0
- package/dist/integration-engine/workers/tasks/RefreshAlertsInDBTask.js +37 -0
- package/dist/integration-engine/workers/tasks/RefreshAlertsInDBTask.js.map +1 -0
- package/dist/integration-engine/workers/tasks/RefreshAllDataInDBTask.d.ts +6 -0
- package/dist/integration-engine/workers/tasks/RefreshAllDataInDBTask.js +22 -0
- package/dist/integration-engine/workers/tasks/RefreshAllDataInDBTask.js.map +1 -0
- package/dist/integration-engine/workers/tasks/RefreshIrregularitiesInDBTask.d.ts +10 -0
- package/dist/integration-engine/workers/tasks/RefreshIrregularitiesInDBTask.js +46 -0
- package/dist/integration-engine/workers/tasks/RefreshIrregularitiesInDBTask.js.map +1 -0
- package/dist/integration-engine/workers/tasks/RefreshJamsInDBTask.d.ts +10 -0
- package/dist/integration-engine/workers/tasks/RefreshJamsInDBTask.js +46 -0
- package/dist/integration-engine/workers/tasks/RefreshJamsInDBTask.js.map +1 -0
- package/dist/integration-engine/workers/tasks/index.d.ts +4 -0
- package/dist/integration-engine/workers/tasks/index.js +21 -0
- package/dist/integration-engine/workers/tasks/index.js.map +1 -0
- package/dist/schema-definitions/datasources/InputIrregularitiesJsonSchema.d.ts +3 -116
- package/dist/schema-definitions/datasources/InputIrregularitiesJsonSchema.js +2 -0
- package/dist/schema-definitions/datasources/InputIrregularitiesJsonSchema.js.map +1 -1
- package/dist/schema-definitions/datasources/InputJamsJsonSchema.d.ts +3 -92
- package/dist/schema-definitions/datasources/InputJamsJsonSchema.js +7 -0
- package/dist/schema-definitions/datasources/InputJamsJsonSchema.js.map +1 -1
- package/dist/schema-definitions/datasources/interfaces/IInputIrregularities.d.ts +39 -0
- package/dist/schema-definitions/datasources/interfaces/IInputIrregularities.js +3 -0
- package/dist/schema-definitions/datasources/interfaces/IInputIrregularities.js.map +1 -0
- package/dist/schema-definitions/datasources/interfaces/IInputJams.d.ts +34 -0
- package/dist/schema-definitions/datasources/interfaces/IInputJams.js +3 -0
- package/dist/schema-definitions/datasources/interfaces/IInputJams.js.map +1 -0
- package/docs/asyncapi.yaml +1 -1
- package/docs/implementation_documentation.md +45 -1
- package/package.json +1 -1
- package/dist/integration-engine/WazeCCPAlertsTransformation.js.map +0 -1
- package/dist/integration-engine/WazeCCPIrregularitiesTransformation.d.ts +0 -10
- package/dist/integration-engine/WazeCCPIrregularitiesTransformation.js.map +0 -1
- package/dist/integration-engine/WazeCCPJamsTransformation.d.ts +0 -10
- package/dist/integration-engine/WazeCCPJamsTransformation.js +0 -69
- package/dist/integration-engine/WazeCCPJamsTransformation.js.map +0 -1
- package/dist/integration-engine/WazeCCPWorker.d.ts +0 -17
- package/dist/integration-engine/WazeCCPWorker.js +0 -84
- package/dist/integration-engine/WazeCCPWorker.js.map +0 -1
- package/dist/integration-engine/queueDefinitions.d.ts +0 -3
- package/dist/integration-engine/queueDefinitions.js +0 -56
- package/dist/integration-engine/queueDefinitions.js.map +0 -1
|
@@ -1,116 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
endTime: {
|
|
5
|
-
type: string;
|
|
6
|
-
};
|
|
7
|
-
endTimeMillis: {
|
|
8
|
-
type: string;
|
|
9
|
-
};
|
|
10
|
-
irregularities: {
|
|
11
|
-
type: string;
|
|
12
|
-
items: {
|
|
13
|
-
type: string;
|
|
14
|
-
properties: {
|
|
15
|
-
alertsCount: {
|
|
16
|
-
type: string;
|
|
17
|
-
};
|
|
18
|
-
causeType: {
|
|
19
|
-
type: string;
|
|
20
|
-
};
|
|
21
|
-
country: {
|
|
22
|
-
type: string;
|
|
23
|
-
};
|
|
24
|
-
delaySeconds: {
|
|
25
|
-
type: string;
|
|
26
|
-
};
|
|
27
|
-
detectionDate: {
|
|
28
|
-
type: string;
|
|
29
|
-
};
|
|
30
|
-
detectionDateMillis: {
|
|
31
|
-
type: string;
|
|
32
|
-
};
|
|
33
|
-
driversCount: {
|
|
34
|
-
type: string;
|
|
35
|
-
};
|
|
36
|
-
endNode: {
|
|
37
|
-
type: string;
|
|
38
|
-
};
|
|
39
|
-
highway: {
|
|
40
|
-
type: string;
|
|
41
|
-
};
|
|
42
|
-
id: {
|
|
43
|
-
type: string;
|
|
44
|
-
};
|
|
45
|
-
jamLevel: {
|
|
46
|
-
type: string;
|
|
47
|
-
};
|
|
48
|
-
length: {
|
|
49
|
-
type: string;
|
|
50
|
-
};
|
|
51
|
-
line: {
|
|
52
|
-
type: string;
|
|
53
|
-
items: {
|
|
54
|
-
type: string;
|
|
55
|
-
properties: {
|
|
56
|
-
x: {
|
|
57
|
-
type: string;
|
|
58
|
-
};
|
|
59
|
-
y: {
|
|
60
|
-
type: string;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
nComments: {
|
|
66
|
-
type: string;
|
|
67
|
-
};
|
|
68
|
-
nImages: {
|
|
69
|
-
type: string;
|
|
70
|
-
};
|
|
71
|
-
nThumbsUp: {
|
|
72
|
-
type: string;
|
|
73
|
-
};
|
|
74
|
-
regularSpeed: {
|
|
75
|
-
type: string;
|
|
76
|
-
};
|
|
77
|
-
seconds: {
|
|
78
|
-
type: string;
|
|
79
|
-
};
|
|
80
|
-
severity: {
|
|
81
|
-
type: string;
|
|
82
|
-
};
|
|
83
|
-
speed: {
|
|
84
|
-
type: string;
|
|
85
|
-
};
|
|
86
|
-
startNode: {
|
|
87
|
-
type: string;
|
|
88
|
-
};
|
|
89
|
-
street: {
|
|
90
|
-
type: string;
|
|
91
|
-
};
|
|
92
|
-
trend: {
|
|
93
|
-
type: string;
|
|
94
|
-
};
|
|
95
|
-
type: {
|
|
96
|
-
type: string;
|
|
97
|
-
};
|
|
98
|
-
updateDate: {
|
|
99
|
-
type: string;
|
|
100
|
-
};
|
|
101
|
-
updateDateMillis: {
|
|
102
|
-
type: string;
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
required: string[];
|
|
106
|
-
};
|
|
107
|
-
};
|
|
108
|
-
startTime: {
|
|
109
|
-
type: string;
|
|
110
|
-
};
|
|
111
|
-
startTimeMillis: {
|
|
112
|
-
type: string;
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
required: string[];
|
|
116
|
-
};
|
|
1
|
+
import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
|
|
2
|
+
import { IInputIrregularities } from "./interfaces/IInputIrregularities";
|
|
3
|
+
export declare const InputIrregularitiesJsonSchema: JSONSchemaType<IInputIrregularities>;
|
|
@@ -13,6 +13,7 @@ exports.InputIrregularitiesJsonSchema = {
|
|
|
13
13
|
properties: {
|
|
14
14
|
alertsCount: { type: "number" },
|
|
15
15
|
causeType: { type: "string" },
|
|
16
|
+
city: { type: "string" },
|
|
16
17
|
country: { type: "string" },
|
|
17
18
|
delaySeconds: { type: "number" },
|
|
18
19
|
detectionDate: { type: "string" },
|
|
@@ -28,6 +29,7 @@ exports.InputIrregularitiesJsonSchema = {
|
|
|
28
29
|
items: {
|
|
29
30
|
type: "object",
|
|
30
31
|
properties: { x: { type: "number" }, y: { type: "number" } },
|
|
32
|
+
required: ["x", "y"],
|
|
31
33
|
},
|
|
32
34
|
},
|
|
33
35
|
nComments: { type: "number" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputIrregularitiesJsonSchema.js","sourceRoot":"","sources":["../../../src/schema-definitions/datasources/InputIrregularitiesJsonSchema.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"InputIrregularitiesJsonSchema.js","sourceRoot":"","sources":["../../../src/schema-definitions/datasources/InputIrregularitiesJsonSchema.ts"],"names":[],"mappings":";;;AAGa,QAAA,6BAA6B,GAAyC;IAC/E,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC3B,aAAa,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACjC,cAAc,EAAE;YACZ,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACR,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBAC/B,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBAC7B,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBACxB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QAAQ,EAAE;oBAC1B,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBACzB,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBACxB,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBAC9B,gBAAgB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;iBACvC;gBACD,QAAQ,EAAE,CAAC,qBAAqB,EAAE,IAAI,EAAE,kBAAkB,CAAC;aAC9D;SACJ;QACD,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC7B,eAAe,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KACtC;IACD,QAAQ,EAAE,CAAC,iBAAiB,CAAC;CAChC,CAAC"}
|
|
@@ -1,92 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
endTime: {
|
|
5
|
-
type: string;
|
|
6
|
-
};
|
|
7
|
-
endTimeMillis: {
|
|
8
|
-
type: string;
|
|
9
|
-
};
|
|
10
|
-
jams: {
|
|
11
|
-
type: string;
|
|
12
|
-
items: {
|
|
13
|
-
type: string;
|
|
14
|
-
properties: {
|
|
15
|
-
blockingAlertUuid: {
|
|
16
|
-
type: string;
|
|
17
|
-
};
|
|
18
|
-
city: {
|
|
19
|
-
type: string;
|
|
20
|
-
};
|
|
21
|
-
country: {
|
|
22
|
-
type: string;
|
|
23
|
-
};
|
|
24
|
-
delay: {
|
|
25
|
-
type: string;
|
|
26
|
-
};
|
|
27
|
-
endNode: {
|
|
28
|
-
type: string;
|
|
29
|
-
};
|
|
30
|
-
length: {
|
|
31
|
-
type: string;
|
|
32
|
-
};
|
|
33
|
-
level: {
|
|
34
|
-
type: string;
|
|
35
|
-
};
|
|
36
|
-
line: {
|
|
37
|
-
type: string;
|
|
38
|
-
items: {
|
|
39
|
-
type: string;
|
|
40
|
-
properties: {
|
|
41
|
-
x: {
|
|
42
|
-
type: string;
|
|
43
|
-
};
|
|
44
|
-
y: {
|
|
45
|
-
type: string;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
pubMillis: {
|
|
51
|
-
type: string;
|
|
52
|
-
};
|
|
53
|
-
roadType: {
|
|
54
|
-
type: string;
|
|
55
|
-
};
|
|
56
|
-
segments: {
|
|
57
|
-
type: string;
|
|
58
|
-
items: {
|
|
59
|
-
type: string;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
speed: {
|
|
63
|
-
type: string;
|
|
64
|
-
};
|
|
65
|
-
speedKMH: {
|
|
66
|
-
type: string;
|
|
67
|
-
};
|
|
68
|
-
street: {
|
|
69
|
-
type: string;
|
|
70
|
-
};
|
|
71
|
-
turnType: {
|
|
72
|
-
type: string;
|
|
73
|
-
};
|
|
74
|
-
type: {
|
|
75
|
-
type: string;
|
|
76
|
-
};
|
|
77
|
-
uuid: {
|
|
78
|
-
type: string;
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
required: string[];
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
startTime: {
|
|
85
|
-
type: string;
|
|
86
|
-
};
|
|
87
|
-
startTimeMillis: {
|
|
88
|
-
type: string;
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
required: string[];
|
|
92
|
-
};
|
|
1
|
+
import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
|
|
2
|
+
import { IInputJams } from "./interfaces/IInputJams";
|
|
3
|
+
export declare const InputJamsJsonSchema: JSONSchemaType<IInputJams>;
|
|
@@ -15,6 +15,7 @@ exports.InputJamsJsonSchema = {
|
|
|
15
15
|
city: { type: "string" },
|
|
16
16
|
country: { type: "string" },
|
|
17
17
|
delay: { type: "number" },
|
|
18
|
+
startNode: { type: "string" },
|
|
18
19
|
endNode: { type: "string" },
|
|
19
20
|
length: { type: "number" },
|
|
20
21
|
level: { type: "number" },
|
|
@@ -23,6 +24,7 @@ exports.InputJamsJsonSchema = {
|
|
|
23
24
|
items: {
|
|
24
25
|
type: "object",
|
|
25
26
|
properties: { x: { type: "number" }, y: { type: "number" } },
|
|
27
|
+
required: ["x", "y"],
|
|
26
28
|
},
|
|
27
29
|
},
|
|
28
30
|
pubMillis: { type: "number" },
|
|
@@ -36,6 +38,11 @@ exports.InputJamsJsonSchema = {
|
|
|
36
38
|
speed: { type: "number" },
|
|
37
39
|
speedKMH: { type: "number" },
|
|
38
40
|
street: { type: "string" },
|
|
41
|
+
turnLine: {
|
|
42
|
+
type: "object",
|
|
43
|
+
properties: { x: { type: "number" }, y: { type: "number" } },
|
|
44
|
+
required: ["x", "y"],
|
|
45
|
+
},
|
|
39
46
|
turnType: { type: "string" },
|
|
40
47
|
type: { type: "string" },
|
|
41
48
|
uuid: { type: "number" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputJamsJsonSchema.js","sourceRoot":"","sources":["../../../src/schema-definitions/datasources/InputJamsJsonSchema.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"InputJamsJsonSchema.js","sourceRoot":"","sources":["../../../src/schema-definitions/datasources/InputJamsJsonSchema.ts"],"names":[],"mappings":";;;AAGa,QAAA,mBAAmB,GAA+B;IAC3D,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC3B,aAAa,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACjC,IAAI,EAAE;YACF,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACR,iBAAiB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBACrC,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBACxB,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBAC3B,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBACzB,SAAS,EAAE,EAAE,IAAI,EAAE,Q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M,CAAC;aAClC;SACJ;QACD,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC7B,eAAe,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KACtC;IACD,QAAQ,EAAE,CAAC,iBAAiB,CAAC;CAChC,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export interface IInputIrregularityInfo {
|
|
2
|
+
alertsCount: number;
|
|
3
|
+
causeType: string;
|
|
4
|
+
city: string;
|
|
5
|
+
country: string;
|
|
6
|
+
delaySeconds: number;
|
|
7
|
+
detectionDate: string;
|
|
8
|
+
detectionDateMillis: number;
|
|
9
|
+
driversCount: number;
|
|
10
|
+
endNode: string;
|
|
11
|
+
highway: boolean;
|
|
12
|
+
id: number;
|
|
13
|
+
jamLevel: number;
|
|
14
|
+
length: number;
|
|
15
|
+
line: Array<{
|
|
16
|
+
x: number;
|
|
17
|
+
y: number;
|
|
18
|
+
}>;
|
|
19
|
+
nComments: number;
|
|
20
|
+
nImages: number;
|
|
21
|
+
nThumbsUp: number;
|
|
22
|
+
regularSpeed: number;
|
|
23
|
+
seconds: number;
|
|
24
|
+
severity: number;
|
|
25
|
+
speed: number;
|
|
26
|
+
startNode: string;
|
|
27
|
+
street: string;
|
|
28
|
+
trend: number;
|
|
29
|
+
type: string;
|
|
30
|
+
updateDate: string;
|
|
31
|
+
updateDateMillis: number;
|
|
32
|
+
}
|
|
33
|
+
export interface IInputIrregularities {
|
|
34
|
+
irregularities: IInputIrregularityInfo[];
|
|
35
|
+
endTime: string;
|
|
36
|
+
endTimeMillis: number;
|
|
37
|
+
startTime: string;
|
|
38
|
+
startTimeMillis: number;
|
|
39
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IInputIrregularities.js","sourceRoot":"","sources":["../../../../src/schema-definitions/datasources/interfaces/IInputIrregularities.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface IInputJamInfo {
|
|
2
|
+
blockingAlertUuid: string;
|
|
3
|
+
city: string;
|
|
4
|
+
country: string;
|
|
5
|
+
delay: number;
|
|
6
|
+
startNode: string;
|
|
7
|
+
endNode: string;
|
|
8
|
+
length: number;
|
|
9
|
+
level: number;
|
|
10
|
+
line: Array<{
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
}>;
|
|
14
|
+
pubMillis: number;
|
|
15
|
+
roadType: number;
|
|
16
|
+
segments: Array<{}>;
|
|
17
|
+
speed: number;
|
|
18
|
+
speedKMH: number;
|
|
19
|
+
street: string;
|
|
20
|
+
turnLine: {
|
|
21
|
+
x: number;
|
|
22
|
+
y: number;
|
|
23
|
+
};
|
|
24
|
+
turnType: string;
|
|
25
|
+
type: string;
|
|
26
|
+
uuid: number;
|
|
27
|
+
}
|
|
28
|
+
export interface IInputJams {
|
|
29
|
+
jams: IInputJamInfo[];
|
|
30
|
+
endTime: string;
|
|
31
|
+
endTimeMillis: number;
|
|
32
|
+
startTime: string;
|
|
33
|
+
startTimeMillis: number;
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IInputJams.js","sourceRoot":"","sources":["../../../../src/schema-definitions/datasources/interfaces/IInputJams.ts"],"names":[],"mappings":""}
|
package/docs/asyncapi.yaml
CHANGED
|
@@ -4,7 +4,7 @@ info:
|
|
|
4
4
|
version: 1.0.0
|
|
5
5
|
description: This document describes internal RabbitMQ queues of the Waze CCP module.
|
|
6
6
|
contact:
|
|
7
|
-
name: Golemio Prague Data
|
|
7
|
+
name: Golemio Prague Data Platform
|
|
8
8
|
email: golemio@operatorict.cz
|
|
9
9
|
url: https://golemio.cz
|
|
10
10
|
operations:
|
|
@@ -1,5 +1,49 @@
|
|
|
1
1
|
# Implementační dokumentace modulu *waze-ccp*
|
|
2
2
|
|
|
3
|
-
## Zpracování dat
|
|
3
|
+
## Zpracování dat
|
|
4
4
|
|
|
5
5
|
Interní RabbitMQ fronty jsou popsány v [AsyncAPI](./asyncapi.yaml).
|
|
6
|
+
|
|
7
|
+
## Architektura
|
|
8
|
+
|
|
9
|
+
### Tasky
|
|
10
|
+
|
|
11
|
+
Každý task dědí z `AbstractEmptyTask`, **definuje nastavení queue** a zapouzdřuje **vlastní logiku**:
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
Queue → Task.consume() → Task.execute()
|
|
15
|
+
↓
|
|
16
|
+
DataSource // zdroj dat
|
|
17
|
+
↓
|
|
18
|
+
Transformation // transformace dat
|
|
19
|
+
↓
|
|
20
|
+
Model/Repository // persistence dat
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
`RefreshAllDataInDBTask` odesílá zprávy přes `AMQPConnector.sendMessage` do front ostatních tří tasků (fan-out pattern).
|
|
24
|
+
|
|
25
|
+
### Worker
|
|
26
|
+
|
|
27
|
+
`WazeCCPWorker` dědí z `AbstractWorker` a registruje čtyři tasky:
|
|
28
|
+
|
|
29
|
+
| Task | Queue | TTL |
|
|
30
|
+
|---------------------------------|-----------------------------|-------|
|
|
31
|
+
| `RefreshAlertsInDBTask` | `refreshAlertsInDB` | 90 s |
|
|
32
|
+
| `RefreshIrregularitiesInDBTask` | `refreshIrregularitiesInDB` | 4 min |
|
|
33
|
+
| `RefreshJamsInDBTask` | `refreshJamsInDB` | 4 min |
|
|
34
|
+
| `RefreshAllDataInDBTask` | `refreshAllDataInDB` | 4 min |
|
|
35
|
+
|
|
36
|
+
Queue prefix je ve formátu `{RABBIT_EXCHANGE_NAME}.wazeccp`.
|
|
37
|
+
|
|
38
|
+
Definici front generuje `worker.getQueueDefinition()` namísto souboru `queueDefinitions.ts`, který byl deprecated.
|
|
39
|
+
|
|
40
|
+
### Transformace dat
|
|
41
|
+
|
|
42
|
+
Všechny transformace dědí z `AbstractTransformation<TInput, TOutput>`:
|
|
43
|
+
|
|
44
|
+
- `WazeCCPAlertsTransformation` — vstup `IInputAlertsInfo`, výstup `IWazeAlerts`
|
|
45
|
+
- `WazeCCPIrregularitiesTransformation` — vstup obohacený `IInputIrregularityInfo` o `downloadedAt` a `rootStart`, výstup `IIrregularityDto`
|
|
46
|
+
- `WazeCCPJamsTransformation` — vstup obohacený `IInputJamInfo` o `downloadedAt` a `rootStart`, výstup `IJamDto`
|
|
47
|
+
|
|
48
|
+
Tasky pro irregularities a jams obohacují každý element o hodnoty `downloadedAt` (aktuální čas)
|
|
49
|
+
a `rootStart` (z `data.startTimeMillis`) před předáním do `transformArray()`, kde se z nich generuje unikátní hash použitý jako ID záznamu v DB.
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WazeCCPAlertsTransformation.js","sourceRoot":"","sources":["../../src/integration-engine/WazeCCPAlertsTransformation.ts"],"names":[],"mappings":";;;;;;AAAA,6GAA0G;AAC1G,uDAAqC;AAGrC,8EAAwD;AAExD,MAAa,2BAA4B,SAAQ,+CAAqD;IAIlG,YAAY,SAAe;QACvB,KAAK,EAAE,CAAC;QAJL,SAAI,GAAG,eAAO,CAAC,MAAM,CAAC,IAAI,GAAG,gBAAgB,CAAC;QAQ3C,sBAAiB,GAAG,CAAC,KAAuB,EAAe,EAAE;YACnE,OAAO;gBACH,IAAI,EAAE,KAAK,CAAC,IAAI,IAAI,IAAI;gBACxB,UAAU,EAAE,KAAK,CAAC,UAAU,IAAI,IAAI;gBACpC,OAAO,EAAE,KAAK,CAAC,OAAO,IAAI,IAAI;gBAC9B,aAAa,EAAE,IAAI,CAAC,YAAY;gBAChC,EAAE,EAAE,wBAAc,CAAC,YAAY,CAAC,KAAK,CAAC;gBACtC,QAAQ,EAAE,KAAK,CAAC,OAAO,IAAI,IAAI;gBAC/B,QAAQ,EAAE,KAAK,CAAC,QAAQ;gBACxB,MAAM,EAAE,KAAK,CAAC,MAAM,IAAI,IAAI;gBAC5B,UAAU,EAAE,KAAK,CAAC,SAAS,EAAE,QAAQ,EAAE;gBACvC,YAAY,EAAE,IAAI,IAAI,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC;gBACxC,WAAW,EAAE,KAAK,CAAC,WAAW,IAAI,IAAI;gBACtC,2BAA2B,EAAE,KAAK,CAAC,wBAAwB,KAAK,MAAM;gBACtE,kBAAkB,EAAE,KAAK,CAAC,iBAAiB,IAAI,IAAI;gBACnD,aAAa,EAAE,KAAK,CAAC,YAAY,IAAI,IAAI;gBACzC,SAAS,EAAE,KAAK,CAAC,QAAQ,IAAI,IAAI;gBACjC,MAAM,EAAE,KAAK,CAAC,MAAM,IAAI,IAAI;gBAC5B,OAAO,EAAE,KAAK,CAAC,OAAO,IAAI,IAAI;gBAC9B,SAAS,EAAE,KAAK,CAAC,SAAS,IAAI,IAAI;gBAClC,IAAI,EAAE,KAAK,CAAC,IAAI,IAAI,IAAI;gBACxB,IAAI,EAAE,KAAK,CAAC,IAAI;aACnB,CAAC;QACN,CAAC,CAAC;QA1BE,IAAI,CAAC,YAAY,GAAG,SAAS,CAAC;IAClC,CAAC;CA0BJ;AAjCD,kEAiCC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { BaseTransformation, ITransformation } from "@golemio/core/dist/integration-engine/transformations";
|
|
2
|
-
export declare class WazeCCPIrregularitiesTransformation extends BaseTransformation implements ITransformation {
|
|
3
|
-
name: string;
|
|
4
|
-
constructor();
|
|
5
|
-
/**
|
|
6
|
-
* Transform the whole collection or one single element
|
|
7
|
-
*/
|
|
8
|
-
transform: (data: any | any[]) => Promise<any | any[]>;
|
|
9
|
-
protected transformElement: (irregularity: any) => any;
|
|
10
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WazeCCPIrregularitiesTransformation.js","sourceRoot":"","sources":["../../src/integration-engine/WazeCCPIrregularitiesTransformation.ts"],"names":[],"mappings":";;;AAAA,uDAAqC;AACrC,2EAAoE;AACpE,2FAA4G;AAC5G,iDAAiE;AAEjE,MAAa,mCAAoC,SAAQ,oCAAkB;IAGvE;QACI,KAAK,EAAE,CAAC;QAIZ;;WAEG;QACI,c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eCCPJamsTransformation extends BaseTransformation implements ITransformation {
|
|
3
|
-
name: string;
|
|
4
|
-
constructor();
|
|
5
|
-
/**
|
|
6
|
-
* Transform the whole collection or one single element
|
|
7
|
-
*/
|
|
8
|
-
transform: (data: any | any[]) => Promise<any | any[]>;
|
|
9
|
-
protected transformElement: (jam: any) => any;
|
|
10
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WazeCCPJamsTransformation = void 0;
|
|
4
|
-
const index_1 = require("../schema-definitions/index");
|
|
5
|
-
const helpers_1 = require("@golemio/core/dist/integration-engine/helpers");
|
|
6
|
-
const transformations_1 = require("@golemio/core/dist/integration-engine/transformations");
|
|
7
|
-
const WazeCCPUtils_1 = require("./WazeCCPUtils");
|
|
8
|
-
class WazeCCPJamsTransformation extends transformations_1.BaseTransformation {
|
|
9
|
-
constructor() {
|
|
10
|
-
super();
|
|
11
|
-
/**
|
|
12
|
-
* Transform the whole collection or one single element
|
|
13
|
-
*/
|
|
14
|
-
this.transform = async (data) => {
|
|
15
|
-
const rootStart = data.startTimeMillis;
|
|
16
|
-
const downloadedAt = data.downloadedAt;
|
|
17
|
-
if (!data.jams) {
|
|
18
|
-
helpers_1.log.warn(`${this.name}: Data source returned empty data.`);
|
|
19
|
-
return [];
|
|
20
|
-
}
|
|
21
|
-
const results = [];
|
|
22
|
-
data.jams.forEach((element) => {
|
|
23
|
-
const res = this.transformElement({
|
|
24
|
-
...element,
|
|
25
|
-
downloadedAt,
|
|
26
|
-
rootStart,
|
|
27
|
-
});
|
|
28
|
-
if (res) {
|
|
29
|
-
results.push(res);
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
return results;
|
|
33
|
-
};
|
|
34
|
-
this.transformElement = (jam) => {
|
|
35
|
-
const rootStart = jam.rootStart;
|
|
36
|
-
delete jam.rootStart;
|
|
37
|
-
const downloadedAt = jam.downloadedAt;
|
|
38
|
-
delete jam.downloadedAt;
|
|
39
|
-
const jamHash = (0, WazeCCPUtils_1.generateAJIUniqueIdentifierHash)(jam, rootStart);
|
|
40
|
-
const res = {
|
|
41
|
-
blocking_alert_id: jam.blockingAlertUuid,
|
|
42
|
-
city: jam.city,
|
|
43
|
-
country: jam.country,
|
|
44
|
-
delay: jam.delay,
|
|
45
|
-
downloaded_at: downloadedAt,
|
|
46
|
-
end_node: jam.endNode,
|
|
47
|
-
id: jamHash,
|
|
48
|
-
length: jam.length,
|
|
49
|
-
level: jam.level,
|
|
50
|
-
line: jam.line,
|
|
51
|
-
pub_millis: jam.pubMillis,
|
|
52
|
-
pub_utc_date: new Date(+jam.pubMillis),
|
|
53
|
-
road_type: jam.roadType,
|
|
54
|
-
speed: jam.speed,
|
|
55
|
-
speed_kmh: jam.speedKMH,
|
|
56
|
-
start_node: jam.startNode,
|
|
57
|
-
street: jam.street,
|
|
58
|
-
turn_line: jam.turnLine,
|
|
59
|
-
turn_type: jam.turnType,
|
|
60
|
-
type: jam.type,
|
|
61
|
-
uuid: jam.uuid,
|
|
62
|
-
};
|
|
63
|
-
return res;
|
|
64
|
-
};
|
|
65
|
-
this.name = index_1.WazeCCP.jams.name;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
exports.WazeCCPJamsTransformation = WazeCCPJamsTransformation;
|
|
69
|
-
//# sourceMappingURL=WazeCCPJamsTransformation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WazeCCPJamsTransformation.js","sourceRoot":"","sources":["../../src/integration-engine/WazeCCPJamsTransformation.ts"],"names":[],"mappings":";;;AAAA,uDAAqC;AACrC,2EAAoE;AACpE,2FAA4G;AAC5G,iDAAiE;AAEjE,MAAa,yBAA0B,SAAQ,oCAAkB;IAG7D;QACI,KAAK,EAAE,CAAC;QAIZ;;WAEG;QACI,cAAS,GAAG,KAAK,EAAE,IAAiB,EAAwB,EAAE;YACjE,MAAM,SAAS,GAAG,IAAI,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AAG,CAAC,IAAI;gBACd,UAAU,EAAE,GAAG,CAAC,SAAS;gBACzB,YAAY,EAAE,IAAI,IAAI,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC;gBACtC,SAAS,EAAE,GAAG,CAAC,QAAQ;gBACvB,KAAK,EAAE,GAAG,CAAC,KAAK;gBAChB,SAAS,EAAE,GAAG,CAAC,QAAQ;gBACvB,UAAU,EAAE,GAAG,CAAC,SAAS;gBACzB,MAAM,EAAE,GAAG,CAAC,MAAM;gBAClB,SAAS,EAAE,GAAG,CAAC,QAAQ;gBACvB,SAAS,EAAE,GAAG,CAAC,QAAQ;gBACvB,IAAI,EAAE,GAAG,CAAC,IAAI;gBACd,IAAI,EAAE,GAAG,CAAC,IAAI;aACjB,CAAC;YAEF,OAAO,GAAG,CAAC;QACf,CAAC,CAAC;QA7DE,IAAI,CAAC,IAAI,GAAG,eAAO,CAAC,IAAI,CAAC,IAAI,CAAC;IAClC,CAAC;CA6DJ;AAnED,8DAmEC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { BaseWorker } from "@golemio/core/dist/integration-engine/workers";
|
|
2
|
-
export declare class WazeCCPWorker extends BaseWorker {
|
|
3
|
-
private dataSourceAlerts;
|
|
4
|
-
private dataSourceIrregularities;
|
|
5
|
-
private dataSourceJams;
|
|
6
|
-
private modelAlerts;
|
|
7
|
-
private modelIrregularities;
|
|
8
|
-
private modelJams;
|
|
9
|
-
private transformationIrregularities;
|
|
10
|
-
private transformationJams;
|
|
11
|
-
private queuePrefix;
|
|
12
|
-
constructor();
|
|
13
|
-
refreshAlertsInDB: (msg: any) => Promise<void>;
|
|
14
|
-
refreshIrregularitiesInDB: (msg: any) => Promise<void>;
|
|
15
|
-
refreshJamsInDB: (msg: any) => Promise<void>;
|
|
16
|
-
refreshAllDataInDB: (msg: any) => Promise<void>;
|
|
17
|
-
}
|