@citrineos/data
Version:
The OCPP data module which includes all persistence layer implementation.
32 lines (31 loc) • 1.11 kB
TypeScript
import type { LocationDto, LocationFacilityEnumType, LocationParkingEnumType, Point, TenantDto } from '@citrineos/base';
import { LocationHours } from '@citrineos/base';
import { Model } from 'sequelize-typescript';
import { ChargingStation } from './ChargingStation.js';
/**
* Represents a location.
* Currently, this data model is internal to CitrineOS. In the future, it will be analogous to an OCPI Location.
*/
export declare class Location extends Model implements LocationDto {
static readonly MODEL_NAME: string;
name: string;
address: string;
city: string;
postalCode: string;
state: string;
country: string;
publishUpstream: boolean;
timeZone: string;
parkingType?: LocationParkingEnumType | null;
facilities?: LocationFacilityEnumType[] | null;
openingHours?: LocationHours | null;
/**
* [longitude, latitude]
*/
coordinates: Point;
chargingPool: [ChargingStation, ...ChargingStation[]];
tenantId: number;
tenant?: TenantDto;
static setDefaultTenant(instance: Location): void;
constructor(...args: any[]);
}