@golemio/pid 3.12.1 → 3.12.2-dev.1781559757
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/example/00_clear_test_data.sql +3 -1
- package/db/example/22_jis_events.sql +551 -0
- package/db/migrations/postgresql/20250415115907-jis-events.js +53 -0
- package/db/migrations/postgresql/sqls/20250415115907-jis-events-down.sql +3 -0
- package/db/migrations/postgresql/sqls/20250415115907-jis-events-up.sql +30 -0
- package/dist/{output-gateway/shared/constants/jis/InfotextSeverityLevelEnum.d.ts → helpers/jis/JISEventSeverityLevelEnum.d.ts} +1 -1
- package/dist/helpers/jis/JISEventSeverityLevelEnum.js +10 -0
- package/dist/helpers/jis/JISEventSeverityLevelEnum.js.map +1 -0
- package/dist/helpers/jis/JISInfotextSeverityLevelEnum.d.ts +5 -0
- package/dist/helpers/jis/JISInfotextSeverityLevelEnum.js +10 -0
- package/dist/helpers/jis/JISInfotextSeverityLevelEnum.js.map +1 -0
- package/dist/input-gateway/jis/JisInfotextsRouter.d.ts +4 -2
- package/dist/input-gateway/jis/JisInfotextsRouter.js +19 -5
- package/dist/input-gateway/jis/JisInfotextsRouter.js.map +1 -1
- package/dist/input-gateway/jis/controllers/JisEventsController.d.ts +9 -0
- package/dist/input-gateway/jis/controllers/JisEventsController.js +28 -0
- package/dist/input-gateway/jis/controllers/JisEventsController.js.map +1 -0
- package/dist/input-gateway/jis/{JisInfotextsController.js → controllers/JisInfotextsController.js} +1 -1
- package/dist/input-gateway/jis/controllers/JisInfotextsController.js.map +1 -0
- package/dist/input-gateway/vehicle-positions/VehiclePositionsController.js +0 -1
- package/dist/input-gateway/vehicle-positions/VehiclePositionsController.js.map +1 -1
- package/dist/integration-engine/data-retention/ioc/RetentionContainerToken.js +1 -1
- package/dist/integration-engine/data-retention/ioc/RetentionContainerToken.js.map +1 -1
- package/dist/integration-engine/ioc/ModuleContainerToken.js +9 -9
- package/dist/integration-engine/ioc/ModuleContainerToken.js.map +1 -1
- package/dist/integration-engine/jis/datasources/JISEventsDataSourceFactory.d.ts +10 -0
- package/dist/integration-engine/jis/datasources/JISEventsDataSourceFactory.js +52 -0
- package/dist/integration-engine/jis/datasources/JISEventsDataSourceFactory.js.map +1 -0
- package/dist/integration-engine/jis/ioc/Di.js +16 -2
- package/dist/integration-engine/jis/ioc/Di.js.map +1 -1
- package/dist/integration-engine/jis/ioc/JISContainerToken.d.ts +8 -1
- package/dist/integration-engine/jis/ioc/JISContainerToken.js +15 -8
- package/dist/integration-engine/jis/ioc/JISContainerToken.js.map +1 -1
- package/dist/integration-engine/jis/repositories/JISEventsRepository.d.ts +29 -0
- package/dist/integration-engine/jis/repositories/JISEventsRepository.js +113 -0
- package/dist/integration-engine/jis/repositories/JISEventsRepository.js.map +1 -0
- package/dist/integration-engine/jis/repositories/JISEventsRopidGTFSRoutesRepository.d.ts +30 -0
- package/dist/integration-engine/jis/repositories/JISEventsRopidGTFSRoutesRepository.js +88 -0
- package/dist/integration-engine/jis/repositories/JISEventsRopidGTFSRoutesRepository.js.map +1 -0
- package/dist/integration-engine/jis/services/JISEventsDataService.d.ts +20 -0
- package/dist/integration-engine/jis/services/JISEventsDataService.js +74 -0
- package/dist/integration-engine/jis/services/JISEventsDataService.js.map +1 -0
- package/dist/integration-engine/jis/transformations/JISEventsTransformation.d.ts +13 -0
- package/dist/integration-engine/jis/transformations/JISEventsTransformation.js +48 -0
- package/dist/integration-engine/jis/transformations/JISEventsTransformation.js.map +1 -0
- package/dist/integration-engine/jis/workers/JISWorker.js +3 -1
- package/dist/integration-engine/jis/workers/JISWorker.js.map +1 -1
- package/dist/integration-engine/jis/workers/tasks/FetchJISEventsTask.d.ts +9 -0
- package/dist/integration-engine/jis/workers/tasks/FetchJISEventsTask.js +50 -0
- package/dist/integration-engine/jis/workers/tasks/FetchJISEventsTask.js.map +1 -0
- package/dist/integration-engine/jis/workers/tasks/RefreshJISEventsTask.d.ts +15 -0
- package/dist/integration-engine/jis/workers/tasks/RefreshJISEventsTask.js +61 -0
- package/dist/integration-engine/jis/workers/tasks/RefreshJISEventsTask.js.map +1 -0
- package/dist/integration-engine/ropid-gtfs/data-access/cache/DelayComputationRedisRepository.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/ioc/RopidGtfsContainerToken.js +29 -29
- package/dist/integration-engine/ropid-gtfs/ioc/RopidGtfsContainerToken.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/ioc/VPContainerToken.js +43 -43
- package/dist/integration-engine/vehicle-positions/ioc/VPContainerToken.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/tasks/PropagateTrainDelayTask.js.map +1 -1
- package/dist/output-gateway/pid/ioc/OgPidToken.js +22 -22
- package/dist/output-gateway/pid/ioc/OgPidToken.js.map +1 -1
- package/dist/output-gateway/pid/service/helpers/PriorityMapper.d.ts +2 -2
- package/dist/output-gateway/pid/service/helpers/PriorityMapper.js +4 -4
- package/dist/output-gateway/pid/service/helpers/PriorityMapper.js.map +1 -1
- package/dist/output-gateway/public/ioc/OgModuleToken.js +26 -26
- package/dist/output-gateway/public/ioc/OgModuleToken.js.map +1 -1
- package/dist/schema-definitions/jis/constants/jisEventCause.d.ts +1 -0
- package/dist/schema-definitions/jis/constants/jisEventCause.js +18 -0
- package/dist/schema-definitions/jis/constants/jisEventCause.js.map +1 -0
- package/dist/schema-definitions/jis/constants/jisEventEffect.d.ts +1 -0
- package/dist/schema-definitions/jis/constants/jisEventEffect.js +17 -0
- package/dist/schema-definitions/jis/constants/jisEventEffect.js.map +1 -0
- package/dist/schema-definitions/jis/datasources/JISEventsJsonSchema.d.ts +3 -0
- package/dist/schema-definitions/jis/datasources/JISEventsJsonSchema.js +88 -0
- package/dist/schema-definitions/jis/datasources/JISEventsJsonSchema.js.map +1 -0
- package/dist/schema-definitions/jis/datasources/JISInfotextsJsonSchema.js +2 -2
- package/dist/schema-definitions/jis/datasources/JISInfotextsJsonSchema.js.map +1 -1
- package/dist/schema-definitions/jis/datasources/interfaces/IJISEvent.d.ts +25 -0
- package/dist/schema-definitions/jis/datasources/interfaces/IJISEvent.js +3 -0
- package/dist/schema-definitions/jis/datasources/interfaces/IJISEvent.js.map +1 -0
- package/dist/schema-definitions/jis/datasources/interfaces/IJISEventRoute.d.ts +3 -0
- package/dist/schema-definitions/jis/datasources/interfaces/IJISEventRoute.js +3 -0
- package/dist/schema-definitions/jis/datasources/interfaces/IJISEventRoute.js.map +1 -0
- package/dist/schema-definitions/jis/datasources/interfaces/IJISInfotext.d.ts +2 -2
- package/dist/schema-definitions/jis/datasources/interfaces/index.d.ts +2 -0
- package/dist/schema-definitions/jis/datasources/interfaces/index.js +2 -0
- package/dist/schema-definitions/jis/datasources/interfaces/index.js.map +1 -1
- package/dist/schema-definitions/jis/models/JISEventsModel.d.ts +28 -0
- package/dist/schema-definitions/jis/models/JISEventsModel.js +137 -0
- package/dist/schema-definitions/jis/models/JISEventsModel.js.map +1 -0
- package/dist/schema-definitions/jis/models/JISEventsRopidGTFSRoutesModel.d.ts +12 -0
- package/dist/schema-definitions/jis/models/JISEventsRopidGTFSRoutesModel.js +41 -0
- package/dist/schema-definitions/jis/models/JISEventsRopidGTFSRoutesModel.js.map +1 -0
- package/dist/schema-definitions/jis/models/JISInfotextsModel.d.ts +2 -2
- package/dist/schema-definitions/jis/models/JISInfotextsModel.js +3 -3
- package/dist/schema-definitions/jis/models/JISInfotextsModel.js.map +1 -1
- package/dist/schema-definitions/jis/models/interfaces/IJISEvent.d.ts +19 -0
- package/dist/schema-definitions/jis/models/interfaces/IJISEvent.js +3 -0
- package/dist/schema-definitions/jis/models/interfaces/IJISEvent.js.map +1 -0
- package/dist/schema-definitions/jis/models/interfaces/IJISEventsRopidGTFSRoutes.d.ts +4 -0
- package/dist/schema-definitions/jis/models/interfaces/IJISEventsRopidGTFSRoutes.js +3 -0
- package/dist/schema-definitions/jis/models/interfaces/IJISEventsRopidGTFSRoutes.js.map +1 -0
- package/dist/schema-definitions/jis/models/interfaces/IJISInfotext.d.ts +2 -2
- package/dist/schema-definitions/jis/models/interfaces/index.d.ts +2 -0
- package/dist/schema-definitions/jis/models/interfaces/index.js +2 -0
- package/dist/schema-definitions/jis/models/interfaces/index.js.map +1 -1
- package/docs/assets/pid_jis_erd.png +0 -0
- package/docs/asyncapi.yaml +278 -55
- package/docs/implementation_documentation.md +45 -1
- package/docs/openapi-input.yaml +328 -58
- package/package.json +2 -2
- package/dist/input-gateway/jis/JisInfotextsController.js.map +0 -1
- package/dist/output-gateway/shared/constants/jis/InfotextSeverityLevelEnum.js +0 -10
- package/dist/output-gateway/shared/constants/jis/InfotextSeverityLevelEnum.js.map +0 -1
- /package/dist/input-gateway/jis/{JisInfotextsController.d.ts → controllers/JisInfotextsController.d.ts} +0 -0
package/docs/openapi-input.yaml
CHANGED
|
@@ -161,62 +161,116 @@ paths:
|
|
|
161
161
|
WWW_Authenticate:
|
|
162
162
|
schema:
|
|
163
163
|
type: string
|
|
164
|
+
/jis/events:
|
|
165
|
+
post:
|
|
166
|
+
summary: POST JIS events
|
|
167
|
+
description: ""
|
|
168
|
+
tags:
|
|
169
|
+
- 🪧 JIS
|
|
170
|
+
parameters:
|
|
171
|
+
- in: header
|
|
172
|
+
name: Content-Type
|
|
173
|
+
schema:
|
|
174
|
+
type: string
|
|
175
|
+
example: "application/json"
|
|
176
|
+
required: true
|
|
177
|
+
requestBody:
|
|
178
|
+
required: true
|
|
179
|
+
content:
|
|
180
|
+
application/json:
|
|
181
|
+
schema:
|
|
182
|
+
$ref: "#/components/schemas/JISEvents"
|
|
183
|
+
examples:
|
|
184
|
+
json:
|
|
185
|
+
$ref: "#/components/examples/JISEventsExample"
|
|
186
|
+
responses:
|
|
187
|
+
"204":
|
|
188
|
+
description: Successful Operation
|
|
189
|
+
"400":
|
|
190
|
+
description: Bad Request
|
|
191
|
+
content:
|
|
192
|
+
application/json:
|
|
193
|
+
schema:
|
|
194
|
+
$ref: "#/components/schemas/Error"
|
|
195
|
+
example:
|
|
196
|
+
error_message: "Bad Request"
|
|
197
|
+
error_status: 400
|
|
198
|
+
"406":
|
|
199
|
+
description: Not Acceptable
|
|
200
|
+
"413":
|
|
201
|
+
description: Payload Too Large
|
|
202
|
+
content:
|
|
203
|
+
application/json:
|
|
204
|
+
schema:
|
|
205
|
+
$ref: "#/components/schemas/Error"
|
|
206
|
+
example:
|
|
207
|
+
error_message: "Request entity too large"
|
|
208
|
+
error_status: 413
|
|
209
|
+
"422":
|
|
210
|
+
description: Unprocessable Entity
|
|
211
|
+
content:
|
|
212
|
+
application/json:
|
|
213
|
+
schema:
|
|
214
|
+
$ref: "#/components/schemas/Error"
|
|
215
|
+
example:
|
|
216
|
+
error_info: "validation failed [{\"keyword\":\"type\",\"dataPath\":\"[0].severity_level\",\"schemaPath\":\"#/items/properties/severity_level/type\",\"params\":{\"type\":\"string\"},\"message\":\"should be string\"}]"
|
|
217
|
+
error_message: "Unprocessable Entity"
|
|
218
|
+
error_status: 422
|
|
164
219
|
/jis/infotexts:
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
220
|
+
post:
|
|
221
|
+
summary: POST JIS infotexts
|
|
222
|
+
description: ""
|
|
223
|
+
tags:
|
|
224
|
+
- 🪧 JIS
|
|
225
|
+
parameters:
|
|
226
|
+
- in: header
|
|
227
|
+
name: Content-Type
|
|
228
|
+
schema:
|
|
229
|
+
type: string
|
|
230
|
+
example: "application/json"
|
|
231
|
+
required: true
|
|
232
|
+
requestBody:
|
|
233
|
+
required: true
|
|
234
|
+
content:
|
|
235
|
+
application/json:
|
|
236
|
+
schema:
|
|
237
|
+
$ref: "#/components/schemas/JISInfotexts"
|
|
238
|
+
examples:
|
|
239
|
+
json:
|
|
240
|
+
$ref: "#/components/examples/JISInfotextsExample"
|
|
241
|
+
responses:
|
|
242
|
+
"204":
|
|
243
|
+
description: Successful Operation
|
|
244
|
+
"400":
|
|
245
|
+
description: Bad Request
|
|
179
246
|
content:
|
|
180
247
|
application/json:
|
|
181
248
|
schema:
|
|
182
|
-
$ref: "#/components/schemas/
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
error_message: "Bad Request"
|
|
208
|
-
error_status: 400
|
|
209
|
-
"406":
|
|
210
|
-
description: Not Acceptable
|
|
211
|
-
"413":
|
|
212
|
-
description: Payload Too Large
|
|
213
|
-
content:
|
|
214
|
-
application/json:
|
|
215
|
-
schema:
|
|
216
|
-
$ref: "#/components/schemas/Error"
|
|
217
|
-
example:
|
|
218
|
-
error_message: "Request entity too large"
|
|
219
|
-
error_status: 413
|
|
249
|
+
$ref: "#/components/schemas/Error"
|
|
250
|
+
example:
|
|
251
|
+
error_message: "Bad Request"
|
|
252
|
+
error_status: 400
|
|
253
|
+
"406":
|
|
254
|
+
description: Not Acceptable
|
|
255
|
+
"413":
|
|
256
|
+
description: Payload Too Large
|
|
257
|
+
content:
|
|
258
|
+
application/json:
|
|
259
|
+
schema:
|
|
260
|
+
$ref: "#/components/schemas/Error"
|
|
261
|
+
example:
|
|
262
|
+
error_message: "Request entity too large"
|
|
263
|
+
error_status: 413
|
|
264
|
+
"422":
|
|
265
|
+
description: Unprocessable Entity
|
|
266
|
+
content:
|
|
267
|
+
application/json:
|
|
268
|
+
schema:
|
|
269
|
+
$ref: "#/components/schemas/Error"
|
|
270
|
+
example:
|
|
271
|
+
error_info: "validation failed [{\"keyword\":\"type\",\"dataPath\":\"[0].severity_level\",\"schemaPath\":\"#/items/properties/severity_level/type\",\"params\":{\"type\":\"string\"},\"message\":\"should be string\"}]"
|
|
272
|
+
error_message: "Unprocessable Entity"
|
|
273
|
+
error_status: 422
|
|
220
274
|
|
|
221
275
|
components:
|
|
222
276
|
schemas:
|
|
@@ -415,8 +469,195 @@ components:
|
|
|
415
469
|
query:
|
|
416
470
|
type: string
|
|
417
471
|
example: "?minutesAfter=300&limit=8&mode=departures&cisIds=40110"
|
|
418
|
-
|
|
419
|
-
title:
|
|
472
|
+
JISEvents:
|
|
473
|
+
title: JIS events
|
|
474
|
+
type: array
|
|
475
|
+
items:
|
|
476
|
+
type: object
|
|
477
|
+
required:
|
|
478
|
+
- id
|
|
479
|
+
- type
|
|
480
|
+
- header_text
|
|
481
|
+
- cause
|
|
482
|
+
- cause_detail
|
|
483
|
+
- severity_level
|
|
484
|
+
- active_period
|
|
485
|
+
- effect
|
|
486
|
+
- effect_detail
|
|
487
|
+
- description_text
|
|
488
|
+
- url
|
|
489
|
+
- organization_name
|
|
490
|
+
- created_timestamp
|
|
491
|
+
- last_modified_timestamp
|
|
492
|
+
properties:
|
|
493
|
+
id:
|
|
494
|
+
type: string
|
|
495
|
+
format: uuid
|
|
496
|
+
description: Unique identifier of the event in the UUIDv4 format
|
|
497
|
+
example: e5cc7b38-79e1-4f7a-b8de-884971e23412
|
|
498
|
+
type:
|
|
499
|
+
type: string
|
|
500
|
+
example: INCIDENT
|
|
501
|
+
enum:
|
|
502
|
+
- INCIDENT
|
|
503
|
+
- DISRUPTION
|
|
504
|
+
- SERVICE_CHANGE
|
|
505
|
+
header_text:
|
|
506
|
+
type: object
|
|
507
|
+
properties:
|
|
508
|
+
cs:
|
|
509
|
+
type: string
|
|
510
|
+
example: Nehoda Jiřího z Poděbrad
|
|
511
|
+
en:
|
|
512
|
+
type: string
|
|
513
|
+
example: Accident at Jiřího z Poděbrad
|
|
514
|
+
nullable: true
|
|
515
|
+
required:
|
|
516
|
+
- cs
|
|
517
|
+
- en
|
|
518
|
+
cause:
|
|
519
|
+
type: string
|
|
520
|
+
example: ACCIDENT
|
|
521
|
+
enum:
|
|
522
|
+
- ACCIDENT
|
|
523
|
+
- STRIKE
|
|
524
|
+
- TECHNICAL_PROBLEM
|
|
525
|
+
- CONSTRUCTION
|
|
526
|
+
- WEATHER
|
|
527
|
+
- DEMONSTRATION
|
|
528
|
+
- POLICE_ACTIVITY
|
|
529
|
+
- MEDICAL_EMERGENCY
|
|
530
|
+
- OTHER_CAUSE
|
|
531
|
+
- UNKNOWN_CAUSE
|
|
532
|
+
- HOLIDAY
|
|
533
|
+
- MAINTENANCE
|
|
534
|
+
cause_detail:
|
|
535
|
+
type: object
|
|
536
|
+
properties:
|
|
537
|
+
cs:
|
|
538
|
+
type: string
|
|
539
|
+
example: Nehoda na křižovatce
|
|
540
|
+
en:
|
|
541
|
+
type: string
|
|
542
|
+
example: Accident at the intersection
|
|
543
|
+
nullable: true
|
|
544
|
+
required:
|
|
545
|
+
- cs
|
|
546
|
+
- en
|
|
547
|
+
severity_level:
|
|
548
|
+
type: string
|
|
549
|
+
example: SEVERE
|
|
550
|
+
enum:
|
|
551
|
+
- INFO
|
|
552
|
+
- WARNING
|
|
553
|
+
- SEVERE
|
|
554
|
+
description: |
|
|
555
|
+
INFO - priority 3 \
|
|
556
|
+
WARNING - priority 2 \
|
|
557
|
+
SEVERE - priority 1
|
|
558
|
+
active_period:
|
|
559
|
+
type: object
|
|
560
|
+
required:
|
|
561
|
+
- start
|
|
562
|
+
- end
|
|
563
|
+
properties:
|
|
564
|
+
start:
|
|
565
|
+
type: string
|
|
566
|
+
format: date-time
|
|
567
|
+
example: "2024-02-29T11:22:20.958Z"
|
|
568
|
+
end:
|
|
569
|
+
type: string
|
|
570
|
+
format: date-time
|
|
571
|
+
nullable: true
|
|
572
|
+
example: "2024-03-03T14:22:20.958Z"
|
|
573
|
+
description: The start and end date/time of the event validity
|
|
574
|
+
effect:
|
|
575
|
+
type: string
|
|
576
|
+
example: DETOUR
|
|
577
|
+
enum:
|
|
578
|
+
- DETOUR
|
|
579
|
+
- REDUCED_SERVICE
|
|
580
|
+
- MODIFIED_SERVICE
|
|
581
|
+
- SIGNIFICANT_DELAYS
|
|
582
|
+
- ADDITIONAL_SERVICE
|
|
583
|
+
- OTHER_EFFECT
|
|
584
|
+
- NO_SERVICE
|
|
585
|
+
- STOP_MOVED
|
|
586
|
+
- NO_EFFECT
|
|
587
|
+
- ACCESSIBILITY_ISSUE
|
|
588
|
+
- UNKNOWN_EFFECT
|
|
589
|
+
effect_detail:
|
|
590
|
+
type: object
|
|
591
|
+
properties:
|
|
592
|
+
cs:
|
|
593
|
+
type: string
|
|
594
|
+
example: Tramvaje jezdí několik zastávek jinudy.
|
|
595
|
+
en:
|
|
596
|
+
type: string
|
|
597
|
+
example: Trams are running a few stops differently.
|
|
598
|
+
nullable: true
|
|
599
|
+
required:
|
|
600
|
+
- cs
|
|
601
|
+
- en
|
|
602
|
+
description_text:
|
|
603
|
+
type: object
|
|
604
|
+
properties:
|
|
605
|
+
cs:
|
|
606
|
+
type: string
|
|
607
|
+
description: Event description in Czech
|
|
608
|
+
en:
|
|
609
|
+
type: string
|
|
610
|
+
nullable: true
|
|
611
|
+
description: Event description in English
|
|
612
|
+
required:
|
|
613
|
+
- cs
|
|
614
|
+
- en
|
|
615
|
+
description: Localized descriptions of the event
|
|
616
|
+
url:
|
|
617
|
+
type: object
|
|
618
|
+
properties:
|
|
619
|
+
cs:
|
|
620
|
+
type: string
|
|
621
|
+
format: uri
|
|
622
|
+
example: https://pid.cz/zmena/cs/nehoda-jiriho-z-podebrad
|
|
623
|
+
en:
|
|
624
|
+
type: string
|
|
625
|
+
format: uri
|
|
626
|
+
nullable: true
|
|
627
|
+
example: https://pid.cz/zmena/en/accident-jiriho-z-podebrad
|
|
628
|
+
required:
|
|
629
|
+
- cs
|
|
630
|
+
- en
|
|
631
|
+
organization_name:
|
|
632
|
+
type: string
|
|
633
|
+
example: ROPID
|
|
634
|
+
informed_entity:
|
|
635
|
+
type: object
|
|
636
|
+
nullable: true
|
|
637
|
+
properties:
|
|
638
|
+
routes:
|
|
639
|
+
type: array
|
|
640
|
+
nullable: true
|
|
641
|
+
items:
|
|
642
|
+
type: object
|
|
643
|
+
properties:
|
|
644
|
+
id:
|
|
645
|
+
type: string
|
|
646
|
+
description: Unique GTFS identifier of the affected route
|
|
647
|
+
required:
|
|
648
|
+
- id
|
|
649
|
+
last_modified_timestamp:
|
|
650
|
+
type: string
|
|
651
|
+
format: date-time
|
|
652
|
+
example: "2024-02-29T12:22:20.958Z"
|
|
653
|
+
description: Timestamp from when the event was last modified in VYMI
|
|
654
|
+
created_timestamp:
|
|
655
|
+
type: string
|
|
656
|
+
format: date-time
|
|
657
|
+
example: "2024-02-29T12:22:20.958Z"
|
|
658
|
+
description: Timestamp from when the event was created in VYMI
|
|
659
|
+
JISInfotexts:
|
|
660
|
+
title: JIS infotexts
|
|
420
661
|
type: array
|
|
421
662
|
items:
|
|
422
663
|
type: object
|
|
@@ -471,11 +712,11 @@ components:
|
|
|
471
712
|
items:
|
|
472
713
|
type: object
|
|
473
714
|
properties:
|
|
474
|
-
|
|
715
|
+
id:
|
|
475
716
|
type: string
|
|
476
717
|
description: Unique identifier for the stop
|
|
477
718
|
required:
|
|
478
|
-
-
|
|
719
|
+
- id
|
|
479
720
|
required:
|
|
480
721
|
- stops
|
|
481
722
|
created_timestamp:
|
|
@@ -570,7 +811,36 @@ components:
|
|
|
570
811
|
"query": "?minutesAfter=40&limit=6&mode=departures&filter=routeHeadingOnceNoGapFill&order=real&aswIds=2781_2&aswIds=2781_52&skip=atStop&airCondition=true"
|
|
571
812
|
}
|
|
572
813
|
]
|
|
573
|
-
|
|
814
|
+
JISEventsExample:
|
|
815
|
+
value : |-
|
|
816
|
+
[
|
|
817
|
+
{
|
|
818
|
+
"id": "36fe0c55-5e03-4dd3-a64d-a53d1535f0a5",
|
|
819
|
+
"type": "INCIDENT",
|
|
820
|
+
"header_text": { "cs": "Libeňský zámek - U Kříže" },
|
|
821
|
+
"cause": "TECHNICAL_PROBLEM",
|
|
822
|
+
"cause_detail": {
|
|
823
|
+
"cs": "Překážka na trati, technická závada trolejbusu na kolejích"
|
|
824
|
+
},
|
|
825
|
+
"severity_level": "SEVERE",
|
|
826
|
+
"active_period": { "start": "2024-02-07T12:11:00.000Z", "end": null },
|
|
827
|
+
"effect": "MODIFIED_SERVICE",
|
|
828
|
+
"effect_detail": { "cs": "Provoz omezen" },
|
|
829
|
+
"description_text": {
|
|
830
|
+
"cs": "V Libni je omezen provoz tramvají. Důvodem je technická závada trolejbusu na kolejích."
|
|
831
|
+
},
|
|
832
|
+
"url": {
|
|
833
|
+
"cs": "https://dpp.cz/omezeni-a-mimoradne-udalosti/detail/test-0"
|
|
834
|
+
},
|
|
835
|
+
"informed_entity": {
|
|
836
|
+
"routes": [{ "id": "L24" }, { "id": "L10" }, { "id": "L3" }]
|
|
837
|
+
},
|
|
838
|
+
"organization_name": "OICT",
|
|
839
|
+
"created_timestamp": "2025-04-17T15:42:41.843Z",
|
|
840
|
+
"last_modified_timestamp": "2025-04-17T15:42:41.843Z"
|
|
841
|
+
}
|
|
842
|
+
]
|
|
843
|
+
JISInfotextsExample:
|
|
574
844
|
value : |-
|
|
575
845
|
[
|
|
576
846
|
{
|
|
@@ -623,4 +893,4 @@ components:
|
|
|
623
893
|
"created_timestamp": "2024-11-08T10:44:34.701Z",
|
|
624
894
|
"last_modified_timestamp": "2024-11-08T10:44:34.701Z"
|
|
625
895
|
}
|
|
626
|
-
]
|
|
896
|
+
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golemio/pid",
|
|
3
|
-
"version": "3.12.
|
|
3
|
+
"version": "3.12.2-dev.1781559757",
|
|
4
4
|
"description": "Golemio PID Module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"@golemio/core": ">=1.16.0-rc.1551191551"
|
|
77
77
|
},
|
|
78
78
|
"dependencies": {
|
|
79
|
-
"@golemio/ovapi-gtfs-realtime-bindings": "1.2.
|
|
79
|
+
"@golemio/ovapi-gtfs-realtime-bindings": "1.2.4-dev.1288219308",
|
|
80
80
|
"@turf/turf": "^6.5.0",
|
|
81
81
|
"cheap-ruler": "^3.0.2",
|
|
82
82
|
"csv-parser": "^3.0.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"JisInfotextsController.js","sourceRoot":"","sources":["../../../src/input-gateway/jis/JisInfotextsController.ts"],"names":[],"mappings":";;;AAAA,4GAAqF;AACrF,8EAA8E;AAC9E,6EAA8F;AAC9F,mFAAkF;AAElF,MAAa,sBAAuB,SAAQ,4BAAc;IAKtD;QACI,KAAK,CAAC,KAAK,EAAE,IAAI,uCAAmB,CAAC,4BAA4B,EAAE,+CAAsB,CAAC,CAAC,CAAC;QAGzF,gBAAW,GAAG,KAAK,EAAE,SAAc,EAAiB,EAAE;YACzD,IAAI;gBACA,MAAM,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;gBACzC,MAAM,IAAI,CAAC,qBAAqB,CAAC,QAAQ,GAAG,IAAI,CAAC,WAAW,GAAG,sBAAsB,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;aACrH;YAAC,OAAO,GAAG,EAAE;gBACV,IAAI,GAAG,YAAY,qCAAoB,EAAE;oBACrC,MAAM,GAAG,CAAC;iBACb;qBAAM;oBACH,MAAM,IAAI,6BAAY,CAAC,oCAAoC,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;iBACjG;aACJ;QACL,CAAC,CAAC;IAbF,CAAC;CAcJ;AArBD,wDAqBC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InfotextSeverityLevel = void 0;
|
|
4
|
-
var InfotextSeverityLevel;
|
|
5
|
-
(function (InfotextSeverityLevel) {
|
|
6
|
-
InfotextSeverityLevel["Info"] = "INFO";
|
|
7
|
-
InfotextSeverityLevel["Warning"] = "WARNING";
|
|
8
|
-
InfotextSeverityLevel["Severe"] = "SEVERE";
|
|
9
|
-
})(InfotextSeverityLevel || (exports.InfotextSeverityLevel = InfotextSeverityLevel = {}));
|
|
10
|
-
//# sourceMappingURL=InfotextSeverityLevelEnum.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InfotextSeverityLevelEnum.js","sourceRoot":"","sources":["../../../../../src/output-gateway/shared/constants/jis/InfotextSeverityLevelEnum.ts"],"names":[],"mappings":";;;AAAA,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC7B,sCAAa,CAAA;IACb,4CAAmB,CAAA;IACnB,0CAAiB,CAAA;AACrB,CAAC,EAJW,qBAAqB,qCAArB,qBAAqB,QAIhC"}
|
|
File without changes
|