UNPKG

@golemio/parkings

Version:
79 lines (78 loc) 2.85 kB
import { Model, ModelAttributes } from "@golemio/core/dist/shared/sequelize"; import { IOpeningHours } from "./interfaces/openingHours/IOpeningHours"; import { IOpeningHoursPeriod } from "./interfaces/openingHours/IOpeningHoursPeriod"; export declare class OpeningHoursModel extends Model<IOpeningHours> implements IOpeningHours { static tableName: string; parking_id: string; source: string; valid_from: string; valid_to: string | null; periods_of_time: IOpeningHoursPeriod[]; static attributeModel: ModelAttributes<OpeningHoursModel>; static jsonSchema: { type: string; items: { type: string; properties: { parking_id: { type: string; }; source: { type: string; }; valid_from: { type: string; }; valid_to: { oneOf: ({ type: string; nullable?: undefined; } | { type: string; nullable: boolean; })[]; }; periods_of_time: { type: string; items: { type: string; properties: { day_in_week: { type: string; }; start: { type: string; }; end: { type: string; }; ph: { type: string; }; maximum_duration: { oneOf: ({ type: string; nullable?: undefined; } | { type: string; nullable: boolean; })[]; }; disc_parking: { oneOf: ({ type: string; nullable?: undefined; } | { type: string; nullable: boolean; })[]; }; }; required: string[]; }; }; }; required: string[]; }; }; }