@golemio/pid 3.16.2-dev.1860650295 → 3.16.2-dev.1861836428
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 +3 -3
- package/dist/integration-engine/jis/transformations/JISEventsGtfsRtTransformation.d.ts +1 -0
- package/dist/integration-engine/jis/transformations/JISEventsGtfsRtTransformation.js +7 -4
- package/dist/integration-engine/jis/transformations/JISEventsGtfsRtTransformation.js.map +1 -1
- package/package.json +1 -1
|
@@ -576,16 +576,16 @@ VALUES
|
|
|
576
576
|
'{"cs": "nevyplněno"}',
|
|
577
577
|
'WARNING',
|
|
578
578
|
'2025-04-29 23:03:00.000',
|
|
579
|
-
|
|
579
|
+
NULL,
|
|
580
580
|
'2025-04-29 23:03:00.000',
|
|
581
|
-
'
|
|
581
|
+
'2031-02-02 04:21:00.000',
|
|
582
582
|
'DETOUR',
|
|
583
583
|
'{"cs": "nevyplněno"}',
|
|
584
584
|
'{"cs": "Z důvodu údržby tramvajové trati dochází v noci z úterý 29. dubna 2025 (od 23.20 hodin) na středu 30. dubna 2025 (do 4.20 hodin) ke krátkodobému přerušení provozu tramvají v úseku Vysočanská – Starý Hloubětín."}',
|
|
585
585
|
'{"cs": "nevyplněno"}',
|
|
586
586
|
'2025-04-11 00:11:59.602',
|
|
587
587
|
'2025-04-11 00:11:59.602',
|
|
588
|
-
'
|
|
588
|
+
'OICT',
|
|
589
589
|
'2025-04-11 00:11:59.603',
|
|
590
590
|
now() + interval '1 day'
|
|
591
591
|
);
|
|
@@ -9,6 +9,7 @@ type TransformIn = IJISEventModel & {
|
|
|
9
9
|
type TransformOut = IGtfsRtAlert;
|
|
10
10
|
export declare class JISEventsGtfsRtTransformation extends AbstractTransformation<TransformIn, TransformOut> {
|
|
11
11
|
name: string;
|
|
12
|
+
private static PID_WEB_EVENTS_URL;
|
|
12
13
|
protected transformInternal: (data: TransformIn) => TransformOut;
|
|
13
14
|
}
|
|
14
15
|
export {};
|
|
@@ -5,11 +5,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
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
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
|
+
var JISEventsGtfsRtTransformation_1;
|
|
8
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
10
|
exports.JISEventsGtfsRtTransformation = void 0;
|
|
10
11
|
const AbstractTransformation_1 = require("@golemio/core/dist/helpers/transformation/AbstractTransformation");
|
|
11
12
|
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
12
|
-
let JISEventsGtfsRtTransformation = exports.JISEventsGtfsRtTransformation = class JISEventsGtfsRtTransformation extends AbstractTransformation_1.AbstractTransformation {
|
|
13
|
+
let JISEventsGtfsRtTransformation = exports.JISEventsGtfsRtTransformation = JISEventsGtfsRtTransformation_1 = class JISEventsGtfsRtTransformation extends AbstractTransformation_1.AbstractTransformation {
|
|
13
14
|
constructor() {
|
|
14
15
|
super(...arguments);
|
|
15
16
|
this.name = "JISEventsGtfsRtTransformation";
|
|
@@ -29,8 +30,9 @@ let JISEventsGtfsRtTransformation = exports.JISEventsGtfsRtTransformation = clas
|
|
|
29
30
|
effect: data.effect,
|
|
30
31
|
url: {
|
|
31
32
|
translation: [
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
...(data.url.cs !== "nevyplněno"
|
|
34
|
+
? [{ text: data.url.cs, language: "cs" }]
|
|
35
|
+
: [{ text: `${JISEventsGtfsRtTransformation_1.PID_WEB_EVENTS_URL}${data.id}`, language: "cs" }]),
|
|
34
36
|
...(data.url.en ? [{ text: data.url.en, language: "en" }] : []),
|
|
35
37
|
],
|
|
36
38
|
},
|
|
@@ -57,7 +59,8 @@ let JISEventsGtfsRtTransformation = exports.JISEventsGtfsRtTransformation = clas
|
|
|
57
59
|
};
|
|
58
60
|
}
|
|
59
61
|
};
|
|
60
|
-
|
|
62
|
+
JISEventsGtfsRtTransformation.PID_WEB_EVENTS_URL = "https://pid.cz/mimoradnost/?uuid=";
|
|
63
|
+
exports.JISEventsGtfsRtTransformation = JISEventsGtfsRtTransformation = JISEventsGtfsRtTransformation_1 = __decorate([
|
|
61
64
|
(0, tsyringe_1.injectable)()
|
|
62
65
|
], JISEventsGtfsRtTransformation);
|
|
63
66
|
//# sourceMappingURL=JISEventsGtfsRtTransformation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JISEventsGtfsRtTransformation.js","sourceRoot":"","sources":["../../../../src/integration-engine/jis/transformations/JISEventsGtfsRtTransformation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"JISEventsGtfsRtTransformation.js","sourceRoot":"","sources":["../../../../src/integration-engine/jis/transformations/JISEventsGtfsRtTransformation.ts"],"names":[],"mappings":";;;;;;;;;;AAIA,6GAA0G;AAC1G,iEAAgE;AAMzD,IAAM,6BAA6B,6EAAnC,MAAM,6BAA8B,SAAQ,+CAAiD;IAA7F;;QACI,SAAI,GAAG,+BAA+B,CAAC;QAIpC,sBAAiB,GAAG,CAAC,IAAiB,EAAgB,EAAE;YAC9D,OAAO;gBACH,EAAE,EAAE,SAAS,IAAI,CAAC,EAAE,EAAE;gBACtB,KAAK,EAAE;oBACH,YAAY,EAAE;wBACV;4BACI,KAAK,EAAE,IAAI,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC,OAAO,EAAE,GAAG,IAAI;4BAC1D,GAAG,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,OAAO,EAAE,GAAG,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;yBAChG;qBACJ;oBACD,cAAc,EAAE,IAAI,CAAC,MAAM,CAAC,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