UNPKG

@golemio/parkings

Version:
12 lines (11 loc) 945 B
import { IParkingMeasurements } from "../../ParkingInterface"; import { IGreenCenterMeasurement, IGreenCenterMeasurementAggregation } from "../../../schema-definitions/datasources/greencenter/interfaces/IGreenCenterMeasurement"; import { IParking } from "../../../schema-definitions/models/interfaces/IParking"; import { AbstractTransformation } from "@golemio/core/dist/helpers/transformation/AbstractTransformation"; export declare class GreenCenterMeasurementTransformation extends AbstractTransformation<IGreenCenterMeasurementAggregation & Pick<IParking, "id" | "source_id">, IParkingMeasurements> { private readonly transformationDate; name: string; constructor(transformationDate: Date); aggregateCollection: (data: IGreenCenterMeasurement[]) => IGreenCenterMeasurementAggregation; protected transformInternal: (data: IGreenCenterMeasurementAggregation & Pick<IParking, "id" | "source_id">) => IParkingMeasurements; }