@rippling/rippling-sdk 0.2.0-alpha.83 → 0.2.0-alpha.85

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 (314) hide show
  1. package/examples/manifest/custom-object-creation-workflow/custom-object-creation-workflow.ts +44 -26
  2. package/examples/manifest/dental-practice-management/dental-practice-management.ts +470 -142
  3. package/examples/manifest/dental-practice-management/functions/chair-schedule.ts +23 -13
  4. package/examples/manifest/dental-practice-management/functions/complete-visit.ts +55 -32
  5. package/examples/manifest/dental-practice-management/functions/operatory-list.ts +23 -13
  6. package/examples/manifest/dental-practice-management/functions/patient-list.ts +23 -13
  7. package/examples/manifest/dental-practice-management/functions/treatment-plan-list.ts +23 -13
  8. package/examples/manifest/existing-manifest-mutations/existing-manifest-mutations.ts +23 -68
  9. package/examples/manifest/field-service-dispatch/field-service-dispatch.ts +375 -102
  10. package/examples/manifest/grant-program-management/grant-program-management.ts +419 -125
  11. package/examples/manifest/gym-membership-management/functions/check-in-desk.ts +23 -13
  12. package/examples/manifest/gym-membership-management/functions/member-list.ts +23 -13
  13. package/examples/manifest/gym-membership-management/functions/today-schedule.ts +23 -13
  14. package/examples/manifest/gym-membership-management/functions/trainer-list.ts +23 -13
  15. package/examples/manifest/gym-membership-management/gym-membership-management.ts +442 -92
  16. package/examples/manifest/procurement-approval-hub/procurement-approval-hub.ts +408 -122
  17. package/examples/manifest/simple-todo-app/functions/mark-done.ts +12 -16
  18. package/examples/manifest/simple-todo-app/functions/todo-list.ts +23 -13
  19. package/examples/manifest/simple-todo-app/simple-todo-app.ts +109 -40
  20. package/examples/manifest/todo-app-without-object-list-view/functions/todo-page.ts +193 -166
  21. package/examples/manifest/todo-app-without-object-list-view/todo-app-without-object-list-view.ts +47 -24
  22. package/package.json +13 -7
  23. package/resources/custom-objects/custom-objects.d.mts +0 -7
  24. package/resources/custom-objects/custom-objects.d.mts.map +1 -1
  25. package/resources/custom-objects/custom-objects.d.ts +0 -7
  26. package/resources/custom-objects/custom-objects.d.ts.map +1 -1
  27. package/resources/custom-objects/custom-objects.js.map +1 -1
  28. package/resources/custom-objects/custom-objects.mjs.map +1 -1
  29. package/resources/custom-objects/fields.d.mts +14 -128
  30. package/resources/custom-objects/fields.d.mts.map +1 -1
  31. package/resources/custom-objects/fields.d.ts +14 -128
  32. package/resources/custom-objects/fields.d.ts.map +1 -1
  33. package/src/resources/custom-objects/custom-objects.ts +0 -8
  34. package/src/resources/custom-objects/fields.ts +13 -191
  35. package/src/tsconfig.json +1 -1
  36. package/src/version.ts +1 -1
  37. package/version.d.mts +1 -1
  38. package/version.d.ts +1 -1
  39. package/version.js +1 -1
  40. package/version.mjs +1 -1
  41. package/core/platform/custom-objects/category.d.mts +0 -125
  42. package/core/platform/custom-objects/category.d.mts.map +0 -1
  43. package/core/platform/custom-objects/category.d.ts +0 -125
  44. package/core/platform/custom-objects/category.d.ts.map +0 -1
  45. package/core/platform/custom-objects/category.js +0 -188
  46. package/core/platform/custom-objects/category.js.map +0 -1
  47. package/core/platform/custom-objects/category.mjs +0 -178
  48. package/core/platform/custom-objects/category.mjs.map +0 -1
  49. package/core/platform/custom-objects/definition.d.mts +0 -147
  50. package/core/platform/custom-objects/definition.d.mts.map +0 -1
  51. package/core/platform/custom-objects/definition.d.ts +0 -147
  52. package/core/platform/custom-objects/definition.d.ts.map +0 -1
  53. package/core/platform/custom-objects/definition.js +0 -200
  54. package/core/platform/custom-objects/definition.js.map +0 -1
  55. package/core/platform/custom-objects/definition.mjs +0 -190
  56. package/core/platform/custom-objects/definition.mjs.map +0 -1
  57. package/core/platform/custom-objects/fields.d.mts +0 -302
  58. package/core/platform/custom-objects/fields.d.mts.map +0 -1
  59. package/core/platform/custom-objects/fields.d.ts +0 -302
  60. package/core/platform/custom-objects/fields.d.ts.map +0 -1
  61. package/core/platform/custom-objects/fields.js +0 -369
  62. package/core/platform/custom-objects/fields.js.map +0 -1
  63. package/core/platform/custom-objects/fields.mjs +0 -347
  64. package/core/platform/custom-objects/fields.mjs.map +0 -1
  65. package/core/platform/custom-objects/function-runtime.d.mts +0 -42
  66. package/core/platform/custom-objects/function-runtime.d.mts.map +0 -1
  67. package/core/platform/custom-objects/function-runtime.d.ts +0 -42
  68. package/core/platform/custom-objects/function-runtime.d.ts.map +0 -1
  69. package/core/platform/custom-objects/function-runtime.js +0 -38
  70. package/core/platform/custom-objects/function-runtime.js.map +0 -1
  71. package/core/platform/custom-objects/function-runtime.mjs +0 -35
  72. package/core/platform/custom-objects/function-runtime.mjs.map +0 -1
  73. package/core/platform/custom-objects/lifecycle.d.mts +0 -83
  74. package/core/platform/custom-objects/lifecycle.d.mts.map +0 -1
  75. package/core/platform/custom-objects/lifecycle.d.ts +0 -83
  76. package/core/platform/custom-objects/lifecycle.d.ts.map +0 -1
  77. package/core/platform/custom-objects/lifecycle.js +0 -372
  78. package/core/platform/custom-objects/lifecycle.js.map +0 -1
  79. package/core/platform/custom-objects/lifecycle.mjs +0 -367
  80. package/core/platform/custom-objects/lifecycle.mjs.map +0 -1
  81. package/core/platform/custom-objects/manager.d.mts +0 -354
  82. package/core/platform/custom-objects/manager.d.mts.map +0 -1
  83. package/core/platform/custom-objects/manager.d.ts +0 -354
  84. package/core/platform/custom-objects/manager.d.ts.map +0 -1
  85. package/core/platform/custom-objects/manager.js +0 -646
  86. package/core/platform/custom-objects/manager.js.map +0 -1
  87. package/core/platform/custom-objects/manager.mjs +0 -637
  88. package/core/platform/custom-objects/manager.mjs.map +0 -1
  89. package/core/platform/custom-objects/provisioning.d.mts +0 -138
  90. package/core/platform/custom-objects/provisioning.d.mts.map +0 -1
  91. package/core/platform/custom-objects/provisioning.d.ts +0 -138
  92. package/core/platform/custom-objects/provisioning.d.ts.map +0 -1
  93. package/core/platform/custom-objects/provisioning.js +0 -455
  94. package/core/platform/custom-objects/provisioning.js.map +0 -1
  95. package/core/platform/custom-objects/provisioning.mjs +0 -447
  96. package/core/platform/custom-objects/provisioning.mjs.map +0 -1
  97. package/core/platform/custom-objects/rql.d.mts +0 -122
  98. package/core/platform/custom-objects/rql.d.mts.map +0 -1
  99. package/core/platform/custom-objects/rql.d.ts +0 -122
  100. package/core/platform/custom-objects/rql.d.ts.map +0 -1
  101. package/core/platform/custom-objects/rql.js +0 -225
  102. package/core/platform/custom-objects/rql.js.map +0 -1
  103. package/core/platform/custom-objects/rql.mjs +0 -222
  104. package/core/platform/custom-objects/rql.mjs.map +0 -1
  105. package/core/platform/custom-objects/schema-manager.d.mts +0 -203
  106. package/core/platform/custom-objects/schema-manager.d.mts.map +0 -1
  107. package/core/platform/custom-objects/schema-manager.d.ts +0 -203
  108. package/core/platform/custom-objects/schema-manager.d.ts.map +0 -1
  109. package/core/platform/custom-objects/schema-manager.js +0 -256
  110. package/core/platform/custom-objects/schema-manager.js.map +0 -1
  111. package/core/platform/custom-objects/schema-manager.mjs +0 -249
  112. package/core/platform/custom-objects/schema-manager.mjs.map +0 -1
  113. package/core/platform/custom-objects/typed-rql.d.mts +0 -157
  114. package/core/platform/custom-objects/typed-rql.d.mts.map +0 -1
  115. package/core/platform/custom-objects/typed-rql.d.ts +0 -157
  116. package/core/platform/custom-objects/typed-rql.d.ts.map +0 -1
  117. package/core/platform/custom-objects/typed-rql.js +0 -583
  118. package/core/platform/custom-objects/typed-rql.js.map +0 -1
  119. package/core/platform/custom-objects/typed-rql.mjs +0 -580
  120. package/core/platform/custom-objects/typed-rql.mjs.map +0 -1
  121. package/core/platform/custom-objects/types.d.mts +0 -549
  122. package/core/platform/custom-objects/types.d.mts.map +0 -1
  123. package/core/platform/custom-objects/types.d.ts +0 -549
  124. package/core/platform/custom-objects/types.d.ts.map +0 -1
  125. package/core/platform/custom-objects/types.js +0 -20
  126. package/core/platform/custom-objects/types.js.map +0 -1
  127. package/core/platform/custom-objects/types.mjs +0 -17
  128. package/core/platform/custom-objects/types.mjs.map +0 -1
  129. package/core/platform/custom-objects/validation.d.mts +0 -97
  130. package/core/platform/custom-objects/validation.d.mts.map +0 -1
  131. package/core/platform/custom-objects/validation.d.ts +0 -97
  132. package/core/platform/custom-objects/validation.d.ts.map +0 -1
  133. package/core/platform/custom-objects/validation.js +0 -477
  134. package/core/platform/custom-objects/validation.js.map +0 -1
  135. package/core/platform/custom-objects/validation.mjs +0 -465
  136. package/core/platform/custom-objects/validation.mjs.map +0 -1
  137. package/core/platform/custom-objects.d.mts +0 -67
  138. package/core/platform/custom-objects.d.mts.map +0 -1
  139. package/core/platform/custom-objects.d.ts +0 -67
  140. package/core/platform/custom-objects.d.ts.map +0 -1
  141. package/core/platform/custom-objects.js +0 -118
  142. package/core/platform/custom-objects.js.map +0 -1
  143. package/core/platform/custom-objects.mjs +0 -45
  144. package/core/platform/custom-objects.mjs.map +0 -1
  145. package/core/platform/manifest/custom-objects/action.d.mts +0 -58
  146. package/core/platform/manifest/custom-objects/action.d.mts.map +0 -1
  147. package/core/platform/manifest/custom-objects/action.d.ts +0 -58
  148. package/core/platform/manifest/custom-objects/action.d.ts.map +0 -1
  149. package/core/platform/manifest/custom-objects/action.js +0 -44
  150. package/core/platform/manifest/custom-objects/action.js.map +0 -1
  151. package/core/platform/manifest/custom-objects/action.mjs +0 -40
  152. package/core/platform/manifest/custom-objects/action.mjs.map +0 -1
  153. package/core/platform/manifest/custom-objects/conditions.d.mts +0 -240
  154. package/core/platform/manifest/custom-objects/conditions.d.mts.map +0 -1
  155. package/core/platform/manifest/custom-objects/conditions.d.ts +0 -240
  156. package/core/platform/manifest/custom-objects/conditions.d.ts.map +0 -1
  157. package/core/platform/manifest/custom-objects/conditions.js +0 -326
  158. package/core/platform/manifest/custom-objects/conditions.js.map +0 -1
  159. package/core/platform/manifest/custom-objects/conditions.mjs +0 -321
  160. package/core/platform/manifest/custom-objects/conditions.mjs.map +0 -1
  161. package/core/platform/manifest/custom-objects/existing.d.mts +0 -87
  162. package/core/platform/manifest/custom-objects/existing.d.mts.map +0 -1
  163. package/core/platform/manifest/custom-objects/existing.d.ts +0 -87
  164. package/core/platform/manifest/custom-objects/existing.d.ts.map +0 -1
  165. package/core/platform/manifest/custom-objects/existing.js +0 -113
  166. package/core/platform/manifest/custom-objects/existing.js.map +0 -1
  167. package/core/platform/manifest/custom-objects/existing.mjs +0 -109
  168. package/core/platform/manifest/custom-objects/existing.mjs.map +0 -1
  169. package/core/platform/manifest/custom-objects/field-resolution.d.mts +0 -48
  170. package/core/platform/manifest/custom-objects/field-resolution.d.mts.map +0 -1
  171. package/core/platform/manifest/custom-objects/field-resolution.d.ts +0 -48
  172. package/core/platform/manifest/custom-objects/field-resolution.d.ts.map +0 -1
  173. package/core/platform/manifest/custom-objects/field-resolution.js +0 -61
  174. package/core/platform/manifest/custom-objects/field-resolution.js.map +0 -1
  175. package/core/platform/manifest/custom-objects/field-resolution.mjs +0 -58
  176. package/core/platform/manifest/custom-objects/field-resolution.mjs.map +0 -1
  177. package/core/platform/manifest/custom-objects/function-file.d.mts +0 -87
  178. package/core/platform/manifest/custom-objects/function-file.d.mts.map +0 -1
  179. package/core/platform/manifest/custom-objects/function-file.d.ts +0 -87
  180. package/core/platform/manifest/custom-objects/function-file.d.ts.map +0 -1
  181. package/core/platform/manifest/custom-objects/function-file.js +0 -76
  182. package/core/platform/manifest/custom-objects/function-file.js.map +0 -1
  183. package/core/platform/manifest/custom-objects/function-file.mjs +0 -69
  184. package/core/platform/manifest/custom-objects/function-file.mjs.map +0 -1
  185. package/core/platform/manifest/custom-objects/list-view.d.mts +0 -65
  186. package/core/platform/manifest/custom-objects/list-view.d.mts.map +0 -1
  187. package/core/platform/manifest/custom-objects/list-view.d.ts +0 -65
  188. package/core/platform/manifest/custom-objects/list-view.d.ts.map +0 -1
  189. package/core/platform/manifest/custom-objects/list-view.js +0 -33
  190. package/core/platform/manifest/custom-objects/list-view.js.map +0 -1
  191. package/core/platform/manifest/custom-objects/list-view.mjs +0 -30
  192. package/core/platform/manifest/custom-objects/list-view.mjs.map +0 -1
  193. package/core/platform/manifest/custom-objects/object-list-page.d.mts +0 -43
  194. package/core/platform/manifest/custom-objects/object-list-page.d.mts.map +0 -1
  195. package/core/platform/manifest/custom-objects/object-list-page.d.ts +0 -43
  196. package/core/platform/manifest/custom-objects/object-list-page.d.ts.map +0 -1
  197. package/core/platform/manifest/custom-objects/object-list-page.js +0 -54
  198. package/core/platform/manifest/custom-objects/object-list-page.js.map +0 -1
  199. package/core/platform/manifest/custom-objects/object-list-page.mjs +0 -50
  200. package/core/platform/manifest/custom-objects/object-list-page.mjs.map +0 -1
  201. package/core/platform/manifest/custom-objects/page-layout.d.mts +0 -142
  202. package/core/platform/manifest/custom-objects/page-layout.d.mts.map +0 -1
  203. package/core/platform/manifest/custom-objects/page-layout.d.ts +0 -142
  204. package/core/platform/manifest/custom-objects/page-layout.d.ts.map +0 -1
  205. package/core/platform/manifest/custom-objects/page-layout.js +0 -184
  206. package/core/platform/manifest/custom-objects/page-layout.js.map +0 -1
  207. package/core/platform/manifest/custom-objects/page-layout.mjs +0 -180
  208. package/core/platform/manifest/custom-objects/page-layout.mjs.map +0 -1
  209. package/core/platform/manifest/custom-objects/register.d.mts +0 -87
  210. package/core/platform/manifest/custom-objects/register.d.mts.map +0 -1
  211. package/core/platform/manifest/custom-objects/register.d.ts +0 -87
  212. package/core/platform/manifest/custom-objects/register.d.ts.map +0 -1
  213. package/core/platform/manifest/custom-objects/register.js +0 -395
  214. package/core/platform/manifest/custom-objects/register.js.map +0 -1
  215. package/core/platform/manifest/custom-objects/register.mjs +0 -391
  216. package/core/platform/manifest/custom-objects/register.mjs.map +0 -1
  217. package/core/platform/manifest/custom-objects/rule.d.mts +0 -113
  218. package/core/platform/manifest/custom-objects/rule.d.mts.map +0 -1
  219. package/core/platform/manifest/custom-objects/rule.d.ts +0 -113
  220. package/core/platform/manifest/custom-objects/rule.d.ts.map +0 -1
  221. package/core/platform/manifest/custom-objects/rule.js +0 -49
  222. package/core/platform/manifest/custom-objects/rule.js.map +0 -1
  223. package/core/platform/manifest/custom-objects/rule.mjs +0 -45
  224. package/core/platform/manifest/custom-objects/rule.mjs.map +0 -1
  225. package/core/platform/manifest/custom-objects/sdui-page.d.mts +0 -214
  226. package/core/platform/manifest/custom-objects/sdui-page.d.mts.map +0 -1
  227. package/core/platform/manifest/custom-objects/sdui-page.d.ts +0 -214
  228. package/core/platform/manifest/custom-objects/sdui-page.d.ts.map +0 -1
  229. package/core/platform/manifest/custom-objects/sdui-page.js +0 -194
  230. package/core/platform/manifest/custom-objects/sdui-page.js.map +0 -1
  231. package/core/platform/manifest/custom-objects/sdui-page.mjs +0 -182
  232. package/core/platform/manifest/custom-objects/sdui-page.mjs.map +0 -1
  233. package/core/platform/manifest/custom-objects/typed-condition.d.mts +0 -28
  234. package/core/platform/manifest/custom-objects/typed-condition.d.mts.map +0 -1
  235. package/core/platform/manifest/custom-objects/typed-condition.d.ts +0 -28
  236. package/core/platform/manifest/custom-objects/typed-condition.d.ts.map +0 -1
  237. package/core/platform/manifest/custom-objects/typed-condition.js +0 -434
  238. package/core/platform/manifest/custom-objects/typed-condition.js.map +0 -1
  239. package/core/platform/manifest/custom-objects/typed-condition.mjs +0 -431
  240. package/core/platform/manifest/custom-objects/typed-condition.mjs.map +0 -1
  241. package/core/platform/manifest/custom-objects/types.d.mts +0 -29
  242. package/core/platform/manifest/custom-objects/types.d.mts.map +0 -1
  243. package/core/platform/manifest/custom-objects/types.d.ts +0 -29
  244. package/core/platform/manifest/custom-objects/types.d.ts.map +0 -1
  245. package/core/platform/manifest/custom-objects/types.js +0 -3
  246. package/core/platform/manifest/custom-objects/types.js.map +0 -1
  247. package/core/platform/manifest/custom-objects/types.mjs +0 -2
  248. package/core/platform/manifest/custom-objects/types.mjs.map +0 -1
  249. package/core/platform/manifest/custom-objects/validation.d.mts +0 -44
  250. package/core/platform/manifest/custom-objects/validation.d.mts.map +0 -1
  251. package/core/platform/manifest/custom-objects/validation.d.ts +0 -44
  252. package/core/platform/manifest/custom-objects/validation.d.ts.map +0 -1
  253. package/core/platform/manifest/custom-objects/validation.js +0 -30
  254. package/core/platform/manifest/custom-objects/validation.js.map +0 -1
  255. package/core/platform/manifest/custom-objects/validation.mjs +0 -27
  256. package/core/platform/manifest/custom-objects/validation.mjs.map +0 -1
  257. package/core/platform/manifest/custom-objects/workflow.d.mts +0 -47
  258. package/core/platform/manifest/custom-objects/workflow.d.mts.map +0 -1
  259. package/core/platform/manifest/custom-objects/workflow.d.ts +0 -47
  260. package/core/platform/manifest/custom-objects/workflow.d.ts.map +0 -1
  261. package/core/platform/manifest/custom-objects/workflow.js +0 -38
  262. package/core/platform/manifest/custom-objects/workflow.js.map +0 -1
  263. package/core/platform/manifest/custom-objects/workflow.mjs +0 -34
  264. package/core/platform/manifest/custom-objects/workflow.mjs.map +0 -1
  265. package/core/platform/manifest/custom-objects.d.mts +0 -85
  266. package/core/platform/manifest/custom-objects.d.mts.map +0 -1
  267. package/core/platform/manifest/custom-objects.d.ts +0 -85
  268. package/core/platform/manifest/custom-objects.d.ts.map +0 -1
  269. package/core/platform/manifest/custom-objects.js +0 -84
  270. package/core/platform/manifest/custom-objects.js.map +0 -1
  271. package/core/platform/manifest/custom-objects.mjs +0 -55
  272. package/core/platform/manifest/custom-objects.mjs.map +0 -1
  273. package/examples/manifest/custom-object-creation-workflow/functions/intake-request-created.ts +0 -20
  274. package/examples/manifest/custom-object-creation-workflow/schema.ts +0 -29
  275. package/examples/manifest/dental-practice-management/schema.ts +0 -298
  276. package/examples/manifest/field-service-dispatch/schema.ts +0 -248
  277. package/examples/manifest/grant-program-management/schema.ts +0 -269
  278. package/examples/manifest/gym-membership-management/schema.ts +0 -266
  279. package/examples/manifest/procurement-approval-hub/functions/route-purchase-request.ts +0 -20
  280. package/examples/manifest/procurement-approval-hub/schema.ts +0 -256
  281. package/examples/manifest/simple-todo-app/schema.ts +0 -60
  282. package/examples/manifest/todo-app-without-object-list-view/schema.ts +0 -28
  283. package/src/core/platform/README.md +0 -20
  284. package/src/core/platform/custom-objects/category.ts +0 -294
  285. package/src/core/platform/custom-objects/definition.ts +0 -373
  286. package/src/core/platform/custom-objects/fields.ts +0 -653
  287. package/src/core/platform/custom-objects/function-runtime.ts +0 -76
  288. package/src/core/platform/custom-objects/lifecycle.ts +0 -557
  289. package/src/core/platform/custom-objects/manager.ts +0 -959
  290. package/src/core/platform/custom-objects/provisioning.ts +0 -672
  291. package/src/core/platform/custom-objects/rql.ts +0 -375
  292. package/src/core/platform/custom-objects/schema-manager.ts +0 -351
  293. package/src/core/platform/custom-objects/typed-rql.ts +0 -1273
  294. package/src/core/platform/custom-objects/types.ts +0 -753
  295. package/src/core/platform/custom-objects/validation.ts +0 -573
  296. package/src/core/platform/custom-objects.ts +0 -269
  297. package/src/core/platform/manifest/README.md +0 -26
  298. package/src/core/platform/manifest/custom-objects/action.ts +0 -87
  299. package/src/core/platform/manifest/custom-objects/conditions.ts +0 -762
  300. package/src/core/platform/manifest/custom-objects/existing.ts +0 -221
  301. package/src/core/platform/manifest/custom-objects/field-resolution.ts +0 -116
  302. package/src/core/platform/manifest/custom-objects/function-file.ts +0 -149
  303. package/src/core/platform/manifest/custom-objects/list-view.ts +0 -95
  304. package/src/core/platform/manifest/custom-objects/object-list-page.ts +0 -87
  305. package/src/core/platform/manifest/custom-objects/page-layout.ts +0 -380
  306. package/src/core/platform/manifest/custom-objects/register.ts +0 -555
  307. package/src/core/platform/manifest/custom-objects/rule.ts +0 -192
  308. package/src/core/platform/manifest/custom-objects/sdui-page.ts +0 -515
  309. package/src/core/platform/manifest/custom-objects/typed-condition.ts +0 -617
  310. package/src/core/platform/manifest/custom-objects/types.ts +0 -92
  311. package/src/core/platform/manifest/custom-objects/validation.ts +0 -70
  312. package/src/core/platform/manifest/custom-objects/workflow.ts +0 -71
  313. package/src/core/platform/manifest/custom-objects.ts +0 -203
  314. package/src/pebble-sdui-web-custom-apps-shim.d.ts +0 -3
@@ -1,49 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createTypedRuleHelpers = createTypedRuleHelpers;
4
- exports.defineTypedRule = defineTypedRule;
5
- const manifest_1 = require("../../../../lib/manifest.js");
6
- const conditions_1 = require("./conditions.js");
7
- const field_resolution_1 = require("./field-resolution.js");
8
- /**
9
- * Creates typed rule-action helpers for one manifest registration.
10
- *
11
- * @param registration - Manifest registration produced from the typed object definition.
12
- * @returns Immutable rule-action helper family.
13
- * @typeParam TDefinition - Typed custom-object definition whose field namespace should be enforced.
14
- */
15
- function createTypedRuleHelpers(registration) {
16
- function createSetter(field) {
17
- return Object.freeze({
18
- toValue(value) {
19
- return Object.freeze({ targetField: field, fixedValue: value });
20
- },
21
- toFormula(formula) {
22
- return Object.freeze({ targetField: field, rqlFormula: formula });
23
- },
24
- });
25
- }
26
- return Object.freeze({
27
- setField(field) {
28
- return createSetter((0, field_resolution_1.resolveTypedManifestField)(registration, field));
29
- },
30
- });
31
- }
32
- /**
33
- * Defines a record-triggered rule using typed field names and manifest-condition fragments.
34
- *
35
- * @param registration - Manifest registration produced from the typed object definition.
36
- * @param props - Typed rule properties.
37
- * @returns Low-level rule manifest instance.
38
- * @typeParam TDefinition - Typed custom-object definition whose field namespace should be enforced.
39
- */
40
- function defineTypedRule(registration, props) {
41
- const { when, actions, ...rest } = props;
42
- const resolvedActions = typeof actions === 'function' ? actions(createTypedRuleHelpers(registration)) : actions;
43
- return new manifest_1.Rule(registration.object, {
44
- ...rest,
45
- ...(when != null ? { rqlCondition: (0, conditions_1.resolveManifestConditionInput)(registration, when) } : {}),
46
- ...(resolvedActions != null ? { actions: [...resolvedActions] } : {}),
47
- });
48
- }
49
- //# sourceMappingURL=rule.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rule.js","sourceRoot":"","sources":["../../../../src/core/platform/manifest/custom-objects/rule.ts"],"names":[],"mappings":";;AAmJA,wDAqBC;AAUD,0CAaC;AA/LD,0DAAiF;AASjF,gDAA6D;AAM7D,4DAA+D;AA6H/D;;;;;;GAMG;AACH,SAAgB,sBAAsB,CACpC,YAA+C;IAE/C,SAAS,YAAY,CAAC,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- import { Rule } from "../../../../lib/manifest.mjs";
2
- import { resolveManifestConditionInput } from "./conditions.mjs";
3
- import { resolveTypedManifestField } from "./field-resolution.mjs";
4
- /**
5
- * Creates typed rule-action helpers for one manifest registration.
6
- *
7
- * @param registration - Manifest registration produced from the typed object definition.
8
- * @returns Immutable rule-action helper family.
9
- * @typeParam TDefinition - Typed custom-object definition whose field namespace should be enforced.
10
- */
11
- export function createTypedRuleHelpers(registration) {
12
- function createSetter(field) {
13
- return Object.freeze({
14
- toValue(value) {
15
- return Object.freeze({ targetField: field, fixedValue: value });
16
- },
17
- toFormula(formula) {
18
- return Object.freeze({ targetField: field, rqlFormula: formula });
19
- },
20
- });
21
- }
22
- return Object.freeze({
23
- setField(field) {
24
- return createSetter(resolveTypedManifestField(registration, field));
25
- },
26
- });
27
- }
28
- /**
29
- * Defines a record-triggered rule using typed field names and manifest-condition fragments.
30
- *
31
- * @param registration - Manifest registration produced from the typed object definition.
32
- * @param props - Typed rule properties.
33
- * @returns Low-level rule manifest instance.
34
- * @typeParam TDefinition - Typed custom-object definition whose field namespace should be enforced.
35
- */
36
- export function defineTypedRule(registration, props) {
37
- const { when, actions, ...rest } = props;
38
- const resolvedActions = typeof actions === 'function' ? actions(createTypedRuleHelpers(registration)) : actions;
39
- return new Rule(registration.object, {
40
- ...rest,
41
- ...(when != null ? { rqlCondition: resolveManifestConditionInput(registration, when) } : {}),
42
- ...(resolvedActions != null ? { actions: [...resolvedActions] } : {}),
43
- });
44
- }
45
- //# sourceMappingURL=rule.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rule.mjs","sourceRoot":"","sources":["../../../../src/core/platform/manifest/custom-objects/rule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmC,qCAAiC;AASjF,OAAO,EAAE,6BAA6B,EAAE,yBAAqB;AAM7D,OAAO,EAAE,yBAAyB,EAAE,+BAA2B;AA6H/D;;;;;;GAMG;AACH,MAAM,UAAU,sBAAsB,CACpC,YAA+C;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-1,214 +0,0 @@
1
- import { type ActionBinding } from '@rippling/pebble-sdui-web';
2
- import { FunctionResponse, type FunctionContext, type FunctionResponseOptions, type SduiPageFunctionEvent } from "../../../../functions.mjs";
3
- type TypedSduiStatePathPrefix<TPrefix extends string, TKey extends string> = `${TPrefix}/${TKey}`;
4
- type TypedSduiPathKeys<TValue> = Extract<keyof TValue, string>;
5
- type TypedSduiStatePathInner<TValue, TPrefix extends string> = {
6
- readonly [TKey in TypedSduiPathKeys<TValue>]: TValue[TKey] extends readonly unknown[] ? TypedSduiStatePathPrefix<TPrefix, TKey> : TValue[TKey] extends Record<string, unknown> ? TypedSduiStatePathPrefix<TPrefix, TKey> | TypedSduiStatePathInner<TValue[TKey], TypedSduiStatePathPrefix<TPrefix, TKey>> : TypedSduiStatePathPrefix<TPrefix, TKey>;
7
- }[TypedSduiPathKeys<TValue>];
8
- type TypedSduiStatePathValueInner<TValue, TSegments extends string> = TSegments extends (`${infer THead}/${infer TRest}`) ? THead extends TypedSduiPathKeys<TValue> ? TypedSduiStatePathValueInner<TValue[THead], TRest> : never : TSegments extends TypedSduiPathKeys<TValue> ? TValue[TSegments] : never;
9
- /** JSON-pointer-like state path derived from one SDUI page-state shape. */
10
- export type TypedSduiStatePath<TState> = TypedSduiStatePathInner<TState, ''>;
11
- /** Value type stored at one typed SDUI page-state path. */
12
- export type TypedSduiStatePathValue<TState, TPath extends TypedSduiStatePath<TState>> = TPath extends (`/${infer TSegments}`) ? TypedSduiStatePathValueInner<TState, TSegments> : never;
13
- /** Typed SDUI page-state paths whose values accept `TValue`. */
14
- export type TypedSduiStatePathForValue<TState, TValue> = {
15
- readonly [TPath in TypedSduiStatePath<TState>]: TValue extends TypedSduiStatePathValue<TState, TPath> ? TPath : never;
16
- }[TypedSduiStatePath<TState>];
17
- /** State assignments applied by common SDUI helper actions. */
18
- export type TypedSduiStateAssignments<TState> = Partial<{
19
- readonly [TPath in TypedSduiStatePath<TState>]: TypedSduiStatePathValue<TState, TPath>;
20
- }>;
21
- /** Returns a typed SDUI page-state path resolver that preserves literal path inference. */
22
- export declare function resolveTypedSduiStatePath<TState>(): <TPath extends TypedSduiStatePath<TState>>(path: TPath) => TPath;
23
- /** Returns one typed SDUI page-state assignment map as-is while preserving compile-time validation. */
24
- export declare function defineTypedSduiStateAssignments<TState>(assignments: TypedSduiStateAssignments<TState>): TypedSduiStateAssignments<TState>;
25
- /** Standard output body returned when a function renders one SDUI page spec. */
26
- export interface TypedSduiPageSpecOutput {
27
- /** JSON-serialized SDUI spec payload returned to the platform. */
28
- readonly spec: string;
29
- }
30
- /** Standard error output body for SDUI page functions. */
31
- export interface TypedSduiPageErrorOutput {
32
- /** Human-readable error message surfaced back to the caller. */
33
- readonly error: string;
34
- }
35
- /**
36
- * Common output union for stateful SDUI page functions.
37
- *
38
- * @typeParam TStateUpdate - State payload returned for follow-up actions such as
39
- * partial updates written into a `responsePath`.
40
- */
41
- export type TypedSduiPageOutput<TStateUpdate> = TypedSduiPageSpecOutput | TStateUpdate | TypedSduiPageErrorOutput;
42
- /**
43
- * Serializes one rendered SDUI spec into the standard function output shape.
44
- *
45
- * @param spec - Rendered SDUI spec object that should be JSON-serialized.
46
- * @returns Standard SDUI spec output payload.
47
- */
48
- export declare function createTypedSduiPageSpecOutput<TSpec extends TypedSduiPageSpec>(spec: TSpec): TypedSduiPageSpecOutput;
49
- /**
50
- * Builds one successful SDUI page-function response.
51
- *
52
- * @param body - Response body to return to the platform.
53
- * @param options - Optional response metadata such as status code, headers, or message.
54
- * @returns Typed function response.
55
- * @typeParam TBody - Body shape returned by the function.
56
- */
57
- export declare function createTypedSduiPageResponse<TBody>(body: TBody, options?: Omit<FunctionResponseOptions<TBody>, 'body'>): FunctionResponse<TBody>;
58
- /**
59
- * Builds the standard SDUI page-function response for one rendered page spec.
60
- *
61
- * @param spec - Rendered SDUI spec object that should be JSON-serialized.
62
- * @returns Typed function response containing `body.spec`.
63
- * @typeParam TOutput - Output union that includes the standard spec payload.
64
- */
65
- export declare function createTypedSduiPageSpecResponse<TOutput = TypedSduiPageSpecOutput, TSpec extends TypedSduiPageSpec = TypedSduiPageSpec>(spec: TSpec): FunctionResponse<TOutput>;
66
- /**
67
- * Builds a 400 SDUI page-function error response.
68
- *
69
- * @param message - Human-readable error message.
70
- * @returns Typed function response containing the standard error payload.
71
- * @typeParam TOutput - Output union that includes the standard error payload.
72
- */
73
- export declare function createTypedSduiPageBadRequestResponse<TOutput = TypedSduiPageErrorOutput>(message: string): FunctionResponse<TOutput>;
74
- /**
75
- * Builds a 500 SDUI page-function error response from one thrown value.
76
- *
77
- * @param error - Unknown thrown value that should be normalized to a message.
78
- * @returns Typed function response containing the standard error payload.
79
- * @typeParam TOutput - Output union that includes the standard error payload.
80
- */
81
- export declare function createTypedSduiPageServerErrorResponse<TOutput = TypedSduiPageErrorOutput>(error: unknown): FunctionResponse<TOutput>;
82
- type TypedSduiPageEvent<TParameters extends {
83
- action: string;
84
- }> = Omit<SduiPageFunctionEvent, 'parameters'> & {
85
- readonly parameters: TParameters;
86
- };
87
- export type TypedSduiPageActionName<TParameters extends {
88
- action: string;
89
- }> = TParameters['action'];
90
- export type TypedSduiPageActionParams<TParameters extends {
91
- action: string;
92
- }, TAction extends TypedSduiPageActionName<TParameters>> = Extract<TParameters, {
93
- action: TAction;
94
- }>;
95
- type TypedSduiPageRoleId<TRequireRoleId extends boolean | undefined> = TRequireRoleId extends true ? string : string | undefined;
96
- type TypedSduiPageSpec = object;
97
- type DefaultInitAction<TParameters extends {
98
- action: string;
99
- }> = Extract<TypedSduiPageActionName<TParameters>, 'init'> extends never ? TypedSduiPageActionName<TParameters> : Extract<TypedSduiPageActionName<TParameters>, 'init'>;
100
- type TypedSduiNonInitActionName<TParameters extends {
101
- action: string;
102
- }, TInitAction extends TypedSduiPageActionName<TParameters>> = Exclude<TypedSduiPageActionName<TParameters>, TInitAction>;
103
- type TypedSduiActionHandlerMap<TParameters extends {
104
- action: string;
105
- }, TRuntime, TStateUpdate, TInitAction extends TypedSduiPageActionName<TParameters>, TRequireRoleId extends boolean | undefined> = {
106
- readonly [TAction in TypedSduiNonInitActionName<TParameters, TInitAction>]: (args: TypedSduiPageHandlerArgs<TParameters, TRuntime, TAction, TRequireRoleId>) => TStateUpdate | Promise<TStateUpdate>;
107
- };
108
- /** Shared arguments passed to typed SDUI page handler callbacks. */
109
- export interface TypedSduiPageHandlerArgs<TParameters extends {
110
- action: string;
111
- }, TRuntime, TAction extends TypedSduiPageActionName<TParameters>, TRequireRoleId extends boolean | undefined = false> {
112
- /** Raw SDUI page event supplied by the platform. */
113
- readonly event: TypedSduiPageEvent<TParameters>;
114
- /** Function context supplied by the platform. */
115
- readonly context: FunctionContext;
116
- /** Action-specific parameter payload narrowed by the selected action string. */
117
- readonly params: TypedSduiPageActionParams<TParameters, TAction>;
118
- /** Per-request runtime created once for this handler invocation. */
119
- readonly runtime: TRuntime;
120
- /** Current function role id when present. */
121
- readonly roleId: TypedSduiPageRoleId<TRequireRoleId>;
122
- }
123
- /**
124
- * Initialization properties for {@link defineTypedSduiPageHandler}.
125
- *
126
- * @typeParam TParameters - SDUI page parameter union discriminated by `action`.
127
- * @typeParam TRuntime - Shared runtime created once per invocation.
128
- * @typeParam TStateUpdate - State payload returned for follow-up actions.
129
- * @typeParam TInitAction - Action string that renders the initial SDUI spec.
130
- * @typeParam TRequireRoleId - Whether callback args should require `roleId`.
131
- */
132
- type TypedSduiPageHandlerOptionsBase<TParameters extends {
133
- action: string;
134
- }, TRuntime, TStateUpdate, TInitAction extends TypedSduiPageActionName<TParameters>, TRequireRoleId extends boolean | undefined> = {
135
- /** Whether the handler should reject requests without `context.function.role_id`. */
136
- readonly requireRoleId?: TRequireRoleId;
137
- /** Error message used when `requireRoleId` is true but no role id is present. */
138
- readonly missingRoleIdMessage?: string;
139
- /** Creates one shared runtime object for this invocation. */
140
- readonly createRuntime: (context: FunctionContext) => TRuntime | Promise<TRuntime>;
141
- /** Renders the initial SDUI page spec for the selected init action. */
142
- readonly init: (args: TypedSduiPageHandlerArgs<TParameters, TRuntime, TInitAction, TRequireRoleId>) => TypedSduiPageSpec | Promise<TypedSduiPageSpec>;
143
- /** Returns one state update payload for each non-init action. */
144
- readonly actions: TypedSduiActionHandlerMap<TParameters, TRuntime, TStateUpdate, TInitAction, TRequireRoleId>;
145
- /** Optional formatter for the unknown-action bad-request message. */
146
- readonly unknownActionMessage?: (action: string) => string;
147
- };
148
- export type TypedSduiPageHandlerOptions<TParameters extends {
149
- action: string;
150
- }, TRuntime, TStateUpdate = never, TInitAction extends TypedSduiPageActionName<TParameters> = DefaultInitAction<TParameters>, TRequireRoleId extends boolean | undefined = false> = TypedSduiPageHandlerOptionsBase<TParameters, TRuntime, TStateUpdate, TInitAction, TRequireRoleId> & (Extract<TypedSduiPageActionName<TParameters>, 'init'> extends never ?
151
- /** Action string treated as the initial SDUI render request when no literal `init` action exists. */
152
- {
153
- readonly initAction: TInitAction;
154
- } : {
155
- readonly initAction?: TInitAction;
156
- });
157
- type TypedSduiPageHandler<TParameters extends {
158
- action: string;
159
- }, TStateUpdate> = (event: TypedSduiPageEvent<TParameters>, context: FunctionContext) => Promise<FunctionResponse<TypedSduiPageOutput<TStateUpdate>>>;
160
- export declare function defineTypedSduiPageHandler<TParameters extends {
161
- action: string;
162
- }, TRuntime, TStateUpdate = never, TInitAction extends TypedSduiPageActionName<TParameters> = DefaultInitAction<TParameters>>(options: TypedSduiPageHandlerOptions<TParameters, TRuntime, TStateUpdate, TInitAction, true>): TypedSduiPageHandler<TParameters, TStateUpdate>;
163
- export declare function defineTypedSduiPageHandler<TParameters extends {
164
- action: string;
165
- }, TRuntime, TStateUpdate = never, TInitAction extends TypedSduiPageActionName<TParameters> = DefaultInitAction<TParameters>, TRequireRoleId extends boolean | undefined = false>(options: TypedSduiPageHandlerOptions<TParameters, TRuntime, TStateUpdate, TInitAction, TRequireRoleId>): TypedSduiPageHandler<TParameters, TStateUpdate>;
166
- /**
167
- * Creates one parameter-first SDUI page-handler builder that fixes the action
168
- * union and state-update payload up front, then infers the shared runtime type
169
- * from `createRuntime(...)` when the returned builder is called.
170
- *
171
- * This is the intended golden path for normal page-function authoring: specify
172
- * the discriminated input union and returned state payload once, then let the
173
- * runtime object and `requireRoleId` behavior infer from the provided options.
174
- *
175
- * @returns Builder that accepts typed SDUI page-handler options.
176
- * @typeParam TParameters - SDUI page parameter union discriminated by `action`.
177
- * @typeParam TStateUpdate - State payload returned for follow-up actions.
178
- */
179
- export declare function defineTypedSduiPageHandlerFor<TParameters extends {
180
- action: string;
181
- }, TStateUpdate = never>(): <TRuntime, TInitAction extends TypedSduiPageActionName<TParameters> = DefaultInitAction<TParameters>, TRequireRoleId extends boolean | undefined = false>(options: TypedSduiPageHandlerOptions<TParameters, TRuntime, TStateUpdate, TInitAction, TRequireRoleId>) => TypedSduiPageHandler<TParameters, TStateUpdate>;
182
- /**
183
- * Configuration for the standard "set loading state, trigger function, write
184
- * responsePath, then clear loading / error state" SDUI interaction pattern.
185
- *
186
- * @typeParam TState - SDUI page-state shape that owns the referenced state paths.
187
- * @typeParam TResponse - Response payload written into `responsePath`.
188
- * @typeParam TInputs - Server-bound function input payload sent through `triggerFunction(...)`.
189
- */
190
- export interface TypedSduiMutationTriggerOptions<TState, TResponse, TInputs extends {
191
- action: string;
192
- }> {
193
- /** Target function id that should handle the mutation. */
194
- readonly functionId: string;
195
- /** Server-bound input payload forwarded to the function. */
196
- readonly inputs: TInputs;
197
- /** State path that should receive the function response body. */
198
- readonly responsePath: TypedSduiStatePathForValue<TState, TResponse>;
199
- /** Human-readable error message shown when the function call fails. */
200
- readonly errorMessage: string;
201
- /** Optional state assignments applied after a successful mutation. */
202
- readonly onSuccessState?: TypedSduiStateAssignments<TState>;
203
- /** Optional state assignments applied after a failed mutation. */
204
- readonly onErrorState?: TypedSduiStateAssignments<TState>;
205
- /** State path that stores the shared in-flight mutation flag. Defaults to `/isMutating`. */
206
- readonly mutationStatePath?: TypedSduiStatePathForValue<TState, boolean>;
207
- /** State path that stores the visible error message. Defaults to `/errorMessage`. */
208
- readonly errorStatePath?: TypedSduiStatePathForValue<TState, string>;
209
- }
210
- export declare function createTypedSduiMutationTrigger<TState, TResponse, TInputs extends {
211
- action: string;
212
- }>(options: TypedSduiMutationTriggerOptions<TState, TResponse, TInputs>): ActionBinding[];
213
- export {};
214
- //# sourceMappingURL=sdui-page.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sdui-page.d.mts","sourceRoot":"","sources":["../../../../src/core/platform/manifest/custom-objects/sdui-page.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,aAAa,EAAsB,MAAM,2BAA2B,CAAC;AAEhG,OAAO,EACL,gBAAgB,EAChB,KAAK,eAAe,EACpB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC3B,kCAA8B;AAE/B,KAAK,wBAAwB,CAAC,OAAO,SAAS,MAAM,EAAE,IAAI,SAAS,MAAM,IAAI,GAAG,OAAO,IAAI,IAAI,EAAE,CAAC;AAClG,KAAK,iBAAiB,CAAC,MAAM,IAAI,OAAO,CAAC,MAAM,MAAM,EAAE,MAAM,CAAC,CAAC;AAE/D,KAAK,uBAAuB,CAAC,MAAM,EAAE,OAAO,SAAS,MAAM,IAAI;IAC7D,QAAQ,EAAE,IAAI,IAAI,iBAAiB,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,SAAS,SAAS,OAAO,EAAE,GACnF,wBAAwB,CAAC,OAAO,EAAE,IAAI,CAAC,GACvC,MAAM,CAAC,IAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC1C,wBAAwB,CAAC,OAAO,EAAE,IAAI,CAAC,GACvC,uBAAuB,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,wBAAwB,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,GAChF,wBAAwB,CAAC,OAAO,EAAE,IAAI,CAAC;CAC1C,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC;A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AA;CAAE;IACpG,0DAA0D;IAC1D,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,4DAA4D;IAC5D,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,iEAAiE;IACjE,QAAQ,CAAC,YAAY,EAAE,0BAA0B,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACrE,uEAAuE;IACvE,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,sEAAsE;IACtE,QAAQ,CAAC,cAAc,CAAC,EAAE,yBAAyB,CAAC,MAAM,CAAC,CAAC;IAC5D,kEAAkE;IAClE,QAAQ,CAAC,YAAY,CAAC,EAAE,yBAAyB,CAAC,MAAM,CAAC,CAAC;IAC1D,4FAA4F;IAC5F,QAAQ,CAAC,iBAAiB,CAAC,EAAE,0BAA0B,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzE,qFAAqF;IACrF,QAAQ,CAAC,cAAc,CAAC,EAAE,0BAA0B,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtE;AAwBD,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,SAAS;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,EAClG,OAAO,EAAE,+BAA+B,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,CAAC,GACnE,aAAa,EAAE,CAgCjB"}
@@ -1,214 +0,0 @@
1
- import { type ActionBinding } from '@rippling/pebble-sdui-web';
2
- import { FunctionResponse, type FunctionContext, type FunctionResponseOptions, type SduiPageFunctionEvent } from "../../../../functions.js";
3
- type TypedSduiStatePathPrefix<TPrefix extends string, TKey extends string> = `${TPrefix}/${TKey}`;
4
- type TypedSduiPathKeys<TValue> = Extract<keyof TValue, string>;
5
- type TypedSduiStatePathInner<TValue, TPrefix extends string> = {
6
- readonly [TKey in TypedSduiPathKeys<TValue>]: TValue[TKey] extends readonly unknown[] ? TypedSduiStatePathPrefix<TPrefix, TKey> : TValue[TKey] extends Record<string, unknown> ? TypedSduiStatePathPrefix<TPrefix, TKey> | TypedSduiStatePathInner<TValue[TKey], TypedSduiStatePathPrefix<TPrefix, TKey>> : TypedSduiStatePathPrefix<TPrefix, TKey>;
7
- }[TypedSduiPathKeys<TValue>];
8
- type TypedSduiStatePathValueInner<TValue, TSegments extends string> = TSegments extends (`${infer THead}/${infer TRest}`) ? THead extends TypedSduiPathKeys<TValue> ? TypedSduiStatePathValueInner<TValue[THead], TRest> : never : TSegments extends TypedSduiPathKeys<TValue> ? TValue[TSegments] : never;
9
- /** JSON-pointer-like state path derived from one SDUI page-state shape. */
10
- export type TypedSduiStatePath<TState> = TypedSduiStatePathInner<TState, ''>;
11
- /** Value type stored at one typed SDUI page-state path. */
12
- export type TypedSduiStatePathValue<TState, TPath extends TypedSduiStatePath<TState>> = TPath extends (`/${infer TSegments}`) ? TypedSduiStatePathValueInner<TState, TSegments> : never;
13
- /** Typed SDUI page-state paths whose values accept `TValue`. */
14
- export type TypedSduiStatePathForValue<TState, TValue> = {
15
- readonly [TPath in TypedSduiStatePath<TState>]: TValue extends TypedSduiStatePathValue<TState, TPath> ? TPath : never;
16
- }[TypedSduiStatePath<TState>];
17
- /** State assignments applied by common SDUI helper actions. */
18
- export type TypedSduiStateAssignments<TState> = Partial<{
19
- readonly [TPath in TypedSduiStatePath<TState>]: TypedSduiStatePathValue<TState, TPath>;
20
- }>;
21
- /** Returns a typed SDUI page-state path resolver that preserves literal path inference. */
22
- export declare function resolveTypedSduiStatePath<TState>(): <TPath extends TypedSduiStatePath<TState>>(path: TPath) => TPath;
23
- /** Returns one typed SDUI page-state assignment map as-is while preserving compile-time validation. */
24
- export declare function defineTypedSduiStateAssignments<TState>(assignments: TypedSduiStateAssignments<TState>): TypedSduiStateAssignments<TState>;
25
- /** Standard output body returned when a function renders one SDUI page spec. */
26
- export interface TypedSduiPageSpecOutput {
27
- /** JSON-serialized SDUI spec payload returned to the platform. */
28
- readonly spec: string;
29
- }
30
- /** Standard error output body for SDUI page functions. */
31
- export interface TypedSduiPageErrorOutput {
32
- /** Human-readable error message surfaced back to the caller. */
33
- readonly error: string;
34
- }
35
- /**
36
- * Common output union for stateful SDUI page functions.
37
- *
38
- * @typeParam TStateUpdate - State payload returned for follow-up actions such as
39
- * partial updates written into a `responsePath`.
40
- */
41
- export type TypedSduiPageOutput<TStateUpdate> = TypedSduiPageSpecOutput | TStateUpdate | TypedSduiPageErrorOutput;
42
- /**
43
- * Serializes one rendered SDUI spec into the standard function output shape.
44
- *
45
- * @param spec - Rendered SDUI spec object that should be JSON-serialized.
46
- * @returns Standard SDUI spec output payload.
47
- */
48
- export declare function createTypedSduiPageSpecOutput<TSpec extends TypedSduiPageSpec>(spec: TSpec): TypedSduiPageSpecOutput;
49
- /**
50
- * Builds one successful SDUI page-function response.
51
- *
52
- * @param body - Response body to return to the platform.
53
- * @param options - Optional response metadata such as status code, headers, or message.
54
- * @returns Typed function response.
55
- * @typeParam TBody - Body shape returned by the function.
56
- */
57
- export declare function createTypedSduiPageResponse<TBody>(body: TBody, options?: Omit<FunctionResponseOptions<TBody>, 'body'>): FunctionResponse<TBody>;
58
- /**
59
- * Builds the standard SDUI page-function response for one rendered page spec.
60
- *
61
- * @param spec - Rendered SDUI spec object that should be JSON-serialized.
62
- * @returns Typed function response containing `body.spec`.
63
- * @typeParam TOutput - Output union that includes the standard spec payload.
64
- */
65
- export declare function createTypedSduiPageSpecResponse<TOutput = TypedSduiPageSpecOutput, TSpec extends TypedSduiPageSpec = TypedSduiPageSpec>(spec: TSpec): FunctionResponse<TOutput>;
66
- /**
67
- * Builds a 400 SDUI page-function error response.
68
- *
69
- * @param message - Human-readable error message.
70
- * @returns Typed function response containing the standard error payload.
71
- * @typeParam TOutput - Output union that includes the standard error payload.
72
- */
73
- export declare function createTypedSduiPageBadRequestResponse<TOutput = TypedSduiPageErrorOutput>(message: string): FunctionResponse<TOutput>;
74
- /**
75
- * Builds a 500 SDUI page-function error response from one thrown value.
76
- *
77
- * @param error - Unknown thrown value that should be normalized to a message.
78
- * @returns Typed function response containing the standard error payload.
79
- * @typeParam TOutput - Output union that includes the standard error payload.
80
- */
81
- export declare function createTypedSduiPageServerErrorResponse<TOutput = TypedSduiPageErrorOutput>(error: unknown): FunctionResponse<TOutput>;
82
- type TypedSduiPageEvent<TParameters extends {
83
- action: string;
84
- }> = Omit<SduiPageFunctionEvent, 'parameters'> & {
85
- readonly parameters: TParameters;
86
- };
87
- export type TypedSduiPageActionName<TParameters extends {
88
- action: string;
89
- }> = TParameters['action'];
90
- export type TypedSduiPageActionParams<TParameters extends {
91
- action: string;
92
- }, TAction extends TypedSduiPageActionName<TParameters>> = Extract<TParameters, {
93
- action: TAction;
94
- }>;
95
- type TypedSduiPageRoleId<TRequireRoleId extends boolean | undefined> = TRequireRoleId extends true ? string : string | undefined;
96
- type TypedSduiPageSpec = object;
97
- type DefaultInitAction<TParameters extends {
98
- action: string;
99
- }> = Extract<TypedSduiPageActionName<TParameters>, 'init'> extends never ? TypedSduiPageActionName<TParameters> : Extract<TypedSduiPageActionName<TParameters>, 'init'>;
100
- type TypedSduiNonInitActionName<TParameters extends {
101
- action: string;
102
- }, TInitAction extends TypedSduiPageActionName<TParameters>> = Exclude<TypedSduiPageActionName<TParameters>, TInitAction>;
103
- type TypedSduiActionHandlerMap<TParameters extends {
104
- action: string;
105
- }, TRuntime, TStateUpdate, TInitAction extends TypedSduiPageActionName<TParameters>, TRequireRoleId extends boolean | undefined> = {
106
- readonly [TAction in TypedSduiNonInitActionName<TParameters, TInitAction>]: (args: TypedSduiPageHandlerArgs<TParameters, TRuntime, TAction, TRequireRoleId>) => TStateUpdate | Promise<TStateUpdate>;
107
- };
108
- /** Shared arguments passed to typed SDUI page handler callbacks. */
109
- export interface TypedSduiPageHandlerArgs<TParameters extends {
110
- action: string;
111
- }, TRuntime, TAction extends TypedSduiPageActionName<TParameters>, TRequireRoleId extends boolean | undefined = false> {
112
- /** Raw SDUI page event supplied by the platform. */
113
- readonly event: TypedSduiPageEvent<TParameters>;
114
- /** Function context supplied by the platform. */
115
- readonly context: FunctionContext;
116
- /** Action-specific parameter payload narrowed by the selected action string. */
117
- readonly params: TypedSduiPageActionParams<TParameters, TAction>;
118
- /** Per-request runtime created once for this handler invocation. */
119
- readonly runtime: TRuntime;
120
- /** Current function role id when present. */
121
- readonly roleId: TypedSduiPageRoleId<TRequireRoleId>;
122
- }
123
- /**
124
- * Initialization properties for {@link defineTypedSduiPageHandler}.
125
- *
126
- * @typeParam TParameters - SDUI page parameter union discriminated by `action`.
127
- * @typeParam TRuntime - Shared runtime created once per invocation.
128
- * @typeParam TStateUpdate - State payload returned for follow-up actions.
129
- * @typeParam TInitAction - Action string that renders the initial SDUI spec.
130
- * @typeParam TRequireRoleId - Whether callback args should require `roleId`.
131
- */
132
- type TypedSduiPageHandlerOptionsBase<TParameters extends {
133
- action: string;
134
- }, TRuntime, TStateUpdate, TInitAction extends TypedSduiPageActionName<TParameters>, TRequireRoleId extends boolean | undefined> = {
135
- /** Whether the handler should reject requests without `context.function.role_id`. */
136
- readonly requireRoleId?: TRequireRoleId;
137
- /** Error message used when `requireRoleId` is true but no role id is present. */
138
- readonly missingRoleIdMessage?: string;
139
- /** Creates one shared runtime object for this invocation. */
140
- readonly createRuntime: (context: FunctionContext) => TRuntime | Promise<TRuntime>;
141
- /** Renders the initial SDUI page spec for the selected init action. */
142
- readonly init: (args: TypedSduiPageHandlerArgs<TParameters, TRuntime, TInitAction, TRequireRoleId>) => TypedSduiPageSpec | Promise<TypedSduiPageSpec>;
143
- /** Returns one state update payload for each non-init action. */
144
- readonly actions: TypedSduiActionHandlerMap<TParameters, TRuntime, TStateUpdate, TInitAction, TRequireRoleId>;
145
- /** Optional formatter for the unknown-action bad-request message. */
146
- readonly unknownActionMessage?: (action: string) => string;
147
- };
148
- export type TypedSduiPageHandlerOptions<TParameters extends {
149
- action: string;
150
- }, TRuntime, TStateUpdate = never, TInitAction extends TypedSduiPageActionName<TParameters> = DefaultInitAction<TParameters>, TRequireRoleId extends boolean | undefined = false> = TypedSduiPageHandlerOptionsBase<TParameters, TRuntime, TStateUpdate, TInitAction, TRequireRoleId> & (Extract<TypedSduiPageActionName<TParameters>, 'init'> extends never ?
151
- /** Action string treated as the initial SDUI render request when no literal `init` action exists. */
152
- {
153
- readonly initAction: TInitAction;
154
- } : {
155
- readonly initAction?: TInitAction;
156
- });
157
- type TypedSduiPageHandler<TParameters extends {
158
- action: string;
159
- }, TStateUpdate> = (event: TypedSduiPageEvent<TParameters>, context: FunctionContext) => Promise<FunctionResponse<TypedSduiPageOutput<TStateUpdate>>>;
160
- export declare function defineTypedSduiPageHandler<TParameters extends {
161
- action: string;
162
- }, TRuntime, TStateUpdate = never, TInitAction extends TypedSduiPageActionName<TParameters> = DefaultInitAction<TParameters>>(options: TypedSduiPageHandlerOptions<TParameters, TRuntime, TStateUpdate, TInitAction, true>): TypedSduiPageHandler<TParameters, TStateUpdate>;
163
- export declare function defineTypedSduiPageHandler<TParameters extends {
164
- action: string;
165
- }, TRuntime, TStateUpdate = never, TInitAction extends TypedSduiPageActionName<TParameters> = DefaultInitAction<TParameters>, TRequireRoleId extends boolean | undefined = false>(options: TypedSduiPageHandlerOptions<TParameters, TRuntime, TStateUpdate, TInitAction, TRequireRoleId>): TypedSduiPageHandler<TParameters, TStateUpdate>;
166
- /**
167
- * Creates one parameter-first SDUI page-handler builder that fixes the action
168
- * union and state-update payload up front, then infers the shared runtime type
169
- * from `createRuntime(...)` when the returned builder is called.
170
- *
171
- * This is the intended golden path for normal page-function authoring: specify
172
- * the discriminated input union and returned state payload once, then let the
173
- * runtime object and `requireRoleId` behavior infer from the provided options.
174
- *
175
- * @returns Builder that accepts typed SDUI page-handler options.
176
- * @typeParam TParameters - SDUI page parameter union discriminated by `action`.
177
- * @typeParam TStateUpdate - State payload returned for follow-up actions.
178
- */
179
- export declare function defineTypedSduiPageHandlerFor<TParameters extends {
180
- action: string;
181
- }, TStateUpdate = never>(): <TRuntime, TInitAction extends TypedSduiPageActionName<TParameters> = DefaultInitAction<TParameters>, TRequireRoleId extends boolean | undefined = false>(options: TypedSduiPageHandlerOptions<TParameters, TRuntime, TStateUpdate, TInitAction, TRequireRoleId>) => TypedSduiPageHandler<TParameters, TStateUpdate>;
182
- /**
183
- * Configuration for the standard "set loading state, trigger function, write
184
- * responsePath, then clear loading / error state" SDUI interaction pattern.
185
- *
186
- * @typeParam TState - SDUI page-state shape that owns the referenced state paths.
187
- * @typeParam TResponse - Response payload written into `responsePath`.
188
- * @typeParam TInputs - Server-bound function input payload sent through `triggerFunction(...)`.
189
- */
190
- export interface TypedSduiMutationTriggerOptions<TState, TResponse, TInputs extends {
191
- action: string;
192
- }> {
193
- /** Target function id that should handle the mutation. */
194
- readonly functionId: string;
195
- /** Server-bound input payload forwarded to the function. */
196
- readonly inputs: TInputs;
197
- /** State path that should receive the function response body. */
198
- readonly responsePath: TypedSduiStatePathForValue<TState, TResponse>;
199
- /** Human-readable error message shown when the function call fails. */
200
- readonly errorMessage: string;
201
- /** Optional state assignments applied after a successful mutation. */
202
- readonly onSuccessState?: TypedSduiStateAssignments<TState>;
203
- /** Optional state assignments applied after a failed mutation. */
204
- readonly onErrorState?: TypedSduiStateAssignments<TState>;
205
- /** State path that stores the shared in-flight mutation flag. Defaults to `/isMutating`. */
206
- readonly mutationStatePath?: TypedSduiStatePathForValue<TState, boolean>;
207
- /** State path that stores the visible error message. Defaults to `/errorMessage`. */
208
- readonly errorStatePath?: TypedSduiStatePathForValue<TState, string>;
209
- }
210
- export declare function createTypedSduiMutationTrigger<TState, TResponse, TInputs extends {
211
- action: string;
212
- }>(options: TypedSduiMutationTriggerOptions<TState, TResponse, TInputs>): ActionBinding[];
213
- export {};
214
- //# sourceMappingURL=sdui-page.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sdui-page.d.ts","sourceRoot":"","sources":["../../../../src/core/platform/manifest/custom-objects/sdui-page.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,aAAa,EAAsB,M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