@spotto/contract 1.0.33-alpha.1 → 1.0.34-alpha.1

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 (466) hide show
  1. package/README.md +33 -33
  2. package/dist/assets/[id]/get.d.ts +46 -46
  3. package/dist/assets/[id]/get.js +2 -2
  4. package/dist/assets/[id]/index.d.ts +4 -4
  5. package/dist/assets/[id]/index.js +20 -20
  6. package/dist/assets/[id]/location.d.ts +6 -6
  7. package/dist/assets/[id]/location.js +2 -2
  8. package/dist/assets/[id]/patch/index.d.ts +2 -2
  9. package/dist/assets/[id]/patch/index.js +18 -18
  10. package/dist/assets/[id]/patch/request.d.ts +10 -10
  11. package/dist/assets/[id]/patch/request.js +2 -2
  12. package/dist/assets/[id]/patch/response.d.ts +7 -7
  13. package/dist/assets/[id]/patch/response.js +2 -2
  14. package/dist/assets/[id]/readers.d.ts +9 -9
  15. package/dist/assets/[id]/readers.js +2 -2
  16. package/dist/assets/count/index.d.ts +2 -2
  17. package/dist/assets/count/index.js +18 -18
  18. package/dist/assets/count/query.d.ts +1 -1
  19. package/dist/assets/count/query.js +2 -2
  20. package/dist/assets/count/response.d.ts +13 -13
  21. package/dist/assets/count/response.js +2 -2
  22. package/dist/assets/download/index.d.ts +2 -2
  23. package/dist/assets/download/index.js +18 -18
  24. package/dist/assets/download/query.d.ts +10 -10
  25. package/dist/assets/download/query.js +2 -2
  26. package/dist/assets/download/response.d.ts +3 -3
  27. package/dist/assets/download/response.js +2 -2
  28. package/dist/assets/errors.d.ts +3 -3
  29. package/dist/assets/errors.js +2 -2
  30. package/dist/assets/get/index.d.ts +2 -2
  31. package/dist/assets/get/index.js +18 -18
  32. package/dist/assets/get/query.d.ts +33 -33
  33. package/dist/assets/get/query.js +2 -2
  34. package/dist/assets/get/response.d.ts +7 -7
  35. package/dist/assets/get/response.js +2 -2
  36. package/dist/assets/index.d.ts +9 -9
  37. package/dist/assets/index.js +25 -25
  38. package/dist/assets/location/index.d.ts +2 -2
  39. package/dist/assets/location/index.js +18 -18
  40. package/dist/assets/location/request.d.ts +9 -9
  41. package/dist/assets/location/request.js +2 -2
  42. package/dist/assets/location/response.d.ts +2 -2
  43. package/dist/assets/location/response.js +2 -2
  44. package/dist/assets/post/index.d.ts +2 -2
  45. package/dist/assets/post/index.js +18 -18
  46. package/dist/assets/post/request.d.ts +12 -12
  47. package/dist/assets/post/request.js +8 -8
  48. package/dist/assets/post/response.d.ts +11 -11
  49. package/dist/assets/post/response.js +2 -2
  50. package/dist/assets/suggestions/index.d.ts +2 -2
  51. package/dist/assets/suggestions/index.js +18 -18
  52. package/dist/assets/suggestions/query.d.ts +5 -5
  53. package/dist/assets/suggestions/query.js +2 -2
  54. package/dist/assets/suggestions/response.d.ts +7 -7
  55. package/dist/assets/suggestions/response.js +2 -2
  56. package/dist/assets/upload/index.d.ts +2 -2
  57. package/dist/assets/upload/index.js +18 -18
  58. package/dist/assets/upload/request.d.ts +3 -3
  59. package/dist/assets/upload/request.js +2 -2
  60. package/dist/assets/upload/response.d.ts +7 -7
  61. package/dist/assets/upload/response.js +2 -2
  62. package/dist/errors.d.ts +4 -4
  63. package/dist/errors.js +2 -2
  64. package/dist/events/constants.d.ts +8 -8
  65. package/dist/events/constants.js +30 -30
  66. package/dist/events/count/index.d.ts +2 -2
  67. package/dist/events/count/index.js +18 -18
  68. package/dist/events/count/query.d.ts +5 -5
  69. package/dist/events/count/query.js +2 -2
  70. package/dist/events/count/response.d.ts +18 -18
  71. package/dist/events/count/response.js +2 -2
  72. package/dist/events/download/index.d.ts +2 -2
  73. package/dist/events/download/index.js +18 -18
  74. package/dist/events/download/query.d.ts +9 -9
  75. package/dist/events/download/query.js +2 -2
  76. package/dist/events/download/response.d.ts +3 -3
  77. package/dist/events/download/response.js +2 -2
  78. package/dist/events/get/index.d.ts +2 -2
  79. package/dist/events/get/index.js +18 -18
  80. package/dist/events/get/query.d.ts +15 -15
  81. package/dist/events/get/query.js +2 -2
  82. package/dist/events/get/response.d.ts +104 -104
  83. package/dist/events/get/response.js +2 -2
  84. package/dist/events/index.d.ts +5 -5
  85. package/dist/events/index.js +21 -21
  86. package/dist/events/post.d.ts +9 -9
  87. package/dist/events/post.js +2 -2
  88. package/dist/fields/[id]/get.d.ts +16 -16
  89. package/dist/fields/[id]/get.js +2 -2
  90. package/dist/fields/[id]/index.d.ts +2 -2
  91. package/dist/fields/[id]/index.js +18 -18
  92. package/dist/fields/[id]/patch/index.d.ts +2 -2
  93. package/dist/fields/[id]/patch/index.js +18 -18
  94. package/dist/fields/[id]/patch/request.d.ts +13 -13
  95. package/dist/fields/[id]/patch/request.js +2 -2
  96. package/dist/fields/[id]/patch/response.d.ts +1 -1
  97. package/dist/fields/[id]/patch/response.js +2 -2
  98. package/dist/fields/constants.d.ts +4 -4
  99. package/dist/fields/constants.js +19 -19
  100. package/dist/fields/get/index.d.ts +2 -2
  101. package/dist/fields/get/index.js +18 -18
  102. package/dist/fields/get/query.d.ts +11 -11
  103. package/dist/fields/get/query.js +2 -2
  104. package/dist/fields/get/response.d.ts +7 -7
  105. package/dist/fields/get/response.js +2 -2
  106. package/dist/fields/index.d.ts +4 -4
  107. package/dist/fields/index.js +20 -20
  108. package/dist/fields/post/index.d.ts +2 -2
  109. package/dist/fields/post/index.js +18 -18
  110. package/dist/fields/post/request.d.ts +17 -17
  111. package/dist/fields/post/request.js +7 -7
  112. package/dist/fields/post/response.d.ts +5 -5
  113. package/dist/fields/post/response.js +2 -2
  114. package/dist/index.d.ts +18 -18
  115. package/dist/index.js +34 -34
  116. package/dist/integrations/constants.d.ts +17 -17
  117. package/dist/integrations/constants.js +2 -2
  118. package/dist/integrations/index.d.ts +2 -2
  119. package/dist/integrations/index.js +18 -18
  120. package/dist/integrations/mqtt/get.d.ts +1 -1
  121. package/dist/integrations/mqtt/get.js +2 -2
  122. package/dist/integrations/mqtt/index.d.ts +2 -2
  123. package/dist/integrations/mqtt/index.js +18 -18
  124. package/dist/integrations/mqtt/patch/index.d.ts +2 -2
  125. package/dist/integrations/mqtt/patch/index.js +18 -18
  126. package/dist/integrations/mqtt/patch/request.d.ts +3 -3
  127. package/dist/integrations/mqtt/patch/request.js +2 -2
  128. package/dist/integrations/mqtt/patch/response.d.ts +1 -1
  129. package/dist/integrations/mqtt/patch/response.js +2 -2
  130. package/dist/labels/[id]/get.d.ts +6 -6
  131. package/dist/labels/[id]/get.js +2 -2
  132. package/dist/labels/[id]/index.d.ts +2 -2
  133. package/dist/labels/[id]/index.js +18 -18
  134. package/dist/labels/[id]/patch/index.d.ts +2 -2
  135. package/dist/labels/[id]/patch/index.js +18 -18
  136. package/dist/labels/[id]/patch/request.d.ts +3 -3
  137. package/dist/labels/[id]/patch/request.js +2 -2
  138. package/dist/labels/[id]/patch/response.d.ts +1 -1
  139. package/dist/labels/[id]/patch/response.js +2 -2
  140. package/dist/labels/constants.d.ts +4 -4
  141. package/dist/labels/constants.js +2 -2
  142. package/dist/labels/get/index.d.ts +2 -2
  143. package/dist/labels/get/index.js +18 -18
  144. package/dist/labels/get/query.d.ts +11 -11
  145. package/dist/labels/get/query.js +2 -2
  146. package/dist/labels/get/response.d.ts +7 -7
  147. package/dist/labels/get/response.js +2 -2
  148. package/dist/labels/index.d.ts +4 -4
  149. package/dist/labels/index.js +20 -20
  150. package/dist/labels/post/index.d.ts +2 -2
  151. package/dist/labels/post/index.js +18 -18
  152. package/dist/labels/post/request.d.ts +4 -4
  153. package/dist/labels/post/request.js +2 -2
  154. package/dist/labels/post/response.d.ts +5 -5
  155. package/dist/labels/post/response.js +2 -2
  156. package/dist/locations/[id]/get.d.ts +35 -35
  157. package/dist/locations/[id]/get.js +2 -2
  158. package/dist/locations/[id]/index.d.ts +4 -4
  159. package/dist/locations/[id]/index.js +20 -20
  160. package/dist/locations/[id]/inventory.d.ts +9 -9
  161. package/dist/locations/[id]/inventory.js +2 -2
  162. package/dist/locations/[id]/patch/index.d.ts +2 -2
  163. package/dist/locations/[id]/patch/index.js +18 -18
  164. package/dist/locations/[id]/patch/request.d.ts +12 -12
  165. package/dist/locations/[id]/patch/request.js +2 -2
  166. package/dist/locations/[id]/patch/response.d.ts +7 -7
  167. package/dist/locations/[id]/patch/response.js +2 -2
  168. package/dist/locations/[id]/status.d.ts +4 -4
  169. package/dist/locations/[id]/status.js +2 -2
  170. package/dist/locations/constants.d.ts +4 -4
  171. package/dist/locations/constants.js +12 -12
  172. package/dist/locations/count/index.d.ts +2 -2
  173. package/dist/locations/count/index.js +18 -18
  174. package/dist/locations/count/query.d.ts +1 -1
  175. package/dist/locations/count/query.js +2 -2
  176. package/dist/locations/count/response.d.ts +6 -6
  177. package/dist/locations/count/response.js +2 -2
  178. package/dist/locations/download/index.d.ts +2 -2
  179. package/dist/locations/download/index.js +18 -18
  180. package/dist/locations/download/query.d.ts +10 -10
  181. package/dist/locations/download/query.js +2 -2
  182. package/dist/locations/download/response.d.ts +3 -3
  183. package/dist/locations/download/response.js +2 -2
  184. package/dist/locations/errors.d.ts +3 -3
  185. package/dist/locations/errors.js +2 -2
  186. package/dist/locations/get/index.d.ts +2 -2
  187. package/dist/locations/get/index.js +18 -18
  188. package/dist/locations/get/query.d.ts +27 -27
  189. package/dist/locations/get/query.js +2 -2
  190. package/dist/locations/get/response.d.ts +7 -7
  191. package/dist/locations/get/response.js +2 -2
  192. package/dist/locations/index.d.ts +8 -8
  193. package/dist/locations/index.js +24 -24
  194. package/dist/locations/post/index.d.ts +2 -2
  195. package/dist/locations/post/index.js +18 -18
  196. package/dist/locations/post/request.d.ts +13 -13
  197. package/dist/locations/post/request.js +2 -2
  198. package/dist/locations/post/response.d.ts +11 -11
  199. package/dist/locations/post/response.js +2 -2
  200. package/dist/locations/suggestions/index.d.ts +2 -2
  201. package/dist/locations/suggestions/index.js +18 -18
  202. package/dist/locations/suggestions/query.d.ts +7 -7
  203. package/dist/locations/suggestions/query.js +2 -2
  204. package/dist/locations/suggestions/response.d.ts +7 -7
  205. package/dist/locations/suggestions/response.js +2 -2
  206. package/dist/manifests/[id]/get.d.ts +31 -31
  207. package/dist/manifests/[id]/get.js +37 -37
  208. package/dist/manifests/[id]/index.d.ts +2 -2
  209. package/dist/manifests/[id]/index.js +18 -18
  210. package/dist/manifests/[id]/patch/index.d.ts +2 -2
  211. package/dist/manifests/[id]/patch/index.js +18 -18
  212. package/dist/manifests/[id]/patch/request.d.ts +8 -8
  213. package/dist/manifests/[id]/patch/request.js +44 -44
  214. package/dist/manifests/[id]/patch/response.d.ts +1 -1
  215. package/dist/manifests/[id]/patch/response.js +2 -2
  216. package/dist/manifests/get/index.d.ts +2 -2
  217. package/dist/manifests/get/index.js +18 -18
  218. package/dist/manifests/get/query.d.ts +10 -10
  219. package/dist/manifests/get/query.js +2 -2
  220. package/dist/manifests/get/response.d.ts +7 -7
  221. package/dist/manifests/get/response.js +2 -2
  222. package/dist/manifests/index.d.ts +3 -3
  223. package/dist/manifests/index.js +19 -19
  224. package/dist/manifests/post/index.d.ts +2 -2
  225. package/dist/manifests/post/index.js +18 -18
  226. package/dist/manifests/post/request.d.ts +16 -16
  227. package/dist/manifests/post/request.js +50 -50
  228. package/dist/manifests/post/response.d.ts +5 -5
  229. package/dist/manifests/post/response.js +2 -2
  230. package/dist/networks/constants.d.ts +6 -6
  231. package/dist/networks/constants.js +2 -2
  232. package/dist/networks/index.d.ts +1 -1
  233. package/dist/networks/index.js +17 -17
  234. package/dist/organisations/[id]/delete/index.d.ts +2 -2
  235. package/dist/organisations/[id]/delete/index.js +18 -18
  236. package/dist/organisations/[id]/delete/query.d.ts +3 -3
  237. package/dist/organisations/[id]/delete/query.js +2 -2
  238. package/dist/organisations/[id]/delete/response.d.ts +13 -13
  239. package/dist/organisations/[id]/delete/response.js +2 -2
  240. package/dist/organisations/[id]/get.d.ts +12 -12
  241. package/dist/organisations/[id]/get.js +2 -2
  242. package/dist/organisations/[id]/index.d.ts +4 -4
  243. package/dist/organisations/[id]/index.js +20 -20
  244. package/dist/organisations/[id]/patch/index.d.ts +2 -2
  245. package/dist/organisations/[id]/patch/index.js +18 -18
  246. package/dist/organisations/[id]/patch/request.d.ts +10 -10
  247. package/dist/organisations/[id]/patch/request.js +2 -2
  248. package/dist/organisations/[id]/patch/response.d.ts +1 -1
  249. package/dist/organisations/[id]/patch/response.js +2 -2
  250. package/dist/organisations/[id]/wifi/index.d.ts +2 -2
  251. package/dist/organisations/[id]/wifi/index.js +18 -18
  252. package/dist/organisations/[id]/wifi/query.d.ts +3 -3
  253. package/dist/organisations/[id]/wifi/query.js +2 -2
  254. package/dist/organisations/[id]/wifi/response.d.ts +4 -4
  255. package/dist/organisations/[id]/wifi/response.js +2 -2
  256. package/dist/organisations/constants.d.ts +22 -22
  257. package/dist/organisations/constants.js +2 -2
  258. package/dist/organisations/get/index.d.ts +2 -2
  259. package/dist/organisations/get/index.js +18 -18
  260. package/dist/organisations/get/query.d.ts +11 -11
  261. package/dist/organisations/get/query.js +2 -2
  262. package/dist/organisations/get/response.d.ts +7 -7
  263. package/dist/organisations/get/response.js +2 -2
  264. package/dist/organisations/index.d.ts +4 -4
  265. package/dist/organisations/index.js +20 -20
  266. package/dist/organisations/post/index.d.ts +2 -2
  267. package/dist/organisations/post/index.js +18 -18
  268. package/dist/organisations/post/request.d.ts +5 -5
  269. package/dist/organisations/post/request.js +2 -2
  270. package/dist/organisations/post/response.d.ts +1 -1
  271. package/dist/organisations/post/response.js +2 -2
  272. package/dist/readers/[id]/get.d.ts +34 -34
  273. package/dist/readers/[id]/get.js +2 -2
  274. package/dist/readers/[id]/index.d.ts +4 -4
  275. package/dist/readers/[id]/index.js +20 -20
  276. package/dist/readers/[id]/inventory/index.d.ts +1 -1
  277. package/dist/readers/[id]/inventory/index.js +17 -17
  278. package/dist/readers/[id]/inventory/response.d.ts +5 -5
  279. package/dist/readers/[id]/inventory/response.js +2 -2
  280. package/dist/readers/[id]/patch/index.d.ts +2 -2
  281. package/dist/readers/[id]/patch/index.js +18 -18
  282. package/dist/readers/[id]/patch/request.d.ts +10 -9
  283. package/dist/readers/[id]/patch/request.js +2 -2
  284. package/dist/readers/[id]/patch/response.d.ts +1 -1
  285. package/dist/readers/[id]/patch/response.js +2 -2
  286. package/dist/readers/[id]/status.d.ts +4 -4
  287. package/dist/readers/[id]/status.js +2 -2
  288. package/dist/readers/constants/deviceTypes.d.ts +29 -29
  289. package/dist/readers/constants/deviceTypes.js +186 -186
  290. package/dist/readers/constants/index.d.ts +2 -2
  291. package/dist/readers/constants/index.js +18 -18
  292. package/dist/readers/constants/types.d.ts +9 -9
  293. package/dist/readers/constants/types.js +24 -24
  294. package/dist/readers/count/index.d.ts +2 -2
  295. package/dist/readers/count/index.js +18 -18
  296. package/dist/readers/count/query.d.ts +1 -1
  297. package/dist/readers/count/query.js +2 -2
  298. package/dist/readers/count/response.d.ts +5 -5
  299. package/dist/readers/count/response.js +2 -2
  300. package/dist/readers/download/index.d.ts +2 -2
  301. package/dist/readers/download/index.js +18 -18
  302. package/dist/readers/download/query.d.ts +10 -10
  303. package/dist/readers/download/query.js +2 -2
  304. package/dist/readers/download/response.d.ts +3 -3
  305. package/dist/readers/download/response.js +2 -2
  306. package/dist/readers/get/index.d.ts +2 -2
  307. package/dist/readers/get/index.js +18 -18
  308. package/dist/readers/get/query.d.ts +24 -24
  309. package/dist/readers/get/query.js +2 -2
  310. package/dist/readers/get/response.d.ts +7 -7
  311. package/dist/readers/get/response.js +2 -2
  312. package/dist/readers/index.d.ts +8 -8
  313. package/dist/readers/index.js +24 -24
  314. package/dist/readers/post/index.d.ts +2 -2
  315. package/dist/readers/post/index.js +18 -18
  316. package/dist/readers/post/request.d.ts +19 -23
  317. package/dist/readers/post/request.js +2 -2
  318. package/dist/readers/post/response.d.ts +5 -5
  319. package/dist/readers/post/response.js +2 -2
  320. package/dist/readers/suggestions/index.d.ts +2 -2
  321. package/dist/readers/suggestions/index.js +18 -18
  322. package/dist/readers/suggestions/query.d.ts +5 -5
  323. package/dist/readers/suggestions/query.js +2 -2
  324. package/dist/readers/suggestions/response.d.ts +7 -7
  325. package/dist/readers/suggestions/response.js +2 -2
  326. package/dist/readers/user/index.d.ts +2 -2
  327. package/dist/readers/user/index.js +18 -18
  328. package/dist/readers/user/request.d.ts +3 -3
  329. package/dist/readers/user/request.js +2 -2
  330. package/dist/readers/user/response.d.ts +8 -8
  331. package/dist/readers/user/response.js +2 -2
  332. package/dist/roles/[id]/get.d.ts +6 -6
  333. package/dist/roles/[id]/get.js +2 -2
  334. package/dist/roles/[id]/index.d.ts +1 -1
  335. package/dist/roles/[id]/index.js +17 -17
  336. package/dist/roles/get/index.d.ts +2 -2
  337. package/dist/roles/get/index.js +18 -18
  338. package/dist/roles/get/query.d.ts +7 -7
  339. package/dist/roles/get/query.js +2 -2
  340. package/dist/roles/get/response.d.ts +7 -7
  341. package/dist/roles/get/response.js +2 -2
  342. package/dist/roles/index.d.ts +3 -3
  343. package/dist/roles/index.js +19 -19
  344. package/dist/roles/post/index.d.ts +2 -2
  345. package/dist/roles/post/index.js +18 -18
  346. package/dist/roles/post/request.d.ts +6 -6
  347. package/dist/roles/post/request.js +2 -2
  348. package/dist/roles/post/response.d.ts +1 -1
  349. package/dist/roles/post/response.js +2 -2
  350. package/dist/shared/body.d.ts +2 -2
  351. package/dist/shared/body.js +2 -2
  352. package/dist/shared/delete.d.ts +2 -2
  353. package/dist/shared/delete.js +2 -2
  354. package/dist/shared/embed.d.ts +8 -8
  355. package/dist/shared/embed.js +2 -2
  356. package/dist/shared/errors.d.ts +3 -3
  357. package/dist/shared/errors.js +2 -2
  358. package/dist/shared/headers.d.ts +3 -3
  359. package/dist/shared/headers.js +2 -2
  360. package/dist/shared/index.d.ts +10 -10
  361. package/dist/shared/index.js +26 -26
  362. package/dist/shared/path.d.ts +3 -3
  363. package/dist/shared/path.js +2 -2
  364. package/dist/shared/query.d.ts +3 -3
  365. package/dist/shared/query.js +2 -2
  366. package/dist/shared/sort.d.ts +6 -6
  367. package/dist/shared/sort.js +13 -13
  368. package/dist/shared/timestamp.d.ts +2 -2
  369. package/dist/shared/timestamp.js +4 -4
  370. package/dist/shared/timezone.d.ts +1 -1
  371. package/dist/shared/timezone.js +354 -354
  372. package/dist/snapshots/[id]/get.d.ts +92 -92
  373. package/dist/snapshots/[id]/get.js +30 -30
  374. package/dist/snapshots/[id]/index.d.ts +1 -1
  375. package/dist/snapshots/[id]/index.js +17 -17
  376. package/dist/snapshots/get/index.d.ts +2 -2
  377. package/dist/snapshots/get/index.js +18 -18
  378. package/dist/snapshots/get/query.d.ts +17 -17
  379. package/dist/snapshots/get/query.js +4 -4
  380. package/dist/snapshots/get/response.d.ts +7 -7
  381. package/dist/snapshots/get/response.js +2 -2
  382. package/dist/snapshots/index.d.ts +3 -3
  383. package/dist/snapshots/index.js +19 -19
  384. package/dist/snapshots/post/index.d.ts +2 -2
  385. package/dist/snapshots/post/index.js +18 -18
  386. package/dist/snapshots/post/request.d.ts +17 -17
  387. package/dist/snapshots/post/request.js +238 -238
  388. package/dist/snapshots/post/response.d.ts +5 -5
  389. package/dist/snapshots/post/response.js +2 -2
  390. package/dist/tags/constants.d.ts +9 -9
  391. package/dist/tags/constants.js +2 -2
  392. package/dist/tags/errors.d.ts +19 -19
  393. package/dist/tags/errors.js +2 -2
  394. package/dist/tags/get/index.d.ts +2 -2
  395. package/dist/tags/get/index.js +18 -18
  396. package/dist/tags/get/query.d.ts +3 -3
  397. package/dist/tags/get/query.js +2 -2
  398. package/dist/tags/get/response.d.ts +7 -7
  399. package/dist/tags/get/response.js +2 -2
  400. package/dist/tags/index.d.ts +3 -3
  401. package/dist/tags/index.js +19 -19
  402. package/dist/telemetry.d.ts +7 -7
  403. package/dist/telemetry.js +2 -2
  404. package/dist/types/[id]/get.d.ts +32 -32
  405. package/dist/types/[id]/get.js +2 -2
  406. package/dist/types/[id]/index.d.ts +2 -2
  407. package/dist/types/[id]/index.js +18 -18
  408. package/dist/types/[id]/patch/index.d.ts +2 -2
  409. package/dist/types/[id]/patch/index.js +18 -18
  410. package/dist/types/[id]/patch/request.d.ts +11 -11
  411. package/dist/types/[id]/patch/request.js +2 -2
  412. package/dist/types/[id]/patch/response.d.ts +1 -1
  413. package/dist/types/[id]/patch/response.js +2 -2
  414. package/dist/types/get/index.d.ts +2 -2
  415. package/dist/types/get/index.js +18 -18
  416. package/dist/types/get/query.d.ts +10 -10
  417. package/dist/types/get/query.js +2 -2
  418. package/dist/types/get/response.d.ts +7 -7
  419. package/dist/types/get/response.js +2 -2
  420. package/dist/types/hierarchy/index.d.ts +1 -1
  421. package/dist/types/hierarchy/index.js +17 -17
  422. package/dist/types/hierarchy/response.d.ts +8 -8
  423. package/dist/types/hierarchy/response.js +26 -26
  424. package/dist/types/index.d.ts +4 -4
  425. package/dist/types/index.js +20 -20
  426. package/dist/types/post/index.d.ts +2 -2
  427. package/dist/types/post/index.js +18 -18
  428. package/dist/types/post/request.d.ts +69 -69
  429. package/dist/types/post/request.js +20 -20
  430. package/dist/types/post/response.d.ts +5 -5
  431. package/dist/types/post/response.js +2 -2
  432. package/dist/users/[id]/get/index.d.ts +2 -2
  433. package/dist/users/[id]/get/index.js +18 -18
  434. package/dist/users/[id]/get/query.d.ts +3 -3
  435. package/dist/users/[id]/get/query.js +2 -2
  436. package/dist/users/[id]/get/response.d.ts +22 -22
  437. package/dist/users/[id]/get/response.js +2 -2
  438. package/dist/users/[id]/index.d.ts +3 -3
  439. package/dist/users/[id]/index.js +19 -19
  440. package/dist/users/[id]/key.d.ts +3 -3
  441. package/dist/users/[id]/key.js +2 -2
  442. package/dist/users/[id]/patch/index.d.ts +2 -2
  443. package/dist/users/[id]/patch/index.js +18 -18
  444. package/dist/users/[id]/patch/request.d.ts +6 -6
  445. package/dist/users/[id]/patch/request.js +2 -2
  446. package/dist/users/[id]/patch/response.d.ts +1 -1
  447. package/dist/users/[id]/patch/response.js +2 -2
  448. package/dist/users/constants.d.ts +2 -2
  449. package/dist/users/constants.js +4 -4
  450. package/dist/users/current.d.ts +31 -31
  451. package/dist/users/current.js +2 -2
  452. package/dist/users/get/index.d.ts +2 -2
  453. package/dist/users/get/index.js +18 -18
  454. package/dist/users/get/query.d.ts +17 -17
  455. package/dist/users/get/query.js +2 -2
  456. package/dist/users/get/response.d.ts +7 -7
  457. package/dist/users/get/response.js +2 -2
  458. package/dist/users/index.d.ts +5 -5
  459. package/dist/users/index.js +21 -21
  460. package/dist/users/post/index.d.ts +2 -2
  461. package/dist/users/post/index.js +18 -18
  462. package/dist/users/post/request.d.ts +15 -15
  463. package/dist/users/post/request.js +2 -2
  464. package/dist/users/post/response.d.ts +1 -1
  465. package/dist/users/post/response.js +2 -2
  466. package/package.json +2 -2
@@ -1,9 +1,10 @@
1
- import { INetworkRequest } from '../../../networks';
2
- import { IUpsertedLocation } from '../../post/request';
3
- export interface UpdateReaderRequest {
4
- name?: string;
5
- locationId?: string;
6
- location?: IUpsertedLocation;
7
- deviceId?: string;
8
- network?: INetworkRequest;
9
- }
1
+ import { INetworkRequest } from '../../../networks';
2
+ import { IUpsertedLocation } from '../../post/request';
3
+ export interface UpdateReaderRequest {
4
+ name?: string;
5
+ locationId?: string;
6
+ location?: IUpsertedLocation;
7
+ unassignLocation?: boolean;
8
+ deviceId?: string;
9
+ network?: INetworkRequest;
10
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=request.js.map
@@ -1 +1 @@
1
- export { GetReaderResponse as UpdateReaderResponse } from '../get';
1
+ export { GetReaderResponse as UpdateReaderResponse } from '../get';
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=response.js.map
@@ -1,4 +1,4 @@
1
- import { IReaderStatus } from './get';
2
- export interface GetReaderStatusResponse {
3
- status?: IReaderStatus;
4
- }
1
+ import { IReaderStatus } from './get';
2
+ export interface GetReaderStatusResponse {
3
+ status?: IReaderStatus;
4
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=status.js.map
@@ -1,29 +1,29 @@
1
- export declare type DeviceType = 'B1' | 'A1' | 'RF1A4' | 'RF1F' | 'HD1' | 'ZEBRA' | 'IMPINJ' | 'TURCK' | 'DIGITAL_MATTER' | 'KKM' | 'MINEW' | 'FR22' | 'OTHER' | 'APPLICATION';
2
- export declare const DEVICE_TYPES: DeviceType[];
3
- export declare type DeviceTechnologyType = 'BLE' | 'RFID' | 'HID';
4
- export declare type ConnectorProtocol = 'http' | 'mqtt';
5
- export declare type DeviceIdFormat = 'mac' | 'string';
6
- export declare type DeviceManufacturer = 'spotto' | 'iotx3' | 'zebra' | 'impinj' | 'turck' | 'minew' | 'digitalmatter' | 'kkm';
7
- export interface IDeviceTypeDetail {
8
- id: DeviceType;
9
- name: string;
10
- technology: DeviceTechnologyType[];
11
- endpoint?: string;
12
- manufacturer?: DeviceManufacturer;
13
- protocols: ConnectorProtocol[];
14
- deviceIdFormat?: DeviceIdFormat;
15
- deviceIdRequired?: boolean;
16
- visible: boolean;
17
- }
18
- export declare const DEVICE_TYPE_DETAILS: IDeviceTypeDetail[];
19
- export declare const getDeviceTypeById: (id: DeviceType) => IDeviceTypeDetail;
20
- declare type QuerySignature = {
21
- [P in keyof IDeviceTypeDetail]?: IDeviceTypeDetail[P];
22
- };
23
- export declare const getDeviceTypes: (query: QuerySignature) => IDeviceTypeDetail[];
24
- export declare const getDeviceTypesForFormat: (deviceIdFormat: DeviceIdFormat) => DeviceType[];
25
- export declare const getDeviceTypesWithRequiredDeviceId: () => DeviceType[];
26
- export declare const getDeviceTypesForManufacturer: (manufacturer: DeviceManufacturer) => DeviceType[];
27
- export declare const isIoTX3: (id: DeviceType) => boolean;
28
- export declare const isDeviceIdRequired: (id: DeviceType) => boolean;
29
- export {};
1
+ export declare type DeviceType = 'B1' | 'A1' | 'RF1A4' | 'RF1F' | 'HD1' | 'ZEBRA' | 'IMPINJ' | 'TURCK' | 'DIGITAL_MATTER' | 'KKM' | 'MINEW' | 'FR22' | 'OTHER' | 'APPLICATION';
2
+ export declare const DEVICE_TYPES: DeviceType[];
3
+ export declare type DeviceTechnologyType = 'BLE' | 'RFID' | 'HID';
4
+ export declare type ConnectorProtocol = 'http' | 'mqtt';
5
+ export declare type DeviceIdFormat = 'mac' | 'string';
6
+ export declare type DeviceManufacturer = 'spotto' | 'iotx3' | 'zebra' | 'impinj' | 'turck' | 'minew' | 'digitalmatter' | 'kkm';
7
+ export interface IDeviceTypeDetail {
8
+ id: DeviceType;
9
+ name: string;
10
+ technology: DeviceTechnologyType[];
11
+ endpoint?: string;
12
+ manufacturer?: DeviceManufacturer;
13
+ protocols: ConnectorProtocol[];
14
+ deviceIdFormat?: DeviceIdFormat;
15
+ deviceIdRequired?: boolean;
16
+ visible: boolean;
17
+ }
18
+ export declare const DEVICE_TYPE_DETAILS: IDeviceTypeDetail[];
19
+ export declare const getDeviceTypeById: (id: DeviceType) => IDeviceTypeDetail;
20
+ declare type QuerySignature = {
21
+ [P in keyof IDeviceTypeDetail]?: IDeviceTypeDetail[P];
22
+ };
23
+ export declare const getDeviceTypes: (query: QuerySignature) => IDeviceTypeDetail[];
24
+ export declare const getDeviceTypesForFormat: (deviceIdFormat: DeviceIdFormat) => DeviceType[];
25
+ export declare const getDeviceTypesWithRequiredDeviceId: () => DeviceType[];
26
+ export declare const getDeviceTypesForManufacturer: (manufacturer: DeviceManufacturer) => DeviceType[];
27
+ export declare const isIoTX3: (id: DeviceType) => boolean;
28
+ export declare const isDeviceIdRequired: (id: DeviceType) => boolean;
29
+ export {};
@@ -1,187 +1,187 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isDeviceIdRequired = exports.isIoTX3 = exports.getDeviceTypesForManufacturer = exports.getDeviceTypesWithRequiredDeviceId = exports.getDeviceTypesForFormat = exports.getDeviceTypes = exports.getDeviceTypeById = exports.DEVICE_TYPE_DETAILS = exports.DEVICE_TYPES = void 0;
4
- exports.DEVICE_TYPES = [
5
- 'B1',
6
- 'A1',
7
- 'RF1A4',
8
- 'RF1F',
9
- 'HD1',
10
- 'ZEBRA',
11
- 'IMPINJ',
12
- 'TURCK',
13
- 'DIGITAL_MATTER',
14
- 'KKM',
15
- 'MINEW',
16
- 'FR22',
17
- 'OTHER',
18
- 'APPLICATION'
19
- ];
20
- exports.DEVICE_TYPE_DETAILS = [
21
- {
22
- id: 'B1',
23
- name: 'Spotto B1 Bluetooth Reader',
24
- technology: ['BLE'],
25
- endpoint: 'iotx3/{readerId}',
26
- manufacturer: 'iotx3',
27
- protocols: ['http'],
28
- deviceIdFormat: 'mac',
29
- deviceIdRequired: true,
30
- visible: true
31
- },
32
- {
33
- id: 'A1',
34
- name: 'Spotto A1 Bluetooth Reader',
35
- technology: ['BLE'],
36
- endpoint: 'spotto',
37
- manufacturer: 'spotto',
38
- protocols: ['mqtt', 'http'],
39
- deviceIdFormat: 'mac',
40
- deviceIdRequired: true,
41
- visible: true
42
- },
43
- {
44
- id: 'RF1A4',
45
- name: 'Spotto RF1A4 RFID Reader',
46
- technology: ['RFID'],
47
- endpoint: 'iotx3/{readerId}',
48
- protocols: ['http'],
49
- deviceIdFormat: 'mac',
50
- deviceIdRequired: true,
51
- visible: true
52
- },
53
- {
54
- id: 'RF1F',
55
- name: 'Spotto RF1F RFID Reader',
56
- technology: ['RFID'],
57
- endpoint: 'iotx3/{readerId}',
58
- protocols: ['http'],
59
- deviceIdFormat: 'mac',
60
- deviceIdRequired: true,
61
- visible: true
62
- },
63
- {
64
- id: 'HD1',
65
- name: 'Spotto HD1 HID Reader',
66
- technology: ['HID'],
67
- endpoint: 'iotx3/{readerId}',
68
- protocols: ['http'],
69
- deviceIdFormat: 'mac',
70
- deviceIdRequired: true,
71
- visible: true
72
- },
73
- {
74
- id: 'ZEBRA',
75
- name: 'Zebra RFID Reader',
76
- technology: ['RFID'],
77
- endpoint: 'zebra/{readerId}',
78
- manufacturer: 'zebra',
79
- protocols: ['http'],
80
- visible: true
81
- },
82
- {
83
- id: 'IMPINJ',
84
- name: 'Impinj RFID Reader',
85
- technology: ['RFID'],
86
- endpoint: 'impinj/{readerId}',
87
- manufacturer: 'impinj',
88
- protocols: ['http'],
89
- visible: true
90
- },
91
- {
92
- id: 'TURCK',
93
- name: 'Turck Handheld RFID Reader',
94
- technology: ['RFID'],
95
- endpoint: 'turck/{readerId}?timestamp=GMTTIME&epc=EPC',
96
- manufacturer: 'turck',
97
- protocols: ['http'],
98
- visible: true
99
- },
100
- {
101
- id: 'DIGITAL_MATTER',
102
- name: 'Digital Matter BLE Reader',
103
- technology: ['BLE'],
104
- endpoint: 'digitalmatter',
105
- manufacturer: 'digitalmatter',
106
- protocols: ['http'],
107
- deviceIdFormat: 'string',
108
- deviceIdRequired: true,
109
- visible: true
110
- },
111
- {
112
- id: 'KKM',
113
- name: 'KKM BLE Reader',
114
- technology: ['BLE'],
115
- protocols: ['mqtt', 'http'],
116
- endpoint: 'kb',
117
- manufacturer: 'kkm',
118
- deviceIdFormat: 'mac',
119
- deviceIdRequired: true,
120
- visible: true
121
- },
122
- {
123
- id: 'MINEW',
124
- name: 'Minew BLE Reader',
125
- technology: ['BLE'],
126
- protocols: ['mqtt', 'http'],
127
- endpoint: 'minew',
128
- manufacturer: 'minew',
129
- deviceIdFormat: 'mac',
130
- deviceIdRequired: true,
131
- visible: true
132
- },
133
- {
134
- id: 'FR22',
135
- name: 'Bradley FR22 RFID Reader',
136
- technology: ['RFID'],
137
- endpoint: 'FR22/{organisationId}/{deviceId}',
138
- protocols: ['mqtt'],
139
- deviceIdFormat: 'string',
140
- deviceIdRequired: false,
141
- visible: true
142
- },
143
- {
144
- id: 'OTHER',
145
- name: 'Custom Reader (BYO Device)',
146
- technology: ['RFID', 'BLE', 'HID'],
147
- endpoint: 'other/{readerId}',
148
- protocols: ['http'],
149
- deviceIdFormat: 'string',
150
- deviceIdRequired: false,
151
- visible: true
152
- },
153
- {
154
- id: 'APPLICATION',
155
- name: 'Spotto Detector Application',
156
- technology: ['BLE'],
157
- endpoint: 'detector/{readerId}',
158
- protocols: ['http'],
159
- deviceIdFormat: 'string',
160
- deviceIdRequired: true,
161
- visible: false
162
- }
163
- ];
164
- const getDeviceTypeById = (id) => exports.DEVICE_TYPE_DETAILS.find((detail) => detail.id === id);
165
- exports.getDeviceTypeById = getDeviceTypeById;
166
- const getDeviceTypes = (query) => exports.DEVICE_TYPE_DETAILS.filter((type) => Object.keys(query).every((key) => {
167
- const testField = query[key];
168
- const field = type[key];
169
- if ((testField === null || testField === void 0 ? void 0 : testField.constructor) === Array && (field === null || field === void 0 ? void 0 : field.constructor) === Array) {
170
- const _field = field;
171
- const _testField = testField;
172
- return _field.every((item) => _testField === null || _testField === void 0 ? void 0 : _testField.includes(item));
173
- }
174
- return testField === field;
175
- }));
176
- exports.getDeviceTypes = getDeviceTypes;
177
- const getDeviceTypesForFormat = (deviceIdFormat) => (0, exports.getDeviceTypes)({ deviceIdFormat }).map(({ id }) => id);
178
- exports.getDeviceTypesForFormat = getDeviceTypesForFormat;
179
- const getDeviceTypesWithRequiredDeviceId = () => (0, exports.getDeviceTypes)({ deviceIdRequired: true }).map(({ id }) => id);
180
- exports.getDeviceTypesWithRequiredDeviceId = getDeviceTypesWithRequiredDeviceId;
181
- const getDeviceTypesForManufacturer = (manufacturer) => (0, exports.getDeviceTypes)({ manufacturer }).map(({ id }) => id);
182
- exports.getDeviceTypesForManufacturer = getDeviceTypesForManufacturer;
183
- const isIoTX3 = (id) => (0, exports.getDeviceTypesForManufacturer)('iotx3').includes(id);
184
- exports.isIoTX3 = isIoTX3;
185
- const isDeviceIdRequired = (id) => (0, exports.getDeviceTypesWithRequiredDeviceId)().includes(id);
186
- exports.isDeviceIdRequired = isDeviceIdRequired;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isDeviceIdRequired = exports.isIoTX3 = exports.getDeviceTypesForManufacturer = exports.getDeviceTypesWithRequiredDeviceId = exports.getDeviceTypesForFormat = exports.getDeviceTypes = exports.getDeviceTypeById = exports.DEVICE_TYPE_DETAILS = exports.DEVICE_TYPES = void 0;
4
+ exports.DEVICE_TYPES = [
5
+ 'B1',
6
+ 'A1',
7
+ 'RF1A4',
8
+ 'RF1F',
9
+ 'HD1',
10
+ 'ZEBRA',
11
+ 'IMPINJ',
12
+ 'TURCK',
13
+ 'DIGITAL_MATTER',
14
+ 'KKM',
15
+ 'MINEW',
16
+ 'FR22',
17
+ 'OTHER',
18
+ 'APPLICATION'
19
+ ];
20
+ exports.DEVICE_TYPE_DETAILS = [
21
+ {
22
+ id: 'B1',
23
+ name: 'Spotto B1 Bluetooth Reader',
24
+ technology: ['BLE'],
25
+ endpoint: 'iotx3/{readerId}',
26
+ manufacturer: 'iotx3',
27
+ protocols: ['http'],
28
+ deviceIdFormat: 'mac',
29
+ deviceIdRequired: true,
30
+ visible: true
31
+ },
32
+ {
33
+ id: 'A1',
34
+ name: 'Spotto A1 Bluetooth Reader',
35
+ technology: ['BLE'],
36
+ endpoint: 'spotto',
37
+ manufacturer: 'spotto',
38
+ protocols: ['mqtt', 'http'],
39
+ deviceIdFormat: 'mac',
40
+ deviceIdRequired: true,
41
+ visible: true
42
+ },
43
+ {
44
+ id: 'RF1A4',
45
+ name: 'Spotto RF1A4 RFID Reader',
46
+ technology: ['RFID'],
47
+ endpoint: 'iotx3/{readerId}',
48
+ protocols: ['http'],
49
+ deviceIdFormat: 'mac',
50
+ deviceIdRequired: true,
51
+ visible: true
52
+ },
53
+ {
54
+ id: 'RF1F',
55
+ name: 'Spotto RF1F RFID Reader',
56
+ technology: ['RFID'],
57
+ endpoint: 'iotx3/{readerId}',
58
+ protocols: ['http'],
59
+ deviceIdFormat: 'mac',
60
+ deviceIdRequired: true,
61
+ visible: true
62
+ },
63
+ {
64
+ id: 'HD1',
65
+ name: 'Spotto HD1 HID Reader',
66
+ technology: ['HID'],
67
+ endpoint: 'iotx3/{readerId}',
68
+ protocols: ['http'],
69
+ deviceIdFormat: 'mac',
70
+ deviceIdRequired: true,
71
+ visible: true
72
+ },
73
+ {
74
+ id: 'ZEBRA',
75
+ name: 'Zebra RFID Reader',
76
+ technology: ['RFID'],
77
+ endpoint: 'zebra/{readerId}',
78
+ manufacturer: 'zebra',
79
+ protocols: ['http'],
80
+ visible: true
81
+ },
82
+ {
83
+ id: 'IMPINJ',
84
+ name: 'Impinj RFID Reader',
85
+ technology: ['RFID'],
86
+ endpoint: 'impinj/{readerId}',
87
+ manufacturer: 'impinj',
88
+ protocols: ['http'],
89
+ visible: true
90
+ },
91
+ {
92
+ id: 'TURCK',
93
+ name: 'Turck Handheld RFID Reader',
94
+ technology: ['RFID'],
95
+ endpoint: 'turck/{readerId}?timestamp=GMTTIME&epc=EPC',
96
+ manufacturer: 'turck',
97
+ protocols: ['http'],
98
+ visible: true
99
+ },
100
+ {
101
+ id: 'DIGITAL_MATTER',
102
+ name: 'Digital Matter BLE Reader',
103
+ technology: ['BLE'],
104
+ endpoint: 'digitalmatter',
105
+ manufacturer: 'digitalmatter',
106
+ protocols: ['http'],
107
+ deviceIdFormat: 'string',
108
+ deviceIdRequired: true,
109
+ visible: true
110
+ },
111
+ {
112
+ id: 'KKM',
113
+ name: 'KKM BLE Reader',
114
+ technology: ['BLE'],
115
+ protocols: ['mqtt', 'http'],
116
+ endpoint: 'kb',
117
+ manufacturer: 'kkm',
118
+ deviceIdFormat: 'mac',
119
+ deviceIdRequired: true,
120
+ visible: true
121
+ },
122
+ {
123
+ id: 'MINEW',
124
+ name: 'Minew BLE Reader',
125
+ technology: ['BLE'],
126
+ protocols: ['mqtt', 'http'],
127
+ endpoint: 'minew',
128
+ manufacturer: 'minew',
129
+ deviceIdFormat: 'mac',
130
+ deviceIdRequired: true,
131
+ visible: true
132
+ },
133
+ {
134
+ id: 'FR22',
135
+ name: 'Bradley FR22 RFID Reader',
136
+ technology: ['RFID'],
137
+ endpoint: 'FR22/{organisationId}/{deviceId}',
138
+ protocols: ['mqtt'],
139
+ deviceIdFormat: 'string',
140
+ deviceIdRequired: false,
141
+ visible: true
142
+ },
143
+ {
144
+ id: 'OTHER',
145
+ name: 'Custom Reader (BYO Device)',
146
+ technology: ['RFID', 'BLE', 'HID'],
147
+ endpoint: 'other/{readerId}',
148
+ protocols: ['http'],
149
+ deviceIdFormat: 'string',
150
+ deviceIdRequired: false,
151
+ visible: true
152
+ },
153
+ {
154
+ id: 'APPLICATION',
155
+ name: 'Spotto Detector Application',
156
+ technology: ['BLE'],
157
+ endpoint: 'detector/{readerId}',
158
+ protocols: ['http'],
159
+ deviceIdFormat: 'string',
160
+ deviceIdRequired: true,
161
+ visible: false
162
+ }
163
+ ];
164
+ const getDeviceTypeById = (id) => exports.DEVICE_TYPE_DETAILS.find((detail) => detail.id === id);
165
+ exports.getDeviceTypeById = getDeviceTypeById;
166
+ const getDeviceTypes = (query) => exports.DEVICE_TYPE_DETAILS.filter((type) => Object.keys(query).every((key) => {
167
+ const testField = query[key];
168
+ const field = type[key];
169
+ if ((testField === null || testField === void 0 ? void 0 : testField.constructor) === Array && (field === null || field === void 0 ? void 0 : field.constructor) === Array) {
170
+ const _field = field;
171
+ const _testField = testField;
172
+ return _field.every((item) => _testField === null || _testField === void 0 ? void 0 : _testField.includes(item));
173
+ }
174
+ return testField === field;
175
+ }));
176
+ exports.getDeviceTypes = getDeviceTypes;
177
+ const getDeviceTypesForFormat = (deviceIdFormat) => (0, exports.getDeviceTypes)({ deviceIdFormat }).map(({ id }) => id);
178
+ exports.getDeviceTypesForFormat = getDeviceTypesForFormat;
179
+ const getDeviceTypesWithRequiredDeviceId = () => (0, exports.getDeviceTypes)({ deviceIdRequired: true }).map(({ id }) => id);
180
+ exports.getDeviceTypesWithRequiredDeviceId = getDeviceTypesWithRequiredDeviceId;
181
+ const getDeviceTypesForManufacturer = (manufacturer) => (0, exports.getDeviceTypes)({ manufacturer }).map(({ id }) => id);
182
+ exports.getDeviceTypesForManufacturer = getDeviceTypesForManufacturer;
183
+ const isIoTX3 = (id) => (0, exports.getDeviceTypesForManufacturer)('iotx3').includes(id);
184
+ exports.isIoTX3 = isIoTX3;
185
+ const isDeviceIdRequired = (id) => (0, exports.getDeviceTypesWithRequiredDeviceId)().includes(id);
186
+ exports.isDeviceIdRequired = isDeviceIdRequired;
187
187
  //# sourceMappingURL=deviceTypes.js.map
@@ -1,2 +1,2 @@
1
- export * from './deviceTypes';
2
- export * from './types';
1
+ export * from './deviceTypes';
2
+ export * from './types';
@@ -1,19 +1,19 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./deviceTypes"), exports);
18
- __exportStar(require("./types"), exports);
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./deviceTypes"), exports);
18
+ __exportStar(require("./types"), exports);
19
19
  //# sourceMappingURL=index.js.map
@@ -1,9 +1,9 @@
1
- export declare type ReaderType = 'FIXED' | 'ROVING' | 'MOVING';
2
- export declare const READER_TYPES: ReaderType[];
3
- export interface IReaderTypeDetail {
4
- id: ReaderType;
5
- name: string;
6
- description: string;
7
- visible: boolean;
8
- }
9
- export declare const READER_TYPE_DETAILS: IReaderTypeDetail[];
1
+ export declare type ReaderType = 'FIXED' | 'ROVING' | 'MOVING';
2
+ export declare const READER_TYPES: ReaderType[];
3
+ export interface IReaderTypeDetail {
4
+ id: ReaderType;
5
+ name: string;
6
+ description: string;
7
+ visible: boolean;
8
+ }
9
+ export declare const READER_TYPE_DETAILS: IReaderTypeDetail[];
@@ -1,25 +1,25 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.READER_TYPE_DETAILS = exports.READER_TYPES = void 0;
4
- exports.READER_TYPES = ['FIXED', 'ROVING', 'MOVING'];
5
- exports.READER_TYPE_DETAILS = [
6
- {
7
- id: 'FIXED',
8
- name: 'Fixed',
9
- description: 'Plugged in with a Spotto location assigned. These readers are fixed in place and do not move unless the Spotto location is manually reassigned.',
10
- visible: true
11
- },
12
- {
13
- id: 'ROVING',
14
- name: 'Handheld',
15
- description: 'Typically RFID handheld scanners or a BLE phone applications. These readers detect location tags or use GPS to locate assets instead of being linked to a Spotto location',
16
- visible: true
17
- },
18
- {
19
- id: 'MOVING',
20
- name: 'Vehicle',
21
- description: 'GPS enabled readers attached to a vehicle will detect the location and any assets that are travelling with it',
22
- visible: true
23
- }
24
- ];
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.READER_TYPE_DETAILS = exports.READER_TYPES = void 0;
4
+ exports.READER_TYPES = ['FIXED', 'ROVING', 'MOVING'];
5
+ exports.READER_TYPE_DETAILS = [
6
+ {
7
+ id: 'FIXED',
8
+ name: 'Fixed',
9
+ description: 'Plugged in with a Spotto location assigned. These readers are fixed in place and do not move unless the Spotto location is manually reassigned.',
10
+ visible: true
11
+ },
12
+ {
13
+ id: 'ROVING',
14
+ name: 'Handheld',
15
+ description: 'Typically RFID handheld scanners or a BLE phone applications. These readers detect location tags or use GPS to locate assets instead of being linked to a Spotto location',
16
+ visible: true
17
+ },
18
+ {
19
+ id: 'MOVING',
20
+ name: 'Vehicle',
21
+ description: 'GPS enabled readers attached to a vehicle will detect the location and any assets that are travelling with it',
22
+ visible: true
23
+ }
24
+ ];
25
25
  //# sourceMappingURL=types.js.map
@@ -1,2 +1,2 @@
1
- export * from './query';
2
- export * from './response';
1
+ export * from './query';
2
+ export * from './response';
@@ -1,19 +1,19 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./query"), exports);
18
- __exportStar(require("./response"), exports);
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./query"), exports);
18
+ __exportStar(require("./response"), exports);
19
19
  //# sourceMappingURL=index.js.map