@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
@@ -0,0 +1,17 @@
1
+ import { ActionTargetEntity } from '../../actions/shared';
2
+ import { ISubmissionAttachment, ISubmissionFieldValue } from '../shared';
3
+ export interface PostSubmissionRequest {
4
+ /** Client-minted idempotency key (ULID) — one per capture, reused on retry. */
5
+ clientReference: string;
6
+ actionName: string;
7
+ /** The form version pinned when the run opened. */
8
+ formName: string;
9
+ formVersion: number;
10
+ /** The run's target: a location run captures without write-back (§4.4). */
11
+ entity: ActionTargetEntity;
12
+ entityId: string;
13
+ /** Client fill time (ISO). */
14
+ capturedAt: string;
15
+ fieldValues?: ISubmissionFieldValue[];
16
+ attachments?: ISubmissionAttachment[];
17
+ }
@@ -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/submissions/post/request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,22 @@
1
+ import { GetAssetResponse } from '../../assets';
2
+ import { GetSubmissionResponse, ISubmissionEffect } from '../shared';
3
+ /**
4
+ * Delivery status of one effect on a fresh submit (§4.2): a raiseAlert entry
5
+ * is 'raised' by being returned; sendMessage is 'sent' or 'failed' (the
6
+ * capture is committed either way — effects never roll it back). Replays
7
+ * carry the stored effects without statuses: effects are at-most-once and
8
+ * ran (if ever) on the original request.
9
+ */
10
+ export declare type SubmissionEffectStatus = 'raised' | 'sent' | 'failed' | 'skipped';
11
+ export interface PostSubmissionResponseEffect extends ISubmissionEffect {
12
+ status?: SubmissionEffectStatus;
13
+ /** The send failure detail when status is 'failed'. */
14
+ error?: string;
15
+ }
16
+ export interface PostSubmissionResponse extends GetSubmissionResponse {
17
+ /** True when this request replayed an already-recorded capture (§3.3 dedupe). */
18
+ replayed: boolean;
19
+ /** Fresh target readiness after recompute; absent when the target has gone. */
20
+ readiness?: GetAssetResponse['readiness'];
21
+ effects?: PostSubmissionResponseEffect[];
22
+ }
@@ -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/submissions/post/response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,133 @@
1
+ import { ActionAlertLevel, ActionEffectType, ActionTargetEntity } from '../actions/shared';
2
+ import { IEmbeddedEntity } from '../shared';
3
+ import { IFieldValue } from '../types';
4
+ /**
5
+ * A value captured for one form field item, as transmitted at submit.
6
+ * Name-keyed (form items name global field definitions); exactly one value
7
+ * slot per entry — a multi-select (CHECKBOXES) sends one entry per selected
8
+ * option, and an unanswered field sends no entry at all.
9
+ */
10
+ export interface ISubmissionFieldValue {
11
+ name: string;
12
+ valueString?: string;
13
+ valueInteger?: number;
14
+ valueDecimal?: number;
15
+ valueBoolean?: boolean;
16
+ /** DATE wire format: YYYY-MM-DD. */
17
+ valueDate?: string;
18
+ valueDateTime?: Date | string;
19
+ /** Tolerated on input for round-trips; stripped — identity resolves by name. */
20
+ id?: string;
21
+ /** Tolerated on input for round-trips; stripped — re-derived server-side. */
22
+ computed?: boolean;
23
+ }
24
+ /** A captured signature/photo reference (uploaded via B4's presigned POST). */
25
+ export interface ISubmissionAttachment {
26
+ /** Names a capture block of the pinned form version — distinct per row. */
27
+ blockName: string;
28
+ fileId: string;
29
+ contentType: string;
30
+ }
31
+ /**
32
+ * A write-back audit value in stored format: DATE as a YYYYMMDD integer,
33
+ * DATETIME as a Date, CHECKBOXES as the full option array.
34
+ */
35
+ export declare type SubmissionWriteBackValue = string | number | boolean | string[];
36
+ /** One write-back item's outcome — applied with values, or skipped with why. */
37
+ export interface ISubmissionWriteBackAudit {
38
+ to: string;
39
+ appliedValue?: SubmissionWriteBackValue;
40
+ /** The asset-level value the write replaced; absent when the field had none. */
41
+ previousValue?: SubmissionWriteBackValue;
42
+ /** Present on COMPUTED items — the formula that produced the value. */
43
+ expression?: string;
44
+ skipped?: true;
45
+ reason?: string;
46
+ }
47
+ /**
48
+ * One effect outcome as stored on the event (§4.2): resolved content for an
49
+ * effect that ran — messages interpolated over the submit env — or a skip
50
+ * audit when the action's write authority was gone (§3.2). Delivery status
51
+ * never persists: the event commits before effects run (see the POST
52
+ * response's status overlay).
53
+ */
54
+ export interface ISubmissionEffect {
55
+ type: ActionEffectType;
56
+ /** raiseAlert severity. */
57
+ level?: ActionAlertLevel;
58
+ /** Resolved message (missing references render as "(not set)"). */
59
+ message?: string;
60
+ /** sendMessage recipients. */
61
+ to?: string[];
62
+ /** sendMessage resolved subject. */
63
+ subject?: string;
64
+ skipped?: true;
65
+ reason?: string;
66
+ }
67
+ export interface ISubmissionContext {
68
+ entity: ActionTargetEntity;
69
+ entityId: string;
70
+ /** The asset's type at submit — never present on location runs (§4.4). */
71
+ typeId?: string;
72
+ /** The asset's type path at submit — never present on location runs (§4.4). */
73
+ typePath?: string;
74
+ }
75
+ /** The asset a submission ran against — identity plus its type path, both
76
+ * frozen at submit (later type renames never rewrite event history). */
77
+ export interface ISubmissionAssetEmbed extends IEmbeddedEntity {
78
+ typePath?: string;
79
+ }
80
+ /** Overlay from an appended FormSubmissionVoided event. */
81
+ export interface ISubmissionVoided {
82
+ eventId: string;
83
+ timestamp: number;
84
+ user: IEmbeddedEntity;
85
+ reason?: string;
86
+ }
87
+ /**
88
+ * The submission payload as stored on the FormSubmitted event — everything
89
+ * below the event envelope. Shared by the submission resource and the
90
+ * events-feed member.
91
+ */
92
+ export interface ISubmissionPayload {
93
+ /** Client-minted idempotency key (ULID). */
94
+ clientReference: string;
95
+ /** Server-computed canonical hash of the capture (excludes attachment fileIds). */
96
+ fingerprint: string;
97
+ /** Absent when the action had been deleted by the time the capture drained. */
98
+ actionId?: string;
99
+ actionName: string;
100
+ actionLabel?: string;
101
+ formId: string;
102
+ formName: string;
103
+ formVersion: number;
104
+ /** Display label from the action's `event` config. */
105
+ eventLabel?: string;
106
+ context: ISubmissionContext;
107
+ /** Client fill time (ISO) — differs from the event timestamp under offline drain. */
108
+ capturedAt: string;
109
+ fieldValues: IFieldValue[];
110
+ attachments?: ISubmissionAttachment[];
111
+ writeBack?: ISubmissionWriteBackAudit[];
112
+ effects?: ISubmissionEffect[];
113
+ }
114
+ /** The payload of a FormSubmissionVoided event. */
115
+ export interface ISubmissionVoidPayload {
116
+ /** The FormSubmitted event id this void applies to. */
117
+ original: string;
118
+ actionName: string;
119
+ actionLabel?: string;
120
+ formName: string;
121
+ formVersion: number;
122
+ reason?: string;
123
+ }
124
+ /** The submission resource — a parsed FormSubmitted event. Exactly one of
125
+ * `asset`/`location` is present, matching the run's target entity. */
126
+ export interface GetSubmissionResponse extends ISubmissionPayload {
127
+ id: string;
128
+ timestamp: number;
129
+ asset?: ISubmissionAssetEmbed;
130
+ location?: IEmbeddedEntity;
131
+ user: IEmbeddedEntity;
132
+ voided?: ISubmissionVoided;
133
+ }
@@ -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/submissions/shared.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ /** GET /submissions/uploads/{fileId} — path parameters. */
2
+ export interface SubmissionUploadPath {
3
+ fileId: string;
4
+ }
5
+ /**
6
+ * A short-lived presigned download for a committed object under the caller's
7
+ * own org — the key derives from the authenticated org, never from input.
8
+ */
9
+ export interface GetSubmissionUploadResponse {
10
+ url: string;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=get.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../src/submissions/uploads/[fileId]/get.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export * from './get';
@@ -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("./get"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/submissions/uploads/[fileId]/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAqB"}
@@ -0,0 +1,2 @@
1
+ export * from './post';
2
+ export * from './[fileId]';
@@ -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("./post"), exports);
18
+ __exportStar(require("./[fileId]"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/submissions/uploads/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,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/submissions/uploads/post/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,6CAA0B"}
@@ -0,0 +1,9 @@
1
+ import { SubmissionMediaContentType } from '../../constants';
2
+ /** One file to upload — the declared type is pinned into the POST policy. */
3
+ export interface PostSubmissionUploadsRequestFile {
4
+ contentType: SubmissionMediaContentType;
5
+ }
6
+ /** POST /submissions/uploads — mint presigned upload POSTs (§4.3). */
7
+ export interface PostSubmissionUploadsRequest {
8
+ files: PostSubmissionUploadsRequestFile[];
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/submissions/uploads/post/request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * A ready-to-send presigned POST: multipart-form the `fields` verbatim (file
3
+ * last) at `url`. The policy enforces the declared content-type and the size
4
+ * cap, so a disallowed file bounces at upload time.
5
+ */
6
+ export interface ISubmissionUploadPost {
7
+ url: string;
8
+ fields: Record<string, string>;
9
+ }
10
+ export interface PostSubmissionUploadsResponseFile {
11
+ /** Server-minted ULID — becomes the attachment's fileId at submit. */
12
+ fileId: string;
13
+ post: ISubmissionUploadPost;
14
+ }
15
+ export interface PostSubmissionUploadsResponse {
16
+ /** Same order as the request's files. */
17
+ files: PostSubmissionUploadsResponseFile[];
18
+ }
@@ -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/submissions/uploads/post/response.ts"],"names":[],"mappings":""}
@@ -1,5 +1,15 @@
1
1
  import { GetFieldResponse } from '../../fields/[id]/get';
2
- import { IEmbeddedEntity } from '../../shared';
2
+ import { IFieldBindingDelta, ITypeFieldBindingDelta, OptionRule } from '../../fields';
3
+ import { IActionAttachment, IActionAttachmentAll, IEmbeddedEntity, IReadinessRule, IReadinessRuleAll } from '../../shared';
4
+ /**
5
+ * An authored field binding as read back (option rules §2.2, D11): the
6
+ * `{id, name}` stub plus exactly the delta keys the row carries — a bare
7
+ * binding reads back as the stub it always was. Resolved state stays in
8
+ * `fieldsAll`.
9
+ */
10
+ export declare type IFieldBindingRow = IEmbeddedEntity & IFieldBindingDelta;
11
+ /** An authored type-field row as read back — `{id, name}` plus its delta. */
12
+ export declare type ITypeFieldBindingRow = IEmbeddedEntity & ITypeFieldBindingDelta;
3
13
  export interface IFieldValue {
4
14
  id: string;
5
15
  name: string;
@@ -9,9 +19,23 @@ export interface IFieldValue {
9
19
  valueBoolean?: boolean;
10
20
  valueDate?: string;
11
21
  valueDateTime?: Date;
22
+ /** True when the value was derived by a COMPUTED/AGGREGATED binding (read-only). */
23
+ computed?: boolean;
12
24
  }
13
- export interface IFieldDefinitionAll extends GetFieldResponse {
25
+ /**
26
+ * A resolved field on a type (own + inherited), carrying its authoring
27
+ * `typePath` and any binding delta (`source`/`expression`/`visibleWhen`,
28
+ * `label`/`required`/`rememberLast`). `options` is the type's PROJECTION —
29
+ * the master minus the field's `discontinued` values (option rules §2.3);
30
+ * `discontinued` itself is read from the field, never from the entry, and a
31
+ * detached field simply has no entry. `optionRules` are THIS type's own only
32
+ * (option rules U2): absent on every descendant's entry unless it authors its
33
+ * own. The server-computed metadata (`referencedFields`/`timeSensitive`) is
34
+ * internal and not surfaced here.
35
+ */
36
+ export interface IFieldDefinitionAll extends Omit<GetFieldResponse, 'discontinued'>, Omit<IFieldBindingDelta, 'detach'> {
14
37
  typePath: string;
38
+ optionRules?: OptionRule[];
15
39
  }
16
40
  export interface IFieldValueAll extends IFieldValue {
17
41
  typePath: string;
@@ -24,9 +48,9 @@ export interface GetTypeResponse {
24
48
  fullNameTemplate?: string;
25
49
  description?: string;
26
50
  path?: string;
27
- fields?: IEmbeddedEntity[];
51
+ fields?: IFieldBindingRow[];
28
52
  fieldsAll?: IFieldDefinitionAll[];
29
- typeFields?: IEmbeddedEntity[];
53
+ typeFields?: ITypeFieldBindingRow[];
30
54
  typeFieldsAll?: IFieldDefinitionAll[];
31
55
  typeFieldValues?: IFieldValue[];
32
56
  typeFieldValuesAll?: IFieldValueAll[];
@@ -36,4 +60,10 @@ export interface GetTypeResponse {
36
60
  manifestId?: string;
37
61
  manifestIds?: string[];
38
62
  supportsStocktake?: boolean;
63
+ /** Assets of this type are kits (containers) — G2G M2. */
64
+ typeKit?: boolean;
65
+ readinessRules?: IReadinessRule[];
66
+ readinessRulesAll?: IReadinessRuleAll[];
67
+ actions?: IActionAttachment[];
68
+ actionsAll?: IActionAttachmentAll[];
39
69
  }
@@ -1,13 +1,33 @@
1
- import { IEmbeddedEntityWithIdOrName, IFieldValueWithConstraints } from '../../post';
1
+ import { IFieldBinding, IFieldValueWithConstraints, ITypeFieldBinding } from '../../post';
2
+ import { IActionAttachment, IActionAttachmentAll, IReadinessRule, IReadinessRuleAll } from '../../../shared';
2
3
  export interface UpdateTypeRequest {
3
4
  name?: string;
4
5
  parent?: string;
5
- fullNameTemplate?: string | null;
6
+ /**
7
+ * Display-name template (`@name` / `@parent`). Omit to keep the current one;
8
+ * it cannot be cleared (`null` is rejected). A change regenerates `fullName`,
9
+ * which updates `typeName` and any generated asset names (manually named
10
+ * assets keep their name).
11
+ */
12
+ fullNameTemplate?: string;
6
13
  description?: string;
7
14
  path?: string;
8
- fields?: IEmbeddedEntityWithIdOrName[];
9
- typeFields?: IEmbeddedEntityWithIdOrName[];
15
+ fields?: IFieldBinding[];
16
+ typeFields?: ITypeFieldBinding[];
10
17
  typeFieldValues?: IFieldValueWithConstraints[];
11
18
  manifestIds?: string[];
12
19
  supportsStocktake?: boolean;
20
+ /** Assets of this type are kits (containers) — G2G M2. */
21
+ typeKit?: boolean;
22
+ readinessRules?: IReadinessRule[];
23
+ /**
24
+ * Server-derived, read-only projection (own + inherited rules) returned by
25
+ * GET. Tolerated on input only so a GET → edit → PATCH round-trip of the whole
26
+ * type doesn't 400; the server strips it and re-derives it from stored state +
27
+ * parent (prepareUpdate), so it never affects what is stored.
28
+ */
29
+ readinessRulesAll?: IReadinessRuleAll[];
30
+ actions?: IActionAttachment[];
31
+ /** Server-derived like `readinessRulesAll`: tolerated on input, stripped. */
32
+ actionsAll?: IActionAttachmentAll[];
13
33
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * The template a type gets when created without `fullNameTemplate`: its
3
+ * `fullName` is just its own name.
4
+ *
5
+ * Templates substitute `@name` (the type's name) and `@parent` (the parent's
6
+ * full name); use `@parent @name` when sibling names repeat across branches so
7
+ * generated asset names stay distinguishable.
8
+ */
9
+ export declare const DEFAULT_FULL_NAME_TEMPLATE = "@name";
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DEFAULT_FULL_NAME_TEMPLATE = void 0;
4
+ /**
5
+ * The template a type gets when created without `fullNameTemplate`: its
6
+ * `fullName` is just its own name.
7
+ *
8
+ * Templates substitute `@name` (the type's name) and `@parent` (the parent's
9
+ * full name); use `@parent @name` when sibling names repeat across branches so
10
+ * generated asset names stay distinguishable.
11
+ */
12
+ exports.DEFAULT_FULL_NAME_TEMPLATE = '@name';
13
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/types/constants.ts"],"names":[],"mappings":";;;AAAA;;;;;;;GAOG;AACU,QAAA,0BAA0B,GAAG,OAAO,CAAA"}
@@ -3,3 +3,4 @@ export * from './get';
3
3
  export * from './hierarchy';
4
4
  export * from './post';
5
5
  export * from './suggestions';
6
+ export * from './constants';
@@ -19,4 +19,5 @@ __exportStar(require("./get"), exports);
19
19
  __exportStar(require("./hierarchy"), exports);
20
20
  __exportStar(require("./post"), exports);
21
21
  __exportStar(require("./suggestions"), exports);
22
+ __exportStar(require("./constants"), exports);
22
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,wCAAqB;AACrB,8CAA2B;AAC3B,yCAAsB;AACtB,gDAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,wCAAqB;AACrB,8CAA2B;AAC3B,yCAAsB;AACtB,gDAA6B;AAC7B,8CAA2B"}
@@ -1,3 +1,5 @@
1
+ import { IActionAttachment, IReadinessRule } from '../../shared';
2
+ import { IFieldBindingDelta, ITypeFieldBindingDelta } from '../../fields';
1
3
  export declare type IEmbeddedEntityWithIdOrName = {
2
4
  id: string;
3
5
  name?: never;
@@ -8,6 +10,20 @@ export declare type IEmbeddedEntityWithIdOrName = {
8
10
  id: string;
9
11
  name: string;
10
12
  };
13
+ /**
14
+ * A type's authored field binding: the field reference (`id`/`name`) plus an
15
+ * optional source/visibility/presentation delta (§5 / §1.4, option rules
16
+ * §2.2). A bare `{ id }` is an INPUT binding, exactly as before; `{ id,
17
+ * detach: true }` unbinds an inherited field from this type down.
18
+ */
19
+ export declare type IFieldBinding = IEmbeddedEntityWithIdOrName & IFieldBindingDelta;
20
+ /**
21
+ * A type-level field row: the field reference plus the presentation delta a
22
+ * type field may carry (`label` / `required`) or `detach`. Resolved onto
23
+ * `typeFieldsAll` exactly like `fields` onto `fieldsAll` — an inherited id is
24
+ * an override, a new id a first attach.
25
+ */
26
+ export declare type ITypeFieldBinding = IEmbeddedEntityWithIdOrName & ITypeFieldBindingDelta;
11
27
  declare type ValueStringOnly = {
12
28
  valueString: string;
13
29
  valueInteger?: never;
@@ -66,18 +82,28 @@ declare type IdOrName = {
66
82
  id: string;
67
83
  name: string;
68
84
  };
69
- export declare type IFieldValueWithConstraints = IdOrName & (ValueStringOnly | ValueIntegerOnly | ValueDecimalOnly | ValueBooleanOnly | ValueDateOnly | ValueDateTimeOnly);
85
+ export declare type IFieldValueWithConstraints = IdOrName & {
86
+ computed?: boolean;
87
+ } & (ValueStringOnly | ValueIntegerOnly | ValueDecimalOnly | ValueBooleanOnly | ValueDateOnly | ValueDateTimeOnly);
70
88
  export interface PostTypeRequest {
71
89
  name: string;
72
90
  parent?: string;
73
- fullNameTemplate?: string | null;
91
+ /**
92
+ * Display-name template (`@name` / `@parent`). Optional — the server stamps
93
+ * `DEFAULT_FULL_NAME_TEMPLATE` (`@name`) when omitted; `null` is rejected.
94
+ */
95
+ fullNameTemplate?: string;
74
96
  description?: string;
75
97
  path?: string;
76
- fields?: IEmbeddedEntityWithIdOrName[];
77
- typeFields?: IEmbeddedEntityWithIdOrName[];
98
+ fields?: IFieldBinding[];
99
+ typeFields?: ITypeFieldBinding[];
78
100
  typeFieldValues?: IFieldValueWithConstraints[];
79
101
  manifestIds?: string[];
80
102
  supportsStocktake?: boolean;
103
+ /** Assets of this type are kits (containers) — G2G M2. */
104
+ typeKit?: boolean;
105
+ readinessRules?: IReadinessRule[];
106
+ actions?: IActionAttachment[];
81
107
  }
82
108
  export declare type PostTypesRequest = PostTypeRequest[];
83
109
  export declare const testPostTypeRequest: PostTypeRequest;
@@ -1 +1 @@
1
- {"version":3,"file":"request.js","sourceRoot":"","sources":["../../../src/types/post/request.ts"],"names":[],"mappings":";;;AAuFA,QAAQ;AACK,QAAA,mBAAmB,GAAoB;IAClD,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,MAAM;IACZ,gBAAgB,EAAE,OAAO;IACzB,MAAM,EAAE;QACN;YACE,EAAE,EAAE,QAAQ;YACZ,IAAI,EAAE,QAAQ;SACf;KACF;IACD,eAAe,EAAE;QACf;YACE,gBAAgB;YAChB,IAAI,EAAE,QAAQ;YACd,YAAY,EAAE,IAAI;YAClB,oBAAoB;SACrB;KACF;IACD,iBAAiB,EAAE,IAAI;CACxB,CAAA"}
1
+ {"version":3,"file":"request.js","sourceRoot":"","sources":["../../../src/types/post/request.ts"],"names":[],"mappings":";;;AAwHA,QAAQ;AACK,QAAA,mBAAmB,GAAoB;IAClD,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,MAAM;IACZ,gBAAgB,EAAE,OAAO;IACzB,MAAM,EAAE;QACN;YACE,EAAE,EAAE,QAAQ;YACZ,IAAI,EAAE,QAAQ;SACf;KACF;IACD,eAAe,EAAE;QACf;YACE,gBAAgB;YAChB,IAAI,EAAE,QAAQ;YACd,YAAY,EAAE,IAAI;YAClB,oBAAoB;SACrB;KACF;IACD,iBAAiB,EAAE,IAAI;CACxB,CAAA"}
@@ -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/usergroups/[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/usergroups/[id]/patch/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,6CAA0B"}