@golemio/waze-ccp 1.1.7 → 1.1.8-dev.1078494126
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/db/migrations/postgresql/20231108112825-new-alerts.js +53 -0
- package/db/migrations/postgresql/sqls/20231108112825-new-alerts-down.sql +25 -0
- package/db/migrations/postgresql/sqls/20231108112825-new-alerts-up.sql +65 -0
- package/dist/integration-engine/WazeCCPAlertsAlternativeTransformation.d.ts +10 -0
- package/dist/integration-engine/WazeCCPAlertsAlternativeTransformation.js +67 -0
- package/dist/integration-engine/WazeCCPAlertsAlternativeTransformation.js.map +1 -0
- package/dist/integration-engine/WazeCCPAlertsTransformation.d.ts +6 -8
- package/dist/integration-engine/WazeCCPAlertsTransformation.js +21 -45
- package/dist/integration-engine/WazeCCPAlertsTransformation.js.map +1 -1
- package/dist/integration-engine/WazeCCPWorker.d.ts +3 -1
- package/dist/integration-engine/WazeCCPWorker.js +18 -4
- package/dist/integration-engine/WazeCCPWorker.js.map +1 -1
- package/dist/integration-engine/helpers/AlertsIdHelper.d.ts +6 -0
- package/dist/integration-engine/helpers/AlertsIdHelper.js +43 -0
- package/dist/integration-engine/helpers/AlertsIdHelper.js.map +1 -0
- package/dist/integration-engine/index.d.ts +1 -0
- package/dist/integration-engine/index.js +1 -0
- package/dist/integration-engine/index.js.map +1 -1
- package/dist/integration-engine/interfaces/WazeAlertsAlternativeInterface.d.ts +24 -0
- package/dist/integration-engine/interfaces/WazeAlertsAlternativeInterface.js +3 -0
- package/dist/integration-engine/interfaces/WazeAlertsAlternativeInterface.js.map +1 -0
- package/dist/integration-engine/interfaces/WazeAlertsInterface.d.ts +3 -23
- package/dist/integration-engine/queueDefinitions.js +11 -1
- package/dist/integration-engine/queueDefinitions.js.map +1 -1
- package/dist/integration-engine/repositories/WazeAlertsAlternativeRepository.d.ts +7 -0
- package/dist/integration-engine/repositories/WazeAlertsAlternativeRepository.js +57 -0
- package/dist/integration-engine/repositories/WazeAlertsAlternativeRepository.js.map +1 -0
- package/dist/integration-engine/repositories/WazeAlertsRepository.js +7 -12
- package/dist/integration-engine/repositories/WazeAlertsRepository.js.map +1 -1
- package/dist/schema-definitions/datasources/InputAlertsJsonSchema.d.ts +3 -0
- package/dist/schema-definitions/datasources/InputAlertsJsonSchema.js +47 -0
- package/dist/schema-definitions/datasources/InputAlertsJsonSchema.js.map +1 -0
- package/dist/schema-definitions/datasources/InputIrregularitiesJsonSchema.d.ts +116 -0
- package/dist/schema-definitions/datasources/InputIrregularitiesJsonSchema.js +55 -0
- package/dist/schema-definitions/datasources/InputIrregularitiesJsonSchema.js.map +1 -0
- package/dist/schema-definitions/datasources/InputJamsJsonSchema.d.ts +92 -0
- package/dist/schema-definitions/datasources/InputJamsJsonSchema.js +51 -0
- package/dist/schema-definitions/datasources/InputJamsJsonSchema.js.map +1 -0
- package/dist/schema-definitions/datasources/interfaces/IInputAlerts.d.ts +29 -0
- package/dist/schema-definitions/datasources/interfaces/IInputAlerts.js +3 -0
- package/dist/schema-definitions/datasources/interfaces/IInputAlerts.js.map +1 -0
- package/dist/schema-definitions/index.d.ts +1 -301
- package/dist/schema-definitions/index.js +12 -138
- package/dist/schema-definitions/index.js.map +1 -1
- package/dist/schema-definitions/interfaces/IAlertAlternativeDto.d.ts +25 -0
- package/dist/schema-definitions/interfaces/IAlertAlternativeDto.js +3 -0
- package/dist/schema-definitions/interfaces/IAlertAlternativeDto.js.map +1 -0
- package/dist/schema-definitions/interfaces/IAlertDto.d.ts +4 -24
- package/dist/schema-definitions/models/AlertAlternativeDto.d.ts +30 -0
- package/dist/schema-definitions/models/AlertAlternativeDto.js +65 -0
- package/dist/schema-definitions/models/AlertAlternativeDto.js.map +1 -0
- package/dist/schema-definitions/models/AlertDto.d.ts +3 -1
- package/dist/schema-definitions/models/AlertDto.js +6 -2
- package/dist/schema-definitions/models/AlertDto.js.map +1 -1
- package/package.json +2 -2
- package/dist/integration-engine/helpers/AlertsHelper.d.ts +0 -4
- package/dist/integration-engine/helpers/AlertsHelper.js +0 -22
- package/dist/integration-engine/helpers/AlertsHelper.js.map +0 -1
|
@@ -1,302 +1,2 @@
|
|
|
1
|
-
declare const forExport:
|
|
2
|
-
pgSchema: string;
|
|
3
|
-
alerts: {
|
|
4
|
-
datasourceJsonSchema: {
|
|
5
|
-
type: string;
|
|
6
|
-
properties: {
|
|
7
|
-
alerts: {
|
|
8
|
-
type: string;
|
|
9
|
-
items: {
|
|
10
|
-
type: string;
|
|
11
|
-
properties: {
|
|
12
|
-
city: {
|
|
13
|
-
type: string;
|
|
14
|
-
};
|
|
15
|
-
confidence: {
|
|
16
|
-
type: string;
|
|
17
|
-
};
|
|
18
|
-
country: {
|
|
19
|
-
type: string;
|
|
20
|
-
};
|
|
21
|
-
location: {
|
|
22
|
-
type: string;
|
|
23
|
-
properties: {
|
|
24
|
-
x: {
|
|
25
|
-
type: string;
|
|
26
|
-
};
|
|
27
|
-
y: {
|
|
28
|
-
type: string;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
magvar: {
|
|
33
|
-
type: string;
|
|
34
|
-
};
|
|
35
|
-
nThumbsUp: {
|
|
36
|
-
type: string;
|
|
37
|
-
};
|
|
38
|
-
pubMillis: {
|
|
39
|
-
type: string;
|
|
40
|
-
};
|
|
41
|
-
reliability: {
|
|
42
|
-
type: string;
|
|
43
|
-
};
|
|
44
|
-
reportRating: {
|
|
45
|
-
type: string;
|
|
46
|
-
};
|
|
47
|
-
roadType: {
|
|
48
|
-
type: string;
|
|
49
|
-
};
|
|
50
|
-
street: {
|
|
51
|
-
type: string;
|
|
52
|
-
};
|
|
53
|
-
subtype: {
|
|
54
|
-
type: string;
|
|
55
|
-
};
|
|
56
|
-
type: {
|
|
57
|
-
type: string;
|
|
58
|
-
};
|
|
59
|
-
uuid: {
|
|
60
|
-
type: string;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
required: string[];
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
endTime: {
|
|
67
|
-
type: string;
|
|
68
|
-
};
|
|
69
|
-
endTimeMillis: {
|
|
70
|
-
type: string;
|
|
71
|
-
};
|
|
72
|
-
startTime: {
|
|
73
|
-
type: string;
|
|
74
|
-
};
|
|
75
|
-
startTimeMillis: {
|
|
76
|
-
type: string;
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
required: string[];
|
|
80
|
-
};
|
|
81
|
-
name: string;
|
|
82
|
-
pgTableName: string;
|
|
83
|
-
};
|
|
84
|
-
irregularities: {
|
|
85
|
-
datasourceJsonSchema: {
|
|
86
|
-
type: string;
|
|
87
|
-
properties: {
|
|
88
|
-
endTime: {
|
|
89
|
-
type: string;
|
|
90
|
-
};
|
|
91
|
-
endTimeMillis: {
|
|
92
|
-
type: string;
|
|
93
|
-
};
|
|
94
|
-
irregularities: {
|
|
95
|
-
type: string;
|
|
96
|
-
items: {
|
|
97
|
-
type: string;
|
|
98
|
-
properties: {
|
|
99
|
-
alertsCount: {
|
|
100
|
-
type: string;
|
|
101
|
-
};
|
|
102
|
-
causeType: {
|
|
103
|
-
type: string;
|
|
104
|
-
};
|
|
105
|
-
country: {
|
|
106
|
-
type: string;
|
|
107
|
-
};
|
|
108
|
-
delaySeconds: {
|
|
109
|
-
type: string;
|
|
110
|
-
};
|
|
111
|
-
detectionDate: {
|
|
112
|
-
type: string;
|
|
113
|
-
};
|
|
114
|
-
detectionDateMillis: {
|
|
115
|
-
type: string;
|
|
116
|
-
};
|
|
117
|
-
driversCount: {
|
|
118
|
-
type: string;
|
|
119
|
-
};
|
|
120
|
-
endNode: {
|
|
121
|
-
type: string;
|
|
122
|
-
};
|
|
123
|
-
highway: {
|
|
124
|
-
type: string;
|
|
125
|
-
};
|
|
126
|
-
id: {
|
|
127
|
-
type: string;
|
|
128
|
-
};
|
|
129
|
-
jamLevel: {
|
|
130
|
-
type: string;
|
|
131
|
-
};
|
|
132
|
-
length: {
|
|
133
|
-
type: string;
|
|
134
|
-
};
|
|
135
|
-
line: {
|
|
136
|
-
type: string;
|
|
137
|
-
items: {
|
|
138
|
-
type: string;
|
|
139
|
-
properties: {
|
|
140
|
-
x: {
|
|
141
|
-
type: string;
|
|
142
|
-
};
|
|
143
|
-
y: {
|
|
144
|
-
type: string;
|
|
145
|
-
};
|
|
146
|
-
};
|
|
147
|
-
};
|
|
148
|
-
};
|
|
149
|
-
nComments: {
|
|
150
|
-
type: string;
|
|
151
|
-
};
|
|
152
|
-
nImages: {
|
|
153
|
-
type: string;
|
|
154
|
-
};
|
|
155
|
-
nThumbsUp: {
|
|
156
|
-
type: string;
|
|
157
|
-
};
|
|
158
|
-
regularSpeed: {
|
|
159
|
-
type: string;
|
|
160
|
-
};
|
|
161
|
-
seconds: {
|
|
162
|
-
type: string;
|
|
163
|
-
};
|
|
164
|
-
severity: {
|
|
165
|
-
type: string;
|
|
166
|
-
};
|
|
167
|
-
speed: {
|
|
168
|
-
type: string;
|
|
169
|
-
};
|
|
170
|
-
startNode: {
|
|
171
|
-
type: string;
|
|
172
|
-
};
|
|
173
|
-
street: {
|
|
174
|
-
type: string;
|
|
175
|
-
};
|
|
176
|
-
trend: {
|
|
177
|
-
type: string;
|
|
178
|
-
};
|
|
179
|
-
type: {
|
|
180
|
-
type: string;
|
|
181
|
-
};
|
|
182
|
-
updateDate: {
|
|
183
|
-
type: string;
|
|
184
|
-
};
|
|
185
|
-
updateDateMillis: {
|
|
186
|
-
type: string;
|
|
187
|
-
};
|
|
188
|
-
};
|
|
189
|
-
required: string[];
|
|
190
|
-
};
|
|
191
|
-
};
|
|
192
|
-
startTime: {
|
|
193
|
-
type: string;
|
|
194
|
-
};
|
|
195
|
-
startTimeMillis: {
|
|
196
|
-
type: string;
|
|
197
|
-
};
|
|
198
|
-
};
|
|
199
|
-
required: string[];
|
|
200
|
-
};
|
|
201
|
-
name: string;
|
|
202
|
-
pgTableName: string;
|
|
203
|
-
};
|
|
204
|
-
jams: {
|
|
205
|
-
datasourceJsonSchema: {
|
|
206
|
-
type: string;
|
|
207
|
-
properties: {
|
|
208
|
-
endTime: {
|
|
209
|
-
type: string;
|
|
210
|
-
};
|
|
211
|
-
endTimeMillis: {
|
|
212
|
-
type: string;
|
|
213
|
-
};
|
|
214
|
-
jams: {
|
|
215
|
-
type: string;
|
|
216
|
-
items: {
|
|
217
|
-
type: string;
|
|
218
|
-
properties: {
|
|
219
|
-
blockingAlertUuid: {
|
|
220
|
-
type: string;
|
|
221
|
-
};
|
|
222
|
-
city: {
|
|
223
|
-
type: string;
|
|
224
|
-
};
|
|
225
|
-
country: {
|
|
226
|
-
type: string;
|
|
227
|
-
};
|
|
228
|
-
delay: {
|
|
229
|
-
type: string;
|
|
230
|
-
};
|
|
231
|
-
endNode: {
|
|
232
|
-
type: string;
|
|
233
|
-
};
|
|
234
|
-
length: {
|
|
235
|
-
type: string;
|
|
236
|
-
};
|
|
237
|
-
level: {
|
|
238
|
-
type: string;
|
|
239
|
-
};
|
|
240
|
-
line: {
|
|
241
|
-
type: string;
|
|
242
|
-
items: {
|
|
243
|
-
type: string;
|
|
244
|
-
properties: {
|
|
245
|
-
x: {
|
|
246
|
-
type: string;
|
|
247
|
-
};
|
|
248
|
-
y: {
|
|
249
|
-
type: string;
|
|
250
|
-
};
|
|
251
|
-
};
|
|
252
|
-
};
|
|
253
|
-
};
|
|
254
|
-
pubMillis: {
|
|
255
|
-
type: string;
|
|
256
|
-
};
|
|
257
|
-
roadType: {
|
|
258
|
-
type: string;
|
|
259
|
-
};
|
|
260
|
-
segments: {
|
|
261
|
-
type: string;
|
|
262
|
-
items: {
|
|
263
|
-
type: string;
|
|
264
|
-
};
|
|
265
|
-
};
|
|
266
|
-
speed: {
|
|
267
|
-
type: string;
|
|
268
|
-
};
|
|
269
|
-
speedKMH: {
|
|
270
|
-
type: string;
|
|
271
|
-
};
|
|
272
|
-
street: {
|
|
273
|
-
type: string;
|
|
274
|
-
};
|
|
275
|
-
turnType: {
|
|
276
|
-
type: string;
|
|
277
|
-
};
|
|
278
|
-
type: {
|
|
279
|
-
type: string;
|
|
280
|
-
};
|
|
281
|
-
uuid: {
|
|
282
|
-
type: string;
|
|
283
|
-
};
|
|
284
|
-
};
|
|
285
|
-
required: string[];
|
|
286
|
-
};
|
|
287
|
-
};
|
|
288
|
-
startTime: {
|
|
289
|
-
type: string;
|
|
290
|
-
};
|
|
291
|
-
startTimeMillis: {
|
|
292
|
-
type: string;
|
|
293
|
-
};
|
|
294
|
-
};
|
|
295
|
-
required: string[];
|
|
296
|
-
};
|
|
297
|
-
name: string;
|
|
298
|
-
pgTableName: string;
|
|
299
|
-
};
|
|
300
|
-
name: string;
|
|
301
|
-
};
|
|
1
|
+
declare const forExport: any;
|
|
302
2
|
export { forExport as WazeCCP };
|
|
@@ -1,158 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.WazeCCP = void 0;
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
alerts: {
|
|
8
|
-
type: "array",
|
|
9
|
-
items: {
|
|
10
|
-
type: "object",
|
|
11
|
-
properties: {
|
|
12
|
-
city: { type: "string" },
|
|
13
|
-
confidence: { type: "number" },
|
|
14
|
-
country: { type: "string" },
|
|
15
|
-
location: {
|
|
16
|
-
type: "object",
|
|
17
|
-
properties: { x: { type: "number" }, y: { type: "number" } },
|
|
18
|
-
},
|
|
19
|
-
magvar: { type: "number" },
|
|
20
|
-
nThumbsUp: { type: "number" },
|
|
21
|
-
pubMillis: { type: "number" },
|
|
22
|
-
reliability: { type: "number" },
|
|
23
|
-
reportRating: { type: "number" },
|
|
24
|
-
roadType: { type: "number" },
|
|
25
|
-
street: { type: "string" },
|
|
26
|
-
subtype: { type: "string" },
|
|
27
|
-
type: { type: "string" },
|
|
28
|
-
uuid: { type: "string" },
|
|
29
|
-
},
|
|
30
|
-
required: ["pubMillis", "uuid"],
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
endTime: { type: "string" },
|
|
34
|
-
endTimeMillis: { type: "number" },
|
|
35
|
-
startTime: { type: "string" },
|
|
36
|
-
startTimeMillis: { type: "number" },
|
|
37
|
-
},
|
|
38
|
-
required: ["startTimeMillis"],
|
|
39
|
-
};
|
|
40
|
-
const datasourceIrregularitiesJsonSchema = {
|
|
41
|
-
type: "object",
|
|
42
|
-
properties: {
|
|
43
|
-
endTime: { type: "string" },
|
|
44
|
-
endTimeMillis: { type: "number" },
|
|
45
|
-
irregularities: {
|
|
46
|
-
type: "array",
|
|
47
|
-
items: {
|
|
48
|
-
type: "object",
|
|
49
|
-
properties: {
|
|
50
|
-
alertsCount: { type: "number" },
|
|
51
|
-
causeType: { type: "string" },
|
|
52
|
-
country: { type: "string" },
|
|
53
|
-
delaySeconds: { type: "number" },
|
|
54
|
-
detectionDate: { type: "string" },
|
|
55
|
-
detectionDateMillis: { type: "number" },
|
|
56
|
-
driversCount: { type: "number" },
|
|
57
|
-
endNode: { type: "string" },
|
|
58
|
-
highway: { type: "boolean" },
|
|
59
|
-
id: { type: "number" },
|
|
60
|
-
jamLevel: { type: "number" },
|
|
61
|
-
length: { type: "number" },
|
|
62
|
-
line: {
|
|
63
|
-
type: "array",
|
|
64
|
-
items: {
|
|
65
|
-
type: "object",
|
|
66
|
-
properties: { x: { type: "number" }, y: { type: "number" } },
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
nComments: { type: "number" },
|
|
70
|
-
nImages: { type: "number" },
|
|
71
|
-
nThumbsUp: { type: "number" },
|
|
72
|
-
regularSpeed: { type: "number" },
|
|
73
|
-
seconds: { type: "number" },
|
|
74
|
-
severity: { type: "number" },
|
|
75
|
-
speed: { type: "number" },
|
|
76
|
-
startNode: { type: "string" },
|
|
77
|
-
street: { type: "string" },
|
|
78
|
-
trend: { type: "number" },
|
|
79
|
-
type: { type: "string" },
|
|
80
|
-
updateDate: { type: "string" },
|
|
81
|
-
updateDateMillis: { type: "number" },
|
|
82
|
-
},
|
|
83
|
-
required: ["detectionDateMillis", "id", "updateDateMillis"],
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
startTime: { type: "string" },
|
|
87
|
-
startTimeMillis: { type: "number" },
|
|
88
|
-
},
|
|
89
|
-
required: ["startTimeMillis"],
|
|
90
|
-
};
|
|
91
|
-
const datasourceJamsJsonSchema = {
|
|
92
|
-
type: "object",
|
|
93
|
-
properties: {
|
|
94
|
-
endTime: { type: "string" },
|
|
95
|
-
endTimeMillis: { type: "number" },
|
|
96
|
-
jams: {
|
|
97
|
-
type: "array",
|
|
98
|
-
items: {
|
|
99
|
-
type: "object",
|
|
100
|
-
properties: {
|
|
101
|
-
blockingAlertUuid: { type: "string" },
|
|
102
|
-
city: { type: "string" },
|
|
103
|
-
country: { type: "string" },
|
|
104
|
-
delay: { type: "number" },
|
|
105
|
-
endNode: { type: "string" },
|
|
106
|
-
length: { type: "number" },
|
|
107
|
-
level: { type: "number" },
|
|
108
|
-
line: {
|
|
109
|
-
type: "array",
|
|
110
|
-
items: {
|
|
111
|
-
type: "object",
|
|
112
|
-
properties: { x: { type: "number" }, y: { type: "number" } },
|
|
113
|
-
},
|
|
114
|
-
},
|
|
115
|
-
pubMillis: { type: "number" },
|
|
116
|
-
roadType: { type: "number" },
|
|
117
|
-
segments: {
|
|
118
|
-
type: "array",
|
|
119
|
-
items: {
|
|
120
|
-
type: "object",
|
|
121
|
-
},
|
|
122
|
-
},
|
|
123
|
-
speed: { type: "number" },
|
|
124
|
-
speedKMH: { type: "number" },
|
|
125
|
-
street: { type: "string" },
|
|
126
|
-
turnType: { type: "string" },
|
|
127
|
-
type: { type: "string" },
|
|
128
|
-
uuid: { type: "number" },
|
|
129
|
-
},
|
|
130
|
-
required: ["pubMillis", "uuid"],
|
|
131
|
-
},
|
|
132
|
-
},
|
|
133
|
-
startTime: { type: "string" },
|
|
134
|
-
startTimeMillis: { type: "number" },
|
|
135
|
-
},
|
|
136
|
-
required: ["startTimeMillis"],
|
|
137
|
-
};
|
|
4
|
+
const InputAlertsJsonSchema_1 = require("./datasources/InputAlertsJsonSchema");
|
|
5
|
+
const InputJamsJsonSchema_1 = require("./datasources/InputJamsJsonSchema");
|
|
6
|
+
const InputIrregularitiesJsonSchema_1 = require("./datasources/InputIrregularitiesJsonSchema");
|
|
138
7
|
const forExport = {
|
|
8
|
+
name: "WazeCCP",
|
|
139
9
|
pgSchema: "waze_ccp",
|
|
140
10
|
alerts: {
|
|
141
|
-
datasourceJsonSchema:
|
|
11
|
+
datasourceJsonSchema: InputAlertsJsonSchema_1.InputAlertsJsonSchema,
|
|
142
12
|
name: "WazeCCPAlerts",
|
|
143
13
|
pgTableName: "wazeccp_alerts",
|
|
144
14
|
},
|
|
15
|
+
alertsAlternative: {
|
|
16
|
+
datasourceJsonSchema: InputAlertsJsonSchema_1.InputAlertsJsonSchema,
|
|
17
|
+
name: "WazeCCPAlertsAlternative",
|
|
18
|
+
pgTableName: "wazeccp_alerts_alternative",
|
|
19
|
+
},
|
|
145
20
|
irregularities: {
|
|
146
|
-
datasourceJsonSchema:
|
|
21
|
+
datasourceJsonSchema: InputIrregularitiesJsonSchema_1.InputIrregularitiesJsonSchema,
|
|
147
22
|
name: "WazeCCPIrregularities",
|
|
148
23
|
pgTableName: "wazeccp_irregularities",
|
|
149
24
|
},
|
|
150
25
|
jams: {
|
|
151
|
-
datasourceJsonSchema:
|
|
26
|
+
datasourceJsonSchema: InputJamsJsonSchema_1.InputJamsJsonSchema,
|
|
152
27
|
name: "WazeCCPJams",
|
|
153
28
|
pgTableName: "wazeccp_jams",
|
|
154
29
|
},
|
|
155
|
-
name: "WazeCCP",
|
|
156
30
|
};
|
|
157
31
|
exports.WazeCCP = forExport;
|
|
158
32
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schema-definitions/index.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schema-definitions/index.ts"],"names":[],"mappings":";;;AAAA,+EAA+E;AAC/E,2EAA2E;AAC3E,+FAA+F;AAE/F,MAAM,SAAS,GAAQ;IACnB,IAAI,EAAE,SAAS;IACf,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE;QACJ,oBAAoB,EAAE,6CAAqB;QAC3C,IAAI,EAAE,eAAe;QACrB,WAAW,EAAE,gBAAgB;KAChC;IACD,iBAAiB,EAAE;QACf,oBAAoB,EAAE,6CAAqB;QAC3C,IAAI,EAAE,0BAA0B;QAChC,WAAW,EAAE,4BAA4B;KAC5C;IACD,cAAc,EAAE;QACZ,oBAAoB,EAAE,6DAA6B;QACnD,IAAI,EAAE,uBAAuB;QAC7B,WAAW,EAAE,wBAAwB;KACxC;IACD,IAAI,EAAE;QACF,oBAAoB,EAAE,yCAAmB;QACzC,IAAI,EAAE,aAAa;QACnB,WAAW,EAAE,cAAc;KAC9B;CACJ,CAAC;AAEoB,4BAAO"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface IAlertAlternativeDto {
|
|
2
|
+
city: string | null;
|
|
3
|
+
confidence: number | null;
|
|
4
|
+
country: string | null;
|
|
5
|
+
downloaded_at: Date;
|
|
6
|
+
jam_uuid: string | null;
|
|
7
|
+
location: {
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
};
|
|
11
|
+
magvar: number | null;
|
|
12
|
+
pub_millis: string;
|
|
13
|
+
pub_utc_date: Date;
|
|
14
|
+
reliability: number | null;
|
|
15
|
+
report_by_municipality_user: boolean;
|
|
16
|
+
report_description: string | null;
|
|
17
|
+
report_rating: number | null;
|
|
18
|
+
road_type: number | null;
|
|
19
|
+
street: string | null;
|
|
20
|
+
subtype: string | null;
|
|
21
|
+
thumbs_up: number | null;
|
|
22
|
+
type: string | null;
|
|
23
|
+
uuid: string;
|
|
24
|
+
valid_from: Date;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAlertAlternativeDto.js","sourceRoot":"","sources":["../../../src/schema-definitions/interfaces/IAlertAlternativeDto.ts"],"names":[],"mappings":""}
|
|
@@ -1,25 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
downloaded_at: Date;
|
|
6
|
-
jam_uuid: string | null;
|
|
7
|
-
location: {
|
|
8
|
-
x: number;
|
|
9
|
-
y: number;
|
|
10
|
-
};
|
|
11
|
-
magvar: number | null;
|
|
12
|
-
pub_millis: string | number;
|
|
13
|
-
pub_utc_date: Date;
|
|
14
|
-
reliability: number | null;
|
|
15
|
-
report_by_municipality_user: boolean;
|
|
16
|
-
report_description: string | null;
|
|
17
|
-
report_rating: number | null;
|
|
18
|
-
road_type: number | null;
|
|
19
|
-
street: string | null;
|
|
20
|
-
subtype: string | null;
|
|
21
|
-
thumbs_up: number | null;
|
|
22
|
-
type: string | null;
|
|
23
|
-
uuid: string;
|
|
24
|
-
valid_from: Date;
|
|
1
|
+
import { IAlertAlternativeDto } from "./IAlertAlternativeDto";
|
|
2
|
+
export interface IAlertDto extends IAlertAlternativeDto {
|
|
3
|
+
id: string;
|
|
4
|
+
duplicate_count: number;
|
|
25
5
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { IAlertAlternativeDto } from "../interfaces/IAlertAlternativeDto";
|
|
2
|
+
import { Model, ModelAttributes } from "@golemio/core/dist/shared/sequelize";
|
|
3
|
+
import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
|
|
4
|
+
export declare class AlertAlternativeDto extends Model<IAlertAlternativeDto> implements IAlertAlternativeDto {
|
|
5
|
+
city: string | null;
|
|
6
|
+
confidence: number | null;
|
|
7
|
+
country: string | null;
|
|
8
|
+
downloaded_at: Date;
|
|
9
|
+
jam_uuid: string | null;
|
|
10
|
+
location: {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
};
|
|
14
|
+
magvar: number | null;
|
|
15
|
+
pub_millis: string;
|
|
16
|
+
pub_utc_date: Date;
|
|
17
|
+
reliability: number | null;
|
|
18
|
+
report_by_municipality_user: boolean;
|
|
19
|
+
report_description: string | null;
|
|
20
|
+
report_rating: number | null;
|
|
21
|
+
road_type: number | null;
|
|
22
|
+
street: string | null;
|
|
23
|
+
subtype: string | null;
|
|
24
|
+
thumbs_up: number | null;
|
|
25
|
+
type: string | null;
|
|
26
|
+
uuid: string;
|
|
27
|
+
valid_from: Date;
|
|
28
|
+
static attributeModel: ModelAttributes<AlertAlternativeDto>;
|
|
29
|
+
static jsonSchema: JSONSchemaType<IAlertAlternativeDto[]>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AlertAlternativeDto = void 0;
|
|
4
|
+
const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
|
|
5
|
+
class AlertAlternativeDto extends sequelize_1.Model {
|
|
6
|
+
}
|
|
7
|
+
exports.AlertAlternativeDto = AlertAlternativeDto;
|
|
8
|
+
AlertAlternativeDto.attributeModel = {
|
|
9
|
+
city: sequelize_1.DataTypes.TEXT,
|
|
10
|
+
confidence: sequelize_1.DataTypes.INTEGER,
|
|
11
|
+
country: sequelize_1.DataTypes.TEXT,
|
|
12
|
+
downloaded_at: { type: sequelize_1.DataTypes.DATE, allowNull: false },
|
|
13
|
+
jam_uuid: sequelize_1.DataTypes.TEXT,
|
|
14
|
+
location: sequelize_1.DataTypes.JSONB,
|
|
15
|
+
magvar: sequelize_1.DataTypes.INTEGER,
|
|
16
|
+
pub_millis: { type: sequelize_1.DataTypes.BIGINT, allowNull: false },
|
|
17
|
+
pub_utc_date: { type: sequelize_1.DataTypes.DATE, allowNull: false, primaryKey: true },
|
|
18
|
+
reliability: sequelize_1.DataTypes.INTEGER,
|
|
19
|
+
report_by_municipality_user: sequelize_1.DataTypes.BOOLEAN,
|
|
20
|
+
report_description: sequelize_1.DataTypes.TEXT,
|
|
21
|
+
report_rating: sequelize_1.DataTypes.INTEGER,
|
|
22
|
+
road_type: sequelize_1.DataTypes.INTEGER,
|
|
23
|
+
street: sequelize_1.DataTypes.TEXT,
|
|
24
|
+
subtype: sequelize_1.DataTypes.TEXT,
|
|
25
|
+
thumbs_up: sequelize_1.DataTypes.INTEGER,
|
|
26
|
+
type: sequelize_1.DataTypes.TEXT,
|
|
27
|
+
uuid: { type: sequelize_1.DataTypes.TEXT, allowNull: false, primaryKey: true },
|
|
28
|
+
valid_from: { type: sequelize_1.DataTypes.DATE, allowNull: false, primaryKey: true },
|
|
29
|
+
};
|
|
30
|
+
AlertAlternativeDto.jsonSchema = {
|
|
31
|
+
$schema: "http://json-schema.org/draft-04/schema#",
|
|
32
|
+
title: "AlertsDtoSchema",
|
|
33
|
+
type: "array",
|
|
34
|
+
items: {
|
|
35
|
+
type: "object",
|
|
36
|
+
properties: {
|
|
37
|
+
city: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
|
|
38
|
+
confidence: { oneOf: [{ type: "integer" }, { type: "null", nullable: true }] },
|
|
39
|
+
country: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
|
|
40
|
+
downloaded_at: { type: "object", required: ["toISOString"] },
|
|
41
|
+
jam_uuid: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
|
|
42
|
+
location: {
|
|
43
|
+
type: "object",
|
|
44
|
+
properties: { x: { type: "number" }, y: { type: "number" } },
|
|
45
|
+
required: ["x", "y"],
|
|
46
|
+
},
|
|
47
|
+
magvar: { oneOf: [{ type: "number" }, { type: "null", nullable: true }] },
|
|
48
|
+
pub_millis: { type: "string" },
|
|
49
|
+
pub_utc_date: { type: "object", required: ["toISOString"] },
|
|
50
|
+
reliability: { oneOf: [{ type: "integer" }, { type: "null", nullable: true }] },
|
|
51
|
+
report_by_municipality_user: { type: "boolean" },
|
|
52
|
+
report_description: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
|
|
53
|
+
report_rating: { oneOf: [{ type: "integer" }, { type: "null", nullable: true }] },
|
|
54
|
+
road_type: { oneOf: [{ type: "integer" }, { type: "null", nullable: true }] },
|
|
55
|
+
street: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
|
|
56
|
+
subtype: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
|
|
57
|
+
thumbs_up: { oneOf: [{ type: "integer" }, { type: "null", nullable: true }] },
|
|
58
|
+
type: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
|
|
59
|
+
uuid: { type: "string" },
|
|
60
|
+
valid_from: { type: "object", required: ["toISOString"] },
|
|
61
|
+
},
|
|
62
|
+
required: ["pub_millis", "pub_utc_date", "uuid"],
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
//# sourceMappingURL=AlertAlternativeDto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlertAlternativeDto.js","sourceRoot":"","sources":["../../../src/schema-definitions/models/AlertAlternativeDto.ts"],"names":[],"mappings":";;;AACA,mEAAwF;AAGxF,MAAa,mBAAoB,SAAQ,iBAA2B;;AAApE,kDAgFC;AA1DiB,kCAAc,GAAyC;IACjE,IAAI,EAAE,qBAAS,CAAC,IAAI;IACpB,UAAU,EAAE,qBAAS,CAAC,OAAO;IAC7B,OAAO,EAAE,qBAAS,CAAC,IAAI;IACvB,aAAa,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE;IACzD,QAAQ,EAAE,qBAAS,CAAC,IAAI;IACxB,QAAQ,EAAE,qBAAS,CAAC,KAAK;IACzB,MAAM,EAAE,qBAAS,CAAC,OAAO;IACzB,UAAU,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE;IACxD,YAAY,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU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AAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,EAAE;YAC7E,MAAM,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,EAAE;YACzE,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,EAAE;YAC1E,SAAS,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,EAAE;YAC7E,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,EAAE;YACvE,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACxB,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,aAAa,CAAC,EAAE;SAC5D;QACD,QAAQ,EAAE,CAAC,YAAY,EAAE,cAAc,EAAE,MAAM,CAAC;KACnD;CACJ,CAAC"}
|
|
@@ -6,13 +6,15 @@ export declare class AlertDto extends Model<IAlertDto> implements IAlertDto {
|
|
|
6
6
|
confidence: number | null;
|
|
7
7
|
country: string | null;
|
|
8
8
|
downloaded_at: Date;
|
|
9
|
+
duplicate_count: number;
|
|
10
|
+
id: string;
|
|
9
11
|
jam_uuid: string | null;
|
|
10
12
|
location: {
|
|
11
13
|
x: number;
|
|
12
14
|
y: number;
|
|
13
15
|
};
|
|
14
16
|
magvar: number | null;
|
|
15
|
-
pub_millis: string
|
|
17
|
+
pub_millis: string;
|
|
16
18
|
pub_utc_date: Date;
|
|
17
19
|
reliability: number | null;
|
|
18
20
|
report_by_municipality_user: boolean;
|