UNPKG

@golemio/parkings

Version:
118 lines 5.54 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.smart4CityGraphQLResponse = void 0; /** * JSON Schema for validating the complete GraphQL response */ exports.smart4CityGraphQLResponse = { type: "object", required: ["data"], properties: { data: { type: "object", required: ["parking_locations"], properties: { parking_locations: { type: "array", items: { type: "object", required: ["_places", "capacity", "code", "definition", "last_changes", "name", "total_occ"], properties: { _places: { type: "array", items: { type: "object", required: ["placeID", "occ", "id", "coords", "actualRoleID"], properties: { placeID: { type: "number", }, occ: { type: "number", }, id: { type: "string", format: "uuid", }, coords: { type: "object", required: ["type", "coordinates"], properties: { type: { type: "string", enum: ["Point"], }, coordinates: { type: "array", items: { type: "number", }, minItems: 2, maxItems: 2, description: "Coordinates [longitude, latitude]", }, }, }, actualRoleID: { type: "object", required: ["$oid"], properties: { $oid: { type: "string", }, }, }, }, }, description: "Array of parking places within this location", }, capacity: { type: "number", minimum: 0, }, code: { type: "string", }, definition: { type: "object", required: ["type", "coordinates"], properties: { type: { type: "string", enum: ["Polygon"], }, coordinates: { type: "array", items: { type: "array", items: { type: "array", items: { type: "number", }, minItems: 2, maxItems: 2, }, }, }, }, }, last_changes: { type: "string", format: "date-time", }, name: { type: "string", }, total_occ: { type: "number", minimum: 0, }, }, }, }, }, }, }, }; //# sourceMappingURL=Smart4CityGraphQLSchemas.js.map