@golemio/pid 3.17.2-dev.1969248519 → 4.0.0-dev.1977640015
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/input-gateway/index.d.ts +1 -1
- package/dist/input-gateway/index.js +13 -25
- package/dist/input-gateway/index.js.map +1 -1
- package/dist/input-gateway/jis/{JisInfotextsRouter.d.ts → JISRouter.d.ts} +5 -2
- package/dist/input-gateway/jis/{JisInfotextsRouter.js → JISRouter.js} +12 -10
- package/dist/input-gateway/jis/JISRouter.js.map +1 -0
- package/dist/input-gateway/jis/controllers/{JisEventsController.js → JISEventsController.js} +2 -2
- package/dist/input-gateway/jis/controllers/{JisEventsController.js.map → JISEventsController.js.map} +1 -1
- package/dist/input-gateway/jis/controllers/{JisInfotextsController.d.ts → JISInfotextsController.d.ts} +1 -1
- package/dist/input-gateway/jis/controllers/{JisInfotextsController.js → JISInfotextsController.js} +5 -5
- package/dist/input-gateway/jis/controllers/{JisInfotextsController.js.map → JISInfotextsController.js.map} +1 -1
- package/dist/input-gateway/ropid-gtfs/RopidGtfsRouter.d.ts +5 -2
- package/dist/input-gateway/ropid-gtfs/RopidGtfsRouter.js +6 -2
- package/dist/input-gateway/ropid-gtfs/RopidGtfsRouter.js.map +1 -1
- package/dist/input-gateway/vehicle-positions/VehiclePositionsRouter.d.ts +4 -3
- package/dist/input-gateway/vehicle-positions/VehiclePositionsRouter.js +6 -4
- package/dist/input-gateway/vehicle-positions/VehiclePositionsRouter.js.map +1 -1
- package/dist/integration-engine/jis/repositories/JISEventsRepository.js +2 -5
- package/dist/integration-engine/jis/repositories/JISEventsRepository.js.map +1 -1
- package/dist/integration-engine/jis/repositories/JISEventsRopidGTFSRoutesRepository.js +2 -5
- package/dist/integration-engine/jis/repositories/JISEventsRopidGTFSRoutesRepository.js.map +1 -1
- package/dist/integration-engine/jis/repositories/JISInfotextsRepository.d.ts +0 -8
- package/dist/integration-engine/jis/repositories/JISInfotextsRepository.js +2 -25
- package/dist/integration-engine/jis/repositories/JISInfotextsRepository.js.map +1 -1
- package/dist/integration-engine/jis/repositories/JISInfotextsRopidGTFSStopsRepository.js +2 -5
- package/dist/integration-engine/jis/repositories/JISInfotextsRopidGTFSStopsRepository.js.map +1 -1
- package/dist/integration-engine/shared/RepositoryUtils.d.ts +3 -0
- package/dist/integration-engine/shared/RepositoryUtils.js +19 -0
- package/dist/integration-engine/shared/RepositoryUtils.js.map +1 -0
- package/dist/integration-engine/shared/index.d.ts +1 -0
- package/dist/integration-engine/shared/index.js +1 -0
- package/dist/integration-engine/shared/index.js.map +1 -1
- package/dist/output-gateway/jis/controllers/v1/V1EventsController.d.ts +1 -1
- package/dist/output-gateway/jis/controllers/v1/V1EventsController.js +1 -1
- package/dist/output-gateway/jis/ioc/Di.js +1 -1
- package/dist/output-gateway/jis/{transofrmations → transformations}/JISEventsCustomFormatTransformation.js.map +1 -1
- package/docs/openapi-input.yaml +4 -4
- package/package.json +1 -1
- package/dist/input-gateway/jis/JisInfotextsRouter.js.map +0 -1
- package/dist/input-gateway/vehicle-positions/index.d.ts +0 -2
- package/dist/input-gateway/vehicle-positions/index.js +0 -19
- package/dist/input-gateway/vehicle-positions/index.js.map +0 -1
- /package/dist/input-gateway/jis/controllers/{JisEventsController.d.ts → JISEventsController.d.ts} +0 -0
- /package/dist/output-gateway/jis/{transofrmations → transformations}/JISEventsCustomFormatTransformation.d.ts +0 -0
- /package/dist/output-gateway/jis/{transofrmations → transformations}/JISEventsCustomFormatTransformation.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare const routers: import("@golemio/core/dist/helpers/routing/AbstractRouter").AbstractRouter[];
|
|
@@ -1,28 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
27
|
-
|
|
3
|
+
exports.routers = void 0;
|
|
4
|
+
const JISRouter_1 = require("./jis/JISRouter");
|
|
5
|
+
const RopidGtfsRouter_1 = require("./ropid-gtfs/RopidGtfsRouter");
|
|
6
|
+
const VehiclePositionsRouter_1 = require("./vehicle-positions/VehiclePositionsRouter");
|
|
7
|
+
exports.routers = [
|
|
8
|
+
//#region Ropid GTFS
|
|
9
|
+
RopidGtfsRouter_1.ropidGtfsRouter,
|
|
10
|
+
//#region Vehicle positions
|
|
11
|
+
VehiclePositionsRouter_1.vehiclePositionsRouter,
|
|
12
|
+
//#region Jis
|
|
13
|
+
JISRouter_1.jisRouter,
|
|
14
|
+
//#endregionP
|
|
15
|
+
];
|
|
28
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/input-gateway/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/input-gateway/index.ts"],"names":[],"mappings":";;;AAAA,+CAA4C;AAC5C,kEAA+D;AAC/D,uFAAoF;AAEvE,QAAA,OAAO,GAAG;IACnB,oBAAoB;IACpB,iCAAe;IAEf,2BAA2B;IAC3B,+CAAsB;IAEtB,aAAa;IACb,qBAAS;IACT,aAAa;CAChB,CAAC"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
/// <reference types="express" />
|
|
2
2
|
import { Router } from "@golemio/core/dist/shared/express";
|
|
3
|
-
|
|
3
|
+
import { AbstractRouter } from "@golemio/core/dist/helpers/routing/AbstractRouter";
|
|
4
|
+
export declare class JISRouter extends AbstractRouter {
|
|
4
5
|
router: Router;
|
|
5
6
|
private eventsController;
|
|
6
7
|
private infotextsController;
|
|
7
8
|
constructor();
|
|
8
|
-
|
|
9
|
+
protected initRoutes(): void;
|
|
9
10
|
private postEvents;
|
|
10
11
|
private postInfotexts;
|
|
11
12
|
}
|
|
13
|
+
declare const jisRouter: AbstractRouter;
|
|
14
|
+
export { jisRouter };
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.jisRouter = exports.JISRouter = void 0;
|
|
4
4
|
const CheckContentTypeMiddleware_1 = require("@golemio/core/dist/input-gateway/helpers/CheckContentTypeMiddleware");
|
|
5
5
|
const express_1 = require("@golemio/core/dist/shared/express");
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
|
|
6
|
+
const JISEventsController_1 = require("./controllers/JISEventsController");
|
|
7
|
+
const JISInfotextsController_1 = require("./controllers/JISInfotextsController");
|
|
8
|
+
const AbstractRouter_1 = require("@golemio/core/dist/helpers/routing/AbstractRouter");
|
|
9
|
+
class JISRouter extends AbstractRouter_1.AbstractRouter {
|
|
9
10
|
constructor() {
|
|
11
|
+
super("v1", "jis");
|
|
10
12
|
this.postEvents = async (req, res, next) => {
|
|
11
13
|
try {
|
|
12
14
|
await this.eventsController.processData(req.body);
|
|
@@ -26,16 +28,16 @@ class JisInfotextsRouter {
|
|
|
26
28
|
}
|
|
27
29
|
};
|
|
28
30
|
this.router = (0, express_1.Router)();
|
|
29
|
-
this.eventsController = new
|
|
30
|
-
this.infotextsController = new
|
|
31
|
+
this.eventsController = new JISEventsController_1.JISEventsController();
|
|
32
|
+
this.infotextsController = new JISInfotextsController_1.JISInfotextsController();
|
|
31
33
|
this.initRoutes();
|
|
32
34
|
}
|
|
33
35
|
initRoutes() {
|
|
34
|
-
// TODO: Either rename this router to just "JISRouter", or move to a separate "JISEventsRouter"
|
|
35
|
-
// TODO: This can be done later along with possible addition of RouterLoader to (VP) Input Gateway
|
|
36
36
|
this.router.post("/events", (0, CheckContentTypeMiddleware_1.checkContentTypeMiddleware)(["application/json"]), this.postEvents);
|
|
37
37
|
this.router.post("/infotexts", (0, CheckContentTypeMiddleware_1.checkContentTypeMiddleware)(["application/json"]), this.postInfotexts);
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
exports.
|
|
41
|
-
|
|
40
|
+
exports.JISRouter = JISRouter;
|
|
41
|
+
const jisRouter = new JISRouter();
|
|
42
|
+
exports.jisRouter = jisRouter;
|
|
43
|
+
//# sourceMappingURL=JISRouter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JISRouter.js","sourceRoot":"","sources":["../../../src/input-gateway/jis/JISRouter.ts"],"names":[],"mappings":";;;AAAA,oHAAiH;AACjH,+DAA4F;AAC5F,2EAAwE;AACxE,iFAA8E;AAC9E,sFAAmF;AAEnF,MAAa,SAAU,SAAQ,+BAAc;IAKzC;QACI,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QAYf,eAAU,GAAG,KAAK,EAAE,GAAY,EAAE,GAAa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
@@ -7,7 +7,7 @@ const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
|
7
7
|
const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
|
|
8
8
|
class JISEventsController extends controllers_1.BaseController {
|
|
9
9
|
constructor() {
|
|
10
|
-
super("
|
|
10
|
+
super("JISEvents", new golemio_validator_1.JSONSchemaValidator("JISEventsDataValidation", JISEventsJsonSchema_1.jisEventsJsonSchema));
|
|
11
11
|
this.processData = async (inputData) => {
|
|
12
12
|
try {
|
|
13
13
|
await this.validator.Validate(inputData);
|
|
@@ -25,4 +25,4 @@ class JISEventsController extends controllers_1.BaseController {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
exports.JISEventsController = JISEventsController;
|
|
28
|
-
//# sourceMappingURL=
|
|
28
|
+
//# sourceMappingURL=JISEventsController.js.map
|
package/dist/input-gateway/jis/controllers/{JisEventsController.js.map → JISEventsController.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"JISEventsController.js","sourceRoot":"","sources":["../../../../src/input-gateway/jis/controllers/JISEventsController.ts"],"names":[],"mappings":";;;AAAA,yGAA+E;AAC/E,8EAA8E;AAC9E,6EAA8F;AAC9F,mFAAkF;AAElF,MAAa,mBAAoB,SAAQ,4BAAc;IAKnD;QACI,KAAK,CAAC,WAAW,EAAE,IAAI,uCAAmB,CAAC,yBAAyB,EAAE,yCAAmB,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,mBAAmB,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;aAClH;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,kDAqBC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseController } from "@golemio/core/dist/input-gateway/controllers";
|
|
2
2
|
import { JSONSchemaValidator } from "@golemio/core/dist/shared/golemio-validator";
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class JISInfotextsController extends BaseController {
|
|
4
4
|
name: string;
|
|
5
5
|
protected validator: JSONSchemaValidator;
|
|
6
6
|
protected queuePrefix: string;
|
package/dist/input-gateway/jis/controllers/{JisInfotextsController.js → JISInfotextsController.js}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.JISInfotextsController = void 0;
|
|
4
4
|
const JISInfotextsJsonSchema_1 = require("../../../schema-definitions/jis/datasources/JISInfotextsJsonSchema");
|
|
5
5
|
const controllers_1 = require("@golemio/core/dist/input-gateway/controllers");
|
|
6
6
|
const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
7
7
|
const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
|
|
8
|
-
class
|
|
8
|
+
class JISInfotextsController extends controllers_1.BaseController {
|
|
9
9
|
constructor() {
|
|
10
|
-
super("
|
|
10
|
+
super("JISInfotexts", new golemio_validator_1.JSONSchemaValidator("JISInfotextsDataValidation", JISInfotextsJsonSchema_1.jisInfotextsJsonSchema));
|
|
11
11
|
this.processData = async (inputData) => {
|
|
12
12
|
try {
|
|
13
13
|
await this.validator.Validate(inputData);
|
|
@@ -24,5 +24,5 @@ class JisInfotextsController extends controllers_1.BaseController {
|
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
exports.
|
|
28
|
-
//# sourceMappingURL=
|
|
27
|
+
exports.JISInfotextsController = JISInfotextsController;
|
|
28
|
+
//# sourceMappingURL=JISInfotextsController.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"JISInfotextsController.js","sourceRoot":"","sources":["../../../../src/input-gateway/jis/controllers/JISInfotextsController.ts"],"names":[],"mappings":";;;AAAA,+GAAqF;AACrF,8EAA8E;AAC9E,6EAA8F;AAC9F,mFAAkF;AAElF,MAAa,sBAAuB,SAAQ,4BAAc;IAKtD;QACI,KAAK,CAAC,cAAc,EAAE,IAAI,uCAAmB,CAAC,4BAA4B,EAAE,+CAAsB,CAAC,CAAC,CAAC;QAGlG,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,9 +1,12 @@
|
|
|
1
1
|
/// <reference types="express" />
|
|
2
2
|
import { Router } from "@golemio/core/dist/shared/express";
|
|
3
|
-
|
|
3
|
+
import { AbstractRouter } from "@golemio/core/dist/helpers/routing/AbstractRouter";
|
|
4
|
+
export declare class RopidGtfsRouter extends AbstractRouter {
|
|
4
5
|
router: Router;
|
|
5
6
|
private controller;
|
|
6
7
|
constructor();
|
|
7
|
-
|
|
8
|
+
protected initRoutes(): void;
|
|
8
9
|
private post;
|
|
9
10
|
}
|
|
11
|
+
declare const ropidGtfsRouter: AbstractRouter;
|
|
12
|
+
export { ropidGtfsRouter };
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RopidGtfsRouter = void 0;
|
|
3
|
+
exports.ropidGtfsRouter = exports.RopidGtfsRouter = void 0;
|
|
4
4
|
const CheckContentTypeMiddleware_1 = require("@golemio/core/dist/input-gateway/helpers/CheckContentTypeMiddleware");
|
|
5
5
|
const express_1 = require("@golemio/core/dist/shared/express");
|
|
6
6
|
const RopidGtfsController_1 = require("./RopidGtfsController");
|
|
7
|
-
|
|
7
|
+
const AbstractRouter_1 = require("@golemio/core/dist/helpers/routing/AbstractRouter");
|
|
8
|
+
class RopidGtfsRouter extends AbstractRouter_1.AbstractRouter {
|
|
8
9
|
constructor() {
|
|
10
|
+
super("v1", "ropidgtfs");
|
|
9
11
|
this.post = async (req, res, next) => {
|
|
10
12
|
try {
|
|
11
13
|
await this.controller.processData(req.body);
|
|
@@ -24,4 +26,6 @@ class RopidGtfsRouter {
|
|
|
24
26
|
}
|
|
25
27
|
}
|
|
26
28
|
exports.RopidGtfsRouter = RopidGtfsRouter;
|
|
29
|
+
const ropidGtfsRouter = new RopidGtfsRouter();
|
|
30
|
+
exports.ropidGtfsRouter = ropidGtfsRouter;
|
|
27
31
|
//# sourceMappingURL=RopidGtfsRouter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RopidGtfsRouter.js","sourceRoot":"","sources":["../../../src/input-gateway/ropid-gtfs/RopidGtfsRouter.ts"],"names":[],"mappings":";;;AAAA,oHAAiH;AACjH,+DAA4F;AAC5F,+DAA4D;
|
|
1
|
+
{"version":3,"file":"RopidGtfsRouter.js","sourceRoot":"","sources":["../../../src/input-gateway/ropid-gtfs/RopidGtfsRouter.ts"],"names":[],"mappings":";;;AAAA,oHAAiH;AACjH,+DAA4F;AAC5F,+DAA4D;AAC5D,sFAAmF;AAEnF,MAAa,eAAgB,SAAQ,+BAAc;IAI/C;QACI,KAAK,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;QAWrB,SAAI,GAAG,KAAK,EAAE,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAiB,EAAE;YACpF,IAAI;gBACA,MAAM,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;gBAE5C,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;aACvB;YAAC,OAAO,GAAG,EAAE;gBACV,IAAI,CAAC,GAAG,CAAC,CAAC;aACb;QACL,CAAC,CAAC;QAjBE,IAAI,CAAC,MAAM,GAAG,IAAA,gBAAM,GAAE,CAAC;QACvB,IAAI,CAAC,UAAU,GAAG,IAAI,yCAAmB,EAAE,CAAC;QAC5C,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;IAES,UAAU;QAChB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,EAAE,IAAA,uDAA0B,EAAC,CAAC,kBAAkB,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IAC9F,CAAC;CAWJ;AAzBD,0CAyBC;AAED,MAAM,eAAe,GAAmB,IAAI,eAAe,EAAE,CAAC;AAErD,0CAAe"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
/// <reference types="express" />
|
|
2
2
|
import { Router } from "@golemio/core/dist/shared/express";
|
|
3
|
-
|
|
3
|
+
import { AbstractRouter } from "@golemio/core/dist/helpers/routing/AbstractRouter";
|
|
4
|
+
export declare class VehiclePositionsRouter extends AbstractRouter {
|
|
4
5
|
router: Router;
|
|
5
6
|
private controller;
|
|
6
7
|
constructor();
|
|
7
8
|
/**
|
|
8
9
|
* Initiates all routes. Should respond with correct data to a HTTP requests to all routes.
|
|
9
10
|
*/
|
|
10
|
-
|
|
11
|
+
protected initRoutes: () => void;
|
|
11
12
|
private Post;
|
|
12
13
|
}
|
|
13
|
-
declare const vehiclePositionsRouter:
|
|
14
|
+
declare const vehiclePositionsRouter: AbstractRouter;
|
|
14
15
|
export { vehiclePositionsRouter };
|
|
@@ -3,9 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.vehiclePositionsRouter = exports.VehiclePositionsRouter = void 0;
|
|
4
4
|
const helpers_1 = require("@golemio/core/dist/input-gateway/helpers");
|
|
5
5
|
const express_1 = require("@golemio/core/dist/shared/express");
|
|
6
|
-
const
|
|
7
|
-
|
|
6
|
+
const VehiclePositionsController_1 = require("./VehiclePositionsController");
|
|
7
|
+
const AbstractRouter_1 = require("@golemio/core/dist/helpers/routing/AbstractRouter");
|
|
8
|
+
class VehiclePositionsRouter extends AbstractRouter_1.AbstractRouter {
|
|
8
9
|
constructor() {
|
|
10
|
+
super("v1", "vehiclepositions");
|
|
9
11
|
/**
|
|
10
12
|
* Initiates all routes. Should respond with correct data to a HTTP requests to all routes.
|
|
11
13
|
*/
|
|
@@ -32,11 +34,11 @@ class VehiclePositionsRouter {
|
|
|
32
34
|
}
|
|
33
35
|
};
|
|
34
36
|
this.router = (0, express_1.Router)();
|
|
35
|
-
this.controller = new
|
|
37
|
+
this.controller = new VehiclePositionsController_1.VehiclePositionsController();
|
|
36
38
|
this.initRoutes();
|
|
37
39
|
}
|
|
38
40
|
}
|
|
39
41
|
exports.VehiclePositionsRouter = VehiclePositionsRouter;
|
|
40
|
-
const vehiclePositionsRouter = new VehiclePositionsRouter()
|
|
42
|
+
const vehiclePositionsRouter = new VehiclePositionsRouter();
|
|
41
43
|
exports.vehiclePositionsRouter = vehiclePositionsRouter;
|
|
42
44
|
//# sourceMappingURL=VehiclePositionsRouter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VehiclePositionsRouter.js","sourceRoot":"","sources":["../../../src/input-gateway/vehicle-positions/VehiclePositionsRouter.ts"],"names":[],"mappings":";;;AACA,sEAAqH;AACrH,+DAA4F;AAC5F,
|
|
1
|
+
{"version":3,"file":"VehiclePositionsRouter.js","sourceRoot":"","sources":["../../../src/input-gateway/vehicle-positions/VehiclePositionsRouter.ts"],"names":[],"mappings":";;;AACA,sEAAqH;AACrH,+DAA4F;AAC5F,6EAA0E;AAC1E,sFAAmF;AAEnF,MAAa,sBAAuB,SAAQ,+BAAc;IAItD;QACI,KAAK,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC;QAMpC;;WAEG;QACO,eAAU,GAAG,GAAS,EAAE;YAC9B,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,IAAA,oCAA0B,EAAC,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QAC/E,CAAC,CAAC;QAEM,SAAI,GAAG,KAAK,EAAE,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAiB,EAAE;YACpF,IAAI;gBACA,MAAM,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;gBAC5C,4BAA4B;gBAC5B,MAAM,UAAU,GAA6B;oBACzC,eAAe,EACX,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,YAAY,KAAK;wBACzE,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM;wBACxB,CAAC,CAAC,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI;4BAC3C,CAAC,CAAC,CAAC;4BACH,CAAC,CAAC,CAAC;oBACX,GAAG;iBACN,CAAC;gBACF,sBAAY,CAAC,IAAI,CAAC,yBAAe,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;gBAC/D,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;aACvB;YAAC,OAAO,GAAG,EAAE;gBACV,IAAI,CAAC,GAAG,CAAC,CAAC;aACb;QACL,CAAC,CAAC;QA9BE,IAAI,CAAC,MAAM,GAAG,IAAA,gBAAM,GAAE,CAAC;QACvB,IAAI,CAAC,UAAU,GAAG,IAAI,uDAA0B,EAAE,CAAC;QACnD,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;CA4BJ;AArCD,wDAqCC;AAED,MAAM,sBAAsB,GAAmB,IAAI,sBAAsB,EAAE,CAAC;AAEnE,wDAAsB"}
|
|
@@ -25,6 +25,7 @@ const JISContainerToken_1 = require("../ioc/JISContainerToken");
|
|
|
25
25
|
const JISEventsRopidGTFSRoutesRepository_1 = require("./JISEventsRopidGTFSRoutesRepository");
|
|
26
26
|
const Di_1 = require("../../ropid-gtfs/ioc/Di");
|
|
27
27
|
const RopidGtfsContainerToken_1 = require("../../ropid-gtfs/ioc/RopidGtfsContainerToken");
|
|
28
|
+
const RepositoryUtils_1 = require("../../shared/RepositoryUtils");
|
|
28
29
|
let JISEventsRepository = exports.JISEventsRepository = class JISEventsRepository extends AbstractValidatableRepository_1.AbstractValidatableRepository {
|
|
29
30
|
constructor(connector, logger, eventsRopidGTFSRoutesRepository) {
|
|
30
31
|
super(connector, logger);
|
|
@@ -101,11 +102,7 @@ let JISEventsRepository = exports.JISEventsRepository = class JISEventsRepositor
|
|
|
101
102
|
return upserted;
|
|
102
103
|
}
|
|
103
104
|
catch (err) {
|
|
104
|
-
|
|
105
|
-
const mappedErrors = err.errors.map((e) => `${e.message} (${e.value})`).join(", ");
|
|
106
|
-
throw new golemio_errors_1.ValidationError(`Validation error in upsertAll: ${mappedErrors}`, this.constructor.name, err, undefined, "pid");
|
|
107
|
-
}
|
|
108
|
-
throw new golemio_errors_1.GeneralError("Error in upsertAll", this.constructor.name, err);
|
|
105
|
+
RepositoryUtils_1.RepositoryUtils.mapSequelizeError(err, this.constructor.name, "upsertAll");
|
|
109
106
|
}
|
|
110
107
|
}
|
|
111
108
|
getUpdateAttributes() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JISEventsRepository.js","sourceRoot":"","sources":["../../../../src/integration-engine/jis/repositories/JISEventsRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,6DAAuC;AACvC,0FAAgE;AAIhE,8IAA2I;AAC3I,wEAAqE;AACrE,
|
|
1
|
+
{"version":3,"file":"JISEventsRepository.js","sourceRoot":"","sources":["../../../../src/integration-engine/jis/repositories/JISEventsRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,6DAAuC;AACvC,0FAAgE;AAIhE,8IAA2I;AAC3I,wEAAqE;AACrE,6EAAwE;AACxE,mFAAkF;AAClF,mEAAmF;AACnF,iEAAwE;AACxE,gEAA6D;AAC7D,6FAA0F;AAC1F,gDAA2D;AAC3D,0FAAqF;AACrF,kEAA6D;AAOtD,IAAM,mBAAmB,iCAAzB,MAAM,mBAAoB,SAAQ,6DAA6B;IAQlE,YACyC,SAA6B,EACxC,MAAuB,EAEjD,+BAA2E;QAE3E,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QAJS,WAAM,GAAN,MAAM,CAAS;QAEzC,oCAA+B,GAA/B,+BAA+B,CAAoC;QAVxE,WAAM,GAAG,iBAAS,CAAC;QACnB,cAAS,GAAG,+BAAc,CAAC,SAAS,CAAC;QAYxC,IAAI,CAAC,SAAS,GAAG,IAAI,uCAAmB,CAAC,qBAAqB,EAAE,+BAAc,CAAC,UAAU,CAAC,CAAC;QAC3F,IAAI,CAAC,cAAc,GAAG,SAAS;aAC1B,aAAa,EAAE;aACf,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AAC,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,wBAAwB,QAAQ,CAAC,MAAM,cAAc,CAAC,CAAC;YAEhG,OAAO,QAAQ,CAAC;SACnB;QAAC,OAAO,GAAG,EAAE;YACV,iCAAe,CAAC,iBAAiB,CAAC,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;SAC9E;IACL,CAAC;IAEO,mBAAmB;QACvB,OAAO,MAAM,CAAC,IAAI,CAAC,+BAAc,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC;IACjH,CAAC;CACJ,CAAA;8BA1GY,mBAAmB;IAD/B,IAAA,qBAAU,GAAE;IAUJ,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,iBAAiB,CAAC,CAAA;IACnC,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,MAAM,CAAC,CAAA;IACxB,WAAA,IAAA,iBAAM,EAAC,qCAAiB,CAAC,kCAAkC,CAAC,CAAA;qDACpB,uEAAkC;GAZtE,mBAAmB,CA0G/B"}
|
|
@@ -21,6 +21,7 @@ const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
|
21
21
|
const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
|
|
22
22
|
const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
|
|
23
23
|
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
24
|
+
const RepositoryUtils_1 = require("../../shared/RepositoryUtils");
|
|
24
25
|
let JISEventsRopidGTFSRoutesRepository = exports.JISEventsRopidGTFSRoutesRepository = class JISEventsRopidGTFSRoutesRepository extends AbstractValidatableRepository_1.AbstractValidatableRepository {
|
|
25
26
|
constructor(connector, logger) {
|
|
26
27
|
super(connector, logger);
|
|
@@ -61,11 +62,7 @@ let JISEventsRopidGTFSRoutesRepository = exports.JISEventsRopidGTFSRoutesReposit
|
|
|
61
62
|
});
|
|
62
63
|
}
|
|
63
64
|
catch (err) {
|
|
64
|
-
|
|
65
|
-
const mappedErrors = err.errors.map((e) => `${e.message} (${e.value})`).join(", ");
|
|
66
|
-
throw new golemio_errors_1.ValidationError(`Validation error in upsertAll: ${mappedErrors}`, this.constructor.name, err, undefined, "pid");
|
|
67
|
-
}
|
|
68
|
-
throw new golemio_errors_1.GeneralError("Error in upsertAll", this.constructor.name, err);
|
|
65
|
+
RepositoryUtils_1.RepositoryUtils.mapSequelizeError(err, this.constructor.name, "upsertAll");
|
|
69
66
|
}
|
|
70
67
|
}
|
|
71
68
|
getUpdateAttributes() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JISEventsRopidGTFSRoutesRepository.js","sourceRoot":"","sources":["../../../../src/integration-engine/jis/repositories/JISEventsRopidGTFSRoutesRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6DAAuC;AACvC,wHAA8F;AAI9F,8IAA2I;AAC3I,wEAAqE;AACrE,
|
|
1
|
+
{"version":3,"file":"JISEventsRopidGTFSRoutesRepository.js","sourceRoot":"","sources":["../../../../src/integration-engine/jis/repositories/JISEventsRopidGTFSRoutesRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6DAAuC;AACvC,wHAA8F;AAI9F,8IAA2I;AAC3I,wEAAqE;AACrE,6EAAwE;AACxE,mFAAkF;AAClF,mEAAmF;AACnF,iEAAwE;AACxE,kEAA6D;AAOtD,IAAM,kCAAkC,gDAAxC,MAAM,kCAAmC,SAAQ,6DAA6B;IAOjF,YACyC,SAA6B,EACxC,MAAuB;QAEjD,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QAFS,WAAM,GAAN,MAAM,CAAS;QAP9C,WAAM,GAAG,iBAAS,CAAC;QACnB,cAAS,GAAG,6DAA6B,CAAC,SAAS,CAA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AC,OAAO,GAAG,EAAE;YACV,iCAAe,CAAC,iBAAiB,CAAC,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;SAC9E;IACL,CAAC;IAEO,mBAAmB;QACvB,OAAO,MAAM,CAAC,IAAI,CAAC,6DAA6B,CAAC,cAAc,CAAC,CAAC,MAAM,CACnE,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,CACrD,CAAC;IACN,CAAC;CACJ,CAAA;6CA1DY,kCAAkC;IAD9C,IAAA,qBAAU,GAAE;IASJ,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,iBAAiB,CAAC,CAAA;IACnC,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,MAAM,CAAC,CAAA;;GATpB,kCAAkC,CA0D9C"}
|
|
@@ -19,14 +19,6 @@ export declare class JISInfotextsRepository extends AbstractValidatableRepositor
|
|
|
19
19
|
tableName: string;
|
|
20
20
|
private sequelizeModel;
|
|
21
21
|
constructor(connector: IDatabaseConnector, logger: ILogger, infotextStopRepository: JISInfotextsRopidGTFSStopsRepository, gtfsStopRepository: RopidGTFSStopsModel);
|
|
22
|
-
/**
|
|
23
|
-
* Delete all items last updated before a given date and time (where their `updated_at` is less than the given limit)
|
|
24
|
-
*
|
|
25
|
-
* @param dateTime The `updated_at` limit, where all items last updated before this limit shall be deleted
|
|
26
|
-
* @param options Options for the operation
|
|
27
|
-
* @returns The number of deleted items
|
|
28
|
-
*/
|
|
29
|
-
deleteAllLastUpdatedBefore(dateTime: Date, options?: RepositoryOptions): Promise<number>;
|
|
30
22
|
/**
|
|
31
23
|
* Refresh all data from VYMI and delete old data
|
|
32
24
|
*
|
|
@@ -24,6 +24,7 @@ const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
|
|
|
24
24
|
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
25
25
|
const JISContainerToken_1 = require("../ioc/JISContainerToken");
|
|
26
26
|
const JISInfotextsRopidGTFSStopsRepository_1 = require("./JISInfotextsRopidGTFSStopsRepository");
|
|
27
|
+
const RepositoryUtils_1 = require("../../shared/RepositoryUtils");
|
|
27
28
|
let JISInfotextsRepository = exports.JISInfotextsRepository = class JISInfotextsRepository extends AbstractValidatableRepository_1.AbstractValidatableRepository {
|
|
28
29
|
constructor(connector, logger, infotextStopRepository, gtfsStopRepository) {
|
|
29
30
|
super(connector, logger);
|
|
@@ -64,26 +65,6 @@ let JISInfotextsRepository = exports.JISInfotextsRepository = class JISInfotexts
|
|
|
64
65
|
foreignKey: "stop_id",
|
|
65
66
|
});
|
|
66
67
|
}
|
|
67
|
-
/**
|
|
68
|
-
* Delete all items last updated before a given date and time (where their `updated_at` is less than the given limit)
|
|
69
|
-
*
|
|
70
|
-
* @param dateTime The `updated_at` limit, where all items last updated before this limit shall be deleted
|
|
71
|
-
* @param options Options for the operation
|
|
72
|
-
* @returns The number of deleted items
|
|
73
|
-
*/
|
|
74
|
-
async deleteAllLastUpdatedBefore(dateTime, options) {
|
|
75
|
-
try {
|
|
76
|
-
return await this.sequelizeModel.destroy({
|
|
77
|
-
where: {
|
|
78
|
-
updated_at: { [sequelize_1.Op.lt]: dateTime },
|
|
79
|
-
},
|
|
80
|
-
transaction: options?.transaction,
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
catch (err) {
|
|
84
|
-
throw new golemio_errors_1.GeneralError("Error in deleteAllLastUpdatedBefore", this.constructor.name, err);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
68
|
/**
|
|
88
69
|
* Refresh all data from VYMI and delete old data
|
|
89
70
|
*
|
|
@@ -127,11 +108,7 @@ let JISInfotextsRepository = exports.JISInfotextsRepository = class JISInfotexts
|
|
|
127
108
|
return upserted;
|
|
128
109
|
}
|
|
129
110
|
catch (err) {
|
|
130
|
-
|
|
131
|
-
const mappedErrors = err.errors.map((e) => `${e.message} (${e.value})`).join(", ");
|
|
132
|
-
throw new golemio_errors_1.ValidationError(`Validation error in upsertAll: ${mappedErrors}`, this.constructor.name, err, undefined, "pid");
|
|
133
|
-
}
|
|
134
|
-
throw new golemio_errors_1.GeneralError("Error in upsertAll", this.constructor.name, err);
|
|
111
|
+
RepositoryUtils_1.RepositoryUtils.mapSequelizeError(err, this.constructor.name, "refreshData");
|
|
135
112
|
}
|
|
136
113
|
}
|
|
137
114
|
getUpdateAttributes() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JISInfotextsRepository.js","sourceRoot":"","sources":["../../../../src/integration-engine/jis/repositories/JISInfotextsRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,iDAAqD;AACrD,6DAAuC;AACvC,gGAAsE;AAItE,8IAA2I;AAC3I,wEAAqE;AACrE,
|
|
1
|
+
{"version":3,"file":"JISInfotextsRepository.js","sourceRoot":"","sources":["../../../../src/integration-engine/jis/repositories/JISInfotextsRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,iDAAqD;AACrD,6DAAuC;AACvC,gGAAsE;AAItE,8IAA2I;AAC3I,wEAAqE;AACrE,6EAAwE;AACxE,mFAAkF;AAClF,mEAAmF;AACnF,iEAAwE;AACxE,gEAA6D;AAC7D,iGAA8F;AAC9F,kEAA6D;AAOtD,IAAM,sBAAsB,oCAA5B,MAAM,sBAAuB,SAAQ,6DAA6B;IAOrE,YACyC,SAA6B,EACxC,MAAuB,EAEjD,sBAAoE,EAEpE,kBAA+C;QAE/C,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QANS,WAAM,GAAN,MAAM,CAAS;QAEzC,2BAAsB,GAAtB,sBAAsB,CAAsC;QAE5D,uBAAkB,GAAlB,kBAAkB,CAAqB;QAX5C,WAAM,GAAG,iBAAS,CAAC;QACnB,cAAS,GAAG,qCAAiB,CAAC,SAAS,CAAC;QAa3C,IAAI,CAAC,SAAS,GAAG,IAAI,uCAAmB,CAAC,wBAAwB,EAAE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B,CAAC,cAAc;oBAC7C,EAAE,EAAE,OAAO;oBACX,UAAU,EAAE,CAAC,SAAS,CAAC;oBACvB,OAAO,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE;oBAC3B,QAAQ,EAAE,IAAI;iBACjB;aACJ;SACJ,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;iCApIY,sBAAsB;IADlC,IAAA,qBAAU,GAAE;IASJ,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,iBAAiB,CAAC,CAAA;IACnC,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,MAAM,CAAC,CAAA;IACxB,WAAA,IAAA,iBAAM,EAAC,qCAAiB,CAAC,oCAAoC,CAAC,CAAA;IAE9D,WAAA,IAAA,iBAAM,EAAC,qCAAiB,CAAC,wBAAwB,CAAC,CAAA;qDADnB,2EAAoC;QAExC,gCAAmB;GAb1C,sBAAsB,CAoIlC"}
|
|
@@ -21,6 +21,7 @@ const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
|
21
21
|
const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
|
|
22
22
|
const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
|
|
23
23
|
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
24
|
+
const RepositoryUtils_1 = require("../../shared/RepositoryUtils");
|
|
24
25
|
let JISInfotextsRopidGTFSStopsRepository = exports.JISInfotextsRopidGTFSStopsRepository = class JISInfotextsRopidGTFSStopsRepository extends AbstractValidatableRepository_1.AbstractValidatableRepository {
|
|
25
26
|
constructor(connector, logger) {
|
|
26
27
|
super(connector, logger);
|
|
@@ -67,11 +68,7 @@ let JISInfotextsRopidGTFSStopsRepository = exports.JISInfotextsRopidGTFSStopsRep
|
|
|
67
68
|
});
|
|
68
69
|
}
|
|
69
70
|
catch (err) {
|
|
70
|
-
|
|
71
|
-
const mappedErrors = err.errors.map((e) => `${e.message} (${e.value})`).join(", ");
|
|
72
|
-
throw new golemio_errors_1.ValidationError(`Validation error in upsertAll: ${mappedErrors}`, this.constructor.name, err, undefined, "pid");
|
|
73
|
-
}
|
|
74
|
-
throw new golemio_errors_1.GeneralError("Error in upsertAll", this.constructor.name, err);
|
|
71
|
+
RepositoryUtils_1.RepositoryUtils.mapSequelizeError(err, this.constructor.name, "upsertAll");
|
|
75
72
|
}
|
|
76
73
|
}
|
|
77
74
|
getUpdateAttributes() {
|
package/dist/integration-engine/jis/repositories/JISInfotextsRopidGTFSStopsRepository.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JISInfotextsRopidGTFSStopsRepository.js","sourceRoot":"","sources":["../../../../src/integration-engine/jis/repositories/JISInfotextsRopidGTFSStopsRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6DAAuC;AACvC,4HAAkG;AAIlG,8IAA2I;AAC3I,wEAAqE;AACrE,
|
|
1
|
+
{"version":3,"file":"JISInfotextsRopidGTFSStopsRepository.js","sourceRoot":"","sources":["../../../../src/integration-engine/jis/repositories/JISInfotextsRopidGTFSStopsRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6DAAuC;AACvC,4HAAkG;AAIlG,8IAA2I;AAC3I,wEAAqE;AACrE,6EAAwE;AACxE,mFAAkF;AAClF,mEAAmF;AACnF,iEAAwE;AACxE,kEAA6D;AAOtD,IAAM,oCAAoC,kDAA1C,MAAM,oCAAqC,SAAQ,6DAA6B;IAOnF,YACyC,SAA6B,EACxC,MAAuB;QAEjD,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QAFS,WAAM,GAAN,MAAM,CAAS;QAP9C,WAAM,GAAG,iBAAS,CAAC;QACnB,cAAS,GAAG,iEAA+B,CAAC,SAAS,CAAC;QASzD,IAAI,CAAC,SAAS,GAAG,IAAI,uCAAmB,CACpC,sCAAsC,EACtC,iEAA+B,CAAC,UAAU,CAC7C,CAAC;QACF,IAAI,CAAC,cAAc,GAAG,SAAS;aAC1B,a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IAAI;YACA,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC,CAAC;SAC9F;QAAC,OAAO,GAAG,EAAE;YACV,MAAM,IAAI,6BAAY,CAAC,oBAAoB,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;SAC5E;IACL,CAAC;CACJ,CAAA;+CA/EY,oCAAoC;IADhD,IAAA,qBAAU,GAAE;IASJ,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,iBAAiB,CAAC,CAAA;IACnC,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,MAAM,CAAC,CAAA;;GATpB,oCAAoC,CA+EhD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RepositoryUtils = void 0;
|
|
4
|
+
const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
5
|
+
const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
|
|
6
|
+
class RepositoryUtils {
|
|
7
|
+
static mapSequelizeError(err, className, methodName) {
|
|
8
|
+
if (err instanceof golemio_errors_1.GeneralError) {
|
|
9
|
+
throw err;
|
|
10
|
+
}
|
|
11
|
+
if (err instanceof sequelize_1.ValidationError && err.errors?.length) {
|
|
12
|
+
const mapped = err.errors.map((e) => `${e.message} (${e.value})`).join(", ");
|
|
13
|
+
throw new golemio_errors_1.ValidationError(`Validation error in ${methodName}: ${mapped}`, className, err, undefined, "pid");
|
|
14
|
+
}
|
|
15
|
+
throw new golemio_errors_1.GeneralError(`Error in ${methodName}`, className, err);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.RepositoryUtils = RepositoryUtils;
|
|
19
|
+
//# sourceMappingURL=RepositoryUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RepositoryUtils.js","sourceRoot":"","sources":["../../../src/integration-engine/shared/RepositoryUtils.ts"],"names":[],"mappings":";;;AAAA,6EAAyF;AACzF,mEAAkG;AAElG,MAAa,eAAe;IACjB,MAAM,CAAC,iBAAiB,CAAC,GAAQ,EAAE,SAAiB,EAAE,UAAkB;QAC3E,IAAI,GAAG,YAAY,6BAAY,EAAE;YAC7B,MAAM,GAAG,CAAC;SACb;QAED,IAAI,GAAG,YAAY,2BAAwB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE;YAC/D,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,OAAO,KAAK,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC7E,MAAM,IAAI,gCAAe,CAAC,uBAAuB,UAAU,KAAK,MAAM,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;SAC/G;QAED,MAAM,IAAI,6BAAY,CAAC,YAAY,UAAU,EAAE,EAAE,SAAS,EAAE,GAAG,CAAC,CAAC;IACrE,CAAC;CACJ;AAbD,0CAaC"}
|
|
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./RopidMetadataModel"), exports);
|
|
18
18
|
__exportStar(require("./HTMLUtils"), exports);
|
|
19
|
+
__exportStar(require("./RepositoryUtils"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/integration-engine/shared/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,8CAA4B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/integration-engine/shared/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,8CAA4B;AAC5B,oDAAkC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RequestHandler } from "express";
|
|
2
2
|
import { JISEventsRepository } from "../../data-access/JISEventsRepository";
|
|
3
|
-
import { JISEventsCustomFormatTransformation } from "../../
|
|
3
|
+
import { JISEventsCustomFormatTransformation } from "../../transformations/JISEventsCustomFormatTransformation";
|
|
4
4
|
export declare class V1EventsController {
|
|
5
5
|
private jisEventsRepository;
|
|
6
6
|
private eventsCustomFormatTransformation;
|
|
@@ -16,7 +16,7 @@ exports.V1EventsController = void 0;
|
|
|
16
16
|
const OgJisToken_1 = require("../../ioc/OgJisToken");
|
|
17
17
|
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
18
18
|
const JISEventsRepository_1 = require("../../data-access/JISEventsRepository");
|
|
19
|
-
const JISEventsCustomFormatTransformation_1 = require("../../
|
|
19
|
+
const JISEventsCustomFormatTransformation_1 = require("../../transformations/JISEventsCustomFormatTransformation");
|
|
20
20
|
const monitoring_1 = require("@golemio/core/dist/monitoring");
|
|
21
21
|
const EventsDto_1 = require("../../dto/EventsDto");
|
|
22
22
|
const shared_1 = require("../../../shared");
|
|
@@ -6,7 +6,7 @@ const V1EventsController_1 = require("../controllers/v1/V1EventsController");
|
|
|
6
6
|
const ioc_1 = require("@golemio/core/dist/output-gateway/ioc");
|
|
7
7
|
const JISEventsRepository_1 = require("../data-access/JISEventsRepository");
|
|
8
8
|
const JISEventsRopidGTFSRoutesRepository_1 = require("../data-access/JISEventsRopidGTFSRoutesRepository");
|
|
9
|
-
const JISEventsCustomFormatTransformation_1 = require("../
|
|
9
|
+
const JISEventsCustomFormatTransformation_1 = require("../transformations/JISEventsCustomFormatTransformation");
|
|
10
10
|
const TranslationHelper_1 = require("../helpers/TranslationHelper");
|
|
11
11
|
const RopidGTFSRoutesRepository_1 = require("../data-access/RopidGTFSRoutesRepository");
|
|
12
12
|
const ogJisContainer = ioc_1.OutputGatewayContainer.createChildContainer();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JISEventsCustomFormatTransformation.js","sourceRoot":"","sources":["../../../../src/output-gateway/jis/
|
|
1
|
+
{"version":3,"file":"JISEventsCustomFormatTransformation.js","sourceRoot":"","sources":["../../../../src/output-gateway/jis/transformations/JISEventsCustomFormatTransformation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6GAA0G;AAC1G,iEAAwE;AAGxE,oEAAiE;AACjE,kDAA+C;AAGxC,IAAM,mCAAmC,iDAAzC,MAAM,mCAAoC,SAAQ,+CAAgE;IACrH,YAAkD,iBAA4C;QAC1F,KAAK,EAAE,CAAC;QAD8C,sBAAiB,GAAjB,iBAAiB,CAAmB;QAIvF,SAAI,GAAG,qCAAqC,CAAC;QAE1C,sBAAiB,GAAG,CAAC,KAAqB,EAA4B,EAAE;YAC9E,OAAO;gBACH,EAAE,EAAE,KAAK,CAAC,EAAE;gBACZ,IAAI,EAAE,KAAK,CAAC,IAAI;gBAChB,WAAW,EAAE,KAAK,CAAC,WAAW;gBAC9B,KAAK,EAAE;oBACH,EAAE,EAAE,IAAI,CAAC,iBAAiB,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC;oBACjD,EAAE,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC;iBACpG;gBACD,YAAY,EAAE,KAAK,CAAC,YAAY;gBAChC,cAAc,EAAE,KAAK,CAAC,cAAc;gBACpC,aAAa,EAAE;oBACX,KAAK,EAAE,KAAK,CAAC,mBAAmB,CAAC,WAAW,EAAE;oBAC9C,GAAG,EAAE,KAAK,CAAC,iBAAiB,EA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,qCAAiB;GADrF,mCAAmC,CAgD/C"}
|
package/docs/openapi-input.yaml
CHANGED
|
@@ -903,10 +903,10 @@ components:
|
|
|
903
903
|
"informed_entity": {
|
|
904
904
|
"stops": [
|
|
905
905
|
{
|
|
906
|
-
"
|
|
906
|
+
"id": "U31070Z20"
|
|
907
907
|
},
|
|
908
908
|
{
|
|
909
|
-
"
|
|
909
|
+
"id": "U32268Z1"
|
|
910
910
|
}
|
|
911
911
|
]
|
|
912
912
|
},
|
|
@@ -928,10 +928,10 @@ components:
|
|
|
928
928
|
"informed_entity": {
|
|
929
929
|
"stops": [
|
|
930
930
|
{
|
|
931
|
-
"
|
|
931
|
+
"id": "U85Z1P"
|
|
932
932
|
},
|
|
933
933
|
{
|
|
934
|
-
"
|
|
934
|
+
"id": "U876Z1P"
|
|
935
935
|
}
|
|
936
936
|
]
|
|
937
937
|
},
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"JisInfotextsRouter.js","sourceRoot":"","sources":["../../../src/input-gateway/jis/JisInfotextsRouter.ts"],"names":[],"mappings":";;;AAAA,oHAAiH;AACjH,+DAA4F;AAC5F,2EAAwE;AACxE,iFAA8E;AAE9E,MAAa,kBAAkB;IAK3B;QAcQ,eAAU,GAAG,KAAK,EAAE,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAiB,EAAE;YAC1F,IAAI;gBACA,MAAM,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;gBAClD,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;aACvB;YAAC,OAAO,GAAG,EAAE;gBACV,IAAI,CAAC,GAAG,CAAC,CAAC;aACb;QACL,CAAC,CAAC;QAEM,kBAAa,GAAG,KAAK,EAAE,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAiB,EAAE;YAC7F,IAAI;gBACA,MAAM,IAAI,CAAC,mBAAmB,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;gBACrD,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;aACvB;YAAC,OAAO,GAAG,EAAE;gBACV,IAAI,CAAC,GAAG,CAAC,CAAC;aACb;QACL,CAAC,CAAC;QA7BE,IAAI,CAAC,MAAM,GAAG,IAAA,gBAAM,GAAE,CAAC;QACvB,IAAI,CAAC,gBAAgB,GAAG,IAAI,yCAAmB,EAAE,CAAC;QAClD,IAAI,CAAC,mBAAmB,GAAG,IAAI,+CAAsB,EAAE,CAAC;QACxD,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;IAEO,UAAU;QACd,+FAA+F;QAC/F,kGAAkG;QAClG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,IAAA,uDAA0B,EAAC,CAAC,kBAAkB,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;QAC/F,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,EAAE,IAAA,uDAA0B,EAAC,CAAC,kBAAkB,CAAC,CAAC,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;IACzG,CAAC;CAmBJ;AApCD,gDAoCC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./VehiclePositionsController"), exports);
|
|
18
|
-
__exportStar(require("./VehiclePositionsRouter"), exports);
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/input-gateway/vehicle-positions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,2DAAyC"}
|
/package/dist/input-gateway/jis/controllers/{JisEventsController.d.ts → JISEventsController.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|