@golemio/pid 3.15.3-dev.1853079592 → 3.15.3-rc.1854765839
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/22_jis_events.sql +0 -56
- package/dist/input-gateway/vehicle-positions/VehiclePositionsController.js +1 -0
- package/dist/input-gateway/vehicle-positions/VehiclePositionsController.js.map +1 -1
- package/dist/integration-engine/jis/repositories/JISEventsRopidGTFSRoutesRepository.d.ts +1 -2
- package/dist/integration-engine/jis/repositories/JISEventsRopidGTFSRoutesRepository.js +0 -14
- package/dist/integration-engine/jis/repositories/JISEventsRopidGTFSRoutesRepository.js.map +1 -1
- package/dist/integration-engine/jis/services/JISEventsDataService.js +0 -4
- package/dist/integration-engine/jis/services/JISEventsDataService.js.map +1 -1
- package/dist/integration-engine/jis/transformations/JISEventsTransformation.js +0 -3
- package/dist/integration-engine/jis/transformations/JISEventsTransformation.js.map +1 -1
- package/dist/integration-engine/jis/workers/tasks/RefreshJISEventsTask.d.ts +1 -0
- package/dist/integration-engine/jis/workers/tasks/RefreshJISEventsTask.js +16 -6
- package/dist/integration-engine/jis/workers/tasks/RefreshJISEventsTask.js.map +1 -1
- package/dist/integration-engine/ropid-gtfs/data-access/cache/DelayComputationRedisRepository.js.map +1 -1
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/tasks/PropagateTrainDelayTask.js.map +1 -1
- package/dist/output-gateway/index.js +0 -4
- package/dist/output-gateway/index.js.map +1 -1
- package/dist/output-gateway/pid/ioc/Di.js +1 -0
- package/dist/output-gateway/pid/ioc/Di.js.map +1 -1
- package/dist/schema-definitions/jis/datasources/JISEventsJsonSchema.js +0 -17
- package/dist/schema-definitions/jis/datasources/JISEventsJsonSchema.js.map +1 -1
- package/dist/schema-definitions/jis/datasources/interfaces/IJISEvent.d.ts +0 -5
- package/dist/schema-definitions/jis/models/JISEventsModel.d.ts +3 -6
- package/dist/schema-definitions/jis/models/JISEventsModel.js +0 -20
- package/dist/schema-definitions/jis/models/JISEventsModel.js.map +1 -1
- package/dist/schema-definitions/jis/models/interfaces/IJISEvent.d.ts +0 -3
- package/docs/openapi-input.yaml +1 -35
- package/docs/openapi-output.yaml +6 -273
- package/package.json +5 -5
- package/db/migrations/postgresql/20250522144056-add-new-attributes-to-event.js +0 -53
- package/db/migrations/postgresql/sqls/20250522144056-add-new-attributes-to-event-down.sql +0 -5
- package/db/migrations/postgresql/sqls/20250522144056-add-new-attributes-to-event-up.sql +0 -4
- package/dist/output-gateway/jis/controllers/v1/V1EventsController.d.ts +0 -9
- package/dist/output-gateway/jis/controllers/v1/V1EventsController.js +0 -52
- package/dist/output-gateway/jis/controllers/v1/V1EventsController.js.map +0 -1
- package/dist/output-gateway/jis/data-access/JISEventsRepository.d.ts +0 -19
- package/dist/output-gateway/jis/data-access/JISEventsRepository.js +0 -96
- package/dist/output-gateway/jis/data-access/JISEventsRepository.js.map +0 -1
- package/dist/output-gateway/jis/data-access/JISEventsRopidGTFSRoutesRepository.d.ts +0 -12
- package/dist/output-gateway/jis/data-access/JISEventsRopidGTFSRoutesRepository.js +0 -40
- package/dist/output-gateway/jis/data-access/JISEventsRopidGTFSRoutesRepository.js.map +0 -1
- package/dist/output-gateway/jis/data-access/RopidGTFSRoutesRepository.d.ts +0 -12
- package/dist/output-gateway/jis/data-access/RopidGTFSRoutesRepository.js +0 -39
- package/dist/output-gateway/jis/data-access/RopidGTFSRoutesRepository.js.map +0 -1
- package/dist/output-gateway/jis/domain/IJISEventsInterfaces.d.ts +0 -36
- package/dist/output-gateway/jis/domain/IJISEventsInterfaces.js +0 -3
- package/dist/output-gateway/jis/domain/IJISEventsInterfaces.js.map +0 -1
- package/dist/output-gateway/jis/dto/EventsDto.d.ts +0 -6
- package/dist/output-gateway/jis/dto/EventsDto.js +0 -21
- package/dist/output-gateway/jis/dto/EventsDto.js.map +0 -1
- package/dist/output-gateway/jis/dto/interfaces/IEventsCustomFormatQueryDto.d.ts +0 -5
- package/dist/output-gateway/jis/dto/interfaces/IEventsCustomFormatQueryDto.js +0 -3
- package/dist/output-gateway/jis/dto/interfaces/IEventsCustomFormatQueryDto.js.map +0 -1
- package/dist/output-gateway/jis/helpers/TranslationHelper.d.ts +0 -4
- package/dist/output-gateway/jis/helpers/TranslationHelper.js +0 -48
- package/dist/output-gateway/jis/helpers/TranslationHelper.js.map +0 -1
- package/dist/output-gateway/jis/ioc/Di.d.ts +0 -3
- package/dist/output-gateway/jis/ioc/Di.js +0 -27
- package/dist/output-gateway/jis/ioc/Di.js.map +0 -1
- package/dist/output-gateway/jis/ioc/OgJisToken.d.ts +0 -8
- package/dist/output-gateway/jis/ioc/OgJisToken.js +0 -20
- package/dist/output-gateway/jis/ioc/OgJisToken.js.map +0 -1
- package/dist/output-gateway/jis/routers/v1/V1JISRouter.d.ts +0 -12
- package/dist/output-gateway/jis/routers/v1/V1JISRouter.js +0 -33
- package/dist/output-gateway/jis/routers/v1/V1JISRouter.js.map +0 -1
- package/dist/output-gateway/jis/routers/v1/index.d.ts +0 -1
- package/dist/output-gateway/jis/routers/v1/index.js +0 -6
- package/dist/output-gateway/jis/routers/v1/index.js.map +0 -1
- package/dist/output-gateway/jis/transofrmations/JISEventsCustomFormatTransformation.d.ts +0 -10
- package/dist/output-gateway/jis/transofrmations/JISEventsCustomFormatTransformation.js +0 -72
- package/dist/output-gateway/jis/transofrmations/JISEventsCustomFormatTransformation.js.map +0 -1
|
@@ -42,13 +42,6 @@ JISEventsModel.attributeModel = {
|
|
|
42
42
|
active_period_end: {
|
|
43
43
|
type: sequelize_1.DataTypes.DATE,
|
|
44
44
|
},
|
|
45
|
-
display_period_start: {
|
|
46
|
-
type: sequelize_1.DataTypes.DATE,
|
|
47
|
-
allowNull: false,
|
|
48
|
-
},
|
|
49
|
-
display_period_end: {
|
|
50
|
-
type: sequelize_1.DataTypes.DATE,
|
|
51
|
-
},
|
|
52
45
|
effect: {
|
|
53
46
|
type: sequelize_1.DataTypes.STRING(255),
|
|
54
47
|
allowNull: false,
|
|
@@ -61,10 +54,6 @@ JISEventsModel.attributeModel = {
|
|
|
61
54
|
type: sequelize_1.DataTypes.JSONB,
|
|
62
55
|
allowNull: false,
|
|
63
56
|
},
|
|
64
|
-
description_html: {
|
|
65
|
-
type: sequelize_1.DataTypes.JSONB,
|
|
66
|
-
allowNull: false,
|
|
67
|
-
},
|
|
68
57
|
url: {
|
|
69
58
|
type: sequelize_1.DataTypes.JSONB,
|
|
70
59
|
allowNull: false,
|
|
@@ -108,17 +97,9 @@ JISEventsModel.jsonSchema = {
|
|
|
108
97
|
{ type: "null", nullable: true },
|
|
109
98
|
],
|
|
110
99
|
},
|
|
111
|
-
display_period_start: { type: "object", required: ["toISOString"] },
|
|
112
|
-
display_period_end: {
|
|
113
|
-
oneOf: [
|
|
114
|
-
{ type: "object", required: ["toISOString"] },
|
|
115
|
-
{ type: "null", nullable: true },
|
|
116
|
-
],
|
|
117
|
-
},
|
|
118
100
|
effect: { type: "string", enum: jisEventEffect_1.jisEventEffect },
|
|
119
101
|
effect_detail: { $ref: "#/definitions/Translation" },
|
|
120
102
|
description_text: { $ref: "#/definitions/Translation" },
|
|
121
|
-
description_html: { $ref: "#/definitions/Translation" },
|
|
122
103
|
url: { $ref: "#/definitions/Translation" },
|
|
123
104
|
organization_name: { type: "string" },
|
|
124
105
|
created_timestamp: { type: "object", required: ["toISOString"] },
|
|
@@ -135,7 +116,6 @@ JISEventsModel.jsonSchema = {
|
|
|
135
116
|
"effect",
|
|
136
117
|
"effect_detail",
|
|
137
118
|
"description_text",
|
|
138
|
-
"description_html",
|
|
139
119
|
"url",
|
|
140
120
|
"organization_name",
|
|
141
121
|
"created_timestamp",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JISEventsModel.js","sourceRoot":"","sources":["../../../../src/schema-definitions/jis/models/JISEventsModel.ts"],"names":[],"mappings":";;;AAAA,8FAA+E;AAG/E,mEAO6C;AAC7C,8DAA2D;AAC3D,gEAA6D;AAG7D,MAAa,cACT,SAAQ,iBAA+E;;AAD3F,
|
|
1
|
+
{"version":3,"file":"JISEventsModel.js","sourceRoot":"","sources":["../../../../src/schema-definitions/jis/models/JISEventsModel.ts"],"names":[],"mappings":"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"}
|
|
@@ -9,12 +9,9 @@ export interface IJISEvent {
|
|
|
9
9
|
severity_level: JISEventSeverityLevel;
|
|
10
10
|
active_period_start: Date;
|
|
11
11
|
active_period_end: Date | null;
|
|
12
|
-
display_period_start: Date;
|
|
13
|
-
display_period_end: Date | null;
|
|
14
12
|
effect: string;
|
|
15
13
|
effect_detail: IJISTranslationText;
|
|
16
14
|
description_text: IJISTranslationText;
|
|
17
|
-
description_html: IJISTranslationText;
|
|
18
15
|
url: IJISTranslationText;
|
|
19
16
|
organization_name: string;
|
|
20
17
|
created_timestamp: Date;
|
package/docs/openapi-input.yaml
CHANGED
|
@@ -571,22 +571,6 @@ components:
|
|
|
571
571
|
nullable: true
|
|
572
572
|
example: "2024-03-03T14:22:20.958Z"
|
|
573
573
|
description: The start and end date/time of the event validity
|
|
574
|
-
display_period:
|
|
575
|
-
type: object
|
|
576
|
-
required:
|
|
577
|
-
- start
|
|
578
|
-
- end
|
|
579
|
-
properties:
|
|
580
|
-
start:
|
|
581
|
-
type: string
|
|
582
|
-
format: date-time
|
|
583
|
-
example: "2024-02-29T11:22:20.958Z"
|
|
584
|
-
end:
|
|
585
|
-
type: string
|
|
586
|
-
format: date-time
|
|
587
|
-
nullable: true
|
|
588
|
-
example: "2024-03-03T14:22:20.958Z"
|
|
589
|
-
description: The start and end date/time of the event visibility
|
|
590
574
|
effect:
|
|
591
575
|
type: string
|
|
592
576
|
example: DETOUR
|
|
@@ -629,20 +613,6 @@ components:
|
|
|
629
613
|
- cs
|
|
630
614
|
- en
|
|
631
615
|
description: Localized descriptions of the event
|
|
632
|
-
description_html:
|
|
633
|
-
type: object
|
|
634
|
-
properties:
|
|
635
|
-
cs:
|
|
636
|
-
type: string
|
|
637
|
-
description: Event description in Czech in html format
|
|
638
|
-
en:
|
|
639
|
-
type: string
|
|
640
|
-
nullable: true
|
|
641
|
-
description: Event description in English in html format
|
|
642
|
-
required:
|
|
643
|
-
- cs
|
|
644
|
-
- en
|
|
645
|
-
description: Localized descriptions of the event in html format
|
|
646
616
|
url:
|
|
647
617
|
type: object
|
|
648
618
|
properties:
|
|
@@ -854,15 +824,11 @@ components:
|
|
|
854
824
|
},
|
|
855
825
|
"severity_level": "SEVERE",
|
|
856
826
|
"active_period": { "start": "2024-02-07T12:11:00.000Z", "end": null },
|
|
857
|
-
"display_period": { "start": "2024-02-07T12:11:00.000Z", "end": null },
|
|
858
827
|
"effect": "MODIFIED_SERVICE",
|
|
859
828
|
"effect_detail": { "cs": "Provoz omezen" },
|
|
860
829
|
"description_text": {
|
|
861
830
|
"cs": "V Libni je omezen provoz tramvají. Důvodem je technická závada trolejbusu na kolejích."
|
|
862
831
|
},
|
|
863
|
-
"description_html": {
|
|
864
|
-
"cs": "<p>V Libni je omezen provoz tramvají. Důvodem je technická závada trolejbusu na kolejích.</p>"
|
|
865
|
-
},
|
|
866
832
|
"url": {
|
|
867
833
|
"cs": "https://dpp.cz/omezeni-a-mimoradne-udalosti/detail/test-0"
|
|
868
834
|
},
|
|
@@ -927,4 +893,4 @@ components:
|
|
|
927
893
|
"created_timestamp": "2024-11-08T10:44:34.701Z",
|
|
928
894
|
"last_modified_timestamp": "2024-11-08T10:44:34.701Z"
|
|
929
895
|
}
|
|
930
|
-
]
|
|
896
|
+
]
|
package/docs/openapi-output.yaml
CHANGED
|
@@ -44,8 +44,6 @@ tags:
|
|
|
44
44
|
|
|
45
45
|
- name: 🕒 Public Departures (v2)
|
|
46
46
|
description: <img src="https://img.shields.io/badge/opendata-available-green" alt="golemioapi-opendata-badge" />
|
|
47
|
-
- name: 🪧 JIS (v1)
|
|
48
|
-
description: <img src="https://img.shields.io/badge/opendata-available-green" alt="golemioapi-opendata-badge" />
|
|
49
47
|
|
|
50
48
|
paths:
|
|
51
49
|
/v2/gtfs/services:
|
|
@@ -1207,7 +1205,7 @@ paths:
|
|
|
1207
1205
|
- headsign
|
|
1208
1206
|
- id
|
|
1209
1207
|
properties:
|
|
1210
|
-
headsign:
|
|
1208
|
+
headsign:
|
|
1211
1209
|
type: string
|
|
1212
1210
|
example: "Benešov u Prahy"
|
|
1213
1211
|
nullable: false
|
|
@@ -1239,7 +1237,7 @@ paths:
|
|
|
1239
1237
|
- "inline"
|
|
1240
1238
|
- "general"
|
|
1241
1239
|
nullable: false
|
|
1242
|
-
|
|
1240
|
+
|
|
1243
1241
|
"401":
|
|
1244
1242
|
$ref: "#/components/responses/UnauthorizedError"
|
|
1245
1243
|
"404":
|
|
@@ -1339,12 +1337,12 @@ paths:
|
|
|
1339
1337
|
/v3/pid/departurepresets:
|
|
1340
1338
|
get:
|
|
1341
1339
|
summary: Get ROPID departures presets linked with gtfs stops
|
|
1342
|
-
tags:
|
|
1340
|
+
tags:
|
|
1343
1341
|
- 🚏 PID Departure Boards (v3) - internal
|
|
1344
|
-
|
|
1342
|
+
|
|
1345
1343
|
responses:
|
|
1346
1344
|
200:
|
|
1347
|
-
|
|
1345
|
+
|
|
1348
1346
|
description: A list of ROPID departures presets linked with gtfs stops
|
|
1349
1347
|
headers:
|
|
1350
1348
|
Cache-Control:
|
|
@@ -1742,53 +1740,6 @@ paths:
|
|
|
1742
1740
|
maxItems: 0
|
|
1743
1741
|
items:
|
|
1744
1742
|
type: object
|
|
1745
|
-
/v1/jis/events/custom-format:
|
|
1746
|
-
get:
|
|
1747
|
-
tags:
|
|
1748
|
-
- 🪧 JIS (v1)
|
|
1749
|
-
summary: Get all published events in custom format for external use
|
|
1750
|
-
parameters:
|
|
1751
|
-
- name: displayPeriodStart
|
|
1752
|
-
in: query
|
|
1753
|
-
required: false
|
|
1754
|
-
schema:
|
|
1755
|
-
type: string
|
|
1756
|
-
format: date-time
|
|
1757
|
-
example: "2024-02-29T11:22:20.958Z"
|
|
1758
|
-
description: Start of the display period
|
|
1759
|
-
- name: displayPeriodEnd
|
|
1760
|
-
in: query
|
|
1761
|
-
required: false
|
|
1762
|
-
schema:
|
|
1763
|
-
type: string
|
|
1764
|
-
format: date-time
|
|
1765
|
-
example: "2024-03-03T14:22:20.958Z"
|
|
1766
|
-
description: End of the display period
|
|
1767
|
-
- name: organizationNames
|
|
1768
|
-
in: query
|
|
1769
|
-
required: false
|
|
1770
|
-
schema:
|
|
1771
|
-
type: array
|
|
1772
|
-
items:
|
|
1773
|
-
type: string
|
|
1774
|
-
example: "ROPID"
|
|
1775
|
-
description: List of organization names to filter events by.
|
|
1776
|
-
responses:
|
|
1777
|
-
200:
|
|
1778
|
-
description: OK
|
|
1779
|
-
content:
|
|
1780
|
-
application/json:
|
|
1781
|
-
schema:
|
|
1782
|
-
type: array
|
|
1783
|
-
items:
|
|
1784
|
-
$ref: "#/components/schemas/EventCustomFormat"
|
|
1785
|
-
400:
|
|
1786
|
-
$ref: "#/components/responses/BadRequestError"
|
|
1787
|
-
401:
|
|
1788
|
-
$ref: "#/components/responses/UnauthorizedError"
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
1743
|
|
|
1793
1744
|
|
|
1794
1745
|
|
|
@@ -2516,7 +2467,7 @@ components:
|
|
|
2516
2467
|
enum:
|
|
2517
2468
|
- inline
|
|
2518
2469
|
- general
|
|
2519
|
-
description: Type of display on board by the intended form of presentation (where applicable). Enumerating `inline` (to be presented along with departures, usually in a marquee), `general` (to be displayed full screen instead of departures)
|
|
2470
|
+
description: Type of display on board by the intended form of presentation (where applicable). Enumerating `inline` (to be presented along with departures, usually in a marquee), `general` (to be displayed full screen instead of departures).
|
|
2520
2471
|
example: "inline"
|
|
2521
2472
|
|
|
2522
2473
|
required:
|
|
@@ -3323,221 +3274,3 @@ components:
|
|
|
3323
3274
|
type: boolean
|
|
3324
3275
|
example: true
|
|
3325
3276
|
nullable: true
|
|
3326
|
-
EventId:
|
|
3327
|
-
type: string
|
|
3328
|
-
format: uuid
|
|
3329
|
-
example: 1b75c16b-d5a3-40ca-8560-5a7dc011655d
|
|
3330
|
-
Effect:
|
|
3331
|
-
type: object
|
|
3332
|
-
properties:
|
|
3333
|
-
cs:
|
|
3334
|
-
type: string
|
|
3335
|
-
example: Zpoždění
|
|
3336
|
-
en:
|
|
3337
|
-
type: string
|
|
3338
|
-
example: Delay
|
|
3339
|
-
nullable: true
|
|
3340
|
-
required:
|
|
3341
|
-
- cs
|
|
3342
|
-
RouteType:
|
|
3343
|
-
type: number
|
|
3344
|
-
example: 0
|
|
3345
|
-
enum:
|
|
3346
|
-
- 0
|
|
3347
|
-
- 1
|
|
3348
|
-
- 2
|
|
3349
|
-
- 3
|
|
3350
|
-
- 4
|
|
3351
|
-
- 7
|
|
3352
|
-
- 11
|
|
3353
|
-
description: |
|
|
3354
|
-
0 - tram \
|
|
3355
|
-
1 - metro \
|
|
3356
|
-
2 - rail \
|
|
3357
|
-
3 - bus \
|
|
3358
|
-
4 - ferry \
|
|
3359
|
-
7 - funicular \
|
|
3360
|
-
11 - trolleybus
|
|
3361
|
-
|
|
3362
|
-
InformedEntityRoute:
|
|
3363
|
-
type: object
|
|
3364
|
-
properties:
|
|
3365
|
-
id:
|
|
3366
|
-
type: string
|
|
3367
|
-
example: L13
|
|
3368
|
-
route_short_name:
|
|
3369
|
-
type: string
|
|
3370
|
-
example: "13"
|
|
3371
|
-
route_long_name:
|
|
3372
|
-
type: string
|
|
3373
|
-
example: "Čechovo náměstí - Olšanské hřbitovy"
|
|
3374
|
-
route_type:
|
|
3375
|
-
$ref: "#/components/schemas/RouteType"
|
|
3376
|
-
required:
|
|
3377
|
-
- id
|
|
3378
|
-
- route_short_name
|
|
3379
|
-
- route_type
|
|
3380
|
-
- route_long_name
|
|
3381
|
-
|
|
3382
|
-
EventCustomFormat:
|
|
3383
|
-
type: object
|
|
3384
|
-
required:
|
|
3385
|
-
- id
|
|
3386
|
-
- type
|
|
3387
|
-
- header_text
|
|
3388
|
-
- cause
|
|
3389
|
-
- cause_detail
|
|
3390
|
-
- severity_level
|
|
3391
|
-
- active_period
|
|
3392
|
-
- display_period
|
|
3393
|
-
- effects
|
|
3394
|
-
- description_text
|
|
3395
|
-
- description_html
|
|
3396
|
-
- url
|
|
3397
|
-
- organization_name
|
|
3398
|
-
- created_timestamp
|
|
3399
|
-
- last_modified_timestamp
|
|
3400
|
-
properties:
|
|
3401
|
-
id:
|
|
3402
|
-
$ref: "#/components/schemas/EventId"
|
|
3403
|
-
description: Unique identifier of the event in the UUIDv4 format
|
|
3404
|
-
type:
|
|
3405
|
-
type: string
|
|
3406
|
-
example: INCIDENT
|
|
3407
|
-
enum:
|
|
3408
|
-
- INCIDENT
|
|
3409
|
-
- DISRUPTION
|
|
3410
|
-
- SERVICE_CHANGE
|
|
3411
|
-
header_text:
|
|
3412
|
-
type: object
|
|
3413
|
-
properties:
|
|
3414
|
-
cs:
|
|
3415
|
-
type: string
|
|
3416
|
-
example: Nehoda Jiřího z Poděbrad
|
|
3417
|
-
en:
|
|
3418
|
-
type: string
|
|
3419
|
-
example: Accident at Jiřího z Poděbrad
|
|
3420
|
-
nullable: true
|
|
3421
|
-
required:
|
|
3422
|
-
- cs
|
|
3423
|
-
cause:
|
|
3424
|
-
type: object
|
|
3425
|
-
properties:
|
|
3426
|
-
cs:
|
|
3427
|
-
type: string
|
|
3428
|
-
example: Nehoda
|
|
3429
|
-
en:
|
|
3430
|
-
type: string
|
|
3431
|
-
example: Accident
|
|
3432
|
-
nullable: true
|
|
3433
|
-
required:
|
|
3434
|
-
- cs
|
|
3435
|
-
cause_detail:
|
|
3436
|
-
type: object
|
|
3437
|
-
properties:
|
|
3438
|
-
cs:
|
|
3439
|
-
type: string
|
|
3440
|
-
example: Nehoda na křižovatce
|
|
3441
|
-
en:
|
|
3442
|
-
type: string
|
|
3443
|
-
example: Accident at the intersection
|
|
3444
|
-
nullable: true
|
|
3445
|
-
required:
|
|
3446
|
-
- cs
|
|
3447
|
-
severity_level:
|
|
3448
|
-
type: string
|
|
3449
|
-
example: SEVERE
|
|
3450
|
-
enum:
|
|
3451
|
-
- INFO
|
|
3452
|
-
- WARNING
|
|
3453
|
-
- SEVERE
|
|
3454
|
-
description: |
|
|
3455
|
-
INFO - priority 3 \
|
|
3456
|
-
WARNING - priority 2 \
|
|
3457
|
-
SEVERE - priority 1
|
|
3458
|
-
active_period:
|
|
3459
|
-
type: object
|
|
3460
|
-
required:
|
|
3461
|
-
- start
|
|
3462
|
-
- end
|
|
3463
|
-
properties:
|
|
3464
|
-
start:
|
|
3465
|
-
type: string
|
|
3466
|
-
format: date-time
|
|
3467
|
-
example: "2024-02-29T11:22:20.958Z"
|
|
3468
|
-
end:
|
|
3469
|
-
type: string
|
|
3470
|
-
format: date-time
|
|
3471
|
-
nullable: true
|
|
3472
|
-
example: "2024-03-03T14:22:20.958Z"
|
|
3473
|
-
description: The start and end date/time of the event validity
|
|
3474
|
-
display_period:
|
|
3475
|
-
type: object
|
|
3476
|
-
required:
|
|
3477
|
-
- start
|
|
3478
|
-
- end
|
|
3479
|
-
properties:
|
|
3480
|
-
start:
|
|
3481
|
-
type: string
|
|
3482
|
-
format: date-time
|
|
3483
|
-
example: "2024-02-29T11:22:20.958Z"
|
|
3484
|
-
end:
|
|
3485
|
-
type: string
|
|
3486
|
-
format: date-time
|
|
3487
|
-
nullable: true
|
|
3488
|
-
example: "2024-03-03T14:22:20.958Z"
|
|
3489
|
-
description: The start and end date/time when the event should be displayed
|
|
3490
|
-
effects:
|
|
3491
|
-
type: array
|
|
3492
|
-
minItems: 1
|
|
3493
|
-
items:
|
|
3494
|
-
$ref: "#/components/schemas/Effect"
|
|
3495
|
-
description_text:
|
|
3496
|
-
type: object
|
|
3497
|
-
properties:
|
|
3498
|
-
cs:
|
|
3499
|
-
type: string
|
|
3500
|
-
description: Event description in Czech in plain text
|
|
3501
|
-
en:
|
|
3502
|
-
type: string
|
|
3503
|
-
nullable: true
|
|
3504
|
-
description: Event description in English in plain text
|
|
3505
|
-
required:
|
|
3506
|
-
- cs
|
|
3507
|
-
description: Localized descriptions of the event in plain text
|
|
3508
|
-
description_html:
|
|
3509
|
-
type: object
|
|
3510
|
-
properties:
|
|
3511
|
-
cs:
|
|
3512
|
-
type: string
|
|
3513
|
-
description: Event description in Czech in HTML format
|
|
3514
|
-
en:
|
|
3515
|
-
type: string
|
|
3516
|
-
nullable: true
|
|
3517
|
-
description: Event description in English in HTML format
|
|
3518
|
-
required:
|
|
3519
|
-
- cs
|
|
3520
|
-
description: Localized descriptions of the event in HTML format
|
|
3521
|
-
organization_name:
|
|
3522
|
-
type: string
|
|
3523
|
-
example: ROPID
|
|
3524
|
-
informed_entity:
|
|
3525
|
-
type: object
|
|
3526
|
-
nullable: true
|
|
3527
|
-
properties:
|
|
3528
|
-
routes:
|
|
3529
|
-
type: array
|
|
3530
|
-
nullable: true
|
|
3531
|
-
items:
|
|
3532
|
-
type: object
|
|
3533
|
-
$ref: "#/components/schemas/InformedEntityRoute"
|
|
3534
|
-
last_modified_timestamp:
|
|
3535
|
-
type: string
|
|
3536
|
-
format: date-time
|
|
3537
|
-
example: "2024-02-29T12:22:20.958Z"
|
|
3538
|
-
description: Timestamp from when the event was last modified in VYMI
|
|
3539
|
-
created_timestamp:
|
|
3540
|
-
type: string
|
|
3541
|
-
format: date-time
|
|
3542
|
-
example: "2024-02-29T12:22:20.958Z"
|
|
3543
|
-
description: Timestamp from when the event was created in VYMI
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golemio/pid",
|
|
3
|
-
"version": "3.15.3-
|
|
3
|
+
"version": "3.15.3-rc.1854765839",
|
|
4
4
|
"description": "Golemio PID Module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"@apideck/portman": "^1.26.5",
|
|
37
37
|
"@commitlint/cli": "^11.0.0",
|
|
38
38
|
"@commitlint/config-conventional": "^11.0.0",
|
|
39
|
-
"@golemio/cli": "1.
|
|
40
|
-
"@golemio/core": "1.20.
|
|
41
|
-
"@golemio/db-common": "1.
|
|
39
|
+
"@golemio/cli": "1.10.0",
|
|
40
|
+
"@golemio/core": "1.20.7",
|
|
41
|
+
"@golemio/db-common": "1.2.0",
|
|
42
42
|
"@golemio/eslint-config": "1.1.2",
|
|
43
43
|
"@types/amqplib": "^0.5.17",
|
|
44
44
|
"@types/chai": "4.2.3",
|
|
@@ -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.3",
|
|
80
80
|
"@turf/turf": "^6.5.0",
|
|
81
81
|
"cheap-ruler": "^3.0.2",
|
|
82
82
|
"csv-parser": "^3.0.0",
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var dbm;
|
|
4
|
-
var type;
|
|
5
|
-
var seed;
|
|
6
|
-
var fs = require('fs');
|
|
7
|
-
var path = require('path');
|
|
8
|
-
var Promise;
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* We receive the dbmigrate dependency from dbmigrate initially.
|
|
12
|
-
* This enables us to not have to rely on NODE_PATH.
|
|
13
|
-
*/
|
|
14
|
-
exports.setup = function(options, seedLink) {
|
|
15
|
-
dbm = options.dbmigrate;
|
|
16
|
-
type = dbm.dataType;
|
|
17
|
-
seed = seedLink;
|
|
18
|
-
Promise = options.Promise;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
exports.up = function(db) {
|
|
22
|
-
var filePath = path.join(__dirname, 'sqls', '20250522144056-add-new-attributes-to-event-up.sql');
|
|
23
|
-
return new Promise( function( resolve, reject ) {
|
|
24
|
-
fs.readFile(filePath, {encoding: 'utf-8'}, function(err,data){
|
|
25
|
-
if (err) return reject(err);
|
|
26
|
-
console.log('received data: ' + data);
|
|
27
|
-
|
|
28
|
-
resolve(data);
|
|
29
|
-
});
|
|
30
|
-
})
|
|
31
|
-
.then(function(data) {
|
|
32
|
-
return db.runSql(data);
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
exports.down = function(db) {
|
|
37
|
-
var filePath = path.join(__dirname, 'sqls', '20250522144056-add-new-attributes-to-event-down.sql');
|
|
38
|
-
return new Promise( function( resolve, reject ) {
|
|
39
|
-
fs.readFile(filePath, {encoding: 'utf-8'}, function(err,data){
|
|
40
|
-
if (err) return reject(err);
|
|
41
|
-
console.log('received data: ' + data);
|
|
42
|
-
|
|
43
|
-
resolve(data);
|
|
44
|
-
});
|
|
45
|
-
})
|
|
46
|
-
.then(function(data) {
|
|
47
|
-
return db.runSql(data);
|
|
48
|
-
});
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
exports._meta = {
|
|
52
|
-
"version": 1
|
|
53
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { RequestHandler } from "express";
|
|
2
|
-
import { JISEventsRepository } from "../../data-access/JISEventsRepository";
|
|
3
|
-
import { JISEventsCustomFormatTransformation } from "../../transofrmations/JISEventsCustomFormatTransformation";
|
|
4
|
-
export declare class V1EventsController {
|
|
5
|
-
private jisEventsRepository;
|
|
6
|
-
private eventsCustomFormatTransformation;
|
|
7
|
-
constructor(jisEventsRepository: JISEventsRepository, eventsCustomFormatTransformation: JISEventsCustomFormatTransformation);
|
|
8
|
-
getAllEventsInCustomFormat: RequestHandler;
|
|
9
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.V1EventsController = void 0;
|
|
16
|
-
const OgJisToken_1 = require("../../ioc/OgJisToken");
|
|
17
|
-
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
18
|
-
const JISEventsRepository_1 = require("../../data-access/JISEventsRepository");
|
|
19
|
-
const JISEventsCustomFormatTransformation_1 = require("../../transofrmations/JISEventsCustomFormatTransformation");
|
|
20
|
-
const monitoring_1 = require("@golemio/core/dist/monitoring");
|
|
21
|
-
const EventsDto_1 = require("../../dto/EventsDto");
|
|
22
|
-
const shared_1 = require("../../../shared");
|
|
23
|
-
let V1EventsController = exports.V1EventsController = class V1EventsController {
|
|
24
|
-
constructor(jisEventsRepository, eventsCustomFormatTransformation) {
|
|
25
|
-
this.jisEventsRepository = jisEventsRepository;
|
|
26
|
-
this.eventsCustomFormatTransformation = eventsCustomFormatTransformation;
|
|
27
|
-
this.getAllEventsInCustomFormat = async (req, res, next) => {
|
|
28
|
-
const span = (0, monitoring_1.createChildSpan)("V1EventsController.getAllEventsInCustomFormat");
|
|
29
|
-
try {
|
|
30
|
-
const { displayPeriodEnd, displayPeriodStart, organizationNames } = shared_1.RopidRouterUtils.mapObjectToDTOInstance(EventsDto_1.EventsCustomFormatQueryDto, req.query);
|
|
31
|
-
const events = await this.jisEventsRepository.getAllForCustomFormat(organizationNames, displayPeriodStart, displayPeriodEnd);
|
|
32
|
-
const transformedEvents = this.eventsCustomFormatTransformation.transformArray(events);
|
|
33
|
-
return res.status(200).json(transformedEvents);
|
|
34
|
-
}
|
|
35
|
-
catch (err) {
|
|
36
|
-
span?.recordException(err);
|
|
37
|
-
next(err);
|
|
38
|
-
}
|
|
39
|
-
finally {
|
|
40
|
-
span?.end();
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
exports.V1EventsController = V1EventsController = __decorate([
|
|
46
|
-
(0, tsyringe_1.injectable)(),
|
|
47
|
-
__param(0, (0, tsyringe_1.inject)(OgJisToken_1.OgJisToken.JISEventsRepository)),
|
|
48
|
-
__param(1, (0, tsyringe_1.inject)(OgJisToken_1.OgJisToken.JISEventsCustomFormatTransformation)),
|
|
49
|
-
__metadata("design:paramtypes", [JISEventsRepository_1.JISEventsRepository,
|
|
50
|
-
JISEventsCustomFormatTransformation_1.JISEventsCustomFormatTransformation])
|
|
51
|
-
], V1EventsController);
|
|
52
|
-
//# sourceMappingURL=V1EventsController.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"V1EventsController.js","sourceRoot":"","sources":["../../../../../src/output-gateway/jis/controllers/v1/V1EventsController.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,qDAAoD;AACpD,iEAAwE;AAExE,+EAA4E;AAC5E,mHAAkH;AAClH,8DAAgE;AAChE,mDAAmE;AACnE,4CAA8C;AAGvC,IAAM,kBAAkB,gCAAxB,MAAM,kBAAkB;IAC3B,YAC4C,mBAAgD,EAExF,gCAA6E;QAF7B,wBAAmB,GAAnB,mBAAmB,CAAqB;QAEhF,qCAAgC,GAAhC,gCAAgC,CAAqC;QAG1E,+BAA0B,GAAmB,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;YACzE,MAAM,IAAI,GAAG,IAAA,4BAAe,EAAC,+CAA+C,CAAC,CAAC;YAC9E,IAAI;gBACA,MAAM,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,GAAG,yBAAgB,CAAC,sBAAsB,CACvG,sCAA0B,EAC1B,GAAG,CAAC,KAAK,CACZ,CAAC;gBACF,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,qBAAqB,CAC/D,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,CACnB,CAAC;gBACF,MAAM,iBAAiB,GAAG,IAAI,CAAC,gCAAgC,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;gBAEvF,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;aAClD;YAAC,OAAO,GAAG,EAAE;gBACV,IAAI,EAAE,eAAe,CAAC,GAAG,CAAC,CAAC;gBAC3B,IAAI,CAAC,GAAG,CAAC,CAAC;aACb;oBAAS;gBACN,IAAI,EAAE,GAAG,EAAE,CAAC;aACf;QACL,CAAC,CAAC;IAvBC,CAAC;CAwBP,CAAA;6BA7BY,kBAAkB;IAD9B,IAAA,qBAAU,GAAE;IAGJ,WAAA,IAAA,iBAAM,EAAC,uBAAU,CAAC,mBAAmB,CAAC,CAAA;IACtC,WAAA,IAAA,iBAAM,EAAC,uBAAU,CAAC,mCAAmC,CAAC,CAAA;qCADc,yCAAmB;QAE9C,yEAAmC;GAJxE,kBAAkB,CA6B9B"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { JISEventsModel } from "../../../schema-definitions/jis/models/JISEventsModel";
|
|
2
|
-
import { ILogger } from "@golemio/core/dist/helpers";
|
|
3
|
-
import { IDatabaseConnector } from "@golemio/core/dist/helpers/data-access/postgres/IDatabaseConnector";
|
|
4
|
-
import { AbstractValidatableRepository } from "@golemio/core/dist/helpers/data-access/postgres/repositories/AbstractValidatableRepository";
|
|
5
|
-
import { JSONSchemaValidator } from "@golemio/core/dist/shared/golemio-validator";
|
|
6
|
-
import { ModelStatic } from "@golemio/core/dist/shared/sequelize";
|
|
7
|
-
import { JISEventsRopidGTFSRoutesRepository } from "./JISEventsRopidGTFSRoutesRepository";
|
|
8
|
-
import { RopidGTFSRoutesRepository } from "./RopidGTFSRoutesRepository";
|
|
9
|
-
export declare class JISEventsRepository extends AbstractValidatableRepository {
|
|
10
|
-
private eventsRopidGTFSRoutesRepository;
|
|
11
|
-
private ropidGTFSRoutesRepository;
|
|
12
|
-
validator: JSONSchemaValidator;
|
|
13
|
-
schema: string;
|
|
14
|
-
tableName: string;
|
|
15
|
-
sequelizeModel: ModelStatic<JISEventsModel>;
|
|
16
|
-
constructor(connector: IDatabaseConnector, logger: ILogger, eventsRopidGTFSRoutesRepository: JISEventsRopidGTFSRoutesRepository, ropidGTFSRoutesRepository: RopidGTFSRoutesRepository);
|
|
17
|
-
getAllForCustomFormat: (organizationNames?: string[], displayPeriodStart?: string, displayPeriodEnd?: string) => Promise<JISEventsModel[]>;
|
|
18
|
-
private buildWhereForCustomFormat;
|
|
19
|
-
}
|