@golemio/parkings
Version:
Golemio Parkings Module
44 lines (43 loc) • 960 B
TypeScript
import { Point, Polygon } from "@golemio/core/dist/shared/geojson";
/**
* MongoDB ObjectId reference
*/
export interface MongoObjectId {
$oid: string;
}
/**
* Individual parking place within a location
*/
export interface Smart4CityParkingPlace {
placeID: number;
occ: number;
id: string;
lastStateChange: string | object;
roles: string[];
coords: Point;
actualRoleID: MongoObjectId;
}
/**
* Parking location with multiple parking places
*/
export interface Smart4CityParkingLocation {
_places: Smart4CityParkingPlace[];
capacity: number;
code: string;
definition: Polygon;
last_changes: string;
name: string;
total_occ: number;
}
/**
* GraphQL response data wrapper
*/
export interface Smart4CityGraphQLData {
parking_locations: Smart4CityParkingLocation[];
}
/**
* Complete GraphQL response structure
*/
export interface ISmart4CityGraphQLReponse {
data: Smart4CityGraphQLData;
}