@rippling/rippling-sdk 0.2.0-alpha.108 → 0.2.0-alpha.110

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 (366) hide show
  1. package/client.d.mts +14 -0
  2. package/client.d.mts.map +1 -1
  3. package/client.d.ts +14 -0
  4. package/client.d.ts.map +1 -1
  5. package/client.js +18 -0
  6. package/client.js.map +1 -1
  7. package/client.mjs +18 -0
  8. package/client.mjs.map +1 -1
  9. package/index.d.mts +5 -0
  10. package/index.d.mts.map +1 -1
  11. package/index.d.ts +5 -0
  12. package/index.d.ts.map +1 -1
  13. package/index.js +11 -1
  14. package/index.js.map +1 -1
  15. package/index.mjs +5 -0
  16. package/index.mjs.map +1 -1
  17. package/lib/charts/builders.d.mts +18 -19
  18. package/lib/charts/builders.d.mts.map +1 -1
  19. package/lib/charts/builders.d.ts +18 -19
  20. package/lib/charts/builders.d.ts.map +1 -1
  21. package/lib/charts/builders.js +35 -28
  22. package/lib/charts/builders.js.map +1 -1
  23. package/lib/charts/builders.mjs +35 -28
  24. package/lib/charts/builders.mjs.map +1 -1
  25. package/lib/charts/describe.d.mts +6 -7
  26. package/lib/charts/describe.d.mts.map +1 -1
  27. package/lib/charts/describe.d.ts +6 -7
  28. package/lib/charts/describe.d.ts.map +1 -1
  29. package/lib/charts/describe.js +26 -27
  30. package/lib/charts/describe.js.map +1 -1
  31. package/lib/charts/describe.mjs +27 -28
  32. package/lib/charts/describe.mjs.map +1 -1
  33. package/lib/charts/errors.d.mts +2 -6
  34. package/lib/charts/errors.d.mts.map +1 -1
  35. package/lib/charts/errors.d.ts +2 -6
  36. package/lib/charts/errors.d.ts.map +1 -1
  37. package/lib/charts/errors.js +2 -6
  38. package/lib/charts/errors.js.map +1 -1
  39. package/lib/charts/errors.mjs +2 -6
  40. package/lib/charts/errors.mjs.map +1 -1
  41. package/lib/charts/evaluate.d.mts +5 -7
  42. package/lib/charts/evaluate.d.mts.map +1 -1
  43. package/lib/charts/evaluate.d.ts +5 -7
  44. package/lib/charts/evaluate.d.ts.map +1 -1
  45. package/lib/charts/evaluate.js +21 -35
  46. package/lib/charts/evaluate.js.map +1 -1
  47. package/lib/charts/evaluate.mjs +22 -36
  48. package/lib/charts/evaluate.mjs.map +1 -1
  49. package/lib/charts/schema.d.mts +8 -97
  50. package/lib/charts/schema.d.mts.map +1 -1
  51. package/lib/charts/schema.d.ts +8 -97
  52. package/lib/charts/schema.d.ts.map +1 -1
  53. package/lib/charts/schema.js +186 -65
  54. package/lib/charts/schema.js.map +1 -1
  55. package/lib/charts/schema.mjs +185 -65
  56. package/lib/charts/schema.mjs.map +1 -1
  57. package/lib/charts/types.d.mts +40 -25
  58. package/lib/charts/types.d.mts.map +1 -1
  59. package/lib/charts/types.d.ts +40 -25
  60. package/lib/charts/types.d.ts.map +1 -1
  61. package/lib/charts/types.js +8 -10
  62. package/lib/charts/types.js.map +1 -1
  63. package/lib/charts/types.mjs +8 -10
  64. package/lib/charts/types.mjs.map +1 -1
  65. package/lib/charts/visualization-grammar.d.mts +66 -0
  66. package/lib/charts/visualization-grammar.d.mts.map +1 -0
  67. package/lib/charts/visualization-grammar.d.ts +66 -0
  68. package/lib/charts/visualization-grammar.d.ts.map +1 -0
  69. package/lib/charts/visualization-grammar.js +70 -0
  70. package/lib/charts/visualization-grammar.js.map +1 -0
  71. package/lib/charts/visualization-grammar.mjs +67 -0
  72. package/lib/charts/visualization-grammar.mjs.map +1 -0
  73. package/lib/charts/vocabulary.d.mts +7 -0
  74. package/lib/charts/vocabulary.d.mts.map +1 -0
  75. package/lib/charts/vocabulary.d.ts +7 -0
  76. package/lib/charts/vocabulary.d.ts.map +1 -0
  77. package/lib/charts/vocabulary.js +10 -0
  78. package/lib/charts/vocabulary.js.map +1 -0
  79. package/lib/charts/vocabulary.mjs +7 -0
  80. package/lib/charts/vocabulary.mjs.map +1 -0
  81. package/lib/charts.d.mts +3 -3
  82. package/lib/charts.d.mts.map +1 -1
  83. package/lib/charts.d.ts +3 -3
  84. package/lib/charts.d.ts.map +1 -1
  85. package/lib/charts.js +2 -1
  86. package/lib/charts.js.map +1 -1
  87. package/lib/charts.mjs +1 -1
  88. package/lib/charts.mjs.map +1 -1
  89. package/lib/manifest/composition.d.mts +21 -0
  90. package/lib/manifest/composition.d.mts.map +1 -0
  91. package/lib/manifest/composition.d.ts +21 -0
  92. package/lib/manifest/composition.d.ts.map +1 -0
  93. package/lib/manifest/composition.js +103 -0
  94. package/lib/manifest/composition.js.map +1 -0
  95. package/lib/manifest/composition.mjs +99 -0
  96. package/lib/manifest/composition.mjs.map +1 -0
  97. package/lib/manifest/definitions/_object-records.d.mts +23 -0
  98. package/lib/manifest/definitions/_object-records.d.mts.map +1 -0
  99. package/lib/manifest/definitions/_object-records.d.ts +23 -0
  100. package/lib/manifest/definitions/_object-records.d.ts.map +1 -0
  101. package/lib/manifest/definitions/_object-records.js +151 -0
  102. package/lib/manifest/definitions/_object-records.js.map +1 -0
  103. package/lib/manifest/definitions/_object-records.mjs +147 -0
  104. package/lib/manifest/definitions/_object-records.mjs.map +1 -0
  105. package/lib/manifest/definitions/action.d.mts +7 -0
  106. package/lib/manifest/definitions/action.d.mts.map +1 -0
  107. package/lib/manifest/definitions/action.d.ts +7 -0
  108. package/lib/manifest/definitions/action.d.ts.map +1 -0
  109. package/lib/manifest/definitions/action.js +25 -0
  110. package/lib/manifest/definitions/action.js.map +1 -0
  111. package/lib/manifest/definitions/action.mjs +22 -0
  112. package/lib/manifest/definitions/action.mjs.map +1 -0
  113. package/lib/manifest/definitions/agent.d.mts +51 -0
  114. package/lib/manifest/definitions/agent.d.mts.map +1 -0
  115. package/lib/manifest/definitions/agent.d.ts +51 -0
  116. package/lib/manifest/definitions/agent.d.ts.map +1 -0
  117. package/lib/manifest/definitions/agent.js +65 -0
  118. package/lib/manifest/definitions/agent.js.map +1 -0
  119. package/lib/manifest/definitions/agent.mjs +59 -0
  120. package/lib/manifest/definitions/agent.mjs.map +1 -0
  121. package/lib/manifest/definitions/app.d.mts +3 -0
  122. package/lib/manifest/definitions/app.d.mts.map +1 -0
  123. package/lib/manifest/definitions/app.d.ts +3 -0
  124. package/lib/manifest/definitions/app.d.ts.map +1 -0
  125. package/lib/manifest/definitions/app.js +14 -0
  126. package/lib/manifest/definitions/app.js.map +1 -0
  127. package/lib/manifest/definitions/app.mjs +11 -0
  128. package/lib/manifest/definitions/app.mjs.map +1 -0
  129. package/lib/manifest/definitions/category.d.mts +9 -0
  130. package/lib/manifest/definitions/category.d.mts.map +1 -0
  131. package/lib/manifest/definitions/category.d.ts +9 -0
  132. package/lib/manifest/definitions/category.d.ts.map +1 -0
  133. package/lib/manifest/definitions/category.js +27 -0
  134. package/lib/manifest/definitions/category.js.map +1 -0
  135. package/lib/manifest/definitions/category.mjs +23 -0
  136. package/lib/manifest/definitions/category.mjs.map +1 -0
  137. package/lib/manifest/definitions/component.d.mts +101 -0
  138. package/lib/manifest/definitions/component.d.mts.map +1 -0
  139. package/lib/manifest/definitions/component.d.ts +101 -0
  140. package/lib/manifest/definitions/component.d.ts.map +1 -0
  141. package/lib/manifest/definitions/component.js +106 -0
  142. package/lib/manifest/definitions/component.js.map +1 -0
  143. package/lib/manifest/definitions/component.mjs +97 -0
  144. package/lib/manifest/definitions/component.mjs.map +1 -0
  145. package/lib/manifest/definitions/custom-field-section.d.mts +13 -0
  146. package/lib/manifest/definitions/custom-field-section.d.mts.map +1 -0
  147. package/lib/manifest/definitions/custom-field-section.d.ts +13 -0
  148. package/lib/manifest/definitions/custom-field-section.d.ts.map +1 -0
  149. package/lib/manifest/definitions/custom-field-section.js +15 -0
  150. package/lib/manifest/definitions/custom-field-section.js.map +1 -0
  151. package/lib/manifest/definitions/custom-field-section.mjs +12 -0
  152. package/lib/manifest/definitions/custom-field-section.mjs.map +1 -0
  153. package/lib/manifest/definitions/custom-field.d.mts +10 -0
  154. package/lib/manifest/definitions/custom-field.d.mts.map +1 -0
  155. package/lib/manifest/definitions/custom-field.d.ts +10 -0
  156. package/lib/manifest/definitions/custom-field.d.ts.map +1 -0
  157. package/lib/manifest/definitions/custom-field.js +18 -0
  158. package/lib/manifest/definitions/custom-field.js.map +1 -0
  159. package/lib/manifest/definitions/custom-field.mjs +15 -0
  160. package/lib/manifest/definitions/custom-field.mjs.map +1 -0
  161. package/lib/manifest/definitions/custom-object.d.mts +162 -0
  162. package/lib/manifest/definitions/custom-object.d.mts.map +1 -0
  163. package/lib/manifest/definitions/custom-object.d.ts +162 -0
  164. package/lib/manifest/definitions/custom-object.d.ts.map +1 -0
  165. package/lib/manifest/definitions/custom-object.js +412 -0
  166. package/lib/manifest/definitions/custom-object.js.map +1 -0
  167. package/lib/manifest/definitions/custom-object.mjs +386 -0
  168. package/lib/manifest/definitions/custom-object.mjs.map +1 -0
  169. package/lib/manifest/definitions/custom-skill.d.mts +8 -0
  170. package/lib/manifest/definitions/custom-skill.d.mts.map +1 -0
  171. package/lib/manifest/definitions/custom-skill.d.ts +8 -0
  172. package/lib/manifest/definitions/custom-skill.d.ts.map +1 -0
  173. package/lib/manifest/definitions/custom-skill.js +15 -0
  174. package/lib/manifest/definitions/custom-skill.js.map +1 -0
  175. package/lib/manifest/definitions/custom-skill.mjs +12 -0
  176. package/lib/manifest/definitions/custom-skill.mjs.map +1 -0
  177. package/lib/manifest/definitions/field-section.d.mts +7 -0
  178. package/lib/manifest/definitions/field-section.d.mts.map +1 -0
  179. package/lib/manifest/definitions/field-section.d.ts +7 -0
  180. package/lib/manifest/definitions/field-section.d.ts.map +1 -0
  181. package/lib/manifest/definitions/field-section.js +16 -0
  182. package/lib/manifest/definitions/field-section.js.map +1 -0
  183. package/lib/manifest/definitions/field-section.mjs +13 -0
  184. package/lib/manifest/definitions/field-section.mjs.map +1 -0
  185. package/lib/manifest/definitions/field.d.mts +38 -0
  186. package/lib/manifest/definitions/field.d.mts.map +1 -0
  187. package/lib/manifest/definitions/field.d.ts +38 -0
  188. package/lib/manifest/definitions/field.d.ts.map +1 -0
  189. package/lib/manifest/definitions/field.js +50 -0
  190. package/lib/manifest/definitions/field.js.map +1 -0
  191. package/lib/manifest/definitions/field.mjs +45 -0
  192. package/lib/manifest/definitions/field.mjs.map +1 -0
  193. package/lib/manifest/definitions/function.d.mts +61 -0
  194. package/lib/manifest/definitions/function.d.mts.map +1 -0
  195. package/lib/manifest/definitions/function.d.ts +61 -0
  196. package/lib/manifest/definitions/function.d.ts.map +1 -0
  197. package/lib/manifest/definitions/function.js +79 -0
  198. package/lib/manifest/definitions/function.js.map +1 -0
  199. package/lib/manifest/definitions/function.mjs +73 -0
  200. package/lib/manifest/definitions/function.mjs.map +1 -0
  201. package/lib/manifest/definitions/index.d.mts +22 -0
  202. package/lib/manifest/definitions/index.d.mts.map +1 -0
  203. package/lib/manifest/definitions/index.d.ts +22 -0
  204. package/lib/manifest/definitions/index.d.ts.map +1 -0
  205. package/lib/manifest/definitions/index.js +64 -0
  206. package/lib/manifest/definitions/index.js.map +1 -0
  207. package/lib/manifest/definitions/index.mjs +22 -0
  208. package/lib/manifest/definitions/index.mjs.map +1 -0
  209. package/lib/manifest/definitions/list-view.d.mts +9 -0
  210. package/lib/manifest/definitions/list-view.d.mts.map +1 -0
  211. package/lib/manifest/definitions/list-view.d.ts +9 -0
  212. package/lib/manifest/definitions/list-view.d.ts.map +1 -0
  213. package/lib/manifest/definitions/list-view.js +25 -0
  214. package/lib/manifest/definitions/list-view.js.map +1 -0
  215. package/lib/manifest/definitions/list-view.mjs +22 -0
  216. package/lib/manifest/definitions/list-view.mjs.map +1 -0
  217. package/lib/manifest/definitions/object-search-config.d.mts +13 -0
  218. package/lib/manifest/definitions/object-search-config.d.mts.map +1 -0
  219. package/lib/manifest/definitions/object-search-config.d.ts +13 -0
  220. package/lib/manifest/definitions/object-search-config.d.ts.map +1 -0
  221. package/lib/manifest/definitions/object-search-config.js +25 -0
  222. package/lib/manifest/definitions/object-search-config.js.map +1 -0
  223. package/lib/manifest/definitions/object-search-config.mjs +22 -0
  224. package/lib/manifest/definitions/object-search-config.mjs.map +1 -0
  225. package/lib/manifest/definitions/object-settings.d.mts +24 -0
  226. package/lib/manifest/definitions/object-settings.d.mts.map +1 -0
  227. package/lib/manifest/definitions/object-settings.d.ts +24 -0
  228. package/lib/manifest/definitions/object-settings.d.ts.map +1 -0
  229. package/lib/manifest/definitions/object-settings.js +32 -0
  230. package/lib/manifest/definitions/object-settings.js.map +1 -0
  231. package/lib/manifest/definitions/object-settings.mjs +29 -0
  232. package/lib/manifest/definitions/object-settings.mjs.map +1 -0
  233. package/lib/manifest/definitions/page-layout.d.mts +21 -0
  234. package/lib/manifest/definitions/page-layout.d.mts.map +1 -0
  235. package/lib/manifest/definitions/page-layout.d.ts +21 -0
  236. package/lib/manifest/definitions/page-layout.d.ts.map +1 -0
  237. package/lib/manifest/definitions/page-layout.js +155 -0
  238. package/lib/manifest/definitions/page-layout.js.map +1 -0
  239. package/lib/manifest/definitions/page-layout.mjs +152 -0
  240. package/lib/manifest/definitions/page-layout.mjs.map +1 -0
  241. package/lib/manifest/definitions/page.d.mts +8 -0
  242. package/lib/manifest/definitions/page.d.mts.map +1 -0
  243. package/lib/manifest/definitions/page.d.ts +8 -0
  244. package/lib/manifest/definitions/page.d.ts.map +1 -0
  245. package/lib/manifest/definitions/page.js +15 -0
  246. package/lib/manifest/definitions/page.js.map +1 -0
  247. package/lib/manifest/definitions/page.mjs +12 -0
  248. package/lib/manifest/definitions/page.mjs.map +1 -0
  249. package/lib/manifest/definitions/record-triggered-flow.d.mts +24 -0
  250. package/lib/manifest/definitions/record-triggered-flow.d.mts.map +1 -0
  251. package/lib/manifest/definitions/record-triggered-flow.d.ts +24 -0
  252. package/lib/manifest/definitions/record-triggered-flow.d.ts.map +1 -0
  253. package/lib/manifest/definitions/record-triggered-flow.js +28 -0
  254. package/lib/manifest/definitions/record-triggered-flow.js.map +1 -0
  255. package/lib/manifest/definitions/record-triggered-flow.mjs +25 -0
  256. package/lib/manifest/definitions/record-triggered-flow.mjs.map +1 -0
  257. package/lib/manifest/definitions/validation.d.mts +8 -0
  258. package/lib/manifest/definitions/validation.d.mts.map +1 -0
  259. package/lib/manifest/definitions/validation.d.ts +8 -0
  260. package/lib/manifest/definitions/validation.d.ts.map +1 -0
  261. package/lib/manifest/definitions/validation.js +24 -0
  262. package/lib/manifest/definitions/validation.js.map +1 -0
  263. package/lib/manifest/definitions/validation.mjs +21 -0
  264. package/lib/manifest/definitions/validation.mjs.map +1 -0
  265. package/lib/manifest/definitions/workflow.d.mts +10 -0
  266. package/lib/manifest/definitions/workflow.d.mts.map +1 -0
  267. package/lib/manifest/definitions/workflow.d.ts +10 -0
  268. package/lib/manifest/definitions/workflow.d.ts.map +1 -0
  269. package/lib/manifest/definitions/workflow.js +33 -0
  270. package/lib/manifest/definitions/workflow.js.map +1 -0
  271. package/lib/manifest/definitions/workflow.mjs +29 -0
  272. package/lib/manifest/definitions/workflow.mjs.map +1 -0
  273. package/lib/manifest/index.d.mts +3 -0
  274. package/lib/manifest/index.d.mts.map +1 -1
  275. package/lib/manifest/index.d.ts +3 -0
  276. package/lib/manifest/index.d.ts.map +1 -1
  277. package/lib/manifest/index.js +4 -0
  278. package/lib/manifest/index.js.map +1 -1
  279. package/lib/manifest/index.mjs +3 -0
  280. package/lib/manifest/index.mjs.map +1 -1
  281. package/lib/manifest/package-manifest.d.mts +17 -0
  282. package/lib/manifest/package-manifest.d.mts.map +1 -0
  283. package/lib/manifest/package-manifest.d.ts +17 -0
  284. package/lib/manifest/package-manifest.d.ts.map +1 -0
  285. package/lib/manifest/package-manifest.js +26 -0
  286. package/lib/manifest/package-manifest.js.map +1 -0
  287. package/lib/manifest/package-manifest.mjs +23 -0
  288. package/lib/manifest/package-manifest.mjs.map +1 -0
  289. package/package.json +4 -2
  290. package/resources/index.d.mts +1 -0
  291. package/resources/index.d.mts.map +1 -1
  292. package/resources/index.d.ts +1 -0
  293. package/resources/index.d.ts.map +1 -1
  294. package/resources/index.js +4 -2
  295. package/resources/index.js.map +1 -1
  296. package/resources/index.mjs +1 -0
  297. package/resources/index.mjs.map +1 -1
  298. package/resources/reimbursements.d.mts +1 -1
  299. package/resources/reimbursements.d.ts +1 -1
  300. package/resources/reimbursements.js +1 -1
  301. package/resources/reimbursements.mjs +1 -1
  302. package/resources/spend-categories.d.mts +140 -0
  303. package/resources/spend-categories.d.mts.map +1 -0
  304. package/resources/spend-categories.d.ts +140 -0
  305. package/resources/spend-categories.d.ts.map +1 -0
  306. package/resources/spend-categories.js +83 -0
  307. package/resources/spend-categories.js.map +1 -0
  308. package/resources/spend-categories.mjs +79 -0
  309. package/resources/spend-categories.mjs.map +1 -0
  310. package/src/client.ts +41 -0
  311. package/src/index.ts +17 -0
  312. package/src/lib/charts/README.md +35 -28
  313. package/src/lib/charts/agent-reference.md +73 -0
  314. package/src/lib/charts/builders.ts +51 -35
  315. package/src/lib/charts/capabilities.json +96 -0
  316. package/src/lib/charts/describe.ts +31 -29
  317. package/src/lib/charts/errors.ts +2 -6
  318. package/src/lib/charts/evaluate.ts +25 -38
  319. package/src/lib/charts/schema.ts +232 -66
  320. package/src/lib/charts/types.ts +42 -31
  321. package/src/lib/charts/visualization-grammar.ts +67 -0
  322. package/src/lib/charts/vocabulary.ts +7 -0
  323. package/src/lib/charts.ts +8 -1
  324. package/src/lib/manifest/composition.ts +133 -0
  325. package/src/lib/manifest/definitions/README.md +89 -0
  326. package/src/lib/manifest/definitions/_object-records.ts +218 -0
  327. package/src/lib/manifest/definitions/action.ts +31 -0
  328. package/src/lib/manifest/definitions/agent.ts +149 -0
  329. package/src/lib/manifest/definitions/app.ts +12 -0
  330. package/src/lib/manifest/definitions/category.ts +35 -0
  331. package/src/lib/manifest/definitions/component.ts +241 -0
  332. package/src/lib/manifest/definitions/custom-field-section.ts +39 -0
  333. package/src/lib/manifest/definitions/custom-field.ts +32 -0
  334. package/src/lib/manifest/definitions/custom-object.ts +786 -0
  335. package/src/lib/manifest/definitions/custom-skill.ts +28 -0
  336. package/src/lib/manifest/definitions/field-section.ts +31 -0
  337. package/src/lib/manifest/definitions/field.ts +119 -0
  338. package/src/lib/manifest/definitions/function.ts +198 -0
  339. package/src/lib/manifest/definitions/index.ts +91 -0
  340. package/src/lib/manifest/definitions/list-view.ts +48 -0
  341. package/src/lib/manifest/definitions/object-search-config.ts +44 -0
  342. package/src/lib/manifest/definitions/object-settings.ts +61 -0
  343. package/src/lib/manifest/definitions/page-layout.ts +218 -0
  344. package/src/lib/manifest/definitions/page.ts +28 -0
  345. package/src/lib/manifest/definitions/record-triggered-flow.ts +71 -0
  346. package/src/lib/manifest/definitions/validation.ts +46 -0
  347. package/src/lib/manifest/definitions/workflow.ts +62 -0
  348. package/src/lib/manifest/index.ts +4 -0
  349. package/src/lib/manifest/package-manifest.ts +40 -0
  350. package/src/resources/index.ts +7 -0
  351. package/src/resources/reimbursements.ts +1 -1
  352. package/src/resources/spend-categories.ts +175 -0
  353. package/src/version.ts +1 -1
  354. package/version.d.mts +1 -1
  355. package/version.d.ts +1 -1
  356. package/version.js +1 -1
  357. package/version.mjs +1 -1
  358. package/lib/charts/guards.d.mts +0 -15
  359. package/lib/charts/guards.d.mts.map +0 -1
  360. package/lib/charts/guards.d.ts +0 -15
  361. package/lib/charts/guards.d.ts.map +0 -1
  362. package/lib/charts/guards.js +0 -38
  363. package/lib/charts/guards.js.map +0 -1
  364. package/lib/charts/guards.mjs +0 -34
  365. package/lib/charts/guards.mjs.map +0 -1
  366. package/src/lib/charts/guards.ts +0 -42
@@ -0,0 +1,140 @@
1
+ import { APIResource } from "../core/resource.mjs";
2
+ import * as BusinessPartnersAPI from "./business-partners.mjs";
3
+ import { APIPromise } from "../core/api-promise.mjs";
4
+ import { PageCursorURL, PagePromise } from "../core/pagination.mjs";
5
+ import { RequestOptions } from "../internal/request-options.mjs";
6
+ export declare class SpendCategories extends APIResource {
7
+ /**
8
+ * A list of spend categories.
9
+ *
10
+ * - Requires: `Internal Testing`
11
+ * - Filterable fields: `name`
12
+ * - Sortable fields: `id`, `created_at`, `updated_at`
13
+ *
14
+ * @example HTTP
15
+ * Representative request and response shapes.
16
+ * ```
17
+ * GET /spend-categories/?filter=filter&order_by=order_by&limit=50&cursor=cursor HTTP/1.1
18
+ * Host: rest.ripplingapis.com
19
+ * Accept: application/json
20
+ * Rippling-Api-Version: 2024-08-01
21
+ *
22
+ * HTTP/1.1 200 OK
23
+ * Content-Type: application/json
24
+ *
25
+ * {
26
+ * "__meta": {
27
+ * "redacted_fields": [
28
+ * {
29
+ * "name": "date_of_birth",
30
+ * "reason": "Insufficient entitlements"
31
+ * }
32
+ * ]
33
+ * },
34
+ * "results": [
35
+ * {
36
+ * "id": "string",
37
+ * "created_at": "string",
38
+ * "updated_at": "string",
39
+ * "name": "string",
40
+ * "active": false
41
+ * }
42
+ * ],
43
+ * "next_link": "string"
44
+ * }
45
+ * ```
46
+ */
47
+ list(query?: SpendCategoryListParams | null | undefined, options?: RequestOptions): PagePromise<SpendCategoryListResponsesPageCursorURL, SpendCategoryListResponse>;
48
+ /**
49
+ * Retrieve a specific spend category
50
+ *
51
+ * @example HTTP
52
+ * Representative request and response shapes.
53
+ * ```
54
+ * GET /spend-categories/{id}/ HTTP/1.1
55
+ * Host: rest.ripplingapis.com
56
+ * Accept: application/json
57
+ * Rippling-Api-Version: 2024-08-01
58
+ *
59
+ * HTTP/1.1 200 OK
60
+ * Content-Type: application/json
61
+ *
62
+ * {
63
+ * "__meta": {
64
+ * "redacted_fields": [
65
+ * {}
66
+ * ]
67
+ * }
68
+ * }
69
+ * ```
70
+ */
71
+ retrieve(id: string, options?: RequestOptions): APIPromise<SpendCategoryRetrieveResponse>;
72
+ }
73
+ export type SpendCategoryListResponsesPageCursorURL = PageCursorURL<SpendCategoryListResponse>;
74
+ /**
75
+ * A Spend category used to classify transaction line items.
76
+ *
77
+ * Inactive categories are included so historical transactions can still resolve their category.
78
+ */
79
+ export interface SpendCategoryListResponse {
80
+ /**
81
+ * Identifier field
82
+ */
83
+ id: string;
84
+ /**
85
+ * Record creation date
86
+ */
87
+ created_at: string;
88
+ /**
89
+ * Record update date
90
+ */
91
+ updated_at: string;
92
+ /**
93
+ * Whether the category is active. Inactive categories remain available for
94
+ * historical references.
95
+ */
96
+ active?: boolean;
97
+ /**
98
+ * Name of the Spend category.
99
+ */
100
+ name?: string;
101
+ }
102
+ /**
103
+ * Meta information for the response.
104
+ */
105
+ export interface SpendCategoryRetrieveResponse extends BusinessPartnersAPI.Meta {
106
+ /**
107
+ * Identifier field
108
+ */
109
+ id: string;
110
+ /**
111
+ * Record creation date
112
+ */
113
+ created_at: string;
114
+ /**
115
+ * Record update date
116
+ */
117
+ updated_at: string;
118
+ /**
119
+ * Whether the category is active. Inactive categories remain available for
120
+ * historical references.
121
+ */
122
+ active?: boolean;
123
+ /**
124
+ * Name of the Spend category.
125
+ */
126
+ name?: string;
127
+ }
128
+ export interface SpendCategoryListParams {
129
+ cursor?: string;
130
+ filter?: string;
131
+ /**
132
+ * The maximum number of results to return. Defaults to 50. Maximum is 100.
133
+ */
134
+ limit?: number;
135
+ order_by?: string;
136
+ }
137
+ export declare namespace SpendCategories {
138
+ export { type SpendCategoryListResponse as SpendCategoryListResponse, type SpendCategoryRetrieveResponse as SpendCategoryRetrieveResponse, type SpendCategoryListResponsesPageCursorURL as SpendCategoryListResponsesPageCursorURL, type SpendCategoryListParams as SpendCategoryListParams, };
139
+ }
140
+ //# sourceMappingURL=spend-categories.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spend-categories.d.mts","sourceRoot":"","sources":["../src/resources/spend-categories.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,KAAK,mBAAmB,gCAA4B;AAC3D,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,+BAA2B;AAChE,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuCG;IACH,IAAI,CACF,KAAK,GAAE,uBAAuB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,uCAAuC,EAAE,yBAAyB,CAAC;IAOlF;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,6BAA6B,CAAC;CAG1F;AAED,MAAM,MAAM,uCAAuC,GAAG,aAAa,CAAC,yBAAyB,CAAC,CAAC;AAE/F;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,6BAA8B,SAAQ,mBAAmB,CAAC,IAAI;IAC7E;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,uBAAuB;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,uCAAuC,IAAI,uCAAuC,EACvF,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
@@ -0,0 +1,140 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import * as BusinessPartnersAPI from "./business-partners.js";
3
+ import { APIPromise } from "../core/api-promise.js";
4
+ import { PageCursorURL, PagePromise } from "../core/pagination.js";
5
+ import { RequestOptions } from "../internal/request-options.js";
6
+ export declare class SpendCategories extends APIResource {
7
+ /**
8
+ * A list of spend categories.
9
+ *
10
+ * - Requires: `Internal Testing`
11
+ * - Filterable fields: `name`
12
+ * - Sortable fields: `id`, `created_at`, `updated_at`
13
+ *
14
+ * @example HTTP
15
+ * Representative request and response shapes.
16
+ * ```
17
+ * GET /spend-categories/?filter=filter&order_by=order_by&limit=50&cursor=cursor HTTP/1.1
18
+ * Host: rest.ripplingapis.com
19
+ * Accept: application/json
20
+ * Rippling-Api-Version: 2024-08-01
21
+ *
22
+ * HTTP/1.1 200 OK
23
+ * Content-Type: application/json
24
+ *
25
+ * {
26
+ * "__meta": {
27
+ * "redacted_fields": [
28
+ * {
29
+ * "name": "date_of_birth",
30
+ * "reason": "Insufficient entitlements"
31
+ * }
32
+ * ]
33
+ * },
34
+ * "results": [
35
+ * {
36
+ * "id": "string",
37
+ * "created_at": "string",
38
+ * "updated_at": "string",
39
+ * "name": "string",
40
+ * "active": false
41
+ * }
42
+ * ],
43
+ * "next_link": "string"
44
+ * }
45
+ * ```
46
+ */
47
+ list(query?: SpendCategoryListParams | null | undefined, options?: RequestOptions): PagePromise<SpendCategoryListResponsesPageCursorURL, SpendCategoryListResponse>;
48
+ /**
49
+ * Retrieve a specific spend category
50
+ *
51
+ * @example HTTP
52
+ * Representative request and response shapes.
53
+ * ```
54
+ * GET /spend-categories/{id}/ HTTP/1.1
55
+ * Host: rest.ripplingapis.com
56
+ * Accept: application/json
57
+ * Rippling-Api-Version: 2024-08-01
58
+ *
59
+ * HTTP/1.1 200 OK
60
+ * Content-Type: application/json
61
+ *
62
+ * {
63
+ * "__meta": {
64
+ * "redacted_fields": [
65
+ * {}
66
+ * ]
67
+ * }
68
+ * }
69
+ * ```
70
+ */
71
+ retrieve(id: string, options?: RequestOptions): APIPromise<SpendCategoryRetrieveResponse>;
72
+ }
73
+ export type SpendCategoryListResponsesPageCursorURL = PageCursorURL<SpendCategoryListResponse>;
74
+ /**
75
+ * A Spend category used to classify transaction line items.
76
+ *
77
+ * Inactive categories are included so historical transactions can still resolve their category.
78
+ */
79
+ export interface SpendCategoryListResponse {
80
+ /**
81
+ * Identifier field
82
+ */
83
+ id: string;
84
+ /**
85
+ * Record creation date
86
+ */
87
+ created_at: string;
88
+ /**
89
+ * Record update date
90
+ */
91
+ updated_at: string;
92
+ /**
93
+ * Whether the category is active. Inactive categories remain available for
94
+ * historical references.
95
+ */
96
+ active?: boolean;
97
+ /**
98
+ * Name of the Spend category.
99
+ */
100
+ name?: string;
101
+ }
102
+ /**
103
+ * Meta information for the response.
104
+ */
105
+ export interface SpendCategoryRetrieveResponse extends BusinessPartnersAPI.Meta {
106
+ /**
107
+ * Identifier field
108
+ */
109
+ id: string;
110
+ /**
111
+ * Record creation date
112
+ */
113
+ created_at: string;
114
+ /**
115
+ * Record update date
116
+ */
117
+ updated_at: string;
118
+ /**
119
+ * Whether the category is active. Inactive categories remain available for
120
+ * historical references.
121
+ */
122
+ active?: boolean;
123
+ /**
124
+ * Name of the Spend category.
125
+ */
126
+ name?: string;
127
+ }
128
+ export interface SpendCategoryListParams {
129
+ cursor?: string;
130
+ filter?: string;
131
+ /**
132
+ * The maximum number of results to return. Defaults to 50. Maximum is 100.
133
+ */
134
+ limit?: number;
135
+ order_by?: string;
136
+ }
137
+ export declare namespace SpendCategories {
138
+ export { type SpendCategoryListResponse as SpendCategoryListResponse, type SpendCategoryRetrieveResponse as SpendCategoryRetrieveResponse, type SpendCategoryListResponsesPageCursorURL as SpendCategoryListResponsesPageCursorURL, type SpendCategoryListParams as SpendCategoryListParams, };
139
+ }
140
+ //# sourceMappingURL=spend-categories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spend-categories.d.ts","sourceRoot":"","sources":["../src/resources/spend-categories.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,mBAAmB,+BAA4B;AAC3D,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,8BAA2B;AAChE,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuCG;IACH,IAAI,CACF,KAAK,GAAE,uBAAuB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,uCAAuC,EAAE,yBAAyB,CAAC;IAOlF;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,6BAA6B,CAAC;CAG1F;AAED,MAAM,MAAM,uCAAuC,GAAG,aAAa,CAAC,yBAAyB,CAAC,CAAC;AAE/F;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,6BAA8B,SAAQ,mBAAmB,CAAC,IAAI;IAC7E;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,uBAAuB;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,uCAAuC,IAAI,uCAAuC,EACvF,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
@@ -0,0 +1,83 @@
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.SpendCategories = void 0;
5
+ const resource_1 = require("../core/resource.js");
6
+ const pagination_1 = require("../core/pagination.js");
7
+ const path_1 = require("../internal/utils/path.js");
8
+ class SpendCategories extends resource_1.APIResource {
9
+ /**
10
+ * A list of spend categories.
11
+ *
12
+ * - Requires: `Internal Testing`
13
+ * - Filterable fields: `name`
14
+ * - Sortable fields: `id`, `created_at`, `updated_at`
15
+ *
16
+ * @example HTTP
17
+ * Representative request and response shapes.
18
+ * ```
19
+ * GET /spend-categories/?filter=filter&order_by=order_by&limit=50&cursor=cursor HTTP/1.1
20
+ * Host: rest.ripplingapis.com
21
+ * Accept: application/json
22
+ * Rippling-Api-Version: 2024-08-01
23
+ *
24
+ * HTTP/1.1 200 OK
25
+ * Content-Type: application/json
26
+ *
27
+ * {
28
+ * "__meta": {
29
+ * "redacted_fields": [
30
+ * {
31
+ * "name": "date_of_birth",
32
+ * "reason": "Insufficient entitlements"
33
+ * }
34
+ * ]
35
+ * },
36
+ * "results": [
37
+ * {
38
+ * "id": "string",
39
+ * "created_at": "string",
40
+ * "updated_at": "string",
41
+ * "name": "string",
42
+ * "active": false
43
+ * }
44
+ * ],
45
+ * "next_link": "string"
46
+ * }
47
+ * ```
48
+ */
49
+ list(query = {}, options) {
50
+ return this._client.getAPIList('/spend-categories/', (pagination_1.PageCursorURL), {
51
+ query,
52
+ ...options,
53
+ });
54
+ }
55
+ /**
56
+ * Retrieve a specific spend category
57
+ *
58
+ * @example HTTP
59
+ * Representative request and response shapes.
60
+ * ```
61
+ * GET /spend-categories/{id}/ HTTP/1.1
62
+ * Host: rest.ripplingapis.com
63
+ * Accept: application/json
64
+ * Rippling-Api-Version: 2024-08-01
65
+ *
66
+ * HTTP/1.1 200 OK
67
+ * Content-Type: application/json
68
+ *
69
+ * {
70
+ * "__meta": {
71
+ * "redacted_fields": [
72
+ * {}
73
+ * ]
74
+ * }
75
+ * }
76
+ * ```
77
+ */
78
+ retrieve(id, options) {
79
+ return this._client.get((0, path_1.path) `/spend-categories/${id}/`, options);
80
+ }
81
+ }
82
+ exports.SpendCategories = SpendCategories;
83
+ //# sourceMappingURL=spend-categories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spend-categories.js","sourceRoot":"","sources":["../src/resources/spend-categories.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAgE;AAEhE,oDAA8C;AAE9C,MAAa,eAAgB,SAAQ,sBAAW;IAC9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuCG;IACH,IAAI,CACF,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,oBAAoB,EAAE,CAAA,0BAAwC,CAAA,EAAE;YAC7F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;CACF;AA7ED,0CA6EC"}
@@ -0,0 +1,79 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../core/resource.mjs";
3
+ import { PageCursorURL } from "../core/pagination.mjs";
4
+ import { path } from "../internal/utils/path.mjs";
5
+ export class SpendCategories extends APIResource {
6
+ /**
7
+ * A list of spend categories.
8
+ *
9
+ * - Requires: `Internal Testing`
10
+ * - Filterable fields: `name`
11
+ * - Sortable fields: `id`, `created_at`, `updated_at`
12
+ *
13
+ * @example HTTP
14
+ * Representative request and response shapes.
15
+ * ```
16
+ * GET /spend-categories/?filter=filter&order_by=order_by&limit=50&cursor=cursor HTTP/1.1
17
+ * Host: rest.ripplingapis.com
18
+ * Accept: application/json
19
+ * Rippling-Api-Version: 2024-08-01
20
+ *
21
+ * HTTP/1.1 200 OK
22
+ * Content-Type: application/json
23
+ *
24
+ * {
25
+ * "__meta": {
26
+ * "redacted_fields": [
27
+ * {
28
+ * "name": "date_of_birth",
29
+ * "reason": "Insufficient entitlements"
30
+ * }
31
+ * ]
32
+ * },
33
+ * "results": [
34
+ * {
35
+ * "id": "string",
36
+ * "created_at": "string",
37
+ * "updated_at": "string",
38
+ * "name": "string",
39
+ * "active": false
40
+ * }
41
+ * ],
42
+ * "next_link": "string"
43
+ * }
44
+ * ```
45
+ */
46
+ list(query = {}, options) {
47
+ return this._client.getAPIList('/spend-categories/', (PageCursorURL), {
48
+ query,
49
+ ...options,
50
+ });
51
+ }
52
+ /**
53
+ * Retrieve a specific spend category
54
+ *
55
+ * @example HTTP
56
+ * Representative request and response shapes.
57
+ * ```
58
+ * GET /spend-categories/{id}/ HTTP/1.1
59
+ * Host: rest.ripplingapis.com
60
+ * Accept: application/json
61
+ * Rippling-Api-Version: 2024-08-01
62
+ *
63
+ * HTTP/1.1 200 OK
64
+ * Content-Type: application/json
65
+ *
66
+ * {
67
+ * "__meta": {
68
+ * "redacted_fields": [
69
+ * {}
70
+ * ]
71
+ * }
72
+ * }
73
+ * ```
74
+ */
75
+ retrieve(id, options) {
76
+ return this._client.get(path `/spend-categories/${id}/`, options);
77
+ }
78
+ }
79
+ //# sourceMappingURL=spend-categories.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spend-categories.mjs","sourceRoot":"","sources":["../src/resources/spend-categories.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,aAAa,EAAe,+BAA2B;AAEhE,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuCG;IACH,IAAI,CACF,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,oBAAoB,EAAE,CAAA,aAAwC,CAAA,EAAE;YAC7F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;CACF"}
package/src/client.ts CHANGED
@@ -13,6 +13,15 @@ import * as Shims from './internal/shims';
13
13
  import * as Opts from './internal/request-options';
14
14
  import { stringifyQuery } from './internal/utils/query';
15
15
  import { VERSION } from './version';
16
+ import type { AnyCustomObjectDefinition } from './core/platform/custom-objects/types';
17
+ import {
18
+ createFunctionClient,
19
+ type DefinedFunction,
20
+ type FunctionClient,
21
+ } from './lib/manifest/definitions/function';
22
+ import { createObjectClient, type ObjectClient } from './lib/manifest/definitions/custom-object';
23
+ import { createAgentClient, type AgentClient } from './lib/manifest/definitions/agent';
24
+ import type { ACPAgent } from './lib/manifest/acp-agent';
16
25
  import * as Errors from './core/error';
17
26
  import * as Pagination from './core/pagination';
18
27
  import { AbstractPage, PageCursorURLResponse } from './core/pagination';
@@ -609,6 +618,13 @@ import {
609
618
  SoftwareDeploymentUpdateResponse,
610
619
  SoftwareDeployments,
611
620
  } from './resources/software-deployments';
621
+ import {
622
+ SpendCategories,
623
+ SpendCategoryListParams,
624
+ SpendCategoryListResponse,
625
+ SpendCategoryListResponsesPageCursorURL,
626
+ SpendCategoryRetrieveResponse,
627
+ } from './resources/spend-categories';
612
628
  import { SSOMe, SSOMeListParams, SSOMeResource } from './resources/sso-me';
613
629
  import {
614
630
  Team,
@@ -936,6 +952,21 @@ export interface ClientOptions {
936
952
  * API Client for interfacing with the Rippling SDK API.
937
953
  */
938
954
  export class RipplingSDK {
955
+ /** Access typed record and schema operations using this authenticated client. */
956
+ objects<D extends AnyCustomObjectDefinition>(definition: D): ObjectClient<D> {
957
+ return createObjectClient(this, definition);
958
+ }
959
+
960
+ /** Access typed function execution operations using this authenticated client. */
961
+ function<TInput, TOutput>(definition: DefinedFunction<TInput, TOutput>): FunctionClient<TInput, TOutput> {
962
+ return createFunctionClient(this, definition);
963
+ }
964
+
965
+ /** Access agent retrieval and session operations using this authenticated client. */
966
+ agent(definition: ACPAgent): AgentClient {
967
+ return createAgentClient(this, definition);
968
+ }
969
+
939
970
  bearerToken: string;
940
971
 
941
972
  baseURL: string;
@@ -1936,6 +1967,7 @@ export class RipplingSDK {
1936
1967
  * Software deployed to company devices
1937
1968
  */
1938
1969
  softwareDeployments: API.SoftwareDeployments = new API.SoftwareDeployments(this);
1970
+ spendCategories: API.SpendCategories = new API.SpendCategories(this);
1939
1971
  /**
1940
1972
  * Job titles used by the company
1941
1973
  */
@@ -2087,6 +2119,7 @@ RipplingSDK.ScheduledJobAssignments = ScheduledJobAssignments;
2087
2119
  RipplingSDK.Shiftassignments = Shiftassignments;
2088
2120
  RipplingSDK.Sites = Sites;
2089
2121
  RipplingSDK.SoftwareDeployments = SoftwareDeployments;
2122
+ RipplingSDK.SpendCategories = SpendCategories;
2090
2123
  RipplingSDK.Titles = Titles;
2091
2124
  RipplingSDK.Unassignedshifts = Unassignedshifts;
2092
2125
  RipplingSDK.VariableCompensationPayouts = VariableCompensationPayouts;
@@ -2928,6 +2961,14 @@ export declare namespace RipplingSDK {
2928
2961
  type SoftwareDeploymentUpdateParams as SoftwareDeploymentUpdateParams,
2929
2962
  };
2930
2963
 
2964
+ export {
2965
+ SpendCategories as SpendCategories,
2966
+ type SpendCategoryListResponse as SpendCategoryListResponse,
2967
+ type SpendCategoryRetrieveResponse as SpendCategoryRetrieveResponse,
2968
+ type SpendCategoryListResponsesPageCursorURL as SpendCategoryListResponsesPageCursorURL,
2969
+ type SpendCategoryListParams as SpendCategoryListParams,
2970
+ };
2971
+
2931
2972
  export {
2932
2973
  Titles as Titles,
2933
2974
  type TitleListResponse as TitleListResponse,
package/src/index.ts CHANGED
@@ -23,3 +23,20 @@ export {
23
23
  } from './core/error';
24
24
 
25
25
  export * from './functions';
26
+
27
+ export * from './core/platform/custom-objects';
28
+ export {
29
+ defineManifest,
30
+ compileManifest,
31
+ type DefineManifestOptions,
32
+ type ManifestDefinition,
33
+ type ManifestInput,
34
+ } from './lib/manifest/composition';
35
+ export * from './lib/manifest/definitions';
36
+ export * from './lib/manifest/package-manifest';
37
+
38
+ export {
39
+ defineCustomObject,
40
+ extendCustomObject,
41
+ defineCustomObjectCategory,
42
+ } from './lib/manifest/definitions';
@@ -21,11 +21,10 @@ by comparing its value against a constant.
21
21
  - **`value`** — this data point's plotted numeric value (a bar's height, a
22
22
  point's y, a slice's amount). It is what the rule compares.
23
23
  - **Comparisons** — `equals`, `isNot`, `lessThan`, `greaterThan`, `lessOrEqual`, `greaterOrEqual`.
24
- - **`when(condition, ifTrue, ifFalse?)`** — a conditional value (channel-agnostic).
25
- `ifFalse` is optional and defaults to `null` — for a colour, no override (default kept).
24
+ - **`when(condition, ifTrue, ifFalse?)`** — a conditional colour. Both results
25
+ are colour strings; `ifFalse` defaults to `null` (keep the chart default).
26
26
  - **`color(rule)`** — target the colour channel. Wrapping `when(...)` in `color(...)`
27
- is what says "this rule sets the colour"; the channel is separate from the condition,
28
- so more channels (opacity, label visibility) are just more wrappers later.
27
+ is what says "this rule sets the colour".
29
28
  - **`literal`** — bare constants (`100`, `'#E24B4A'`) are wrapped automatically.
30
29
 
31
30
  ```ts
@@ -46,7 +45,7 @@ Agent writes a rule with these builders (the only consumer that imports the SDK)
46
45
  -> the placeholder is emitted into the chart option, like the {$fn} placeholders
47
46
  a chart already emits, and crosses to the app as plain JSON
48
47
  -> renderer resolves {$rule} against the point's value -> a colour, drawn
49
- -> settings panel reads the same {$rule} tree -> controls the user can edit
48
+ -> settings panel reads the same flat {$rule} value -> controls the user can edit
50
49
  ```
51
50
 
52
51
  ```json
@@ -64,28 +63,38 @@ Agent writes a rule with these builders (the only consumer that imports the SDK)
64
63
  `channel: 'color'` says what the rule targets, so a reader sees it without
65
64
  inferring from where it sits. `evaluate(rule, { value })` resolves it to a colour
66
65
  for the renderer; `describe(rule)` turns it into the controls the settings panel
67
- shows. Both accept the placeholder or the bare tree. A node can only ever be one
68
- of a fixed set of kinds, so the three faces never drift — the `chartRuleSchema`
69
- export describes that closed set.
66
+ shows. Both accept the placeholder or a bare node. A node can only ever be one
67
+ of a fixed set of kinds. `chartRuleSchema` is the executable Valibot schema for
68
+ that closed set, and `parseChartRule(unknown)` is the SDK-owned runtime boundary
69
+ for persisted or agent-authored JSON.
70
70
 
71
71
  ## How it is consumed
72
72
 
73
- The app never has to import this package. The rule crosses as data — a `{$rule}`
74
- placeholder alongside the `{$fn}` ones — and the app's own rehydrator resolves it
75
- at render time. Two ways, and only the first is needed:
73
+ The rule crosses as data — a `{$rule}` placeholder alongside the `{$fn}` ones.
74
+ Consumers have two integration choices:
76
75
 
77
- 1. **Contract-only** — the app keeps its own small evaluator and validates it
78
- against `chartRuleSchema` (published here) with a contract test, so the two
79
- can't drift without CI noticing. No dependency on this package.
80
- 2. **Shared** — the app imports `evaluate`/`describe` from here, so the closed
81
- set is defined exactly once. A no-drift choice, not a requirement.
76
+ 1. **Shared (preferred)** — import `evaluate`, `describe`, and
77
+ `parseChartRule` from the SDK. Parse once when the chart option is hydrated,
78
+ then pass that parsed value to `evaluate` for every datum. The parsed value is
79
+ an immutable validated clone, so repeated evaluation does not re-run schema
80
+ validation.
81
+ 2. **Serialized contract** — another language/runtime may interpret the JSON
82
+ independently. It must maintain parity tests against SDK builder output and
83
+ fail closed when the package-level `capabilities.json` contract version is
84
+ unsupported or a serialized rule contains an unknown node kind. Individual
85
+ serialized rules do not carry a version field.
86
+
87
+ Valibot is a production dependency because validation executes in shipped SDK
88
+ code. Node and Deno npm consumers resolve it transitively from the package; it
89
+ is not duplicated in the agent reference or capability manifest.
82
90
 
83
91
  ## Where it is going
84
92
 
85
- The vocabulary starts small on purpose and is built to grow. Each addition is a
86
- new kind (or channel) — one builder, one `evaluate` case, one `describe` case,
87
- one `schema` entry — and it becomes editable in the panel the moment it lands,
88
- with no change to charts already using it. Planned next, roughly in order:
93
+ The vocabulary starts small on purpose. The v1 schema stays flat; features that
94
+ require nesting or a different expression shape must use a new contract version
95
+ rather than silently widening v1. A compatible channel or leaf addition still
96
+ requires one builder, evaluator case, description case, and schema entry.
97
+ Potential future versions may add:
89
98
 
90
99
  - **More channels** — opacity, label visibility (`show`), and the like, added
91
100
  alongside `channel: 'color'`.
@@ -104,11 +113,9 @@ with no change to charts already using it. Planned next, roughly in order:
104
113
 
105
114
  ## Safety
106
115
 
107
- A rule is data, not code, so evaluating one is not running code. The vocabulary
108
- has no primitive with a side effect, so an untrusted, user-edited tree is safe
109
- to evaluate: the worst a malformed tree can do is throw a `ChartRuleError`, which
110
- the caller catches and turns into the read-only "configured in code" state. There
111
- are no loops or recursion, and a tree nested past `MAX_RULE_DEPTH` throws
112
- `RuleDepthError` (also a `ChartRuleError`) rather than overflowing the stack.
113
- Catch `ChartRuleError` — every failure mode is a subclass of it (`UnknownNodeError`,
114
- `RuleTypeError`, `RuleDepthError`).
116
+ A rule is data, not code: its vocabulary has no callbacks, loops, or side
117
+ effects. The v1 schema is non-recursive, so rule input cannot create recursive
118
+ validation or evaluation work. Runtime parsing also rejects inherited rule
119
+ fields before Valibot reads them, preventing prototype data from supplying
120
+ operands. Malformed rules throw a `ChartRuleError`; callers can use that one
121
+ base class for every rule-specific failure.