ocm-sdk 0.2.0-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +45 -0
- package/LICENSE +201 -0
- package/README.md +359 -0
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/client.d.mts +206 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +206 -0
- package/client.d.ts.map +1 -0
- package/client.js +483 -0
- package/client.js.map +1 -0
- package/client.mjs +479 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +46 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +46 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +74 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +70 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +46 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +46 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +2 -0
- package/error.d.ts.map +1 -0
- package/error.js +6 -0
- package/error.js.map +1 -0
- package/error.mjs +2 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +6 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +6 -0
- package/index.d.ts.map +1 -0
- package/index.js +30 -0
- package/index.js.map +1 -0
- package/index.mjs +7 -0
- package/index.mjs.map +1 -0
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +20 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +20 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +79 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +74 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +35 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +32 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/qs/formats.d.mts +7 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +7 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +13 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +9 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +277 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +274 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.mts +15 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +15 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +230 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/internal/request-options.d.mts +75 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +75 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +17 -0
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +17 -0
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +20 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +20 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +92 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +69 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +69 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +38 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +33 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +87 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +81 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +79 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +74 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +19 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +15 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +18 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +18 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +112 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +94 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +7 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +7 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +11 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +8 -0
- package/internal/utils.mjs.map +1 -0
- package/package.json +139 -0
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +2 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +6 -0
- package/resource.js.map +1 -0
- package/resource.mjs +2 -0
- package/resource.mjs.map +1 -0
- package/resources/comment.d.mts +62 -0
- package/resources/comment.d.mts.map +1 -0
- package/resources/comment.d.ts +62 -0
- package/resources/comment.d.ts.map +1 -0
- package/resources/comment.js +26 -0
- package/resources/comment.js.map +1 -0
- package/resources/comment.mjs +22 -0
- package/resources/comment.mjs.map +1 -0
- package/resources/index.d.mts +7 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +7 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +17 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +8 -0
- package/resources/index.mjs.map +1 -0
- package/resources/mediaitem.d.mts +44 -0
- package/resources/mediaitem.d.mts.map +1 -0
- package/resources/mediaitem.d.ts +44 -0
- package/resources/mediaitem.d.ts.map +1 -0
- package/resources/mediaitem.js +25 -0
- package/resources/mediaitem.js.map +1 -0
- package/resources/mediaitem.mjs +21 -0
- package/resources/mediaitem.mjs.map +1 -0
- package/resources/openapi.d.mts +15 -0
- package/resources/openapi.d.mts.map +1 -0
- package/resources/openapi.d.ts +15 -0
- package/resources/openapi.d.ts.map +1 -0
- package/resources/openapi.js +20 -0
- package/resources/openapi.js.map +1 -0
- package/resources/openapi.mjs +16 -0
- package/resources/openapi.mjs.map +1 -0
- package/resources/poi.d.mts +827 -0
- package/resources/poi.d.mts.map +1 -0
- package/resources/poi.d.ts +827 -0
- package/resources/poi.d.ts.map +1 -0
- package/resources/poi.js +17 -0
- package/resources/poi.js.map +1 -0
- package/resources/poi.mjs +13 -0
- package/resources/poi.mjs.map +1 -0
- package/resources/profile.d.mts +66 -0
- package/resources/profile.d.mts.map +1 -0
- package/resources/profile.d.ts +66 -0
- package/resources/profile.d.ts.map +1 -0
- package/resources/profile.js +24 -0
- package/resources/profile.js.map +1 -0
- package/resources/profile.mjs +20 -0
- package/resources/profile.mjs.map +1 -0
- package/resources/referencedata.d.mts +372 -0
- package/resources/referencedata.d.mts.map +1 -0
- package/resources/referencedata.d.ts +372 -0
- package/resources/referencedata.d.ts.map +1 -0
- package/resources/referencedata.js +20 -0
- package/resources/referencedata.js.map +1 -0
- package/resources/referencedata.mjs +16 -0
- package/resources/referencedata.mjs.map +1 -0
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +5 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/api-promise.ts +2 -0
- package/src/client.ts +789 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +89 -0
- package/src/core/error.ts +130 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/index.ts +22 -0
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +97 -0
- package/src/internal/parse.ts +50 -0
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +10 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +385 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/internal/request-options.ts +91 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +95 -0
- package/src/internal/uploads.ts +187 -0
- package/src/internal/utils/base64.ts +40 -0
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +128 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +17 -0
- package/src/internal/utils/values.ts +105 -0
- package/src/internal/utils.ts +8 -0
- package/src/lib/.keep +4 -0
- package/src/resource.ts +2 -0
- package/src/resources/comment.ts +79 -0
- package/src/resources/index.ts +13 -0
- package/src/resources/mediaitem.ts +57 -0
- package/src/resources/openapi.ts +25 -0
- package/src/resources/poi.ts +1029 -0
- package/src/resources/profile.ts +98 -0
- package/src/resources/referencedata.ts +474 -0
- package/src/resources.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +2 -0
- package/src/version.ts +1 -0
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +2 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +6 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +2 -0
- package/uploads.mjs.map +1 -0
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
|
@@ -0,0 +1,827 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import * as ReferencedataAPI from "./referencedata.js";
|
|
3
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
5
|
+
export declare class Poi extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Used to fetch a list of POIs (sites) within a geographic boundary or near a
|
|
8
|
+
* specific latitude/longitude. This is the primary method for most applications
|
|
9
|
+
* and services to consume data from Open Charge Map.
|
|
10
|
+
*/
|
|
11
|
+
list(query?: PoiListParams | null | undefined, options?: RequestOptions): APIPromise<PoiListResponse>;
|
|
12
|
+
}
|
|
13
|
+
export type PoiListResponse = Array<PoiListResponse.PoiListResponseItem>;
|
|
14
|
+
export declare namespace PoiListResponse {
|
|
15
|
+
/**
|
|
16
|
+
* A POI (Point of Interest), also referred to as a `Site` or `ChargePoint`, is the
|
|
17
|
+
* top-level set of information regarding a geographic site with one or more
|
|
18
|
+
* electric vehicle charging equipment present. The term `ChargePointID` is used to
|
|
19
|
+
* reference the unique ID for each POI, as called OCM ID. This reference appears
|
|
20
|
+
* in various UI elements in the format `OCM-12345` to distinguish the ID number as
|
|
21
|
+
* being a reference for a specific POI/site.
|
|
22
|
+
*
|
|
23
|
+
* Note: If the API is called in verbose mode properties expanded properties are
|
|
24
|
+
* included in the results (e.g. UsageType, StatusType, DataProvider, OperatorInfo,
|
|
25
|
+
* SubmissionStatus). With the exception of the AddressInfo property, other object
|
|
26
|
+
* properties will not be populated in a compact result set and instead only the
|
|
27
|
+
* associated reference IDs will be set (e.g. UsageTypeID, DataProviderID etc)
|
|
28
|
+
*/
|
|
29
|
+
interface PoiListResponseItem {
|
|
30
|
+
/**
|
|
31
|
+
* Geographic position for site and (nearest) address component information.
|
|
32
|
+
*/
|
|
33
|
+
AddressInfo?: PoiListResponseItem.AddressInfo;
|
|
34
|
+
/**
|
|
35
|
+
* List of equipment summary information for this site
|
|
36
|
+
*/
|
|
37
|
+
Connections?: Array<PoiListResponseItem.Connection>;
|
|
38
|
+
/**
|
|
39
|
+
* A Data Provider is the controller of the source data set used to construct the
|
|
40
|
+
* details for this POI. Data has been transformed and interpreted from it's
|
|
41
|
+
* original form. Each Data Provider provides data either by an explicit license or
|
|
42
|
+
* agreement.
|
|
43
|
+
*/
|
|
44
|
+
DataProvider?: PoiListResponseItem.DataProvider;
|
|
45
|
+
/**
|
|
46
|
+
* The reference ID for the Data Provider of this POI
|
|
47
|
+
*/
|
|
48
|
+
DataProviderID?: number;
|
|
49
|
+
/**
|
|
50
|
+
* If present, this is the Data Providers own key for this POI within their source
|
|
51
|
+
* data set
|
|
52
|
+
*/
|
|
53
|
+
DataProvidersReference?: string;
|
|
54
|
+
/**
|
|
55
|
+
* A metric applied during imports to indicate a quality level based on available
|
|
56
|
+
* information detail (5 == best). Largely unused currently.
|
|
57
|
+
*/
|
|
58
|
+
DataQualityLevel?: number;
|
|
59
|
+
/**
|
|
60
|
+
* The date and time (UTC, ISO 8601) this POI was added to the Open Charge Map
|
|
61
|
+
* database
|
|
62
|
+
*/
|
|
63
|
+
DateCreated?: string;
|
|
64
|
+
/**
|
|
65
|
+
* The date and time (UTC, ISO 8601) this POI was last confirmed according to the
|
|
66
|
+
* data provider or a user. See DateLastVerified for a dynamically computed date
|
|
67
|
+
* based on multiple signals.
|
|
68
|
+
*/
|
|
69
|
+
DateLastConfirmed?: string;
|
|
70
|
+
/**
|
|
71
|
+
* The date and time (UTC, ISO 8601) this POI or directly related child properties
|
|
72
|
+
* were updated.
|
|
73
|
+
*/
|
|
74
|
+
DateLastStatusUpdate?: string;
|
|
75
|
+
/**
|
|
76
|
+
* A dynamically computed value, the date and time (UTC, ISO 8601) this POI was
|
|
77
|
+
* last confirmed by a user edit or related user comment
|
|
78
|
+
*/
|
|
79
|
+
DateLastVerified?: string;
|
|
80
|
+
/**
|
|
81
|
+
* The date and time (UTC, ISO 8601) this POI is or was planned for commissioning.
|
|
82
|
+
* In general planned POIs should not be presented to end users until confirmed
|
|
83
|
+
* operational.
|
|
84
|
+
*/
|
|
85
|
+
DatePlanned?: string;
|
|
86
|
+
/**
|
|
87
|
+
* General additional factual information for the POI. Users are discouraged from
|
|
88
|
+
* using this field for opinions on site quality etc.
|
|
89
|
+
*/
|
|
90
|
+
GeneralComments?: string;
|
|
91
|
+
/**
|
|
92
|
+
* The OCM reference ID for this POI (Point of Interest).
|
|
93
|
+
*/
|
|
94
|
+
ID?: number;
|
|
95
|
+
/**
|
|
96
|
+
* A dynamically computed value indicating of any recently confirmation activity
|
|
97
|
+
* has taken place for this site (positive check-ins etc)
|
|
98
|
+
*/
|
|
99
|
+
IsRecentlyVerified?: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* A list of user submitted photos for this site
|
|
102
|
+
*/
|
|
103
|
+
MediaItems?: Array<PoiListResponseItem.MediaItem>;
|
|
104
|
+
/**
|
|
105
|
+
* Optional array of metadata values. Generally used to indicate data attribution
|
|
106
|
+
* but is also intended for future use to indicate surrounding amenties, links or
|
|
107
|
+
* foreign key values into other data sets.
|
|
108
|
+
*/
|
|
109
|
+
MetadataValues?: Array<unknown>;
|
|
110
|
+
/**
|
|
111
|
+
* The number of bays or discreet stations available overall at this site. This
|
|
112
|
+
* indicates the limiting for number of simultaneous site users.
|
|
113
|
+
*/
|
|
114
|
+
NumberOfPoints?: number;
|
|
115
|
+
/**
|
|
116
|
+
* The reference ID of the equipment network operator or owner
|
|
117
|
+
*/
|
|
118
|
+
OperatorID?: number;
|
|
119
|
+
/**
|
|
120
|
+
* An Operator is the public organisation which controls a network of charging
|
|
121
|
+
* points.
|
|
122
|
+
*/
|
|
123
|
+
OperatorInfo?: PoiListResponseItem.OperatorInfo;
|
|
124
|
+
/**
|
|
125
|
+
* The network operators own reference for this site (may be a site reference or a
|
|
126
|
+
* single equipment reference)
|
|
127
|
+
*/
|
|
128
|
+
OperatorsReference?: string;
|
|
129
|
+
/**
|
|
130
|
+
* If present, this data in this POI supercedes information in another POI.
|
|
131
|
+
* Generally not relevant to consumers.
|
|
132
|
+
*/
|
|
133
|
+
ParentChargePointID?: number;
|
|
134
|
+
/**
|
|
135
|
+
* The Status Type of a site or equipment item indicates whether it is generally
|
|
136
|
+
* operational.
|
|
137
|
+
*/
|
|
138
|
+
StatusType?: PoiListResponseItem.StatusType;
|
|
139
|
+
/**
|
|
140
|
+
* The overall operational status type reference ID for this POI (i.e. Operational
|
|
141
|
+
* etc). 0 == Unknown
|
|
142
|
+
*/
|
|
143
|
+
StatusTypeID?: number;
|
|
144
|
+
/**
|
|
145
|
+
* Submission Status object, detailing the POI listing status
|
|
146
|
+
*/
|
|
147
|
+
SubmissionStatus?: PoiListResponseItem.SubmissionStatus;
|
|
148
|
+
/**
|
|
149
|
+
* The reference ID for the submission status type which applied to this POI.
|
|
150
|
+
*/
|
|
151
|
+
SubmissionStatusTypeID?: number;
|
|
152
|
+
/**
|
|
153
|
+
* Free text description of likely usage costs associated with this site. Generally
|
|
154
|
+
* relates to parking charges whether network operates this site as Free
|
|
155
|
+
*/
|
|
156
|
+
UsageCost?: string;
|
|
157
|
+
/**
|
|
158
|
+
* The Usage Type of a site indicates the general restrictions on usage.
|
|
159
|
+
*/
|
|
160
|
+
UsageType?: PoiListResponseItem.UsageType;
|
|
161
|
+
/**
|
|
162
|
+
* The reference ID for the site Usage Type, 0 == Unknown
|
|
163
|
+
*/
|
|
164
|
+
UsageTypeID?: number;
|
|
165
|
+
/**
|
|
166
|
+
* A list of user comments or check-ins for this site
|
|
167
|
+
*/
|
|
168
|
+
UserComments?: Array<PoiListResponseItem.UserComment>;
|
|
169
|
+
/**
|
|
170
|
+
* A universally unique identifier used as surrogate key. ID and UUID must be
|
|
171
|
+
* preserved when submitting POI update information.
|
|
172
|
+
*/
|
|
173
|
+
UUID?: string;
|
|
174
|
+
}
|
|
175
|
+
namespace PoiListResponseItem {
|
|
176
|
+
/**
|
|
177
|
+
* Geographic position for site and (nearest) address component information.
|
|
178
|
+
*/
|
|
179
|
+
interface AddressInfo {
|
|
180
|
+
/**
|
|
181
|
+
* The reference ID for the Country
|
|
182
|
+
*/
|
|
183
|
+
CountryID: number;
|
|
184
|
+
/**
|
|
185
|
+
* ID
|
|
186
|
+
*/
|
|
187
|
+
ID: number;
|
|
188
|
+
/**
|
|
189
|
+
* Site latitude coordinate in decimal degrees
|
|
190
|
+
*/
|
|
191
|
+
Latitude: number;
|
|
192
|
+
/**
|
|
193
|
+
* Site longitude coordinate in decimal degrees
|
|
194
|
+
*/
|
|
195
|
+
Longitude: number;
|
|
196
|
+
/**
|
|
197
|
+
* Guidance for users to use or find the equipment
|
|
198
|
+
*/
|
|
199
|
+
AccessComments?: string;
|
|
200
|
+
/**
|
|
201
|
+
* First line of nearby street address
|
|
202
|
+
*/
|
|
203
|
+
AddressLine1?: string;
|
|
204
|
+
/**
|
|
205
|
+
* Second line of nearby street address
|
|
206
|
+
*/
|
|
207
|
+
AddressLine2?: string;
|
|
208
|
+
/**
|
|
209
|
+
* Primary contact email
|
|
210
|
+
*/
|
|
211
|
+
ContactEmail?: string;
|
|
212
|
+
/**
|
|
213
|
+
* Primary contact number
|
|
214
|
+
*/
|
|
215
|
+
ContactTelephone1?: string;
|
|
216
|
+
/**
|
|
217
|
+
* Secondary contact number
|
|
218
|
+
*/
|
|
219
|
+
ContactTelephone2?: string;
|
|
220
|
+
/**
|
|
221
|
+
* Country details
|
|
222
|
+
*/
|
|
223
|
+
Country?: ReferencedataAPI.Country;
|
|
224
|
+
/**
|
|
225
|
+
* Distance from search location, if search is around a point
|
|
226
|
+
*/
|
|
227
|
+
Distance?: number;
|
|
228
|
+
/**
|
|
229
|
+
* Unit used for distance, 1= Miles, 2 = KM
|
|
230
|
+
*/
|
|
231
|
+
DistanceUnit?: number;
|
|
232
|
+
/**
|
|
233
|
+
* Postal code or Zipcode
|
|
234
|
+
*/
|
|
235
|
+
Postcode?: string;
|
|
236
|
+
/**
|
|
237
|
+
* Optional website for more information
|
|
238
|
+
*/
|
|
239
|
+
RelatedURL?: string;
|
|
240
|
+
/**
|
|
241
|
+
* State or Province
|
|
242
|
+
*/
|
|
243
|
+
StateOrProvince?: string;
|
|
244
|
+
/**
|
|
245
|
+
* General title for this location to aid user
|
|
246
|
+
*/
|
|
247
|
+
Title?: string;
|
|
248
|
+
/**
|
|
249
|
+
* Town or City
|
|
250
|
+
*/
|
|
251
|
+
Town?: string;
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* Details on the equipment type and power capability.
|
|
255
|
+
*
|
|
256
|
+
* If calling the API in verbose mode related models are also included in the
|
|
257
|
+
* result (e.g. ConnectionType, Level, StatusType, CurrentType)
|
|
258
|
+
*/
|
|
259
|
+
interface Connection {
|
|
260
|
+
/**
|
|
261
|
+
* EVSE supply max current in Amps
|
|
262
|
+
*/
|
|
263
|
+
Amps?: number;
|
|
264
|
+
Comments?: string;
|
|
265
|
+
/**
|
|
266
|
+
* The type of end-user connection an EVSE supports.
|
|
267
|
+
*/
|
|
268
|
+
ConnectionType?: Connection.ConnectionType;
|
|
269
|
+
ConnectionTypeID?: number;
|
|
270
|
+
/**
|
|
271
|
+
* Indicates the EVSE power supply type e.g. DC (Direct Current), AC (Single
|
|
272
|
+
* Phase), AC (3 Phase).
|
|
273
|
+
*/
|
|
274
|
+
CurrentType?: Connection.CurrentType;
|
|
275
|
+
/**
|
|
276
|
+
* The supply type reference ID (e.g. DC etc)
|
|
277
|
+
*/
|
|
278
|
+
CurrentTypeID?: number;
|
|
279
|
+
ID?: number;
|
|
280
|
+
/**
|
|
281
|
+
* A general category for equipment power capability. Deprecated for general use.
|
|
282
|
+
* Currently computed automatically based on equipment power.
|
|
283
|
+
*/
|
|
284
|
+
Level?: Connection.Level;
|
|
285
|
+
/**
|
|
286
|
+
* @deprecated A general category for power capability. Depreceated in favour of
|
|
287
|
+
* documenting specific equipment power in kW.
|
|
288
|
+
*/
|
|
289
|
+
LevelID?: number;
|
|
290
|
+
/**
|
|
291
|
+
* Peak available power in kW
|
|
292
|
+
*/
|
|
293
|
+
PowerKW?: number;
|
|
294
|
+
/**
|
|
295
|
+
* Optional summary number of equipment items available with this specification
|
|
296
|
+
*/
|
|
297
|
+
Quantity?: number;
|
|
298
|
+
/**
|
|
299
|
+
* Optional operators reference for this connection/port
|
|
300
|
+
*/
|
|
301
|
+
Reference?: string;
|
|
302
|
+
/**
|
|
303
|
+
* The Status Type of a site or equipment item indicates whether it is generally
|
|
304
|
+
* operational.
|
|
305
|
+
*/
|
|
306
|
+
StatusType?: Connection.StatusType;
|
|
307
|
+
/**
|
|
308
|
+
* Status Type reference ID. 0 = Unknown
|
|
309
|
+
*/
|
|
310
|
+
StatusTypeID?: number;
|
|
311
|
+
/**
|
|
312
|
+
* EVSE supply voltage
|
|
313
|
+
*/
|
|
314
|
+
Voltage?: number;
|
|
315
|
+
}
|
|
316
|
+
namespace Connection {
|
|
317
|
+
/**
|
|
318
|
+
* The type of end-user connection an EVSE supports.
|
|
319
|
+
*/
|
|
320
|
+
interface ConnectionType {
|
|
321
|
+
/**
|
|
322
|
+
* Formal (standard) name for this connection type
|
|
323
|
+
*/
|
|
324
|
+
FormalName?: string;
|
|
325
|
+
ID?: number;
|
|
326
|
+
/**
|
|
327
|
+
* If true, this is an discontinued but used connection type
|
|
328
|
+
*/
|
|
329
|
+
IsDiscontinued?: boolean;
|
|
330
|
+
/**
|
|
331
|
+
* If true, this is an obsolete connection type and is unlikely top be present in
|
|
332
|
+
* modern infrastructure
|
|
333
|
+
*/
|
|
334
|
+
IsObsolete?: boolean;
|
|
335
|
+
Title?: string;
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* Indicates the EVSE power supply type e.g. DC (Direct Current), AC (Single
|
|
339
|
+
* Phase), AC (3 Phase).
|
|
340
|
+
*/
|
|
341
|
+
interface CurrentType {
|
|
342
|
+
ID: number;
|
|
343
|
+
Title?: string;
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* A general category for equipment power capability. Deprecated for general use.
|
|
347
|
+
* Currently computed automatically based on equipment power.
|
|
348
|
+
*/
|
|
349
|
+
interface Level {
|
|
350
|
+
Comments: string;
|
|
351
|
+
ID: number;
|
|
352
|
+
/**
|
|
353
|
+
* If true, this level is considered 'fast' charging, relative to other levels.
|
|
354
|
+
*/
|
|
355
|
+
IsFastChargeCapable: boolean;
|
|
356
|
+
Title?: string;
|
|
357
|
+
}
|
|
358
|
+
/**
|
|
359
|
+
* The Status Type of a site or equipment item indicates whether it is generally
|
|
360
|
+
* operational.
|
|
361
|
+
*/
|
|
362
|
+
interface StatusType {
|
|
363
|
+
ID: number;
|
|
364
|
+
IsOperational: boolean;
|
|
365
|
+
IsUserSelectable: boolean;
|
|
366
|
+
Title?: string;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
370
|
+
* A Data Provider is the controller of the source data set used to construct the
|
|
371
|
+
* details for this POI. Data has been transformed and interpreted from it's
|
|
372
|
+
* original form. Each Data Provider provides data either by an explicit license or
|
|
373
|
+
* agreement.
|
|
374
|
+
*/
|
|
375
|
+
interface DataProvider {
|
|
376
|
+
/**
|
|
377
|
+
* The reference ID for this Data Provider
|
|
378
|
+
*/
|
|
379
|
+
ID: number;
|
|
380
|
+
/**
|
|
381
|
+
* Currently not implemented. Indicates a potential editing restriction.
|
|
382
|
+
*/
|
|
383
|
+
IsRestrictedEdit: boolean;
|
|
384
|
+
/**
|
|
385
|
+
* General public comments with information about this Data Provider.
|
|
386
|
+
*/
|
|
387
|
+
Comments?: string;
|
|
388
|
+
/**
|
|
389
|
+
* Status object describing whether this data provider is currently enabled and the
|
|
390
|
+
* type of source (manual entry, imported etc)
|
|
391
|
+
*/
|
|
392
|
+
DataProviderStatusType?: DataProvider.DataProviderStatusType;
|
|
393
|
+
/**
|
|
394
|
+
* Date and time (UTC) the last import was performed for this data provider (if an
|
|
395
|
+
* import).
|
|
396
|
+
*/
|
|
397
|
+
DateLastImported?: string;
|
|
398
|
+
/**
|
|
399
|
+
* If false, data may not be imported for this provider.
|
|
400
|
+
*/
|
|
401
|
+
IsApprovedImport?: boolean;
|
|
402
|
+
/**
|
|
403
|
+
* If true, data provider uses an Open Data license
|
|
404
|
+
*/
|
|
405
|
+
IsOpenDataLicensed?: boolean;
|
|
406
|
+
/**
|
|
407
|
+
* Summary of the licensing which applies for this Data Provider. Each Data
|
|
408
|
+
* Provider has one specific license or agreement. Usage of the data requires
|
|
409
|
+
* acceptance of the given license.
|
|
410
|
+
*/
|
|
411
|
+
License?: string;
|
|
412
|
+
/**
|
|
413
|
+
* The Title for this Data Provider
|
|
414
|
+
*/
|
|
415
|
+
Title?: string;
|
|
416
|
+
/**
|
|
417
|
+
* Website URL for this data provider
|
|
418
|
+
*/
|
|
419
|
+
WebsiteURL?: string;
|
|
420
|
+
}
|
|
421
|
+
namespace DataProvider {
|
|
422
|
+
/**
|
|
423
|
+
* Status object describing whether this data provider is currently enabled and the
|
|
424
|
+
* type of source (manual entry, imported etc)
|
|
425
|
+
*/
|
|
426
|
+
interface DataProviderStatusType {
|
|
427
|
+
/**
|
|
428
|
+
* The reference ID for this provider status type
|
|
429
|
+
*/
|
|
430
|
+
ID: number;
|
|
431
|
+
/**
|
|
432
|
+
* If false, results from this data provider are not currently enabled
|
|
433
|
+
*/
|
|
434
|
+
IsProviderEnabled: boolean;
|
|
435
|
+
/**
|
|
436
|
+
* The Title of this status type
|
|
437
|
+
*/
|
|
438
|
+
description?: string;
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
/**
|
|
442
|
+
* A user submitted media item related to a specific charge point or site.
|
|
443
|
+
* Currently always an image.
|
|
444
|
+
*/
|
|
445
|
+
interface MediaItem {
|
|
446
|
+
ChargePointID?: string;
|
|
447
|
+
Comment?: string;
|
|
448
|
+
DateCreated?: string;
|
|
449
|
+
ID?: string;
|
|
450
|
+
IsEnabled?: boolean;
|
|
451
|
+
IsExternalResource?: boolean;
|
|
452
|
+
IsFeaturedItem?: boolean;
|
|
453
|
+
IsVideo?: boolean;
|
|
454
|
+
ItemThumbnailURL?: string;
|
|
455
|
+
ItemURL?: string;
|
|
456
|
+
/**
|
|
457
|
+
* Short public summary profile for a specific Open Charge Map user
|
|
458
|
+
*/
|
|
459
|
+
User?: MediaItem.User;
|
|
460
|
+
}
|
|
461
|
+
namespace MediaItem {
|
|
462
|
+
/**
|
|
463
|
+
* Short public summary profile for a specific Open Charge Map user
|
|
464
|
+
*/
|
|
465
|
+
interface User {
|
|
466
|
+
ID?: number;
|
|
467
|
+
ProfileImageURL?: string;
|
|
468
|
+
ReputationPoints?: number;
|
|
469
|
+
Username?: string;
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
/**
|
|
473
|
+
* An Operator is the public organisation which controls a network of charging
|
|
474
|
+
* points.
|
|
475
|
+
*/
|
|
476
|
+
interface OperatorInfo {
|
|
477
|
+
/**
|
|
478
|
+
* Id
|
|
479
|
+
*/
|
|
480
|
+
ID: number;
|
|
481
|
+
/**
|
|
482
|
+
* Geographic position for site and (nearest) address component information.
|
|
483
|
+
*/
|
|
484
|
+
AddressInfo?: OperatorInfo.AddressInfo;
|
|
485
|
+
BookingURL?: string;
|
|
486
|
+
Comments?: string;
|
|
487
|
+
ContactEmail?: string;
|
|
488
|
+
/**
|
|
489
|
+
* Used to send automated notification to network operator if a user submits a
|
|
490
|
+
* fault report comment/check-in
|
|
491
|
+
*/
|
|
492
|
+
FaultReportEmail?: string;
|
|
493
|
+
/**
|
|
494
|
+
* @deprecated If true, this operator represents a private individual
|
|
495
|
+
*/
|
|
496
|
+
IsPrivateIndividual?: boolean;
|
|
497
|
+
/**
|
|
498
|
+
* If true, this network restricts community edits for OCM data
|
|
499
|
+
*/
|
|
500
|
+
IsRestrictedEdit?: boolean;
|
|
501
|
+
/**
|
|
502
|
+
* Primary contact number for network users
|
|
503
|
+
*/
|
|
504
|
+
PhonePrimaryContact?: string;
|
|
505
|
+
/**
|
|
506
|
+
* Secondary contact number
|
|
507
|
+
*/
|
|
508
|
+
PhoneSecondaryContact?: string;
|
|
509
|
+
/**
|
|
510
|
+
* Title
|
|
511
|
+
*/
|
|
512
|
+
Title?: string;
|
|
513
|
+
/**
|
|
514
|
+
* Website for more information about this network
|
|
515
|
+
*/
|
|
516
|
+
WebsiteURL?: string;
|
|
517
|
+
}
|
|
518
|
+
namespace OperatorInfo {
|
|
519
|
+
/**
|
|
520
|
+
* Geographic position for site and (nearest) address component information.
|
|
521
|
+
*/
|
|
522
|
+
interface AddressInfo {
|
|
523
|
+
/**
|
|
524
|
+
* The reference ID for the Country
|
|
525
|
+
*/
|
|
526
|
+
CountryID: number;
|
|
527
|
+
/**
|
|
528
|
+
* ID
|
|
529
|
+
*/
|
|
530
|
+
ID: number;
|
|
531
|
+
/**
|
|
532
|
+
* Site latitude coordinate in decimal degrees
|
|
533
|
+
*/
|
|
534
|
+
Latitude: number;
|
|
535
|
+
/**
|
|
536
|
+
* Site longitude coordinate in decimal degrees
|
|
537
|
+
*/
|
|
538
|
+
Longitude: number;
|
|
539
|
+
/**
|
|
540
|
+
* Guidance for users to use or find the equipment
|
|
541
|
+
*/
|
|
542
|
+
AccessComments?: string;
|
|
543
|
+
/**
|
|
544
|
+
* First line of nearby street address
|
|
545
|
+
*/
|
|
546
|
+
AddressLine1?: string;
|
|
547
|
+
/**
|
|
548
|
+
* Second line of nearby street address
|
|
549
|
+
*/
|
|
550
|
+
AddressLine2?: string;
|
|
551
|
+
/**
|
|
552
|
+
* Primary contact email
|
|
553
|
+
*/
|
|
554
|
+
ContactEmail?: string;
|
|
555
|
+
/**
|
|
556
|
+
* Primary contact number
|
|
557
|
+
*/
|
|
558
|
+
ContactTelephone1?: string;
|
|
559
|
+
/**
|
|
560
|
+
* Secondary contact number
|
|
561
|
+
*/
|
|
562
|
+
ContactTelephone2?: string;
|
|
563
|
+
/**
|
|
564
|
+
* Country details
|
|
565
|
+
*/
|
|
566
|
+
Country?: ReferencedataAPI.Country;
|
|
567
|
+
/**
|
|
568
|
+
* Distance from search location, if search is around a point
|
|
569
|
+
*/
|
|
570
|
+
Distance?: number;
|
|
571
|
+
/**
|
|
572
|
+
* Unit used for distance, 1= Miles, 2 = KM
|
|
573
|
+
*/
|
|
574
|
+
DistanceUnit?: number;
|
|
575
|
+
/**
|
|
576
|
+
* Postal code or Zipcode
|
|
577
|
+
*/
|
|
578
|
+
Postcode?: string;
|
|
579
|
+
/**
|
|
580
|
+
* Optional website for more information
|
|
581
|
+
*/
|
|
582
|
+
RelatedURL?: string;
|
|
583
|
+
/**
|
|
584
|
+
* State or Province
|
|
585
|
+
*/
|
|
586
|
+
StateOrProvince?: string;
|
|
587
|
+
/**
|
|
588
|
+
* General title for this location to aid user
|
|
589
|
+
*/
|
|
590
|
+
Title?: string;
|
|
591
|
+
/**
|
|
592
|
+
* Town or City
|
|
593
|
+
*/
|
|
594
|
+
Town?: string;
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
/**
|
|
598
|
+
* The Status Type of a site or equipment item indicates whether it is generally
|
|
599
|
+
* operational.
|
|
600
|
+
*/
|
|
601
|
+
interface StatusType {
|
|
602
|
+
ID: number;
|
|
603
|
+
IsOperational: boolean;
|
|
604
|
+
IsUserSelectable: boolean;
|
|
605
|
+
Title?: string;
|
|
606
|
+
}
|
|
607
|
+
/**
|
|
608
|
+
* Submission Status object, detailing the POI listing status
|
|
609
|
+
*/
|
|
610
|
+
interface SubmissionStatus {
|
|
611
|
+
/**
|
|
612
|
+
* Submission Status Type reference ID
|
|
613
|
+
*/
|
|
614
|
+
ID: number;
|
|
615
|
+
/**
|
|
616
|
+
* If true, POI listing is live (not draft or de-listed)
|
|
617
|
+
*/
|
|
618
|
+
IsLive: boolean;
|
|
619
|
+
Title?: string;
|
|
620
|
+
}
|
|
621
|
+
/**
|
|
622
|
+
* The Usage Type of a site indicates the general restrictions on usage.
|
|
623
|
+
*/
|
|
624
|
+
interface UsageType {
|
|
625
|
+
ID: number;
|
|
626
|
+
/**
|
|
627
|
+
* @deprecated If true this usage required a physical access key
|
|
628
|
+
*/
|
|
629
|
+
IsAccessKeyRequired: boolean;
|
|
630
|
+
/**
|
|
631
|
+
* If true, this usage type requires registration or membership with a service.
|
|
632
|
+
*/
|
|
633
|
+
IsMembershipRequired: boolean;
|
|
634
|
+
/**
|
|
635
|
+
* If true, usage requires paying at location
|
|
636
|
+
*/
|
|
637
|
+
IsPayAtLocation: boolean;
|
|
638
|
+
Title?: string;
|
|
639
|
+
}
|
|
640
|
+
/**
|
|
641
|
+
* A user comment or check-in for a specific charging point (POI/Site)
|
|
642
|
+
*/
|
|
643
|
+
interface UserComment {
|
|
644
|
+
ChargePointID?: number;
|
|
645
|
+
/**
|
|
646
|
+
* Classification for the users comment or experience using a specific charging
|
|
647
|
+
* location.
|
|
648
|
+
*/
|
|
649
|
+
CheckinStatusType?: UserComment.CheckinStatusType;
|
|
650
|
+
CheckinStatusTypeID?: number;
|
|
651
|
+
Comment?: string;
|
|
652
|
+
/**
|
|
653
|
+
* Category for a user comment, e.g. General Comment, Fault Report (Notice To Users
|
|
654
|
+
* And Operator)
|
|
655
|
+
*/
|
|
656
|
+
CommentType?: UserComment.CommentType;
|
|
657
|
+
CommentTypeID?: number;
|
|
658
|
+
DateCreated?: string;
|
|
659
|
+
ID?: string;
|
|
660
|
+
RelatedURL?: string;
|
|
661
|
+
/**
|
|
662
|
+
* Short public summary profile for a specific Open Charge Map user
|
|
663
|
+
*/
|
|
664
|
+
User?: UserComment.User;
|
|
665
|
+
UserName?: string;
|
|
666
|
+
}
|
|
667
|
+
namespace UserComment {
|
|
668
|
+
/**
|
|
669
|
+
* Classification for the users comment or experience using a specific charging
|
|
670
|
+
* location.
|
|
671
|
+
*/
|
|
672
|
+
interface CheckinStatusType {
|
|
673
|
+
ID: number;
|
|
674
|
+
/**
|
|
675
|
+
* If true, checkin or comment was provided by an automated system.
|
|
676
|
+
*/
|
|
677
|
+
IsAutomatedCheckin: boolean;
|
|
678
|
+
/**
|
|
679
|
+
* If true, this type of checkin/comment is considered positive.
|
|
680
|
+
*/
|
|
681
|
+
IsPositive?: boolean;
|
|
682
|
+
Title?: string;
|
|
683
|
+
}
|
|
684
|
+
/**
|
|
685
|
+
* Category for a user comment, e.g. General Comment, Fault Report (Notice To Users
|
|
686
|
+
* And Operator)
|
|
687
|
+
*/
|
|
688
|
+
interface CommentType {
|
|
689
|
+
ID?: number;
|
|
690
|
+
Title?: string;
|
|
691
|
+
}
|
|
692
|
+
/**
|
|
693
|
+
* Short public summary profile for a specific Open Charge Map user
|
|
694
|
+
*/
|
|
695
|
+
interface User {
|
|
696
|
+
ID?: number;
|
|
697
|
+
ProfileImageURL?: string;
|
|
698
|
+
ReputationPoints?: number;
|
|
699
|
+
Username?: string;
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
export interface PoiListParams {
|
|
705
|
+
/**
|
|
706
|
+
* Filter results to a given bounding box. specify top left and bottom right box
|
|
707
|
+
* corners as: (lat,lng),(lat2,lng2)
|
|
708
|
+
*/
|
|
709
|
+
boundingbox?: Array<unknown>;
|
|
710
|
+
/**
|
|
711
|
+
* Set to true to get a property names in camelCase format.
|
|
712
|
+
*/
|
|
713
|
+
camelcase?: boolean;
|
|
714
|
+
/**
|
|
715
|
+
* Exact match on a given OCM POI ID (comma separated list)
|
|
716
|
+
*/
|
|
717
|
+
chargepointid?: string;
|
|
718
|
+
/**
|
|
719
|
+
* String to identify your client application. Optional but recommended to
|
|
720
|
+
* distinguish your client from other bots/crawlers
|
|
721
|
+
*/
|
|
722
|
+
client?: string;
|
|
723
|
+
/**
|
|
724
|
+
* Set to true to remove reference data objects from output (just returns IDs for
|
|
725
|
+
* common reference data such as DataProvider etc).
|
|
726
|
+
*/
|
|
727
|
+
compact?: boolean;
|
|
728
|
+
/**
|
|
729
|
+
* Exact match on a given connection type id (comma separated list)
|
|
730
|
+
*/
|
|
731
|
+
connectiontypeid?: Array<unknown>;
|
|
732
|
+
/**
|
|
733
|
+
* 2-character ISO Country code to filter to one specific country
|
|
734
|
+
*/
|
|
735
|
+
countrycode?: string;
|
|
736
|
+
/**
|
|
737
|
+
* Exact match on a given numeric country id (comma separated list)
|
|
738
|
+
*/
|
|
739
|
+
countryid?: Array<string>;
|
|
740
|
+
/**
|
|
741
|
+
* Exact match on a given data provider id id (comma separated list).
|
|
742
|
+
*/
|
|
743
|
+
dataproviderid?: Array<unknown>;
|
|
744
|
+
/**
|
|
745
|
+
* Optionally filter results by a max distance from the given latitude/longitude
|
|
746
|
+
*/
|
|
747
|
+
distance?: number;
|
|
748
|
+
/**
|
|
749
|
+
* `miles` or `km` distance unit
|
|
750
|
+
*/
|
|
751
|
+
distanceunit?: string;
|
|
752
|
+
/**
|
|
753
|
+
* Filter to items with ID greater than given value
|
|
754
|
+
*/
|
|
755
|
+
greaterthanid?: string;
|
|
756
|
+
/**
|
|
757
|
+
* If true, user comments and media items will be include in result set
|
|
758
|
+
*/
|
|
759
|
+
includecomments?: boolean;
|
|
760
|
+
/**
|
|
761
|
+
* Latitude for distance calculation and filtering
|
|
762
|
+
*/
|
|
763
|
+
latitude?: number;
|
|
764
|
+
/**
|
|
765
|
+
* Exact match on a given charging level (1-3) id (comma separated list)
|
|
766
|
+
*/
|
|
767
|
+
levelid?: Array<unknown>;
|
|
768
|
+
/**
|
|
769
|
+
* Longitude for distance calculation and filtering
|
|
770
|
+
*/
|
|
771
|
+
longitude?: number;
|
|
772
|
+
/**
|
|
773
|
+
* Limit on max number of results returned
|
|
774
|
+
*/
|
|
775
|
+
maxresults?: number;
|
|
776
|
+
/**
|
|
777
|
+
* Filter to results modified after the given date
|
|
778
|
+
*/
|
|
779
|
+
modifiedsince?: string;
|
|
780
|
+
/**
|
|
781
|
+
* Use opendata=true for only OCM provided ("Open") data.
|
|
782
|
+
*/
|
|
783
|
+
opendata?: boolean;
|
|
784
|
+
/**
|
|
785
|
+
* Exact match on a given EVSE operator id (comma separated list)
|
|
786
|
+
*/
|
|
787
|
+
operatorid?: Array<unknown>;
|
|
788
|
+
/**
|
|
789
|
+
* Optional output format `json`,`geojson`,`xml`,`csv`, JSON is the default and
|
|
790
|
+
* recommended as the highest fidelity.
|
|
791
|
+
*/
|
|
792
|
+
output?: string;
|
|
793
|
+
/**
|
|
794
|
+
* Filter results within a given Polygon. Specify an encoded polyline for the
|
|
795
|
+
* polygon shape. Polygon will be automatically closed from the last point to the
|
|
796
|
+
* first point.
|
|
797
|
+
*/
|
|
798
|
+
polygon?: string;
|
|
799
|
+
/**
|
|
800
|
+
* Filter results along an encoded polyline, use with distance param to increase
|
|
801
|
+
* search distance along line. Polyline is expanded into a polygon to cover the
|
|
802
|
+
* search distance.
|
|
803
|
+
*/
|
|
804
|
+
polyline?: string;
|
|
805
|
+
/**
|
|
806
|
+
* Default sort order is based on spatial index but you can optionally sort by
|
|
807
|
+
* `modified_asc` for results in order of modification (oldest to newest), or
|
|
808
|
+
* ` id_asc` for results in order of ID
|
|
809
|
+
*/
|
|
810
|
+
sortby?: string;
|
|
811
|
+
/**
|
|
812
|
+
* Exact match on a given status type id (comma separated list)
|
|
813
|
+
*/
|
|
814
|
+
statustypeid?: Array<unknown>;
|
|
815
|
+
/**
|
|
816
|
+
* Exact match on a given usage type id (comma separated list)
|
|
817
|
+
*/
|
|
818
|
+
usagetypeid?: Array<unknown>;
|
|
819
|
+
/**
|
|
820
|
+
* Set to false to get a smaller result set with null items removed.
|
|
821
|
+
*/
|
|
822
|
+
verbose?: boolean;
|
|
823
|
+
}
|
|
824
|
+
export declare namespace Poi {
|
|
825
|
+
export { type PoiListResponse as PoiListResponse, type PoiListParams as PoiListParams };
|
|
826
|
+
}
|
|
827
|
+
//# sourceMappingURL=poi.d.ts.map
|