@golemio/parkings 1.23.2 → 1.23.3-dev.2098260697
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/ZtpParkingZones/ZtpParkingZonesTransformation.js +5 -4
- package/dist/integration-engine/ZtpParkingZones/ZtpParkingZonesTransformation.js.map +1 -1
- package/dist/integration-engine/workers/constants.d.ts +1 -0
- package/dist/integration-engine/workers/constants.js +2 -1
- package/dist/integration-engine/workers/constants.js.map +1 -1
- package/dist/integration-engine/workers/tasks/UpdateAddressAndNameTask.js +1 -1
- package/dist/integration-engine/workers/tasks/UpdateAddressAndNameTask.js.map +1 -1
- package/package.json +1 -1
|
@@ -2,20 +2,21 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ZtpParkingZonesTransformation = void 0;
|
|
4
4
|
const SourceEnum_1 = require("../../helpers/constants/SourceEnum");
|
|
5
|
+
const constants_1 = require("../workers/constants");
|
|
5
6
|
const AbstractTransformation_1 = require("@golemio/core/dist/helpers/transformation/AbstractTransformation");
|
|
6
7
|
class ZtpParkingZonesTransformation extends AbstractTransformation_1.AbstractTransformation {
|
|
7
8
|
constructor(transformationDate) {
|
|
8
9
|
super();
|
|
9
10
|
this.transformInternal = (element) => {
|
|
10
|
-
|
|
11
|
+
const globalId = element.properties.globalid?.replace(/[{}]/g, "");
|
|
11
12
|
return {
|
|
12
|
-
id: `ipr-ztp-ztp-${
|
|
13
|
+
id: `ipr-ztp-ztp-${globalId}`,
|
|
13
14
|
source: SourceEnum_1.SourceEnum.IPR,
|
|
14
|
-
source_id: `ztp-${
|
|
15
|
+
source_id: `ztp-${globalId}`,
|
|
15
16
|
data_provider: "opendata.iprpraha.cz",
|
|
16
17
|
date_modified: this.transformationDate,
|
|
17
18
|
location: element.geometry,
|
|
18
|
-
name:
|
|
19
|
+
name: constants_1.ZTP_PARKING_NAME,
|
|
19
20
|
total_spot_number: element.properties.pocet_ps,
|
|
20
21
|
parking_type: "disabled_parking",
|
|
21
22
|
centroid: element.geometry,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ZtpParkingZonesTransformation.js","sourceRoot":"","sources":["../../../src/integration-engine/ZtpParkingZones/ZtpParkingZonesTransformation.ts"],"names":[],"mappings":";;;AAAA,mEAA2D;
|
|
1
|
+
{"version":3,"file":"ZtpParkingZonesTransformation.js","sourceRoot":"","sources":["../../../src/integration-engine/ZtpParkingZones/ZtpParkingZonesTransformation.ts"],"names":[],"mappings":";;;AAAA,mEAA2D;AAE3D,oDAAyD;AAEzD,6GAA0G;AAE1G,MAAa,6BAA8B,SAAQ,+CAAwD;IAIvG,YAAY,kBAAwB;QAChC,KAAK,EAAE,CAAC;QAKF,sBAAiB,GAAG,CAAC,OAA+B,EAAY,EAAE;YACxE,MAAM,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,EAAE,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;YAEnE,OAAO;gBACH,EAAE,EAAE,eAAe,QAAQ,EAAE;gBAC7B,MAAM,EAAE,uBAAU,CAAC,GAAG;gBACtB,SAAS,EAAE,OAAO,QAAQ,EAAE;gBAC5B,aAAa,EAAE,sBAAsB;gBACrC,aAAa,EAAE,IAAI,CAAC,kBAAkB;gBACtC,QAAQ,EAAE,OAAO,CAAC,QAAQ;gBAC1B,IAAI,EAAE,4BAAgB;gBACtB,iBAAiB,EAAE,OAAO,CAAC,UAAU,CAAC,QAAQ;gBAC9C,YAAY,EAAE,kBAAkB;gBAChC,QAAQ,EAAE,OAAO,CAAC,QAAQ;gBAC1B,MAAM,EAAE,IAAI;aACf,CAAC;QACN,CAAC,CAAC;QApBE,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC;QAC1B,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC,WAAW,EAAE,CAAC;IAC/D,CAAC;CAmBJ;AA3BD,sEA2BC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NEW_PARKINGS_WORKER_NAME = void 0;
|
|
3
|
+
exports.ZTP_PARKING_NAME = exports.NEW_PARKINGS_WORKER_NAME = void 0;
|
|
4
4
|
exports.NEW_PARKINGS_WORKER_NAME = "Parkings";
|
|
5
|
+
exports.ZTP_PARKING_NAME = "Parkoviště ZTP";
|
|
5
6
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/integration-engine/workers/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,wBAAwB,GAAG,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/integration-engine/workers/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,wBAAwB,GAAG,UAAU,CAAC;AACtC,QAAA,gBAAgB,GAAG,gBAAgB,CAAC"}
|
|
@@ -50,7 +50,7 @@ let UpdateAddressAndNameTask = exports.UpdateAddressAndNameTask = class UpdateAd
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
buildName(address, data) {
|
|
53
|
-
return `${
|
|
53
|
+
return `${constants_1.ZTP_PARKING_NAME} ${address.street_address}, ${address.address_region}`;
|
|
54
54
|
}
|
|
55
55
|
// Temporary solution to decrease the number of requests to the geocoding service. Should be solved in
|
|
56
56
|
// https://gitlab.com/operator-ict/golemio/code/modules/core/-/issues/120
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateAddressAndNameTask.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/tasks/UpdateAddressAndNameTask.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,yEAAoE;AACpE,8EAAyE;AACzE,
|
|
1
|
+
{"version":3,"file":"UpdateAddressAndNameTask.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/tasks/UpdateAdd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