@golemio/pid 2.19.1-dev.1442962692 → 2.19.1-dev.1443064947
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/workers/tasks/RefreshJISInfotextsTask.js +1 -1
- package/dist/integration-engine/jis/workers/tasks/RefreshJISInfotextsTask.js.map +1 -1
- package/dist/output-gateway/pid/data-access/JISInfotextRepository.js +8 -1
- package/dist/output-gateway/pid/data-access/JISInfotextRepository.js.map +1 -1
- package/dist/output-gateway/pid/domain/InfotextInterfaces.d.ts +2 -0
- package/dist/output-gateway/pid/domain/InfotextPriorityEnum.d.ts +5 -0
- package/dist/output-gateway/pid/domain/InfotextPriorityEnum.js +10 -0
- package/dist/output-gateway/pid/domain/InfotextPriorityEnum.js.map +1 -0
- package/dist/output-gateway/pid/service/helpers/PriorityMapper.d.ts +11 -0
- package/dist/output-gateway/pid/service/helpers/PriorityMapper.js +28 -0
- package/dist/output-gateway/pid/service/helpers/PriorityMapper.js.map +1 -0
- package/dist/output-gateway/pid/service/transformations/JISInfotextOverviewTransformation.d.ts +1 -0
- package/dist/output-gateway/pid/service/transformations/JISInfotextOverviewTransformation.js +2 -0
- package/dist/output-gateway/pid/service/transformations/JISInfotextOverviewTransformation.js.map +1 -1
- package/dist/output-gateway/shared/constants/jis/InfotextSeverityLevelEnum.d.ts +5 -0
- package/dist/output-gateway/shared/constants/jis/InfotextSeverityLevelEnum.js +10 -0
- package/dist/output-gateway/shared/constants/jis/InfotextSeverityLevelEnum.js.map +1 -0
- package/dist/schema-definitions/jis/datasources/JISInfotextsJsonSchema.js +2 -1
- package/dist/schema-definitions/jis/datasources/JISInfotextsJsonSchema.js.map +1 -1
- package/dist/schema-definitions/jis/datasources/interfaces/IJISInfotext.d.ts +2 -1
- package/dist/schema-definitions/jis/models/JISInfotextsModel.d.ts +2 -1
- package/dist/schema-definitions/jis/models/JISInfotextsModel.js +3 -2
- package/dist/schema-definitions/jis/models/JISInfotextsModel.js.map +1 -1
- package/dist/schema-definitions/jis/models/interfaces/IJISInfotext.d.ts +2 -1
- package/docs/openapi-output.yaml +26 -5
- package/package.json +1 -1
|
@@ -42,7 +42,7 @@ let RefreshJISInfotextsTask = exports.RefreshJISInfotextsTask = class RefreshJIS
|
|
|
42
42
|
return __awaiter(this, void 0, void 0, function* () {
|
|
43
43
|
const dataSource = this.dataSourceFactory.getDataSource();
|
|
44
44
|
const data = yield dataSource.getAll();
|
|
45
|
-
const transformedData =
|
|
45
|
+
const transformedData = this.infotextsTransformation.transformArray(data);
|
|
46
46
|
const { infotexts, infotextsRopidGTFSStops } = this.getEntitiesFromTransformationResult(transformedData);
|
|
47
47
|
yield this.infotextsDataService.refreshData(infotexts, infotextsRopidGTFSStops);
|
|
48
48
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RefreshJISInfotextsTask.js","sourceRoot":"","sources":["../../../../../src/integration-engine/jis/workers/tasks/RefreshJISInfotextsTask.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,mGAAkG;AAClG,mEAAkE;AAClE,oFAAmF;AACnF,iGAAgG;AAEhG,8EAA0E;AAC1E,iEAAwE;AACxE,4CAA+C;AAGxC,IAAM,uBAAuB,qCAA7B,MAAM,uBAAwB,SAAQ,sCAAiB;IAI1D,YAEI,iBAAwD,EAExD,oBAAqD,EAErD,uBAA2D;QAE3D,KAAK,CAAC,2BAAe,CAAC,WAAW,EAAE,CAAC,CAAC;QAN7B,sBAAiB,GAAjB,iBAAiB,CAA+B;QAEhD,yBAAoB,GAApB,oBAAoB,CAAyB;QAE7C,4BAAuB,GAAvB,uBAAuB,CAA4B;QAT/C,cAAS,GAAG,qBAAqB,CAAC;QAClC,aAAQ,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,YAAY;IAWtD,CAAC;IAEe,OAAO;;YACnB,MAAM,UAAU,GAAG,IAAI,CAAC,iBAAiB,CAAC,aAAa,EAAE,CAAC;YAC1D,MAAM,IAAI,GAAG,MAAM,UAAU,CAAC,MAAM,EAAE,CAAC;YACvC,MAAM,eAAe,GAAG,
|
|
1
|
+
{"version":3,"file":"RefreshJISInfotextsTask.js","sourceRoot":"","sources":["../../../../../src/integration-engine/jis/workers/tasks/RefreshJISInfotextsTask.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,mGAAkG;AAClG,mEAAkE;AAClE,oFAAmF;AACnF,iGAAgG;AAEhG,8EAA0E;AAC1E,iEAAwE;AACxE,4CAA+C;AAGxC,IAAM,uBAAuB,qCAA7B,MAAM,uBAAwB,SAAQ,sCAAiB;IAI1D,YAEI,iBAAwD,EAExD,oBAAqD,EAErD,uBAA2D;QAE3D,KAAK,CAAC,2BAAe,CAAC,WAAW,EAAE,CAAC,CAAC;QAN7B,sBAAiB,GAAjB,iBAAiB,CAA+B;QAEhD,yBAAoB,GAApB,oBAAoB,CAAyB;QAE7C,4BAAuB,GAAvB,uBAAuB,CAA4B;QAT/C,cAAS,GAAG,qBAAqB,CAAC;QAClC,aAAQ,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,YAAY;IAWtD,CAAC;IAEe,OAAO;;YACnB,MAAM,UAAU,GAAG,IAAI,CAAC,iBAAiB,CAAC,aAAa,EAAE,CAAC;YAC1D,MAAM,IAAI,GAAG,MAAM,UAAU,CAAC,MAAM,EAAE,CAAC;YACvC,MAAM,eAAe,GAAG,IAAI,CAAC,uBAAuB,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;YAC1E,MAAM,EAAE,SAAS,EAAE,uBAAuB,EAAE,GAAG,IAAI,CAAC,mCAAmC,CAAC,eAAe,CAAC,CAAC;YACzG,MAAM,IAAI,CAAC,oBAAoB,CAAC,WAAW,CAAC,SAAS,EAAE,uBAAuB,CAAC,CAAC;QACpF,CAAC;KAAA;IAEO,mCAAmC,CAAC,eAAyE;QACjH,MAAM,gBAAgB,GAAmB,EAAE,CAAC;QAC5C,MAAM,+BAA+B,GAAkC,EAAE,CAAC;QAC1E,KAAK,MAAM,EAAE,QAAQ,EAAE,uBAAuB,EAAE,IAAI,eAAe,EAAE;YACjE,gBAAgB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAChC,+BAA+B,CAAC,IAAI,CAAC,GAAG,uBAAuB,CAAC,CAAC;SACpE;QACD,OAAO;YACH,SAAS,EAAE,gBAAgB;YAC3B,uBAAuB,EAAE,+BAA+B;SAC3D,CAAC;IACN,CAAC;CACJ,CAAA;kCAnCY,uBAAuB;IADnC,IAAA,qBAAU,GAAE;IAMJ,WAAA,IAAA,iBAAM,EAAC,qCAAiB,CAAC,6BAA6B,CAAC,CAAA;IAEvD,WAAA,IAAA,iBAAM,EAAC,qCAAiB,CAAC,uBAAuB,CAAC,CAAA;IAEjD,WAAA,IAAA,iBAAM,EAAC,qCAAiB,CAAC,0BAA0B,CAAC,CAAA;qCAH1B,6DAA6B;QAE1B,iDAAuB;QAEpB,uDAA0B;GAVtD,uBAAuB,CAmCnC"}
|
|
@@ -120,7 +120,14 @@ let JISInfotextRepository = exports.JISInfotextRepository = class JISInfotextRep
|
|
|
120
120
|
return __awaiter(this, void 0, void 0, function* () {
|
|
121
121
|
try {
|
|
122
122
|
return yield this.sequelizeModel.findAll({
|
|
123
|
-
attributes: [
|
|
123
|
+
attributes: [
|
|
124
|
+
"id",
|
|
125
|
+
"display_type",
|
|
126
|
+
"active_period_start",
|
|
127
|
+
"active_period_end",
|
|
128
|
+
"description_text",
|
|
129
|
+
"severity_level",
|
|
130
|
+
],
|
|
124
131
|
where: {
|
|
125
132
|
active_period_start: { [sequelize_1.Op.lte]: timeFrom },
|
|
126
133
|
active_period_end: { [sequelize_1.Op.or]: [{ [sequelize_1.Op.gte]: timeFrom }, { [sequelize_1.Op.is]: null }] },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JISInfotextRepository.js","sourceRoot":"","sources":["../../../../src/output-gateway/pid/data-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D,OAAO,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE;4BAC3B,QAAQ,EAAE,IAAI;yBACjB;qBACJ;oBACD,KAAK,EAAE;wBACH,kEAAkE;wBAClE,CAAC,gBAAgB,EAAE,MAAM,CAAC;wBAC1B,CAAC,mBAAmB,EAAE,MAAM,CAAC;qBAChC;iBACJ,CAAC,CAAC;aACN;YAAC,OAAO,GAAG,EAAE;gBACV,MAAM,IAAI,6BAAY,CAAC,mDAAmD,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;aAC3G;QACL,CAAC;KAAA;IAED;;;;;OAKG;IACU,kBAAkB,CAAC,QAAQ,GAAG,IAAI,IAAI,EAAE;;YACjD,IAAI;gBACA,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC;oBACrC,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"JISInfotextRepository.js","sourceRoot":"","sources":["../../../../src/output-gateway/pid/data-access/JISInfotextRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,yEAAoE;AACpE,6DAAuC;AACvC,gGAAsE;AAGtE,kIAA+H;AAC/H,wEAAqE;AACrE,6EAAwE;AACxE,mEAAsE;AACtE,iEAAwE;AACxE,kDAA+C;AAC/C,+FAA4F;AAGrF,IAAM,qBAAqB,mCAA3B,MAAM,qBAAsB,SAAQ,iDAAuB;IAM9D,YAC4D,sBAA2D,EAC9E,SAA6B,EACxC,MAAe;QAEzC,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QAVtB,WAAM,GAAG,iBAAS,CAAC;QACnB,cAAS,GAAG,qCAAiB,CAAC,SAAS,CAAC;QAU3C,IAAI,CAAC,cAAc,GAAG,SAAS;aAC1B,aAAa,EAAE;aACf,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,qCAAiB,CAAC,cAAc,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,UAAU,EAAE,KA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
|
import { InfotextDisplayType } from "./InfotextDisplayTypeEnum";
|
|
3
|
+
import { InfotextPriority } from "./InfotextPriorityEnum";
|
|
3
4
|
export interface IInfotextDepartureInputDto {
|
|
4
5
|
data: JISInfotextsModel;
|
|
5
6
|
timeZone: string;
|
|
@@ -19,6 +20,7 @@ export interface IInfotextDepartureOutputDto {
|
|
|
19
20
|
}
|
|
20
21
|
export interface IInfotextOverviewOutputDto {
|
|
21
22
|
id: string;
|
|
23
|
+
priority: InfotextPriority;
|
|
22
24
|
display_type: InfotextDisplayType;
|
|
23
25
|
text: string;
|
|
24
26
|
text_en: string | null;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InfotextPriority = void 0;
|
|
4
|
+
var InfotextPriority;
|
|
5
|
+
(function (InfotextPriority) {
|
|
6
|
+
InfotextPriority["Low"] = "low";
|
|
7
|
+
InfotextPriority["Normal"] = "normal";
|
|
8
|
+
InfotextPriority["High"] = "high";
|
|
9
|
+
})(InfotextPriority || (exports.InfotextPriority = InfotextPriority = {}));
|
|
10
|
+
//# sourceMappingURL=InfotextPriorityEnum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InfotextPriorityEnum.js","sourceRoot":"","sources":["../../../../src/output-gateway/pid/domain/InfotextPriorityEnum.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IACxB,+BAAW,CAAA;IACX,qCAAiB,CAAA;IACjB,iCAAa,CAAA;AACjB,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { InfotextPriority } from "../../domain/InfotextPriorityEnum";
|
|
2
|
+
import { InfotextSeverityLevel } from "../../../shared/constants/jis/InfotextSeverityLevelEnum";
|
|
3
|
+
export declare class PriorityMapper {
|
|
4
|
+
/**
|
|
5
|
+
* Map input severity level from DB to output priority for API
|
|
6
|
+
*
|
|
7
|
+
* @param input Severity level type from DB
|
|
8
|
+
* @returns Priority for API
|
|
9
|
+
*/
|
|
10
|
+
static mapInputToOutputPriority(input: InfotextSeverityLevel): InfotextPriority;
|
|
11
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PriorityMapper = void 0;
|
|
4
|
+
const InfotextPriorityEnum_1 = require("../../domain/InfotextPriorityEnum");
|
|
5
|
+
const InfotextSeverityLevelEnum_1 = require("../../../shared/constants/jis/InfotextSeverityLevelEnum");
|
|
6
|
+
const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
7
|
+
class PriorityMapper {
|
|
8
|
+
/**
|
|
9
|
+
* Map input severity level from DB to output priority for API
|
|
10
|
+
*
|
|
11
|
+
* @param input Severity level type from DB
|
|
12
|
+
* @returns Priority for API
|
|
13
|
+
*/
|
|
14
|
+
static mapInputToOutputPriority(input) {
|
|
15
|
+
switch (input) {
|
|
16
|
+
case InfotextSeverityLevelEnum_1.InfotextSeverityLevel.Info:
|
|
17
|
+
return InfotextPriorityEnum_1.InfotextPriority.Low;
|
|
18
|
+
case InfotextSeverityLevelEnum_1.InfotextSeverityLevel.Warning:
|
|
19
|
+
return InfotextPriorityEnum_1.InfotextPriority.Normal;
|
|
20
|
+
case InfotextSeverityLevelEnum_1.InfotextSeverityLevel.Severe:
|
|
21
|
+
return InfotextPriorityEnum_1.InfotextPriority.High;
|
|
22
|
+
default:
|
|
23
|
+
throw new golemio_errors_1.GeneralError(`Unknown severity level: ${input}`);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.PriorityMapper = PriorityMapper;
|
|
28
|
+
//# sourceMappingURL=PriorityMapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PriorityMapper.js","sourceRoot":"","sources":["../../../../../src/output-gateway/pid/service/helpers/PriorityMapper.ts"],"names":[],"mappings":";;;AAAA,4EAAuE;AACvE,uGAA2F;AAC3F,6EAAwE;AAExE,MAAa,cAAc;IACvB;;;;;OAKG;IACI,MAAM,CAAC,wBAAwB,CAAC,KAA4B;QAC/D,QAAQ,KAAK,EAAE;YACX,KAAK,iDAAqB,CAAC,IAAI;gBAC3B,OAAO,uCAAgB,CAAC,GAAG,CAAC;YAChC,KAAK,iDAAqB,CAAC,OAAO;gBAC9B,OAAO,uCAAgB,CAAC,MAAM,CAAC;YACnC,KAAK,iDAAqB,CAAC,MAAM;gBAC7B,OAAO,uCAAgB,CAAC,IAAI,CAAC;YACjC;gBACI,MAAM,IAAI,6BAAY,CAAC,2BAA2B,KAAK,EAAE,CAAC,CAAC;SAClE;IACL,CAAC;CACJ;AAnBD,wCAmBC"}
|
package/dist/output-gateway/pid/service/transformations/JISInfotextOverviewTransformation.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export declare class JISInfotextOverviewTransformation extends AbstractTransform
|
|
|
5
5
|
name: string;
|
|
6
6
|
protected transformInternal: (inputDto: JISInfotextsModel) => {
|
|
7
7
|
id: string;
|
|
8
|
+
priority: import("../../domain/InfotextPriorityEnum").InfotextPriority;
|
|
8
9
|
display_type: import("../../domain/InfotextDisplayTypeEnum").InfotextDisplayType;
|
|
9
10
|
text: string;
|
|
10
11
|
text_en: string | null;
|
package/dist/output-gateway/pid/service/transformations/JISInfotextOverviewTransformation.js
CHANGED
|
@@ -11,6 +11,7 @@ const shared_1 = require("../../../shared");
|
|
|
11
11
|
const AbstractTransformation_1 = require("@golemio/core/dist/helpers/transformation/AbstractTransformation");
|
|
12
12
|
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
13
13
|
const DisplayTypeMapper_1 = require("../helpers/DisplayTypeMapper");
|
|
14
|
+
const PriorityMapper_1 = require("../helpers/PriorityMapper");
|
|
14
15
|
let JISInfotextOverviewTransformation = exports.JISInfotextOverviewTransformation = class JISInfotextOverviewTransformation extends AbstractTransformation_1.AbstractTransformation {
|
|
15
16
|
constructor() {
|
|
16
17
|
super(...arguments);
|
|
@@ -20,6 +21,7 @@ let JISInfotextOverviewTransformation = exports.JISInfotextOverviewTransformatio
|
|
|
20
21
|
const stops = (_a = inputDto.stops) !== null && _a !== void 0 ? _a : [];
|
|
21
22
|
return {
|
|
22
23
|
id: inputDto.id,
|
|
24
|
+
priority: PriorityMapper_1.PriorityMapper.mapInputToOutputPriority(inputDto.severity_level),
|
|
23
25
|
display_type: DisplayTypeMapper_1.DisplayTypeMapper.mapInputToOutputDisplayType(inputDto.display_type),
|
|
24
26
|
text: inputDto.description_text.cs,
|
|
25
27
|
text_en: (_b = inputDto.description_text.en) !== null && _b !== void 0 ? _b : null,
|
package/dist/output-gateway/pid/service/transformations/JISInfotextOverviewTransformation.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JISInfotextOverviewTransformation.js","sourceRoot":"","sources":["../../../../../src/output-gateway/pid/service/transformations/JISInfotextOverviewTransformation.ts"],"names":[],"mappings":";;;;;;;;;AACA,4CAA8C;AAE9C,6GAA0G;AAC1G,iEAAgE;AAChE,oEAAiE;
|
|
1
|
+
{"version":3,"file":"JISInfotextOverviewTransformation.js","sourceRoot":"","sources":["../../../../../src/output-gateway/pid/service/transformations/JISInfotextOverviewTransformation.ts"],"names":[],"mappings":";;;;;;;;;AACA,4CAA8C;AAE9C,6GAA0G;AAC1G,iEAAgE;AAChE,oEAAiE;AACjE,8DAA2D;AAGpD,IAAM,iCAAiC,+CAAvC,MAAM,iCAAkC,SAAQ,+CAAqE;IAArH;;QACI,SAAI,GAAG,mCAAmC,CAAC;QAExC,sBAAiB,GAAG,CAAC,QAA2B,EAAE,EAAE;;YAC1D,MAAM,KAAK,GAAG,MAAA,QAAQ,CAAC,KAAK,mCAAI,EAAE,CAAC;YACnC,OAAO;gBACH,EAAE,EAAE,QAAQ,CAAC,EAAE;gBACf,QAAQ,EAAE,+BAAc,CAAC,wBAAwB,CAAC,QAAQ,CAAC,cAAc,CAAC;gBAC1E,YAAY,EAAE,qCAAiB,CAAC,2BAA2B,CAAC,QAAQ,CAAC,YAAY,CAAC;gBAClF,IAAI,EAAE,QAAQ,CAAC,gBAAgB,CAAC,EAAE;gBAClC,OAAO,EAAE,MAAA,QAAQ,CAAC,gBAAgB,CAAC,EAAE,mCAAI,IAAI;gBAC7C,aAAa,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;;oBAAC,OAAA,CAAC;wBAChC,EAAE,EAAE,IAAI,CAAC,OAAO;wBAChB,IAAI,EAAE,IAAI,CAAC,SAAS;wBACpB,aAAa,EAAE,MAAA,IAAI,CAAC,aAAa,mCAAI,IAAI;qBAC5C,CAAC,CAAA;iBAAA,CAAC;gBACH,UAAU,EACN,MAAA,yBAAgB,CAAC,eAAe,CAAC,QAAQ,CAAC,mBAAmB,CAAC,mCAAI,QAAQ,CAAC,mBAAmB,CAAC,WAAW,EAAE;gBAChH,QAAQ,EAAE,yBAAgB,CAAC,eAAe,CAAC,QAAQ,CAAC,iBAAiB,CAAC;aACzE,CAAC;QACN,CAAC,CAAC;IACN,CAAC;CAAA,CAAA;4CArBY,iCAAiC;IAD7C,IAAA,qBAAU,GAAE;GACA,iCAAiC,CAqB7C"}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.jisInfotextsJsonSchema = void 0;
|
|
4
|
+
const InfotextSeverityLevelEnum_1 = require("../../../output-gateway/shared/constants/jis/InfotextSeverityLevelEnum");
|
|
4
5
|
exports.jisInfotextsJsonSchema = {
|
|
5
6
|
type: "array",
|
|
6
7
|
items: {
|
|
7
8
|
type: "object",
|
|
8
9
|
properties: {
|
|
9
10
|
id: { type: "string" },
|
|
10
|
-
severity_level: { type: "string", enum:
|
|
11
|
+
severity_level: { type: "string", enum: Object.values(InfotextSeverityLevelEnum_1.InfotextSeverityLevel) },
|
|
11
12
|
display_type: { type: "string", enum: ["GENERAL", "INLINE"] },
|
|
12
13
|
active_period: {
|
|
13
14
|
type: "object",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JISInfotextsJsonSchema.js","sourceRoot":"","sources":["../../../../src/schema-definitions/jis/datasources/JISInfotextsJsonSchema.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"JISInfotextsJsonSchema.js","sourceRoot":"","sources":["../../../../src/schema-definitions/jis/datasources/JISInfotextsJsonSchema.ts"],"names":[],"mappings":";;;AAAA,sHAA2F;AAI9E,QAAA,sBAAsB,GAAmC;IAClE,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,UAAU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AAI,EAAE,QAAQ,EAAE;6BAC9B;4BACD,oBAAoB,EAAE,KAAK;4BAC3B,QAAQ,EAAE,CAAC,SAAS,CAAC;yBACxB;qBACJ;iBACJ;gBACD,oBAAoB,EAAE,KAAK;aAC9B;YACD,iBAAiB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE;SAC7D;QACD,QAAQ,EAAE,CAAC,IAAI,EAAE,gBAAgB,EAAE,cAAc,EAAE,eAAe,EAAE,kBAAkB,EAAE,mBAAmB,CAAC;KAC/G;CACJ,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { InfotextSeverityLevel } from "../../../../output-gateway/shared/constants/jis/InfotextSeverityLevelEnum";
|
|
1
2
|
import { IJISInfotextStop } from "./IJISInfotextStop";
|
|
2
3
|
import { IJISTranslationText } from "./IJISTranslationText";
|
|
3
4
|
export interface IJISInfotext {
|
|
4
5
|
id: string;
|
|
5
|
-
severity_level:
|
|
6
|
+
severity_level: InfotextSeverityLevel;
|
|
6
7
|
display_type: string;
|
|
7
8
|
active_period: {
|
|
8
9
|
start: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { InfotextSeverityLevel } from "../../../output-gateway/shared/constants/jis/InfotextSeverityLevelEnum";
|
|
1
2
|
import { StopDto } from "../../ropid-gtfs/models/StopDto";
|
|
2
3
|
import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
|
|
3
4
|
import { CreationOptional, InferAttributes, InferCreationAttributes, Model, ModelAttributes } from "@golemio/core/dist/shared/sequelize";
|
|
@@ -5,7 +6,7 @@ import { IJISInfotext, IJISTranslationText } from "./interfaces";
|
|
|
5
6
|
export declare class JISInfotextsModel extends Model<InferAttributes<JISInfotextsModel>, InferCreationAttributes<JISInfotextsModel>> implements IJISInfotext {
|
|
6
7
|
static tableName: string;
|
|
7
8
|
id: string;
|
|
8
|
-
severity_level:
|
|
9
|
+
severity_level: InfotextSeverityLevel;
|
|
9
10
|
display_type: string;
|
|
10
11
|
active_period_start: Date;
|
|
11
12
|
active_period_end: Date | null;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.JISInfotextsModel = void 0;
|
|
4
|
+
const InfotextSeverityLevelEnum_1 = require("../../../output-gateway/shared/constants/jis/InfotextSeverityLevelEnum");
|
|
4
5
|
const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
|
|
5
6
|
class JISInfotextsModel extends sequelize_1.Model {
|
|
6
7
|
}
|
|
@@ -13,7 +14,7 @@ JISInfotextsModel.attributeModel = {
|
|
|
13
14
|
type: sequelize_1.DataTypes.UUID,
|
|
14
15
|
},
|
|
15
16
|
severity_level: {
|
|
16
|
-
type: sequelize_1.DataTypes.
|
|
17
|
+
type: sequelize_1.DataTypes.ENUM(...Object.values(InfotextSeverityLevelEnum_1.InfotextSeverityLevel)),
|
|
17
18
|
allowNull: false,
|
|
18
19
|
},
|
|
19
20
|
display_type: {
|
|
@@ -50,7 +51,7 @@ JISInfotextsModel.jsonSchema = {
|
|
|
50
51
|
type: "object",
|
|
51
52
|
properties: {
|
|
52
53
|
id: { type: "string" },
|
|
53
|
-
severity_level: { type: "string", enum:
|
|
54
|
+
severity_level: { type: "string", enum: Object.values(InfotextSeverityLevelEnum_1.InfotextSeverityLevel) },
|
|
54
55
|
display_type: { type: "string", enum: ["GENERAL", "INLINE"] },
|
|
55
56
|
active_period_start: { type: "object", required: ["toISOString"] },
|
|
56
57
|
active_period_end: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JISInfotextsModel.js","sourceRoot":"","sources":["../../../../src/schema-definitions/jis/models/JISInfotextsModel.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"JISInfotextsModel.js","sourceRoot":"","sources":["../../../../src/schema-definitions/jis/models/JISInfotextsModel.ts"],"names":[],"mappings":";;;AAAA,sHAA2F;AAG3F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AY,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC,EAAE;YAC7D,mBAAmB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,aAAa,CAAC,EAAE;YAClE,iBAAiB,EAAE;gBACf,KAAK,EAAE;oBACH,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,aAAa,CAAC,EAAE;oBAC7C,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;iBACnC;aACJ;YACD,gBAAgB,EAAE,EAAE,IAAI,EAAE,2BAA2B,EAAE;YACvD,iBAAiB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,aAAa,CAAC,EAAE;SACnE;QACD,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,IAAI,EAAE,gBAAgB,EAAE,cAAc,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,mBAAmB,CAAC;KACrH;IACD,WAAW,EAAE;QACT,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACR,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACtB,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,EAAE;aACxE;YACD,oBAAoB,EAAE,KAAK;YAC3B,QAAQ,EAAE,CAAC,IAAI,CAAC;SACnB;KACJ;CACJ,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { InfotextSeverityLevel } from "../../../../output-gateway/shared/constants/jis/InfotextSeverityLevelEnum";
|
|
1
2
|
import { IJISTranslationText } from "./IJISTranslationText";
|
|
2
3
|
export interface IJISInfotext {
|
|
3
4
|
id: string;
|
|
4
|
-
severity_level:
|
|
5
|
+
severity_level: InfotextSeverityLevel;
|
|
5
6
|
display_type: string;
|
|
6
7
|
active_period_start: Date;
|
|
7
8
|
active_period_end: Date | null;
|
package/docs/openapi-output.yaml
CHANGED
|
@@ -764,7 +764,7 @@ paths:
|
|
|
764
764
|
headers:
|
|
765
765
|
Cache-Control:
|
|
766
766
|
$ref: "#/components/headers/CacheControlNoCache"
|
|
767
|
-
Last-Modified:
|
|
767
|
+
Last-Modified:
|
|
768
768
|
$ref: "#/components/headers/LastModified"
|
|
769
769
|
content:
|
|
770
770
|
application/octet-stream:
|
|
@@ -788,7 +788,7 @@ paths:
|
|
|
788
788
|
headers:
|
|
789
789
|
Cache-Control:
|
|
790
790
|
$ref: "#/components/headers/CacheControlNoCache"
|
|
791
|
-
Last-Modified:
|
|
791
|
+
Last-Modified:
|
|
792
792
|
$ref: "#/components/headers/LastModified"
|
|
793
793
|
content:
|
|
794
794
|
application/octet-stream:
|
|
@@ -812,7 +812,7 @@ paths:
|
|
|
812
812
|
headers:
|
|
813
813
|
Cache-Control:
|
|
814
814
|
$ref: "#/components/headers/CacheControlNoCache"
|
|
815
|
-
Last-Modified:
|
|
815
|
+
Last-Modified:
|
|
816
816
|
$ref: "#/components/headers/LastModified"
|
|
817
817
|
content:
|
|
818
818
|
application/octet-stream:
|
|
@@ -836,7 +836,7 @@ paths:
|
|
|
836
836
|
headers:
|
|
837
837
|
Cache-Control:
|
|
838
838
|
$ref: "#/components/headers/CacheControlNoCache"
|
|
839
|
-
Last-Modified:
|
|
839
|
+
Last-Modified:
|
|
840
840
|
$ref: "#/components/headers/LastModified"
|
|
841
841
|
content:
|
|
842
842
|
application/octet-stream:
|
|
@@ -1101,12 +1101,33 @@ paths:
|
|
|
1101
1101
|
allOf:
|
|
1102
1102
|
- $ref: "#/components/schemas/PIDDepartureBoardInfotext"
|
|
1103
1103
|
- type: object
|
|
1104
|
+
required:
|
|
1105
|
+
- priority
|
|
1106
|
+
- related_stops
|
|
1107
|
+
- id
|
|
1104
1108
|
properties:
|
|
1109
|
+
priority:
|
|
1110
|
+
type: string
|
|
1111
|
+
description: |
|
|
1112
|
+
Priority of the infotext. If multiple infotexts are active for the same stop, the ones with higher priority will be displayed.
|
|
1113
|
+
Mapped from the VYMI (JIS) system's severity level in the following way:
|
|
1114
|
+
- "INFO" -> "low"
|
|
1115
|
+
- "WARNING" -> "normal"
|
|
1116
|
+
- "SEVERE" -> "high"
|
|
1117
|
+
enum:
|
|
1118
|
+
- "low"
|
|
1119
|
+
- "normal"
|
|
1120
|
+
- "high"
|
|
1121
|
+
example: "high"
|
|
1105
1122
|
related_stops:
|
|
1106
1123
|
type: array
|
|
1107
1124
|
description: ""
|
|
1108
1125
|
items:
|
|
1109
1126
|
type: object
|
|
1127
|
+
required:
|
|
1128
|
+
- id
|
|
1129
|
+
- name
|
|
1130
|
+
- platform_code
|
|
1110
1131
|
properties:
|
|
1111
1132
|
id:
|
|
1112
1133
|
type: string
|
|
@@ -1494,7 +1515,7 @@ components:
|
|
|
1494
1515
|
headers:
|
|
1495
1516
|
LastModified:
|
|
1496
1517
|
description: Timestamp of the latest resource update.
|
|
1497
|
-
schema:
|
|
1518
|
+
schema:
|
|
1498
1519
|
type: string
|
|
1499
1520
|
example: "2024-08-12T12:40:30.000Z"
|
|
1500
1521
|
CacheControlNoCache:
|