@xyo-network/api 2.74.5 → 2.75.2

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 (752) hide show
  1. package/dist/browser/Api/Api.cjs +188 -0
  2. package/dist/browser/Api/Api.cjs.map +1 -0
  3. package/dist/browser/Api/Api.d.cts.map +1 -0
  4. package/dist/browser/Api/Api.d.mts.map +1 -0
  5. package/dist/browser/Api/Api.d.ts +12 -0
  6. package/dist/browser/Api/Api.d.ts.map +1 -0
  7. package/dist/browser/Api/Api.js +15 -0
  8. package/dist/browser/Api/Api.js.map +1 -0
  9. package/dist/browser/Api/index.cjs +190 -0
  10. package/dist/browser/Api/index.cjs.map +1 -0
  11. package/dist/browser/Api/index.d.cts.map +1 -0
  12. package/dist/browser/Api/index.d.mts.map +1 -0
  13. package/dist/browser/Api/index.d.ts +2 -0
  14. package/dist/browser/Api/index.d.ts.map +1 -0
  15. package/dist/browser/Api/index.js +2 -0
  16. package/dist/browser/Api/index.js.map +1 -0
  17. package/dist/browser/Base.cjs +123 -0
  18. package/dist/browser/Base.cjs.map +1 -0
  19. package/dist/browser/Base.d.cts.map +1 -0
  20. package/dist/browser/Base.d.mts.map +1 -0
  21. package/dist/browser/Base.d.ts +32 -0
  22. package/dist/browser/Base.d.ts.map +1 -0
  23. package/dist/browser/Base.js +101 -0
  24. package/dist/browser/Base.js.map +1 -0
  25. package/dist/browser/Diviner/LocationDiviner/LocationDivinerApi.cjs +55 -0
  26. package/dist/browser/Diviner/LocationDiviner/LocationDivinerApi.cjs.map +1 -0
  27. package/dist/browser/Diviner/LocationDiviner/LocationDivinerApi.d.cts.map +1 -0
  28. package/dist/browser/Diviner/LocationDiviner/LocationDivinerApi.d.mts.map +1 -0
  29. package/dist/browser/Diviner/LocationDiviner/LocationDivinerApi.d.ts +12 -0
  30. package/dist/browser/Diviner/LocationDiviner/LocationDivinerApi.d.ts.map +1 -0
  31. package/dist/browser/Diviner/LocationDiviner/LocationDivinerApi.js +23 -0
  32. package/dist/browser/Diviner/LocationDiviner/LocationDivinerApi.js.map +1 -0
  33. package/dist/browser/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.cjs +34 -0
  34. package/dist/browser/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.cjs.map +1 -0
  35. package/dist/browser/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.cts.map +1 -0
  36. package/dist/browser/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.mts.map +1 -0
  37. package/dist/browser/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.ts +10 -0
  38. package/dist/browser/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.ts.map +1 -0
  39. package/dist/browser/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.js +12 -0
  40. package/dist/browser/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.js.map +1 -0
  41. package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.cjs +19 -0
  42. package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.cjs.map +1 -0
  43. package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.cts.map +1 -0
  44. package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.mts.map +1 -0
  45. package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.ts +5 -0
  46. package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.ts.map +1 -0
  47. package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.js +1 -0
  48. package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.js.map +1 -0
  49. package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.cjs +33 -0
  50. package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.cjs.map +1 -0
  51. package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.cts.map +1 -0
  52. package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.mts.map +1 -0
  53. package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.ts +12 -0
  54. package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.ts.map +1 -0
  55. package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.js +11 -0
  56. package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.js.map +1 -0
  57. package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.cjs +35 -0
  58. package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.cjs.map +1 -0
  59. package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.cts.map +1 -0
  60. package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.mts.map +1 -0
  61. package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.ts +3 -0
  62. package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.ts.map +1 -0
  63. package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.js +3 -0
  64. package/dist/browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.js.map +1 -0
  65. package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.cjs +33 -0
  66. package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.cjs.map +1 -0
  67. package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.cts.map +1 -0
  68. package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.mts.map +1 -0
  69. package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.ts +12 -0
  70. package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.ts.map +1 -0
  71. package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.js +11 -0
  72. package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.js.map +1 -0
  73. package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.cjs +35 -0
  74. package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.cjs.map +1 -0
  75. package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.cts.map +1 -0
  76. package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.mts.map +1 -0
  77. package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.ts +2 -0
  78. package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.ts.map +1 -0
  79. package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.js +2 -0
  80. package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.js.map +1 -0
  81. package/dist/browser/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.cjs +19 -0
  82. package/dist/browser/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.cjs.map +1 -0
  83. package/dist/browser/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.cts.map +1 -0
  84. package/dist/browser/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.mts.map +1 -0
  85. package/dist/browser/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.ts +18 -0
  86. package/dist/browser/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.ts.map +1 -0
  87. package/dist/browser/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.js +1 -0
  88. package/dist/browser/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.js.map +1 -0
  89. package/dist/browser/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.cjs +19 -0
  90. package/dist/browser/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.cjs.map +1 -0
  91. package/dist/browser/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.cts.map +1 -0
  92. package/dist/browser/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.mts.map +1 -0
  93. package/dist/browser/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.ts +5 -0
  94. package/dist/browser/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.ts.map +1 -0
  95. package/dist/browser/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.js +1 -0
  96. package/dist/browser/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.js.map +1 -0
  97. package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuerySchema.cjs +34 -0
  98. package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuerySchema.cjs.map +1 -0
  99. package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuerySchema.d.cts.map +1 -0
  100. package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuerySchema.d.mts.map +1 -0
  101. package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuerySchema.d.ts +6 -0
  102. package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuerySchema.d.ts.map +1 -0
  103. package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuerySchema.js +12 -0
  104. package/dist/browser/Diviner/LocationDiviner/Queries/LocationQuerySchema.js.map +1 -0
  105. package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.cjs +19 -0
  106. package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.cjs.map +1 -0
  107. package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.cts.map +1 -0
  108. package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.mts.map +1 -0
  109. package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.ts +8 -0
  110. package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.ts.map +1 -0
  111. package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.js +1 -0
  112. package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.js.map +1 -0
  113. package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.cjs +33 -0
  114. package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.cjs.map +1 -0
  115. package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.cts.map +1 -0
  116. package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.mts.map +1 -0
  117. package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.ts +12 -0
  118. package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.ts.map +1 -0
  119. package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.js +11 -0
  120. package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.js.map +1 -0
  121. package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.cjs +35 -0
  122. package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.cjs.map +1 -0
  123. package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.cts.map +1 -0
  124. package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.mts.map +1 -0
  125. package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.ts +3 -0
  126. package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.ts.map +1 -0
  127. package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.js +3 -0
  128. package/dist/browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.js.map +1 -0
  129. package/dist/browser/Diviner/LocationDiviner/Queries/index.cjs +66 -0
  130. package/dist/browser/Diviner/LocationDiviner/Queries/index.cjs.map +1 -0
  131. package/dist/browser/Diviner/LocationDiviner/Queries/index.d.cts.map +1 -0
  132. package/dist/browser/Diviner/LocationDiviner/Queries/index.d.mts.map +1 -0
  133. package/dist/browser/Diviner/LocationDiviner/Queries/index.d.ts +7 -0
  134. package/dist/browser/Diviner/LocationDiviner/Queries/index.d.ts.map +1 -0
  135. package/dist/browser/Diviner/LocationDiviner/Queries/index.js +7 -0
  136. package/dist/browser/Diviner/LocationDiviner/Queries/index.js.map +1 -0
  137. package/dist/browser/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.cjs +27 -0
  138. package/dist/browser/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.cjs.map +1 -0
  139. package/dist/browser/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.cts.map +1 -0
  140. package/dist/browser/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.mts.map +1 -0
  141. package/dist/browser/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.ts +13 -0
  142. package/dist/browser/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.ts.map +1 -0
  143. package/dist/browser/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.js +5 -0
  144. package/dist/browser/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.js.map +1 -0
  145. package/dist/browser/Diviner/LocationDiviner/Witnesses/LocationWitness.cjs +27 -0
  146. package/dist/browser/Diviner/LocationDiviner/Witnesses/LocationWitness.cjs.map +1 -0
  147. package/dist/browser/Diviner/LocationDiviner/Witnesses/LocationWitness.d.cts.map +1 -0
  148. package/dist/browser/Diviner/LocationDiviner/Witnesses/LocationWitness.d.mts.map +1 -0
  149. package/dist/browser/Diviner/LocationDiviner/Witnesses/LocationWitness.d.ts +21 -0
  150. package/dist/browser/Diviner/LocationDiviner/Witnesses/LocationWitness.d.ts.map +1 -0
  151. package/dist/browser/Diviner/LocationDiviner/Witnesses/LocationWitness.js +5 -0
  152. package/dist/browser/Diviner/LocationDiviner/Witnesses/LocationWitness.js.map +1 -0
  153. package/dist/browser/Diviner/LocationDiviner/Witnesses/index.cjs +33 -0
  154. package/dist/browser/Diviner/LocationDiviner/Witnesses/index.cjs.map +1 -0
  155. package/dist/browser/Diviner/LocationDiviner/Witnesses/index.d.cts.map +1 -0
  156. package/dist/browser/Diviner/LocationDiviner/Witnesses/index.d.mts.map +1 -0
  157. package/dist/browser/Diviner/LocationDiviner/Witnesses/index.d.ts +3 -0
  158. package/dist/browser/Diviner/LocationDiviner/Witnesses/index.d.ts.map +1 -0
  159. package/dist/browser/Diviner/LocationDiviner/Witnesses/index.js +3 -0
  160. package/dist/browser/Diviner/LocationDiviner/Witnesses/index.js.map +1 -0
  161. package/dist/browser/Diviner/LocationDiviner/index.cjs +106 -0
  162. package/dist/browser/Diviner/LocationDiviner/index.cjs.map +1 -0
  163. package/dist/browser/Diviner/LocationDiviner/index.d.cts.map +1 -0
  164. package/dist/browser/Diviner/LocationDiviner/index.d.mts.map +1 -0
  165. package/dist/browser/Diviner/LocationDiviner/index.d.ts +5 -0
  166. package/dist/browser/Diviner/LocationDiviner/index.d.ts.map +1 -0
  167. package/dist/browser/Diviner/LocationDiviner/index.js +5 -0
  168. package/dist/browser/Diviner/LocationDiviner/index.js.map +1 -0
  169. package/dist/browser/Diviner/LocationDiviner/models.cjs +19 -0
  170. package/dist/browser/Diviner/LocationDiviner/models.cjs.map +1 -0
  171. package/dist/browser/Diviner/LocationDiviner/models.d.cts.map +1 -0
  172. package/dist/browser/Diviner/LocationDiviner/models.d.mts.map +1 -0
  173. package/dist/browser/Diviner/LocationDiviner/models.d.ts +5 -0
  174. package/dist/browser/Diviner/LocationDiviner/models.d.ts.map +1 -0
  175. package/dist/browser/Diviner/LocationDiviner/models.js +1 -0
  176. package/dist/browser/Diviner/LocationDiviner/models.js.map +1 -0
  177. package/dist/browser/Diviner/RemoteDivinerConfig.cjs +27 -0
  178. package/dist/browser/Diviner/RemoteDivinerConfig.cjs.map +1 -0
  179. package/dist/browser/Diviner/RemoteDivinerConfig.d.cts.map +1 -0
  180. package/dist/browser/Diviner/RemoteDivinerConfig.d.mts.map +1 -0
  181. package/dist/browser/Diviner/RemoteDivinerConfig.d.ts +11 -0
  182. package/dist/browser/Diviner/RemoteDivinerConfig.d.ts.map +1 -0
  183. package/dist/browser/Diviner/RemoteDivinerConfig.js +5 -0
  184. package/dist/browser/Diviner/RemoteDivinerConfig.js.map +1 -0
  185. package/dist/browser/Diviner/RemoteDivinerError.cjs +35 -0
  186. package/dist/browser/Diviner/RemoteDivinerError.cjs.map +1 -0
  187. package/dist/browser/Diviner/RemoteDivinerError.d.cts.map +1 -0
  188. package/dist/browser/Diviner/RemoteDivinerError.d.mts.map +1 -0
  189. package/dist/browser/Diviner/RemoteDivinerError.d.ts +6 -0
  190. package/dist/browser/Diviner/RemoteDivinerError.d.ts.map +1 -0
  191. package/dist/browser/Diviner/RemoteDivinerError.js +13 -0
  192. package/dist/browser/Diviner/RemoteDivinerError.js.map +1 -0
  193. package/dist/browser/Diviner/index.cjs +110 -0
  194. package/dist/browser/Diviner/index.cjs.map +1 -0
  195. package/dist/browser/Diviner/index.d.cts.map +1 -0
  196. package/dist/browser/Diviner/index.d.mts.map +1 -0
  197. package/dist/browser/Diviner/index.d.ts +3 -0
  198. package/dist/browser/Diviner/index.d.ts.map +1 -0
  199. package/dist/browser/Diviner/index.js +3 -0
  200. package/dist/browser/Diviner/index.js.map +1 -0
  201. package/dist/browser/Simple.cjs +176 -0
  202. package/dist/browser/Simple.cjs.map +1 -0
  203. package/dist/browser/Simple.d.cts.map +1 -0
  204. package/dist/browser/Simple.d.mts.map +1 -0
  205. package/dist/browser/Simple.d.ts +22 -0
  206. package/dist/browser/Simple.d.ts.map +1 -0
  207. package/dist/browser/Simple.js +48 -0
  208. package/dist/browser/Simple.js.map +1 -0
  209. package/dist/browser/Test/index.cjs +56 -0
  210. package/dist/browser/Test/index.cjs.map +1 -0
  211. package/dist/browser/Test/index.d.cts.map +1 -0
  212. package/dist/browser/Test/index.d.mts.map +1 -0
  213. package/dist/browser/Test/index.d.ts +3 -0
  214. package/dist/browser/Test/index.d.ts.map +1 -0
  215. package/dist/browser/Test/index.js +3 -0
  216. package/dist/browser/Test/index.js.map +1 -0
  217. package/dist/browser/Test/testBoundWitness.cjs +38 -0
  218. package/dist/browser/Test/testBoundWitness.cjs.map +1 -0
  219. package/dist/browser/Test/testBoundWitness.d.cts.map +1 -0
  220. package/dist/browser/Test/testBoundWitness.d.mts.map +1 -0
  221. package/dist/browser/Test/testBoundWitness.d.ts +4 -0
  222. package/dist/browser/Test/testBoundWitness.d.ts.map +1 -0
  223. package/dist/browser/Test/testBoundWitness.js +16 -0
  224. package/dist/browser/Test/testBoundWitness.js.map +1 -0
  225. package/dist/browser/Test/testPayload.cjs +39 -0
  226. package/dist/browser/Test/testPayload.cjs.map +1 -0
  227. package/dist/browser/Test/testPayload.d.cts.map +1 -0
  228. package/dist/browser/Test/testPayload.d.mts.map +1 -0
  229. package/dist/browser/Test/testPayload.d.ts +6 -0
  230. package/dist/browser/Test/testPayload.d.ts.map +1 -0
  231. package/dist/browser/Test/testPayload.js +17 -0
  232. package/dist/browser/Test/testPayload.js.map +1 -0
  233. package/dist/browser/WithArchive.cjs +19 -0
  234. package/dist/browser/WithArchive.cjs.map +1 -0
  235. package/dist/browser/WithArchive.d.cts.map +1 -0
  236. package/dist/browser/WithArchive.d.mts.map +1 -0
  237. package/dist/browser/WithArchive.d.ts +4 -0
  238. package/dist/browser/WithArchive.d.ts.map +1 -0
  239. package/dist/browser/WithArchive.js +1 -0
  240. package/dist/browser/WithArchive.js.map +1 -0
  241. package/dist/{index.js → browser/index.cjs} +1 -21
  242. package/dist/browser/index.cjs.map +1 -0
  243. package/dist/browser/index.d.cts.map +1 -0
  244. package/dist/browser/index.d.mts.map +1 -0
  245. package/dist/browser/index.d.ts +7 -0
  246. package/dist/browser/index.d.ts.map +1 -0
  247. package/dist/browser/index.js +7 -0
  248. package/dist/browser/index.js.map +1 -0
  249. package/dist/browser/models/ArchivePath.cjs +19 -0
  250. package/dist/browser/models/ArchivePath.cjs.map +1 -0
  251. package/dist/browser/models/ArchivePath.d.cts.map +1 -0
  252. package/dist/browser/models/ArchivePath.d.mts.map +1 -0
  253. package/dist/browser/models/ArchivePath.d.ts +4 -0
  254. package/dist/browser/models/ArchivePath.d.ts.map +1 -0
  255. package/dist/browser/models/ArchivePath.js +1 -0
  256. package/dist/browser/models/ArchivePath.js.map +1 -0
  257. package/dist/browser/models/index.cjs +19 -0
  258. package/dist/browser/models/index.cjs.map +1 -0
  259. package/dist/browser/models/index.d.cts.map +1 -0
  260. package/dist/browser/models/index.d.mts.map +1 -0
  261. package/dist/browser/models/index.d.ts +2 -0
  262. package/dist/browser/models/index.d.ts.map +1 -0
  263. package/dist/browser/models/index.js +2 -0
  264. package/dist/browser/models/index.js.map +1 -0
  265. package/dist/browser/objToQuery.cjs +31 -0
  266. package/dist/browser/objToQuery.cjs.map +1 -0
  267. package/dist/browser/objToQuery.d.cts.map +1 -0
  268. package/dist/browser/objToQuery.d.mts.map +1 -0
  269. package/dist/browser/objToQuery.d.ts +2 -0
  270. package/dist/browser/objToQuery.d.ts.map +1 -0
  271. package/dist/browser/objToQuery.js +9 -0
  272. package/dist/browser/objToQuery.js.map +1 -0
  273. package/dist/docs.json +402 -402
  274. package/dist/node/Api/Api.d.cts +12 -0
  275. package/dist/node/Api/Api.d.cts.map +1 -0
  276. package/dist/node/Api/Api.d.mts +12 -0
  277. package/dist/node/Api/Api.d.mts.map +1 -0
  278. package/dist/node/Api/Api.d.ts +12 -0
  279. package/dist/node/Api/Api.d.ts.map +1 -0
  280. package/dist/node/Api/Api.js +196 -0
  281. package/dist/node/Api/Api.js.map +1 -0
  282. package/dist/node/Api/Api.mjs +171 -0
  283. package/dist/node/Api/Api.mjs.map +1 -0
  284. package/dist/node/Api/index.d.cts +2 -0
  285. package/dist/node/Api/index.d.cts.map +1 -0
  286. package/dist/node/Api/index.d.mts +2 -0
  287. package/dist/node/Api/index.d.mts.map +1 -0
  288. package/dist/node/Api/index.d.ts +2 -0
  289. package/dist/node/Api/index.d.ts.map +1 -0
  290. package/dist/node/Api/index.js +198 -0
  291. package/dist/node/Api/index.js.map +1 -0
  292. package/dist/node/Api/index.mjs +171 -0
  293. package/dist/node/Api/index.mjs.map +1 -0
  294. package/dist/node/Base.d.cts +32 -0
  295. package/dist/node/Base.d.cts.map +1 -0
  296. package/dist/node/Base.d.mts +32 -0
  297. package/dist/node/Base.d.mts.map +1 -0
  298. package/dist/node/Base.d.ts +32 -0
  299. package/dist/node/Base.d.ts.map +1 -0
  300. package/dist/node/Base.js +131 -0
  301. package/dist/node/Base.js.map +1 -0
  302. package/dist/node/Base.mjs +106 -0
  303. package/dist/node/Base.mjs.map +1 -0
  304. package/dist/node/Diviner/LocationDiviner/LocationDivinerApi.d.cts +12 -0
  305. package/dist/node/Diviner/LocationDiviner/LocationDivinerApi.d.cts.map +1 -0
  306. package/dist/node/Diviner/LocationDiviner/LocationDivinerApi.d.mts +12 -0
  307. package/dist/node/Diviner/LocationDiviner/LocationDivinerApi.d.mts.map +1 -0
  308. package/dist/node/Diviner/LocationDiviner/LocationDivinerApi.d.ts +12 -0
  309. package/dist/node/Diviner/LocationDiviner/LocationDivinerApi.d.ts.map +1 -0
  310. package/dist/node/Diviner/LocationDiviner/LocationDivinerApi.js +59 -0
  311. package/dist/node/Diviner/LocationDiviner/LocationDivinerApi.js.map +1 -0
  312. package/dist/node/Diviner/LocationDiviner/LocationDivinerApi.mjs +34 -0
  313. package/dist/node/Diviner/LocationDiviner/LocationDivinerApi.mjs.map +1 -0
  314. package/dist/node/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.cts +10 -0
  315. package/dist/node/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.cts.map +1 -0
  316. package/dist/node/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.mts +10 -0
  317. package/dist/node/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.mts.map +1 -0
  318. package/dist/node/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.ts +10 -0
  319. package/dist/node/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.ts.map +1 -0
  320. package/dist/node/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.js +39 -0
  321. package/dist/node/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.js.map +1 -0
  322. package/dist/node/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.mjs +13 -0
  323. package/dist/node/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.mjs.map +1 -0
  324. package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.cts +5 -0
  325. package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.cts.map +1 -0
  326. package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.mts +5 -0
  327. package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.mts.map +1 -0
  328. package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.ts +5 -0
  329. package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.ts.map +1 -0
  330. package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.js +19 -0
  331. package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.js.map +1 -0
  332. package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.mjs +1 -0
  333. package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.mjs.map +1 -0
  334. package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.cts +12 -0
  335. package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.cts.map +1 -0
  336. package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.mts +12 -0
  337. package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.mts.map +1 -0
  338. package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.ts +12 -0
  339. package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.ts.map +1 -0
  340. package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.js +39 -0
  341. package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.js.map +1 -0
  342. package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.mjs +12 -0
  343. package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.mjs.map +1 -0
  344. package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.cts +3 -0
  345. package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.cts.map +1 -0
  346. package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.mts +3 -0
  347. package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.mts.map +1 -0
  348. package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.ts +3 -0
  349. package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.ts.map +1 -0
  350. package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.js +41 -0
  351. package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.js.map +1 -0
  352. package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.mjs +12 -0
  353. package/dist/node/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.mjs.map +1 -0
  354. package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.cts +12 -0
  355. package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.cts.map +1 -0
  356. package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.mts +12 -0
  357. package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.mts.map +1 -0
  358. package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.ts +12 -0
  359. package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.ts.map +1 -0
  360. package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.js +39 -0
  361. package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.js.map +1 -0
  362. package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.mjs +12 -0
  363. package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.mjs.map +1 -0
  364. package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.cts +2 -0
  365. package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.cts.map +1 -0
  366. package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.mts +2 -0
  367. package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.mts.map +1 -0
  368. package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.ts +2 -0
  369. package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.ts.map +1 -0
  370. package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.js +41 -0
  371. package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.js.map +1 -0
  372. package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.mjs +12 -0
  373. package/dist/node/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.mjs.map +1 -0
  374. package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.cts +18 -0
  375. package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.cts.map +1 -0
  376. package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.mts +18 -0
  377. package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.mts.map +1 -0
  378. package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.ts +18 -0
  379. package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.ts.map +1 -0
  380. package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.js +19 -0
  381. package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.js.map +1 -0
  382. package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.mjs +1 -0
  383. package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.mjs.map +1 -0
  384. package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.cts +5 -0
  385. package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.cts.map +1 -0
  386. package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.mts +5 -0
  387. package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.mts.map +1 -0
  388. package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.ts +5 -0
  389. package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.ts.map +1 -0
  390. package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.js +19 -0
  391. package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.js.map +1 -0
  392. package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.mjs +1 -0
  393. package/dist/node/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.mjs.map +1 -0
  394. package/dist/node/Diviner/LocationDiviner/Queries/LocationQuerySchema.d.cts +6 -0
  395. package/dist/node/Diviner/LocationDiviner/Queries/LocationQuerySchema.d.cts.map +1 -0
  396. package/dist/node/Diviner/LocationDiviner/Queries/LocationQuerySchema.d.mts +6 -0
  397. package/dist/node/Diviner/LocationDiviner/Queries/LocationQuerySchema.d.mts.map +1 -0
  398. package/dist/node/Diviner/LocationDiviner/Queries/LocationQuerySchema.d.ts +6 -0
  399. package/dist/node/Diviner/LocationDiviner/Queries/LocationQuerySchema.d.ts.map +1 -0
  400. package/dist/node/Diviner/LocationDiviner/Queries/LocationQuerySchema.js +38 -0
  401. package/dist/node/Diviner/LocationDiviner/Queries/LocationQuerySchema.js.map +1 -0
  402. package/dist/node/Diviner/LocationDiviner/Queries/LocationQuerySchema.mjs +13 -0
  403. package/dist/node/Diviner/LocationDiviner/Queries/LocationQuerySchema.mjs.map +1 -0
  404. package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.cts +8 -0
  405. package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.cts.map +1 -0
  406. package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.mts +8 -0
  407. package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.mts.map +1 -0
  408. package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.ts +8 -0
  409. package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.ts.map +1 -0
  410. package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.js +19 -0
  411. package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.js.map +1 -0
  412. package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.mjs +1 -0
  413. package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.mjs.map +1 -0
  414. package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.cts +12 -0
  415. package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.cts.map +1 -0
  416. package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.mts +12 -0
  417. package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.mts.map +1 -0
  418. package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.ts +12 -0
  419. package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.ts.map +1 -0
  420. package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.js +39 -0
  421. package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.js.map +1 -0
  422. package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.mjs +12 -0
  423. package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.mjs.map +1 -0
  424. package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.cts +3 -0
  425. package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.cts.map +1 -0
  426. package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.mts +3 -0
  427. package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.mts.map +1 -0
  428. package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.ts +3 -0
  429. package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.ts.map +1 -0
  430. package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.js +41 -0
  431. package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.js.map +1 -0
  432. package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.mjs +12 -0
  433. package/dist/node/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.mjs.map +1 -0
  434. package/dist/node/Diviner/LocationDiviner/Queries/index.d.cts +7 -0
  435. package/dist/node/Diviner/LocationDiviner/Queries/index.d.cts.map +1 -0
  436. package/dist/node/Diviner/LocationDiviner/Queries/index.d.mts +7 -0
  437. package/dist/node/Diviner/LocationDiviner/Queries/index.d.mts.map +1 -0
  438. package/dist/node/Diviner/LocationDiviner/Queries/index.d.ts +7 -0
  439. package/dist/node/Diviner/LocationDiviner/Queries/index.d.ts.map +1 -0
  440. package/dist/node/Diviner/LocationDiviner/Queries/index.js +79 -0
  441. package/dist/node/Diviner/LocationDiviner/Queries/index.js.map +1 -0
  442. package/dist/node/Diviner/LocationDiviner/Queries/index.mjs +43 -0
  443. package/dist/node/Diviner/LocationDiviner/Queries/index.mjs.map +1 -0
  444. package/dist/node/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.cts +13 -0
  445. package/dist/node/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.cts.map +1 -0
  446. package/dist/node/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.mts +13 -0
  447. package/dist/node/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.mts.map +1 -0
  448. package/dist/node/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.ts +13 -0
  449. package/dist/node/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.ts.map +1 -0
  450. package/dist/node/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.js +31 -0
  451. package/dist/node/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.js.map +1 -0
  452. package/dist/node/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.mjs +6 -0
  453. package/dist/node/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.mjs.map +1 -0
  454. package/dist/node/Diviner/LocationDiviner/Witnesses/LocationWitness.d.cts +21 -0
  455. package/dist/node/Diviner/LocationDiviner/Witnesses/LocationWitness.d.cts.map +1 -0
  456. package/dist/node/Diviner/LocationDiviner/Witnesses/LocationWitness.d.mts +21 -0
  457. package/dist/node/Diviner/LocationDiviner/Witnesses/LocationWitness.d.mts.map +1 -0
  458. package/dist/node/Diviner/LocationDiviner/Witnesses/LocationWitness.d.ts +21 -0
  459. package/dist/node/Diviner/LocationDiviner/Witnesses/LocationWitness.d.ts.map +1 -0
  460. package/dist/node/Diviner/LocationDiviner/Witnesses/LocationWitness.js +31 -0
  461. package/dist/node/Diviner/LocationDiviner/Witnesses/LocationWitness.js.map +1 -0
  462. package/dist/node/Diviner/LocationDiviner/Witnesses/LocationWitness.mjs +6 -0
  463. package/dist/node/Diviner/LocationDiviner/Witnesses/LocationWitness.mjs.map +1 -0
  464. package/dist/node/Diviner/LocationDiviner/Witnesses/index.d.cts +3 -0
  465. package/dist/node/Diviner/LocationDiviner/Witnesses/index.d.cts.map +1 -0
  466. package/dist/node/Diviner/LocationDiviner/Witnesses/index.d.mts +3 -0
  467. package/dist/node/Diviner/LocationDiviner/Witnesses/index.d.mts.map +1 -0
  468. package/dist/node/Diviner/LocationDiviner/Witnesses/index.d.ts +3 -0
  469. package/dist/node/Diviner/LocationDiviner/Witnesses/index.d.ts.map +1 -0
  470. package/dist/node/Diviner/LocationDiviner/Witnesses/index.js +38 -0
  471. package/dist/node/Diviner/LocationDiviner/Witnesses/index.js.map +1 -0
  472. package/dist/node/Diviner/LocationDiviner/Witnesses/index.mjs +10 -0
  473. package/dist/node/Diviner/LocationDiviner/Witnesses/index.mjs.map +1 -0
  474. package/dist/node/Diviner/LocationDiviner/index.d.cts +5 -0
  475. package/dist/node/Diviner/LocationDiviner/index.d.cts.map +1 -0
  476. package/dist/node/Diviner/LocationDiviner/index.d.mts +5 -0
  477. package/dist/node/Diviner/LocationDiviner/index.d.mts.map +1 -0
  478. package/dist/node/Diviner/LocationDiviner/index.d.ts +5 -0
  479. package/dist/node/Diviner/LocationDiviner/index.d.ts.map +1 -0
  480. package/dist/node/Diviner/LocationDiviner/index.js +122 -0
  481. package/dist/node/Diviner/LocationDiviner/index.js.map +1 -0
  482. package/dist/node/Diviner/LocationDiviner/index.mjs +83 -0
  483. package/dist/node/Diviner/LocationDiviner/index.mjs.map +1 -0
  484. package/dist/node/Diviner/LocationDiviner/models.d.cts +5 -0
  485. package/dist/node/Diviner/LocationDiviner/models.d.cts.map +1 -0
  486. package/dist/node/Diviner/LocationDiviner/models.d.mts +5 -0
  487. package/dist/node/Diviner/LocationDiviner/models.d.mts.map +1 -0
  488. package/dist/node/Diviner/LocationDiviner/models.d.ts +5 -0
  489. package/dist/node/Diviner/LocationDiviner/models.d.ts.map +1 -0
  490. package/dist/node/Diviner/LocationDiviner/models.js +19 -0
  491. package/dist/node/Diviner/LocationDiviner/models.js.map +1 -0
  492. package/dist/node/Diviner/LocationDiviner/models.mjs +1 -0
  493. package/dist/node/Diviner/LocationDiviner/models.mjs.map +1 -0
  494. package/dist/node/Diviner/RemoteDivinerConfig.d.cts +11 -0
  495. package/dist/node/Diviner/RemoteDivinerConfig.d.cts.map +1 -0
  496. package/dist/node/Diviner/RemoteDivinerConfig.d.mts +11 -0
  497. package/dist/node/Diviner/RemoteDivinerConfig.d.mts.map +1 -0
  498. package/dist/node/Diviner/RemoteDivinerConfig.d.ts +11 -0
  499. package/dist/node/Diviner/RemoteDivinerConfig.d.ts.map +1 -0
  500. package/dist/node/Diviner/RemoteDivinerConfig.js +31 -0
  501. package/dist/node/Diviner/RemoteDivinerConfig.js.map +1 -0
  502. package/dist/node/Diviner/RemoteDivinerConfig.mjs +6 -0
  503. package/dist/node/Diviner/RemoteDivinerConfig.mjs.map +1 -0
  504. package/dist/node/Diviner/RemoteDivinerError.d.cts +6 -0
  505. package/dist/node/Diviner/RemoteDivinerError.d.cts.map +1 -0
  506. package/dist/node/Diviner/RemoteDivinerError.d.mts +6 -0
  507. package/dist/node/Diviner/RemoteDivinerError.d.mts.map +1 -0
  508. package/dist/node/Diviner/RemoteDivinerError.d.ts +6 -0
  509. package/dist/node/Diviner/RemoteDivinerError.d.ts.map +1 -0
  510. package/dist/node/Diviner/RemoteDivinerError.js +39 -0
  511. package/dist/node/Diviner/RemoteDivinerError.js.map +1 -0
  512. package/dist/node/Diviner/RemoteDivinerError.mjs +14 -0
  513. package/dist/node/Diviner/RemoteDivinerError.mjs.map +1 -0
  514. package/dist/node/Diviner/index.d.cts +3 -0
  515. package/dist/node/Diviner/index.d.cts.map +1 -0
  516. package/dist/node/Diviner/index.d.mts +3 -0
  517. package/dist/node/Diviner/index.d.mts.map +1 -0
  518. package/dist/node/Diviner/index.d.ts +3 -0
  519. package/dist/node/Diviner/index.d.ts.map +1 -0
  520. package/dist/node/Diviner/index.js +127 -0
  521. package/dist/node/Diviner/index.js.map +1 -0
  522. package/dist/node/Diviner/index.mjs +87 -0
  523. package/dist/node/Diviner/index.mjs.map +1 -0
  524. package/dist/node/Simple.d.cts +22 -0
  525. package/dist/node/Simple.d.cts.map +1 -0
  526. package/dist/node/Simple.d.mts +22 -0
  527. package/dist/node/Simple.d.mts.map +1 -0
  528. package/dist/node/Simple.d.ts +22 -0
  529. package/dist/node/Simple.d.ts.map +1 -0
  530. package/dist/node/Simple.js +184 -0
  531. package/dist/node/Simple.js.map +1 -0
  532. package/dist/node/Simple.mjs +157 -0
  533. package/dist/node/Simple.mjs.map +1 -0
  534. package/dist/node/Test/index.d.cts +3 -0
  535. package/dist/node/Test/index.d.cts.map +1 -0
  536. package/dist/node/Test/index.d.mts +3 -0
  537. package/dist/node/Test/index.d.mts.map +1 -0
  538. package/dist/node/Test/index.d.ts +3 -0
  539. package/dist/node/Test/index.d.ts.map +1 -0
  540. package/dist/node/Test/index.js +62 -0
  541. package/dist/node/Test/index.js.map +1 -0
  542. package/dist/node/Test/index.mjs +33 -0
  543. package/dist/node/Test/index.mjs.map +1 -0
  544. package/dist/node/Test/testBoundWitness.d.cts +4 -0
  545. package/dist/node/Test/testBoundWitness.d.cts.map +1 -0
  546. package/dist/node/Test/testBoundWitness.d.mts +4 -0
  547. package/dist/node/Test/testBoundWitness.d.mts.map +1 -0
  548. package/dist/node/Test/testBoundWitness.d.ts +4 -0
  549. package/dist/node/Test/testBoundWitness.d.ts.map +1 -0
  550. package/dist/node/Test/testBoundWitness.js +42 -0
  551. package/dist/node/Test/testBoundWitness.js.map +1 -0
  552. package/dist/node/Test/testBoundWitness.mjs +17 -0
  553. package/dist/node/Test/testBoundWitness.mjs.map +1 -0
  554. package/dist/node/Test/testPayload.d.cts +6 -0
  555. package/dist/node/Test/testPayload.d.cts.map +1 -0
  556. package/dist/node/Test/testPayload.d.mts +6 -0
  557. package/dist/node/Test/testPayload.d.mts.map +1 -0
  558. package/dist/node/Test/testPayload.d.ts +6 -0
  559. package/dist/node/Test/testPayload.d.ts.map +1 -0
  560. package/dist/node/Test/testPayload.js +44 -0
  561. package/dist/node/Test/testPayload.js.map +1 -0
  562. package/dist/node/Test/testPayload.mjs +18 -0
  563. package/dist/node/Test/testPayload.mjs.map +1 -0
  564. package/dist/node/WithArchive.d.cts +4 -0
  565. package/dist/node/WithArchive.d.cts.map +1 -0
  566. package/dist/node/WithArchive.d.mts +4 -0
  567. package/dist/node/WithArchive.d.mts.map +1 -0
  568. package/dist/node/WithArchive.d.ts +4 -0
  569. package/dist/node/WithArchive.d.ts.map +1 -0
  570. package/dist/node/WithArchive.js +19 -0
  571. package/dist/node/WithArchive.js.map +1 -0
  572. package/dist/node/WithArchive.mjs +1 -0
  573. package/dist/node/WithArchive.mjs.map +1 -0
  574. package/dist/node/index.d.cts +7 -0
  575. package/dist/node/index.d.cts.map +1 -0
  576. package/dist/node/index.d.mts +7 -0
  577. package/dist/node/index.d.mts.map +1 -0
  578. package/dist/node/index.d.ts +7 -0
  579. package/dist/node/index.d.ts.map +1 -0
  580. package/dist/node/index.js +301 -0
  581. package/dist/node/index.js.map +1 -0
  582. package/dist/{index.mjs → node/index.mjs} +14 -10
  583. package/dist/node/index.mjs.map +1 -0
  584. package/dist/node/models/ArchivePath.d.cts +4 -0
  585. package/dist/node/models/ArchivePath.d.cts.map +1 -0
  586. package/dist/node/models/ArchivePath.d.mts +4 -0
  587. package/dist/node/models/ArchivePath.d.mts.map +1 -0
  588. package/dist/node/models/ArchivePath.d.ts +4 -0
  589. package/dist/node/models/ArchivePath.d.ts.map +1 -0
  590. package/dist/node/models/ArchivePath.js +19 -0
  591. package/dist/node/models/ArchivePath.js.map +1 -0
  592. package/dist/node/models/ArchivePath.mjs +1 -0
  593. package/dist/node/models/ArchivePath.mjs.map +1 -0
  594. package/dist/node/models/index.d.cts +2 -0
  595. package/dist/node/models/index.d.cts.map +1 -0
  596. package/dist/node/models/index.d.mts +2 -0
  597. package/dist/node/models/index.d.mts.map +1 -0
  598. package/dist/node/models/index.d.ts +2 -0
  599. package/dist/node/models/index.d.ts.map +1 -0
  600. package/dist/node/models/index.js +19 -0
  601. package/dist/node/models/index.js.map +1 -0
  602. package/dist/node/models/index.mjs +1 -0
  603. package/dist/node/models/index.mjs.map +1 -0
  604. package/dist/node/objToQuery.d.cts +2 -0
  605. package/dist/node/objToQuery.d.cts.map +1 -0
  606. package/dist/node/objToQuery.d.mts +2 -0
  607. package/dist/node/objToQuery.d.mts.map +1 -0
  608. package/dist/node/objToQuery.d.ts +2 -0
  609. package/dist/node/objToQuery.d.ts.map +1 -0
  610. package/dist/node/objToQuery.js +35 -0
  611. package/dist/node/objToQuery.js.map +1 -0
  612. package/dist/node/objToQuery.mjs +10 -0
  613. package/dist/node/objToQuery.mjs.map +1 -0
  614. package/package.json +32 -29
  615. package/dist/Api/Api.d.mts.map +0 -1
  616. package/dist/Api/Api.d.ts.map +0 -1
  617. package/dist/Api/index.d.mts.map +0 -1
  618. package/dist/Api/index.d.ts.map +0 -1
  619. package/dist/Base.d.mts.map +0 -1
  620. package/dist/Base.d.ts.map +0 -1
  621. package/dist/Diviner/LocationDiviner/LocationDivinerApi.d.mts.map +0 -1
  622. package/dist/Diviner/LocationDiviner/LocationDivinerApi.d.ts.map +0 -1
  623. package/dist/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.mts.map +0 -1
  624. package/dist/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.ts.map +0 -1
  625. package/dist/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.mts.map +0 -1
  626. package/dist/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.ts.map +0 -1
  627. package/dist/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.mts.map +0 -1
  628. package/dist/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.ts.map +0 -1
  629. package/dist/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.mts.map +0 -1
  630. package/dist/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.ts.map +0 -1
  631. package/dist/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.mts.map +0 -1
  632. package/dist/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.ts.map +0 -1
  633. package/dist/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.mts.map +0 -1
  634. package/dist/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.ts.map +0 -1
  635. package/dist/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.mts.map +0 -1
  636. package/dist/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.ts.map +0 -1
  637. package/dist/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.mts.map +0 -1
  638. package/dist/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.ts.map +0 -1
  639. package/dist/Diviner/LocationDiviner/Queries/LocationQuerySchema.d.mts.map +0 -1
  640. package/dist/Diviner/LocationDiviner/Queries/LocationQuerySchema.d.ts.map +0 -1
  641. package/dist/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.mts.map +0 -1
  642. package/dist/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.ts.map +0 -1
  643. package/dist/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.mts.map +0 -1
  644. package/dist/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.ts.map +0 -1
  645. package/dist/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.mts.map +0 -1
  646. package/dist/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.ts.map +0 -1
  647. package/dist/Diviner/LocationDiviner/Queries/index.d.mts.map +0 -1
  648. package/dist/Diviner/LocationDiviner/Queries/index.d.ts.map +0 -1
  649. package/dist/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.mts.map +0 -1
  650. package/dist/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.ts.map +0 -1
  651. package/dist/Diviner/LocationDiviner/Witnesses/LocationWitness.d.mts.map +0 -1
  652. package/dist/Diviner/LocationDiviner/Witnesses/LocationWitness.d.ts.map +0 -1
  653. package/dist/Diviner/LocationDiviner/Witnesses/index.d.mts.map +0 -1
  654. package/dist/Diviner/LocationDiviner/Witnesses/index.d.ts.map +0 -1
  655. package/dist/Diviner/LocationDiviner/index.d.mts.map +0 -1
  656. package/dist/Diviner/LocationDiviner/index.d.ts.map +0 -1
  657. package/dist/Diviner/LocationDiviner/models.d.mts.map +0 -1
  658. package/dist/Diviner/LocationDiviner/models.d.ts.map +0 -1
  659. package/dist/Diviner/RemoteDivinerConfig.d.mts.map +0 -1
  660. package/dist/Diviner/RemoteDivinerConfig.d.ts.map +0 -1
  661. package/dist/Diviner/RemoteDivinerError.d.mts.map +0 -1
  662. package/dist/Diviner/RemoteDivinerError.d.ts.map +0 -1
  663. package/dist/Diviner/index.d.mts.map +0 -1
  664. package/dist/Diviner/index.d.ts.map +0 -1
  665. package/dist/Simple.d.mts.map +0 -1
  666. package/dist/Simple.d.ts.map +0 -1
  667. package/dist/Test/index.d.mts.map +0 -1
  668. package/dist/Test/index.d.ts.map +0 -1
  669. package/dist/Test/testBoundWitness.d.mts.map +0 -1
  670. package/dist/Test/testBoundWitness.d.ts.map +0 -1
  671. package/dist/Test/testPayload.d.mts.map +0 -1
  672. package/dist/Test/testPayload.d.ts.map +0 -1
  673. package/dist/WithArchive.d.mts.map +0 -1
  674. package/dist/WithArchive.d.ts.map +0 -1
  675. package/dist/index.d.mts.map +0 -1
  676. package/dist/index.d.ts.map +0 -1
  677. package/dist/index.js.map +0 -1
  678. package/dist/index.mjs.map +0 -1
  679. package/dist/models/ArchivePath.d.mts.map +0 -1
  680. package/dist/models/ArchivePath.d.ts.map +0 -1
  681. package/dist/models/index.d.mts.map +0 -1
  682. package/dist/models/index.d.ts.map +0 -1
  683. package/dist/objToQuery.d.mts.map +0 -1
  684. package/dist/objToQuery.d.ts.map +0 -1
  685. /package/dist/{Api/Api.d.mts → browser/Api/Api.d.cts} +0 -0
  686. /package/dist/{Api/Api.d.ts → browser/Api/Api.d.mts} +0 -0
  687. /package/dist/{Api/index.d.mts → browser/Api/index.d.cts} +0 -0
  688. /package/dist/{Api/index.d.ts → browser/Api/index.d.mts} +0 -0
  689. /package/dist/{Base.d.mts → browser/Base.d.cts} +0 -0
  690. /package/dist/{Base.d.ts → browser/Base.d.mts} +0 -0
  691. /package/dist/{Diviner/LocationDiviner/LocationDivinerApi.d.mts → browser/Diviner/LocationDiviner/LocationDivinerApi.d.cts} +0 -0
  692. /package/dist/{Diviner/LocationDiviner/LocationDivinerApi.d.ts → browser/Diviner/LocationDiviner/LocationDivinerApi.d.mts} +0 -0
  693. /package/dist/{Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.mts → browser/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.cts} +0 -0
  694. /package/dist/{Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.ts → browser/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.mts} +0 -0
  695. /package/dist/{Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.mts → browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.cts} +0 -0
  696. /package/dist/{Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.ts → browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.mts} +0 -0
  697. /package/dist/{Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.mts → browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.cts} +0 -0
  698. /package/dist/{Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.ts → browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.mts} +0 -0
  699. /package/dist/{Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.mts → browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.cts} +0 -0
  700. /package/dist/{Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.ts → browser/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.mts} +0 -0
  701. /package/dist/{Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.mts → browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.cts} +0 -0
  702. /package/dist/{Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.ts → browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.mts} +0 -0
  703. /package/dist/{Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.mts → browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.cts} +0 -0
  704. /package/dist/{Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.ts → browser/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.mts} +0 -0
  705. /package/dist/{Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.mts → browser/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.cts} +0 -0
  706. /package/dist/{Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.ts → browser/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.mts} +0 -0
  707. /package/dist/{Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.mts → browser/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.cts} +0 -0
  708. /package/dist/{Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.ts → browser/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.mts} +0 -0
  709. /package/dist/{Diviner/LocationDiviner/Queries/LocationQuerySchema.d.mts → browser/Diviner/LocationDiviner/Queries/LocationQuerySchema.d.cts} +0 -0
  710. /package/dist/{Diviner/LocationDiviner/Queries/LocationQuerySchema.d.ts → browser/Diviner/LocationDiviner/Queries/LocationQuerySchema.d.mts} +0 -0
  711. /package/dist/{Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.mts → browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.cts} +0 -0
  712. /package/dist/{Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.ts → browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.mts} +0 -0
  713. /package/dist/{Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.mts → browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.cts} +0 -0
  714. /package/dist/{Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.ts → browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.mts} +0 -0
  715. /package/dist/{Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.mts → browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.cts} +0 -0
  716. /package/dist/{Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.ts → browser/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.mts} +0 -0
  717. /package/dist/{Diviner/LocationDiviner/Queries/index.d.mts → browser/Diviner/LocationDiviner/Queries/index.d.cts} +0 -0
  718. /package/dist/{Diviner/LocationDiviner/Queries/index.d.ts → browser/Diviner/LocationDiviner/Queries/index.d.mts} +0 -0
  719. /package/dist/{Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.mts → browser/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.cts} +0 -0
  720. /package/dist/{Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.ts → browser/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.mts} +0 -0
  721. /package/dist/{Diviner/LocationDiviner/Witnesses/LocationWitness.d.mts → browser/Diviner/LocationDiviner/Witnesses/LocationWitness.d.cts} +0 -0
  722. /package/dist/{Diviner/LocationDiviner/Witnesses/LocationWitness.d.ts → browser/Diviner/LocationDiviner/Witnesses/LocationWitness.d.mts} +0 -0
  723. /package/dist/{Diviner/LocationDiviner/Witnesses/index.d.mts → browser/Diviner/LocationDiviner/Witnesses/index.d.cts} +0 -0
  724. /package/dist/{Diviner/LocationDiviner/Witnesses/index.d.ts → browser/Diviner/LocationDiviner/Witnesses/index.d.mts} +0 -0
  725. /package/dist/{Diviner/LocationDiviner/index.d.mts → browser/Diviner/LocationDiviner/index.d.cts} +0 -0
  726. /package/dist/{Diviner/LocationDiviner/index.d.ts → browser/Diviner/LocationDiviner/index.d.mts} +0 -0
  727. /package/dist/{Diviner/LocationDiviner/models.d.mts → browser/Diviner/LocationDiviner/models.d.cts} +0 -0
  728. /package/dist/{Diviner/LocationDiviner/models.d.ts → browser/Diviner/LocationDiviner/models.d.mts} +0 -0
  729. /package/dist/{Diviner/RemoteDivinerConfig.d.mts → browser/Diviner/RemoteDivinerConfig.d.cts} +0 -0
  730. /package/dist/{Diviner/RemoteDivinerConfig.d.ts → browser/Diviner/RemoteDivinerConfig.d.mts} +0 -0
  731. /package/dist/{Diviner/RemoteDivinerError.d.mts → browser/Diviner/RemoteDivinerError.d.cts} +0 -0
  732. /package/dist/{Diviner/RemoteDivinerError.d.ts → browser/Diviner/RemoteDivinerError.d.mts} +0 -0
  733. /package/dist/{Diviner/index.d.mts → browser/Diviner/index.d.cts} +0 -0
  734. /package/dist/{Diviner/index.d.ts → browser/Diviner/index.d.mts} +0 -0
  735. /package/dist/{Simple.d.mts → browser/Simple.d.cts} +0 -0
  736. /package/dist/{Simple.d.ts → browser/Simple.d.mts} +0 -0
  737. /package/dist/{Test/index.d.mts → browser/Test/index.d.cts} +0 -0
  738. /package/dist/{Test/index.d.ts → browser/Test/index.d.mts} +0 -0
  739. /package/dist/{Test/testBoundWitness.d.mts → browser/Test/testBoundWitness.d.cts} +0 -0
  740. /package/dist/{Test/testBoundWitness.d.ts → browser/Test/testBoundWitness.d.mts} +0 -0
  741. /package/dist/{Test/testPayload.d.mts → browser/Test/testPayload.d.cts} +0 -0
  742. /package/dist/{Test/testPayload.d.ts → browser/Test/testPayload.d.mts} +0 -0
  743. /package/dist/{WithArchive.d.mts → browser/WithArchive.d.cts} +0 -0
  744. /package/dist/{WithArchive.d.ts → browser/WithArchive.d.mts} +0 -0
  745. /package/dist/{index.d.mts → browser/index.d.cts} +0 -0
  746. /package/dist/{index.d.ts → browser/index.d.mts} +0 -0
  747. /package/dist/{models/ArchivePath.d.mts → browser/models/ArchivePath.d.cts} +0 -0
  748. /package/dist/{models/ArchivePath.d.ts → browser/models/ArchivePath.d.mts} +0 -0
  749. /package/dist/{models/index.d.mts → browser/models/index.d.cts} +0 -0
  750. /package/dist/{models/index.d.ts → browser/models/index.d.mts} +0 -0
  751. /package/dist/{objToQuery.d.mts → browser/objToQuery.d.cts} +0 -0
  752. /package/dist/{objToQuery.d.ts → browser/objToQuery.d.mts} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/Diviner/RemoteDivinerConfig.ts"],"sourcesContent":["import { DivinerConfig } from '@xyo-network/diviner-model'\n\nimport { ArchivistApi } from '../Api'\n\nexport type RemoteDivinerConfigSchema = 'network.xyo.diviner.remote.config'\nexport const RemoteDivinerConfigSchema: RemoteDivinerConfigSchema = 'network.xyo.diviner.remote.config'\n\nexport type RemoteDivinerConfig = DivinerConfig & {\n /** @deprecated use in params instead */\n api?: ArchivistApi\n archive?: string\n schema: RemoteDivinerConfigSchema\n}\n"],"mappings":"AAKO,MAAM,4BAAuD;","names":[]}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/Diviner/RemoteDivinerError.ts
21
+ var RemoteDivinerError_exports = {};
22
+ __export(RemoteDivinerError_exports, {
23
+ RemoteDivinerError: () => RemoteDivinerError
24
+ });
25
+ module.exports = __toCommonJS(RemoteDivinerError_exports);
26
+ var RemoteDivinerError = class extends Error {
27
+ isRemoteDivinerError = true;
28
+ constructor(action, error, message) {
29
+ super(`Remote Diviner [${action}] failed${message ? ` (${message})` : ""}`, { cause: error });
30
+ }
31
+ static isRemoteDivinerError(error) {
32
+ return error.isRemoteDivinerError ? error : void 0;
33
+ }
34
+ };
35
+ //# sourceMappingURL=RemoteDivinerError.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/Diviner/RemoteDivinerError.ts"],"sourcesContent":["export class RemoteDivinerError extends Error {\n isRemoteDivinerError = true\n constructor(action: string, error: Error['cause'], message?: string) {\n super(`Remote Diviner [${action}] failed${message ? ` (${message})` : ''}`, { cause: error })\n }\n static isRemoteDivinerError(error: unknown): RemoteDivinerError | undefined {\n return (error as RemoteDivinerError).isRemoteDivinerError ? (error as RemoteDivinerError) : undefined\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,IAAM,qBAAN,cAAiC,MAAM;AAAA,EAC5C,uBAAuB;AAAA,EACvB,YAAY,QAAgB,OAAuB,SAAkB;AACnE,UAAM,mBAAmB,MAAM,WAAW,UAAU,KAAK,OAAO,MAAM,EAAE,IAAI,EAAE,OAAO,MAAM,CAAC;AAAA,EAC9F;AAAA,EACA,OAAO,qBAAqB,OAAgD;AAC1E,WAAQ,MAA6B,uBAAwB,QAA+B;AAAA,EAC9F;AACF;","names":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RemoteDivinerError.d.ts","sourceRoot":"","sources":["../../../src/Diviner/RemoteDivinerError.ts"],"names":[],"mappings":"AAAA,qBAAa,kBAAmB,SAAQ,KAAK;IAC3C,oBAAoB,UAAO;gBACf,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,EAAE,MAAM;IAGnE,MAAM,CAAC,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,kBAAkB,GAAG,SAAS;CAG5E"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RemoteDivinerError.d.ts","sourceRoot":"","sources":["../../../src/Diviner/RemoteDivinerError.ts"],"names":[],"mappings":"AAAA,qBAAa,kBAAmB,SAAQ,KAAK;IAC3C,oBAAoB,UAAO;gBACf,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,EAAE,MAAM;IAGnE,MAAM,CAAC,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,kBAAkB,GAAG,SAAS;CAG5E"}
@@ -0,0 +1,6 @@
1
+ export declare class RemoteDivinerError extends Error {
2
+ isRemoteDivinerError: boolean;
3
+ constructor(action: string, error: Error['cause'], message?: string);
4
+ static isRemoteDivinerError(error: unknown): RemoteDivinerError | undefined;
5
+ }
6
+ //# sourceMappingURL=RemoteDivinerError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RemoteDivinerError.d.ts","sourceRoot":"","sources":["../../../src/Diviner/RemoteDivinerError.ts"],"names":[],"mappings":"AAAA,qBAAa,kBAAmB,SAAQ,KAAK;IAC3C,oBAAoB,UAAO;gBACf,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,EAAE,MAAM;IAGnE,MAAM,CAAC,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,kBAAkB,GAAG,SAAS;CAG5E"}
@@ -0,0 +1,13 @@
1
+ class RemoteDivinerError extends Error {
2
+ isRemoteDivinerError = true;
3
+ constructor(action, error, message) {
4
+ super(`Remote Diviner [${action}] failed${message ? ` (${message})` : ""}`, { cause: error });
5
+ }
6
+ static isRemoteDivinerError(error) {
7
+ return error.isRemoteDivinerError ? error : void 0;
8
+ }
9
+ }
10
+ export {
11
+ RemoteDivinerError
12
+ };
13
+ //# sourceMappingURL=RemoteDivinerError.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/Diviner/RemoteDivinerError.ts"],"sourcesContent":["export class RemoteDivinerError extends Error {\n isRemoteDivinerError = true\n constructor(action: string, error: Error['cause'], message?: string) {\n super(`Remote Diviner [${action}] failed${message ? ` (${message})` : ''}`, { cause: error })\n }\n static isRemoteDivinerError(error: unknown): RemoteDivinerError | undefined {\n return (error as RemoteDivinerError).isRemoteDivinerError ? (error as RemoteDivinerError) : undefined\n }\n}\n"],"mappings":"AAAO,MAAM,2BAA2B,MAAM;AAAA,EAC5C,uBAAuB;AAAA,EACvB,YAAY,QAAgB,OAAuB,SAAkB;AACnE,UAAM,mBAAmB,MAAM,WAAW,UAAU,KAAK,OAAO,MAAM,EAAE,IAAI,EAAE,OAAO,MAAM,CAAC;AAAA,EAC9F;AAAA,EACA,OAAO,qBAAqB,OAAgD;AAC1E,WAAQ,MAA6B,uBAAwB,QAA+B;AAAA,EAC9F;AACF;","names":[]}
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/Diviner/index.ts
21
+ var Diviner_exports = {};
22
+ __export(Diviner_exports, {
23
+ CurrentLocationWitnessSchema: () => CurrentLocationWitnessSchema,
24
+ LocationDivinerApi: () => LocationDivinerApi,
25
+ LocationTimeRangeAnswerSchema: () => LocationTimeRangeAnswerSchema,
26
+ LocationTimeRangeQuerySchema: () => LocationTimeRangeQuerySchema,
27
+ LocationWitnessSchema: () => LocationWitnessSchema,
28
+ RemoteDivinerConfigSchema: () => RemoteDivinerConfigSchema,
29
+ isLocationHeatmapQuery: () => isLocationHeatmapQuery,
30
+ isLocationQuadkeyHeatmapQuery: () => isLocationQuadkeyHeatmapQuery,
31
+ isLocationTimeRangeQuery: () => isLocationTimeRangeQuery,
32
+ isSupportedLocationQuerySchema: () => isSupportedLocationQuerySchema,
33
+ locationHeatmapAnswerSchema: () => locationHeatmapAnswerSchema,
34
+ locationHeatmapQuerySchema: () => locationHeatmapQuerySchema,
35
+ locationQuadkeyHeatmapAnswerSchema: () => locationQuadkeyHeatmapAnswerSchema,
36
+ locationQuadkeyHeatmapQuerySchema: () => locationQuadkeyHeatmapQuerySchema
37
+ });
38
+ module.exports = __toCommonJS(Diviner_exports);
39
+
40
+ // src/Diviner/LocationDiviner/LocationDivinerApi.ts
41
+ var import_axios2 = require("@xyo-network/axios");
42
+
43
+ // src/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.ts
44
+ var import_axios = require("@xyo-network/axios");
45
+ var locationDivinerApiResponseTransformer = (data, _headers) => {
46
+ return data.data;
47
+ };
48
+ var getLocationDivinerApiResponseTransformer = (axiosInstance = import_axios.axios) => {
49
+ return axiosInstance.defaults.transformResponse ? [].concat(axiosInstance.defaults.transformResponse, locationDivinerApiResponseTransformer) : [locationDivinerApiResponseTransformer];
50
+ };
51
+
52
+ // src/Diviner/LocationDiviner/LocationDivinerApi.ts
53
+ var LocationDivinerApi = class {
54
+ config;
55
+ constructor(config) {
56
+ this.config = config;
57
+ }
58
+ get axiosRequestConfig() {
59
+ return {
60
+ transformResponse: getLocationDivinerApiResponseTransformer()
61
+ };
62
+ }
63
+ async getLocationQuery(hash) {
64
+ return (await import_axios2.axios.get(`${this.config.apiDomain}/location/query/${hash}`, this.axiosRequestConfig)).data;
65
+ }
66
+ async postLocationQuery(request) {
67
+ return (await import_axios2.axios.post(`${this.config.apiDomain}/location/query`, { ...request }, this.axiosRequestConfig)).data;
68
+ }
69
+ };
70
+
71
+ // src/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.ts
72
+ var locationHeatmapQuerySchema = "network.xyo.location.heatmap.query";
73
+ var locationHeatmapAnswerSchema = "network.xyo.location.heatmap.answer";
74
+ var isLocationHeatmapQuery = (query) => {
75
+ return query && query?.schema === locationHeatmapQuerySchema;
76
+ };
77
+
78
+ // src/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.ts
79
+ var locationQuadkeyHeatmapQuerySchema = "network.xyo.location.heatmap.quadkey.query";
80
+ var locationQuadkeyHeatmapAnswerSchema = "network.xyo.location.heatmap.quadkey.answer";
81
+ var isLocationQuadkeyHeatmapQuery = (query) => {
82
+ return query && query?.schema === locationQuadkeyHeatmapQuerySchema;
83
+ };
84
+
85
+ // src/Diviner/LocationDiviner/Queries/LocationQuerySchema.ts
86
+ var locationQuerySchemas = {
87
+ "network.xyo.location.heatmap.quadkey.query": true,
88
+ "network.xyo.location.heatmap.query": true,
89
+ "network.xyo.location.range.query": true
90
+ };
91
+ var isSupportedLocationQuerySchema = (schema) => {
92
+ return locationQuerySchemas[schema] || false;
93
+ };
94
+
95
+ // src/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.ts
96
+ var LocationTimeRangeQuerySchema = "network.xyo.location.range.query";
97
+ var LocationTimeRangeAnswerSchema = "network.xyo.location.range.answer";
98
+ var isLocationTimeRangeQuery = (query) => {
99
+ return query && query?.schema === LocationTimeRangeAnswerSchema;
100
+ };
101
+
102
+ // src/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.ts
103
+ var CurrentLocationWitnessSchema = "co.coinapp.currentlocationwitness";
104
+
105
+ // src/Diviner/LocationDiviner/Witnesses/LocationWitness.ts
106
+ var LocationWitnessSchema = "network.xyo.location";
107
+
108
+ // src/Diviner/RemoteDivinerConfig.ts
109
+ var RemoteDivinerConfigSchema = "network.xyo.diviner.remote.config";
110
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/Diviner/index.ts","../../../src/Diviner/LocationDiviner/LocationDivinerApi.ts","../../../src/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.ts","../../../src/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.ts","../../../src/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.ts","../../../src/Diviner/LocationDiviner/Queries/LocationQuerySchema.ts","../../../src/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.ts","../../../src/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.ts","../../../src/Diviner/LocationDiviner/Witnesses/LocationWitness.ts","../../../src/Diviner/RemoteDivinerConfig.ts"],"sourcesContent":["export * from './LocationDiviner'\nexport * from './RemoteDivinerConfig'\n","import { ApiConfig } from '@xyo-network/api-models'\nimport { axios, RawAxiosRequestConfig } from '@xyo-network/axios'\n\nimport { getLocationDivinerApiResponseTransformer } from './LocationDivinerApiResponseTransformer'\nimport { GetLocationQueryResponse } from './models'\nimport { LocationQueryCreationResponse, SupportedLocationQueryCreationRequest } from './Queries'\n\nclass LocationDivinerApi {\n config: ApiConfig\n constructor(config: ApiConfig) {\n this.config = config\n }\n\n private get axiosRequestConfig(): RawAxiosRequestConfig {\n return {\n transformResponse: getLocationDivinerApiResponseTransformer(),\n }\n }\n\n async getLocationQuery(hash: string) {\n return (await axios.get<GetLocationQueryResponse>(`${this.config.apiDomain}/location/query/${hash}`, this.axiosRequestConfig)).data\n }\n\n async postLocationQuery(request: SupportedLocationQueryCreationRequest) {\n return (await axios.post<LocationQueryCreationResponse>(`${this.config.apiDomain}/location/query`, { ...request }, this.axiosRequestConfig)).data\n }\n}\n\nexport { LocationDivinerApi }\n","import { axios, AxiosResponseTransformer } from '@xyo-network/axios'\n\nexport const locationDivinerApiResponseTransformer: AxiosResponseTransformer = (data, _headers) => {\n return data.data\n}\n\n/**\n * Gets the response transformers for the LocationDiviner API. Done as a method instead of a property\n * to allow detection of dynamically added response transformers.\n * @param axiosInstance The axios instance (defaults to the global instance if none provided)\n * @returns the response transformers for the LocationDiviner API\n */\nexport const getLocationDivinerApiResponseTransformer = (axiosInstance = axios): AxiosResponseTransformer[] => {\n // If there's any existing response transforms preserve them and\n // append our response transform, otherwise just return ours\n return axiosInstance.defaults.transformResponse\n ? ([] as AxiosResponseTransformer[]).concat(axiosInstance.defaults.transformResponse, locationDivinerApiResponseTransformer)\n : [locationDivinerApiResponseTransformer]\n}\n","import { LocationWitnessSchema } from '../../Witnesses'\n\nexport type LocationHeatmapQuerySchema = 'network.xyo.location.heatmap.query'\nexport const locationHeatmapQuerySchema: LocationHeatmapQuerySchema = 'network.xyo.location.heatmap.query'\n\nexport type LocationHeatmapAnswerSchema = 'network.xyo.location.heatmap.answer'\nexport const locationHeatmapAnswerSchema: LocationHeatmapAnswerSchema = 'network.xyo.location.heatmap.answer'\n\nexport type LocationHeatmapQuery = {\n schema: LocationWitnessSchema\n startTime?: string\n stopTime?: string\n}\n\nexport const isLocationHeatmapQuery = (query: Record<string, unknown>): query is LocationHeatmapQuery => {\n return query && query?.schema === locationHeatmapQuerySchema\n}\n","import { LocationWitnessSchema } from '../../Witnesses'\n\nexport type LocationQuadkeyHeatmapQuerySchema = 'network.xyo.location.heatmap.quadkey.query'\nexport const locationQuadkeyHeatmapQuerySchema: LocationQuadkeyHeatmapQuerySchema = 'network.xyo.location.heatmap.quadkey.query'\nexport type LocationQuadkeyHeatmapAnswerSchema = 'network.xyo.location.heatmap.quadkey.answer'\nexport const locationQuadkeyHeatmapAnswerSchema: LocationQuadkeyHeatmapAnswerSchema = 'network.xyo.location.heatmap.quadkey.answer'\nexport type LocationQuadkeyHeatmapQuery = {\n schema: LocationWitnessSchema\n startTime?: string\n stopTime?: string\n}\n\nexport const isLocationQuadkeyHeatmapQuery = (query: Record<string, unknown>): query is LocationQuadkeyHeatmapQuery => {\n return query && query?.schema === locationQuadkeyHeatmapQuerySchema\n}\n","import { LocationHeatmapQuerySchema } from './LocationHeatmapQuery'\nimport { LocationQuadkeyHeatmapQuerySchema } from './LocationQuadkeyHeatmapQuery'\nimport { LocationTimeRangeQuerySchema } from './LocationTimeRangeQuery'\n\nexport type LocationQuerySchema = LocationQuadkeyHeatmapQuerySchema | LocationHeatmapQuerySchema | LocationTimeRangeQuerySchema\n\nconst locationQuerySchemas: Record<LocationQuerySchema, true> = {\n 'network.xyo.location.heatmap.quadkey.query': true,\n 'network.xyo.location.heatmap.query': true,\n 'network.xyo.location.range.query': true,\n}\n\nexport const isSupportedLocationQuerySchema = (schema: string): schema is LocationQuerySchema => {\n return locationQuerySchemas[schema as LocationQuerySchema] || false\n}\n","import { LocationWitnessSchema } from '../../Witnesses'\n\nexport type LocationTimeRangeQuerySchema = 'network.xyo.location.range.query'\nexport const LocationTimeRangeQuerySchema: LocationTimeRangeQuerySchema = 'network.xyo.location.range.query'\n\nexport type LocationTimeRangeAnswerSchema = 'network.xyo.location.range.answer'\nexport const LocationTimeRangeAnswerSchema: LocationTimeRangeAnswerSchema = 'network.xyo.location.range.answer'\n\nexport type LocationTimeRangeQuery = {\n schema: LocationWitnessSchema\n startTime?: string\n stopTime?: string\n\n // TODO: Bounding rectangle, etc.\n}\n\nexport const isLocationTimeRangeQuery = (query: Record<string, unknown>): query is LocationTimeRangeQuery => {\n return query && query?.schema === LocationTimeRangeAnswerSchema\n}\n","import { Payload } from '@xyo-network/payload-model'\n\nexport type CurrentLocationWitnessSchema = 'co.coinapp.currentlocationwitness'\nexport const CurrentLocationWitnessSchema: CurrentLocationWitnessSchema = 'co.coinapp.currentlocationwitness'\n\nexport type CurrentLocationWitnessPayload = Payload<{\n altitudeMeters: number\n directionDegrees: number\n latitude: number\n longitude: number\n quadkey: string\n schema: CurrentLocationWitnessSchema\n speedKph: number\n}>\n","import { Payload } from '@xyo-network/payload-model'\n\nexport type LocationWitnessSchema = 'network.xyo.location'\nexport const LocationWitnessSchema: LocationWitnessSchema = 'network.xyo.location'\n\nexport interface Coordinates {\n accuracy: number | null\n altitude: number | null\n altitudeAccuracy: number | null\n heading: number | null\n latitude: number\n longitude: number\n speed: number | null\n}\nexport interface CurrentLocation {\n coords: Coordinates\n timestamp: number\n}\n\nexport type LocationWitnessPayload = Payload<{\n currentLocation: CurrentLocation\n schema: LocationWitnessSchema\n}>\n","import { DivinerConfig } from '@xyo-network/diviner-model'\n\nimport { ArchivistApi } from '../Api'\n\nexport type RemoteDivinerConfigSchema = 'network.xyo.diviner.remote.config'\nexport const RemoteDivinerConfigSchema: RemoteDivinerConfigSchema = 'network.xyo.diviner.remote.config'\n\nexport type RemoteDivinerConfig = DivinerConfig & {\n /** @deprecated use in params instead */\n api?: ArchivistApi\n archive?: string\n schema: RemoteDivinerConfigSchema\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACCA,IAAAA,gBAA6C;;;ACD7C,mBAAgD;AAEzC,IAAM,wCAAkE,CAAC,MAAM,aAAa;AACjG,SAAO,KAAK;AACd;AAQO,IAAM,2CAA2C,CAAC,gBAAgB,uBAAsC;AAG7G,SAAO,cAAc,SAAS,oBACzB,CAAC,EAAiC,OAAO,cAAc,SAAS,mBAAmB,qCAAqC,IACzH,CAAC,qCAAqC;AAC5C;;;ADXA,IAAM,qBAAN,MAAyB;AAAA,EACvB;AAAA,EACA,YAAY,QAAmB;AAC7B,SAAK,SAAS;AAAA,EAChB;AAAA,EAEA,IAAY,qBAA4C;AACtD,WAAO;AAAA,MACL,mBAAmB,yCAAyC;AAAA,IAC9D;AAAA,EACF;AAAA,EAEA,MAAM,iBAAiB,MAAc;AACnC,YAAQ,MAAM,oBAAM,IAA8B,GAAG,KAAK,OAAO,SAAS,mBAAmB,IAAI,IAAI,KAAK,kBAAkB,GAAG;AAAA,EACjI;AAAA,EAEA,MAAM,kBAAkB,SAAgD;AACtE,YAAQ,MAAM,oBAAM,KAAoC,GAAG,KAAK,OAAO,SAAS,mBAAmB,EAAE,GAAG,QAAQ,GAAG,KAAK,kBAAkB,GAAG;AAAA,EAC/I;AACF;;;AEvBO,IAAM,6BAAyD;AAG/D,IAAM,8BAA2D;AAQjE,IAAM,yBAAyB,CAAC,UAAkE;AACvG,SAAO,SAAS,OAAO,WAAW;AACpC;;;ACbO,IAAM,oCAAuE;AAE7E,IAAM,qCAAyE;AAO/E,IAAM,gCAAgC,CAAC,UAAyE;AACrH,SAAO,SAAS,OAAO,WAAW;AACpC;;;ACRA,IAAM,uBAA0D;AAAA,EAC9D,8CAA8C;AAAA,EAC9C,sCAAsC;AAAA,EACtC,oCAAoC;AACtC;AAEO,IAAM,iCAAiC,CAAC,WAAkD;AAC/F,SAAO,qBAAqB,MAA6B,KAAK;AAChE;;;ACXO,IAAM,+BAA6D;AAGnE,IAAM,gCAA+D;AAUrE,IAAM,2BAA2B,CAAC,UAAoE;AAC3G,SAAO,SAAS,OAAO,WAAW;AACpC;;;ACfO,IAAM,+BAA6D;;;ACAnE,IAAM,wBAA+C;;;ACErD,IAAM,4BAAuD;","names":["import_axios"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Diviner/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,uBAAuB,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Diviner/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,uBAAuB,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './LocationDiviner';
2
+ export * from './RemoteDivinerConfig';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Diviner/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,uBAAuB,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from "./LocationDiviner";
2
+ export * from "./RemoteDivinerConfig";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/Diviner/index.ts"],"sourcesContent":["export * from './LocationDiviner'\nexport * from './RemoteDivinerConfig'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;","names":[]}
@@ -0,0 +1,176 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/Simple.ts
21
+ var Simple_exports = {};
22
+ __export(Simple_exports, {
23
+ ApiSimple: () => ApiSimple
24
+ });
25
+ module.exports = __toCommonJS(Simple_exports);
26
+
27
+ // src/Base.ts
28
+ var import_axios = require("@xyo-network/axios");
29
+ var ApiBase = class _ApiBase {
30
+ config;
31
+ axios;
32
+ constructor(config) {
33
+ this.config = config;
34
+ this.axios = new import_axios.AxiosJson({ ...this.config, headers: this.headers });
35
+ }
36
+ get authenticated() {
37
+ return !!this.config.apiKey || !!this.config.jwtToken;
38
+ }
39
+ get headers() {
40
+ const headers = {};
41
+ if (this.config.jwtToken) {
42
+ headers.Authorization = `Bearer ${this.config.jwtToken}`;
43
+ }
44
+ if (this.config.apiKey) {
45
+ headers["x-api-key"] = this.config.apiKey;
46
+ }
47
+ return headers;
48
+ }
49
+ get query() {
50
+ return this.config.query ?? "";
51
+ }
52
+ get root() {
53
+ return this.config.root ?? "/";
54
+ }
55
+ static resolveResponse(result) {
56
+ return [result?.data?.data, result?.data, result];
57
+ }
58
+ static shapeResponse(response, responseType) {
59
+ const resolvedResponse = _ApiBase.resolveResponse(response);
60
+ return responseType === "tuple" ? resolvedResponse : resolvedResponse[0];
61
+ }
62
+ onError(error, depth = 0) {
63
+ this.config.reportableParent?.onError?.(error, depth + 1);
64
+ this.config.onError?.(error, depth);
65
+ }
66
+ onFailure(response, depth = 0) {
67
+ this.config.reportableParent?.onFailure?.(response, depth + 1);
68
+ this.config.onFailure?.(response, depth);
69
+ }
70
+ onSuccess(response, depth = 0) {
71
+ this.config.reportableParent?.onSuccess?.(response, depth + 1);
72
+ this.config.onSuccess?.(response, depth);
73
+ }
74
+ async deleteEndpoint(endPoint = "", responseType) {
75
+ const response = await this.monitorResponse(async () => {
76
+ return await this.axios.delete(`${this.resolveRoot()}${endPoint}${this.query}`);
77
+ });
78
+ return _ApiBase.shapeResponse(response, responseType);
79
+ }
80
+ async getEndpoint(endPoint = "", responseType) {
81
+ const response = await this.monitorResponse(async () => {
82
+ return await this.axios.get(`${this.resolveRoot()}${endPoint}${this.query}`);
83
+ });
84
+ return _ApiBase.shapeResponse(response, responseType);
85
+ }
86
+ handleMonitorResponseError(error, trapAxiosException) {
87
+ if (!error.isError) {
88
+ throw error;
89
+ }
90
+ if (trapAxiosException) {
91
+ error.response ? this.onFailure(error.response) : this.onError(error);
92
+ if (this.config.throwFailure) {
93
+ throw error;
94
+ }
95
+ return error.response;
96
+ }
97
+ }
98
+ async monitorResponse(closure) {
99
+ let trapAxiosException = true;
100
+ try {
101
+ const response = await closure();
102
+ trapAxiosException = false;
103
+ response.status < 300 ? this.onSuccess(response) : this.onFailure(response);
104
+ return response;
105
+ } catch (ex) {
106
+ this.handleMonitorResponseError(ex, trapAxiosException);
107
+ }
108
+ }
109
+ async postEndpoint(endPoint = "", data, responseType) {
110
+ const response = await this.monitorResponse(async () => {
111
+ return await this.axios.post(`${this.resolveRoot()}${endPoint}${this.query}`, data);
112
+ });
113
+ return _ApiBase.shapeResponse(response, responseType);
114
+ }
115
+ async putEndpoint(endPoint = "", data, responseType) {
116
+ const response = await this.monitorResponse(async () => {
117
+ return await this.axios.put(`${this.resolveRoot()}${endPoint}${this.query}`, data);
118
+ });
119
+ return _ApiBase.shapeResponse(response, responseType);
120
+ }
121
+ resolveRoot() {
122
+ return `${this.config.apiDomain}${this.root}`;
123
+ }
124
+ };
125
+
126
+ // src/objToQuery.ts
127
+ var objToQuery = (obj) => {
128
+ return `?${Object.entries(obj).map(([key, value]) => {
129
+ return `${key}=${value}`;
130
+ }).filter((value) => value !== void 0).join("&")}`;
131
+ };
132
+
133
+ // src/Simple.ts
134
+ var ApiSimple = class extends ApiBase {
135
+ async delete(responseType) {
136
+ switch (responseType) {
137
+ case "tuple":
138
+ return await this.deleteEndpoint(void 0, "tuple");
139
+ default:
140
+ return await this.deleteEndpoint(void 0);
141
+ }
142
+ }
143
+ async find(query = {}, responseType) {
144
+ switch (responseType) {
145
+ case "tuple":
146
+ return await this.getEndpoint(objToQuery(query), "tuple");
147
+ default:
148
+ return await this.getEndpoint(objToQuery(query));
149
+ }
150
+ }
151
+ async get(responseType) {
152
+ switch (responseType) {
153
+ case "tuple":
154
+ return await this.getEndpoint(void 0, "tuple");
155
+ default:
156
+ return await this.getEndpoint(void 0);
157
+ }
158
+ }
159
+ async post(data, responseType) {
160
+ switch (responseType) {
161
+ case "tuple":
162
+ return await this.postEndpoint(void 0, data, "tuple");
163
+ default:
164
+ return await this.postEndpoint(void 0, data);
165
+ }
166
+ }
167
+ async put(data, responseType) {
168
+ switch (responseType) {
169
+ case "tuple":
170
+ return await this.putEndpoint(void 0, data, "tuple");
171
+ default:
172
+ return await this.putEndpoint(void 0, data);
173
+ }
174
+ }
175
+ };
176
+ //# sourceMappingURL=Simple.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/Simple.ts","../../src/Base.ts","../../src/objToQuery.ts"],"sourcesContent":["import { ApiConfig, ApiResponseBody, ApiResponseTuple, ApiResponseTupleOrBody, ApiResponseType } from '@xyo-network/api-models'\nimport { Payload, PayloadFindFilter } from '@xyo-network/payload-model'\n\nimport { ApiBase } from './Base'\nimport { objToQuery } from './objToQuery'\n\nexport type ApiSimpleQuery = PayloadFindFilter\n\nexport class ApiSimple<T = Payload, D = T, Q extends ApiSimpleQuery = ApiSimpleQuery, C extends ApiConfig = ApiConfig> extends ApiBase<C> {\n async delete(): Promise<ApiResponseBody<T>>\n async delete(responseType?: 'body'): Promise<ApiResponseBody<T>>\n async delete(responseType?: 'tuple'): Promise<ApiResponseTuple<T>>\n async delete(responseType?: ApiResponseType): Promise<ApiResponseTupleOrBody<T>> {\n switch (responseType) {\n case 'tuple':\n return await this.deleteEndpoint(undefined, 'tuple')\n default:\n return await this.deleteEndpoint(undefined)\n }\n }\n\n async find(query?: Q): Promise<ApiResponseBody<T>>\n async find(query?: Q, responseType?: 'body'): Promise<ApiResponseBody<T>>\n async find(query?: Q, responseType?: 'tuple'): Promise<ApiResponseTuple<T>>\n async find(query = {}, responseType?: ApiResponseType): Promise<ApiResponseTupleOrBody<T>> {\n switch (responseType) {\n case 'tuple':\n return await this.getEndpoint(objToQuery(query), 'tuple')\n default:\n return await this.getEndpoint(objToQuery(query))\n }\n }\n\n async get(): Promise<ApiResponseBody<T>>\n async get(responseType?: 'body'): Promise<ApiResponseBody<T>>\n async get(responseType?: 'tuple'): Promise<ApiResponseTuple<T>>\n async get(responseType?: ApiResponseType): Promise<ApiResponseTupleOrBody<T>> {\n switch (responseType) {\n case 'tuple':\n return await this.getEndpoint(undefined, 'tuple')\n default:\n return await this.getEndpoint(undefined)\n }\n }\n\n async post(data?: D): Promise<ApiResponseBody<T>>\n async post(data?: D, responseType?: 'body'): Promise<ApiResponseBody<T>>\n async post(data?: D, responseType?: 'tuple'): Promise<ApiResponseTuple<T>>\n async post(data?: D, responseType?: ApiResponseType): Promise<ApiResponseTupleOrBody<T>> {\n switch (responseType) {\n case 'tuple':\n return await this.postEndpoint(undefined, data, 'tuple')\n default:\n return await this.postEndpoint(undefined, data)\n }\n }\n\n async put(data?: D): Promise<ApiResponseBody<T>>\n async put(data?: D, responseType?: 'body'): Promise<ApiResponseBody<T>>\n async put(data?: D, responseType?: 'tuple'): Promise<ApiResponseTuple<T>>\n async put(data?: D, responseType?: ApiResponseType): Promise<ApiResponseTupleOrBody<T>> {\n switch (responseType) {\n case 'tuple':\n return await this.putEndpoint(undefined, data, 'tuple')\n default:\n return await this.putEndpoint(undefined, data)\n }\n }\n}\n","import {\n ApiConfig,\n ApiEnvelope,\n ApiError,\n ApiReportable,\n ApiResponse,\n ApiResponseBody,\n ApiResponseTuple,\n ApiResponseTupleOrBody,\n ApiResponseType,\n} from '@xyo-network/api-models'\nimport { AxiosJson } from '@xyo-network/axios'\n\nexport class ApiBase<C extends ApiConfig = ApiConfig> implements ApiReportable {\n readonly config: C\n protected axios: AxiosJson\n\n constructor(config: C) {\n this.config = config\n this.axios = new AxiosJson({ ...this.config, headers: this.headers })\n }\n\n get authenticated() {\n return !!this.config.apiKey || !!this.config.jwtToken\n }\n\n protected get headers(): Record<string, string> {\n const headers: Record<string, string> = {}\n if (this.config.jwtToken) {\n headers.Authorization = `Bearer ${this.config.jwtToken}`\n }\n if (this.config.apiKey) {\n headers['x-api-key'] = this.config.apiKey\n }\n return headers\n }\n\n protected get query() {\n return this.config.query ?? ''\n }\n\n protected get root() {\n return this.config.root ?? '/'\n }\n\n private static resolveResponse<T>(result?: ApiResponse<ApiEnvelope<T>>) {\n return [result?.data?.data, result?.data, result] as ApiResponseTuple<T>\n }\n\n private static shapeResponse<T = unknown>(response: ApiResponse<ApiEnvelope<T>> | undefined, responseType?: ApiResponseType) {\n const resolvedResponse = ApiBase.resolveResponse(response)\n return responseType === 'tuple' ? resolvedResponse : resolvedResponse[0]\n }\n\n onError(error: ApiError, depth = 0) {\n this.config.reportableParent?.onError?.(error, depth + 1)\n this.config.onError?.(error, depth)\n }\n\n onFailure(response: ApiResponse, depth = 0) {\n this.config.reportableParent?.onFailure?.(response, depth + 1)\n this.config.onFailure?.(response, depth)\n }\n\n onSuccess(response: ApiResponse, depth = 0) {\n this.config.reportableParent?.onSuccess?.(response, depth + 1)\n this.config.onSuccess?.(response, depth)\n }\n\n protected async deleteEndpoint<T = unknown>(endPoint?: string): Promise<ApiResponseBody<T>>\n protected async deleteEndpoint<T = unknown>(endPoint?: string, responseType?: 'body'): Promise<ApiResponseBody<T>>\n protected async deleteEndpoint<T = unknown>(endPoint?: string, responseType?: 'tuple'): Promise<ApiResponseTuple<T>>\n protected async deleteEndpoint<T = unknown>(endPoint = '', responseType?: ApiResponseType): Promise<ApiResponseTupleOrBody<T>> {\n const response = await this.monitorResponse<T>(async () => {\n return await this.axios.delete<ApiEnvelope<T>, ApiResponse<ApiEnvelope<T>>>(`${this.resolveRoot()}${endPoint}${this.query}`)\n })\n return ApiBase.shapeResponse<T>(response, responseType)\n }\n\n protected async getEndpoint<T = unknown>(endPoint?: string): Promise<ApiResponseBody<T>>\n protected async getEndpoint<T = unknown>(endPoint?: string, responseType?: 'body'): Promise<ApiResponseBody<T>>\n protected async getEndpoint<T = unknown>(endPoint?: string, responseType?: 'tuple'): Promise<ApiResponseTuple<T>>\n protected async getEndpoint<T = unknown>(endPoint = '', responseType?: ApiResponseType): Promise<ApiResponseTupleOrBody<T>> {\n const response = await this.monitorResponse<T>(async () => {\n return await this.axios.get<ApiEnvelope<T>, ApiResponse<ApiEnvelope<T>>>(`${this.resolveRoot()}${endPoint}${this.query}`)\n })\n return ApiBase.shapeResponse<T>(response, responseType)\n }\n\n protected handleMonitorResponseError<T>(error: ApiError, trapAxiosException: boolean) {\n if (!error.isError) {\n throw error\n }\n\n if (trapAxiosException) {\n error.response ? this.onFailure(error.response) : this.onError(error)\n if (this.config.throwFailure) {\n throw error\n }\n return error.response as ApiResponse<ApiEnvelope<T>>\n }\n }\n\n protected async monitorResponse<T>(closure: () => Promise<ApiResponse<ApiEnvelope<T>>>) {\n //we use this to prevent accidental catching on exceptions in callbacks\n let trapAxiosException = true\n try {\n const response = await closure()\n trapAxiosException = false\n\n response.status < 300 ? this.onSuccess(response) : this.onFailure(response)\n\n return response\n } catch (ex) {\n this.handleMonitorResponseError(ex as ApiError, trapAxiosException)\n }\n }\n\n protected async postEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D): Promise<ApiResponseBody<T>>\n protected async postEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D, responseType?: 'body'): Promise<ApiResponseBody<T>>\n protected async postEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D, responseType?: 'tuple'): Promise<ApiResponseTuple<T>>\n protected async postEndpoint<T = unknown, D = unknown>(\n endPoint = '',\n data?: D,\n responseType?: ApiResponseType,\n ): Promise<ApiResponseTupleOrBody<T>> {\n const response = await this.monitorResponse<T>(async () => {\n return await this.axios.post<ApiEnvelope<T>, ApiResponse<ApiEnvelope<T>, D>, D>(`${this.resolveRoot()}${endPoint}${this.query}`, data)\n })\n return ApiBase.shapeResponse<T>(response, responseType)\n }\n\n protected async putEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D): Promise<ApiResponseBody<T>>\n protected async putEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D, responseType?: 'body'): Promise<ApiResponseBody<T>>\n protected async putEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D, responseType?: 'tuple'): Promise<ApiResponseTuple<T>>\n protected async putEndpoint<T = unknown, D = unknown>(endPoint = '', data?: D, responseType?: ApiResponseType): Promise<ApiResponseTupleOrBody<T>> {\n const response = await this.monitorResponse<T>(async () => {\n return await this.axios.put<ApiEnvelope<T>, ApiResponse<ApiEnvelope<T>, D>, D>(`${this.resolveRoot()}${endPoint}${this.query}`, data)\n })\n return ApiBase.shapeResponse<T>(response, responseType)\n }\n\n private resolveRoot() {\n return `${this.config.apiDomain}${this.root}`\n }\n}\n","export const objToQuery = (obj: Record<string, string | number | undefined>) => {\n return `?${Object.entries(obj)\n .map(([key, value]) => {\n return `${key}=${value}`\n })\n .filter((value) => value !== undefined)\n .join('&')}`\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACWA,mBAA0B;AAEnB,IAAM,UAAN,MAAM,SAAkE;AAAA,EACpE;AAAA,EACC;AAAA,EAEV,YAAY,QAAW;AACrB,SAAK,SAAS;AACd,SAAK,QAAQ,IAAI,uBAAU,EAAE,GAAG,KAAK,QAAQ,SAAS,KAAK,QAAQ,CAAC;AAAA,EACtE;AAAA,EAEA,IAAI,gBAAgB;AAClB,WAAO,CAAC,CAAC,KAAK,OAAO,UAAU,CAAC,CAAC,KAAK,OAAO;AAAA,EAC/C;AAAA,EAEA,IAAc,UAAkC;AAC9C,UAAM,UAAkC,CAAC;AACzC,QAAI,KAAK,OAAO,UAAU;AACxB,cAAQ,gBAAgB,UAAU,KAAK,OAAO,QAAQ;AAAA,IACxD;AACA,QAAI,KAAK,OAAO,QAAQ;AACtB,cAAQ,WAAW,IAAI,KAAK,OAAO;AAAA,IACrC;AACA,WAAO;AAAA,EACT;AAAA,EAEA,IAAc,QAAQ;AACpB,WAAO,KAAK,OAAO,SAAS;AAAA,EAC9B;AAAA,EAEA,IAAc,OAAO;AACnB,WAAO,KAAK,OAAO,QAAQ;AAAA,EAC7B;AAAA,EAEA,OAAe,gBAAmB,QAAsC;AACtE,WAAO,CAAC,QAAQ,MAAM,MAAM,QAAQ,MAAM,MAAM;AAAA,EAClD;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CAAC,CAAC,CAAC;IACjE,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,YAAY,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC;CAS1E"}
@@ -0,0 +1,22 @@
1
+ import { ApiConfig, ApiResponseBody, ApiResponseTuple } from '@xyo-network/api-models';
2
+ import { Payload, PayloadFindFilter } from '@xyo-network/payload-model';
3
+ import { ApiBase } from './Base';
4
+ export type ApiSimpleQuery = PayloadFindFilter;
5
+ export declare class ApiSimple<T = Payload, D = T, Q extends ApiSimpleQuery = ApiSimpleQuery, C extends ApiConfig = ApiConfig> extends ApiBase<C> {
6
+ delete(): Promise<ApiResponseBody<T>>;
7
+ delete(responseType?: 'body'): Promise<ApiResponseBody<T>>;
8
+ delete(responseType?: 'tuple'): Promise<ApiResponseTuple<T>>;
9
+ find(query?: Q): Promise<ApiResponseBody<T>>;
10
+ find(query?: Q, responseType?: 'body'): Promise<ApiResponseBody<T>>;
11
+ find(query?: Q, responseType?: 'tuple'): Promise<ApiResponseTuple<T>>;
12
+ get(): Promise<ApiResponseBody<T>>;
13
+ get(responseType?: 'body'): Promise<ApiResponseBody<T>>;
14
+ get(responseType?: 'tuple'): Promise<ApiResponseTuple<T>>;
15
+ post(data?: D): Promise<ApiResponseBody<T>>;
16
+ post(data?: D, responseType?: 'body'): Promise<ApiResponseBody<T>>;
17
+ post(data?: D, responseType?: 'tuple'): Promise<ApiResponseTuple<T>>;
18
+ put(data?: D): Promise<ApiResponseBody<T>>;
19
+ put(data?: D, responseType?: 'body'): Promise<ApiResponseBody<T>>;
20
+ put(data?: D, responseType?: 'tuple'): Promise<ApiResponseTuple<T>>;
21
+ }
22
+ //# sourceMappingURL=Simple.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Simple.d.ts","sourceRoot":"","sources":["../../src/Simple.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,gBAAgB,E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C,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;IAC3C,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;IAClE,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,YAAY,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC;IAUpE,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;IAC1C,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;IACjE,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,YAAY,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC;CAS1E"}
@@ -0,0 +1,48 @@
1
+ import { ApiBase } from "./Base";
2
+ import { objToQuery } from "./objToQuery";
3
+ class ApiSimple extends ApiBase {
4
+ async delete(responseType) {
5
+ switch (responseType) {
6
+ case "tuple":
7
+ return await this.deleteEndpoint(void 0, "tuple");
8
+ default:
9
+ return await this.deleteEndpoint(void 0);
10
+ }
11
+ }
12
+ async find(query = {}, responseType) {
13
+ switch (responseType) {
14
+ case "tuple":
15
+ return await this.getEndpoint(objToQuery(query), "tuple");
16
+ default:
17
+ return await this.getEndpoint(objToQuery(query));
18
+ }
19
+ }
20
+ async get(responseType) {
21
+ switch (responseType) {
22
+ case "tuple":
23
+ return await this.getEndpoint(void 0, "tuple");
24
+ default:
25
+ return await this.getEndpoint(void 0);
26
+ }
27
+ }
28
+ async post(data, responseType) {
29
+ switch (responseType) {
30
+ case "tuple":
31
+ return await this.postEndpoint(void 0, data, "tuple");
32
+ default:
33
+ return await this.postEndpoint(void 0, data);
34
+ }
35
+ }
36
+ async put(data, responseType) {
37
+ switch (responseType) {
38
+ case "tuple":
39
+ return await this.putEndpoint(void 0, data, "tuple");
40
+ default:
41
+ return await this.putEndpoint(void 0, data);
42
+ }
43
+ }
44
+ }
45
+ export {
46
+ ApiSimple
47
+ };
48
+ //# sourceMappingURL=Simple.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/Simple.ts"],"sourcesContent":["import { ApiConfig, ApiResponseBody, ApiResponseTuple, ApiResponseTupleOrBody, ApiResponseType } from '@xyo-network/api-models'\nimport { Payload, PayloadFindFilter } from '@xyo-network/payload-model'\n\nimport { ApiBase } from './Base'\nimport { objToQuery } from './objToQuery'\n\nexport type ApiSimpleQuery = PayloadFindFilter\n\nexport class ApiSimple<T = Payload, D = T, Q extends ApiSimpleQuery = ApiSimpleQuery, C extends ApiConfig = ApiConfig> extends ApiBase<C> {\n async delete(): Promise<ApiResponseBody<T>>\n async delete(responseType?: 'body'): Promise<ApiResponseBody<T>>\n async delete(responseType?: 'tuple'): Promise<ApiResponseTuple<T>>\n async delete(responseType?: ApiResponseType): Promise<ApiResponseTupleOrBody<T>> {\n switch (responseType) {\n case 'tuple':\n return await this.deleteEndpoint(undefined, 'tuple')\n default:\n return await this.deleteEndpoint(undefined)\n }\n }\n\n async find(query?: Q): Promise<ApiResponseBody<T>>\n async find(query?: Q, responseType?: 'body'): Promise<ApiResponseBody<T>>\n async find(query?: Q, responseType?: 'tuple'): Promise<ApiResponseTuple<T>>\n async find(query = {}, responseType?: ApiResponseType): Promise<ApiResponseTupleOrBody<T>> {\n switch (responseType) {\n case 'tuple':\n return await this.getEndpoint(objToQuery(query), 'tuple')\n default:\n return await this.getEndpoint(objToQuery(query))\n }\n }\n\n async get(): Promise<ApiResponseBody<T>>\n async get(responseType?: 'body'): Promise<ApiResponseBody<T>>\n async get(responseType?: 'tuple'): Promise<ApiResponseTuple<T>>\n async get(responseType?: ApiResponseType): Promise<ApiResponseTupleOrBody<T>> {\n switch (responseType) {\n case 'tuple':\n return await this.getEndpoint(undefined, 'tuple')\n default:\n return await this.getEndpoint(undefined)\n }\n }\n\n async post(data?: D): Promise<ApiResponseBody<T>>\n async post(data?: D, responseType?: 'body'): Promise<ApiResponseBody<T>>\n async post(data?: D, responseType?: 'tuple'): Promise<ApiResponseTuple<T>>\n async post(data?: D, responseType?: ApiResponseType): Promise<ApiResponseTupleOrBody<T>> {\n switch (responseType) {\n case 'tuple':\n return await this.postEndpoint(undefined, data, 'tuple')\n default:\n return await this.postEndpoint(undefined, data)\n }\n }\n\n async put(data?: D): Promise<ApiResponseBody<T>>\n async put(data?: D, responseType?: 'body'): Promise<ApiResponseBody<T>>\n async put(data?: D, responseType?: 'tuple'): Promise<ApiResponseTuple<T>>\n async put(data?: D, responseType?: ApiResponseType): Promise<ApiResponseTupleOrBody<T>> {\n switch (responseType) {\n case 'tuple':\n return await this.putEndpoint(undefined, data, 'tuple')\n default:\n return await this.putEndpoint(undefined, data)\n }\n }\n}\n"],"mappings":"AAGA,SAAS,eAAe;AACxB,SAAS,kBAAkB;AAIpB,MAAM,kBAAkH,QAAW;AAAA,EAIxI,MAAM,OAAO,cAAoE;AAC/E,YAAQ,cAAc;AAAA,MACpB,KAAK;AACH,eAAO,MAAM,KAAK,eAAe,QAAW,OAAO;AAAA,MACrD;AACE,eAAO,MAAM,KAAK,eAAe,MAAS;AAAA,IAC9C;AAAA,EACF;AAAA,EAKA,MAAM,KAAK,QAAQ,CAAC,GAAG,cAAoE;AACzF,YAAQ,cAAc;AAAA,MACpB,KAAK;AACH,eAAO,MAAM,KAAK,YAAY,WAAW,KAAK,GAAG,OAAO;AAAA,MAC1D;AACE,eAAO,MAAM,KAAK,YAAY,WAAW,KAAK,CAAC;AAAA,IACnD;AAAA,EACF;AAAA,EAKA,MAAM,IAAI,cAAoE;AAC5E,YAAQ,cAAc;AAAA,MACpB,KAAK;AACH,eAAO,MAAM,KAAK,YAAY,QAAW,OAAO;AAAA,MAClD;AACE,eAAO,MAAM,KAAK,YAAY,MAAS;AAAA,IAC3C;AAAA,EACF;AAAA,EAKA,MAAM,KAAK,MAAU,cAAoE;AACvF,YAAQ,cAAc;AAAA,MACpB,KAAK;AACH,eAAO,MAAM,KAAK,aAAa,QAAW,MAAM,OAAO;AAAA,MACzD;AACE,eAAO,MAAM,KAAK,aAAa,QAAW,IAAI;AAAA,IAClD;AAAA,EACF;AAAA,EAKA,MAAM,IAAI,MAAU,cAAoE;AACtF,YAAQ,cAAc;AAAA,MACpB,KAAK;AACH,eAAO,MAAM,KAAK,YAAY,QAAW,MAAM,OAAO;AAAA,MACxD;AACE,eAAO,MAAM,KAAK,YAAY,QAAW,IAAI;AAAA,IACjD;AAAA,EACF;AACF;","names":[]}
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/Test/index.ts
21
+ var Test_exports = {};
22
+ __export(Test_exports, {
23
+ testBoundWitness: () => testBoundWitness,
24
+ testPayload: () => testPayload,
25
+ testSchema: () => testSchema
26
+ });
27
+ module.exports = __toCommonJS(Test_exports);
28
+
29
+ // src/Test/testBoundWitness.ts
30
+ var import_boundwitness_model = require("@xyo-network/boundwitness-model");
31
+ var testBoundWitness = {
32
+ _client: "js",
33
+ _hash: "b0ffb9ebf872dc316b7be48327256c5316f7cb84d7c706861b18b86af1942dea",
34
+ _signatures: ["95100e5fd2012b958e96895870cfac5353c3a33a19314cfd1304ef7d01d052ec2a3ef80d6449cf88d463027fe0d868ed8cfb8b7323d37e93a08570233eea0b17"],
35
+ _timestamp: 1650067385598,
36
+ addresses: ["5346a2ce56ec4177b67092bda710e150ba6fa046"],
37
+ payload_hashes: ["20e14207f952a09f767ff614a648546c037fe524ace0bfe55db31f818aff1f1c"],
38
+ payload_schemas: ["network.xyo.test"],
39
+ previous_hashes: [null],
40
+ schema: import_boundwitness_model.BoundWitnessSchema
41
+ };
42
+
43
+ // src/Test/testPayload.ts
44
+ var testSchema = "network.xyo.test";
45
+ var testPayload = {
46
+ _hash: "20e14207f952a09f767ff614a648546c037fe524ace0bfe55db31f818aff1f1c",
47
+ _timestamp: 1609459255555,
48
+ numberField: 1,
49
+ objectField: {
50
+ numberField: 1,
51
+ stringField: "stringValue"
52
+ },
53
+ schema: testSchema,
54
+ stringField: "stringValue"
55
+ };
56
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/Test/index.ts","../../../src/Test/testBoundWitness.ts","../../../src/Test/testPayload.ts"],"sourcesContent":["export * from './testBoundWitness'\nexport * from './testPayload'\n","import { BoundWitness, BoundWitnessSchema } from '@xyo-network/boundwitness-model'\n\nconst testBoundWitness: BoundWitness = {\n _client: 'js',\n _hash: 'b0ffb9ebf872dc316b7be48327256c5316f7cb84d7c706861b18b86af1942dea',\n _signatures: ['95100e5fd2012b958e96895870cfac5353c3a33a19314cfd1304ef7d01d052ec2a3ef80d6449cf88d463027fe0d868ed8cfb8b7323d37e93a08570233eea0b17'],\n _timestamp: 1650067385598,\n addresses: ['5346a2ce56ec4177b67092bda710e150ba6fa046'],\n payload_hashes: ['20e14207f952a09f767ff614a648546c037fe524ace0bfe55db31f818aff1f1c'],\n payload_schemas: ['network.xyo.test'],\n previous_hashes: [null],\n schema: BoundWitnessSchema,\n} as BoundWitness\n\nexport { testBoundWitness }\n","import { StringKeyObject } from '@xyo-network/core'\nimport { Payload } from '@xyo-network/payload-model'\n\nconst testSchema = 'network.xyo.test'\nconst testPayload: Payload<StringKeyObject> = {\n _hash: '20e14207f952a09f767ff614a648546c037fe524ace0bfe55db31f818aff1f1c',\n _timestamp: 1609459255555,\n numberField: 1,\n objectField: {\n numberField: 1,\n stringField: 'stringValue',\n },\n schema: testSchema,\n stringField: 'stringValue',\n}\n\nexport { testPayload, testSchema }\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,gCAAiD;AAEjD,IAAM,mBAAiC;AAAA,EACrC,SAAS;AAAA,EACT,OAAO;AAAA,EACP,aAAa,CAAC,kIAAkI;AAAA,EAChJ,YAAY;AAAA,EACZ,WAAW,CAAC,0CAA0C;AAAA,EACtD,gBAAgB,CAAC,kEAAkE;AAAA,EACnF,iBAAiB,CAAC,kBAAkB;AAAA,EACpC,iBAAiB,CAAC,IAAI;AAAA,EACtB,QAAQ;AACV;;;ACTA,IAAM,aAAa;AACnB,IAAM,cAAwC;AAAA,EAC5C,OAAO;AAAA,EACP,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,aAAa;AAAA,IACX,aAAa;AAAA,IACb,aAAa;AAAA,EACf;AAAA,EACA,QAAQ;AAAA,EACR,aAAa;AACf;","names":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Test/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Test/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './testBoundWitness';
2
+ export * from './testPayload';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Test/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA"}