UNPKG

@golemio/parkings

Version:
12 lines (11 loc) 666 B
import { IModel, PostgresModel } from "@golemio/core/dist/integration-engine/models"; import { IParking } from "../ParkingInterface"; import { IParkingLocation } from "../../schema-definitions/models/interfaces/IParkingLocation"; export declare class ParkingsLocationRepository extends PostgresModel implements IModel { constructor(); GetOne: (id: string) => Promise<IParking | null>; saveWithoutAddress: (parkings: IParkingLocation[]) => Promise<void>; findWithOutdatedAddress(batchSize: number, updateInterval: number): Promise<IParkingLocation[]>; findWithoutAddress(): Promise<IParkingLocation[]>; private getParkingAttributesToUpdate; }