@golemio/ndic 1.1.6 → 1.1.7-dev.897039022
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/helpers/TrafficRestrictionsHelper.js.map +1 -1
- package/dist/integration-engine/models/RsdTmcPointsModel.js +2 -3
- package/dist/integration-engine/models/RsdTmcPointsModel.js.map +1 -1
- package/dist/integration-engine/tasks/schema/TrafficRestrictionsRegionsSchema.js +1 -1
- package/dist/integration-engine/tasks/schema/TrafficRestrictionsRegionsSchema.js.map +1 -1
- package/dist/integration-engine/transformations/TrafficInfoInterface.d.ts +2 -2
- package/dist/integration-engine/transformations/TrafficRestrictionsInterface.d.ts +2 -2
- package/dist/integration-engine/transformations/TrafficRestrictionsInterface.js +1 -1
- package/dist/integration-engine/transformations/TrafficRestrictionsInterface.js.map +1 -1
- package/dist/output-gateway/transformations/OutputTrafficRestrictionsTransformation.js +9 -14
- package/dist/output-gateway/transformations/OutputTrafficRestrictionsTransformation.js.map +1 -1
- package/package.json +12 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TrafficRestrictionsHelper.js","sourceRoot":"","sources":["../../../src/integration-engine/helpers/TrafficRestrictionsHelper.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,0DAA8D;AAC9D,kCAA2C;AAK3C,MAAa,yBAAyB;;AAAtC,8DAiDC;;AAhDG,wBAAwB;AACV,iDAAuB,GAAG,CAAC,GAAgC,EAAE,EAAE;IACzE,MAAM,cAAc,GAAa,EAAE,CAAC;IACpC,MAAM,SAAS,GAAgC,EAAE,CAAC;IAClD,KAAK,MAAM,GAAG,IAAI,GAAG,EAAE;QACnB,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG,CAAC,mBAAmB,GAAG,GAAG,CAAC,6BAA6B,CAAC,EAAE;YACvF,cAAc,CAAC,IAAI,CAAC,GAAG,CAAC,mBAAmB,GAAG,GAAG,CAAC,6BAA6B,CAAC,CAAC;YACjF,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SACvB;KACJ;IACD,OAAO,SAAS,CAAC;AACrB,
|
|
1
|
+
{"version":3,"file":"TrafficRestrictionsHelper.js","sourceRoot":"","sources":["../../../src/integration-engine/helpers/TrafficRestrictionsHelper.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,0DAA8D;AAC9D,kCAA2C;AAK3C,MAAa,yBAAyB;;AAAtC,8DAiDC;;AAhDG,wBAAwB;AACV,iDAAuB,GAAG,CAAC,GAAgC,EAAE,EAAE;IACzE,MAAM,cAAc,GAAa,EAAE,CAAC;IACpC,MAAM,SAAS,GAAgC,EAAE,CAAC;IAClD,KAAK,MAAM,GAAG,IAAI,GAAG,EAAE;QACnB,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG,CAAC,mBAAmB,GAAG,GAAG,CAAC,6BAA6B,CAAC,EAAE;YACvF,cAAc,CAAC,IAAI,CAAC,GAAG,CAAC,mBAAmB,GAAG,GAAG,CAAC,6BAA6B,CAAC,CAAC;YACjF,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SACvB;KACJ;IACD,OAAO,SAAS,CAAC;AACrB,CAAC,AAVoC,CAUnC;AAEY,gEAAsC,GAAG,CACnD,eAA4C,EACR,EAAE;IACtC,KAAK,MAAM,OAAO,IAAI,eAAe,EAAE;QACnC,OAAO,CAAC,iBAAiB,GAAG,MAAM,EAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;KACtF;IACD,OAAO,eAAe,CAAC;AAC3B,CAAC,CAAA,AAPmD,CAOlD;AAEY,6CAAmB,GAAG,CAChC,eAAgD,EACjB,EAAE;IACjC,IAAI,CAAC,eAAe;QAAE,OAAO,SAAS,CAAC;IAEvC,MAAM,eAAe,GAAG,kBAAa,CAAC,OAAO,CAAoB,qCAAoB,CAAC,sBAAsB,CAAC,CAAC;IAC9G,MAAM,4BAA4B,GAAG,eAAe,CAAC,iCAAiC,CAAC,cAAc,CAAC,gBAAgB,CAAC;IACvH,MAAM,8BAA8B,GAChC,eAAe,CAAC,mCAAmC,CAAC,cAAc,CAAC,gBAAgB,CAAC;IAExF,MAAM,eAAe,GAAG,MAAM,eAAe,CAAC,MAAM,CAAC,4BAA4B,CAAC,CAAC;IACnF,MAAM,iBAAiB,GAAG,MAAM,eAAe,CAAC,MAAM,CAAC,8BAA8B,CAAC,CAAC;IAEvF,IAAI,eAAe,IAAI,iBAAiB,EAAE;QACtC,MAAM,cAAc,GAAe;YAC/B,CAAC,MAAM,CAAC,eAAe,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,EAAE,MAAM,CAAC,eAAe,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;YACtG,CAAC,MAAM,CAAC,iBAAiB,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,EAAE,MAAM,CAAC,iBAAiB,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;SAC7G,CAAC;QACF,OAAO;YACH,WAAW,EAAE,cAAc;YAC3B,IAAI,EAAE,YAAY;SACP,CAAC;KACnB;IACD,OAAO,SAAS,CAAC;AACrB,CAAC,CAAA,AAxBgC,CAwB/B"}
|
|
@@ -23,7 +23,7 @@ const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
|
23
23
|
const models_1 = require("@golemio/core/dist/output-gateway/models");
|
|
24
24
|
const _sch_1 = require("../../schema-definitions");
|
|
25
25
|
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
26
|
-
let RsdTmcPointsModel = class RsdTmcPointsModel extends models_1.SequelizeModel {
|
|
26
|
+
let RsdTmcPointsModel = exports.RsdTmcPointsModel = class RsdTmcPointsModel extends models_1.SequelizeModel {
|
|
27
27
|
constructor() {
|
|
28
28
|
super(_sch_1.Ndic.rsd_tmc_points.name + "Model", _sch_1.Ndic.rsd_tmc_points.pgTableName, _sch_1.Ndic.rsd_tmc_points.outputSequelizeAttributes);
|
|
29
29
|
/**
|
|
@@ -48,9 +48,8 @@ let RsdTmcPointsModel = class RsdTmcPointsModel extends models_1.SequelizeModel
|
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
|
-
RsdTmcPointsModel = __decorate([
|
|
51
|
+
exports.RsdTmcPointsModel = RsdTmcPointsModel = __decorate([
|
|
52
52
|
(0, tsyringe_1.injectable)(),
|
|
53
53
|
__metadata("design:paramtypes", [])
|
|
54
54
|
], RsdTmcPointsModel);
|
|
55
|
-
exports.RsdTmcPointsModel = RsdTmcPointsModel;
|
|
56
55
|
//# sourceMappingURL=RsdTmcPointsModel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RsdTmcPointsModel.js","sourceRoot":"","sources":["../../../src/integration-engine/models/RsdTmcPointsModel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,6EAAwE;AACxE,qEAA0E;AAC1E,mDAA4B;AAC5B,iEAAgE;
|
|
1
|
+
{"version":3,"file":"RsdTmcPointsModel.js","sourceRoot":"","sources":["../../../src/integration-engine/models/RsdTmcPointsModel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,6EAAwE;AACxE,qEAA0E;AAC1E,mDAA4B;AAC5B,iEAAgE;AAGzD,IAAM,iBAAiB,+BAAvB,MAAM,iBAAkB,SAAQ,uBAAc;IACjD;QACI,KAAK,CAAC,WAAI,CAAC,cAAc,CAAC,IAAI,GAAG,OAAO,EAAE,WAAI,CAAC,cAAc,CAAC,WAAW,EAAE,WAAI,CAAC,cAAc,CAAC,yBAAyB,CAAC,CAAC;QAG9H;;;WAGG;QAEI,WAAM,GAAG,CAAO,QAAgB,EAAgB,EAAE;YACrD,IAAI;gBACA,MAAM,kBAAkB,GAAU,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC;oBAChE,GAAG,EAAE,IAAI;oBACT,KAAK,EAAE,EAAE,GAAG,EAAE,QAAQ,EAAE;iBAC3B,CAAC,CAAC;gBAEH,OAAO,kBAAkB,CAAC;aAC7B;YAAC,OAAO,GAAG,EAAE;gBACV,MAAM,IAAI,6BAAY,CAAC,gBAAgB,EAAE,mBAAmB,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;aAC3E;QACL,CAAC,CAAA,CAAC;QAEK,WAAM,GAAG,CAAO,QAAgB,EAAuB,EAAE;YAC5D,MAAM,SAAS,GAAU,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YACrD,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC;QACxB,CAAC,CAAA,CAAC;IAvBF,CAAC;CAwBJ,CAAA;4BA3BY,iBAAiB;IAD7B,IAAA,qBAAU,GAAE;;GACA,iBAAiB,CA2B7B"}
|
|
@@ -13,6 +13,7 @@ const class_validator_1 = require("@golemio/core/dist/shared/class-validator");
|
|
|
13
13
|
//Just mockup schema. data are validated on IG side.
|
|
14
14
|
class TrafficRestrictionsRegionsSchema {
|
|
15
15
|
}
|
|
16
|
+
exports.default = TrafficRestrictionsRegionsSchema;
|
|
16
17
|
__decorate([
|
|
17
18
|
(0, class_validator_1.IsObject)(),
|
|
18
19
|
__metadata("design:type", Object)
|
|
@@ -25,5 +26,4 @@ __decorate([
|
|
|
25
26
|
(0, class_validator_1.IsObject)(),
|
|
26
27
|
__metadata("design:type", Object)
|
|
27
28
|
], TrafficRestrictionsRegionsSchema.prototype, "payloadPublication", void 0);
|
|
28
|
-
exports.default = TrafficRestrictionsRegionsSchema;
|
|
29
29
|
//# sourceMappingURL=TrafficRestrictionsRegionsSchema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TrafficRestrictionsRegionsSchema.js","sourceRoot":"","sources":["../../../../src/integration-engine/tasks/schema/TrafficRestrictionsRegionsSchema.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,+EAAqE;AAErE,oDAAoD;AACpD,MAAqB,gCAAgC;CAgBpD;AAdG;IADC,IAAA,0BAAQ,GAAE;;2DAKT;AAEF;IADC,IAAA,0BAAQ,GAAE;;kEACoB;AAE/B;IADC,IAAA,0BAAQ,GAAE;;4EAMT
|
|
1
|
+
{"version":3,"file":"TrafficRestrictionsRegionsSchema.js","sourceRoot":"","sources":["../../../../src/integration-engine/tasks/schema/TrafficRestrictionsRegionsSchema.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,+EAAqE;AAErE,oDAAoD;AACpD,MAAqB,gCAAgC;CAgBpD;AAhBD,mDAgBC;AAdG;IADC,IAAA,0BAAQ,GAAE;;2DAKT;AAEF;IADC,IAAA,0BAAQ,GAAE;;kEACoB;AAE/B;IADC,IAAA,0BAAQ,GAAE;;4EAMT"}
|
|
@@ -277,8 +277,8 @@ interface IWeatherRelatedRoadConditions extends ISituationRecordCommon {
|
|
|
277
277
|
interface IWinterDrivingManagement extends INetworkManagement, ISituationRecordCommon {
|
|
278
278
|
winterEquipmentManagementType: string;
|
|
279
279
|
}
|
|
280
|
-
export
|
|
281
|
-
export
|
|
280
|
+
export type ISituationRecord = IAbnormalTraffic | IAccident | IAnimalPresenceObstruction | IAuthorityOperation | ICarParks | IConditions | IConstructionWorks | IDisturbanceActivity | IEnvironmentalObstruction | IEquipmentOrSystemFault | IGeneralInstructionOrMessageToRoadUsers | IGeneralNetworkManagement | IGeneralObstruction | IInfrastructureDamageObstruction | IMaintenanceWorks | INonWeatherRelatedRoadConditions | IPoorEnvironmentConditions | IPublicEvent | IReroutingManagement | IRoadOperatorServiceDisruption | IRoadOrCarriagewayOrLaneManagement | IRoadsideAssistance | IRoadsideServiceDisruption | ISpeedManagement | ITransitInformation | IVehicleObstruction | IWeatherRelatedRoadConditions | IWinterDrivingManagement;
|
|
281
|
+
export type ISituationRecordGeneral = IAbnormalTraffic & IAccident & IAnimalPresenceObstruction & IAuthorityOperation & ICarParks & IConditions & IConstructionWorks & IDisturbanceActivity & IEnvironmentalObstruction & IEquipmentOrSystemFault & IGeneralInstructionOrMessageToRoadUsers & IGeneralNetworkManagement & IGeneralObstruction & IInfrastructureDamageObstruction & IMaintenanceWorks & INonWeatherRelatedRoadConditions & IPoorEnvironmentConditions & IPublicEvent & IReroutingManagement & // no data
|
|
282
282
|
IRoadOperatorServiceDisruption & // no data
|
|
283
283
|
IRoadOrCarriagewayOrLaneManagement & IRoadsideAssistance & // no data
|
|
284
284
|
IRoadsideServiceDisruption & ISpeedManagement & // no data
|
|
@@ -334,8 +334,8 @@ interface IWeatherRelatedRoadConditions extends ISituationRecordCommon {
|
|
|
334
334
|
interface IWinterDrivingManagement extends INetworkManagement, ISituationRecordCommon {
|
|
335
335
|
winterEquipmentManagementType: string;
|
|
336
336
|
}
|
|
337
|
-
export
|
|
338
|
-
export
|
|
337
|
+
export type ISituationRecord = IAbnormalTraffic | IAccident | IAnimalPresenceObstruction | IAuthorityOperation | ICarParks | IConditions | IConstructionWorks | IDisturbanceActivity | IEnvironmentalObstruction | IEquipmentOrSystemFault | IGeneralInstructionOrMessageToRoadUsers | IGeneralNetworkManagement | IGeneralObstruction | IInfrastructureDamageObstruction | IMaintenanceWorks | INonWeatherRelatedRoadConditions | IPoorEnvironmentConditions | IPublicEvent | IReroutingManagement | IRoadOperatorServiceDisruption | IRoadOrCarriagewayOrLaneManagement | IRoadsideAssistance | IRoadsideServiceDisruption | ISpeedManagement | ITransitInformation | IVehicleObstruction | IWeatherRelatedRoadConditions | IWinterDrivingManagement;
|
|
338
|
+
export type ISituationRecordGeneral = IAbnormalTraffic & IAccident & IAnimalPresenceObstruction & IAuthorityOperation & ICarParks & IConditions & IConstructionWorks & IDisturbanceActivity & IEnvironmentalObstruction & IEquipmentOrSystemFault & IGeneralInstructionOrMessageToRoadUsers & IGeneralNetworkManagement & IGeneralObstruction & IInfrastructureDamageObstruction & IMaintenanceWorks & INonWeatherRelatedRoadConditions & IPoorEnvironmentConditions & IPublicEvent & IReroutingManagement & // no data
|
|
339
339
|
IRoadOperatorServiceDisruption & // no data
|
|
340
340
|
IRoadOrCarriagewayOrLaneManagement & IRoadsideAssistance & // no data
|
|
341
341
|
IRoadsideServiceDisruption & ISpeedManagement & // no data
|
|
@@ -7,5 +7,5 @@ var OutputApiSituationRecordType;
|
|
|
7
7
|
OutputApiSituationRecordType["GeneralObstruction"] = "GENERAL_OBSTRUCTION";
|
|
8
8
|
OutputApiSituationRecordType["MaintenanceWorks"] = "MAINTENANCE_WORKS";
|
|
9
9
|
OutputApiSituationRecordType["RoadOrCarriagewayOrLaneManagement"] = "ROAD_OR_CARRIAGE_WAY_OR_LANE_MANAGEMENT";
|
|
10
|
-
})(OutputApiSituationRecordType
|
|
10
|
+
})(OutputApiSituationRecordType || (exports.OutputApiSituationRecordType = OutputApiSituationRecordType = {}));
|
|
11
11
|
//# sourceMappingURL=TrafficRestrictionsInterface.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TrafficRestrictionsInterface.js","sourceRoot":"","sources":["../../../src/integration-engine/transformations/TrafficRestrictionsInterface.ts"],"names":[],"mappings":";;;AAqJA,IAAY,4BAKX;AALD,WAAY,4BAA4B;IACpC,wEAAwC,CAAA;IACxC,0EAA0C,CAAA;IAC1C,sEAAsC,CAAA;IACtC,6GAA6E,CAAA;AACjF,CAAC,EALW,4BAA4B,
|
|
1
|
+
{"version":3,"file":"TrafficRestrictionsInterface.js","sourceRoot":"","sources":["../../../src/integration-engine/transformations/TrafficRestrictionsInterface.ts"],"names":[],"mappings":";;;AAqJA,IAAY,4BAKX;AALD,WAAY,4BAA4B;IACpC,wEAAwC,CAAA;IACxC,0EAA0C,CAAA;IAC1C,sEAAsC,CAAA;IACtC,6GAA6E,CAAA;AACjF,CAAC,EALW,4BAA4B,4CAA5B,4BAA4B,QAKvC"}
|
|
@@ -82,13 +82,12 @@ class OutputTrafficRestrictionsTransformation {
|
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
84
|
transformRecordsArr(oneSituationArr) {
|
|
85
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
85
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
86
86
|
return __awaiter(this, void 0, void 0, function* () {
|
|
87
87
|
const resultRecordsArr = [];
|
|
88
88
|
for (const record of oneSituationArr) {
|
|
89
89
|
const ltStart = ((_a = record.alert_c_linear) === null || _a === void 0 ? void 0 : _a.alertCMethod2PrimaryPointLocation.alertCLocation.specificLocation) || null;
|
|
90
90
|
const ltEnd = ((_b = record.alert_c_linear) === null || _b === void 0 ? void 0 : _b.alertCMethod2SecondaryPointLocation.alertCLocation.specificLocation) || null;
|
|
91
|
-
const ltDirection = (_c = record.alert_c_linear) === null || _c === void 0 ? void 0 : _c.alertCDirection.alertCDirectionCoded;
|
|
92
91
|
resultRecordsArr.push({
|
|
93
92
|
id: record.situation_record_id,
|
|
94
93
|
situationRecordCreationTime: (0, moment_timezone_1.default)(record.situation_record_creation_time).tz("Europe/Prague").format(),
|
|
@@ -109,12 +108,12 @@ class OutputTrafficRestrictionsTransformation {
|
|
|
109
108
|
trafficConstrictionType: record.impact_traffic_constriction_type,
|
|
110
109
|
},
|
|
111
110
|
alertCLinear: {
|
|
112
|
-
type: ((
|
|
113
|
-
alertCLocationCountryCode: ((
|
|
114
|
-
alertCLocationTableNumber: ((
|
|
115
|
-
alertCLocationTableVersion: ((
|
|
111
|
+
type: ((_c = record.alert_c_linear) === null || _c === void 0 ? void 0 : _c.$["xsi:type"]) || null,
|
|
112
|
+
alertCLocationCountryCode: ((_d = record.alert_c_linear) === null || _d === void 0 ? void 0 : _d.alertCLocationCountryCode) || null,
|
|
113
|
+
alertCLocationTableNumber: ((_e = record.alert_c_linear) === null || _e === void 0 ? void 0 : _e.alertCLocationTableNumber) || null,
|
|
114
|
+
alertCLocationTableVersion: ((_f = record.alert_c_linear) === null || _f === void 0 ? void 0 : _f.alertCLocationTableVersion) || null,
|
|
116
115
|
alertCDirection: {
|
|
117
|
-
alertCDirectionCoded: ((
|
|
116
|
+
alertCDirectionCoded: ((_g = record.alert_c_linear) === null || _g === void 0 ? void 0 : _g.alertCDirection.alertCDirectionCoded.toUpperCase()) || null,
|
|
118
117
|
},
|
|
119
118
|
alertCMethod2PrimaryPointLocation: {
|
|
120
119
|
alertCLocation: {
|
|
@@ -127,7 +126,7 @@ class OutputTrafficRestrictionsTransformation {
|
|
|
127
126
|
},
|
|
128
127
|
},
|
|
129
128
|
},
|
|
130
|
-
osmPath: (
|
|
129
|
+
osmPath: (_h = (yield this.getRsdTmcOsmMapping(Number(ltStart), Number(ltEnd)))) !== null && _h !== void 0 ? _h : undefined,
|
|
131
130
|
});
|
|
132
131
|
}
|
|
133
132
|
return resultRecordsArr;
|
|
@@ -182,13 +181,9 @@ class OutputTrafficRestrictionsTransformation {
|
|
|
182
181
|
}
|
|
183
182
|
return source;
|
|
184
183
|
}
|
|
185
|
-
getRsdTmcOsmMapping(ltStart, ltEnd
|
|
184
|
+
getRsdTmcOsmMapping(ltStart, ltEnd) {
|
|
186
185
|
return __awaiter(this, void 0, void 0, function* () {
|
|
187
|
-
|
|
188
|
-
if (Array.isArray(osmPath) && ltDirection === "negative") {
|
|
189
|
-
return osmPath.reverse();
|
|
190
|
-
}
|
|
191
|
-
return osmPath;
|
|
186
|
+
return yield this.rsdTmcOsmMappingRepository.GetOne({ ltStart, ltEnd });
|
|
192
187
|
});
|
|
193
188
|
}
|
|
194
189
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OutputTrafficRestrictionsTransformation.js","sourceRoot":"","sources":["../../../src/output-gateway/transformations/OutputTrafficRestrictionsTransformation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gGAA+D;AAC/D,mDAA4B;AAC5B,wHAM0D;AAE1D,wFAA+D;AAG/D,MAAa,uCAAuC;IAIhD,YAAY,0BAAsD;QAK3D,cAAS,GAAG,CAAO,IAAiC,EAAE,EAAE;YAC3D,iEAAiE;YACjE,MAAM,eAAe,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,CAC9C,GAAG,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAC5D,CAAC,gBAAgB,CAAC;YAEnB,MAAM,MAAM,GAA2B;gBACnC,gBAAgB,EAAE,GAAG;gBACrB,yBAAyB,EAAE;oBACvB,IAAI,EAAE,IAAI;oBACV,eAAe,EAAE,IAAA,yBAAM,EAAC,eAAe,CAAC,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC,MAAM,EAAE;oBACrE,kBAAkB,EAAE;wBAChB,OAAO,EAAE,IAAI;wBACb,kBAAkB,EAAE,MAAM;qBAC7B;oBACD,SAAS,EAAE,MAAM,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC;iBACrD;aACJ,CAAC;YAEF,OAAO,MAAM,CAAC;QAClB,CAAC,CAAA,CAAC;
|
|
1
|
+
{"version":3,"file":"OutputTrafficRestrictionsTransformation.js","sourceRoot":"","sources":["../../../src/output-gateway/transformations/OutputTrafficRestrictionsTransformation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gGAA+D;AAC/D,mDAA4B;AAC5B,wHAM0D;AAE1D,wFAA+D;AAG/D,MAAa,uCAAuC;IAIhD,YAAY,0BAAsD;QAK3D,cAAS,GAAG,CAAO,IAAiC,EAAE,EAAE;YAC3D,iEAAiE;YACjE,MAAM,eAAe,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,CAC9C,GAAG,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAC5D,CAAC,gBAAgB,CAAC;YAEnB,MAAM,MAAM,GAA2B;gBACnC,gBAAgB,EAAE,GAAG;gBACrB,yBAAyB,EAAE;oBACvB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KAAK,MAAM,qBAAqB,IAAI,cAAc,EAAE;oBAChD,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;oBACrD,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;iBAC/F;gBACD,OAAO,SAAS,CAAC;aACpB;YAAC,OAAO,KAAK,EAAE;gBACZ,OAAO,IAAI,CAAC;aACf;SACJ;QACD,OAAO;YACH,EAAE,EAAE,OAAO;SACd,CAAC;IACN,CAAC;IAEO,iBAAiB,CAAC,MAA0B;QAChD,IAAI,CAAC,MAAM;YAAE,OAAO,IAAI,CAAC;QACzB,IAAI,MAAM,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;YACnB,IAAI;gBACA,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;gBACrC,OAAO,SAAS,CAAC,oBAAoB,CAAC;aACzC;YAAC,OAAO,KAAK,EAAE;gBACZ,OAAO,IAAI,CAAC;aACf;SACJ;QACD,OAAO,MAAM,CAAC;IAClB,CAAC;IAUa,mBAAmB,CAAC,OAAe,EAAE,KAAa;;YAC5D,OAAO,MAAM,IAAI,CAAC,0BAA0B,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC;QAC5E,CAAC;KAAA;CACJ;AAnLD,0FAmLC"}
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golemio/ndic",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7-dev.897039022",
|
|
4
4
|
"description": "Golemio NDIC Module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"build": "rimraf ./dist &&
|
|
8
|
+
"build": "rimraf ./dist && tspc -p ./tsconfig.build.json",
|
|
9
9
|
"build-minimal": "run-s 'build -- --sourceMap false --declaration false'",
|
|
10
10
|
"build-watch": "run-s 'build -- --watch --preserveWatchOutput'",
|
|
11
11
|
"pretest": "golemio import-db-data --postgres",
|
|
12
|
-
"test": "cross-env NODE_ENV=test
|
|
13
|
-
"apidocs-test": "cross-env NODE_ENV=test
|
|
12
|
+
"test": "cross-env NODE_ENV=test mocha --exit --check-leaks --timeout 120000 -r ts-node/register -r tsconfig-paths/register -r dotenv/config --file 'test/setup.ts' 'test/**/*.test.ts'",
|
|
13
|
+
"apidocs-test": "cross-env NODE_ENV=test ts-node -r tsconfig-paths/register -r dotenv/config test/api-docs/index.ts",
|
|
14
14
|
"test-debug": "run-s 'test -- --inspect-brk=9230'",
|
|
15
15
|
"code-coverage": "nyc run-s 'test -- -r source-map-support/register'",
|
|
16
16
|
"generate-docs": "typedoc --out docs/typedoc src",
|
|
@@ -35,11 +35,10 @@
|
|
|
35
35
|
"@commitlint/cli": "^11.0.0",
|
|
36
36
|
"@commitlint/config-conventional": "^11.0.0",
|
|
37
37
|
"@golemio/cli": "1.4.2",
|
|
38
|
-
"@golemio/core": "1.7.
|
|
38
|
+
"@golemio/core": "1.7.5-dev.893702206",
|
|
39
39
|
"@golemio/db-common": "1.1.1",
|
|
40
40
|
"@golemio/eslint-config": "1.1.0",
|
|
41
41
|
"@golemio/traffic-common": "0.1.1",
|
|
42
|
-
"@ovos-media/ts-transform-paths": "^1.7.18-1",
|
|
43
42
|
"@types/body-parser-xml": "^1.1.0",
|
|
44
43
|
"@types/chai": "4.2.3",
|
|
45
44
|
"@types/chai-as-promised": "7.1.2",
|
|
@@ -62,12 +61,14 @@
|
|
|
62
61
|
"pretty-quick": "^3.1.3",
|
|
63
62
|
"rimraf": "^3.0.2",
|
|
64
63
|
"sinon": "^9.2.3",
|
|
65
|
-
"source-map-support": "0.5.
|
|
64
|
+
"source-map-support": "0.5.21",
|
|
66
65
|
"supertest": "^6.0.1",
|
|
67
|
-
"ts-node": "^10.
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
66
|
+
"ts-node": "^10.9.1",
|
|
67
|
+
"ts-patch": "3.0.0-beta3",
|
|
68
|
+
"tsconfig-paths": "^4.2.0",
|
|
69
|
+
"typedoc": "^0.24.8",
|
|
70
|
+
"typescript": "5.1.3",
|
|
71
|
+
"typescript-transform-paths": "^3.4.6"
|
|
71
72
|
},
|
|
72
73
|
"peerDependencies": {
|
|
73
74
|
"@golemio/core": ">=1.7.0",
|