@rippling/rippling-sdk 0.2.0-alpha.88 → 0.2.0-alpha.89

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 (617) hide show
  1. package/client.d.mts +46 -10
  2. package/client.d.mts.map +1 -1
  3. package/client.d.ts +46 -10
  4. package/client.d.ts.map +1 -1
  5. package/client.js +36 -0
  6. package/client.js.map +1 -1
  7. package/client.mjs +36 -0
  8. package/client.mjs.map +1 -1
  9. package/examples/manifest/acp-agent/acp-agent.ts +52 -0
  10. package/examples/manifest/acp-agent/agent/index.ts +9 -0
  11. package/lib/manifest/_existing-component-fields.d.mts.map +1 -1
  12. package/lib/manifest/_existing-component-fields.d.ts.map +1 -1
  13. package/lib/manifest/_existing-component-fields.js +1 -0
  14. package/lib/manifest/_existing-component-fields.js.map +1 -1
  15. package/lib/manifest/_existing-component-fields.mjs +1 -0
  16. package/lib/manifest/_existing-component-fields.mjs.map +1 -1
  17. package/lib/manifest/acp-agent.d.mts +66 -0
  18. package/lib/manifest/acp-agent.d.mts.map +1 -0
  19. package/lib/manifest/acp-agent.d.ts +66 -0
  20. package/lib/manifest/acp-agent.d.ts.map +1 -0
  21. package/lib/manifest/acp-agent.js +135 -0
  22. package/lib/manifest/acp-agent.js.map +1 -0
  23. package/lib/manifest/acp-agent.mjs +131 -0
  24. package/lib/manifest/acp-agent.mjs.map +1 -0
  25. package/lib/manifest/existing-manifest-context.d.mts +3 -0
  26. package/lib/manifest/existing-manifest-context.d.mts.map +1 -1
  27. package/lib/manifest/existing-manifest-context.d.ts +3 -0
  28. package/lib/manifest/existing-manifest-context.d.ts.map +1 -1
  29. package/lib/manifest/existing-manifest-context.js +14 -0
  30. package/lib/manifest/existing-manifest-context.js.map +1 -1
  31. package/lib/manifest/existing-manifest-context.mjs +14 -0
  32. package/lib/manifest/existing-manifest-context.mjs.map +1 -1
  33. package/lib/manifest/index.d.mts +1 -0
  34. package/lib/manifest/index.d.mts.map +1 -1
  35. package/lib/manifest/index.d.ts +1 -0
  36. package/lib/manifest/index.d.ts.map +1 -1
  37. package/lib/manifest/index.js +3 -1
  38. package/lib/manifest/index.js.map +1 -1
  39. package/lib/manifest/index.mjs +1 -0
  40. package/lib/manifest/index.mjs.map +1 -1
  41. package/lib/manifest/manifest-builder.d.mts +1 -1
  42. package/lib/manifest/manifest-builder.d.mts.map +1 -1
  43. package/lib/manifest/manifest-builder.d.ts +1 -1
  44. package/lib/manifest/manifest-builder.d.ts.map +1 -1
  45. package/lib/manifest/manifest-builder.js.map +1 -1
  46. package/lib/manifest/manifest-builder.mjs.map +1 -1
  47. package/package.json +1 -1
  48. package/resources/app-users.d.mts +4 -0
  49. package/resources/app-users.d.mts.map +1 -1
  50. package/resources/app-users.d.ts +4 -0
  51. package/resources/app-users.d.ts.map +1 -1
  52. package/resources/break-policies.d.mts +4 -0
  53. package/resources/break-policies.d.mts.map +1 -1
  54. package/resources/break-policies.d.ts +4 -0
  55. package/resources/break-policies.d.ts.map +1 -1
  56. package/resources/break-types.d.mts +4 -0
  57. package/resources/break-types.d.mts.map +1 -1
  58. package/resources/break-types.d.ts +4 -0
  59. package/resources/break-types.d.ts.map +1 -1
  60. package/resources/business-partner-groups.d.mts +4 -0
  61. package/resources/business-partner-groups.d.mts.map +1 -1
  62. package/resources/business-partner-groups.d.ts +4 -0
  63. package/resources/business-partner-groups.d.ts.map +1 -1
  64. package/resources/business-partners.d.mts +4 -0
  65. package/resources/business-partners.d.mts.map +1 -1
  66. package/resources/business-partners.d.ts +4 -0
  67. package/resources/business-partners.d.ts.map +1 -1
  68. package/resources/business-structure-paths.d.mts +4 -0
  69. package/resources/business-structure-paths.d.mts.map +1 -1
  70. package/resources/business-structure-paths.d.ts +4 -0
  71. package/resources/business-structure-paths.d.ts.map +1 -1
  72. package/resources/candidate-applications.d.mts +4 -0
  73. package/resources/candidate-applications.d.mts.map +1 -1
  74. package/resources/candidate-applications.d.ts +4 -0
  75. package/resources/candidate-applications.d.ts.map +1 -1
  76. package/resources/candidates.d.mts +4 -0
  77. package/resources/candidates.d.mts.map +1 -1
  78. package/resources/candidates.d.ts +4 -0
  79. package/resources/candidates.d.ts.map +1 -1
  80. package/resources/companies.d.mts +4 -0
  81. package/resources/companies.d.mts.map +1 -1
  82. package/resources/companies.d.ts +4 -0
  83. package/resources/companies.d.ts.map +1 -1
  84. package/resources/company-legal-entities.d.mts +4 -0
  85. package/resources/company-legal-entities.d.mts.map +1 -1
  86. package/resources/company-legal-entities.d.ts +4 -0
  87. package/resources/company-legal-entities.d.ts.map +1 -1
  88. package/resources/company-legal-entity-workers.d.mts +4 -0
  89. package/resources/company-legal-entity-workers.d.mts.map +1 -1
  90. package/resources/company-legal-entity-workers.d.ts +4 -0
  91. package/resources/company-legal-entity-workers.d.ts.map +1 -1
  92. package/resources/compensation-bands-details.d.mts +4 -0
  93. package/resources/compensation-bands-details.d.mts.map +1 -1
  94. package/resources/compensation-bands-details.d.ts +4 -0
  95. package/resources/compensation-bands-details.d.ts.map +1 -1
  96. package/resources/compensations.d.mts +4 -0
  97. package/resources/compensations.d.mts.map +1 -1
  98. package/resources/compensations.d.ts +4 -0
  99. package/resources/compensations.d.ts.map +1 -1
  100. package/resources/custom-fields.d.mts +4 -0
  101. package/resources/custom-fields.d.mts.map +1 -1
  102. package/resources/custom-fields.d.ts +4 -0
  103. package/resources/custom-fields.d.ts.map +1 -1
  104. package/resources/custom-objects/custom-objects.d.mts +13 -6
  105. package/resources/custom-objects/custom-objects.d.mts.map +1 -1
  106. package/resources/custom-objects/custom-objects.d.ts +13 -6
  107. package/resources/custom-objects/custom-objects.d.ts.map +1 -1
  108. package/resources/custom-objects/custom-objects.js +2 -2
  109. package/resources/custom-objects/custom-objects.js.map +1 -1
  110. package/resources/custom-objects/custom-objects.mjs +2 -2
  111. package/resources/custom-objects/custom-objects.mjs.map +1 -1
  112. package/resources/custom-objects/fields.d.mts +9 -2
  113. package/resources/custom-objects/fields.d.mts.map +1 -1
  114. package/resources/custom-objects/fields.d.ts +9 -2
  115. package/resources/custom-objects/fields.d.ts.map +1 -1
  116. package/resources/custom-objects/fields.js +2 -2
  117. package/resources/custom-objects/fields.js.map +1 -1
  118. package/resources/custom-objects/fields.mjs +2 -2
  119. package/resources/custom-objects/fields.mjs.map +1 -1
  120. package/resources/custom-objects/index.d.mts +3 -3
  121. package/resources/custom-objects/index.d.mts.map +1 -1
  122. package/resources/custom-objects/index.d.ts +3 -3
  123. package/resources/custom-objects/index.d.ts.map +1 -1
  124. package/resources/custom-objects/index.js.map +1 -1
  125. package/resources/custom-objects/index.mjs.map +1 -1
  126. package/resources/custom-objects/records.d.mts +9 -2
  127. package/resources/custom-objects/records.d.mts.map +1 -1
  128. package/resources/custom-objects/records.d.ts +9 -2
  129. package/resources/custom-objects/records.d.ts.map +1 -1
  130. package/resources/custom-objects/records.js +2 -2
  131. package/resources/custom-objects/records.js.map +1 -1
  132. package/resources/custom-objects/records.mjs +2 -2
  133. package/resources/custom-objects/records.mjs.map +1 -1
  134. package/resources/custom-settings.d.mts +4 -0
  135. package/resources/custom-settings.d.mts.map +1 -1
  136. package/resources/custom-settings.d.ts +4 -0
  137. package/resources/custom-settings.d.ts.map +1 -1
  138. package/resources/departments.d.mts +4 -0
  139. package/resources/departments.d.mts.map +1 -1
  140. package/resources/departments.d.ts +4 -0
  141. package/resources/departments.d.ts.map +1 -1
  142. package/resources/device-orders.d.mts +4 -0
  143. package/resources/device-orders.d.mts.map +1 -1
  144. package/resources/device-orders.d.ts +4 -0
  145. package/resources/device-orders.d.ts.map +1 -1
  146. package/resources/devices.d.mts +4 -0
  147. package/resources/devices.d.mts.map +1 -1
  148. package/resources/devices.d.ts +4 -0
  149. package/resources/devices.d.ts.map +1 -1
  150. package/resources/earning-types.d.mts +9 -2
  151. package/resources/earning-types.d.mts.map +1 -1
  152. package/resources/earning-types.d.ts +9 -2
  153. package/resources/earning-types.d.ts.map +1 -1
  154. package/resources/earning-types.js +5 -2
  155. package/resources/earning-types.js.map +1 -1
  156. package/resources/earning-types.mjs +5 -2
  157. package/resources/earning-types.mjs.map +1 -1
  158. package/resources/earnings-inputs.d.mts +9 -2
  159. package/resources/earnings-inputs.d.mts.map +1 -1
  160. package/resources/earnings-inputs.d.ts +9 -2
  161. package/resources/earnings-inputs.d.ts.map +1 -1
  162. package/resources/earnings-inputs.js +5 -2
  163. package/resources/earnings-inputs.js.map +1 -1
  164. package/resources/earnings-inputs.mjs +5 -2
  165. package/resources/earnings-inputs.mjs.map +1 -1
  166. package/resources/employment-types.d.mts +4 -0
  167. package/resources/employment-types.d.mts.map +1 -1
  168. package/resources/employment-types.d.ts +4 -0
  169. package/resources/employment-types.d.ts.map +1 -1
  170. package/resources/functions/executions.d.mts +5 -0
  171. package/resources/functions/executions.d.mts.map +1 -1
  172. package/resources/functions/executions.d.ts +5 -0
  173. package/resources/functions/executions.d.ts.map +1 -1
  174. package/resources/functions/functions.d.mts +5 -0
  175. package/resources/functions/functions.d.mts.map +1 -1
  176. package/resources/functions/functions.d.ts +5 -0
  177. package/resources/functions/functions.d.ts.map +1 -1
  178. package/resources/functions/functions.js.map +1 -1
  179. package/resources/functions/functions.mjs.map +1 -1
  180. package/resources/headcount-positions.d.mts +4 -0
  181. package/resources/headcount-positions.d.mts.map +1 -1
  182. package/resources/headcount-positions.d.ts +4 -0
  183. package/resources/headcount-positions.d.ts.map +1 -1
  184. package/resources/headcount-priorities.d.mts +4 -0
  185. package/resources/headcount-priorities.d.mts.map +1 -1
  186. package/resources/headcount-priorities.d.ts +4 -0
  187. package/resources/headcount-priorities.d.ts.map +1 -1
  188. package/resources/index.d.mts +11 -5
  189. package/resources/index.d.mts.map +1 -1
  190. package/resources/index.d.ts +11 -5
  191. package/resources/index.d.ts.map +1 -1
  192. package/resources/index.js +14 -2
  193. package/resources/index.js.map +1 -1
  194. package/resources/index.mjs +6 -0
  195. package/resources/index.mjs.map +1 -1
  196. package/resources/job-assignments.d.mts +8 -0
  197. package/resources/job-assignments.d.mts.map +1 -1
  198. package/resources/job-assignments.d.ts +8 -0
  199. package/resources/job-assignments.d.ts.map +1 -1
  200. package/resources/job-codes.d.mts +8 -0
  201. package/resources/job-codes.d.mts.map +1 -1
  202. package/resources/job-codes.d.ts +8 -0
  203. package/resources/job-codes.d.ts.map +1 -1
  204. package/resources/job-dimensions.d.mts +4 -0
  205. package/resources/job-dimensions.d.mts.map +1 -1
  206. package/resources/job-dimensions.d.ts +4 -0
  207. package/resources/job-dimensions.d.ts.map +1 -1
  208. package/resources/job-functions.d.mts +4 -0
  209. package/resources/job-functions.d.mts.map +1 -1
  210. package/resources/job-functions.d.ts +4 -0
  211. package/resources/job-functions.d.ts.map +1 -1
  212. package/resources/job-pay-rate-exceptions.d.mts +8 -0
  213. package/resources/job-pay-rate-exceptions.d.mts.map +1 -1
  214. package/resources/job-pay-rate-exceptions.d.ts +8 -0
  215. package/resources/job-pay-rate-exceptions.d.ts.map +1 -1
  216. package/resources/job-requisitions.d.mts +4 -0
  217. package/resources/job-requisitions.d.mts.map +1 -1
  218. package/resources/job-requisitions.d.ts +4 -0
  219. package/resources/job-requisitions.d.ts.map +1 -1
  220. package/resources/kiosk-badges.d.mts +4 -0
  221. package/resources/kiosk-badges.d.mts.map +1 -1
  222. package/resources/kiosk-badges.d.ts +4 -0
  223. package/resources/kiosk-badges.d.ts.map +1 -1
  224. package/resources/leave-accruals.d.mts +4 -0
  225. package/resources/leave-accruals.d.mts.map +1 -1
  226. package/resources/leave-accruals.d.ts +4 -0
  227. package/resources/leave-accruals.d.ts.map +1 -1
  228. package/resources/leave-balances.d.mts +4 -0
  229. package/resources/leave-balances.d.mts.map +1 -1
  230. package/resources/leave-balances.d.ts +4 -0
  231. package/resources/leave-balances.d.ts.map +1 -1
  232. package/resources/leave-requests.d.mts +4 -0
  233. package/resources/leave-requests.d.mts.map +1 -1
  234. package/resources/leave-requests.d.ts +4 -0
  235. package/resources/leave-requests.d.ts.map +1 -1
  236. package/resources/leave-types.d.mts +4 -0
  237. package/resources/leave-types.d.mts.map +1 -1
  238. package/resources/leave-types.d.ts +4 -0
  239. package/resources/leave-types.d.ts.map +1 -1
  240. package/resources/legal-entities.d.mts +4 -0
  241. package/resources/legal-entities.d.mts.map +1 -1
  242. package/resources/legal-entities.d.ts +4 -0
  243. package/resources/legal-entities.d.ts.map +1 -1
  244. package/resources/levels.d.mts +4 -0
  245. package/resources/levels.d.mts.map +1 -1
  246. package/resources/levels.d.ts +4 -0
  247. package/resources/levels.d.ts.map +1 -1
  248. package/resources/location-factors.d.mts +4 -0
  249. package/resources/location-factors.d.mts.map +1 -1
  250. package/resources/location-factors.d.ts +4 -0
  251. package/resources/location-factors.d.ts.map +1 -1
  252. package/resources/metadata/component-schemas.d.mts +93 -0
  253. package/resources/metadata/component-schemas.d.mts.map +1 -0
  254. package/resources/metadata/component-schemas.d.ts +93 -0
  255. package/resources/metadata/component-schemas.d.ts.map +1 -0
  256. package/resources/metadata/component-schemas.js +28 -0
  257. package/resources/metadata/component-schemas.js.map +1 -0
  258. package/resources/metadata/component-schemas.mjs +24 -0
  259. package/resources/metadata/component-schemas.mjs.map +1 -0
  260. package/resources/metadata/component-types.d.mts +47 -0
  261. package/resources/metadata/component-types.d.mts.map +1 -0
  262. package/resources/metadata/component-types.d.ts +47 -0
  263. package/resources/metadata/component-types.d.ts.map +1 -0
  264. package/resources/metadata/component-types.js +27 -0
  265. package/resources/metadata/component-types.js.map +1 -0
  266. package/resources/metadata/component-types.mjs +23 -0
  267. package/resources/metadata/component-types.mjs.map +1 -0
  268. package/resources/metadata/components.d.mts +544 -0
  269. package/resources/metadata/components.d.mts.map +1 -0
  270. package/resources/metadata/components.d.ts +544 -0
  271. package/resources/metadata/components.d.ts.map +1 -0
  272. package/resources/metadata/components.js +134 -0
  273. package/resources/metadata/components.js.map +1 -0
  274. package/resources/metadata/components.mjs +130 -0
  275. package/resources/metadata/components.mjs.map +1 -0
  276. package/resources/metadata/deployment-runs.d.mts +275 -0
  277. package/resources/metadata/deployment-runs.d.mts.map +1 -0
  278. package/resources/metadata/deployment-runs.d.ts +275 -0
  279. package/resources/metadata/deployment-runs.d.ts.map +1 -0
  280. package/resources/metadata/deployment-runs.js +133 -0
  281. package/resources/metadata/deployment-runs.js.map +1 -0
  282. package/resources/metadata/deployment-runs.mjs +129 -0
  283. package/resources/metadata/deployment-runs.mjs.map +1 -0
  284. package/resources/metadata/index.d.mts +9 -0
  285. package/resources/metadata/index.d.mts.map +1 -0
  286. package/resources/metadata/index.d.ts +9 -0
  287. package/resources/metadata/index.d.ts.map +1 -0
  288. package/resources/metadata/index.js +21 -0
  289. package/resources/metadata/index.js.map +1 -0
  290. package/resources/metadata/index.mjs +10 -0
  291. package/resources/metadata/index.mjs.map +1 -0
  292. package/resources/metadata/metadata.d.mts +125 -0
  293. package/resources/metadata/metadata.d.mts.map +1 -0
  294. package/resources/metadata/metadata.d.ts +125 -0
  295. package/resources/metadata/metadata.d.ts.map +1 -0
  296. package/resources/metadata/metadata.js +58 -0
  297. package/resources/metadata/metadata.js.map +1 -0
  298. package/resources/metadata/metadata.mjs +53 -0
  299. package/resources/metadata/metadata.mjs.map +1 -0
  300. package/resources/metadata/schema.d.mts +92 -0
  301. package/resources/metadata/schema.d.mts.map +1 -0
  302. package/resources/metadata/schema.d.ts +92 -0
  303. package/resources/metadata/schema.d.ts.map +1 -0
  304. package/resources/metadata/schema.js +27 -0
  305. package/resources/metadata/schema.js.map +1 -0
  306. package/resources/metadata/schema.mjs +23 -0
  307. package/resources/metadata/schema.mjs.map +1 -0
  308. package/resources/metadata/types.d.mts +46 -0
  309. package/resources/metadata/types.d.mts.map +1 -0
  310. package/resources/metadata/types.d.ts +46 -0
  311. package/resources/metadata/types.d.ts.map +1 -0
  312. package/resources/metadata/types.js +26 -0
  313. package/resources/metadata/types.js.map +1 -0
  314. package/resources/metadata/types.mjs +22 -0
  315. package/resources/metadata/types.mjs.map +1 -0
  316. package/resources/metadata/validation-runs.d.mts +275 -0
  317. package/resources/metadata/validation-runs.d.mts.map +1 -0
  318. package/resources/metadata/validation-runs.d.ts +275 -0
  319. package/resources/metadata/validation-runs.d.ts.map +1 -0
  320. package/resources/metadata/validation-runs.js +133 -0
  321. package/resources/metadata/validation-runs.js.map +1 -0
  322. package/resources/metadata/validation-runs.mjs +129 -0
  323. package/resources/metadata/validation-runs.mjs.map +1 -0
  324. package/resources/metadata.d.mts +2 -0
  325. package/resources/metadata.d.mts.map +1 -0
  326. package/resources/metadata.d.ts +2 -0
  327. package/resources/metadata.d.ts.map +1 -0
  328. package/resources/metadata.js +6 -0
  329. package/resources/metadata.js.map +1 -0
  330. package/resources/metadata.mjs +3 -0
  331. package/resources/metadata.mjs.map +1 -0
  332. package/resources/object-categories.d.mts +9 -2
  333. package/resources/object-categories.d.mts.map +1 -1
  334. package/resources/object-categories.d.ts +9 -2
  335. package/resources/object-categories.d.ts.map +1 -1
  336. package/resources/object-categories.js +5 -2
  337. package/resources/object-categories.js.map +1 -1
  338. package/resources/object-categories.mjs +5 -2
  339. package/resources/object-categories.mjs.map +1 -1
  340. package/resources/package-installs.d.mts +108 -0
  341. package/resources/package-installs.d.mts.map +1 -0
  342. package/resources/package-installs.d.ts +108 -0
  343. package/resources/package-installs.d.ts.map +1 -0
  344. package/resources/package-installs.js +25 -0
  345. package/resources/package-installs.js.map +1 -0
  346. package/resources/package-installs.mjs +21 -0
  347. package/resources/package-installs.mjs.map +1 -0
  348. package/resources/package-uninstalls.d.mts +128 -0
  349. package/resources/package-uninstalls.d.mts.map +1 -0
  350. package/resources/package-uninstalls.d.ts +128 -0
  351. package/resources/package-uninstalls.d.ts.map +1 -0
  352. package/resources/package-uninstalls.js +25 -0
  353. package/resources/package-uninstalls.js.map +1 -0
  354. package/resources/package-uninstalls.mjs +21 -0
  355. package/resources/package-uninstalls.mjs.map +1 -0
  356. package/resources/package-version-component-updates.d.mts +117 -0
  357. package/resources/package-version-component-updates.d.mts.map +1 -0
  358. package/resources/package-version-component-updates.d.ts +117 -0
  359. package/resources/package-version-component-updates.d.ts.map +1 -0
  360. package/resources/package-version-component-updates.js +33 -0
  361. package/resources/package-version-component-updates.js.map +1 -0
  362. package/resources/package-version-component-updates.mjs +29 -0
  363. package/resources/package-version-component-updates.mjs.map +1 -0
  364. package/resources/package-versions/index.d.mts +3 -0
  365. package/resources/package-versions/index.d.mts.map +1 -0
  366. package/resources/package-versions/index.d.ts +3 -0
  367. package/resources/package-versions/index.d.ts.map +1 -0
  368. package/resources/package-versions/index.js +9 -0
  369. package/resources/package-versions/index.js.map +1 -0
  370. package/resources/package-versions/index.mjs +4 -0
  371. package/resources/package-versions/index.mjs.map +1 -0
  372. package/resources/package-versions/next-versions.d.mts +70 -0
  373. package/resources/package-versions/next-versions.d.mts.map +1 -0
  374. package/resources/package-versions/next-versions.d.ts +70 -0
  375. package/resources/package-versions/next-versions.d.ts.map +1 -0
  376. package/resources/package-versions/next-versions.js +21 -0
  377. package/resources/package-versions/next-versions.js.map +1 -0
  378. package/resources/package-versions/next-versions.mjs +17 -0
  379. package/resources/package-versions/next-versions.mjs.map +1 -0
  380. package/resources/package-versions/package-versions.d.mts +68 -0
  381. package/resources/package-versions/package-versions.d.mts.map +1 -0
  382. package/resources/package-versions/package-versions.d.ts +68 -0
  383. package/resources/package-versions/package-versions.d.ts.map +1 -0
  384. package/resources/package-versions/package-versions.js +27 -0
  385. package/resources/package-versions/package-versions.js.map +1 -0
  386. package/resources/package-versions/package-versions.mjs +22 -0
  387. package/resources/package-versions/package-versions.mjs.map +1 -0
  388. package/resources/package-versions.d.mts +2 -0
  389. package/resources/package-versions.d.mts.map +1 -0
  390. package/resources/package-versions.d.ts +2 -0
  391. package/resources/package-versions.d.ts.map +1 -0
  392. package/resources/package-versions.js +6 -0
  393. package/resources/package-versions.js.map +1 -0
  394. package/resources/package-versions.mjs +3 -0
  395. package/resources/package-versions.mjs.map +1 -0
  396. package/resources/packages/packages.d.mts +4 -0
  397. package/resources/packages/packages.d.mts.map +1 -1
  398. package/resources/packages/packages.d.ts +4 -0
  399. package/resources/packages/packages.d.ts.map +1 -1
  400. package/resources/packages/packages.js.map +1 -1
  401. package/resources/packages/packages.mjs.map +1 -1
  402. package/resources/packages/versions.d.mts +12 -16
  403. package/resources/packages/versions.d.mts.map +1 -1
  404. package/resources/packages/versions.d.ts +12 -16
  405. package/resources/packages/versions.d.ts.map +1 -1
  406. package/resources/payroll-runs/payroll-runs.d.mts +5 -0
  407. package/resources/payroll-runs/payroll-runs.d.mts.map +1 -1
  408. package/resources/payroll-runs/payroll-runs.d.ts +5 -0
  409. package/resources/payroll-runs/payroll-runs.d.ts.map +1 -1
  410. package/resources/payroll-runs/payroll-runs.js.map +1 -1
  411. package/resources/payroll-runs/payroll-runs.mjs.map +1 -1
  412. package/resources/payroll-runs/worker-payroll-records.d.mts +4 -0
  413. package/resources/payroll-runs/worker-payroll-records.d.mts.map +1 -1
  414. package/resources/payroll-runs/worker-payroll-records.d.ts +4 -0
  415. package/resources/payroll-runs/worker-payroll-records.d.ts.map +1 -1
  416. package/resources/sandboxes.d.mts +668 -0
  417. package/resources/sandboxes.d.mts.map +1 -0
  418. package/resources/sandboxes.d.ts +668 -0
  419. package/resources/sandboxes.d.ts.map +1 -0
  420. package/resources/sandboxes.js +40 -0
  421. package/resources/sandboxes.js.map +1 -0
  422. package/resources/sandboxes.mjs +36 -0
  423. package/resources/sandboxes.mjs.map +1 -0
  424. package/resources/scheduled-job-assignments.d.mts +4 -0
  425. package/resources/scheduled-job-assignments.d.mts.map +1 -1
  426. package/resources/scheduled-job-assignments.d.ts +4 -0
  427. package/resources/scheduled-job-assignments.d.ts.map +1 -1
  428. package/resources/schedules.d.mts +4 -0
  429. package/resources/schedules.d.mts.map +1 -1
  430. package/resources/schedules.d.ts +4 -0
  431. package/resources/schedules.d.ts.map +1 -1
  432. package/resources/shift-inputs.d.mts +4 -0
  433. package/resources/shift-inputs.d.mts.map +1 -1
  434. package/resources/shift-inputs.d.ts +4 -0
  435. package/resources/shift-inputs.d.ts.map +1 -1
  436. package/resources/shiftassignments.d.mts +4 -0
  437. package/resources/shiftassignments.d.mts.map +1 -1
  438. package/resources/shiftassignments.d.ts +4 -0
  439. package/resources/shiftassignments.d.ts.map +1 -1
  440. package/resources/sites.d.mts +9 -2
  441. package/resources/sites.d.mts.map +1 -1
  442. package/resources/sites.d.ts +9 -2
  443. package/resources/sites.d.ts.map +1 -1
  444. package/resources/sites.js +2 -2
  445. package/resources/sites.js.map +1 -1
  446. package/resources/sites.mjs +2 -2
  447. package/resources/sites.mjs.map +1 -1
  448. package/resources/software-deployments.d.mts +4 -0
  449. package/resources/software-deployments.d.mts.map +1 -1
  450. package/resources/software-deployments.d.ts +4 -0
  451. package/resources/software-deployments.d.ts.map +1 -1
  452. package/resources/sso-me.d.mts +4 -0
  453. package/resources/sso-me.d.mts.map +1 -1
  454. package/resources/sso-me.d.ts +4 -0
  455. package/resources/sso-me.d.ts.map +1 -1
  456. package/resources/supergroups/exclusion-members.d.mts +5 -0
  457. package/resources/supergroups/exclusion-members.d.mts.map +1 -1
  458. package/resources/supergroups/exclusion-members.d.ts +5 -0
  459. package/resources/supergroups/exclusion-members.d.ts.map +1 -1
  460. package/resources/supergroups/inclusion-members.d.mts +5 -0
  461. package/resources/supergroups/inclusion-members.d.mts.map +1 -1
  462. package/resources/supergroups/inclusion-members.d.ts +5 -0
  463. package/resources/supergroups/inclusion-members.d.ts.map +1 -1
  464. package/resources/supergroups/members.d.mts +5 -0
  465. package/resources/supergroups/members.d.mts.map +1 -1
  466. package/resources/supergroups/members.d.ts +5 -0
  467. package/resources/supergroups/members.d.ts.map +1 -1
  468. package/resources/supergroups/supergroups.d.mts +5 -0
  469. package/resources/supergroups/supergroups.d.mts.map +1 -1
  470. package/resources/supergroups/supergroups.d.ts +5 -0
  471. package/resources/supergroups/supergroups.d.ts.map +1 -1
  472. package/resources/supergroups/supergroups.js.map +1 -1
  473. package/resources/supergroups/supergroups.mjs.map +1 -1
  474. package/resources/teams.d.mts +4 -0
  475. package/resources/teams.d.mts.map +1 -1
  476. package/resources/teams.d.ts +4 -0
  477. package/resources/teams.d.ts.map +1 -1
  478. package/resources/time-cards.d.mts +4 -0
  479. package/resources/time-cards.d.mts.map +1 -1
  480. package/resources/time-cards.d.ts +4 -0
  481. package/resources/time-cards.d.ts.map +1 -1
  482. package/resources/time-entries.d.mts +4 -0
  483. package/resources/time-entries.d.mts.map +1 -1
  484. package/resources/time-entries.d.ts +4 -0
  485. package/resources/time-entries.d.ts.map +1 -1
  486. package/resources/titles.d.mts +4 -0
  487. package/resources/titles.d.mts.map +1 -1
  488. package/resources/titles.d.ts +4 -0
  489. package/resources/titles.d.ts.map +1 -1
  490. package/resources/tracks.d.mts +4 -0
  491. package/resources/tracks.d.mts.map +1 -1
  492. package/resources/tracks.d.ts +4 -0
  493. package/resources/tracks.d.ts.map +1 -1
  494. package/resources/unassignedshifts.d.mts +4 -0
  495. package/resources/unassignedshifts.d.mts.map +1 -1
  496. package/resources/unassignedshifts.d.ts +4 -0
  497. package/resources/unassignedshifts.d.ts.map +1 -1
  498. package/resources/users.d.mts +4 -0
  499. package/resources/users.d.mts.map +1 -1
  500. package/resources/users.d.ts +4 -0
  501. package/resources/users.d.ts.map +1 -1
  502. package/resources/work-locations.d.mts +4 -0
  503. package/resources/work-locations.d.mts.map +1 -1
  504. package/resources/work-locations.d.ts +4 -0
  505. package/resources/work-locations.d.ts.map +1 -1
  506. package/resources/worker-changes.d.mts +4 -0
  507. package/resources/worker-changes.d.mts.map +1 -1
  508. package/resources/worker-changes.d.ts +4 -0
  509. package/resources/worker-changes.d.ts.map +1 -1
  510. package/resources/worker-time-splits.d.mts +4 -0
  511. package/resources/worker-time-splits.d.mts.map +1 -1
  512. package/resources/worker-time-splits.d.ts +4 -0
  513. package/resources/worker-time-splits.d.ts.map +1 -1
  514. package/resources/workers.d.mts +4 -0
  515. package/resources/workers.d.mts.map +1 -1
  516. package/resources/workers.d.ts +4 -0
  517. package/resources/workers.d.ts.map +1 -1
  518. package/src/client.ts +116 -0
  519. package/src/lib/manifest/_existing-component-fields.ts +1 -0
  520. package/src/lib/manifest/acp-agent.ts +207 -0
  521. package/src/lib/manifest/existing-manifest-context.ts +22 -0
  522. package/src/lib/manifest/index.ts +8 -0
  523. package/src/lib/manifest/manifest-builder.ts +1 -0
  524. package/src/resources/app-users.ts +5 -0
  525. package/src/resources/break-policies.ts +5 -0
  526. package/src/resources/break-types.ts +5 -0
  527. package/src/resources/business-partner-groups.ts +5 -0
  528. package/src/resources/business-partners.ts +5 -0
  529. package/src/resources/business-structure-paths.ts +5 -0
  530. package/src/resources/candidate-applications.ts +5 -0
  531. package/src/resources/candidates.ts +5 -0
  532. package/src/resources/companies.ts +5 -0
  533. package/src/resources/company-legal-entities.ts +5 -0
  534. package/src/resources/company-legal-entity-workers.ts +5 -0
  535. package/src/resources/compensation-bands-details.ts +5 -0
  536. package/src/resources/compensations.ts +5 -0
  537. package/src/resources/custom-fields.ts +5 -0
  538. package/src/resources/custom-objects/custom-objects.ts +19 -2
  539. package/src/resources/custom-objects/fields.ts +12 -1
  540. package/src/resources/custom-objects/index.ts +3 -0
  541. package/src/resources/custom-objects/records.ts +12 -1
  542. package/src/resources/custom-settings.ts +5 -0
  543. package/src/resources/departments.ts +5 -0
  544. package/src/resources/device-orders.ts +5 -0
  545. package/src/resources/devices.ts +5 -0
  546. package/src/resources/earning-types.ts +15 -1
  547. package/src/resources/earnings-inputs.ts +15 -1
  548. package/src/resources/employment-types.ts +5 -0
  549. package/src/resources/functions/executions.ts +7 -0
  550. package/src/resources/functions/functions.ts +7 -0
  551. package/src/resources/headcount-positions.ts +5 -0
  552. package/src/resources/headcount-priorities.ts +5 -0
  553. package/src/resources/index.ts +37 -0
  554. package/src/resources/job-assignments.ts +10 -0
  555. package/src/resources/job-codes.ts +10 -0
  556. package/src/resources/job-dimensions.ts +5 -0
  557. package/src/resources/job-functions.ts +5 -0
  558. package/src/resources/job-pay-rate-exceptions.ts +10 -0
  559. package/src/resources/job-requisitions.ts +5 -0
  560. package/src/resources/kiosk-badges.ts +5 -0
  561. package/src/resources/leave-accruals.ts +5 -0
  562. package/src/resources/leave-balances.ts +5 -0
  563. package/src/resources/leave-requests.ts +5 -0
  564. package/src/resources/leave-types.ts +5 -0
  565. package/src/resources/legal-entities.ts +5 -0
  566. package/src/resources/levels.ts +5 -0
  567. package/src/resources/location-factors.ts +5 -0
  568. package/src/resources/metadata/component-schemas.ts +109 -0
  569. package/src/resources/metadata/component-types.ts +56 -0
  570. package/src/resources/metadata/components.ts +630 -0
  571. package/src/resources/metadata/deployment-runs.ts +356 -0
  572. package/src/resources/metadata/index.ts +40 -0
  573. package/src/resources/metadata/metadata.ts +221 -0
  574. package/src/resources/metadata/schema.ts +105 -0
  575. package/src/resources/metadata/types.ts +55 -0
  576. package/src/resources/metadata/validation-runs.ts +356 -0
  577. package/src/resources/metadata.ts +3 -0
  578. package/src/resources/object-categories.ts +18 -2
  579. package/src/resources/package-installs.ts +143 -0
  580. package/src/resources/package-uninstalls.ts +168 -0
  581. package/src/resources/package-version-component-updates.ts +154 -0
  582. package/src/resources/package-versions/index.ts +8 -0
  583. package/src/resources/package-versions/next-versions.ts +95 -0
  584. package/src/resources/package-versions/package-versions.ts +100 -0
  585. package/src/resources/package-versions.ts +3 -0
  586. package/src/resources/packages/packages.ts +5 -0
  587. package/src/resources/packages/versions.ts +13 -18
  588. package/src/resources/payroll-runs/payroll-runs.ts +7 -0
  589. package/src/resources/payroll-runs/worker-payroll-records.ts +5 -0
  590. package/src/resources/sandboxes.ts +808 -0
  591. package/src/resources/scheduled-job-assignments.ts +5 -0
  592. package/src/resources/schedules.ts +5 -0
  593. package/src/resources/shift-inputs.ts +5 -0
  594. package/src/resources/shiftassignments.ts +5 -0
  595. package/src/resources/sites.ts +15 -2
  596. package/src/resources/software-deployments.ts +5 -0
  597. package/src/resources/sso-me.ts +5 -0
  598. package/src/resources/supergroups/exclusion-members.ts +7 -0
  599. package/src/resources/supergroups/inclusion-members.ts +7 -0
  600. package/src/resources/supergroups/members.ts +7 -0
  601. package/src/resources/supergroups/supergroups.ts +7 -0
  602. package/src/resources/teams.ts +5 -0
  603. package/src/resources/time-cards.ts +5 -0
  604. package/src/resources/time-entries.ts +5 -0
  605. package/src/resources/titles.ts +5 -0
  606. package/src/resources/tracks.ts +5 -0
  607. package/src/resources/unassignedshifts.ts +5 -0
  608. package/src/resources/users.ts +5 -0
  609. package/src/resources/work-locations.ts +5 -0
  610. package/src/resources/worker-changes.ts +5 -0
  611. package/src/resources/worker-time-splits.ts +5 -0
  612. package/src/resources/workers.ts +5 -0
  613. package/src/version.ts +1 -1
  614. package/version.d.mts +1 -1
  615. package/version.d.ts +1 -1
  616. package/version.js +1 -1
  617. package/version.mjs +1 -1
@@ -0,0 +1,275 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import { APIPromise } from "../../core/api-promise.mjs";
3
+ import { RequestOptions } from "../../internal/request-options.mjs";
4
+ /**
5
+ * Custom objects defined by the company
6
+ */
7
+ export declare class ValidationRuns extends APIResource {
8
+ /**
9
+ * Queue validation for a metadata component package and return a run id for
10
+ * polling.
11
+ *
12
+ * Requires the Metadata entitlement.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const response =
17
+ * await client.metadata.validationRuns.createV2({
18
+ * components: [
19
+ * {
20
+ * type: 'CUSTOM_OBJECT',
21
+ * api_name: 'purchase_order__c',
22
+ * name: 'Purchase Order',
23
+ * description: 'Tracks purchase requests',
24
+ * category_api_name: 'procurement__c',
25
+ * },
26
+ * {
27
+ * type: 'CUSTOM_OBJECT_FIELD',
28
+ * custom_object_api_name: 'purchase_order__c',
29
+ * field_api_name: 'amount__c',
30
+ * field_display_name: 'Amount',
31
+ * data_type: {
32
+ * field_type: 'CURRENCY',
33
+ * currency: 'USD',
34
+ * num_of_decimal_places: 2,
35
+ * },
36
+ * is_standard: false,
37
+ * },
38
+ * ],
39
+ * });
40
+ * ```
41
+ */
42
+ createV2(params: ValidationRunCreateV2Params, options?: RequestOptions): APIPromise<ValidationRunCreateV2Response>;
43
+ /**
44
+ * Poll a metadata validation run until the terminal field is true.
45
+ *
46
+ * Requires the Metadata entitlement.
47
+ *
48
+ * @example
49
+ * ```ts
50
+ * const response = await client.metadata.validationRuns.getV2(
51
+ * 'run_id',
52
+ * );
53
+ * ```
54
+ */
55
+ getV2(runID: string, options?: RequestOptions): APIPromise<ValidationRunGetV2Response>;
56
+ /**
57
+ * Queue validation for a metadata component package and return a run id for
58
+ * polling.
59
+ *
60
+ * Requires the Metadata entitlement.
61
+ *
62
+ * @example
63
+ * ```ts
64
+ * const validationRun =
65
+ * await client.metadata.validationRuns.create({
66
+ * components: [
67
+ * {
68
+ * type: 'CUSTOM_OBJECT',
69
+ * api_name: 'purchase_order__c',
70
+ * name: 'Purchase Order',
71
+ * description: 'Tracks purchase requests',
72
+ * category_api_name: 'procurement__c',
73
+ * },
74
+ * {
75
+ * type: 'CUSTOM_OBJECT_FIELD',
76
+ * custom_object_api_name: 'purchase_order__c',
77
+ * field_api_name: 'amount__c',
78
+ * field_display_name: 'Amount',
79
+ * data_type: {
80
+ * field_type: 'CURRENCY',
81
+ * currency: 'USD',
82
+ * num_of_decimal_places: 2,
83
+ * },
84
+ * is_standard: false,
85
+ * },
86
+ * ],
87
+ * });
88
+ * ```
89
+ */
90
+ create(params: ValidationRunCreateParams, options?: RequestOptions): APIPromise<ValidationRunCreateResponse>;
91
+ /**
92
+ * Poll a metadata validation run until the terminal field is true.
93
+ *
94
+ * Requires the Metadata entitlement.
95
+ *
96
+ * @example
97
+ * ```ts
98
+ * const validationRun =
99
+ * await client.metadata.validationRuns.get('run_id');
100
+ * ```
101
+ */
102
+ get(runID: string, options?: RequestOptions): APIPromise<ValidationRunGetResponse>;
103
+ }
104
+ export interface ValidationRunCreateV2Response {
105
+ /**
106
+ * Metadata run id.
107
+ */
108
+ id: string;
109
+ progress: {
110
+ [key: string]: unknown;
111
+ };
112
+ /**
113
+ * Suggested client polling delay in milliseconds.
114
+ */
115
+ retry_after_ms: number;
116
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'expired';
117
+ /**
118
+ * Whether the run has reached a terminal status.
119
+ */
120
+ terminal: boolean;
121
+ type: 'validation' | 'deployment';
122
+ created_at?: string | null;
123
+ error?: {
124
+ [key: string]: unknown;
125
+ } | null;
126
+ expires_at?: string | null;
127
+ finished_at?: string | null;
128
+ result?: {
129
+ [key: string]: unknown;
130
+ } | null;
131
+ started_at?: string | null;
132
+ updated_at?: string | null;
133
+ }
134
+ export interface ValidationRunGetV2Response {
135
+ /**
136
+ * Metadata run id.
137
+ */
138
+ id: string;
139
+ progress: {
140
+ [key: string]: unknown;
141
+ };
142
+ /**
143
+ * Suggested client polling delay in milliseconds.
144
+ */
145
+ retry_after_ms: number;
146
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'expired';
147
+ /**
148
+ * Whether the run has reached a terminal status.
149
+ */
150
+ terminal: boolean;
151
+ type: 'validation' | 'deployment';
152
+ created_at?: string | null;
153
+ error?: {
154
+ [key: string]: unknown;
155
+ } | null;
156
+ expires_at?: string | null;
157
+ finished_at?: string | null;
158
+ result?: {
159
+ [key: string]: unknown;
160
+ } | null;
161
+ started_at?: string | null;
162
+ updated_at?: string | null;
163
+ }
164
+ export interface ValidationRunCreateResponse {
165
+ /**
166
+ * Metadata run id.
167
+ */
168
+ id: string;
169
+ progress: {
170
+ [key: string]: unknown;
171
+ };
172
+ /**
173
+ * Suggested client polling delay in milliseconds.
174
+ */
175
+ retry_after_ms: number;
176
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'expired';
177
+ /**
178
+ * Whether the run has reached a terminal status.
179
+ */
180
+ terminal: boolean;
181
+ type: 'validation' | 'deployment';
182
+ created_at?: string | null;
183
+ error?: {
184
+ [key: string]: unknown;
185
+ } | null;
186
+ expires_at?: string | null;
187
+ finished_at?: string | null;
188
+ result?: {
189
+ [key: string]: unknown;
190
+ } | null;
191
+ started_at?: string | null;
192
+ updated_at?: string | null;
193
+ }
194
+ export interface ValidationRunGetResponse {
195
+ /**
196
+ * Metadata run id.
197
+ */
198
+ id: string;
199
+ progress: {
200
+ [key: string]: unknown;
201
+ };
202
+ /**
203
+ * Suggested client polling delay in milliseconds.
204
+ */
205
+ retry_after_ms: number;
206
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'expired';
207
+ /**
208
+ * Whether the run has reached a terminal status.
209
+ */
210
+ terminal: boolean;
211
+ type: 'validation' | 'deployment';
212
+ created_at?: string | null;
213
+ error?: {
214
+ [key: string]: unknown;
215
+ } | null;
216
+ expires_at?: string | null;
217
+ finished_at?: string | null;
218
+ result?: {
219
+ [key: string]: unknown;
220
+ } | null;
221
+ started_at?: string | null;
222
+ updated_at?: string | null;
223
+ }
224
+ export interface ValidationRunCreateV2Params {
225
+ /**
226
+ * Body param: Complete package of metadata components, including dependencies.
227
+ */
228
+ components: Array<ValidationRunCreateV2Params.Component>;
229
+ /**
230
+ * Header param: Optional idempotency key used to deduplicate retried create
231
+ * requests.
232
+ */
233
+ 'Idempotency-Key'?: string;
234
+ }
235
+ export declare namespace ValidationRunCreateV2Params {
236
+ /**
237
+ * A metadata component config. The `type` field selects the concrete component
238
+ * schema. Fetch type-specific fields from GET /metadata/schema/?type=<TYPE>.
239
+ */
240
+ interface Component {
241
+ /**
242
+ * Metadata component type, such as CUSTOM_OBJECT or CUSTOM_OBJECT_FIELD.
243
+ */
244
+ type: string;
245
+ [k: string]: unknown;
246
+ }
247
+ }
248
+ export interface ValidationRunCreateParams {
249
+ /**
250
+ * Body param: Complete package of metadata components, including dependencies.
251
+ */
252
+ components: Array<ValidationRunCreateParams.Component>;
253
+ /**
254
+ * Header param: Optional idempotency key used to deduplicate retried create
255
+ * requests.
256
+ */
257
+ 'Idempotency-Key'?: string;
258
+ }
259
+ export declare namespace ValidationRunCreateParams {
260
+ /**
261
+ * A metadata component config. The `type` field selects the concrete component
262
+ * schema. Fetch type-specific fields from GET /metadata/schema/?type=<TYPE>.
263
+ */
264
+ interface Component {
265
+ /**
266
+ * Metadata component type, such as CUSTOM_OBJECT or CUSTOM_OBJECT_FIELD.
267
+ */
268
+ type: string;
269
+ [k: string]: unknown;
270
+ }
271
+ }
272
+ export declare namespace ValidationRuns {
273
+ export { type ValidationRunCreateV2Response as ValidationRunCreateV2Response, type ValidationRunGetV2Response as ValidationRunGetV2Response, type ValidationRunCreateResponse as ValidationRunCreateResponse, type ValidationRunGetResponse as ValidationRunGetResponse, type ValidationRunCreateV2Params as ValidationRunCreateV2Params, type ValidationRunCreateParams as ValidationRunCreateParams, };
274
+ }
275
+ //# sourceMappingURL=validation-runs.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validation-runs.d.mts","sourceRoot":"","sources":["../../src/resources/metadata/validation-runs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACH,QAAQ,CACN,MAAM,EAAE,2BAA2B,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,6BAA6B,CAAC;IAY5C;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAItF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACH,MAAM,CACJ,MAAM,EAAE,yBAAyB,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,2BAA2B,CAAC;IAY1C;;;;;;;;;;OAUG;IACH,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;CAGnF;A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vD;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,yBAAiB,yBAAyB,CAAC;IACzC;;;OAGG;IACH,UAAiB,SAAS;QACxB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
@@ -0,0 +1,275 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import { APIPromise } from "../../core/api-promise.js";
3
+ import { RequestOptions } from "../../internal/request-options.js";
4
+ /**
5
+ * Custom objects defined by the company
6
+ */
7
+ export declare class ValidationRuns extends APIResource {
8
+ /**
9
+ * Queue validation for a metadata component package and return a run id for
10
+ * polling.
11
+ *
12
+ * Requires the Metadata entitlement.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const response =
17
+ * await client.metadata.validationRuns.createV2({
18
+ * components: [
19
+ * {
20
+ * type: 'CUSTOM_OBJECT',
21
+ * api_name: 'purchase_order__c',
22
+ * name: 'Purchase Order',
23
+ * description: 'Tracks purchase requests',
24
+ * category_api_name: 'procurement__c',
25
+ * },
26
+ * {
27
+ * type: 'CUSTOM_OBJECT_FIELD',
28
+ * custom_object_api_name: 'purchase_order__c',
29
+ * field_api_name: 'amount__c',
30
+ * field_display_name: 'Amount',
31
+ * data_type: {
32
+ * field_type: 'CURRENCY',
33
+ * currency: 'USD',
34
+ * num_of_decimal_places: 2,
35
+ * },
36
+ * is_standard: false,
37
+ * },
38
+ * ],
39
+ * });
40
+ * ```
41
+ */
42
+ createV2(params: ValidationRunCreateV2Params, options?: RequestOptions): APIPromise<ValidationRunCreateV2Response>;
43
+ /**
44
+ * Poll a metadata validation run until the terminal field is true.
45
+ *
46
+ * Requires the Metadata entitlement.
47
+ *
48
+ * @example
49
+ * ```ts
50
+ * const response = await client.metadata.validationRuns.getV2(
51
+ * 'run_id',
52
+ * );
53
+ * ```
54
+ */
55
+ getV2(runID: string, options?: RequestOptions): APIPromise<ValidationRunGetV2Response>;
56
+ /**
57
+ * Queue validation for a metadata component package and return a run id for
58
+ * polling.
59
+ *
60
+ * Requires the Metadata entitlement.
61
+ *
62
+ * @example
63
+ * ```ts
64
+ * const validationRun =
65
+ * await client.metadata.validationRuns.create({
66
+ * components: [
67
+ * {
68
+ * type: 'CUSTOM_OBJECT',
69
+ * api_name: 'purchase_order__c',
70
+ * name: 'Purchase Order',
71
+ * description: 'Tracks purchase requests',
72
+ * category_api_name: 'procurement__c',
73
+ * },
74
+ * {
75
+ * type: 'CUSTOM_OBJECT_FIELD',
76
+ * custom_object_api_name: 'purchase_order__c',
77
+ * field_api_name: 'amount__c',
78
+ * field_display_name: 'Amount',
79
+ * data_type: {
80
+ * field_type: 'CURRENCY',
81
+ * currency: 'USD',
82
+ * num_of_decimal_places: 2,
83
+ * },
84
+ * is_standard: false,
85
+ * },
86
+ * ],
87
+ * });
88
+ * ```
89
+ */
90
+ create(params: ValidationRunCreateParams, options?: RequestOptions): APIPromise<ValidationRunCreateResponse>;
91
+ /**
92
+ * Poll a metadata validation run until the terminal field is true.
93
+ *
94
+ * Requires the Metadata entitlement.
95
+ *
96
+ * @example
97
+ * ```ts
98
+ * const validationRun =
99
+ * await client.metadata.validationRuns.get('run_id');
100
+ * ```
101
+ */
102
+ get(runID: string, options?: RequestOptions): APIPromise<ValidationRunGetResponse>;
103
+ }
104
+ export interface ValidationRunCreateV2Response {
105
+ /**
106
+ * Metadata run id.
107
+ */
108
+ id: string;
109
+ progress: {
110
+ [key: string]: unknown;
111
+ };
112
+ /**
113
+ * Suggested client polling delay in milliseconds.
114
+ */
115
+ retry_after_ms: number;
116
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'expired';
117
+ /**
118
+ * Whether the run has reached a terminal status.
119
+ */
120
+ terminal: boolean;
121
+ type: 'validation' | 'deployment';
122
+ created_at?: string | null;
123
+ error?: {
124
+ [key: string]: unknown;
125
+ } | null;
126
+ expires_at?: string | null;
127
+ finished_at?: string | null;
128
+ result?: {
129
+ [key: string]: unknown;
130
+ } | null;
131
+ started_at?: string | null;
132
+ updated_at?: string | null;
133
+ }
134
+ export interface ValidationRunGetV2Response {
135
+ /**
136
+ * Metadata run id.
137
+ */
138
+ id: string;
139
+ progress: {
140
+ [key: string]: unknown;
141
+ };
142
+ /**
143
+ * Suggested client polling delay in milliseconds.
144
+ */
145
+ retry_after_ms: number;
146
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'expired';
147
+ /**
148
+ * Whether the run has reached a terminal status.
149
+ */
150
+ terminal: boolean;
151
+ type: 'validation' | 'deployment';
152
+ created_at?: string | null;
153
+ error?: {
154
+ [key: string]: unknown;
155
+ } | null;
156
+ expires_at?: string | null;
157
+ finished_at?: string | null;
158
+ result?: {
159
+ [key: string]: unknown;
160
+ } | null;
161
+ started_at?: string | null;
162
+ updated_at?: string | null;
163
+ }
164
+ export interface ValidationRunCreateResponse {
165
+ /**
166
+ * Metadata run id.
167
+ */
168
+ id: string;
169
+ progress: {
170
+ [key: string]: unknown;
171
+ };
172
+ /**
173
+ * Suggested client polling delay in milliseconds.
174
+ */
175
+ retry_after_ms: number;
176
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'expired';
177
+ /**
178
+ * Whether the run has reached a terminal status.
179
+ */
180
+ terminal: boolean;
181
+ type: 'validation' | 'deployment';
182
+ created_at?: string | null;
183
+ error?: {
184
+ [key: string]: unknown;
185
+ } | null;
186
+ expires_at?: string | null;
187
+ finished_at?: string | null;
188
+ result?: {
189
+ [key: string]: unknown;
190
+ } | null;
191
+ started_at?: string | null;
192
+ updated_at?: string | null;
193
+ }
194
+ export interface ValidationRunGetResponse {
195
+ /**
196
+ * Metadata run id.
197
+ */
198
+ id: string;
199
+ progress: {
200
+ [key: string]: unknown;
201
+ };
202
+ /**
203
+ * Suggested client polling delay in milliseconds.
204
+ */
205
+ retry_after_ms: number;
206
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'expired';
207
+ /**
208
+ * Whether the run has reached a terminal status.
209
+ */
210
+ terminal: boolean;
211
+ type: 'validation' | 'deployment';
212
+ created_at?: string | null;
213
+ error?: {
214
+ [key: string]: unknown;
215
+ } | null;
216
+ expires_at?: string | null;
217
+ finished_at?: string | null;
218
+ result?: {
219
+ [key: string]: unknown;
220
+ } | null;
221
+ started_at?: string | null;
222
+ updated_at?: string | null;
223
+ }
224
+ export interface ValidationRunCreateV2Params {
225
+ /**
226
+ * Body param: Complete package of metadata components, including dependencies.
227
+ */
228
+ components: Array<ValidationRunCreateV2Params.Component>;
229
+ /**
230
+ * Header param: Optional idempotency key used to deduplicate retried create
231
+ * requests.
232
+ */
233
+ 'Idempotency-Key'?: string;
234
+ }
235
+ export declare namespace ValidationRunCreateV2Params {
236
+ /**
237
+ * A metadata component config. The `type` field selects the concrete component
238
+ * schema. Fetch type-specific fields from GET /metadata/schema/?type=<TYPE>.
239
+ */
240
+ interface Component {
241
+ /**
242
+ * Metadata component type, such as CUSTOM_OBJECT or CUSTOM_OBJECT_FIELD.
243
+ */
244
+ type: string;
245
+ [k: string]: unknown;
246
+ }
247
+ }
248
+ export interface ValidationRunCreateParams {
249
+ /**
250
+ * Body param: Complete package of metadata components, including dependencies.
251
+ */
252
+ components: Array<ValidationRunCreateParams.Component>;
253
+ /**
254
+ * Header param: Optional idempotency key used to deduplicate retried create
255
+ * requests.
256
+ */
257
+ 'Idempotency-Key'?: string;
258
+ }
259
+ export declare namespace ValidationRunCreateParams {
260
+ /**
261
+ * A metadata component config. The `type` field selects the concrete component
262
+ * schema. Fetch type-specific fields from GET /metadata/schema/?type=<TYPE>.
263
+ */
264
+ interface Component {
265
+ /**
266
+ * Metadata component type, such as CUSTOM_OBJECT or CUSTOM_OBJECT_FIELD.
267
+ */
268
+ type: string;
269
+ [k: string]: unknown;
270
+ }
271
+ }
272
+ export declare namespace ValidationRuns {
273
+ export { type ValidationRunCreateV2Response as ValidationRunCreateV2Response, type ValidationRunGetV2Response as ValidationRunGetV2Response, type ValidationRunCreateResponse as ValidationRunCreateResponse, type ValidationRunGetResponse as ValidationRunGetResponse, type ValidationRunCreateV2Params as ValidationRunCreateV2Params, type ValidationRunCreateParams as ValidationRunCreateParams, };
274
+ }
275
+ //# sourceMappingURL=validation-runs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validation-runs.d.ts","sourceRoot":"","sources":["../../src/resources/metadata/validation-runs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACH,QAAQ,CACN,MAAM,EAAE,2BAA2B,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,6BAA6B,CAAC;IAY5C;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAItF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACH,MAAM,CACJ,MAAM,EAAE,yBAAyB,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,2BAA2B,CAAC;IAY1C;;;;;;;;;;OAUG;IACH,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EA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E,KAAK,CAAC,yBAAyB,CAAC,SAAS,CAAC,CAAC;IAEvD;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,yBAAiB,yBAAyB,CAAC;IACzC;;;OAGG;IACH,UAAiB,SAAS;QACxB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
@@ -0,0 +1,133 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ValidationRuns = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ const headers_1 = require("../../internal/headers.js");
7
+ const path_1 = require("../../internal/utils/path.js");
8
+ /**
9
+ * Custom objects defined by the company
10
+ */
11
+ class ValidationRuns extends resource_1.APIResource {
12
+ /**
13
+ * Queue validation for a metadata component package and return a run id for
14
+ * polling.
15
+ *
16
+ * Requires the Metadata entitlement.
17
+ *
18
+ * @example
19
+ * ```ts
20
+ * const response =
21
+ * await client.metadata.validationRuns.createV2({
22
+ * components: [
23
+ * {
24
+ * type: 'CUSTOM_OBJECT',
25
+ * api_name: 'purchase_order__c',
26
+ * name: 'Purchase Order',
27
+ * description: 'Tracks purchase requests',
28
+ * category_api_name: 'procurement__c',
29
+ * },
30
+ * {
31
+ * type: 'CUSTOM_OBJECT_FIELD',
32
+ * custom_object_api_name: 'purchase_order__c',
33
+ * field_api_name: 'amount__c',
34
+ * field_display_name: 'Amount',
35
+ * data_type: {
36
+ * field_type: 'CURRENCY',
37
+ * currency: 'USD',
38
+ * num_of_decimal_places: 2,
39
+ * },
40
+ * is_standard: false,
41
+ * },
42
+ * ],
43
+ * });
44
+ * ```
45
+ */
46
+ createV2(params, options) {
47
+ const { 'Idempotency-Key': idempotencyKey, ...body } = params;
48
+ return this._client.post('/metadata/v2/validation-runs/', {
49
+ body,
50
+ ...options,
51
+ headers: (0, headers_1.buildHeaders)([
52
+ { ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined) },
53
+ options?.headers,
54
+ ]),
55
+ });
56
+ }
57
+ /**
58
+ * Poll a metadata validation run until the terminal field is true.
59
+ *
60
+ * Requires the Metadata entitlement.
61
+ *
62
+ * @example
63
+ * ```ts
64
+ * const response = await client.metadata.validationRuns.getV2(
65
+ * 'run_id',
66
+ * );
67
+ * ```
68
+ */
69
+ getV2(runID, options) {
70
+ return this._client.get((0, path_1.path) `/metadata/v2/validation-runs/${runID}/`, options);
71
+ }
72
+ /**
73
+ * Queue validation for a metadata component package and return a run id for
74
+ * polling.
75
+ *
76
+ * Requires the Metadata entitlement.
77
+ *
78
+ * @example
79
+ * ```ts
80
+ * const validationRun =
81
+ * await client.metadata.validationRuns.create({
82
+ * components: [
83
+ * {
84
+ * type: 'CUSTOM_OBJECT',
85
+ * api_name: 'purchase_order__c',
86
+ * name: 'Purchase Order',
87
+ * description: 'Tracks purchase requests',
88
+ * category_api_name: 'procurement__c',
89
+ * },
90
+ * {
91
+ * type: 'CUSTOM_OBJECT_FIELD',
92
+ * custom_object_api_name: 'purchase_order__c',
93
+ * field_api_name: 'amount__c',
94
+ * field_display_name: 'Amount',
95
+ * data_type: {
96
+ * field_type: 'CURRENCY',
97
+ * currency: 'USD',
98
+ * num_of_decimal_places: 2,
99
+ * },
100
+ * is_standard: false,
101
+ * },
102
+ * ],
103
+ * });
104
+ * ```
105
+ */
106
+ create(params, options) {
107
+ const { 'Idempotency-Key': idempotencyKey, ...body } = params;
108
+ return this._client.post('/metadata/validation-runs/', {
109
+ body,
110
+ ...options,
111
+ headers: (0, headers_1.buildHeaders)([
112
+ { ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined) },
113
+ options?.headers,
114
+ ]),
115
+ });
116
+ }
117
+ /**
118
+ * Poll a metadata validation run until the terminal field is true.
119
+ *
120
+ * Requires the Metadata entitlement.
121
+ *
122
+ * @example
123
+ * ```ts
124
+ * const validationRun =
125
+ * await client.metadata.validationRuns.get('run_id');
126
+ * ```
127
+ */
128
+ get(runID, options) {
129
+ return this._client.get((0, path_1.path) `/metadata/validation-runs/${runID}/`, options);
130
+ }
131
+ }
132
+ exports.ValidationRuns = ValidationRuns;
133
+ //# sourceMappingURL=validation-runs.js.map