@spotto/contract 1.0.70-alpha.9 → 1.0.70-y.0

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 (285) 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 +16 -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 +29 -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 +51 -0
  36. package/dist/actions/shared.js +13 -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/request.d.ts +3 -1
  48. package/dist/ai/index.d.ts +3 -0
  49. package/dist/ai/index.js +3 -0
  50. package/dist/ai/index.js.map +1 -1
  51. package/dist/ai/semantic-query/index.d.ts +2 -0
  52. package/dist/ai/semantic-query/index.js +19 -0
  53. package/dist/ai/semantic-query/index.js.map +1 -0
  54. package/dist/ai/semantic-query/request.d.ts +43 -0
  55. package/dist/ai/semantic-query/request.js +3 -0
  56. package/dist/ai/semantic-query/request.js.map +1 -0
  57. package/dist/ai/semantic-query/response.d.ts +40 -0
  58. package/dist/ai/semantic-query/response.js +3 -0
  59. package/dist/ai/semantic-query/response.js.map +1 -0
  60. package/dist/ai/shared.d.ts +22 -0
  61. package/dist/ai/shared.js +11 -0
  62. package/dist/ai/shared.js.map +1 -0
  63. package/dist/assets/[id]/get.d.ts +2 -1
  64. package/dist/assets/count/query.d.ts +16 -1
  65. package/dist/assets/download/query.d.ts +7 -0
  66. package/dist/assets/get/query.d.ts +11 -0
  67. package/dist/assets/location/request.d.ts +10 -1
  68. package/dist/events/constants.d.ts +16 -1
  69. package/dist/events/constants.js +21 -1
  70. package/dist/events/constants.js.map +1 -1
  71. package/dist/events/get/query.d.ts +25 -0
  72. package/dist/events/get/response.d.ts +17 -1
  73. package/dist/fields/[id]/get.d.ts +3 -0
  74. package/dist/fields/[id]/patch/request.d.ts +4 -0
  75. package/dist/forms/[id]/index.d.ts +1 -0
  76. package/dist/forms/[id]/index.js +18 -0
  77. package/dist/forms/[id]/index.js.map +1 -0
  78. package/dist/forms/[id]/patch/index.d.ts +2 -0
  79. package/dist/forms/[id]/patch/index.js +19 -0
  80. package/dist/forms/[id]/patch/index.js.map +1 -0
  81. package/dist/forms/[id]/patch/request.d.ts +14 -0
  82. package/dist/forms/[id]/patch/request.js +3 -0
  83. package/dist/forms/[id]/patch/request.js.map +1 -0
  84. package/dist/forms/[id]/patch/response.d.ts +1 -0
  85. package/dist/forms/[id]/patch/response.js +3 -0
  86. package/dist/forms/[id]/patch/response.js.map +1 -0
  87. package/dist/forms/constants.d.ts +19 -0
  88. package/dist/forms/constants.js +33 -0
  89. package/dist/forms/constants.js.map +1 -0
  90. package/dist/forms/get/index.d.ts +2 -0
  91. package/dist/forms/get/index.js +19 -0
  92. package/dist/forms/get/index.js.map +1 -0
  93. package/dist/forms/get/query.d.ts +18 -0
  94. package/dist/forms/get/query.js +3 -0
  95. package/dist/forms/get/query.js.map +1 -0
  96. package/dist/forms/get/response.d.ts +23 -0
  97. package/dist/forms/get/response.js +3 -0
  98. package/dist/forms/get/response.js.map +1 -0
  99. package/dist/forms/index.d.ts +6 -0
  100. package/dist/forms/index.js +23 -0
  101. package/dist/forms/index.js.map +1 -0
  102. package/dist/forms/post/index.d.ts +2 -0
  103. package/dist/forms/post/index.js +19 -0
  104. package/dist/forms/post/index.js.map +1 -0
  105. package/dist/forms/post/request.d.ts +9 -0
  106. package/dist/forms/post/request.js +3 -0
  107. package/dist/forms/post/request.js.map +1 -0
  108. package/dist/forms/post/response.d.ts +1 -0
  109. package/dist/forms/post/response.js +3 -0
  110. package/dist/forms/post/response.js.map +1 -0
  111. package/dist/forms/shared.d.ts +127 -0
  112. package/dist/forms/shared.js +3 -0
  113. package/dist/forms/shared.js.map +1 -0
  114. package/dist/forms/versions/index.d.ts +2 -0
  115. package/dist/forms/versions/index.js +19 -0
  116. package/dist/forms/versions/index.js.map +1 -0
  117. package/dist/forms/versions/path.d.ts +8 -0
  118. package/dist/forms/versions/path.js +3 -0
  119. package/dist/forms/versions/path.js.map +1 -0
  120. package/dist/forms/versions/response.d.ts +1 -0
  121. package/dist/forms/versions/response.js +3 -0
  122. package/dist/forms/versions/response.js.map +1 -0
  123. package/dist/index.d.ts +5 -0
  124. package/dist/index.js +5 -0
  125. package/dist/index.js.map +1 -1
  126. package/dist/locations/get/query.d.ts +14 -0
  127. package/dist/organisations/constants.d.ts +11 -0
  128. package/dist/organisations/sso/constants.d.ts +15 -0
  129. package/dist/organisations/sso/constants.js +16 -1
  130. package/dist/organisations/sso/constants.js.map +1 -1
  131. package/dist/organisations/sso/types.d.ts +48 -0
  132. package/dist/readers/get/query.d.ts +12 -0
  133. package/dist/semantic-queries/[id]/index.d.ts +1 -0
  134. package/dist/semantic-queries/[id]/index.js +18 -0
  135. package/dist/semantic-queries/[id]/index.js.map +1 -0
  136. package/dist/semantic-queries/[id]/patch/index.d.ts +2 -0
  137. package/dist/semantic-queries/[id]/patch/index.js +19 -0
  138. package/dist/semantic-queries/[id]/patch/index.js.map +1 -0
  139. package/dist/semantic-queries/[id]/patch/request.d.ts +20 -0
  140. package/dist/semantic-queries/[id]/patch/request.js +3 -0
  141. package/dist/semantic-queries/[id]/patch/request.js.map +1 -0
  142. package/dist/semantic-queries/[id]/patch/response.d.ts +1 -0
  143. package/dist/semantic-queries/[id]/patch/response.js +3 -0
  144. package/dist/semantic-queries/[id]/patch/response.js.map +1 -0
  145. package/dist/semantic-queries/get/index.d.ts +2 -0
  146. package/dist/semantic-queries/get/index.js +19 -0
  147. package/dist/semantic-queries/get/index.js.map +1 -0
  148. package/dist/semantic-queries/get/query.d.ts +18 -0
  149. package/dist/semantic-queries/get/query.js +3 -0
  150. package/dist/semantic-queries/get/query.js.map +1 -0
  151. package/dist/semantic-queries/get/response.d.ts +40 -0
  152. package/dist/semantic-queries/get/response.js +3 -0
  153. package/dist/semantic-queries/get/response.js.map +1 -0
  154. package/dist/semantic-queries/index.d.ts +4 -0
  155. package/dist/semantic-queries/index.js +21 -0
  156. package/dist/semantic-queries/index.js.map +1 -0
  157. package/dist/semantic-queries/post/index.d.ts +2 -0
  158. package/dist/semantic-queries/post/index.js +19 -0
  159. package/dist/semantic-queries/post/index.js.map +1 -0
  160. package/dist/semantic-queries/post/request.d.ts +56 -0
  161. package/dist/semantic-queries/post/request.js +3 -0
  162. package/dist/semantic-queries/post/request.js.map +1 -0
  163. package/dist/semantic-queries/post/response.d.ts +1 -0
  164. package/dist/semantic-queries/post/response.js +3 -0
  165. package/dist/semantic-queries/post/response.js.map +1 -0
  166. package/dist/semantic-queries/shared.d.ts +853 -0
  167. package/dist/semantic-queries/shared.js +318 -0
  168. package/dist/semantic-queries/shared.js.map +1 -0
  169. package/dist/shared/attachments.d.ts +29 -0
  170. package/dist/shared/attachments.js +11 -0
  171. package/dist/shared/attachments.js.map +1 -0
  172. package/dist/shared/embed.d.ts +14 -0
  173. package/dist/shared/index.d.ts +1 -0
  174. package/dist/shared/index.js +1 -0
  175. package/dist/shared/index.js.map +1 -1
  176. package/dist/shared/readiness.d.ts +23 -0
  177. package/dist/snapshots/[id]/get.d.ts +139 -11
  178. package/dist/snapshots/[id]/get.js.map +1 -1
  179. package/dist/snapshots/get/query.d.ts +39 -0
  180. package/dist/snapshots/get/query.js +23 -1
  181. package/dist/snapshots/get/query.js.map +1 -1
  182. package/dist/snapshots/post/request.d.ts +21 -0
  183. package/dist/snapshots/post/request.js.map +1 -1
  184. package/dist/sso/onboard/request.d.ts +12 -1
  185. package/dist/sso/sso-mappings/request.d.ts +10 -5
  186. package/dist/submissions/[id]/index.d.ts +1 -0
  187. package/dist/submissions/[id]/index.js +18 -0
  188. package/dist/submissions/[id]/index.js.map +1 -0
  189. package/dist/submissions/[id]/void/post.d.ts +6 -0
  190. package/dist/submissions/[id]/void/post.js +3 -0
  191. package/dist/submissions/[id]/void/post.js.map +1 -0
  192. package/dist/submissions/constants.d.ts +14 -0
  193. package/dist/submissions/constants.js +21 -0
  194. package/dist/submissions/constants.js.map +1 -0
  195. package/dist/submissions/get/index.d.ts +2 -0
  196. package/dist/submissions/get/index.js +19 -0
  197. package/dist/submissions/get/index.js.map +1 -0
  198. package/dist/submissions/get/query.d.ts +14 -0
  199. package/dist/submissions/get/query.js +3 -0
  200. package/dist/submissions/get/query.js.map +1 -0
  201. package/dist/submissions/get/response.d.ts +6 -0
  202. package/dist/submissions/get/response.js +3 -0
  203. package/dist/submissions/get/response.js.map +1 -0
  204. package/dist/submissions/index.d.ts +6 -0
  205. package/dist/submissions/index.js +23 -0
  206. package/dist/submissions/index.js.map +1 -0
  207. package/dist/submissions/post/index.d.ts +2 -0
  208. package/dist/submissions/post/index.js +19 -0
  209. package/dist/submissions/post/index.js.map +1 -0
  210. package/dist/submissions/post/request.d.ts +17 -0
  211. package/dist/submissions/post/request.js +3 -0
  212. package/dist/submissions/post/request.js.map +1 -0
  213. package/dist/submissions/post/response.d.ts +22 -0
  214. package/dist/submissions/post/response.js +3 -0
  215. package/dist/submissions/post/response.js.map +1 -0
  216. package/dist/submissions/shared.d.ts +133 -0
  217. package/dist/submissions/shared.js +3 -0
  218. package/dist/submissions/shared.js.map +1 -0
  219. package/dist/submissions/uploads/[fileId]/get.d.ts +11 -0
  220. package/dist/submissions/uploads/[fileId]/get.js +3 -0
  221. package/dist/submissions/uploads/[fileId]/get.js.map +1 -0
  222. package/dist/submissions/uploads/[fileId]/index.d.ts +1 -0
  223. package/dist/submissions/uploads/[fileId]/index.js +18 -0
  224. package/dist/submissions/uploads/[fileId]/index.js.map +1 -0
  225. package/dist/submissions/uploads/index.d.ts +2 -0
  226. package/dist/submissions/uploads/index.js +19 -0
  227. package/dist/submissions/uploads/index.js.map +1 -0
  228. package/dist/submissions/uploads/post/index.d.ts +2 -0
  229. package/dist/submissions/uploads/post/index.js +19 -0
  230. package/dist/submissions/uploads/post/index.js.map +1 -0
  231. package/dist/submissions/uploads/post/request.d.ts +9 -0
  232. package/dist/submissions/uploads/post/request.js +3 -0
  233. package/dist/submissions/uploads/post/request.js.map +1 -0
  234. package/dist/submissions/uploads/post/response.d.ts +18 -0
  235. package/dist/submissions/uploads/post/response.js +3 -0
  236. package/dist/submissions/uploads/post/response.js.map +1 -0
  237. package/dist/types/[id]/get.d.ts +3 -1
  238. package/dist/types/[id]/patch/request.d.ts +4 -1
  239. package/dist/types/post/request.d.ts +2 -1
  240. package/dist/types/post/request.js.map +1 -1
  241. package/dist/usergroups/[id]/index.d.ts +1 -0
  242. package/dist/usergroups/[id]/index.js +18 -0
  243. package/dist/usergroups/[id]/index.js.map +1 -0
  244. package/dist/usergroups/[id]/patch/index.d.ts +2 -0
  245. package/dist/usergroups/[id]/patch/index.js +19 -0
  246. package/dist/usergroups/[id]/patch/index.js.map +1 -0
  247. package/dist/usergroups/[id]/patch/request.d.ts +12 -0
  248. package/dist/usergroups/[id]/patch/request.js +3 -0
  249. package/dist/usergroups/[id]/patch/request.js.map +1 -0
  250. package/dist/usergroups/[id]/patch/response.d.ts +1 -0
  251. package/dist/usergroups/[id]/patch/response.js +3 -0
  252. package/dist/usergroups/[id]/patch/response.js.map +1 -0
  253. package/dist/usergroups/get/index.d.ts +2 -0
  254. package/dist/usergroups/get/index.js +19 -0
  255. package/dist/usergroups/get/index.js.map +1 -0
  256. package/dist/usergroups/get/query.d.ts +12 -0
  257. package/dist/usergroups/get/query.js +3 -0
  258. package/dist/usergroups/get/query.js.map +1 -0
  259. package/dist/usergroups/get/response.d.ts +35 -0
  260. package/dist/usergroups/get/response.js +3 -0
  261. package/dist/usergroups/get/response.js.map +1 -0
  262. package/dist/usergroups/index.d.ts +4 -0
  263. package/dist/usergroups/index.js +21 -0
  264. package/dist/usergroups/index.js.map +1 -0
  265. package/dist/usergroups/post/index.d.ts +2 -0
  266. package/dist/usergroups/post/index.js +19 -0
  267. package/dist/usergroups/post/index.js.map +1 -0
  268. package/dist/usergroups/post/request.d.ts +11 -0
  269. package/dist/usergroups/post/request.js +3 -0
  270. package/dist/usergroups/post/request.js.map +1 -0
  271. package/dist/usergroups/post/response.d.ts +1 -0
  272. package/dist/usergroups/post/response.js +3 -0
  273. package/dist/usergroups/post/response.js.map +1 -0
  274. package/dist/usergroups/shared.d.ts +25 -0
  275. package/dist/usergroups/shared.js +11 -0
  276. package/dist/usergroups/shared.js.map +1 -0
  277. package/dist/users/[id]/get/response.d.ts +0 -2
  278. package/dist/users/[id]/patch/request.d.ts +5 -1
  279. package/dist/users/current.d.ts +22 -4
  280. package/dist/users/get/query.d.ts +0 -2
  281. package/dist/users/home-layout/shared.d.ts +96 -21
  282. package/dist/users/home-layout/shared.js +11 -5
  283. package/dist/users/home-layout/shared.js.map +1 -1
  284. package/dist/users/post/request.d.ts +6 -1
  285. package/package.json +2 -2
@@ -0,0 +1,23 @@
1
+ import { IEntityMeta } from '../../shared';
2
+ import { FormItem, FormSettings } from '../shared';
3
+ import { GetFormsQuery } from './query';
4
+ /** One immutable form version document. */
5
+ export interface GetFormResponse {
6
+ id: string;
7
+ /** Immutable handle — shared by every version of the form. */
8
+ name: string;
9
+ label: string;
10
+ version: number;
11
+ /** Exactly one version per (org, name) is current. */
12
+ current: boolean;
13
+ archived: boolean;
14
+ items: FormItem[];
15
+ settings?: FormSettings;
16
+ createdBy: string;
17
+ meta?: IEntityMeta;
18
+ }
19
+ export interface GetFormsResponse {
20
+ query: GetFormsQuery | null;
21
+ total: number;
22
+ items: GetFormResponse[];
23
+ }
@@ -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/forms/get/response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export * from './constants';
2
+ export * from './shared';
3
+ export * from './get';
4
+ export * from './post';
5
+ export * from './[id]';
6
+ export * from './versions';
@@ -0,0 +1,23 @@
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("./constants"), exports);
18
+ __exportStar(require("./shared"), exports);
19
+ __exportStar(require("./get"), exports);
20
+ __exportStar(require("./post"), exports);
21
+ __exportStar(require("./[id]"), exports);
22
+ __exportStar(require("./versions"), exports);
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/forms/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA2B;AAC3B,2CAAwB;AACxB,wCAAqB;AACrB,yCAAsB;AACtB,yCAAsB;AACtB,6CAA0B"}
@@ -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/forms/post/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,6CAA0B"}
@@ -0,0 +1,9 @@
1
+ import { FormItem, FormSettings } from '../shared';
2
+ /** Creates a new form as version 1 (current). */
3
+ export interface PostFormRequest {
4
+ /** Immutable handle; referenced by actions. */
5
+ name: string;
6
+ label: string;
7
+ items: FormItem[];
8
+ settings?: FormSettings;
9
+ }
@@ -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/forms/post/request.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export { GetFormResponse as PostFormResponse } 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/forms/post/response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,127 @@
1
+ import { ReservedContextFieldName } from './constants';
2
+ /**
3
+ * How a form field item's value is produced. `INPUT` (default) is entered by
4
+ * the user, `COMPUTED` derives from an expression over the merged env, and
5
+ * `CONTEXT` is injected from the submission context (never entered/computed).
6
+ * `AGGREGATED` is meaningless on a form — there are no members.
7
+ */
8
+ export declare type FormFieldSource = 'INPUT' | 'COMPUTED' | 'CONTEXT';
9
+ /** Content blocks that capture media and produce a submission attachment. */
10
+ export declare type FormCaptureKind = 'signature' | 'photo';
11
+ /**
12
+ * A field binding on a form — a delta over the global field definition
13
+ * (which owns identity: dataType, options), plus form-only extras.
14
+ */
15
+ export interface FormFieldItem {
16
+ kind: 'field';
17
+ /** Name of a global field definition. */
18
+ name: string;
19
+ source?: FormFieldSource;
20
+ /** Required (and only allowed) when source is COMPUTED. */
21
+ expression?: string;
22
+ /** Required (and only allowed) when source is CONTEXT. */
23
+ from?: ReservedContextFieldName;
24
+ /** Must be present to submit — only bites while the item is active. */
25
+ required?: boolean;
26
+ /** Shown, not editable (e.g. a read-in shown purely for context). */
27
+ readonly?: boolean;
28
+ /**
29
+ * Open-time expression seeding the initial value — the one read-in
30
+ * mechanism. Naming a target field reads it in, including the item's own
31
+ * name (the form value is still empty at open, so the target shows
32
+ * through). A CHECKBOXES item's default must be exactly a field name (a
33
+ * copy — expressions cannot produce a selection).
34
+ */
35
+ default?: string;
36
+ /**
37
+ * Push the item's value to the same-named target field at submit — the
38
+ * captured value for INPUT, the derived value for COMPUTED. Only bites
39
+ * while the item is active (`visibleWhen`); written as ordinary authored
40
+ * data (user-editable afterward) and triggers the standard recompute.
41
+ */
42
+ writeBack?: boolean;
43
+ /**
44
+ * Never displayed; the item still participates fully — seeded, computed,
45
+ * required, written back. `visibleWhen`, if any, still gates activity
46
+ * (which is how a write-back is made conditional).
47
+ */
48
+ hidden?: boolean;
49
+ /** The activity gate: a failing item is not shown, not required, and not
50
+ * written back. */
51
+ visibleWhen?: string;
52
+ /** Per-form display overrides; identity still comes from the definition. */
53
+ label?: string;
54
+ help?: string;
55
+ }
56
+ export interface FormSectionItem {
57
+ kind: 'section';
58
+ title: string;
59
+ }
60
+ export interface FormTextItem {
61
+ kind: 'text';
62
+ text: string;
63
+ }
64
+ export interface FormImageItem {
65
+ kind: 'image';
66
+ src: string;
67
+ caption?: string;
68
+ }
69
+ export interface FormDividerItem {
70
+ kind: 'divider';
71
+ }
72
+ /**
73
+ * A hyperlink content block — opens `href` (validated http(s)-only at save,
74
+ * so a stored href is always safe to render as an anchor).
75
+ */
76
+ export interface FormLinkItem {
77
+ kind: 'link';
78
+ href: string;
79
+ /** Display text; the href itself shows when omitted. */
80
+ label?: string;
81
+ }
82
+ /**
83
+ * An embedded YouTube video. The URL is stored as authored (watch, share,
84
+ * shorts or embed form — validated against the YouTube hosts at save) and
85
+ * the client derives the embed markup, so only allowlisted hosts ever reach
86
+ * an iframe.
87
+ */
88
+ export interface FormVideoItem {
89
+ kind: 'video';
90
+ url: string;
91
+ caption?: string;
92
+ }
93
+ /**
94
+ * A signature/photo capture block. Produces an attachment reference on the
95
+ * submission (never a fieldValue), keyed by the block's `name`.
96
+ */
97
+ export interface FormCaptureItem {
98
+ kind: FormCaptureKind;
99
+ name: string;
100
+ required?: boolean;
101
+ label?: string;
102
+ help?: string;
103
+ }
104
+ export declare type FormItem = FormFieldItem | FormSectionItem | FormTextItem | FormImageItem | FormDividerItem | FormLinkItem | FormVideoItem | FormCaptureItem;
105
+ export declare type FormItemKind = FormItem['kind'];
106
+ /**
107
+ * Runner presentation options — how the form presents its chrome, not what
108
+ * it collects. Optional as a whole, and PATCH replaces it wholesale, so an
109
+ * option can be cleared by publishing without it.
110
+ */
111
+ export interface FormSettings {
112
+ /** Overrides the submit button text (e.g. "Confirm"). */
113
+ submitLabel?: string;
114
+ /** Show a cancel button that closes the form without submitting. */
115
+ showCancel?: boolean;
116
+ /** Cancel button text — only allowed alongside `showCancel`. */
117
+ cancelLabel?: string;
118
+ /**
119
+ * Content-only: completing the form records NOTHING (no submission, no
120
+ * event, no write-back) — the server rejects a submission against it.
121
+ * Save-time validation forbids `writeBack: true` items, capture blocks
122
+ * and required items. For a recorded acknowledgment, use a
123
+ * non-informational form with a signature block and a "Confirm"
124
+ * submitLabel instead.
125
+ */
126
+ informational?: boolean;
127
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=shared.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared.js","sourceRoot":"","sources":["../../src/forms/shared.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from './path';
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("./path"), exports);
18
+ __exportStar(require("./response"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/forms/versions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,6CAA0B"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Path parameters for GET /forms/{name}/versions/{version} — fetches a
3
+ * pinned, possibly non-current version (submission detail renders these).
4
+ */
5
+ export interface FormVersionPath {
6
+ name: string;
7
+ version: number;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=path.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"path.js","sourceRoot":"","sources":["../../../src/forms/versions/path.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export { GetFormResponse as GetFormVersionResponse } 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/forms/versions/response.ts"],"names":[],"mappings":""}
package/dist/index.d.ts CHANGED
@@ -22,3 +22,8 @@ export * from './system';
22
22
  export * from './reports';
23
23
  export * from './sso';
24
24
  export * from './views';
25
+ export * from './semantic-queries';
26
+ export * from './forms';
27
+ export * from './actions';
28
+ export * from './submissions';
29
+ export * from './usergroups';
package/dist/index.js CHANGED
@@ -38,4 +38,9 @@ __exportStar(require("./system"), exports);
38
38
  __exportStar(require("./reports"), exports);
39
39
  __exportStar(require("./sso"), exports);
40
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);
41
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,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"}
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"}
@@ -22,6 +22,8 @@ export interface LocationFilters {
22
22
  */
23
23
  manifestId?: string;
24
24
  manifestIds?: string[];
25
+ /** Offline-sync delta read: matches records whose `lastChanged` >= this ms-epoch. */
26
+ updatedAfter?: number;
25
27
  }
26
28
  export interface GetLocationsQuery extends LocationFilters {
27
29
  page?: number;
@@ -29,4 +31,16 @@ export interface GetLocationsQuery extends LocationFilters {
29
31
  sort?: LocationSortField;
30
32
  sortOrder?: SortOrders;
31
33
  embed?: Array<LocationEmbedField>;
34
+ /**
35
+ * Run a stored semantic query by reference instead of the flat filters.
36
+ * Must NOT be combined with any filter member — the combination is rejected,
37
+ * never merged. An expired or unknown id returns a distinct "gone" error,
38
+ * never an empty list.
39
+ */
40
+ semanticQueryId?: string;
41
+ /**
42
+ * IANA timezone for resolving relative date conditions. Without it the same
43
+ * saved query resolves "today" differently depending on who runs it.
44
+ */
45
+ timezone?: string;
32
46
  }
@@ -21,12 +21,23 @@ 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;
@@ -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":""}