UNPKG

@golemio/parkings

Version:
25 lines 1.26 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.IptOictParkingProhibitionsTransformation = void 0; const AbstractTransformation_1 = require("@golemio/core/dist/helpers/transformation/AbstractTransformation"); class IptOictParkingProhibitionsTransformation extends AbstractTransformation_1.AbstractTransformation { constructor(source) { super(); this.source = source; this.name = "IptOictParkingProhibitionsTransformation"; this.transformInternal = (element) => { return { parking_id: `${this.source}-${element.parking_id}`, source: this.source, lpg: element.prohibited_access["lpg/cng"] ?? null, bus: element.prohibited_access.bus ?? null, truck: element.prohibited_access.truck ?? null, motorcycle: element.prohibited_access.motorcycle ?? null, bicycle: element.prohibited_access.bicycle ?? null, trailer: element.prohibited_access.trailer ?? null, }; }; } } exports.IptOictParkingProhibitionsTransformation = IptOictParkingProhibitionsTransformation; //# sourceMappingURL=IptOictParkingProhibitionsTransformation.js.map