@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,369 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.formula = void 0;
4
- exports.nativeModel = nativeModel;
5
- exports.text = text;
6
- exports.longText = longText;
7
- exports.email = email;
8
- exports.url = url;
9
- exports.phone = phone;
10
- exports.number = number;
11
- exports.currency = currency;
12
- exports.percentage = percentage;
13
- exports.date = date;
14
- exports.datetime = datetime;
15
- exports.time = time;
16
- exports.select = select;
17
- exports.radio = radio;
18
- exports.boolean = boolean;
19
- exports.file = file;
20
- exports.lookup = lookup;
21
- exports.parentChild = parentChild;
22
- exports.sections = sections;
23
- /**
24
- * Freezes a field definition so reusable fragments stay immutable at runtime.
25
- *
26
- * @typeParam TField - Concrete field definition being frozen.
27
- */
28
- /**
29
- * Freezes one field definition fragment before returning it to callers.
30
- *
31
- * @param field - Concrete field definition to freeze.
32
- * @returns The same field definition, frozen for safe reuse.
33
- * @typeParam TField - Concrete field definition being frozen.
34
- */
35
- function freezeField(field) {
36
- return Object.freeze(field);
37
- }
38
- /**
39
- * Normalizes an optional required flag into the literal type expected by field definitions.
40
- *
41
- * @typeParam TRequired - Literal boolean requested by the caller.
42
- */
43
- /**
44
- * Normalizes an optional `required` flag into the literal boolean type used by field definitions.
45
- *
46
- * @param required - Optional literal required flag supplied by the caller.
47
- * @returns Normalized required flag, defaulting to `false`.
48
- * @typeParam TRequired - Literal boolean requested by the caller.
49
- */
50
- function normalizeRequired(required) {
51
- return (required ?? false);
52
- }
53
- /**
54
- * Declares a native Rippling model target for lookup fields.
55
- *
56
- * @param apiName - Native model API name, for example `'Employee'`.
57
- * @returns Immutable native-model target descriptor for lookup fields.
58
- * @typeParam TApiName - Native model api name, for example `'Employee'`.
59
- */
60
- function nativeModel(apiName) {
61
- return Object.freeze({ kind: 'native-model-target', apiName });
62
- }
63
- /**
64
- * Defines a single-line text field.
65
- *
66
- * @param props - Text-field metadata and presentation properties.
67
- * @returns Immutable text field definition.
68
- * @typeParam TRequired - Whether the field is required during record creation.
69
- * @typeParam TSectionKey - Allowed section-key union for the enclosing object.
70
- */
71
- function text(props) {
72
- return freezeField({ kind: 'text', required: normalizeRequired(props.required), writable: true, ...props });
73
- }
74
- /**
75
- * Defines a multi-line text field.
76
- *
77
- * @param props - Long-text field metadata and presentation properties.
78
- * @returns Immutable long-text field definition.
79
- * @typeParam TRequired - Whether the field is required during record creation.
80
- * @typeParam TSectionKey - Allowed section-key union for the enclosing object.
81
- */
82
- function longText(props) {
83
- return freezeField({
84
- kind: 'long-text',
85
- required: normalizeRequired(props.required),
86
- writable: true,
87
- ...props,
88
- });
89
- }
90
- /**
91
- * Defines an email-address field.
92
- *
93
- * @param props - Email-field metadata and presentation properties.
94
- * @returns Immutable email field definition.
95
- * @typeParam TRequired - Whether the field is required during record creation.
96
- * @typeParam TSectionKey - Allowed section-key union for the enclosing object.
97
- */
98
- function email(props) {
99
- return freezeField({
100
- kind: 'email',
101
- required: normalizeRequired(props.required),
102
- writable: true,
103
- ...props,
104
- });
105
- }
106
- /**
107
- * Defines a URL field.
108
- *
109
- * @param props - URL-field metadata and presentation properties.
110
- * @returns Immutable URL field definition.
111
- * @typeParam TRequired - Whether the field is required during record creation.
112
- * @typeParam TSectionKey - Allowed section-key union for the enclosing object.
113
- */
114
- function url(props) {
115
- return freezeField({ kind: 'url', required: normalizeRequired(props.required), writable: true, ...props });
116
- }
117
- /**
118
- * Defines a phone-number field.
119
- *
120
- * @param props - Phone-field metadata and presentation properties.
121
- * @returns Immutable phone field definition.
122
- * @typeParam TRequired - Whether the field is required during record creation.
123
- * @typeParam TSectionKey - Allowed section-key union for the enclosing object.
124
- */
125
- function phone(props) {
126
- return freezeField({
127
- kind: 'phone',
128
- required: normalizeRequired(props.required),
129
- writable: true,
130
- ...props,
131
- });
132
- }
133
- /**
134
- * Defines a numeric field.
135
- *
136
- * @param props - Number-field metadata and presentation properties.
137
- * @returns Immutable number field definition.
138
- * @typeParam TRequired - Whether the field is required during record creation.
139
- * @typeParam TSectionKey - Allowed section-key union for the enclosing object.
140
- */
141
- function number(props) {
142
- return freezeField({
143
- kind: 'number',
144
- required: normalizeRequired(props.required),
145
- writable: true,
146
- ...props,
147
- });
148
- }
149
- /**
150
- * Defines a currency field.
151
- *
152
- * @param props - Currency-field metadata and presentation properties.
153
- * @returns Immutable currency field definition.
154
- * @typeParam TRequired - Whether the field is required during record creation.
155
- * @typeParam TSectionKey - Allowed section-key union for the enclosing object.
156
- */
157
- function currency(props) {
158
- return freezeField({
159
- kind: 'currency',
160
- required: normalizeRequired(props.required),
161
- writable: true,
162
- ...props,
163
- });
164
- }
165
- /**
166
- * Defines a percentage field.
167
- *
168
- * @param props - Percentage-field metadata and presentation properties.
169
- * @returns Immutable percentage field definition.
170
- * @typeParam TRequired - Whether the field is required during record creation.
171
- * @typeParam TSectionKey - Allowed section-key union for the enclosing object.
172
- */
173
- function percentage(props) {
174
- return freezeField({
175
- kind: 'percentage',
176
- required: normalizeRequired(props.required),
177
- writable: true,
178
- ...props,
179
- });
180
- }
181
- /**
182
- * Defines a date-only field.
183
- *
184
- * @param props - Date-field metadata and presentation properties.
185
- * @returns Immutable date field definition.
186
- * @typeParam TRequired - Whether the field is required during record creation.
187
- * @typeParam TSectionKey - Allowed section-key union for the enclosing object.
188
- */
189
- function date(props) {
190
- return freezeField({ kind: 'date', required: normalizeRequired(props.required), writable: true, ...props });
191
- }
192
- /**
193
- * Defines a date-time field.
194
- *
195
- * @param props - Datetime-field metadata and presentation properties.
196
- * @returns Immutable datetime field definition.
197
- * @typeParam TRequired - Whether the field is required during record creation.
198
- * @typeParam TSectionKey - Allowed section-key union for the enclosing object.
199
- */
200
- function datetime(props) {
201
- return freezeField({
202
- kind: 'datetime',
203
- required: normalizeRequired(props.required),
204
- writable: true,
205
- ...props,
206
- });
207
- }
208
- /**
209
- * Defines a time-of-day field.
210
- *
211
- * @param props - Time-field metadata and presentation properties.
212
- * @returns Immutable time field definition.
213
- * @typeParam TRequired - Whether the field is required during record creation.
214
- * @typeParam TSectionKey - Allowed section-key union for the enclosing object.
215
- */
216
- function time(props) {
217
- return freezeField({ kind: 'time', required: normalizeRequired(props.required), writable: true, ...props });
218
- }
219
- /**
220
- * Defines a multi-select choice field.
221
- *
222
- * @param props - Multi-select field metadata and presentation properties.
223
- * @returns Immutable multi-select field definition.
224
- * @typeParam TRequired - Whether the field is required during record creation.
225
- * @typeParam TSectionKey - Allowed section-key union for the enclosing object.
226
- */
227
- function select(props) {
228
- return freezeField({
229
- kind: 'select',
230
- required: normalizeRequired(props.required),
231
- writable: true,
232
- ...props,
233
- });
234
- }
235
- /**
236
- * Defines a single-select radio field.
237
- *
238
- * @param props - Radio-field metadata and presentation properties.
239
- * @returns Immutable radio field definition.
240
- * @typeParam TRequired - Whether the field is required during record creation.
241
- * @typeParam TSectionKey - Allowed section-key union for the enclosing object.
242
- */
243
- function radio(props) {
244
- return freezeField({
245
- kind: 'radio',
246
- required: normalizeRequired(props.required),
247
- writable: true,
248
- ...props,
249
- });
250
- }
251
- /**
252
- * Defines a boolean field.
253
- *
254
- * @param props - Boolean-field metadata and presentation properties.
255
- * @returns Immutable boolean field definition.
256
- * @typeParam TRequired - Whether the field is required during record creation.
257
- * @typeParam TSectionKey - Allowed section-key union for the enclosing object.
258
- */
259
- function boolean(props) {
260
- return freezeField({
261
- kind: 'boolean',
262
- required: normalizeRequired(props.required),
263
- writable: true,
264
- ...props,
265
- });
266
- }
267
- /**
268
- * Defines a file attachment field.
269
- *
270
- * @param props - File-field metadata and presentation properties.
271
- * @returns Immutable file field definition.
272
- * @typeParam TRequired - Whether the field is required during record creation.
273
- * @typeParam TSectionKey - Allowed section-key union for the enclosing object.
274
- */
275
- function file(props) {
276
- return freezeField({ kind: 'file', required: normalizeRequired(props.required), writable: true, ...props });
277
- }
278
- /**
279
- * Defines a many-to-one lookup field.
280
- *
281
- * @param target - Target object or native model referenced by the lookup.
282
- * @param props - Lookup-field metadata and presentation properties.
283
- * @returns Immutable lookup field definition.
284
- * @typeParam TTarget - Target object or native model referenced by the lookup.
285
- * @typeParam TRequired - Whether the lookup is required during record creation.
286
- * @typeParam TSectionKey - Allowed section-key union for the enclosing object.
287
- */
288
- function lookup(target, props) {
289
- return freezeField({
290
- kind: 'lookup',
291
- target,
292
- targetApiName: target.apiName,
293
- required: normalizeRequired(props.required),
294
- writable: true,
295
- ...props,
296
- });
297
- }
298
- /**
299
- * Defines a parent-child relationship field.
300
- *
301
- * @param target - Parent object definition referenced by the relationship.
302
- * @param props - Parent-child field metadata and presentation properties.
303
- * @returns Immutable parent-child field definition.
304
- * @typeParam TTarget - Parent object definition referenced by the relationship.
305
- * @typeParam TSectionKey - Allowed section-key union for the enclosing object.
306
- */
307
- function parentChild(target, props) {
308
- return freezeField({
309
- kind: 'parent-child',
310
- target,
311
- targetApiName: target.apiName,
312
- required: true,
313
- writable: true,
314
- ...props,
315
- });
316
- }
317
- /**
318
- * Shared implementation for the public formula helpers.
319
- *
320
- * @typeParam TKind - Concrete formula-field discriminant.
321
- * @typeParam TSectionKey - Allowed section-key union for the enclosing object.
322
- */
323
- /**
324
- * Builds one immutable read-only formula field definition.
325
- *
326
- * @param kind - Concrete formula-field discriminant to produce.
327
- * @param props - Formula metadata and presentation properties.
328
- * @returns Immutable formula field definition.
329
- * @typeParam TKind - Concrete formula-field discriminant.
330
- * @typeParam TSectionKey - Allowed section-key union for the enclosing object.
331
- */
332
- function formulaField(kind, props) {
333
- return freezeField({ ...props, kind, writable: false, required: false });
334
- }
335
- /** Typed helpers for read-only formula fields. */
336
- exports.formula = Object.freeze({
337
- text(props) {
338
- return formulaField('formula-text', props);
339
- },
340
- number(props) {
341
- return formulaField('formula-number', props);
342
- },
343
- boolean(props) {
344
- return formulaField('formula-boolean', props);
345
- },
346
- currency(props) {
347
- return formulaField('formula-currency', props);
348
- },
349
- percentage(props) {
350
- return formulaField('formula-percentage', props);
351
- },
352
- date(props) {
353
- return formulaField('formula-date', props);
354
- },
355
- url(props) {
356
- return formulaField('formula-url', props);
357
- },
358
- });
359
- /**
360
- * Immutable helper for authoring section maps in reusable fragments.
361
- *
362
- * @param definitions - Section definitions to freeze and preserve as-is.
363
- * @returns Frozen section-definition map retaining the caller's key/value types.
364
- * @typeParam TSections - Concrete section map to preserve in the returned value.
365
- */
366
- function sections(definitions) {
367
- return Object.freeze({ ...definitions });
368
- }
369
- //# sourceMappingURL=fields.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../src/core/platform/custom-objects/fields.ts"],"names":[],"mappings":";;;AA4HA,kCAEC;AAUD,oBAQC;AAUD,4BAaC;AAUD,sBAaC;AAUD,kBAOC;AAUD,sBAYC;AAUD,wBAYC;AAUD,4BAaC;AAUD,gCAYC;AAUD,oBAOC;AAUD,4BAYC;AAUD,oBAOC;AAUD,wBAYC;AAUD,sBAYC;AAUD,0BAYC;AAUD,oBAQC;AAYD,wBAoBC;AAWD,kCAoBC;AAqJD,4BAIC;AAvjBD;;;;GAIG;AACH;;;;;;GAMG;AACH,SAAS,WAAW,CAAoC,KAAa;IACnE,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC9B,CAAC;AAED;;;;GAIG;AACH;;;;;;GAMG;AACH,SAAS,iBAAiB,CAA4B,QAA+B;IACnF,OAAO,CAAC,QAAQ,IAAI,KAAK,CAAc,CAAC;AAC1C,CAAC;AAED;;;;;;GAMG;AACH,SAAgB,WAAW,CAA0B,OAAiB;IACpE,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,qBAAqB,EAAE,OAAO,EAAE,CAAC,CAAC;AACjE,CAAC;AAED;;;;;;;GAOG;AACH,SAAgB,IAAI,CAIlB,KACuG;IAEvG,OAAO,WAAW,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,iBAAiB,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC;AAC9G,CAAC;AAED;;;;;;;GAOG;AACH,SAAgB,QAAQ,CAItB,KAC4E;IAE5E,OAAO,WAAW,CAAC;QACjB,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,i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