@golemio/pid 6.3.1-dev.3026793217 → 6.3.1-dev.3047078710
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/jis/transformations/JISEventsGtfsRtTransformation.d.ts +1 -0
- package/dist/integration-engine/jis/transformations/JISEventsGtfsRtTransformation.js +9 -0
- package/dist/integration-engine/jis/transformations/JISEventsGtfsRtTransformation.js.map +1 -1
- package/docs/jis/index.md +2 -2
- package/docs/openapi-output.yaml +179 -20
- package/package.json +1 -1
|
@@ -10,6 +10,7 @@ type TransformOut = IGtfsRtAlert;
|
|
|
10
10
|
export declare class JISEventsGtfsRtTransformation extends AbstractTransformation<TransformIn, TransformOut> {
|
|
11
11
|
name: string;
|
|
12
12
|
private static PID_WEB_EVENTS_URL;
|
|
13
|
+
private static readonly SEVERITY_LEVEL_MAPPING;
|
|
13
14
|
protected transformInternal: (data: TransformIn) => TransformOut;
|
|
14
15
|
}
|
|
15
16
|
export {};
|
|
@@ -6,6 +6,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
var JISEventsGtfsRtTransformation_1;
|
|
8
8
|
import { JISEventEffectHelper } from "#helpers/jis/JISEventEffectHelper";
|
|
9
|
+
import { JISEventSeverityLevel } from "#helpers/jis/JISEventSeverityLevelEnum";
|
|
10
|
+
import { GtfsAlertSeverityLevelEnum } from "#ie/vehicle-positions/workers/gtfs-rt/interfaces/AlertsInterfaces";
|
|
9
11
|
import { AbstractTransformation } from "@golemio/core/dist/helpers/transformation/AbstractTransformation.js";
|
|
10
12
|
import { injectable } from "@golemio/core/dist/shared/tsyringe.js";
|
|
11
13
|
let JISEventsGtfsRtTransformation = JISEventsGtfsRtTransformation_1 = class JISEventsGtfsRtTransformation extends AbstractTransformation {
|
|
@@ -32,6 +34,7 @@ let JISEventsGtfsRtTransformation = JISEventsGtfsRtTransformation_1 = class JISE
|
|
|
32
34
|
],
|
|
33
35
|
},
|
|
34
36
|
effect: JISEventEffectHelper.getMainEffect(data.effect),
|
|
37
|
+
severityLevel: JISEventsGtfsRtTransformation_1.SEVERITY_LEVEL_MAPPING[data.severity_level],
|
|
35
38
|
url: {
|
|
36
39
|
translation: [
|
|
37
40
|
...(data.url.cs !== "nevyplněno"
|
|
@@ -64,6 +67,12 @@ let JISEventsGtfsRtTransformation = JISEventsGtfsRtTransformation_1 = class JISE
|
|
|
64
67
|
}
|
|
65
68
|
};
|
|
66
69
|
JISEventsGtfsRtTransformation.PID_WEB_EVENTS_URL = "https://pid.cz/mimoradnost/?uuid=";
|
|
70
|
+
// Record (not a cast) so that a new JIS severity level fails compilation instead of leaking into the feed
|
|
71
|
+
JISEventsGtfsRtTransformation.SEVERITY_LEVEL_MAPPING = {
|
|
72
|
+
[JISEventSeverityLevel.Info]: GtfsAlertSeverityLevelEnum.INFO,
|
|
73
|
+
[JISEventSeverityLevel.Warning]: GtfsAlertSeverityLevelEnum.WARNING,
|
|
74
|
+
[JISEventSeverityLevel.Severe]: GtfsAlertSeverityLevelEnum.SEVERE,
|
|
75
|
+
};
|
|
67
76
|
JISEventsGtfsRtTransformation = JISEventsGtfsRtTransformation_1 = __decorate([
|
|
68
77
|
injectable()
|
|
69
78
|
], JISEventsGtfsRtTransformation);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JISEventsGtfsRtTransformation.js","sourceRoot":"","sources":["../../../../src/integration-engine/jis/transformations/JISEventsGtfsRtTransformation.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"JISEventsGtfsRtTransformation.js","sourceRoot":"","sources":["../../../../src/integration-engine/jis/transformations/JISEventsGtfsRtTransformation.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,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EAAE;gCAC9B,QAAQ,EAAE,IAAI;6BACjB;4BACD,GAAG,CAAC,IAAI,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,gBAAgB,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;yBAC5F;qBACJ;iBACJ;aACJ,CAAC;QACN,CAAC,CAAC;IACN,CAAC;;AA5DkB,gDAAkB,GAAG,mCAAmC,AAAtC,CAAuC;AAExE,0GAA0G;AAClF,oDAAsB,GAA8D;IACxG,CAAC,qBAAqB,CAAC,IAAI,CAAC,EAAE,0BAA0B,CAAC,IAAI;IAC7D,CAAC,qBAAqB,CAAC,OAAO,CAAC,EAAE,0BAA0B,CAAC,OAAO;IACnE,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAAE,0BAA0B,CAAC,MAAM;CACpE,AAJ6C,CAI5C;AAVO,6BAA6B;IADzC,UAAU,EAAE;GACA,6BAA6B,CA+DzC"}
|
package/docs/jis/index.md
CHANGED
|
@@ -296,11 +296,11 @@ Endpoint je interní (přístup jen s příslušnou rolí v Golemio Access Proxy
|
|
|
296
296
|
|
|
297
297
|
### Události — GTFS-RT `alerts.pb`
|
|
298
298
|
|
|
299
|
-
Feed generuje `GenerateFilesTask` (`GtfsRealTimeWorker`) a obsahuje jen události, které mají `type` `INCIDENT`, organizaci z `module.pid.jis.gtfsRt.events.allowedOrgs.*`, nejsou smazané a `active_period_end` je `NULL` nebo >= aktuální čas. Entita má id `alert-{id události}`, `informedEntity` obsahuje `routeId` GTFS-známých tras (viz [asymetrie](#asymetrie-gtfs-rt-protobuf-alertspb-vs-custom-format-webhook-výstup)), `url` je v případě nevyplněné hodnoty nahrazeno odkazem na detail mimořádnosti na webu PID. Texty jsou jen v `cs`/`en`.
|
|
299
|
+
Feed generuje `GenerateFilesTask` (`GtfsRealTimeWorker`) a obsahuje jen události, které mají `type` `INCIDENT`, organizaci z `module.pid.jis.gtfsRt.events.allowedOrgs.*`, nejsou smazané a `active_period_end` je `NULL` nebo >= aktuální čas. Entita má id `alert-{id události}`, `informedEntity` obsahuje `routeId` GTFS-známých tras (viz [asymetrie](#asymetrie-gtfs-rt-protobuf-alertspb-vs-custom-format-webhook-výstup)), `url` je v případě nevyplněné hodnoty nahrazeno odkazem na detail mimořádnosti na webu PID. `severityLevel` odpovídá `severity_level` události (`INFO`/`WARNING`/`SEVERE` 1:1). Texty jsou jen v `cs`/`en`.
|
|
300
300
|
|
|
301
301
|
### Infotexty — GTFS-RT `pid_display_alerts.pb`
|
|
302
302
|
|
|
303
|
-
Experimentální feed pro e-paper displeje, generovaný stejným taskem. Obsahuje infotexty navázané na uloženou událost (`event_id` → `jis_infotexts.jis_event_id`), které jsou právě aktivní (včetně časového okna `repeat`) a mají zastávky. Na každé zastávce zůstanou jen infotexty s nejvyšší závažností (`JISInfotextStopSuppressionFilter`). Entita má id `alert-{id infotextu}`, `informedEntity` obsahuje `stopId`, `severityLevel` je `WARNING` pro `display_type` `INLINE` a `SEVERE` pro `GENERAL
|
|
303
|
+
Experimentální feed pro e-paper displeje, generovaný stejným taskem. Obsahuje infotexty navázané na uloženou událost (`event_id` → `jis_infotexts.jis_event_id`), které jsou právě aktivní (včetně časového okna `repeat`) a mají zastávky. Na každé zastávce zůstanou jen infotexty s nejvyšší závažností (`JISInfotextStopSuppressionFilter`). Entita má id `alert-{id infotextu}`, `informedEntity` obsahuje `stopId`, `severityLevel` je `WARNING` pro `display_type` `INLINE` a `SEVERE` pro `GENERAL` (záměrně se neodvozuje ze `severity_level`, takže se může lišit od `alerts.pb`); `descriptionText` pochází z infotextu, ostatní pole (`cause`, `cause_detail`, `effect`, `url`, `header_text`) z navázané události (i typu `INTERNAL`).
|
|
304
304
|
|
|
305
305
|
### Infotexty — API odjezdových a přestupních tabulí
|
|
306
306
|
|
package/docs/openapi-output.yaml
CHANGED
|
@@ -1000,7 +1000,7 @@ paths:
|
|
|
1000
1000
|
/v2/vehiclepositions/gtfsrt/alerts.pb:
|
|
1001
1001
|
get:
|
|
1002
1002
|
summary: GET GTFS-RT Service Alerts Feed
|
|
1003
|
-
description: ""
|
|
1003
|
+
description: "Current PID incidents."
|
|
1004
1004
|
tags:
|
|
1005
1005
|
- 🗺 GTFS Realtime (v2)
|
|
1006
1006
|
responses:
|
|
@@ -2269,9 +2269,21 @@ paths:
|
|
|
2269
2269
|
schema:
|
|
2270
2270
|
$ref: "#/components/schemas/PublicDepartureBoardsResponse"
|
|
2271
2271
|
400:
|
|
2272
|
-
|
|
2272
|
+
description: Bad request - invalid query parameters
|
|
2273
|
+
content:
|
|
2274
|
+
application/json:
|
|
2275
|
+
schema:
|
|
2276
|
+
$ref: "#/components/schemas/BadRequestErrorObject"
|
|
2273
2277
|
401:
|
|
2274
|
-
|
|
2278
|
+
description: API key is missing or invalid
|
|
2279
|
+
headers:
|
|
2280
|
+
WWW_Authenticate:
|
|
2281
|
+
schema:
|
|
2282
|
+
type: string
|
|
2283
|
+
content:
|
|
2284
|
+
application/json:
|
|
2285
|
+
schema:
|
|
2286
|
+
$ref: "#/components/schemas/UnauthorizedErrorObject"
|
|
2275
2287
|
404:
|
|
2276
2288
|
description: Not found - no stops found for the given query parameters
|
|
2277
2289
|
content:
|
|
@@ -2354,7 +2366,23 @@ components:
|
|
|
2354
2366
|
content:
|
|
2355
2367
|
application/json:
|
|
2356
2368
|
schema:
|
|
2357
|
-
|
|
2369
|
+
type: object
|
|
2370
|
+
properties:
|
|
2371
|
+
error_message:
|
|
2372
|
+
type: string
|
|
2373
|
+
example: "Bad request"
|
|
2374
|
+
nullable: false
|
|
2375
|
+
error_status:
|
|
2376
|
+
type: integer
|
|
2377
|
+
example: 400
|
|
2378
|
+
nullable: false
|
|
2379
|
+
error_info:
|
|
2380
|
+
type: string
|
|
2381
|
+
example: "{...}"
|
|
2382
|
+
nullable: true
|
|
2383
|
+
required:
|
|
2384
|
+
- error_message
|
|
2385
|
+
- error_status
|
|
2358
2386
|
|
|
2359
2387
|
UnauthorizedError:
|
|
2360
2388
|
description: API key is missing or invalid
|
|
@@ -2365,7 +2393,19 @@ components:
|
|
|
2365
2393
|
content:
|
|
2366
2394
|
application/json:
|
|
2367
2395
|
schema:
|
|
2368
|
-
|
|
2396
|
+
type: object
|
|
2397
|
+
properties:
|
|
2398
|
+
error_message:
|
|
2399
|
+
type: string
|
|
2400
|
+
example: "Unauthorized. Failed to authenticate user."
|
|
2401
|
+
nullable: false
|
|
2402
|
+
error_status:
|
|
2403
|
+
type: integer
|
|
2404
|
+
example: 401
|
|
2405
|
+
nullable: false
|
|
2406
|
+
required:
|
|
2407
|
+
- error_message
|
|
2408
|
+
- error_status
|
|
2369
2409
|
|
|
2370
2410
|
|
|
2371
2411
|
parameters:
|
|
@@ -4240,24 +4280,19 @@ components:
|
|
|
4240
4280
|
- stop_ids
|
|
4241
4281
|
- departures
|
|
4242
4282
|
|
|
4243
|
-
PublicDepartureGroup:
|
|
4244
|
-
type: array
|
|
4245
|
-
items:
|
|
4246
|
-
$ref: "#/components/schemas/PublicDepartureItem"
|
|
4247
|
-
|
|
4248
4283
|
PublicDepartureItem:
|
|
4249
4284
|
type: object
|
|
4250
4285
|
properties:
|
|
4251
4286
|
departure:
|
|
4252
|
-
$ref: "#/components/schemas/
|
|
4287
|
+
$ref: "#/components/schemas/PublicDepartureItemDeparture"
|
|
4253
4288
|
stop:
|
|
4254
|
-
$ref: "#/components/schemas/
|
|
4289
|
+
$ref: "#/components/schemas/PublicDepartureItemStop"
|
|
4255
4290
|
route:
|
|
4256
|
-
$ref: "#/components/schemas/
|
|
4291
|
+
$ref: "#/components/schemas/PublicDepartureItemRoute"
|
|
4257
4292
|
trip:
|
|
4258
|
-
$ref: "#/components/schemas/
|
|
4293
|
+
$ref: "#/components/schemas/PublicDepartureItemTrip"
|
|
4259
4294
|
vehicle:
|
|
4260
|
-
$ref: "#/components/schemas/
|
|
4295
|
+
$ref: "#/components/schemas/PublicDepartureItemVehicle"
|
|
4261
4296
|
required:
|
|
4262
4297
|
- departure
|
|
4263
4298
|
- stop
|
|
@@ -4265,7 +4300,7 @@ components:
|
|
|
4265
4300
|
- trip
|
|
4266
4301
|
- vehicle
|
|
4267
4302
|
|
|
4268
|
-
|
|
4303
|
+
PublicDepartureItemDeparture:
|
|
4269
4304
|
type: object
|
|
4270
4305
|
properties:
|
|
4271
4306
|
timestamp_scheduled:
|
|
@@ -4294,7 +4329,7 @@ components:
|
|
|
4294
4329
|
- delay_seconds
|
|
4295
4330
|
- minutes
|
|
4296
4331
|
|
|
4297
|
-
|
|
4332
|
+
PublicDepartureItemStop:
|
|
4298
4333
|
type: object
|
|
4299
4334
|
properties:
|
|
4300
4335
|
id:
|
|
@@ -4314,7 +4349,7 @@ components:
|
|
|
4314
4349
|
- sequence
|
|
4315
4350
|
- platform_code
|
|
4316
4351
|
|
|
4317
|
-
|
|
4352
|
+
PublicDepartureItemRoute:
|
|
4318
4353
|
type: object
|
|
4319
4354
|
properties:
|
|
4320
4355
|
type:
|
|
@@ -4330,7 +4365,7 @@ components:
|
|
|
4330
4365
|
- type
|
|
4331
4366
|
- short_name
|
|
4332
4367
|
|
|
4333
|
-
|
|
4368
|
+
PublicDepartureItemTrip:
|
|
4334
4369
|
type: object
|
|
4335
4370
|
properties:
|
|
4336
4371
|
id:
|
|
@@ -4350,7 +4385,7 @@ components:
|
|
|
4350
4385
|
- headsign
|
|
4351
4386
|
- is_canceled
|
|
4352
4387
|
|
|
4353
|
-
|
|
4388
|
+
PublicDepartureItemVehicle:
|
|
4354
4389
|
type: object
|
|
4355
4390
|
properties:
|
|
4356
4391
|
id:
|
|
@@ -4375,6 +4410,130 @@ components:
|
|
|
4375
4410
|
- is_air_conditioned
|
|
4376
4411
|
- has_charger
|
|
4377
4412
|
|
|
4413
|
+
PublicDepartureGroup:
|
|
4414
|
+
type: array
|
|
4415
|
+
items:
|
|
4416
|
+
type: object
|
|
4417
|
+
properties:
|
|
4418
|
+
departure:
|
|
4419
|
+
$ref: "#/components/schemas/PublicDeparture"
|
|
4420
|
+
stop:
|
|
4421
|
+
$ref: "#/components/schemas/PublicDepartureStop"
|
|
4422
|
+
route:
|
|
4423
|
+
$ref: "#/components/schemas/PublicDepartureRoute"
|
|
4424
|
+
trip:
|
|
4425
|
+
$ref: "#/components/schemas/PublicDepartureTrip"
|
|
4426
|
+
vehicle:
|
|
4427
|
+
$ref: "#/components/schemas/PublicDepartureVehicle"
|
|
4428
|
+
required:
|
|
4429
|
+
- departure
|
|
4430
|
+
- stop
|
|
4431
|
+
- route
|
|
4432
|
+
- trip
|
|
4433
|
+
- vehicle
|
|
4434
|
+
|
|
4435
|
+
PublicDeparture:
|
|
4436
|
+
type: object
|
|
4437
|
+
properties:
|
|
4438
|
+
timestamp_scheduled:
|
|
4439
|
+
type: string
|
|
4440
|
+
format: date-time
|
|
4441
|
+
example: "2024-04-05T16:09:00+02:00"
|
|
4442
|
+
nullable: false
|
|
4443
|
+
timestamp_predicted:
|
|
4444
|
+
type: string
|
|
4445
|
+
format: date-time
|
|
4446
|
+
example: "2024-04-05T16:09:16+02:00"
|
|
4447
|
+
nullable: false
|
|
4448
|
+
delay_seconds:
|
|
4449
|
+
type: number
|
|
4450
|
+
description: Delay in seconds
|
|
4451
|
+
example: 0
|
|
4452
|
+
nullable: true
|
|
4453
|
+
minutes:
|
|
4454
|
+
type: number
|
|
4455
|
+
description: Minutes until the departure
|
|
4456
|
+
example: 0
|
|
4457
|
+
nullable: false
|
|
4458
|
+
required:
|
|
4459
|
+
- timestamp_scheduled
|
|
4460
|
+
- timestamp_predicted
|
|
4461
|
+
- minutes
|
|
4462
|
+
|
|
4463
|
+
PublicDepartureStop:
|
|
4464
|
+
type: object
|
|
4465
|
+
properties:
|
|
4466
|
+
id:
|
|
4467
|
+
type: string
|
|
4468
|
+
example: "U717Z5P" # Strossmayerovo náměstí
|
|
4469
|
+
nullable: false
|
|
4470
|
+
sequence:
|
|
4471
|
+
type: number
|
|
4472
|
+
example: 8
|
|
4473
|
+
nullable: false
|
|
4474
|
+
platform_code:
|
|
4475
|
+
type: string
|
|
4476
|
+
example: "E"
|
|
4477
|
+
nullable: true
|
|
4478
|
+
required:
|
|
4479
|
+
- id
|
|
4480
|
+
- sequence
|
|
4481
|
+
|
|
4482
|
+
PublicDepartureRoute:
|
|
4483
|
+
type: object
|
|
4484
|
+
properties:
|
|
4485
|
+
type:
|
|
4486
|
+
type: string
|
|
4487
|
+
example: "tram"
|
|
4488
|
+
enum: ["tram", "metro", "train", "bus", "ferry", "funicular", "trolleybus", "ext_miscellaneous"]
|
|
4489
|
+
nullable: false
|
|
4490
|
+
short_name:
|
|
4491
|
+
type: string
|
|
4492
|
+
example: "27"
|
|
4493
|
+
nullable: false
|
|
4494
|
+
required:
|
|
4495
|
+
- type
|
|
4496
|
+
- short_name
|
|
4497
|
+
|
|
4498
|
+
PublicDepartureTrip:
|
|
4499
|
+
type: object
|
|
4500
|
+
properties:
|
|
4501
|
+
id:
|
|
4502
|
+
type: string
|
|
4503
|
+
example: "27_3206_240318"
|
|
4504
|
+
nullable: false
|
|
4505
|
+
headsign:
|
|
4506
|
+
type: string
|
|
4507
|
+
example: "Libuš"
|
|
4508
|
+
nullable: false
|
|
4509
|
+
is_canceled:
|
|
4510
|
+
type: boolean
|
|
4511
|
+
example: false
|
|
4512
|
+
nullable: true
|
|
4513
|
+
required:
|
|
4514
|
+
- id
|
|
4515
|
+
- headsign
|
|
4516
|
+
|
|
4517
|
+
PublicDepartureVehicle:
|
|
4518
|
+
type: object
|
|
4519
|
+
properties:
|
|
4520
|
+
id:
|
|
4521
|
+
type: string
|
|
4522
|
+
example: "service-0-9072"
|
|
4523
|
+
nullable: true
|
|
4524
|
+
is_wheelchair_accessible:
|
|
4525
|
+
type: boolean
|
|
4526
|
+
example: true
|
|
4527
|
+
nullable: true
|
|
4528
|
+
is_air_conditioned:
|
|
4529
|
+
type: boolean
|
|
4530
|
+
example: false
|
|
4531
|
+
nullable: true
|
|
4532
|
+
has_charger:
|
|
4533
|
+
type: boolean
|
|
4534
|
+
example: true
|
|
4535
|
+
nullable: true
|
|
4536
|
+
|
|
4378
4537
|
EventId:
|
|
4379
4538
|
type: string
|
|
4380
4539
|
format: uuid
|