@rippling/rippling-sdk 0.2.0-alpha.109 → 0.2.0-alpha.111

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 (791) hide show
  1. package/client.d.mts +69 -7
  2. package/client.d.mts.map +1 -1
  3. package/client.d.ts +69 -7
  4. package/client.d.ts.map +1 -1
  5. package/client.js +69 -3
  6. package/client.js.map +1 -1
  7. package/client.mjs +69 -3
  8. package/client.mjs.map +1 -1
  9. package/core/platform/custom-objects/manager.d.mts +43 -23
  10. package/core/platform/custom-objects/manager.d.mts.map +1 -1
  11. package/core/platform/custom-objects/manager.d.ts +43 -23
  12. package/core/platform/custom-objects/manager.d.ts.map +1 -1
  13. package/core/platform/custom-objects/manager.js +21 -17
  14. package/core/platform/custom-objects/manager.js.map +1 -1
  15. package/core/platform/custom-objects/manager.mjs +21 -17
  16. package/core/platform/custom-objects/manager.mjs.map +1 -1
  17. package/core/platform/custom-objects.d.mts +1 -1
  18. package/core/platform/custom-objects.d.mts.map +1 -1
  19. package/core/platform/custom-objects.d.ts +1 -1
  20. package/core/platform/custom-objects.d.ts.map +1 -1
  21. package/core/platform/custom-objects.js.map +1 -1
  22. package/core/platform/custom-objects.mjs.map +1 -1
  23. package/examples/manifest/acp-agent/acp-agent.ts +27 -23
  24. package/index.d.mts +5 -0
  25. package/index.d.mts.map +1 -1
  26. package/index.d.ts +5 -0
  27. package/index.d.ts.map +1 -1
  28. package/index.js +11 -1
  29. package/index.js.map +1 -1
  30. package/index.mjs +5 -0
  31. package/index.mjs.map +1 -1
  32. package/lib/manifest/acp-agent.d.mts +1 -1
  33. package/lib/manifest/acp-agent.d.mts.map +1 -1
  34. package/lib/manifest/acp-agent.d.ts +1 -1
  35. package/lib/manifest/acp-agent.d.ts.map +1 -1
  36. package/lib/manifest/acp-agent.js +6 -0
  37. package/lib/manifest/acp-agent.js.map +1 -1
  38. package/lib/manifest/acp-agent.mjs +6 -0
  39. package/lib/manifest/acp-agent.mjs.map +1 -1
  40. package/lib/manifest/composition.d.mts +21 -0
  41. package/lib/manifest/composition.d.mts.map +1 -0
  42. package/lib/manifest/composition.d.ts +21 -0
  43. package/lib/manifest/composition.d.ts.map +1 -0
  44. package/lib/manifest/composition.js +103 -0
  45. package/lib/manifest/composition.js.map +1 -0
  46. package/lib/manifest/composition.mjs +99 -0
  47. package/lib/manifest/composition.mjs.map +1 -0
  48. package/lib/manifest/definitions/_object-records.d.mts +23 -0
  49. package/lib/manifest/definitions/_object-records.d.mts.map +1 -0
  50. package/lib/manifest/definitions/_object-records.d.ts +23 -0
  51. package/lib/manifest/definitions/_object-records.d.ts.map +1 -0
  52. package/lib/manifest/definitions/_object-records.js +153 -0
  53. package/lib/manifest/definitions/_object-records.js.map +1 -0
  54. package/lib/manifest/definitions/_object-records.mjs +149 -0
  55. package/lib/manifest/definitions/_object-records.mjs.map +1 -0
  56. package/lib/manifest/definitions/action.d.mts +7 -0
  57. package/lib/manifest/definitions/action.d.mts.map +1 -0
  58. package/lib/manifest/definitions/action.d.ts +7 -0
  59. package/lib/manifest/definitions/action.d.ts.map +1 -0
  60. package/lib/manifest/definitions/action.js +25 -0
  61. package/lib/manifest/definitions/action.js.map +1 -0
  62. package/lib/manifest/definitions/action.mjs +22 -0
  63. package/lib/manifest/definitions/action.mjs.map +1 -0
  64. package/lib/manifest/definitions/agent.d.mts +51 -0
  65. package/lib/manifest/definitions/agent.d.mts.map +1 -0
  66. package/lib/manifest/definitions/agent.d.ts +51 -0
  67. package/lib/manifest/definitions/agent.d.ts.map +1 -0
  68. package/lib/manifest/definitions/agent.js +65 -0
  69. package/lib/manifest/definitions/agent.js.map +1 -0
  70. package/lib/manifest/definitions/agent.mjs +59 -0
  71. package/lib/manifest/definitions/agent.mjs.map +1 -0
  72. package/lib/manifest/definitions/app.d.mts +3 -0
  73. package/lib/manifest/definitions/app.d.mts.map +1 -0
  74. package/lib/manifest/definitions/app.d.ts +3 -0
  75. package/lib/manifest/definitions/app.d.ts.map +1 -0
  76. package/lib/manifest/definitions/app.js +14 -0
  77. package/lib/manifest/definitions/app.js.map +1 -0
  78. package/lib/manifest/definitions/app.mjs +11 -0
  79. package/lib/manifest/definitions/app.mjs.map +1 -0
  80. package/lib/manifest/definitions/category.d.mts +9 -0
  81. package/lib/manifest/definitions/category.d.mts.map +1 -0
  82. package/lib/manifest/definitions/category.d.ts +9 -0
  83. package/lib/manifest/definitions/category.d.ts.map +1 -0
  84. package/lib/manifest/definitions/category.js +27 -0
  85. package/lib/manifest/definitions/category.js.map +1 -0
  86. package/lib/manifest/definitions/category.mjs +23 -0
  87. package/lib/manifest/definitions/category.mjs.map +1 -0
  88. package/lib/manifest/definitions/component.d.mts +101 -0
  89. package/lib/manifest/definitions/component.d.mts.map +1 -0
  90. package/lib/manifest/definitions/component.d.ts +101 -0
  91. package/lib/manifest/definitions/component.d.ts.map +1 -0
  92. package/lib/manifest/definitions/component.js +106 -0
  93. package/lib/manifest/definitions/component.js.map +1 -0
  94. package/lib/manifest/definitions/component.mjs +97 -0
  95. package/lib/manifest/definitions/component.mjs.map +1 -0
  96. package/lib/manifest/definitions/custom-field-section.d.mts +13 -0
  97. package/lib/manifest/definitions/custom-field-section.d.mts.map +1 -0
  98. package/lib/manifest/definitions/custom-field-section.d.ts +13 -0
  99. package/lib/manifest/definitions/custom-field-section.d.ts.map +1 -0
  100. package/lib/manifest/definitions/custom-field-section.js +15 -0
  101. package/lib/manifest/definitions/custom-field-section.js.map +1 -0
  102. package/lib/manifest/definitions/custom-field-section.mjs +12 -0
  103. package/lib/manifest/definitions/custom-field-section.mjs.map +1 -0
  104. package/lib/manifest/definitions/custom-field.d.mts +10 -0
  105. package/lib/manifest/definitions/custom-field.d.mts.map +1 -0
  106. package/lib/manifest/definitions/custom-field.d.ts +10 -0
  107. package/lib/manifest/definitions/custom-field.d.ts.map +1 -0
  108. package/lib/manifest/definitions/custom-field.js +18 -0
  109. package/lib/manifest/definitions/custom-field.js.map +1 -0
  110. package/lib/manifest/definitions/custom-field.mjs +15 -0
  111. package/lib/manifest/definitions/custom-field.mjs.map +1 -0
  112. package/lib/manifest/definitions/custom-object.d.mts +162 -0
  113. package/lib/manifest/definitions/custom-object.d.mts.map +1 -0
  114. package/lib/manifest/definitions/custom-object.d.ts +162 -0
  115. package/lib/manifest/definitions/custom-object.d.ts.map +1 -0
  116. package/lib/manifest/definitions/custom-object.js +412 -0
  117. package/lib/manifest/definitions/custom-object.js.map +1 -0
  118. package/lib/manifest/definitions/custom-object.mjs +386 -0
  119. package/lib/manifest/definitions/custom-object.mjs.map +1 -0
  120. package/lib/manifest/definitions/custom-skill.d.mts +8 -0
  121. package/lib/manifest/definitions/custom-skill.d.mts.map +1 -0
  122. package/lib/manifest/definitions/custom-skill.d.ts +8 -0
  123. package/lib/manifest/definitions/custom-skill.d.ts.map +1 -0
  124. package/lib/manifest/definitions/custom-skill.js +15 -0
  125. package/lib/manifest/definitions/custom-skill.js.map +1 -0
  126. package/lib/manifest/definitions/custom-skill.mjs +12 -0
  127. package/lib/manifest/definitions/custom-skill.mjs.map +1 -0
  128. package/lib/manifest/definitions/field-section.d.mts +7 -0
  129. package/lib/manifest/definitions/field-section.d.mts.map +1 -0
  130. package/lib/manifest/definitions/field-section.d.ts +7 -0
  131. package/lib/manifest/definitions/field-section.d.ts.map +1 -0
  132. package/lib/manifest/definitions/field-section.js +16 -0
  133. package/lib/manifest/definitions/field-section.js.map +1 -0
  134. package/lib/manifest/definitions/field-section.mjs +13 -0
  135. package/lib/manifest/definitions/field-section.mjs.map +1 -0
  136. package/lib/manifest/definitions/field.d.mts +38 -0
  137. package/lib/manifest/definitions/field.d.mts.map +1 -0
  138. package/lib/manifest/definitions/field.d.ts +38 -0
  139. package/lib/manifest/definitions/field.d.ts.map +1 -0
  140. package/lib/manifest/definitions/field.js +50 -0
  141. package/lib/manifest/definitions/field.js.map +1 -0
  142. package/lib/manifest/definitions/field.mjs +45 -0
  143. package/lib/manifest/definitions/field.mjs.map +1 -0
  144. package/lib/manifest/definitions/function.d.mts +61 -0
  145. package/lib/manifest/definitions/function.d.mts.map +1 -0
  146. package/lib/manifest/definitions/function.d.ts +61 -0
  147. package/lib/manifest/definitions/function.d.ts.map +1 -0
  148. package/lib/manifest/definitions/function.js +79 -0
  149. package/lib/manifest/definitions/function.js.map +1 -0
  150. package/lib/manifest/definitions/function.mjs +73 -0
  151. package/lib/manifest/definitions/function.mjs.map +1 -0
  152. package/lib/manifest/definitions/index.d.mts +22 -0
  153. package/lib/manifest/definitions/index.d.mts.map +1 -0
  154. package/lib/manifest/definitions/index.d.ts +22 -0
  155. package/lib/manifest/definitions/index.d.ts.map +1 -0
  156. package/lib/manifest/definitions/index.js +64 -0
  157. package/lib/manifest/definitions/index.js.map +1 -0
  158. package/lib/manifest/definitions/index.mjs +22 -0
  159. package/lib/manifest/definitions/index.mjs.map +1 -0
  160. package/lib/manifest/definitions/list-view.d.mts +9 -0
  161. package/lib/manifest/definitions/list-view.d.mts.map +1 -0
  162. package/lib/manifest/definitions/list-view.d.ts +9 -0
  163. package/lib/manifest/definitions/list-view.d.ts.map +1 -0
  164. package/lib/manifest/definitions/list-view.js +25 -0
  165. package/lib/manifest/definitions/list-view.js.map +1 -0
  166. package/lib/manifest/definitions/list-view.mjs +22 -0
  167. package/lib/manifest/definitions/list-view.mjs.map +1 -0
  168. package/lib/manifest/definitions/object-search-config.d.mts +13 -0
  169. package/lib/manifest/definitions/object-search-config.d.mts.map +1 -0
  170. package/lib/manifest/definitions/object-search-config.d.ts +13 -0
  171. package/lib/manifest/definitions/object-search-config.d.ts.map +1 -0
  172. package/lib/manifest/definitions/object-search-config.js +25 -0
  173. package/lib/manifest/definitions/object-search-config.js.map +1 -0
  174. package/lib/manifest/definitions/object-search-config.mjs +22 -0
  175. package/lib/manifest/definitions/object-search-config.mjs.map +1 -0
  176. package/lib/manifest/definitions/object-settings.d.mts +24 -0
  177. package/lib/manifest/definitions/object-settings.d.mts.map +1 -0
  178. package/lib/manifest/definitions/object-settings.d.ts +24 -0
  179. package/lib/manifest/definitions/object-settings.d.ts.map +1 -0
  180. package/lib/manifest/definitions/object-settings.js +32 -0
  181. package/lib/manifest/definitions/object-settings.js.map +1 -0
  182. package/lib/manifest/definitions/object-settings.mjs +29 -0
  183. package/lib/manifest/definitions/object-settings.mjs.map +1 -0
  184. package/lib/manifest/definitions/page-layout.d.mts +21 -0
  185. package/lib/manifest/definitions/page-layout.d.mts.map +1 -0
  186. package/lib/manifest/definitions/page-layout.d.ts +21 -0
  187. package/lib/manifest/definitions/page-layout.d.ts.map +1 -0
  188. package/lib/manifest/definitions/page-layout.js +155 -0
  189. package/lib/manifest/definitions/page-layout.js.map +1 -0
  190. package/lib/manifest/definitions/page-layout.mjs +152 -0
  191. package/lib/manifest/definitions/page-layout.mjs.map +1 -0
  192. package/lib/manifest/definitions/page.d.mts +8 -0
  193. package/lib/manifest/definitions/page.d.mts.map +1 -0
  194. package/lib/manifest/definitions/page.d.ts +8 -0
  195. package/lib/manifest/definitions/page.d.ts.map +1 -0
  196. package/lib/manifest/definitions/page.js +15 -0
  197. package/lib/manifest/definitions/page.js.map +1 -0
  198. package/lib/manifest/definitions/page.mjs +12 -0
  199. package/lib/manifest/definitions/page.mjs.map +1 -0
  200. package/lib/manifest/definitions/record-triggered-flow.d.mts +24 -0
  201. package/lib/manifest/definitions/record-triggered-flow.d.mts.map +1 -0
  202. package/lib/manifest/definitions/record-triggered-flow.d.ts +24 -0
  203. package/lib/manifest/definitions/record-triggered-flow.d.ts.map +1 -0
  204. package/lib/manifest/definitions/record-triggered-flow.js +28 -0
  205. package/lib/manifest/definitions/record-triggered-flow.js.map +1 -0
  206. package/lib/manifest/definitions/record-triggered-flow.mjs +25 -0
  207. package/lib/manifest/definitions/record-triggered-flow.mjs.map +1 -0
  208. package/lib/manifest/definitions/validation.d.mts +8 -0
  209. package/lib/manifest/definitions/validation.d.mts.map +1 -0
  210. package/lib/manifest/definitions/validation.d.ts +8 -0
  211. package/lib/manifest/definitions/validation.d.ts.map +1 -0
  212. package/lib/manifest/definitions/validation.js +24 -0
  213. package/lib/manifest/definitions/validation.js.map +1 -0
  214. package/lib/manifest/definitions/validation.mjs +21 -0
  215. package/lib/manifest/definitions/validation.mjs.map +1 -0
  216. package/lib/manifest/definitions/workflow.d.mts +10 -0
  217. package/lib/manifest/definitions/workflow.d.mts.map +1 -0
  218. package/lib/manifest/definitions/workflow.d.ts +10 -0
  219. package/lib/manifest/definitions/workflow.d.ts.map +1 -0
  220. package/lib/manifest/definitions/workflow.js +33 -0
  221. package/lib/manifest/definitions/workflow.js.map +1 -0
  222. package/lib/manifest/definitions/workflow.mjs +29 -0
  223. package/lib/manifest/definitions/workflow.mjs.map +1 -0
  224. package/lib/manifest/index.d.mts +3 -0
  225. package/lib/manifest/index.d.mts.map +1 -1
  226. package/lib/manifest/index.d.ts +3 -0
  227. package/lib/manifest/index.d.ts.map +1 -1
  228. package/lib/manifest/index.js +4 -0
  229. package/lib/manifest/index.js.map +1 -1
  230. package/lib/manifest/index.mjs +3 -0
  231. package/lib/manifest/index.mjs.map +1 -1
  232. package/lib/manifest/package-manifest.d.mts +17 -0
  233. package/lib/manifest/package-manifest.d.mts.map +1 -0
  234. package/lib/manifest/package-manifest.d.ts +17 -0
  235. package/lib/manifest/package-manifest.d.ts.map +1 -0
  236. package/lib/manifest/package-manifest.js +26 -0
  237. package/lib/manifest/package-manifest.js.map +1 -0
  238. package/lib/manifest/package-manifest.mjs +23 -0
  239. package/lib/manifest/package-manifest.mjs.map +1 -0
  240. package/package.json +1 -1
  241. package/resources/activity-log.d.mts +1 -1
  242. package/resources/activity-log.d.ts +1 -1
  243. package/resources/activity-log.js +1 -1
  244. package/resources/activity-log.mjs +1 -1
  245. package/resources/agents/sessions/messages.d.mts +10 -1
  246. package/resources/agents/sessions/messages.d.mts.map +1 -1
  247. package/resources/agents/sessions/messages.d.ts +10 -1
  248. package/resources/agents/sessions/messages.d.ts.map +1 -1
  249. package/resources/agents/sessions/sessions.d.mts +30 -3
  250. package/resources/agents/sessions/sessions.d.mts.map +1 -1
  251. package/resources/agents/sessions/sessions.d.ts +30 -3
  252. package/resources/agents/sessions/sessions.d.ts.map +1 -1
  253. package/resources/agents/sessions/sessions.js.map +1 -1
  254. package/resources/agents/sessions/sessions.mjs.map +1 -1
  255. package/resources/bills.d.mts +1343 -0
  256. package/resources/bills.d.mts.map +1 -0
  257. package/resources/bills.d.ts +1343 -0
  258. package/resources/bills.d.ts.map +1 -0
  259. package/resources/bills.js +214 -0
  260. package/resources/bills.js.map +1 -0
  261. package/resources/bills.mjs +210 -0
  262. package/resources/bills.mjs.map +1 -0
  263. package/resources/card-transactions.d.mts +607 -49
  264. package/resources/card-transactions.d.mts.map +1 -1
  265. package/resources/card-transactions.d.ts +607 -49
  266. package/resources/card-transactions.d.ts.map +1 -1
  267. package/resources/card-transactions.js +73 -12
  268. package/resources/card-transactions.js.map +1 -1
  269. package/resources/card-transactions.mjs +73 -12
  270. package/resources/card-transactions.mjs.map +1 -1
  271. package/resources/custom-objects/custom-objects.d.mts +39 -3
  272. package/resources/custom-objects/custom-objects.d.mts.map +1 -1
  273. package/resources/custom-objects/custom-objects.d.ts +39 -3
  274. package/resources/custom-objects/custom-objects.d.ts.map +1 -1
  275. package/resources/custom-objects/custom-objects.js +38 -2
  276. package/resources/custom-objects/custom-objects.js.map +1 -1
  277. package/resources/custom-objects/custom-objects.mjs +38 -2
  278. package/resources/custom-objects/custom-objects.mjs.map +1 -1
  279. package/resources/custom-objects/fields.d.mts +44 -0
  280. package/resources/custom-objects/fields.d.mts.map +1 -1
  281. package/resources/custom-objects/fields.d.ts +44 -0
  282. package/resources/custom-objects/fields.d.ts.map +1 -1
  283. package/resources/custom-objects/fields.js +44 -0
  284. package/resources/custom-objects/fields.js.map +1 -1
  285. package/resources/custom-objects/fields.mjs +44 -0
  286. package/resources/custom-objects/fields.mjs.map +1 -1
  287. package/resources/custom-objects/index.d.mts +2 -1
  288. package/resources/custom-objects/index.d.mts.map +1 -1
  289. package/resources/custom-objects/index.d.ts +2 -1
  290. package/resources/custom-objects/index.d.ts.map +1 -1
  291. package/resources/custom-objects/index.js +5 -3
  292. package/resources/custom-objects/index.js.map +1 -1
  293. package/resources/custom-objects/index.mjs +2 -1
  294. package/resources/custom-objects/index.mjs.map +1 -1
  295. package/resources/custom-objects/list-views/capabilities.d.mts +63 -0
  296. package/resources/custom-objects/list-views/capabilities.d.mts.map +1 -0
  297. package/resources/custom-objects/list-views/capabilities.d.ts +63 -0
  298. package/resources/custom-objects/list-views/capabilities.d.ts.map +1 -0
  299. package/resources/custom-objects/list-views/capabilities.js +48 -0
  300. package/resources/custom-objects/list-views/capabilities.js.map +1 -0
  301. package/resources/custom-objects/list-views/capabilities.mjs +44 -0
  302. package/resources/custom-objects/list-views/capabilities.mjs.map +1 -0
  303. package/resources/custom-objects/list-views/default.d.mts +69 -0
  304. package/resources/custom-objects/list-views/default.d.mts.map +1 -0
  305. package/resources/custom-objects/list-views/default.d.ts +69 -0
  306. package/resources/custom-objects/list-views/default.d.ts.map +1 -0
  307. package/resources/custom-objects/list-views/default.js +59 -0
  308. package/resources/custom-objects/list-views/default.js.map +1 -0
  309. package/resources/custom-objects/list-views/default.mjs +55 -0
  310. package/resources/custom-objects/list-views/default.mjs.map +1 -0
  311. package/resources/custom-objects/list-views/index.d.mts +4 -0
  312. package/resources/custom-objects/list-views/index.d.mts.map +1 -0
  313. package/resources/custom-objects/list-views/index.d.ts +4 -0
  314. package/resources/custom-objects/list-views/index.d.ts.map +1 -0
  315. package/resources/custom-objects/list-views/index.js +11 -0
  316. package/resources/custom-objects/list-views/index.js.map +1 -0
  317. package/resources/custom-objects/list-views/index.mjs +5 -0
  318. package/resources/custom-objects/list-views/index.mjs.map +1 -0
  319. package/resources/custom-objects/list-views/list-views.d.mts +806 -0
  320. package/resources/custom-objects/list-views/list-views.d.mts.map +1 -0
  321. package/resources/custom-objects/list-views/list-views.d.ts +806 -0
  322. package/resources/custom-objects/list-views/list-views.d.ts.map +1 -0
  323. package/resources/custom-objects/list-views/list-views.js +314 -0
  324. package/resources/custom-objects/list-views/list-views.js.map +1 -0
  325. package/resources/custom-objects/list-views/list-views.mjs +309 -0
  326. package/resources/custom-objects/list-views/list-views.mjs.map +1 -0
  327. package/resources/custom-objects/list-views.d.mts +2 -0
  328. package/resources/custom-objects/list-views.d.mts.map +1 -0
  329. package/resources/custom-objects/list-views.d.ts +2 -0
  330. package/resources/custom-objects/list-views.d.ts.map +1 -0
  331. package/resources/custom-objects/list-views.js +6 -0
  332. package/resources/custom-objects/list-views.js.map +1 -0
  333. package/resources/custom-objects/list-views.mjs +3 -0
  334. package/resources/custom-objects/list-views.mjs.map +1 -0
  335. package/resources/custom-objects/records/capabilities.d.mts +61 -0
  336. package/resources/custom-objects/records/capabilities.d.mts.map +1 -0
  337. package/resources/custom-objects/records/capabilities.d.ts +61 -0
  338. package/resources/custom-objects/records/capabilities.d.ts.map +1 -0
  339. package/resources/custom-objects/records/capabilities.js +47 -0
  340. package/resources/custom-objects/records/capabilities.js.map +1 -0
  341. package/resources/custom-objects/records/capabilities.mjs +43 -0
  342. package/resources/custom-objects/records/capabilities.mjs.map +1 -0
  343. package/resources/custom-objects/records/index.d.mts +3 -0
  344. package/resources/custom-objects/records/index.d.mts.map +1 -0
  345. package/resources/custom-objects/records/index.d.ts +3 -0
  346. package/resources/custom-objects/records/index.d.ts.map +1 -0
  347. package/resources/custom-objects/records/index.js +9 -0
  348. package/resources/custom-objects/records/index.js.map +1 -0
  349. package/resources/custom-objects/records/index.mjs +4 -0
  350. package/resources/custom-objects/records/index.mjs.map +1 -0
  351. package/resources/custom-objects/records/records.d.mts +787 -0
  352. package/resources/custom-objects/records/records.d.mts.map +1 -0
  353. package/resources/custom-objects/records/records.d.ts +787 -0
  354. package/resources/custom-objects/records/records.d.ts.map +1 -0
  355. package/resources/custom-objects/records/records.js +543 -0
  356. package/resources/custom-objects/records/records.js.map +1 -0
  357. package/resources/custom-objects/records/records.mjs +538 -0
  358. package/resources/custom-objects/records/records.mjs.map +1 -0
  359. package/resources/custom-objects/records.d.mts +1 -561
  360. package/resources/custom-objects/records.d.mts.map +1 -1
  361. package/resources/custom-objects/records.d.ts +1 -561
  362. package/resources/custom-objects/records.d.ts.map +1 -1
  363. package/resources/custom-objects/records.js +2 -444
  364. package/resources/custom-objects/records.js.map +1 -1
  365. package/resources/custom-objects/records.mjs +1 -442
  366. package/resources/custom-objects/records.mjs.map +1 -1
  367. package/resources/devices.d.mts +2 -2
  368. package/resources/devices.d.mts.map +1 -1
  369. package/resources/devices.d.ts +2 -2
  370. package/resources/devices.d.ts.map +1 -1
  371. package/resources/draft-transitions.d.mts +241 -307
  372. package/resources/draft-transitions.d.mts.map +1 -1
  373. package/resources/draft-transitions.d.ts +241 -307
  374. package/resources/draft-transitions.d.ts.map +1 -1
  375. package/resources/draft-transitions.js +49 -23
  376. package/resources/draft-transitions.js.map +1 -1
  377. package/resources/draft-transitions.mjs +49 -23
  378. package/resources/draft-transitions.mjs.map +1 -1
  379. package/resources/employee-documents.d.mts +2 -2
  380. package/resources/employee-documents.d.ts +2 -2
  381. package/resources/{spend-categories.d.mts → finance-categories.d.mts} +21 -18
  382. package/resources/finance-categories.d.mts.map +1 -0
  383. package/resources/{spend-categories.d.ts → finance-categories.d.ts} +21 -18
  384. package/resources/finance-categories.d.ts.map +1 -0
  385. package/resources/{spend-categories.js → finance-categories.js} +14 -11
  386. package/resources/finance-categories.js.map +1 -0
  387. package/resources/{spend-categories.mjs → finance-categories.mjs} +12 -9
  388. package/resources/finance-categories.mjs.map +1 -0
  389. package/resources/finance-vendors.d.mts +154 -0
  390. package/resources/finance-vendors.d.mts.map +1 -0
  391. package/resources/finance-vendors.d.ts +154 -0
  392. package/resources/finance-vendors.d.ts.map +1 -0
  393. package/resources/finance-vendors.js +87 -0
  394. package/resources/finance-vendors.js.map +1 -0
  395. package/resources/finance-vendors.mjs +83 -0
  396. package/resources/finance-vendors.mjs.map +1 -0
  397. package/resources/functions/executions.d.mts +4 -1
  398. package/resources/functions/executions.d.mts.map +1 -1
  399. package/resources/functions/executions.d.ts +4 -1
  400. package/resources/functions/executions.d.ts.map +1 -1
  401. package/resources/functions/executions.js +4 -1
  402. package/resources/functions/executions.js.map +1 -1
  403. package/resources/functions/executions.mjs +4 -1
  404. package/resources/functions/executions.mjs.map +1 -1
  405. package/resources/functions/functions.d.mts +192 -4
  406. package/resources/functions/functions.d.mts.map +1 -1
  407. package/resources/functions/functions.d.ts +192 -4
  408. package/resources/functions/functions.d.ts.map +1 -1
  409. package/resources/functions/functions.js +72 -4
  410. package/resources/functions/functions.js.map +1 -1
  411. package/resources/functions/functions.mjs +72 -4
  412. package/resources/functions/functions.mjs.map +1 -1
  413. package/resources/hire-requirements.d.mts +98 -9
  414. package/resources/hire-requirements.d.mts.map +1 -1
  415. package/resources/hire-requirements.d.ts +98 -9
  416. package/resources/hire-requirements.d.ts.map +1 -1
  417. package/resources/hire-requirements.js +23 -4
  418. package/resources/hire-requirements.js.map +1 -1
  419. package/resources/hire-requirements.mjs +23 -4
  420. package/resources/hire-requirements.mjs.map +1 -1
  421. package/resources/hires.d.mts +1636 -510
  422. package/resources/hires.d.mts.map +1 -1
  423. package/resources/hires.d.ts +1636 -510
  424. package/resources/hires.d.ts.map +1 -1
  425. package/resources/hires.js +10 -4
  426. package/resources/hires.js.map +1 -1
  427. package/resources/hires.mjs +10 -4
  428. package/resources/hires.mjs.map +1 -1
  429. package/resources/index.d.mts +11 -3
  430. package/resources/index.d.mts.map +1 -1
  431. package/resources/index.d.ts +11 -3
  432. package/resources/index.d.ts.map +1 -1
  433. package/resources/index.js +21 -5
  434. package/resources/index.js.map +1 -1
  435. package/resources/index.mjs +9 -1
  436. package/resources/index.mjs.map +1 -1
  437. package/resources/leave-requests.d.mts +11 -2
  438. package/resources/leave-requests.d.mts.map +1 -1
  439. package/resources/leave-requests.d.ts +11 -2
  440. package/resources/leave-requests.d.ts.map +1 -1
  441. package/resources/leave-requests.js +11 -2
  442. package/resources/leave-requests.js.map +1 -1
  443. package/resources/leave-requests.mjs +11 -2
  444. package/resources/leave-requests.mjs.map +1 -1
  445. package/resources/object-categories.d.mts +2 -1
  446. package/resources/object-categories.d.mts.map +1 -1
  447. package/resources/object-categories.d.ts +2 -1
  448. package/resources/object-categories.d.ts.map +1 -1
  449. package/resources/object-categories.js +2 -1
  450. package/resources/object-categories.js.map +1 -1
  451. package/resources/object-categories.mjs +2 -1
  452. package/resources/object-categories.mjs.map +1 -1
  453. package/resources/package-components/extract.d.mts +121 -0
  454. package/resources/package-components/extract.d.mts.map +1 -0
  455. package/resources/package-components/extract.d.ts +121 -0
  456. package/resources/package-components/extract.d.ts.map +1 -0
  457. package/resources/package-components/extract.js +69 -0
  458. package/resources/package-components/extract.js.map +1 -0
  459. package/resources/package-components/extract.mjs +65 -0
  460. package/resources/package-components/extract.mjs.map +1 -0
  461. package/resources/package-components/index.d.mts +4 -0
  462. package/resources/package-components/index.d.mts.map +1 -0
  463. package/resources/package-components/index.d.ts +4 -0
  464. package/resources/package-components/index.d.ts.map +1 -0
  465. package/resources/package-components/index.js +11 -0
  466. package/resources/package-components/index.js.map +1 -0
  467. package/resources/package-components/index.mjs +5 -0
  468. package/resources/package-components/index.mjs.map +1 -0
  469. package/resources/package-components/package-components.d.mts +99 -0
  470. package/resources/package-components/package-components.d.mts.map +1 -0
  471. package/resources/package-components/package-components.d.ts +99 -0
  472. package/resources/package-components/package-components.d.ts.map +1 -0
  473. package/resources/package-components/package-components.js +63 -0
  474. package/resources/package-components/package-components.js.map +1 -0
  475. package/resources/package-components/package-components.mjs +58 -0
  476. package/resources/package-components/package-components.mjs.map +1 -0
  477. package/resources/package-components/types.d.mts +56 -0
  478. package/resources/package-components/types.d.mts.map +1 -0
  479. package/resources/package-components/types.d.ts +56 -0
  480. package/resources/package-components/types.d.ts.map +1 -0
  481. package/resources/package-components/types.js +40 -0
  482. package/resources/package-components/types.js.map +1 -0
  483. package/resources/package-components/types.mjs +36 -0
  484. package/resources/package-components/types.mjs.map +1 -0
  485. package/resources/package-components.d.mts +2 -0
  486. package/resources/package-components.d.mts.map +1 -0
  487. package/resources/package-components.d.ts +2 -0
  488. package/resources/package-components.d.ts.map +1 -0
  489. package/resources/package-components.js +6 -0
  490. package/resources/package-components.js.map +1 -0
  491. package/resources/package-components.mjs +3 -0
  492. package/resources/package-components.mjs.map +1 -0
  493. package/resources/package-installs.d.mts +96 -9
  494. package/resources/package-installs.d.mts.map +1 -1
  495. package/resources/package-installs.d.ts +96 -9
  496. package/resources/package-installs.d.ts.map +1 -1
  497. package/resources/package-installs.js +20 -3
  498. package/resources/package-installs.js.map +1 -1
  499. package/resources/package-installs.mjs +20 -3
  500. package/resources/package-installs.mjs.map +1 -1
  501. package/resources/package-managed-installs.d.mts +104 -7
  502. package/resources/package-managed-installs.d.mts.map +1 -1
  503. package/resources/package-managed-installs.d.ts +104 -7
  504. package/resources/package-managed-installs.d.ts.map +1 -1
  505. package/resources/package-managed-installs.js +22 -3
  506. package/resources/package-managed-installs.js.map +1 -1
  507. package/resources/package-managed-installs.mjs +22 -3
  508. package/resources/package-managed-installs.mjs.map +1 -1
  509. package/resources/package-manifests/index.d.mts +4 -0
  510. package/resources/package-manifests/index.d.mts.map +1 -0
  511. package/resources/package-manifests/index.d.ts +4 -0
  512. package/resources/package-manifests/index.d.ts.map +1 -0
  513. package/resources/package-manifests/index.js +11 -0
  514. package/resources/package-manifests/index.js.map +1 -0
  515. package/resources/package-manifests/index.mjs +5 -0
  516. package/resources/package-manifests/index.mjs.map +1 -0
  517. package/resources/package-manifests/package-manifests.d.mts +14 -0
  518. package/resources/package-manifests/package-manifests.d.mts.map +1 -0
  519. package/resources/package-manifests/package-manifests.d.ts +14 -0
  520. package/resources/package-manifests/package-manifests.d.ts.map +1 -0
  521. package/resources/package-manifests/package-manifests.js +21 -0
  522. package/resources/package-manifests/package-manifests.js.map +1 -0
  523. package/resources/package-manifests/package-manifests.mjs +16 -0
  524. package/resources/package-manifests/package-manifests.mjs.map +1 -0
  525. package/resources/package-manifests/packages/index.d.mts +3 -0
  526. package/resources/package-manifests/packages/index.d.mts.map +1 -0
  527. package/resources/package-manifests/packages/index.d.ts +3 -0
  528. package/resources/package-manifests/packages/index.d.ts.map +1 -0
  529. package/resources/package-manifests/packages/index.js +9 -0
  530. package/resources/package-manifests/packages/index.js.map +1 -0
  531. package/resources/package-manifests/packages/index.mjs +4 -0
  532. package/resources/package-manifests/packages/index.mjs.map +1 -0
  533. package/resources/package-manifests/packages/packages.d.mts +10 -0
  534. package/resources/package-manifests/packages/packages.d.mts.map +1 -0
  535. package/resources/package-manifests/packages/packages.d.ts +10 -0
  536. package/resources/package-manifests/packages/packages.d.ts.map +1 -0
  537. package/resources/package-manifests/packages/packages.js +17 -0
  538. package/resources/package-manifests/packages/packages.js.map +1 -0
  539. package/resources/package-manifests/packages/packages.mjs +12 -0
  540. package/resources/package-manifests/packages/packages.mjs.map +1 -0
  541. package/resources/package-manifests/packages/versions.d.mts +199 -0
  542. package/resources/package-manifests/packages/versions.d.mts.map +1 -0
  543. package/resources/package-manifests/packages/versions.d.ts +199 -0
  544. package/resources/package-manifests/packages/versions.d.ts.map +1 -0
  545. package/resources/package-manifests/packages/versions.js +68 -0
  546. package/resources/package-manifests/packages/versions.js.map +1 -0
  547. package/resources/package-manifests/packages/versions.mjs +64 -0
  548. package/resources/package-manifests/packages/versions.mjs.map +1 -0
  549. package/resources/package-manifests/packages.d.mts +2 -0
  550. package/resources/package-manifests/packages.d.mts.map +1 -0
  551. package/resources/package-manifests/packages.d.ts +2 -0
  552. package/resources/package-manifests/packages.d.ts.map +1 -0
  553. package/resources/package-manifests/packages.js +6 -0
  554. package/resources/package-manifests/packages.js.map +1 -0
  555. package/resources/package-manifests/packages.mjs +3 -0
  556. package/resources/package-manifests/packages.mjs.map +1 -0
  557. package/resources/package-manifests/versions.d.mts +84 -0
  558. package/resources/package-manifests/versions.d.mts.map +1 -0
  559. package/resources/package-manifests/versions.d.ts +84 -0
  560. package/resources/package-manifests/versions.d.ts.map +1 -0
  561. package/resources/package-manifests/versions.js +44 -0
  562. package/resources/package-manifests/versions.js.map +1 -0
  563. package/resources/package-manifests/versions.mjs +40 -0
  564. package/resources/package-manifests/versions.mjs.map +1 -0
  565. package/resources/package-manifests.d.mts +2 -0
  566. package/resources/package-manifests.d.mts.map +1 -0
  567. package/resources/package-manifests.d.ts +2 -0
  568. package/resources/package-manifests.d.ts.map +1 -0
  569. package/resources/package-manifests.js +6 -0
  570. package/resources/package-manifests.js.map +1 -0
  571. package/resources/package-manifests.mjs +3 -0
  572. package/resources/package-manifests.mjs.map +1 -0
  573. package/resources/package-versions/package-versions.d.mts +104 -14
  574. package/resources/package-versions/package-versions.d.mts.map +1 -1
  575. package/resources/package-versions/package-versions.d.ts +104 -14
  576. package/resources/package-versions/package-versions.d.ts.map +1 -1
  577. package/resources/package-versions/package-versions.js +30 -9
  578. package/resources/package-versions/package-versions.js.map +1 -1
  579. package/resources/package-versions/package-versions.mjs +30 -9
  580. package/resources/package-versions/package-versions.mjs.map +1 -1
  581. package/resources/package-versions/publish.d.mts +40 -4
  582. package/resources/package-versions/publish.d.mts.map +1 -1
  583. package/resources/package-versions/publish.d.ts +40 -4
  584. package/resources/package-versions/publish.d.ts.map +1 -1
  585. package/resources/package-versions/publish.js +8 -2
  586. package/resources/package-versions/publish.js.map +1 -1
  587. package/resources/package-versions/publish.mjs +8 -2
  588. package/resources/package-versions/publish.mjs.map +1 -1
  589. package/resources/packages/next-versions.d.mts +40 -4
  590. package/resources/packages/next-versions.d.mts.map +1 -1
  591. package/resources/packages/next-versions.d.ts +40 -4
  592. package/resources/packages/next-versions.d.ts.map +1 -1
  593. package/resources/packages/next-versions.js +8 -2
  594. package/resources/packages/next-versions.js.map +1 -1
  595. package/resources/packages/next-versions.mjs +8 -2
  596. package/resources/packages/next-versions.mjs.map +1 -1
  597. package/resources/packages/versions.d.mts +80 -9
  598. package/resources/packages/versions.d.mts.map +1 -1
  599. package/resources/packages/versions.d.ts +80 -9
  600. package/resources/packages/versions.d.ts.map +1 -1
  601. package/resources/packages/versions.js +16 -5
  602. package/resources/packages/versions.js.map +1 -1
  603. package/resources/packages/versions.mjs +16 -5
  604. package/resources/packages/versions.mjs.map +1 -1
  605. package/resources/payroll-runs/off-cycle.d.mts +17 -9
  606. package/resources/payroll-runs/off-cycle.d.mts.map +1 -1
  607. package/resources/payroll-runs/off-cycle.d.ts +17 -9
  608. package/resources/payroll-runs/off-cycle.d.ts.map +1 -1
  609. package/resources/payroll-runs/off-cycle.js +9 -5
  610. package/resources/payroll-runs/off-cycle.js.map +1 -1
  611. package/resources/payroll-runs/off-cycle.mjs +9 -5
  612. package/resources/payroll-runs/off-cycle.mjs.map +1 -1
  613. package/resources/permissions/index.d.mts +3 -0
  614. package/resources/permissions/index.d.mts.map +1 -0
  615. package/resources/permissions/index.d.ts +3 -0
  616. package/resources/permissions/index.d.ts.map +1 -0
  617. package/resources/permissions/index.js +9 -0
  618. package/resources/permissions/index.js.map +1 -0
  619. package/resources/permissions/index.mjs +4 -0
  620. package/resources/permissions/index.mjs.map +1 -0
  621. package/resources/permissions/permission-profiles.d.mts +43 -0
  622. package/resources/permissions/permission-profiles.d.mts.map +1 -0
  623. package/resources/permissions/permission-profiles.d.ts +43 -0
  624. package/resources/permissions/permission-profiles.d.ts.map +1 -0
  625. package/resources/permissions/permission-profiles.js +36 -0
  626. package/resources/permissions/permission-profiles.js.map +1 -0
  627. package/resources/permissions/permission-profiles.mjs +32 -0
  628. package/resources/permissions/permission-profiles.mjs.map +1 -0
  629. package/resources/permissions/permissions.d.mts +10 -0
  630. package/resources/permissions/permissions.d.mts.map +1 -0
  631. package/resources/permissions/permissions.d.ts +10 -0
  632. package/resources/permissions/permissions.d.ts.map +1 -0
  633. package/resources/permissions/permissions.js +17 -0
  634. package/resources/permissions/permissions.js.map +1 -0
  635. package/resources/permissions/permissions.mjs +12 -0
  636. package/resources/permissions/permissions.mjs.map +1 -0
  637. package/resources/permissions.d.mts +2 -0
  638. package/resources/permissions.d.mts.map +1 -0
  639. package/resources/permissions.d.ts +2 -0
  640. package/resources/permissions.d.ts.map +1 -0
  641. package/resources/permissions.js +6 -0
  642. package/resources/permissions.js.map +1 -0
  643. package/resources/permissions.mjs +3 -0
  644. package/resources/permissions.mjs.map +1 -0
  645. package/resources/record-detail-reference-options.d.mts +111 -0
  646. package/resources/record-detail-reference-options.d.mts.map +1 -0
  647. package/resources/record-detail-reference-options.d.ts +111 -0
  648. package/resources/record-detail-reference-options.d.ts.map +1 -0
  649. package/resources/record-detail-reference-options.js +54 -0
  650. package/resources/record-detail-reference-options.js.map +1 -0
  651. package/resources/record-detail-reference-options.mjs +50 -0
  652. package/resources/record-detail-reference-options.mjs.map +1 -0
  653. package/resources/record-detail-related-records.d.mts +1070 -0
  654. package/resources/record-detail-related-records.d.mts.map +1 -0
  655. package/resources/record-detail-related-records.d.ts +1070 -0
  656. package/resources/record-detail-related-records.d.ts.map +1 -0
  657. package/resources/record-detail-related-records.js +49 -0
  658. package/resources/record-detail-related-records.js.map +1 -0
  659. package/resources/record-detail-related-records.mjs +45 -0
  660. package/resources/record-detail-related-records.mjs.map +1 -0
  661. package/resources/record-details.d.mts +1227 -0
  662. package/resources/record-details.d.mts.map +1 -0
  663. package/resources/record-details.d.ts +1227 -0
  664. package/resources/record-details.d.ts.map +1 -0
  665. package/resources/record-details.js +71 -0
  666. package/resources/record-details.js.map +1 -0
  667. package/resources/record-details.mjs +67 -0
  668. package/resources/record-details.mjs.map +1 -0
  669. package/resources/reimbursements.d.mts +2158 -90
  670. package/resources/reimbursements.d.mts.map +1 -1
  671. package/resources/reimbursements.d.ts +2158 -90
  672. package/resources/reimbursements.d.ts.map +1 -1
  673. package/resources/reimbursements.js +306 -16
  674. package/resources/reimbursements.js.map +1 -1
  675. package/resources/reimbursements.mjs +306 -16
  676. package/resources/reimbursements.mjs.map +1 -1
  677. package/resources/report-runs.d.mts +2 -1
  678. package/resources/report-runs.d.mts.map +1 -1
  679. package/resources/report-runs.d.ts +2 -1
  680. package/resources/report-runs.d.ts.map +1 -1
  681. package/resources/report-runs.js +2 -1
  682. package/resources/report-runs.js.map +1 -1
  683. package/resources/report-runs.mjs +2 -1
  684. package/resources/report-runs.mjs.map +1 -1
  685. package/resources/sandboxes.d.mts +20 -624
  686. package/resources/sandboxes.d.mts.map +1 -1
  687. package/resources/sandboxes.d.ts +20 -624
  688. package/resources/sandboxes.d.ts.map +1 -1
  689. package/resources/sandboxes.js +5 -60
  690. package/resources/sandboxes.js.map +1 -1
  691. package/resources/sandboxes.mjs +5 -60
  692. package/resources/sandboxes.mjs.map +1 -1
  693. package/src/client.ts +180 -17
  694. package/src/core/platform/custom-objects/manager.ts +65 -42
  695. package/src/core/platform/custom-objects.ts +3 -0
  696. package/src/index.ts +17 -0
  697. package/src/lib/manifest/acp-agent.ts +7 -1
  698. package/src/lib/manifest/composition.ts +133 -0
  699. package/src/lib/manifest/definitions/README.md +89 -0
  700. package/src/lib/manifest/definitions/_object-records.ts +225 -0
  701. package/src/lib/manifest/definitions/action.ts +31 -0
  702. package/src/lib/manifest/definitions/agent.ts +149 -0
  703. package/src/lib/manifest/definitions/app.ts +12 -0
  704. package/src/lib/manifest/definitions/category.ts +35 -0
  705. package/src/lib/manifest/definitions/component.ts +241 -0
  706. package/src/lib/manifest/definitions/custom-field-section.ts +39 -0
  707. package/src/lib/manifest/definitions/custom-field.ts +32 -0
  708. package/src/lib/manifest/definitions/custom-object.ts +791 -0
  709. package/src/lib/manifest/definitions/custom-skill.ts +28 -0
  710. package/src/lib/manifest/definitions/field-section.ts +31 -0
  711. package/src/lib/manifest/definitions/field.ts +119 -0
  712. package/src/lib/manifest/definitions/function.ts +198 -0
  713. package/src/lib/manifest/definitions/index.ts +91 -0
  714. package/src/lib/manifest/definitions/list-view.ts +48 -0
  715. package/src/lib/manifest/definitions/object-search-config.ts +44 -0
  716. package/src/lib/manifest/definitions/object-settings.ts +61 -0
  717. package/src/lib/manifest/definitions/page-layout.ts +218 -0
  718. package/src/lib/manifest/definitions/page.ts +28 -0
  719. package/src/lib/manifest/definitions/record-triggered-flow.ts +71 -0
  720. package/src/lib/manifest/definitions/validation.ts +46 -0
  721. package/src/lib/manifest/definitions/workflow.ts +62 -0
  722. package/src/lib/manifest/index.ts +4 -0
  723. package/src/lib/manifest/package-manifest.ts +40 -0
  724. package/src/resources/activity-log.ts +1 -1
  725. package/src/resources/agents/sessions/messages.ts +10 -1
  726. package/src/resources/agents/sessions/sessions.ts +30 -3
  727. package/src/resources/bills.ts +1660 -0
  728. package/src/resources/card-transactions.ts +742 -49
  729. package/src/resources/custom-objects/custom-objects.ts +62 -2
  730. package/src/resources/custom-objects/fields.ts +44 -0
  731. package/src/resources/custom-objects/index.ts +13 -1
  732. package/src/resources/custom-objects/list-views/capabilities.ts +72 -0
  733. package/src/resources/custom-objects/list-views/default.ts +87 -0
  734. package/src/resources/custom-objects/list-views/index.ts +15 -0
  735. package/src/resources/custom-objects/list-views/list-views.ts +973 -0
  736. package/src/resources/custom-objects/list-views.ts +3 -0
  737. package/src/resources/custom-objects/records/capabilities.ts +73 -0
  738. package/src/resources/custom-objects/records/index.ts +21 -0
  739. package/src/resources/custom-objects/records/records.ts +955 -0
  740. package/src/resources/custom-objects/records.ts +1 -703
  741. package/src/resources/devices.ts +2 -0
  742. package/src/resources/draft-transitions.ts +276 -347
  743. package/src/resources/employee-documents.ts +2 -2
  744. package/src/resources/{spend-categories.ts → finance-categories.ts} +26 -23
  745. package/src/resources/finance-vendors.ts +191 -0
  746. package/src/resources/functions/executions.ts +4 -1
  747. package/src/resources/functions/functions.ts +216 -4
  748. package/src/resources/hire-requirements.ts +107 -9
  749. package/src/resources/hires.ts +1768 -539
  750. package/src/resources/index.ts +51 -7
  751. package/src/resources/leave-requests.ts +11 -2
  752. package/src/resources/object-categories.ts +2 -1
  753. package/src/resources/package-components/extract.ts +139 -0
  754. package/src/resources/package-components/index.ts +10 -0
  755. package/src/resources/package-components/package-components.ts +134 -0
  756. package/src/resources/package-components/types.ts +64 -0
  757. package/src/resources/package-components.ts +3 -0
  758. package/src/resources/package-installs.ts +120 -9
  759. package/src/resources/package-managed-installs.ts +146 -7
  760. package/src/resources/package-manifests/index.ts +5 -0
  761. package/src/resources/package-manifests/package-manifests.ts +21 -0
  762. package/src/resources/package-manifests/packages/index.ts +4 -0
  763. package/src/resources/package-manifests/packages/packages.ts +19 -0
  764. package/src/resources/package-manifests/packages/versions.ts +237 -0
  765. package/src/resources/package-manifests/packages.ts +3 -0
  766. package/src/resources/package-manifests/versions.ts +96 -0
  767. package/src/resources/package-manifests.ts +3 -0
  768. package/src/resources/package-versions/package-versions.ts +117 -14
  769. package/src/resources/package-versions/publish.ts +46 -4
  770. package/src/resources/packages/next-versions.ts +46 -4
  771. package/src/resources/packages/versions.ts +92 -9
  772. package/src/resources/payroll-runs/off-cycle.ts +17 -9
  773. package/src/resources/permissions/index.ts +4 -0
  774. package/src/resources/permissions/permission-profiles.ts +50 -0
  775. package/src/resources/permissions/permissions.ts +20 -0
  776. package/src/resources/permissions.ts +3 -0
  777. package/src/resources/record-detail-reference-options.ts +142 -0
  778. package/src/resources/record-detail-related-records.ts +1380 -0
  779. package/src/resources/record-details.ts +1554 -0
  780. package/src/resources/reimbursements.ts +2591 -126
  781. package/src/resources/report-runs.ts +2 -1
  782. package/src/resources/sandboxes.ts +48 -742
  783. package/src/version.ts +1 -1
  784. package/version.d.mts +1 -1
  785. package/version.d.ts +1 -1
  786. package/version.js +1 -1
  787. package/version.mjs +1 -1
  788. package/resources/spend-categories.d.mts.map +0 -1
  789. package/resources/spend-categories.d.ts.map +0 -1
  790. package/resources/spend-categories.js.map +0 -1
  791. package/resources/spend-categories.mjs.map +0 -1
@@ -0,0 +1,162 @@
1
+ import { CustomObject, type CustomObjectStandardFieldIdentifier } from "../custom-object.js";
2
+ import { Field } from "../field.js";
3
+ import { CustomObjectFieldSection } from "../custom-object-field-section.js";
4
+ import type { RipplingSDK } from "../../../client.js";
5
+ import { extendCustomObject as extendObject } from "../../../core/platform/custom-objects/definition.js";
6
+ import type { CustomObjectCategoryDefinition } from "../../../core/platform/custom-objects/category.js";
7
+ import type { CustomObjectRecordsClient, TypedBatchWriteOptions, TypedRecordPageOptions, TypedRecordQueryOptions, TypedRecordPage, TypedRecordWriteResult } from "../../../core/platform/custom-objects/manager.js";
8
+ import { type RqlFieldToken, type RqlComparableValue, type RqlFragment } from "../../../core/platform/custom-objects/rql.js";
9
+ import type { AnyCustomObjectDefinition, CustomObjectDefinition, FieldDefinitions, SectionDefinitions, NameFieldDefinition, RecordShape, LogicalCustomObjectName, LogicalCategoryName } from "../../../core/platform/custom-objects/types.js";
10
+ import type { RequestOptions } from "../../../internal/request-options.js";
11
+ import type { FieldListParams, CustomObjectField, CustomObjectFieldsPageCursorURL } from "../../../resources/custom-objects/fields.js";
12
+ import type { CustomObject as DeployedCustomObject } from "../../../resources/custom-objects/custom-objects.js";
13
+ import type { APIPromise } from "../../../core/api-promise.js";
14
+ import type { PagePromise } from "../../../core/pagination.js";
15
+ import type { ValueParser } from "./function.js";
16
+ import { type ObjectCreateInput, type ObjectUpdateInput, type ObjectBulkUpdateInput } from "./_object-records.js";
17
+ export type { ObjectCreateInput, ObjectUpdateInput, ObjectBulkUpdateInput } from "./_object-records.js";
18
+ export type DefineCustomObjectProps<A extends `${string}__c`, F extends FieldDefinitions, C extends string = `${Unsuffixed<A>}_category`, S extends SectionDefinitions = {}, N extends NameFieldDefinition = {
19
+ kind: 'text';
20
+ }> = Omit<ObjectOptions<S, F, N>, 'pluralLabel'> & {
21
+ apiName: A;
22
+ name: string;
23
+ pluralName?: string;
24
+ category?: CategoryInput<C>;
25
+ };
26
+ export type DefinedCustomObject<D extends {
27
+ fields: object;
28
+ apiName: string;
29
+ }> = Omit<D, 'fields' | 'inputs' | 'records' | 'schema'> & {
30
+ readonly fields: {
31
+ readonly [K in keyof D['fields']]: Omit<D['fields'][K], 'apiName'> & {
32
+ readonly apiName: `${Unsuffixed<Extract<K, string>>}__c`;
33
+ readonly objectApiName: D['apiName'];
34
+ };
35
+ };
36
+ readonly records: D extends AnyCustomObjectDefinition ? Readonly<ObjectRecords<D>> : never;
37
+ readonly schema: D extends AnyCustomObjectDefinition ? Readonly<ObjectSchema> : never;
38
+ readonly inputs: D extends AnyCustomObjectDefinition ? {
39
+ readonly create: ValueParser<ObjectCreateInput<D>>;
40
+ readonly update: ValueParser<ObjectUpdateInput<D>>;
41
+ } : never;
42
+ };
43
+ /** Authenticated records transport supplied at the operation's call site. */
44
+ export interface ObjectRecordsContext {
45
+ readonly customObjects: {
46
+ readonly records: CustomObjectRecordsClient;
47
+ };
48
+ }
49
+ /** Schema resources supplied at the operation's call site. */
50
+ export interface ObjectSchemaContext {
51
+ readonly customObjects: Pick<RipplingSDK['customObjects'], 'retrieve' | 'fields'>;
52
+ }
53
+ export type ObjectRecordListOptions<D extends AnyCustomObjectDefinition> = TypedRecordPageOptions & {
54
+ where?: ObjectFilter<D['apiName']>;
55
+ };
56
+ /** Typed record operations; writes return readable records or ID-only receipts. Supply an authenticated client at each call. */
57
+ export interface ObjectRecords<D extends AnyCustomObjectDefinition> {
58
+ create(ctx: ObjectRecordsContext, input: ObjectCreateInput<D>): Promise<TypedRecordWriteResult<D>>;
59
+ createMany(ctx: ObjectRecordsContext, rows: readonly ObjectCreateInput<D>[], options?: TypedBatchWriteOptions): Promise<readonly TypedRecordWriteResult<D>[]>;
60
+ get(ctx: ObjectRecordsContext, recordID: string): Promise<RecordShape<D>>;
61
+ getByExternalID(ctx: ObjectRecordsContext, externalID: string): Promise<RecordShape<D>>;
62
+ update(ctx: ObjectRecordsContext, recordID: string, patch: ObjectUpdateInput<D>): Promise<TypedRecordWriteResult<D>>;
63
+ updateMany(ctx: ObjectRecordsContext, rows: readonly ObjectBulkUpdateInput<D>[], options?: TypedBatchWriteOptions): Promise<readonly TypedRecordWriteResult<D>[]>;
64
+ delete(ctx: ObjectRecordsContext, recordID: string): Promise<void>;
65
+ deleteMany(ctx: ObjectRecordsContext, recordIDs: readonly string[], options?: TypedBatchWriteOptions): Promise<void>;
66
+ /** List records with optional typed filters and cursor pagination. */
67
+ list(ctx: ObjectRecordsContext, options?: ObjectRecordListOptions<D>): Promise<TypedRecordPage<D>>;
68
+ /** Run a raw RQL filter with cursor pagination. */
69
+ query(ctx: ObjectRecordsContext, options?: TypedRecordQueryOptions): Promise<TypedRecordPage<D>>;
70
+ }
71
+ /** Deployed object metadata, separate from the local field definitions. */
72
+ export interface ObjectSchema {
73
+ retrieve(ctx: ObjectSchemaContext, options?: RequestOptions): APIPromise<DeployedCustomObject>;
74
+ readonly fields: Readonly<ObjectSchemaFields>;
75
+ }
76
+ export interface ObjectSchemaFields {
77
+ list(ctx: ObjectSchemaContext, params?: FieldListParams, options?: RequestOptions): PagePromise<CustomObjectFieldsPageCursorURL, CustomObjectField>;
78
+ }
79
+ export interface CustomObjectOperations<D extends AnyCustomObjectDefinition> {
80
+ readonly records: Readonly<ObjectRecords<D>>;
81
+ readonly schema: Readonly<ObjectSchema>;
82
+ }
83
+ /** The same operations with the authenticated client supplied by client.objects(definition). */
84
+ export interface ObjectClient<D extends AnyCustomObjectDefinition> {
85
+ create(input: ObjectCreateInput<D>): Promise<TypedRecordWriteResult<D>>;
86
+ createMany(rows: readonly ObjectCreateInput<D>[], options?: TypedBatchWriteOptions): Promise<readonly TypedRecordWriteResult<D>[]>;
87
+ get(recordID: string): Promise<RecordShape<D>>;
88
+ getByExternalID(externalID: string): Promise<RecordShape<D>>;
89
+ update(recordID: string, patch: ObjectUpdateInput<D>): Promise<TypedRecordWriteResult<D>>;
90
+ updateMany(rows: readonly ObjectBulkUpdateInput<D>[], options?: TypedBatchWriteOptions): Promise<readonly TypedRecordWriteResult<D>[]>;
91
+ delete(recordID: string): Promise<void>;
92
+ deleteMany(recordIDs: readonly string[], options?: TypedBatchWriteOptions): Promise<void>;
93
+ list(options?: ObjectRecordListOptions<D>): Promise<TypedRecordPage<D>>;
94
+ query(options?: TypedRecordQueryOptions): Promise<TypedRecordPage<D>>;
95
+ schema: {
96
+ retrieve(options?: RequestOptions): APIPromise<DeployedCustomObject>;
97
+ };
98
+ fields: {
99
+ list(params?: FieldListParams, options?: RequestOptions): PagePromise<CustomObjectFieldsPageCursorURL, CustomObjectField>;
100
+ };
101
+ }
102
+ export type ObjectFilter<A extends string> = RqlFragment & {
103
+ readonly [filterOwner]: A;
104
+ };
105
+ export declare function defineCustomObject<const A extends `${string}__c`, const F extends FieldDefinitions, C extends string = `${Unsuffixed<A>}_category`, S extends SectionDefinitions = {}, N extends NameFieldDefinition = {
106
+ kind: 'text';
107
+ }>(props: DefineCustomObjectProps<A, F, C, S, N>): DefinedCustomObject<CustomObjectDefinition<LogicalCustomObjectName<Unsuffixed<A>>, LogicalCategoryName<C>, S, F, N>>;
108
+ /** Existing extension semantics, with the same additive field tokens and parsers. */
109
+ export declare function extendCustomObject<B extends AnyCustomObjectDefinition, S extends SectionDefinitions = {}, F extends FieldDefinitions = {}>(base: B, extension: Omit<Parameters<typeof extendObject<B, S, F>>[1], 'fields'> & {
110
+ fields?: Extract<keyof B['fields'], keyof F> extends never ? F & ApiNamedMap<F> : never;
111
+ sections?: ApiNamedMap<S>;
112
+ }): DefinedCustomObject<ReturnType<typeof extendObject<B, S, F>>>;
113
+ export declare const eq: <T, const A extends string>(field: FieldToken<T, A>, value: RqlComparableValue<NoInfer<T>> | null) => ObjectFilter<A>;
114
+ export declare const ne: <T, const A extends string>(field: FieldToken<T, A>, value: RqlComparableValue<NoInfer<T>> | null) => ObjectFilter<A>;
115
+ export declare const lt: <T extends string | number, const A extends string>(field: FieldToken<T | null, A>, value: NoInfer<T>) => ObjectFilter<A>;
116
+ export declare const lte: <T extends string | number, const A extends string>(field: FieldToken<T | null, A>, value: NoInfer<T>) => ObjectFilter<A>;
117
+ export declare const gt: <T extends string | number, const A extends string>(field: FieldToken<T | null, A>, value: NoInfer<T>) => ObjectFilter<A>;
118
+ export declare const gte: <T extends string | number, const A extends string>(field: FieldToken<T | null, A>, value: NoInfer<T>) => ObjectFilter<A>;
119
+ export declare const inArray: <T, const A extends string>(field: FieldToken<T, A>, values: readonly RqlComparableValue<NoInfer<T>>[]) => ObjectFilter<A>;
120
+ export declare const notInArray: <T, const A extends string>(field: FieldToken<T, A>, values: readonly RqlComparableValue<NoInfer<T>>[]) => ObjectFilter<A>;
121
+ export declare const isNull: <T, const A extends string>(field: FieldToken<T, A>) => ObjectFilter<A>;
122
+ export declare const isNotNull: <T, const A extends string>(field: FieldToken<T, A>) => ObjectFilter<A>;
123
+ export declare const and: <const A extends string>(first: ObjectFilter<A>, ...rest: ObjectFilter<NoInfer<A>>[]) => ObjectFilter<A>;
124
+ export declare const or: <const A extends string>(first: ObjectFilter<A>, ...rest: ObjectFilter<NoInfer<A>>[]) => ObjectFilter<A>;
125
+ export declare const not: <const A extends string>(filter: ObjectFilter<A>) => ObjectFilter<A>;
126
+ type Unsuffixed<N extends string> = N extends `${infer Name}__c` ? Name : N;
127
+ type ApiNamedMap<T> = {
128
+ [K in keyof T]: string extends K ? T[K] : K extends `${string}__c` ? T[K] : never;
129
+ };
130
+ type CategoryInput<N extends string> = `${N}__c` | CustomObjectCategoryDefinition<LogicalCategoryName<N>>;
131
+ type ObjectOptions<S extends SectionDefinitions, F extends FieldDefinitions, N extends NameFieldDefinition> = Pick<AnyCustomObjectDefinition, 'description' | 'pluralLabel' | 'icon' | 'ownerRole' | 'enableHistory'> & {
132
+ sections?: S & ApiNamedMap<S>;
133
+ fields: F & ApiNamedMap<F> & {
134
+ [K in keyof F]: string extends Exclude<F[K]['section'], undefined> ? F[K] : Exclude<F[K]['section'], undefined> extends keyof NoInfer<S> ? F[K] : never;
135
+ };
136
+ nameField?: N;
137
+ };
138
+ /** @internal Forward client helpers to the definition operations. */
139
+ export declare function createObjectClient<D extends AnyCustomObjectDefinition>(ctx: ObjectRecordsContext & ObjectSchemaContext, definition: D): ObjectClient<D>;
140
+ declare const filterOwner: unique symbol;
141
+ type FieldToken<T, A extends string> = Pick<RqlFieldToken<T>, 'apiName' | '__valueType__'> & {
142
+ readonly objectApiName: A;
143
+ };
144
+ declare const objectScope: unique symbol;
145
+ /** Carry parent identity through helpers while still accepting existing constructor instances. */
146
+ export type ObjectScoped<TObject extends ObjectReference, TDefinition> = TDefinition & {
147
+ readonly [objectScope]: TObject['apiName'];
148
+ };
149
+ export declare function scopedDefinition<TObject extends ObjectReference, TDefinition extends object>(_object: TObject, definition: TDefinition): ObjectScoped<TObject, TDefinition>;
150
+ export declare function fieldReferences<TObject extends ObjectReference>(owner: TObject, field: DefinitionFieldReference<TObject>): object[];
151
+ /** Keep dependency collection in sync with layout-driven field moves. */
152
+ export declare function trackFieldSection<T extends Field>(field: T, section: CustomObjectFieldSection): T;
153
+ export declare function fieldSectionReferences(field: Field): object[];
154
+ export type ObjectReference = AnyCustomObjectDefinition;
155
+ export type DefinitionFieldReference<TObject extends ObjectReference> = TObject['fields'][keyof TObject['fields']] | ObjectScoped<TObject, Field> | CustomObjectStandardFieldIdentifier;
156
+ export type SectionReference<TObject extends ObjectReference> = ObjectScoped<TObject, CustomObjectFieldSection> | Extract<keyof TObject['sections'], string> | 'general';
157
+ export declare function manifestSection<TObject extends ObjectReference>(object: TObject, reference: SectionReference<TObject>): CustomObjectFieldSection;
158
+ /** References and compilation reuse one materialized schema; authored children remain explicit roots. */
159
+ export declare function manifestObject(reference: ObjectReference): CustomObject;
160
+ /** Adapts a typed schema field to the existing layout, view, and rule component APIs. */
161
+ export declare function manifestField<TObject extends ObjectReference>(object: TObject, field: NoInfer<DefinitionFieldReference<TObject>>): Field;
162
+ //# sourceMappingURL=custom-object.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-object.d.ts","sourceRoot":"","sources":["../../../src/lib/manifest/definitions/custom-object.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,YAAY,EAEZ,KAAK,mCAAmC,EACzC,4BAAyB;AAC1B,OAAO,EAAE,KAAK,EAAE,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,wBAAgB,cAAc,CAAC,SAAS,EAAE,eAAe,GAAG,YAAY,CAEvE;AAED,yFAAyF;AACzF,wBAAgB,aAAa,CAAC,OAAO,SAAS,eAAe,EAC3D,MAAM,EAAE,OAAO,EACf,KAAK,EAAE,OAAO,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAC,GAChD,KAAK,CAeP"}
@@ -0,0 +1,412 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.not = exports.or = exports.and = exports.isNotNull = exports.isNull = exports.notInArray = exports.inArray = exports.gte = exports.gt = exports.lte = exports.lt = exports.ne = exports.eq = void 0;
4
+ exports.defineCustomObject = defineCustomObject;
5
+ exports.extendCustomObject = extendCustomObject;
6
+ exports.createObjectClient = createObjectClient;
7
+ exports.scopedDefinition = scopedDefinition;
8
+ exports.fieldReferences = fieldReferences;
9
+ exports.trackFieldSection = trackFieldSection;
10
+ exports.fieldSectionReferences = fieldSectionReferences;
11
+ exports.manifestSection = manifestSection;
12
+ exports.manifestObject = manifestObject;
13
+ exports.manifestField = manifestField;
14
+ const provisioning_1 = require("../../../core/platform/custom-objects/provisioning.js");
15
+ const category_1 = require("../category.js");
16
+ const custom_object_1 = require("../custom-object.js");
17
+ const field_1 = require("../field.js");
18
+ const custom_object_field_section_1 = require("../custom-object-field-section.js");
19
+ const custom_object_page_layout_1 = require("../custom-object-page-layout.js");
20
+ const definition_1 = require("../../../core/platform/custom-objects/definition.js");
21
+ const rql_1 = require("../../../core/platform/custom-objects/rql.js");
22
+ const category_2 = require("./category.js");
23
+ const component_1 = require("./component.js");
24
+ const _object_records_1 = require("./_object-records.js");
25
+ function defineCustomObject(props) {
26
+ const apiName = props['apiName'];
27
+ (0, component_1.validateCustomApiName)(apiName);
28
+ const name = apiName.slice(0, -3);
29
+ const sourceFields = props['fields'];
30
+ const fields = normalizeFieldNames(sourceFields);
31
+ validateSections(props['sections']);
32
+ const category = props['category'] ??
33
+ (0, category_2.defineCategory)({
34
+ apiName: `${name}_category__c`,
35
+ name: props['name'],
36
+ description: props['description'],
37
+ });
38
+ (0, component_1.validateCustomApiName)(typeof category === 'string' ? category : category.apiName);
39
+ const definition = (0, definition_1.defineCustomObject)({
40
+ ...props,
41
+ name,
42
+ displayName: props['name'],
43
+ ...(props['pluralName'] === undefined ? {} : { pluralLabel: props['pluralName'] }),
44
+ category: typeof category === 'string' ? category.slice(0, -3) : category,
45
+ fields,
46
+ });
47
+ return customObjectComponent.register(withInputs(definition, Object.keys(sourceFields)), props);
48
+ }
49
+ /** Existing extension semantics, with the same additive field tokens and parsers. */
50
+ function extendCustomObject(base, extension) {
51
+ const fields = normalizeFieldNames(base.fields);
52
+ const addedFields = normalizeFieldNames(extension.fields ?? {});
53
+ validateSections(extension.sections);
54
+ for (const key of Object.keys(extension.fields ?? {})) {
55
+ if (Object.prototype.hasOwnProperty.call(fields, key.replace(/__c$/, '')))
56
+ throw new Error(`Cannot replace existing custom field ${key} on ${base.apiName}.`);
57
+ }
58
+ const definition = (0, definition_1.extendCustomObject)({ ...base, fields }, { ...extension, fields: addedFields });
59
+ const keys = [...Object.keys(base.fields), ...Object.keys(extension.fields ?? {})];
60
+ return extendedObjectComponent.register(withInputs(definition, keys), base, extension);
61
+ }
62
+ const eq = (field, value) => query.eq(field, value);
63
+ exports.eq = eq;
64
+ const ne = (field, value) => query.ne(field, value);
65
+ exports.ne = ne;
66
+ const lt = (field, value) => query.lt(field, value);
67
+ exports.lt = lt;
68
+ const lte = (field, value) => query.lte(field, value);
69
+ exports.lte = lte;
70
+ const gt = (field, value) => query.gt(field, value);
71
+ exports.gt = gt;
72
+ const gte = (field, value) => query.gte(field, value);
73
+ exports.gte = gte;
74
+ const inArray = (field, values) => query.in(field, values);
75
+ exports.inArray = inArray;
76
+ const notInArray = (field, values) => query.notIn(field, values);
77
+ exports.notInArray = notInArray;
78
+ const isNull = (field) => query.isNull(field);
79
+ exports.isNull = isNull;
80
+ const isNotNull = (field) => query.isNotNull(field);
81
+ exports.isNotNull = isNotNull;
82
+ const and = (first, ...rest) => query.and(first, ...rest);
83
+ exports.and = and;
84
+ const or = (first, ...rest) => query.or(first, ...rest);
85
+ exports.or = or;
86
+ const not = (filter) => query.not(filter);
87
+ exports.not = not;
88
+ /** Enrich the existing immutable schema; normalization and validation stay in the existing factory. */
89
+ function withInputs(definition, keys = Object.keys(definition.fields)) {
90
+ const fields = Object.freeze(Object.fromEntries(keys.map((key) => [
91
+ key,
92
+ Object.freeze({
93
+ ...definition.fields[key.replace(/__c$/, '')],
94
+ logicalName: key,
95
+ objectApiName: definition.apiName,
96
+ }),
97
+ ])));
98
+ const enriched = { ...definition, fields };
99
+ const parser = (operation) => ({
100
+ parse(value) {
101
+ if (value == null || typeof value !== 'object' || Array.isArray(value))
102
+ throw new TypeError('Expected a record object.');
103
+ (0, _object_records_1.assertObjectInput)(enriched, value, operation);
104
+ return value;
105
+ },
106
+ });
107
+ return Object.freeze({
108
+ ...enriched,
109
+ ...createObjectOperations(enriched),
110
+ fields,
111
+ inputs: Object.freeze({
112
+ create: parser('create'),
113
+ update: parser('update'),
114
+ }),
115
+ });
116
+ }
117
+ function normalizeFieldNames(fields) {
118
+ return Object.fromEntries(Object.entries(fields).map(([apiName, field]) => {
119
+ (0, component_1.validateCustomApiName)(apiName);
120
+ return [apiName.slice(0, -3), field];
121
+ }));
122
+ }
123
+ function validateSections(sections = {}) {
124
+ for (const [apiName, section] of Object.entries(sections)) {
125
+ (0, component_1.validateCustomApiName)(apiName);
126
+ if (section.sectionId !== undefined)
127
+ (0, component_1.validateCustomApiName)(section.sectionId);
128
+ }
129
+ }
130
+ /** Operations capture only the definition; each call supplies its own authenticated transport. */
131
+ function createObjectOperations(definition) {
132
+ return {
133
+ records: (0, _object_records_1.createObjectRecords)(definition),
134
+ schema: Object.freeze({
135
+ retrieve: (ctx, options) => ctx.customObjects.retrieve(definition.apiName, options),
136
+ fields: Object.freeze({
137
+ list: (ctx, params, options) => ctx.customObjects.fields.list(definition.apiName, params, options),
138
+ }),
139
+ }),
140
+ };
141
+ }
142
+ /** @internal Forward client helpers to the definition operations. */
143
+ function createObjectClient(ctx, definition) {
144
+ const { records, schema } = createObjectOperations(definition);
145
+ return {
146
+ create: (input) => records.create(ctx, input),
147
+ createMany: (rows, options) => records.createMany(ctx, rows, options),
148
+ get: (recordID) => records.get(ctx, recordID),
149
+ getByExternalID: (externalID) => records.getByExternalID(ctx, externalID),
150
+ update: (recordID, patch) => records.update(ctx, recordID, patch),
151
+ updateMany: (rows, options) => records.updateMany(ctx, rows, options),
152
+ delete: (recordID) => records.delete(ctx, recordID),
153
+ deleteMany: (recordIDs, options) => records.deleteMany(ctx, recordIDs, options),
154
+ list: (options) => records.list(ctx, options),
155
+ query: (options) => records.query(ctx, options),
156
+ schema: { retrieve: (options) => schema.retrieve(ctx, options) },
157
+ fields: {
158
+ list: (params, options) => schema.fields.list(ctx, params, options),
159
+ },
160
+ };
161
+ }
162
+ // Reuse the existing operators, carrying the schema's object identity through typed filters.
163
+ const query = (0, rql_1.createRqlHelpers)({ fields: {} });
164
+ function scopedDefinition(_object, definition) {
165
+ return definition;
166
+ }
167
+ /** A complete schema is a local dependency; an identity-only target names an existing resource. */
168
+ function isObjectDefinition(value) {
169
+ return 'fields' in value && 'nameField' in value && 'categoryApiName' in value;
170
+ }
171
+ function fieldReferences(owner, field) {
172
+ return [typeof field === 'object' && 'getApiName' in field ? field : owner];
173
+ }
174
+ const currentFieldSections = new WeakMap();
175
+ /** Keep dependency collection in sync with layout-driven field moves. */
176
+ function trackFieldSection(field, section) {
177
+ currentFieldSections.set(field, section);
178
+ const assignSection = field._assignSection.bind(field);
179
+ field._assignSection = (section) => {
180
+ assignSection(section);
181
+ currentFieldSections.set(field, typeof section === 'string' ? undefined : section);
182
+ };
183
+ return field;
184
+ }
185
+ function fieldSectionReferences(field) {
186
+ const section = currentFieldSections.get(field);
187
+ // Schema-owned sections are emitted by the object compiler; authored sections are dependencies.
188
+ return section != null && (0, component_1.registeredComponent)(section) != null ? [section] : [];
189
+ }
190
+ /** Shared by section serialization and authored/default conflict detection. */
191
+ function fieldSectionApiName(definition, key) {
192
+ const apiName = definition.sections[key]?.sectionId ?? key;
193
+ (0, component_1.validateCustomApiName)(apiName);
194
+ return apiName;
195
+ }
196
+ /** Reuse the typed SDK's field compiler and the metadata SDK's serializers. */
197
+ function objectMetadata(definition) {
198
+ const existing = registrations.get(definition);
199
+ if (existing != null)
200
+ return existing;
201
+ if (definition.ownerRole != null ||
202
+ definition.enableHistory != null ||
203
+ Object.values(definition.fields).some((field) => field.enableHistory != null || field.restSection != null || field.rqlDefinition != null))
204
+ throw new Error('REST-only object options cannot be compiled to metadata.');
205
+ const category = new category_1.Category(component_1.detachedManifestScope, {
206
+ apiName: definition.categoryApiName,
207
+ name: definition.categoryDefinition?.displayName ?? definition.category,
208
+ description: definition.categoryDefinition?.description ?? '',
209
+ });
210
+ const components = [];
211
+ const object = new custom_object_1.CustomObject({
212
+ _register(component) {
213
+ components.push(component);
214
+ },
215
+ }, {
216
+ apiName: definition.apiName,
217
+ name: definition.displayName,
218
+ category,
219
+ description: definition.description,
220
+ ...(definition.pluralLabel == null ? {} : { pluralLabel: definition.pluralLabel }),
221
+ ...(definition.icon == null ? {} : { icon: definition.icon }),
222
+ nameFieldDetails: (0, provisioning_1.buildCustomObjectNameFieldDetails)(definition) ?? null,
223
+ });
224
+ const sections = Object.fromEntries(Object.entries(definition.sections).map(([key, section]) => {
225
+ const apiName = fieldSectionApiName(definition, key);
226
+ return [
227
+ key,
228
+ (0, component_1.withApiName)(new custom_object_field_section_1.CustomObjectFieldSection(object, { name: section.name, sectionId: apiName }), apiName),
229
+ ];
230
+ }));
231
+ const needsFallback = Object.keys(sections).length === 0 ||
232
+ Object.values(definition.fields).some((field) => field.section == null);
233
+ const generalKey = `${definition.name}_general__c`;
234
+ const defaultSectionApiName = fieldSectionApiName(definition, generalKey);
235
+ const defaultSection = needsFallback ?
236
+ sections[generalKey] ??
237
+ (0, component_1.withApiName)(new custom_object_field_section_1.CustomObjectFieldSection(object, { name: 'General', sectionId: defaultSectionApiName }), defaultSectionApiName)
238
+ : undefined;
239
+ const firstSection = defaultSection ?? Object.values(sections)[0];
240
+ (0, component_1.withApiName)(object, definition.apiName, { default_field_section_api_name: firstSection.getSectionId() });
241
+ // Provisioning needs section handles; here they are deterministic API names instead of destination IDs.
242
+ const provisionable = {
243
+ ...definition,
244
+ sections: Object.fromEntries(Object.entries(sections).map(([key, section]) => [
245
+ key,
246
+ { name: section.getName(), sectionId: section.getSectionId() },
247
+ ])),
248
+ };
249
+ const fields = Object.fromEntries(Object.entries(definition.fields).map(([key, field]) => {
250
+ const section = field.section == null ? defaultSection : sections[field.section];
251
+ if (section == null)
252
+ throw new Error(`Unknown section ${field.section} on ${definition.apiName}.`);
253
+ const { create } = (0, provisioning_1.buildProvisionableFieldParams)(provisionable, key);
254
+ return [
255
+ key,
256
+ trackFieldSection(new field_1.Field(object, {
257
+ apiName: field.apiName,
258
+ displayName: field.displayName,
259
+ description: field.description,
260
+ section,
261
+ dataType: create.data_type,
262
+ required: field.writable ? field.required : null,
263
+ unique: create.is_unique ?? null,
264
+ derivedFieldFormula: create.derived_field_formula ?? null,
265
+ ...(field.formulaAttributeMetas == null ? {} : { formulaAttrMetas: field.formulaAttributeMetas }),
266
+ ...(field.derivedAggregatedField == null ?
267
+ {}
268
+ : { derivedAggregatedField: field.derivedAggregatedField }),
269
+ }), section),
270
+ ];
271
+ }));
272
+ const layoutSections = [
273
+ ...new Set([...Object.values(sections), ...(defaultSection == null ? [] : [defaultSection])]),
274
+ ];
275
+ const layout = (0, component_1.withApiName)(new custom_object_page_layout_1.CustomObjectPageLayout(object, {
276
+ apiName: 'default',
277
+ layoutId: 'default',
278
+ name: `${definition.displayName} Layout`,
279
+ tabEdits: {
280
+ newTabs: [
281
+ {
282
+ key: 'details',
283
+ name: 'Details',
284
+ type: 'tab_with_sections',
285
+ sections: layoutSections.map((section, index) => ({
286
+ name: section.getName(),
287
+ type: 'fields_section',
288
+ section,
289
+ fields: [
290
+ ...(index === 0 ? [object.standardFields.name] : []),
291
+ ...Object.values(fields).filter((field) => field.getSectionId() === section.getSectionId()),
292
+ ],
293
+ })),
294
+ },
295
+ ],
296
+ systemTabEdits: {},
297
+ tabsOrder: ['details'],
298
+ },
299
+ }), 'default');
300
+ const metadata = {
301
+ object,
302
+ sections,
303
+ defaultSection,
304
+ fields,
305
+ layout,
306
+ components: [...components],
307
+ defaultFieldSectionApiName: firstSection.getSectionId(),
308
+ };
309
+ registrations.set(definition, metadata);
310
+ return metadata;
311
+ }
312
+ const registrations = new WeakMap();
313
+ function manifestSection(object, reference) {
314
+ if (typeof reference !== 'string') {
315
+ if (reference.getModelApiName() !== manifestObject(object).getApiName())
316
+ throw new Error('Section reference belongs to another object.');
317
+ return reference;
318
+ }
319
+ const registration = objectMetadata(object);
320
+ const section = registration.sections[reference] ?? (reference === 'general' ? registration.defaultSection : undefined);
321
+ if (section == null)
322
+ throw new Error(`Unknown section ${reference} on ${object.apiName}.`);
323
+ return section;
324
+ }
325
+ /** References and compilation reuse one materialized schema; authored children remain explicit roots. */
326
+ function manifestObject(reference) {
327
+ return objectMetadata(reference).object;
328
+ }
329
+ /** Adapts a typed schema field to the existing layout, view, and rule component APIs. */
330
+ function manifestField(object, field) {
331
+ const metadata = objectMetadata(object);
332
+ const resolved = metadata.object;
333
+ const candidate = field;
334
+ if (typeof candidate === 'string')
335
+ return resolved.standardField(candidate);
336
+ if ('getApiName' in candidate) {
337
+ if (candidate.getCustomObjectApiName() !== resolved.getApiName())
338
+ throw new Error('Field reference belongs to another object.');
339
+ return candidate;
340
+ }
341
+ if ('objectApiName' in candidate && candidate.objectApiName !== object.apiName)
342
+ throw new Error('Field reference belongs to another object.');
343
+ const registered = metadata.fields[candidate.logicalName];
344
+ if (registered == null)
345
+ throw new Error(`Unknown field ${candidate.logicalName} on ${object.apiName}.`);
346
+ return registered;
347
+ }
348
+ const behavior = {
349
+ type: 'CUSTOM_OBJECT',
350
+ references(definition) {
351
+ const category = definition.categoryDefinition;
352
+ if (category != null && (0, component_1.registeredComponent)(category) == null)
353
+ category_2.categoryComponent.register(category, category);
354
+ return () => [
355
+ ...(category == null ? [] : [category]),
356
+ ...Object.values(registrations.get(definition)?.fields ?? {}).flatMap(fieldSectionReferences),
357
+ ...Object.values(definition.fields).flatMap((field) => field.kind === 'lookup' || field.kind === 'parent-child' ?
358
+ isObjectDefinition(field.target) ? [field.target]
359
+ : []
360
+ : []),
361
+ ];
362
+ },
363
+ compileBatch(definitions, context) {
364
+ const categories = new Set(context.definitions
365
+ .filter((definition) => (0, component_1.registeredComponent)(definition)?.type === 'CUSTOM_CATEGORY')
366
+ .flatMap((definition) => ('apiName' in definition ? [definition.apiName] : [])));
367
+ // Generate defaults from the complete schema, including base definitions reached through children.
368
+ const schemas = new Map();
369
+ for (const definition of definitions) {
370
+ const previous = schemas.get(definition.apiName);
371
+ if (previous == null) {
372
+ schemas.set(definition.apiName, definition);
373
+ continue;
374
+ }
375
+ schemas.set(definition.apiName, {
376
+ ...previous,
377
+ sections: { ...previous.sections, ...definition.sections },
378
+ fields: Object.fromEntries([...Object.values(previous.fields), ...Object.values(definition.fields)].map((field) => [
379
+ field.apiName,
380
+ field,
381
+ ])),
382
+ });
383
+ }
384
+ const defaults = new Map([...schemas].map(([apiName, schema]) => [apiName, objectMetadata(schema)]));
385
+ return definitions.flatMap((definition) => {
386
+ if (!categories.has(definition.categoryApiName))
387
+ throw new Error(`Include a category definition for ${definition.categoryApiName}, or use a typed category in ${definition.apiName}.`);
388
+ const generated = defaults.get(definition.apiName);
389
+ const authoredSections = new Set(Object.keys(definition.sections).map((key) => fieldSectionApiName(definition, key)));
390
+ const metadata = objectMetadata(definition);
391
+ return metadata.components.map((component) => {
392
+ const config = (component === metadata.layout ? generated.layout : component).toDict();
393
+ if (component === metadata.object)
394
+ config['default_field_section_api_name'] = generated.defaultFieldSectionApiName;
395
+ return {
396
+ config: config,
397
+ fallback: component === metadata.layout ||
398
+ (component === metadata.defaultSection && !authoredSections.has(config['api_name'])),
399
+ };
400
+ });
401
+ });
402
+ },
403
+ };
404
+ const customObjectComponent = (0, component_1.defineComponent)({
405
+ ...behavior,
406
+ define: defineCustomObject,
407
+ });
408
+ const extendedObjectComponent = (0, component_1.defineComponent)({
409
+ ...behavior,
410
+ define: extendCustomObject,
411
+ });
412
+ //# sourceMappingURL=custom-object.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-object.js","sourceRoot":"","sources":["../../../src/lib/manifest/definitions/custom-object.ts"],"names":[],"mappings":";;;AAsNA,gDAwBC;AAGD,gDA4BC;AAyJD,gDAqBC;AAkBD,4CAKC;AAOD,0CAKC;AAKD,8CAQC;AAED,wDAIC;AA+KD,0CAcC;AAGD,wCAEC;AAGD,sCAkBC;AAxsBD,wFAG4D;AAC5D,6CAAuC;AACvC,uDAI0B;AAC1B,uCAAiC;AACjC,mFAA0E;AAC1E,+EAAsE;AAGtE,oFAG0D;AAU1D,sEAKmD;AAqBnD,4CAA+D;AAC/D,8CASqB;AAErB,0DAM2B;AA8I3B,SAAgB,kBAAkB,CAAC,KAA0B;IAC3D,MAAM,OAAO,GAAG,KAAK,CAAC,SAAS,CAAW,CAAC;IAC3C,IAAA,iCAAqB,EAAC,OAAO,CAAC,CAAC;IAC/B,MAAM,IAAI,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAClC,MAAM,YAAY,GAAG,KAAK,CAAC,QAAQ,CAAqB,CAAC;IACzD,MAAM,MAAM,GAAG,mBAAmB,CAAC,YAAY,CAAC,CAAC;IACjD,gBAAgB,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;IACpC,MAAM,QAAQ,GACZ,KAAK,CAAC,UAAU,CAAC;QACjB,IAAA,yBAAc,EAAC;YACb,OAAO,EAAE,GAAG,IAAI,cAAc;YAC9B,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC;YACnB,WA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