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.
Files changed (408) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/LICENSE +201 -0
  3. package/README.md +359 -0
  4. package/api-promise.d.mts +2 -0
  5. package/api-promise.d.mts.map +1 -0
  6. package/api-promise.d.ts +2 -0
  7. package/api-promise.d.ts.map +1 -0
  8. package/api-promise.js +6 -0
  9. package/api-promise.js.map +1 -0
  10. package/api-promise.mjs +2 -0
  11. package/api-promise.mjs.map +1 -0
  12. package/client.d.mts +206 -0
  13. package/client.d.mts.map +1 -0
  14. package/client.d.ts +206 -0
  15. package/client.d.ts.map +1 -0
  16. package/client.js +483 -0
  17. package/client.js.map +1 -0
  18. package/client.mjs +479 -0
  19. package/client.mjs.map +1 -0
  20. package/core/api-promise.d.mts +46 -0
  21. package/core/api-promise.d.mts.map +1 -0
  22. package/core/api-promise.d.ts +46 -0
  23. package/core/api-promise.d.ts.map +1 -0
  24. package/core/api-promise.js +74 -0
  25. package/core/api-promise.js.map +1 -0
  26. package/core/api-promise.mjs +70 -0
  27. package/core/api-promise.mjs.map +1 -0
  28. package/core/error.d.mts +46 -0
  29. package/core/error.d.mts.map +1 -0
  30. package/core/error.d.ts +46 -0
  31. package/core/error.d.ts.map +1 -0
  32. package/core/error.js +113 -0
  33. package/core/error.js.map +1 -0
  34. package/core/error.mjs +97 -0
  35. package/core/error.mjs.map +1 -0
  36. package/core/resource.d.mts +6 -0
  37. package/core/resource.d.mts.map +1 -0
  38. package/core/resource.d.ts +6 -0
  39. package/core/resource.d.ts.map +1 -0
  40. package/core/resource.js +11 -0
  41. package/core/resource.js.map +1 -0
  42. package/core/resource.mjs +7 -0
  43. package/core/resource.mjs.map +1 -0
  44. package/core/uploads.d.mts +3 -0
  45. package/core/uploads.d.mts.map +1 -0
  46. package/core/uploads.d.ts +3 -0
  47. package/core/uploads.d.ts.map +1 -0
  48. package/core/uploads.js +6 -0
  49. package/core/uploads.js.map +1 -0
  50. package/core/uploads.mjs +2 -0
  51. package/core/uploads.mjs.map +1 -0
  52. package/error.d.mts +2 -0
  53. package/error.d.mts.map +1 -0
  54. package/error.d.ts +2 -0
  55. package/error.d.ts.map +1 -0
  56. package/error.js +6 -0
  57. package/error.js.map +1 -0
  58. package/error.mjs +2 -0
  59. package/error.mjs.map +1 -0
  60. package/index.d.mts +6 -0
  61. package/index.d.mts.map +1 -0
  62. package/index.d.ts +6 -0
  63. package/index.d.ts.map +1 -0
  64. package/index.js +30 -0
  65. package/index.js.map +1 -0
  66. package/index.mjs +7 -0
  67. package/index.mjs.map +1 -0
  68. package/internal/builtin-types.d.mts +73 -0
  69. package/internal/builtin-types.d.mts.map +1 -0
  70. package/internal/builtin-types.d.ts +73 -0
  71. package/internal/builtin-types.d.ts.map +1 -0
  72. package/internal/builtin-types.js +4 -0
  73. package/internal/builtin-types.js.map +1 -0
  74. package/internal/builtin-types.mjs +3 -0
  75. package/internal/builtin-types.mjs.map +1 -0
  76. package/internal/detect-platform.d.mts +15 -0
  77. package/internal/detect-platform.d.mts.map +1 -0
  78. package/internal/detect-platform.d.ts +15 -0
  79. package/internal/detect-platform.d.ts.map +1 -0
  80. package/internal/detect-platform.js +162 -0
  81. package/internal/detect-platform.js.map +1 -0
  82. package/internal/detect-platform.mjs +157 -0
  83. package/internal/detect-platform.mjs.map +1 -0
  84. package/internal/errors.d.mts +3 -0
  85. package/internal/errors.d.mts.map +1 -0
  86. package/internal/errors.d.ts +3 -0
  87. package/internal/errors.d.ts.map +1 -0
  88. package/internal/errors.js +41 -0
  89. package/internal/errors.js.map +1 -0
  90. package/internal/errors.mjs +36 -0
  91. package/internal/errors.mjs.map +1 -0
  92. package/internal/headers.d.mts +20 -0
  93. package/internal/headers.d.mts.map +1 -0
  94. package/internal/headers.d.ts +20 -0
  95. package/internal/headers.d.ts.map +1 -0
  96. package/internal/headers.js +79 -0
  97. package/internal/headers.js.map +1 -0
  98. package/internal/headers.mjs +74 -0
  99. package/internal/headers.mjs.map +1 -0
  100. package/internal/parse.d.mts +12 -0
  101. package/internal/parse.d.mts.map +1 -0
  102. package/internal/parse.d.ts +12 -0
  103. package/internal/parse.d.ts.map +1 -0
  104. package/internal/parse.js +35 -0
  105. package/internal/parse.js.map +1 -0
  106. package/internal/parse.mjs +32 -0
  107. package/internal/parse.mjs.map +1 -0
  108. package/internal/qs/formats.d.mts +7 -0
  109. package/internal/qs/formats.d.mts.map +1 -0
  110. package/internal/qs/formats.d.ts +7 -0
  111. package/internal/qs/formats.d.ts.map +1 -0
  112. package/internal/qs/formats.js +13 -0
  113. package/internal/qs/formats.js.map +1 -0
  114. package/internal/qs/formats.mjs +9 -0
  115. package/internal/qs/formats.mjs.map +1 -0
  116. package/internal/qs/index.d.mts +10 -0
  117. package/internal/qs/index.d.mts.map +1 -0
  118. package/internal/qs/index.d.ts +10 -0
  119. package/internal/qs/index.d.ts.map +1 -0
  120. package/internal/qs/index.js +14 -0
  121. package/internal/qs/index.js.map +1 -0
  122. package/internal/qs/index.mjs +10 -0
  123. package/internal/qs/index.mjs.map +1 -0
  124. package/internal/qs/stringify.d.mts +3 -0
  125. package/internal/qs/stringify.d.mts.map +1 -0
  126. package/internal/qs/stringify.d.ts +3 -0
  127. package/internal/qs/stringify.d.ts.map +1 -0
  128. package/internal/qs/stringify.js +277 -0
  129. package/internal/qs/stringify.js.map +1 -0
  130. package/internal/qs/stringify.mjs +274 -0
  131. package/internal/qs/stringify.mjs.map +1 -0
  132. package/internal/qs/types.d.mts +57 -0
  133. package/internal/qs/types.d.mts.map +1 -0
  134. package/internal/qs/types.d.ts +57 -0
  135. package/internal/qs/types.d.ts.map +1 -0
  136. package/internal/qs/types.js +3 -0
  137. package/internal/qs/types.js.map +1 -0
  138. package/internal/qs/types.mjs +2 -0
  139. package/internal/qs/types.mjs.map +1 -0
  140. package/internal/qs/utils.d.mts +15 -0
  141. package/internal/qs/utils.d.mts.map +1 -0
  142. package/internal/qs/utils.d.ts +15 -0
  143. package/internal/qs/utils.d.ts.map +1 -0
  144. package/internal/qs/utils.js +230 -0
  145. package/internal/qs/utils.js.map +1 -0
  146. package/internal/qs/utils.mjs +217 -0
  147. package/internal/qs/utils.mjs.map +1 -0
  148. package/internal/request-options.d.mts +75 -0
  149. package/internal/request-options.d.mts.map +1 -0
  150. package/internal/request-options.d.ts +75 -0
  151. package/internal/request-options.d.ts.map +1 -0
  152. package/internal/request-options.js +14 -0
  153. package/internal/request-options.js.map +1 -0
  154. package/internal/request-options.mjs +10 -0
  155. package/internal/request-options.mjs.map +1 -0
  156. package/internal/shim-types.d.mts +17 -0
  157. package/internal/shim-types.d.mts.map +1 -0
  158. package/internal/shim-types.d.ts +17 -0
  159. package/internal/shim-types.d.ts.map +1 -0
  160. package/internal/shim-types.js +4 -0
  161. package/internal/shim-types.js.map +1 -0
  162. package/internal/shim-types.mjs +3 -0
  163. package/internal/shim-types.mjs.map +1 -0
  164. package/internal/shims.d.mts +20 -0
  165. package/internal/shims.d.mts.map +1 -0
  166. package/internal/shims.d.ts +20 -0
  167. package/internal/shims.d.ts.map +1 -0
  168. package/internal/shims.js +92 -0
  169. package/internal/shims.js.map +1 -0
  170. package/internal/shims.mjs +85 -0
  171. package/internal/shims.mjs.map +1 -0
  172. package/internal/to-file.d.mts +45 -0
  173. package/internal/to-file.d.mts.map +1 -0
  174. package/internal/to-file.d.ts +45 -0
  175. package/internal/to-file.d.ts.map +1 -0
  176. package/internal/to-file.js +91 -0
  177. package/internal/to-file.js.map +1 -0
  178. package/internal/to-file.mjs +88 -0
  179. package/internal/to-file.mjs.map +1 -0
  180. package/internal/tslib.js +81 -0
  181. package/internal/tslib.mjs +17 -0
  182. package/internal/types.d.mts +69 -0
  183. package/internal/types.d.mts.map +1 -0
  184. package/internal/types.d.ts +69 -0
  185. package/internal/types.d.ts.map +1 -0
  186. package/internal/types.js +4 -0
  187. package/internal/types.js.map +1 -0
  188. package/internal/types.mjs +3 -0
  189. package/internal/types.mjs.map +1 -0
  190. package/internal/uploads.d.mts +42 -0
  191. package/internal/uploads.d.mts.map +1 -0
  192. package/internal/uploads.d.ts +42 -0
  193. package/internal/uploads.d.ts.map +1 -0
  194. package/internal/uploads.js +141 -0
  195. package/internal/uploads.js.map +1 -0
  196. package/internal/uploads.mjs +131 -0
  197. package/internal/uploads.mjs.map +1 -0
  198. package/internal/utils/base64.d.mts +3 -0
  199. package/internal/utils/base64.d.mts.map +1 -0
  200. package/internal/utils/base64.d.ts +3 -0
  201. package/internal/utils/base64.d.ts.map +1 -0
  202. package/internal/utils/base64.js +38 -0
  203. package/internal/utils/base64.js.map +1 -0
  204. package/internal/utils/base64.mjs +33 -0
  205. package/internal/utils/base64.mjs.map +1 -0
  206. package/internal/utils/bytes.d.mts +4 -0
  207. package/internal/utils/bytes.d.mts.map +1 -0
  208. package/internal/utils/bytes.d.ts +4 -0
  209. package/internal/utils/bytes.d.ts.map +1 -0
  210. package/internal/utils/bytes.js +31 -0
  211. package/internal/utils/bytes.js.map +1 -0
  212. package/internal/utils/bytes.mjs +26 -0
  213. package/internal/utils/bytes.mjs.map +1 -0
  214. package/internal/utils/env.d.mts +9 -0
  215. package/internal/utils/env.d.mts.map +1 -0
  216. package/internal/utils/env.d.ts +9 -0
  217. package/internal/utils/env.d.ts.map +1 -0
  218. package/internal/utils/env.js +22 -0
  219. package/internal/utils/env.js.map +1 -0
  220. package/internal/utils/env.mjs +18 -0
  221. package/internal/utils/env.mjs.map +1 -0
  222. package/internal/utils/log.d.mts +37 -0
  223. package/internal/utils/log.d.mts.map +1 -0
  224. package/internal/utils/log.d.ts +37 -0
  225. package/internal/utils/log.d.ts.map +1 -0
  226. package/internal/utils/log.js +87 -0
  227. package/internal/utils/log.js.map +1 -0
  228. package/internal/utils/log.mjs +81 -0
  229. package/internal/utils/log.mjs.map +1 -0
  230. package/internal/utils/path.d.mts +15 -0
  231. package/internal/utils/path.d.mts.map +1 -0
  232. package/internal/utils/path.d.ts +15 -0
  233. package/internal/utils/path.d.ts.map +1 -0
  234. package/internal/utils/path.js +79 -0
  235. package/internal/utils/path.js.map +1 -0
  236. package/internal/utils/path.mjs +74 -0
  237. package/internal/utils/path.mjs.map +1 -0
  238. package/internal/utils/sleep.d.mts +2 -0
  239. package/internal/utils/sleep.d.mts.map +1 -0
  240. package/internal/utils/sleep.d.ts +2 -0
  241. package/internal/utils/sleep.d.ts.map +1 -0
  242. package/internal/utils/sleep.js +7 -0
  243. package/internal/utils/sleep.js.map +1 -0
  244. package/internal/utils/sleep.mjs +3 -0
  245. package/internal/utils/sleep.mjs.map +1 -0
  246. package/internal/utils/uuid.d.mts +5 -0
  247. package/internal/utils/uuid.d.mts.map +1 -0
  248. package/internal/utils/uuid.d.ts +5 -0
  249. package/internal/utils/uuid.d.ts.map +1 -0
  250. package/internal/utils/uuid.js +19 -0
  251. package/internal/utils/uuid.js.map +1 -0
  252. package/internal/utils/uuid.mjs +15 -0
  253. package/internal/utils/uuid.mjs.map +1 -0
  254. package/internal/utils/values.d.mts +18 -0
  255. package/internal/utils/values.d.mts.map +1 -0
  256. package/internal/utils/values.d.ts +18 -0
  257. package/internal/utils/values.d.ts.map +1 -0
  258. package/internal/utils/values.js +112 -0
  259. package/internal/utils/values.js.map +1 -0
  260. package/internal/utils/values.mjs +94 -0
  261. package/internal/utils/values.mjs.map +1 -0
  262. package/internal/utils.d.mts +7 -0
  263. package/internal/utils.d.mts.map +1 -0
  264. package/internal/utils.d.ts +7 -0
  265. package/internal/utils.d.ts.map +1 -0
  266. package/internal/utils.js +11 -0
  267. package/internal/utils.js.map +1 -0
  268. package/internal/utils.mjs +8 -0
  269. package/internal/utils.mjs.map +1 -0
  270. package/package.json +139 -0
  271. package/resource.d.mts +2 -0
  272. package/resource.d.mts.map +1 -0
  273. package/resource.d.ts +2 -0
  274. package/resource.d.ts.map +1 -0
  275. package/resource.js +6 -0
  276. package/resource.js.map +1 -0
  277. package/resource.mjs +2 -0
  278. package/resource.mjs.map +1 -0
  279. package/resources/comment.d.mts +62 -0
  280. package/resources/comment.d.mts.map +1 -0
  281. package/resources/comment.d.ts +62 -0
  282. package/resources/comment.d.ts.map +1 -0
  283. package/resources/comment.js +26 -0
  284. package/resources/comment.js.map +1 -0
  285. package/resources/comment.mjs +22 -0
  286. package/resources/comment.mjs.map +1 -0
  287. package/resources/index.d.mts +7 -0
  288. package/resources/index.d.mts.map +1 -0
  289. package/resources/index.d.ts +7 -0
  290. package/resources/index.d.ts.map +1 -0
  291. package/resources/index.js +17 -0
  292. package/resources/index.js.map +1 -0
  293. package/resources/index.mjs +8 -0
  294. package/resources/index.mjs.map +1 -0
  295. package/resources/mediaitem.d.mts +44 -0
  296. package/resources/mediaitem.d.mts.map +1 -0
  297. package/resources/mediaitem.d.ts +44 -0
  298. package/resources/mediaitem.d.ts.map +1 -0
  299. package/resources/mediaitem.js +25 -0
  300. package/resources/mediaitem.js.map +1 -0
  301. package/resources/mediaitem.mjs +21 -0
  302. package/resources/mediaitem.mjs.map +1 -0
  303. package/resources/openapi.d.mts +15 -0
  304. package/resources/openapi.d.mts.map +1 -0
  305. package/resources/openapi.d.ts +15 -0
  306. package/resources/openapi.d.ts.map +1 -0
  307. package/resources/openapi.js +20 -0
  308. package/resources/openapi.js.map +1 -0
  309. package/resources/openapi.mjs +16 -0
  310. package/resources/openapi.mjs.map +1 -0
  311. package/resources/poi.d.mts +827 -0
  312. package/resources/poi.d.mts.map +1 -0
  313. package/resources/poi.d.ts +827 -0
  314. package/resources/poi.d.ts.map +1 -0
  315. package/resources/poi.js +17 -0
  316. package/resources/poi.js.map +1 -0
  317. package/resources/poi.mjs +13 -0
  318. package/resources/poi.mjs.map +1 -0
  319. package/resources/profile.d.mts +66 -0
  320. package/resources/profile.d.mts.map +1 -0
  321. package/resources/profile.d.ts +66 -0
  322. package/resources/profile.d.ts.map +1 -0
  323. package/resources/profile.js +24 -0
  324. package/resources/profile.js.map +1 -0
  325. package/resources/profile.mjs +20 -0
  326. package/resources/profile.mjs.map +1 -0
  327. package/resources/referencedata.d.mts +372 -0
  328. package/resources/referencedata.d.mts.map +1 -0
  329. package/resources/referencedata.d.ts +372 -0
  330. package/resources/referencedata.d.ts.map +1 -0
  331. package/resources/referencedata.js +20 -0
  332. package/resources/referencedata.js.map +1 -0
  333. package/resources/referencedata.mjs +16 -0
  334. package/resources/referencedata.mjs.map +1 -0
  335. package/resources.d.mts +2 -0
  336. package/resources.d.mts.map +1 -0
  337. package/resources.d.ts +2 -0
  338. package/resources.d.ts.map +1 -0
  339. package/resources.js +5 -0
  340. package/resources.js.map +1 -0
  341. package/resources.mjs +2 -0
  342. package/resources.mjs.map +1 -0
  343. package/src/api-promise.ts +2 -0
  344. package/src/client.ts +789 -0
  345. package/src/core/README.md +3 -0
  346. package/src/core/api-promise.ts +89 -0
  347. package/src/core/error.ts +130 -0
  348. package/src/core/resource.ts +11 -0
  349. package/src/core/uploads.ts +2 -0
  350. package/src/error.ts +2 -0
  351. package/src/index.ts +22 -0
  352. package/src/internal/README.md +3 -0
  353. package/src/internal/builtin-types.ts +93 -0
  354. package/src/internal/detect-platform.ts +196 -0
  355. package/src/internal/errors.ts +33 -0
  356. package/src/internal/headers.ts +97 -0
  357. package/src/internal/parse.ts +50 -0
  358. package/src/internal/qs/LICENSE.md +13 -0
  359. package/src/internal/qs/README.md +3 -0
  360. package/src/internal/qs/formats.ts +10 -0
  361. package/src/internal/qs/index.ts +13 -0
  362. package/src/internal/qs/stringify.ts +385 -0
  363. package/src/internal/qs/types.ts +71 -0
  364. package/src/internal/qs/utils.ts +265 -0
  365. package/src/internal/request-options.ts +91 -0
  366. package/src/internal/shim-types.ts +26 -0
  367. package/src/internal/shims.ts +107 -0
  368. package/src/internal/to-file.ts +154 -0
  369. package/src/internal/types.ts +95 -0
  370. package/src/internal/uploads.ts +187 -0
  371. package/src/internal/utils/base64.ts +40 -0
  372. package/src/internal/utils/bytes.ts +32 -0
  373. package/src/internal/utils/env.ts +18 -0
  374. package/src/internal/utils/log.ts +128 -0
  375. package/src/internal/utils/path.ts +88 -0
  376. package/src/internal/utils/sleep.ts +3 -0
  377. package/src/internal/utils/uuid.ts +17 -0
  378. package/src/internal/utils/values.ts +105 -0
  379. package/src/internal/utils.ts +8 -0
  380. package/src/lib/.keep +4 -0
  381. package/src/resource.ts +2 -0
  382. package/src/resources/comment.ts +79 -0
  383. package/src/resources/index.ts +13 -0
  384. package/src/resources/mediaitem.ts +57 -0
  385. package/src/resources/openapi.ts +25 -0
  386. package/src/resources/poi.ts +1029 -0
  387. package/src/resources/profile.ts +98 -0
  388. package/src/resources/referencedata.ts +474 -0
  389. package/src/resources.ts +1 -0
  390. package/src/tsconfig.json +11 -0
  391. package/src/uploads.ts +2 -0
  392. package/src/version.ts +1 -0
  393. package/uploads.d.mts +2 -0
  394. package/uploads.d.mts.map +1 -0
  395. package/uploads.d.ts +2 -0
  396. package/uploads.d.ts.map +1 -0
  397. package/uploads.js +6 -0
  398. package/uploads.js.map +1 -0
  399. package/uploads.mjs +2 -0
  400. package/uploads.mjs.map +1 -0
  401. package/version.d.mts +2 -0
  402. package/version.d.mts.map +1 -0
  403. package/version.d.ts +2 -0
  404. package/version.d.ts.map +1 -0
  405. package/version.js +5 -0
  406. package/version.js.map +1 -0
  407. package/version.mjs +2 -0
  408. 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