@spotto/contract 1.0.70-alpha.4 → 1.0.70-alpha.41

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 (368) hide show
  1. package/README.md +33 -33
  2. package/dist/actions/[id]/index.d.ts +1 -0
  3. package/dist/actions/[id]/index.js +18 -0
  4. package/dist/actions/[id]/index.js.map +1 -0
  5. package/dist/actions/[id]/patch/index.d.ts +2 -0
  6. package/dist/actions/[id]/patch/index.js +19 -0
  7. package/dist/actions/[id]/patch/index.js.map +1 -0
  8. package/dist/actions/[id]/patch/request.d.ts +12 -0
  9. package/dist/actions/[id]/patch/request.js +3 -0
  10. package/dist/actions/[id]/patch/request.js.map +1 -0
  11. package/dist/actions/[id]/patch/response.d.ts +1 -0
  12. package/dist/actions/[id]/patch/response.js +3 -0
  13. package/dist/actions/[id]/patch/response.js.map +1 -0
  14. package/dist/actions/get/index.d.ts +2 -0
  15. package/dist/actions/get/index.js +19 -0
  16. package/dist/actions/get/index.js.map +1 -0
  17. package/dist/actions/get/query.d.ts +14 -0
  18. package/dist/actions/get/query.js +3 -0
  19. package/dist/actions/get/query.js.map +1 -0
  20. package/dist/actions/get/response.d.ts +25 -0
  21. package/dist/actions/get/response.js +3 -0
  22. package/dist/actions/get/response.js.map +1 -0
  23. package/dist/actions/index.d.ts +4 -0
  24. package/dist/actions/index.js +21 -0
  25. package/dist/actions/index.js.map +1 -0
  26. package/dist/actions/post/index.d.ts +2 -0
  27. package/dist/actions/post/index.js +19 -0
  28. package/dist/actions/post/index.js.map +1 -0
  29. package/dist/actions/post/request.d.ts +15 -0
  30. package/dist/actions/post/request.js +3 -0
  31. package/dist/actions/post/request.js.map +1 -0
  32. package/dist/actions/post/response.d.ts +1 -0
  33. package/dist/actions/post/response.js +3 -0
  34. package/dist/actions/post/response.js.map +1 -0
  35. package/dist/actions/shared.d.ts +63 -0
  36. package/dist/actions/shared.js +17 -0
  37. package/dist/actions/shared.js.map +1 -0
  38. package/dist/ai/chat/index.d.ts +2 -0
  39. package/dist/ai/chat/index.js +19 -0
  40. package/dist/ai/chat/index.js.map +1 -0
  41. package/dist/ai/chat/request.d.ts +42 -0
  42. package/dist/ai/chat/request.js +3 -0
  43. package/dist/ai/chat/request.js.map +1 -0
  44. package/dist/ai/chat/response.d.ts +74 -0
  45. package/dist/ai/chat/response.js +11 -0
  46. package/dist/ai/chat/response.js.map +1 -0
  47. package/dist/ai/expression/index.d.ts +2 -0
  48. package/dist/ai/expression/index.js +19 -0
  49. package/dist/ai/expression/index.js.map +1 -0
  50. package/dist/ai/expression/request.d.ts +29 -0
  51. package/dist/ai/expression/request.js +3 -0
  52. package/dist/ai/expression/request.js.map +1 -0
  53. package/dist/ai/expression/response.d.ts +23 -0
  54. package/dist/ai/expression/response.js +3 -0
  55. package/dist/ai/expression/response.js.map +1 -0
  56. package/dist/ai/index.d.ts +4 -0
  57. package/dist/ai/index.js +21 -0
  58. package/dist/ai/index.js.map +1 -0
  59. package/dist/ai/semantic-query/index.d.ts +2 -0
  60. package/dist/ai/semantic-query/index.js +19 -0
  61. package/dist/ai/semantic-query/index.js.map +1 -0
  62. package/dist/ai/semantic-query/request.d.ts +43 -0
  63. package/dist/ai/semantic-query/request.js +3 -0
  64. package/dist/ai/semantic-query/request.js.map +1 -0
  65. package/dist/ai/semantic-query/response.d.ts +40 -0
  66. package/dist/ai/semantic-query/response.js +3 -0
  67. package/dist/ai/semantic-query/response.js.map +1 -0
  68. package/dist/ai/shared.d.ts +22 -0
  69. package/dist/ai/shared.js +11 -0
  70. package/dist/ai/shared.js.map +1 -0
  71. package/dist/assets/[id]/get.d.ts +16 -1
  72. package/dist/assets/[id]/patch/request.d.ts +5 -0
  73. package/dist/assets/count/query.d.ts +16 -1
  74. package/dist/assets/download/query.d.ts +7 -0
  75. package/dist/assets/get/query.d.ts +77 -4
  76. package/dist/assets/get/query.js +3 -0
  77. package/dist/assets/get/query.js.map +1 -1
  78. package/dist/assets/get/response.d.ts +6 -0
  79. package/dist/assets/index.d.ts +3 -0
  80. package/dist/assets/index.js +3 -0
  81. package/dist/assets/index.js.map +1 -1
  82. package/dist/assets/location/request.d.ts +10 -1
  83. package/dist/assets/partitions/index.d.ts +2 -0
  84. package/dist/assets/partitions/index.js +19 -0
  85. package/dist/assets/partitions/index.js.map +1 -0
  86. package/dist/assets/partitions/query.d.ts +16 -0
  87. package/dist/assets/partitions/query.js +3 -0
  88. package/dist/assets/partitions/query.js.map +1 -0
  89. package/dist/assets/partitions/response.d.ts +10 -0
  90. package/dist/assets/partitions/response.js +3 -0
  91. package/dist/assets/partitions/response.js.map +1 -0
  92. package/dist/assets/post/request.d.ts +2 -0
  93. package/dist/assets/post/request.js.map +1 -1
  94. package/dist/assets/readiness/index.d.ts +2 -0
  95. package/dist/assets/readiness/index.js +19 -0
  96. package/dist/assets/readiness/index.js.map +1 -0
  97. package/dist/assets/readiness/query.d.ts +7 -0
  98. package/dist/assets/readiness/query.js +3 -0
  99. package/dist/assets/readiness/query.js.map +1 -0
  100. package/dist/assets/readiness/response.d.ts +24 -0
  101. package/dist/assets/readiness/response.js +3 -0
  102. package/dist/assets/readiness/response.js.map +1 -0
  103. package/dist/assets/rollup/index.d.ts +2 -0
  104. package/dist/assets/rollup/index.js +19 -0
  105. package/dist/assets/rollup/index.js.map +1 -0
  106. package/dist/assets/rollup/query.d.ts +12 -0
  107. package/dist/assets/rollup/query.js +5 -0
  108. package/dist/assets/rollup/query.js.map +1 -0
  109. package/dist/assets/rollup/response.d.ts +58 -0
  110. package/dist/assets/rollup/response.js +3 -0
  111. package/dist/assets/rollup/response.js.map +1 -0
  112. package/dist/events/constants.d.ts +52 -1
  113. package/dist/events/constants.js +46 -1
  114. package/dist/events/constants.js.map +1 -1
  115. package/dist/events/get/query.d.ts +25 -0
  116. package/dist/events/get/response.d.ts +107 -3
  117. package/dist/fields/[id]/get.d.ts +7 -0
  118. package/dist/fields/[id]/patch/request.d.ts +14 -0
  119. package/dist/fields/constants.d.ts +68 -0
  120. package/dist/fields/constants.js +29 -1
  121. package/dist/fields/constants.js.map +1 -1
  122. package/dist/fields/post/request.d.ts +6 -0
  123. package/dist/fields/post/request.js.map +1 -1
  124. package/dist/forms/[id]/index.d.ts +1 -0
  125. package/dist/forms/[id]/index.js +18 -0
  126. package/dist/forms/[id]/index.js.map +1 -0
  127. package/dist/forms/[id]/patch/index.d.ts +2 -0
  128. package/dist/forms/[id]/patch/index.js +19 -0
  129. package/dist/forms/[id]/patch/index.js.map +1 -0
  130. package/dist/forms/[id]/patch/request.d.ts +14 -0
  131. package/dist/forms/[id]/patch/request.js +3 -0
  132. package/dist/forms/[id]/patch/request.js.map +1 -0
  133. package/dist/forms/[id]/patch/response.d.ts +1 -0
  134. package/dist/forms/[id]/patch/response.js +3 -0
  135. package/dist/forms/[id]/patch/response.js.map +1 -0
  136. package/dist/forms/constants.d.ts +19 -0
  137. package/dist/forms/constants.js +33 -0
  138. package/dist/forms/constants.js.map +1 -0
  139. package/dist/forms/get/index.d.ts +2 -0
  140. package/dist/forms/get/index.js +19 -0
  141. package/dist/forms/get/index.js.map +1 -0
  142. package/dist/forms/get/query.d.ts +18 -0
  143. package/dist/forms/get/query.js +3 -0
  144. package/dist/forms/get/query.js.map +1 -0
  145. package/dist/forms/get/response.d.ts +23 -0
  146. package/dist/forms/get/response.js +3 -0
  147. package/dist/forms/get/response.js.map +1 -0
  148. package/dist/forms/index.d.ts +6 -0
  149. package/dist/forms/index.js +23 -0
  150. package/dist/forms/index.js.map +1 -0
  151. package/dist/forms/post/index.d.ts +2 -0
  152. package/dist/forms/post/index.js +19 -0
  153. package/dist/forms/post/index.js.map +1 -0
  154. package/dist/forms/post/request.d.ts +9 -0
  155. package/dist/forms/post/request.js +3 -0
  156. package/dist/forms/post/request.js.map +1 -0
  157. package/dist/forms/post/response.d.ts +1 -0
  158. package/dist/forms/post/response.js +3 -0
  159. package/dist/forms/post/response.js.map +1 -0
  160. package/dist/forms/shared.d.ts +136 -0
  161. package/dist/forms/shared.js +3 -0
  162. package/dist/forms/shared.js.map +1 -0
  163. package/dist/forms/versions/index.d.ts +2 -0
  164. package/dist/forms/versions/index.js +19 -0
  165. package/dist/forms/versions/index.js.map +1 -0
  166. package/dist/forms/versions/path.d.ts +8 -0
  167. package/dist/forms/versions/path.js +3 -0
  168. package/dist/forms/versions/path.js.map +1 -0
  169. package/dist/forms/versions/response.d.ts +1 -0
  170. package/dist/forms/versions/response.js +3 -0
  171. package/dist/forms/versions/response.js.map +1 -0
  172. package/dist/index.d.ts +6 -0
  173. package/dist/index.js +6 -0
  174. package/dist/index.js.map +1 -1
  175. package/dist/locations/constants.d.ts +9 -0
  176. package/dist/locations/constants.js +10 -1
  177. package/dist/locations/constants.js.map +1 -1
  178. package/dist/locations/get/query.d.ts +22 -0
  179. package/dist/organisations/[id]/get.d.ts +7 -0
  180. package/dist/organisations/[id]/patch/request.d.ts +2 -0
  181. package/dist/organisations/constants.d.ts +20 -0
  182. package/dist/organisations/constants.js +10 -0
  183. package/dist/organisations/constants.js.map +1 -1
  184. package/dist/organisations/sso/constants.d.ts +15 -0
  185. package/dist/organisations/sso/constants.js +16 -1
  186. package/dist/organisations/sso/constants.js.map +1 -1
  187. package/dist/organisations/sso/types.d.ts +48 -0
  188. package/dist/readers/get/query.d.ts +12 -0
  189. package/dist/semantic-queries/[id]/index.d.ts +1 -0
  190. package/dist/semantic-queries/[id]/index.js +18 -0
  191. package/dist/semantic-queries/[id]/index.js.map +1 -0
  192. package/dist/semantic-queries/[id]/patch/index.d.ts +2 -0
  193. package/dist/semantic-queries/[id]/patch/index.js +19 -0
  194. package/dist/semantic-queries/[id]/patch/index.js.map +1 -0
  195. package/dist/semantic-queries/[id]/patch/request.d.ts +20 -0
  196. package/dist/semantic-queries/[id]/patch/request.js +3 -0
  197. package/dist/semantic-queries/[id]/patch/request.js.map +1 -0
  198. package/dist/semantic-queries/[id]/patch/response.d.ts +1 -0
  199. package/dist/semantic-queries/[id]/patch/response.js +3 -0
  200. package/dist/semantic-queries/[id]/patch/response.js.map +1 -0
  201. package/dist/semantic-queries/get/index.d.ts +2 -0
  202. package/dist/semantic-queries/get/index.js +19 -0
  203. package/dist/semantic-queries/get/index.js.map +1 -0
  204. package/dist/semantic-queries/get/query.d.ts +18 -0
  205. package/dist/semantic-queries/get/query.js +3 -0
  206. package/dist/semantic-queries/get/query.js.map +1 -0
  207. package/dist/semantic-queries/get/response.d.ts +40 -0
  208. package/dist/semantic-queries/get/response.js +3 -0
  209. package/dist/semantic-queries/get/response.js.map +1 -0
  210. package/dist/semantic-queries/index.d.ts +4 -0
  211. package/dist/semantic-queries/index.js +21 -0
  212. package/dist/semantic-queries/index.js.map +1 -0
  213. package/dist/semantic-queries/post/index.d.ts +2 -0
  214. package/dist/semantic-queries/post/index.js +19 -0
  215. package/dist/semantic-queries/post/index.js.map +1 -0
  216. package/dist/semantic-queries/post/request.d.ts +56 -0
  217. package/dist/semantic-queries/post/request.js +3 -0
  218. package/dist/semantic-queries/post/request.js.map +1 -0
  219. package/dist/semantic-queries/post/response.d.ts +1 -0
  220. package/dist/semantic-queries/post/response.js +3 -0
  221. package/dist/semantic-queries/post/response.js.map +1 -0
  222. package/dist/semantic-queries/shared.d.ts +876 -0
  223. package/dist/semantic-queries/shared.js +319 -0
  224. package/dist/semantic-queries/shared.js.map +1 -0
  225. package/dist/shared/attachments.d.ts +29 -0
  226. package/dist/shared/attachments.js +11 -0
  227. package/dist/shared/attachments.js.map +1 -0
  228. package/dist/shared/embed.d.ts +14 -0
  229. package/dist/shared/index.d.ts +2 -0
  230. package/dist/shared/index.js +2 -0
  231. package/dist/shared/index.js.map +1 -1
  232. package/dist/shared/readiness.d.ts +81 -0
  233. package/dist/shared/readiness.js +11 -0
  234. package/dist/shared/readiness.js.map +1 -0
  235. package/dist/snapshots/[id]/get.d.ts +142 -11
  236. package/dist/snapshots/[id]/get.js.map +1 -1
  237. package/dist/snapshots/get/query.d.ts +39 -0
  238. package/dist/snapshots/get/query.js +23 -1
  239. package/dist/snapshots/get/query.js.map +1 -1
  240. package/dist/snapshots/post/request.d.ts +21 -0
  241. package/dist/snapshots/post/request.js.map +1 -1
  242. package/dist/sso/onboard/request.d.ts +12 -1
  243. package/dist/sso/sso-mappings/request.d.ts +10 -5
  244. package/dist/submissions/[id]/index.d.ts +1 -0
  245. package/dist/submissions/[id]/index.js +18 -0
  246. package/dist/submissions/[id]/index.js.map +1 -0
  247. package/dist/submissions/[id]/void/post.d.ts +6 -0
  248. package/dist/submissions/[id]/void/post.js +3 -0
  249. package/dist/submissions/[id]/void/post.js.map +1 -0
  250. package/dist/submissions/constants.d.ts +14 -0
  251. package/dist/submissions/constants.js +21 -0
  252. package/dist/submissions/constants.js.map +1 -0
  253. package/dist/submissions/get/index.d.ts +2 -0
  254. package/dist/submissions/get/index.js +19 -0
  255. package/dist/submissions/get/index.js.map +1 -0
  256. package/dist/submissions/get/query.d.ts +14 -0
  257. package/dist/submissions/get/query.js +3 -0
  258. package/dist/submissions/get/query.js.map +1 -0
  259. package/dist/submissions/get/response.d.ts +6 -0
  260. package/dist/submissions/get/response.js +3 -0
  261. package/dist/submissions/get/response.js.map +1 -0
  262. package/dist/submissions/index.d.ts +6 -0
  263. package/dist/submissions/index.js +23 -0
  264. package/dist/submissions/index.js.map +1 -0
  265. package/dist/submissions/post/index.d.ts +2 -0
  266. package/dist/submissions/post/index.js +19 -0
  267. package/dist/submissions/post/index.js.map +1 -0
  268. package/dist/submissions/post/request.d.ts +17 -0
  269. package/dist/submissions/post/request.js +3 -0
  270. package/dist/submissions/post/request.js.map +1 -0
  271. package/dist/submissions/post/response.d.ts +22 -0
  272. package/dist/submissions/post/response.js +3 -0
  273. package/dist/submissions/post/response.js.map +1 -0
  274. package/dist/submissions/shared.d.ts +133 -0
  275. package/dist/submissions/shared.js +3 -0
  276. package/dist/submissions/shared.js.map +1 -0
  277. package/dist/submissions/uploads/[fileId]/get.d.ts +11 -0
  278. package/dist/submissions/uploads/[fileId]/get.js +3 -0
  279. package/dist/submissions/uploads/[fileId]/get.js.map +1 -0
  280. package/dist/submissions/uploads/[fileId]/index.d.ts +1 -0
  281. package/dist/submissions/uploads/[fileId]/index.js +18 -0
  282. package/dist/submissions/uploads/[fileId]/index.js.map +1 -0
  283. package/dist/submissions/uploads/index.d.ts +2 -0
  284. package/dist/submissions/uploads/index.js +19 -0
  285. package/dist/submissions/uploads/index.js.map +1 -0
  286. package/dist/submissions/uploads/post/index.d.ts +2 -0
  287. package/dist/submissions/uploads/post/index.js +19 -0
  288. package/dist/submissions/uploads/post/index.js.map +1 -0
  289. package/dist/submissions/uploads/post/request.d.ts +9 -0
  290. package/dist/submissions/uploads/post/request.js +3 -0
  291. package/dist/submissions/uploads/post/request.js.map +1 -0
  292. package/dist/submissions/uploads/post/response.d.ts +18 -0
  293. package/dist/submissions/uploads/post/response.js +3 -0
  294. package/dist/submissions/uploads/post/response.js.map +1 -0
  295. package/dist/types/[id]/get.d.ts +34 -4
  296. package/dist/types/[id]/patch/request.d.ts +24 -4
  297. package/dist/types/constants.d.ts +9 -0
  298. package/dist/types/constants.js +13 -0
  299. package/dist/types/constants.js.map +1 -0
  300. package/dist/types/index.d.ts +1 -0
  301. package/dist/types/index.js +1 -0
  302. package/dist/types/index.js.map +1 -1
  303. package/dist/types/post/request.d.ts +30 -4
  304. package/dist/types/post/request.js.map +1 -1
  305. package/dist/usergroups/[id]/index.d.ts +1 -0
  306. package/dist/usergroups/[id]/index.js +18 -0
  307. package/dist/usergroups/[id]/index.js.map +1 -0
  308. package/dist/usergroups/[id]/patch/index.d.ts +2 -0
  309. package/dist/usergroups/[id]/patch/index.js +19 -0
  310. package/dist/usergroups/[id]/patch/index.js.map +1 -0
  311. package/dist/usergroups/[id]/patch/request.d.ts +23 -0
  312. package/dist/usergroups/[id]/patch/request.js +3 -0
  313. package/dist/usergroups/[id]/patch/request.js.map +1 -0
  314. package/dist/usergroups/[id]/patch/response.d.ts +1 -0
  315. package/dist/usergroups/[id]/patch/response.js +3 -0
  316. package/dist/usergroups/[id]/patch/response.js.map +1 -0
  317. package/dist/usergroups/access.d.ts +100 -0
  318. package/dist/usergroups/access.js +24 -0
  319. package/dist/usergroups/access.js.map +1 -0
  320. package/dist/usergroups/get/index.d.ts +2 -0
  321. package/dist/usergroups/get/index.js +19 -0
  322. package/dist/usergroups/get/index.js.map +1 -0
  323. package/dist/usergroups/get/query.d.ts +12 -0
  324. package/dist/usergroups/get/query.js +3 -0
  325. package/dist/usergroups/get/query.js.map +1 -0
  326. package/dist/usergroups/get/response.d.ts +44 -0
  327. package/dist/usergroups/get/response.js +3 -0
  328. package/dist/usergroups/get/response.js.map +1 -0
  329. package/dist/usergroups/index.d.ts +5 -0
  330. package/dist/usergroups/index.js +22 -0
  331. package/dist/usergroups/index.js.map +1 -0
  332. package/dist/usergroups/post/index.d.ts +2 -0
  333. package/dist/usergroups/post/index.js +19 -0
  334. package/dist/usergroups/post/index.js.map +1 -0
  335. package/dist/usergroups/post/request.d.ts +17 -0
  336. package/dist/usergroups/post/request.js +3 -0
  337. package/dist/usergroups/post/request.js.map +1 -0
  338. package/dist/usergroups/post/response.d.ts +1 -0
  339. package/dist/usergroups/post/response.js +3 -0
  340. package/dist/usergroups/post/response.js.map +1 -0
  341. package/dist/usergroups/shared.d.ts +8 -0
  342. package/dist/usergroups/shared.js +11 -0
  343. package/dist/usergroups/shared.js.map +1 -0
  344. package/dist/users/[id]/get/response.d.ts +0 -2
  345. package/dist/users/[id]/patch/request.d.ts +5 -1
  346. package/dist/users/console.d.ts +15 -0
  347. package/dist/users/console.js +5 -0
  348. package/dist/users/console.js.map +1 -0
  349. package/dist/users/current.d.ts +70 -4
  350. package/dist/users/get/query.d.ts +0 -2
  351. package/dist/users/home-layout/index.d.ts +3 -0
  352. package/dist/users/home-layout/index.js +20 -0
  353. package/dist/users/home-layout/index.js.map +1 -0
  354. package/dist/users/home-layout/request.d.ts +5 -0
  355. package/dist/users/home-layout/request.js +3 -0
  356. package/dist/users/home-layout/request.js.map +1 -0
  357. package/dist/users/home-layout/response.d.ts +5 -0
  358. package/dist/users/home-layout/response.js +3 -0
  359. package/dist/users/home-layout/response.js.map +1 -0
  360. package/dist/users/home-layout/shared.d.ts +288 -0
  361. package/dist/users/home-layout/shared.js +30 -0
  362. package/dist/users/home-layout/shared.js.map +1 -0
  363. package/dist/users/index.d.ts +2 -0
  364. package/dist/users/index.js +2 -0
  365. package/dist/users/index.js.map +1 -1
  366. package/dist/users/password-reset.d.ts +8 -1
  367. package/dist/users/post/request.d.ts +12 -1
  368. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./shared"), exports);
18
+ __exportStar(require("./ai"), exports);
18
19
  __exportStar(require("./events"), exports);
19
20
  __exportStar(require("./integrations"), exports);
20
21
  __exportStar(require("./labels"), exports);
@@ -37,4 +38,9 @@ __exportStar(require("./system"), exports);
37
38
  __exportStar(require("./reports"), exports);
38
39
  __exportStar(require("./sso"), exports);
39
40
  __exportStar(require("./views"), exports);
41
+ __exportStar(require("./semantic-queries"), exports);
42
+ __exportStar(require("./forms"), exports);
43
+ __exportStar(require("./actions"), exports);
44
+ __exportStar(require("./submissions"), exports);
45
+ __exportStar(require("./usergroups"), exports);
40
46
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,2CAAwB;AACxB,iDAA8B;AAC9B,2CAAwB;AACxB,2CAAwB;AACxB,8CAA2B;AAC3B,6CAA0B;AAC1B,kDAA+B;AAC/B,4CAAyB;AACzB,0CAAuB;AACvB,yCAAsB;AACtB,8CAA2B;AAC3B,0CAAuB;AACvB,8CAA2B;AAC3B,0CAAuB;AACvB,2CAAwB;AACxB,8CAA2B;AAC3B,2CAAwB;AACxB,8CAA2B;AAC3B,2CAAwB;AACxB,4CAAyB;AACzB,wCAAqB;AACrB,0CAAuB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,uCAAoB;AACpB,2CAAwB;AACxB,iDAA8B;AAC9B,2CAAwB;AACxB,2CAAwB;AACxB,8CAA2B;AAC3B,6CAA0B;AAC1B,kDAA+B;AAC/B,4CAAyB;AACzB,0CAAuB;AACvB,yCAAsB;AACtB,8CAA2B;AAC3B,0CAAuB;AACvB,8CAA2B;AAC3B,0CAAuB;AACvB,2CAAwB;AACxB,8CAA2B;AAC3B,2CAAwB;AACxB,8CAA2B;AAC3B,2CAAwB;AACxB,4CAAyB;AACzB,wCAAqB;AACrB,0CAAuB;AACvB,qDAAkC;AAClC,0CAAuB;AACvB,4CAAyB;AACzB,gDAA6B;AAC7B,+CAA4B"}
@@ -2,3 +2,12 @@ export declare type LocationType = 'MOVING' | 'FIXED';
2
2
  export declare const LOCATION_TYPES: LocationType[];
3
3
  export declare type LocationStatus = 'NEVERSEEN' | 'UNKNOWN' | 'HOME' | 'AWAY' | 'ROAMING' | 'MAP' | 'DISPATCH' | 'WITH';
4
4
  export declare const LOCATION_STATUS: LocationStatus[];
5
+ /**
6
+ * Every status that means the location system has placed the asset at least
7
+ * once: the enum minus NEVERSEEN. "Seen" is read off the status, never off
8
+ * the state object — a state can exist without the asset ever having been
9
+ * located (a kit gains `supportsWith` when its first member attaches). One
10
+ * definition, shared by the flat filter, the query language and the client,
11
+ * so a status added to the enum is seen everywhere at once.
12
+ */
13
+ export declare const SEEN_LOCATION_STATUSES: LocationStatus[];
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LOCATION_STATUS = exports.LOCATION_TYPES = void 0;
3
+ exports.SEEN_LOCATION_STATUSES = exports.LOCATION_STATUS = exports.LOCATION_TYPES = void 0;
4
4
  exports.LOCATION_TYPES = ['MOVING', 'FIXED'];
5
5
  exports.LOCATION_STATUS = [
6
6
  'NEVERSEEN',
@@ -12,4 +12,13 @@ exports.LOCATION_STATUS = [
12
12
  'DISPATCH',
13
13
  'WITH',
14
14
  ];
15
+ /**
16
+ * Every status that means the location system has placed the asset at least
17
+ * once: the enum minus NEVERSEEN. "Seen" is read off the status, never off
18
+ * the state object — a state can exist without the asset ever having been
19
+ * located (a kit gains `supportsWith` when its first member attaches). One
20
+ * definition, shared by the flat filter, the query language and the client,
21
+ * so a status added to the enum is seen everywhere at once.
22
+ */
23
+ exports.SEEN_LOCATION_STATUSES = exports.LOCATION_STATUS.filter((status) => status !== 'NEVERSEEN');
15
24
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/locations/constants.ts"],"names":[],"mappings":";;;AACa,QAAA,cAAc,GAAmB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAA;AAWpD,QAAA,eAAe,GAAqB;IAC/C,WAAW;IACX,SAAS;IACT,MAAM;IACN,MAAM;IACN,SAAS;IACT,KAAK;IACL,UAAU;IACV,MAAM;CACP,CAAA"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/locations/constants.ts"],"names":[],"mappings":";;;AACa,QAAA,cAAc,GAAmB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAA;AAWpD,QAAA,eAAe,GAAqB;IAC/C,WAAW;IACX,SAAS;IACT,MAAM;IACN,MAAM;IACN,SAAS;IACT,KAAK;IACL,UAAU;IACV,MAAM;CACP,CAAA;AAED;;;;;;;GAOG;AACU,QAAA,sBAAsB,GAAqB,uBAAe,CAAC,MAAM,CAC5E,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,KAAK,WAAW,CACnC,CAAA"}
@@ -1,5 +1,6 @@
1
1
  import { SearchableSortFields, SortOrders } from '../../shared';
2
2
  import { LocationType } from '../constants';
3
+ import { ListScope } from '../../usergroups/access';
3
4
  export declare type LocationSearchField = 'name';
4
5
  export declare type LocationEmbedField = 'meta' | 'tagIds' | 'readers' | 'telemetry' | 'status';
5
6
  export declare type LocationSortField = SearchableSortFields | 'path';
@@ -22,6 +23,8 @@ export interface LocationFilters {
22
23
  */
23
24
  manifestId?: string;
24
25
  manifestIds?: string[];
26
+ /** Offline-sync delta read: matches records whose `lastChanged` >= this ms-epoch. */
27
+ updatedAfter?: number;
25
28
  }
26
29
  export interface GetLocationsQuery extends LocationFilters {
27
30
  page?: number;
@@ -29,4 +32,23 @@ export interface GetLocationsQuery extends LocationFilters {
29
32
  sort?: LocationSortField;
30
33
  sortOrder?: SortOrders;
31
34
  embed?: Array<LocationEmbedField>;
35
+ /**
36
+ * Run a stored semantic query by reference instead of the flat filters.
37
+ * Must NOT be combined with any filter member — the combination is rejected,
38
+ * never merged. An expired or unknown id returns a distinct "gone" error,
39
+ * never an empty list.
40
+ */
41
+ semanticQueryId?: string;
42
+ /**
43
+ * IANA timezone for resolving relative date conditions. Without it the same
44
+ * saved query resolves "today" differently depending on who runs it.
45
+ */
46
+ timezone?: string;
47
+ /**
48
+ * `caller`, the default, applies the caller's location union. `organisation`
49
+ * ignores it and lists every location, for a client that filters locally.
50
+ * Any signed-in user may pass it. Not a filter: it combines with a stored
51
+ * query.
52
+ */
53
+ scope?: ListScope;
32
54
  }
@@ -5,6 +5,13 @@ export interface GetOrganisationResponse {
5
5
  id: string;
6
6
  name: string;
7
7
  tenant?: Tenant;
8
+ /**
9
+ * The organisation's IANA timezone (one of `timezoneOptions`), the calendar
10
+ * its readiness rules evaluate `TODAY()` against and the overnight readiness
11
+ * refresh follows. Absent when never set: read it as
12
+ * `DEFAULT_ORGANISATION_TIMEZONE`.
13
+ */
14
+ timezone?: string;
8
15
  ancestors?: IEmbeddedEntity[];
9
16
  preferences?: Preferences;
10
17
  integrations?: Integrations;
@@ -6,6 +6,8 @@ export interface NetworkWithDeletionFlag extends INetworkRequest {
6
6
  export interface UpdateOrganisationRequest {
7
7
  name?: string;
8
8
  tenant?: Tenant;
9
+ /** IANA timezone, one of `timezoneOptions` — see `GetOrganisationResponse.timezone`. */
10
+ timezone?: string;
9
11
  networks?: NetworkWithDeletionFlag[];
10
12
  preferences?: Preferences;
11
13
  }
@@ -21,15 +21,35 @@ export interface SnapshotPreferences {
21
21
  export interface WorkflowPreferences {
22
22
  mainMenuEnabled?: boolean;
23
23
  }
24
+ /**
25
+ * Org toggle for the usergroups feature set (field/action visibility +
26
+ * location record scope). Default OFF: enforcement, hiding, and the
27
+ * /users/current access lists all short-circuit; usergroup data stays
28
+ * inert. Every flip to ON recomputes all user caches (and bootstraps the
29
+ * "all" group iff the org has zero usergroups).
30
+ */
31
+ export interface UsergroupPreferences {
32
+ enabled: boolean;
33
+ }
24
34
  export interface Preferences {
25
35
  readers: ReaderPreferences;
26
36
  assets: AssetPreferences;
27
37
  locations: LocationPreferences;
28
38
  snapshots?: SnapshotPreferences;
29
39
  workflows?: WorkflowPreferences;
40
+ usergroups?: UsergroupPreferences;
30
41
  mainMenuLinks?: Array<{
31
42
  label: string;
32
43
  url: string;
33
44
  }>;
34
45
  }
35
46
  export declare type Tenant = 'g2g' | 'spotto';
47
+ /**
48
+ * The timezone an organisation is read as when it has never set one
49
+ * (`GetOrganisationResponse.timezone` absent). Readiness rules that call
50
+ * `TODAY()` evaluate against the organisation's local date, so this is also
51
+ * the calendar the overnight readiness refresh follows for such organisations.
52
+ * Sydney is the company's home zone and where most customers are; an
53
+ * organisation elsewhere should set its own.
54
+ */
55
+ export declare const DEFAULT_ORGANISATION_TIMEZONE = "Australia/Sydney";
@@ -1,3 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DEFAULT_ORGANISATION_TIMEZONE = void 0;
4
+ /**
5
+ * The timezone an organisation is read as when it has never set one
6
+ * (`GetOrganisationResponse.timezone` absent). Readiness rules that call
7
+ * `TODAY()` evaluate against the organisation's local date, so this is also
8
+ * the calendar the overnight readiness refresh follows for such organisations.
9
+ * Sydney is the company's home zone and where most customers are; an
10
+ * organisation elsewhere should set its own.
11
+ */
12
+ exports.DEFAULT_ORGANISATION_TIMEZONE = 'Australia/Sydney';
3
13
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/organisations/constants.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/organisations/constants.ts"],"names":[],"mappings":";;;AAwDA;;;;;;;GAOG;AACU,QAAA,6BAA6B,GAAG,kBAAkB,CAAA"}
@@ -24,6 +24,21 @@ export declare type UnknownRoleActionType = (typeof UNKNOWN_ROLE_ACTION_TYPES)[n
24
24
  * can be onboarded against it. This is a manual one-off via the AWS console.
25
25
  */
26
26
  export declare const DEFAULT_ROLE_CLAIM_ATTRIBUTE = "custom:g2g_role";
27
+ /**
28
+ * Cognito user attribute that carries the IdP-emitted group memberships.
29
+ * Fixed across all SSO orgs, exactly like `DEFAULT_ROLE_CLAIM_ATTRIBUTE` —
30
+ * per-customer IdP attribute mappings wire the customer's group claim
31
+ * (`idpGroupClaim`, opt-in) into this attribute, and the snapshot trigger +
32
+ * usergroup sync read from it.
33
+ *
34
+ * Operational note: each User Pool (dev / staging / prod) needs the
35
+ * `g2g_groups` custom attribute (String, mutable, max length 2048 — the
36
+ * Cognito maximum) defined once before any org can adopt group mapping.
37
+ * Manual one-off via the AWS console, same as `g2g_role`. The 2048-char
38
+ * ceiling fits ~48 Entra GUIDs — IdP setup guidance must scope the emitted
39
+ * claim to app-assigned groups.
40
+ */
41
+ export declare const DEFAULT_GROUP_CLAIM_ATTRIBUTE = "custom:g2g_groups";
27
42
  /**
28
43
  * The IdP-side claim name customers MUST emit. Mandated rather than
29
44
  * configurable per-customer — every onboarded IdP gets the same Cognito
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.buildSsoProviderName = exports.DEFAULT_IDP_ROLE_CLAIM = exports.DEFAULT_ROLE_CLAIM_ATTRIBUTE = exports.UNKNOWN_ROLE_ACTION_TYPES = exports.SSO_MODES = void 0;
3
+ exports.buildSsoProviderName = exports.DEFAULT_IDP_ROLE_CLAIM = exports.DEFAULT_GROUP_CLAIM_ATTRIBUTE = exports.DEFAULT_ROLE_CLAIM_ATTRIBUTE = exports.UNKNOWN_ROLE_ACTION_TYPES = exports.SSO_MODES = void 0;
4
4
  /**
5
5
  * Supported SSO protocol modes for an organisation's per-customer Cognito IdP.
6
6
  */
@@ -25,6 +25,21 @@ exports.UNKNOWN_ROLE_ACTION_TYPES = ['deny', 'defaultRole'];
25
25
  * can be onboarded against it. This is a manual one-off via the AWS console.
26
26
  */
27
27
  exports.DEFAULT_ROLE_CLAIM_ATTRIBUTE = 'custom:g2g_role';
28
+ /**
29
+ * Cognito user attribute that carries the IdP-emitted group memberships.
30
+ * Fixed across all SSO orgs, exactly like `DEFAULT_ROLE_CLAIM_ATTRIBUTE` —
31
+ * per-customer IdP attribute mappings wire the customer's group claim
32
+ * (`idpGroupClaim`, opt-in) into this attribute, and the snapshot trigger +
33
+ * usergroup sync read from it.
34
+ *
35
+ * Operational note: each User Pool (dev / staging / prod) needs the
36
+ * `g2g_groups` custom attribute (String, mutable, max length 2048 — the
37
+ * Cognito maximum) defined once before any org can adopt group mapping.
38
+ * Manual one-off via the AWS console, same as `g2g_role`. The 2048-char
39
+ * ceiling fits ~48 Entra GUIDs — IdP setup guidance must scope the emitted
40
+ * claim to app-assigned groups.
41
+ */
42
+ exports.DEFAULT_GROUP_CLAIM_ATTRIBUTE = 'custom:g2g_groups';
28
43
  /**
29
44
  * The IdP-side claim name customers MUST emit. Mandated rather than
30
45
  * configurable per-customer — every onboarded IdP gets the same Cognito
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/organisations/sso/constants.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACU,QAAA,SAAS,GAAG,CAAC,MAAM,EAAE,MAAM,CAAU,CAAA;AAIlD;;;;GAIG;AACU,QAAA,yBAAyB,GAAG,CAAC,MAAM,EAAE,aAAa,CAAU,CAAA;AAIzE;;;;;;;;;;;;GAYG;AACU,QAAA,4BAA4B,GAAG,iBAAiB,CAAA;AAE7D;;;;;;;;;;GAUG;AACU,QAAA,sBAAsB,GAAG,UAAU,CAAA;AAEhD;;;;;;;;GAQG;AACI,MAAM,oBAAoB,GAAG,CAAC,QAAgB,EAAU,EAAE,CAC/D,OAAO,QAAQ,EAAE,CAAA;AADN,QAAA,oBAAoB,wBACd"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/organisations/sso/constants.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACU,QAAA,SAAS,GAAG,CAAC,MAAM,EAAE,MAAM,CAAU,CAAA;AAIlD;;;;GAIG;AACU,QAAA,yBAAyB,GAAG,CAAC,MAAM,EAAE,aAAa,CAAU,CAAA;AAIzE;;;;;;;;;;;;GAYG;AACU,QAAA,4BAA4B,GAAG,iBAAiB,CAAA;AAE7D;;;;;;;;;;;;;GAaG;AACU,QAAA,6BAA6B,GAAG,mBAAmB,CAAA;AAEhE;;;;;;;;;;GAUG;AACU,QAAA,sBAAsB,GAAG,UAAU,CAAA;AAEhD;;;;;;;;GAQG;AACI,MAAM,oBAAoB,GAAG,CAAC,QAAgB,EAAU,EAAE,CAC/D,OAAO,QAAQ,EAAE,CAAA;AADN,QAAA,oBAAoB,wBACd"}
@@ -42,6 +42,40 @@ export interface RoleMappingInput {
42
42
  propertyValue: string;
43
43
  roleId: string;
44
44
  }
45
+ /**
46
+ * One row in the org's usergroup-mapping list. At sign-in the IdP-emitted
47
+ * group claim (captured into `custom:g2g_groups` via the per-org Cognito IdP
48
+ * `AttributeMapping`) is normalised to `string[]` and matched against this
49
+ * list; unlike `RoleMapping` (first match wins, order significant) the
50
+ * semantics are **union** — the user joins every group whose `propertyValue`
51
+ * appears in the normalised values, and order is irrelevant.
52
+ *
53
+ * A group referenced here is *SSO-managed* for federated users: membership
54
+ * within the mapped set is reconciled (added AND removed) on every sync, and
55
+ * manual membership edits for `authProvider: 'sso'` users are refused at both
56
+ * write doors. Groups NOT referenced here are untouched by sync.
57
+ *
58
+ * Generic over the identifier type so the same shape covers both the wire
59
+ * layer (string IDs) and the Mongo storage layer (ObjectId).
60
+ */
61
+ export interface UsergroupMapping<TId = string> {
62
+ _id: TId;
63
+ /**
64
+ * Value to look for in the IdP-emitted claim. Compared with `===` against
65
+ * each entry of the normalised `string[]` — case-sensitive, exact match.
66
+ */
67
+ propertyValue: string;
68
+ /** Spotto user group the matching user joins. */
69
+ usergroupId: TId;
70
+ }
71
+ /**
72
+ * Wire shape for creating / replacing usergroup mappings. `_id` is
73
+ * server-assigned on each write, so it's not part of the input.
74
+ */
75
+ export interface UsergroupMappingInput {
76
+ propertyValue: string;
77
+ usergroupId: string;
78
+ }
45
79
  export interface SsoEnabledBase<TRoleId = string> {
46
80
  enabled: true;
47
81
  /** Email domains owned by this org. One domain → one org (enforced at write time). */
@@ -66,6 +100,20 @@ export interface SsoEnabledBase<TRoleId = string> {
66
100
  * through to `unknownRoleAction`. See `RoleMapping`.
67
101
  */
68
102
  roleMappings: RoleMapping<TRoleId>[];
103
+ /**
104
+ * IdP-side claim name that feeds the Cognito `custom:g2g_groups` attribute.
105
+ * Absent ⇒ group sync is off for this org (the pre-feature state; also the
106
+ * default — group mapping is opt-in per org). May name the same IdP claim
107
+ * as `idpRoleClaim`: two `AttributeMapping` entries can read one claim.
108
+ */
109
+ idpGroupClaim?: string;
110
+ /**
111
+ * Org-scoped usergroup-mapping list, union semantics. Absent/empty ⇒ no
112
+ * groups are SSO-managed and sync is a no-op. Unlike the role claim there
113
+ * is no unknown-value fallback — zero matches is a legitimate outcome
114
+ * (`unknownRoleAction` remains the only login gate). See `UsergroupMapping`.
115
+ */
116
+ usergroupMappings?: UsergroupMapping<TRoleId>[];
69
117
  /**
70
118
  * Mixed-mode opt-in: when `true`, the org accepts both SSO-managed users
71
119
  * (via federation) AND password-auth users created through `POST /users`.
@@ -21,4 +21,16 @@ export interface GetReadersQuery extends ReaderFilters {
21
21
  sort?: SearchableSortFields;
22
22
  sortOrder?: SortOrders;
23
23
  embed?: ReaderEmbedField[];
24
+ /**
25
+ * Run a stored semantic query instead of the filters above. The stored query
26
+ * is the WHOLE filter — combining it with any filter parameter is rejected,
27
+ * never merged.
28
+ *
29
+ * No serialised counterpart, as on snapshots and unlike `GET /events`:
30
+ * readers are cached whole and the list filters them in the browser, so this
31
+ * path serves saved queries and widgets rather than every keystroke.
32
+ */
33
+ semanticQueryId?: string;
34
+ /** IANA zone for the query's relative dates; the record's own wins if set. */
35
+ timezone?: string;
24
36
  }
@@ -0,0 +1 @@
1
+ export * from './patch';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./patch"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/semantic-queries/[id]/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB"}
@@ -0,0 +1,2 @@
1
+ export * from './request';
2
+ export * from './response';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./request"), exports);
18
+ __exportStar(require("./response"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/semantic-queries/[id]/patch/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,6CAA0B"}
@@ -0,0 +1,20 @@
1
+ import { SemanticQuery, SemanticQueryVisibility, SemanticQueryDisplay } from '../../shared';
2
+ /**
3
+ * Update a stored record. Setting `name` on a draft PROMOTES it: the expiry is
4
+ * cleared and the same record — same id — becomes a saved query. There is no
5
+ * copy and no second store; save is a lifecycle change, not a relocation.
6
+ *
7
+ * On an already-saved record this is the rename/update path: `semanticQuery`
8
+ * replaces the stored query (the save-back after editing via a linked draft),
9
+ * `display` the table config, and so on. Fields omitted are left unchanged.
10
+ */
11
+ export interface PatchSemanticQueryRequest {
12
+ name?: string;
13
+ description?: string;
14
+ /** `organisation` requires the share permission. */
15
+ visibility?: SemanticQueryVisibility;
16
+ semanticQuery?: SemanticQuery;
17
+ display?: SemanticQueryDisplay;
18
+ /** IANA timezone the query's relative dates resolve against. */
19
+ timezone?: string;
20
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request.js","sourceRoot":"","sources":["../../../../src/semantic-queries/[id]/patch/request.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export { GetSemanticQueryResponse as PatchSemanticQueryResponse } from '../../get/response';
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response.js","sourceRoot":"","sources":["../../../../src/semantic-queries/[id]/patch/response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from './query';
2
+ export * from './response';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./query"), exports);
18
+ __exportStar(require("./response"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/semantic-queries/get/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,6CAA0B"}
@@ -0,0 +1,18 @@
1
+ import { StandardSortFields, SortOrders } from '../../shared';
2
+ import { SemanticQueryEntityType, SemanticQueryKind } from '../shared';
3
+ export declare type SemanticQueryEmbedField = 'meta';
4
+ /**
5
+ * Lists SAVED records only — drafts are session state, addressed by id, and
6
+ * never appear in listings.
7
+ */
8
+ export interface GetSemanticQueriesQuery {
9
+ page?: number;
10
+ limit?: number;
11
+ ids?: string[];
12
+ sort?: StandardSortFields;
13
+ sortOrder?: SortOrders;
14
+ embed?: Array<SemanticQueryEmbedField>;
15
+ entityType?: SemanticQueryEntityType;
16
+ /** `query` (saved views) or `operation` (saved commands). Both when absent. */
17
+ kind?: SemanticQueryKind;
18
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query.js","sourceRoot":"","sources":["../../../src/semantic-queries/get/query.ts"],"names":[],"mappings":""}
@@ -0,0 +1,40 @@
1
+ import { IEntityMeta } from '../../shared';
2
+ import { SemanticQuery, SemanticQueryEntityType, SemanticQueryKind, SemanticQueryVisibility, SemanticQueryDisplay, SemanticOperationPayload } from '../shared';
3
+ import { GetSemanticQueriesQuery } from './query';
4
+ /**
5
+ * A stored semantic query — draft or saved, one record either way.
6
+ *
7
+ * `expiresAt` tells the lifecycle stage: a millisecond timestamp on drafts
8
+ * (sliding — each use pushes it out, so expiry genuinely means abandonment),
9
+ * `null` once saved. `name` is present exactly when saved.
10
+ */
11
+ export interface GetSemanticQueryResponse {
12
+ id: string;
13
+ kind: SemanticQueryKind;
14
+ entityType: SemanticQueryEntityType;
15
+ semanticQuery: SemanticQuery;
16
+ /** Present only when kind is `operation`. */
17
+ operation?: SemanticOperationPayload;
18
+ /** Present exactly when the record is saved. */
19
+ name?: string;
20
+ description?: string;
21
+ /** The natural-language prompt this query was generated from, if any. */
22
+ prompt?: string;
23
+ /** Id of the record this one refined — the undo chain. Drafts only. */
24
+ derivedFrom?: string;
25
+ createdBy: string;
26
+ /** `private` (creator only) or `organisation` (shared org-wide). */
27
+ visibility: SemanticQueryVisibility;
28
+ /** Table display config. Populated on save; absent on drafts. */
29
+ display?: SemanticQueryDisplay;
30
+ /** IANA timezone the query's relative dates resolve against. */
31
+ timezone?: string;
32
+ /** Draft expiry (ms since epoch), or null once saved. */
33
+ expiresAt: number | null;
34
+ meta?: IEntityMeta;
35
+ }
36
+ export interface GetSemanticQueriesResponse {
37
+ query: GetSemanticQueriesQuery | null;
38
+ total: number;
39
+ items: GetSemanticQueryResponse[];
40
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response.js","sourceRoot":"","sources":["../../../src/semantic-queries/get/response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export * from './shared';
2
+ export * from './get';
3
+ export * from './post';
4
+ export * from './[id]';
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./shared"), exports);
18
+ __exportStar(require("./get"), exports);
19
+ __exportStar(require("./post"), exports);
20
+ __exportStar(require("./[id]"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/semantic-queries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,wCAAqB;AACrB,yCAAsB;AACtB,yCAAsB"}
@@ -0,0 +1,2 @@
1
+ export * from './request';
2
+ export * from './response';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./request"), exports);
18
+ __exportStar(require("./response"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/semantic-queries/post/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,6CAA0B"}