esios-api-client
Version:
Another ESIOS api client
29 lines (28 loc) • 945 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.PVPCDayZonedGeneral = void 0;
const pvpc_day_zoned_class_1 = require("./pvpc-day-zoned.class");
class PVPCDayZonedGeneral extends pvpc_day_zoned_class_1.PVPCDayZoned {
constructor(hours) {
const normalized = hours.map((hour) => {
return {
day: hour.Dia,
hour: hour.Hora,
total: hour.PCB,
ccv: hour.CCVPCB,
cof2TD: hour.COF2TD,
edsr: hour.EDSRPCB,
fom: hour.FOMPCB,
fos: hour.FOSPCB,
int: hour.INTPCB,
pcap: hour.PCAPPCB,
pmh: hour.PMHPCB,
sah: hour.SAHPCB,
tah: hour.TAHPCB || '0',
teu: hour.TEUPCB
};
});
super(normalized);
}
}
exports.PVPCDayZonedGeneral = PVPCDayZonedGeneral;
;