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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (791) hide show
  1. package/client.d.mts +69 -7
  2. package/client.d.mts.map +1 -1
  3. package/client.d.ts +69 -7
  4. package/client.d.ts.map +1 -1
  5. package/client.js +69 -3
  6. package/client.js.map +1 -1
  7. package/client.mjs +69 -3
  8. package/client.mjs.map +1 -1
  9. package/core/platform/custom-objects/manager.d.mts +43 -23
  10. package/core/platform/custom-objects/manager.d.mts.map +1 -1
  11. package/core/platform/custom-objects/manager.d.ts +43 -23
  12. package/core/platform/custom-objects/manager.d.ts.map +1 -1
  13. package/core/platform/custom-objects/manager.js +21 -17
  14. package/core/platform/custom-objects/manager.js.map +1 -1
  15. package/core/platform/custom-objects/manager.mjs +21 -17
  16. package/core/platform/custom-objects/manager.mjs.map +1 -1
  17. package/core/platform/custom-objects.d.mts +1 -1
  18. package/core/platform/custom-objects.d.mts.map +1 -1
  19. package/core/platform/custom-objects.d.ts +1 -1
  20. package/core/platform/custom-objects.d.ts.map +1 -1
  21. package/core/platform/custom-objects.js.map +1 -1
  22. package/core/platform/custom-objects.mjs.map +1 -1
  23. package/examples/manifest/acp-agent/acp-agent.ts +27 -23
  24. package/index.d.mts +5 -0
  25. package/index.d.mts.map +1 -1
  26. package/index.d.ts +5 -0
  27. package/index.d.ts.map +1 -1
  28. package/index.js +11 -1
  29. package/index.js.map +1 -1
  30. package/index.mjs +5 -0
  31. package/index.mjs.map +1 -1
  32. package/lib/manifest/acp-agent.d.mts +1 -1
  33. package/lib/manifest/acp-agent.d.mts.map +1 -1
  34. package/lib/manifest/acp-agent.d.ts +1 -1
  35. package/lib/manifest/acp-agent.d.ts.map +1 -1
  36. package/lib/manifest/acp-agent.js +6 -0
  37. package/lib/manifest/acp-agent.js.map +1 -1
  38. package/lib/manifest/acp-agent.mjs +6 -0
  39. package/lib/manifest/acp-agent.mjs.map +1 -1
  40. package/lib/manifest/composition.d.mts +21 -0
  41. package/lib/manifest/composition.d.mts.map +1 -0
  42. package/lib/manifest/composition.d.ts +21 -0
  43. package/lib/manifest/composition.d.ts.map +1 -0
  44. package/lib/manifest/composition.js +103 -0
  45. package/lib/manifest/composition.js.map +1 -0
  46. package/lib/manifest/composition.mjs +99 -0
  47. package/lib/manifest/composition.mjs.map +1 -0
  48. package/lib/manifest/definitions/_object-records.d.mts +23 -0
  49. package/lib/manifest/definitions/_object-records.d.mts.map +1 -0
  50. package/lib/manifest/definitions/_object-records.d.ts +23 -0
  51. package/lib/manifest/definitions/_object-records.d.ts.map +1 -0
  52. package/lib/manifest/definitions/_object-records.js +153 -0
  53. package/lib/manifest/definitions/_object-records.js.map +1 -0
  54. package/lib/manifest/definitions/_object-records.mjs +149 -0
  55. package/lib/manifest/definitions/_object-records.mjs.map +1 -0
  56. package/lib/manifest/definitions/action.d.mts +7 -0
  57. package/lib/manifest/definitions/action.d.mts.map +1 -0
  58. package/lib/manifest/definitions/action.d.ts +7 -0
  59. package/lib/manifest/definitions/action.d.ts.map +1 -0
  60. package/lib/manifest/definitions/action.js +25 -0
  61. package/lib/manifest/definitions/action.js.map +1 -0
  62. package/lib/manifest/definitions/action.mjs +22 -0
  63. package/lib/manifest/definitions/action.mjs.map +1 -0
  64. package/lib/manifest/definitions/agent.d.mts +51 -0
  65. package/lib/manifest/definitions/agent.d.mts.map +1 -0
  66. package/lib/manifest/definitions/agent.d.ts +51 -0
  67. package/lib/manifest/definitions/agent.d.ts.map +1 -0
  68. package/lib/manifest/definitions/agent.js +65 -0
  69. package/lib/manifest/definitions/agent.js.map +1 -0
  70. package/lib/manifest/definitions/agent.mjs +59 -0
  71. package/lib/manifest/definitions/agent.mjs.map +1 -0
  72. package/lib/manifest/definitions/app.d.mts +3 -0
  73. package/lib/manifest/definitions/app.d.mts.map +1 -0
  74. package/lib/manifest/definitions/app.d.ts +3 -0
  75. package/lib/manifest/definitions/app.d.ts.map +1 -0
  76. package/lib/manifest/definitions/app.js +14 -0
  77. package/lib/manifest/definitions/app.js.map +1 -0
  78. package/lib/manifest/definitions/app.mjs +11 -0
  79. package/lib/manifest/definitions/app.mjs.map +1 -0
  80. package/lib/manifest/definitions/category.d.mts +9 -0
  81. package/lib/manifest/definitions/category.d.mts.map +1 -0
  82. package/lib/manifest/definitions/category.d.ts +9 -0
  83. package/lib/manifest/definitions/category.d.ts.map +1 -0
  84. package/lib/manifest/definitions/category.js +27 -0
  85. package/lib/manifest/definitions/category.js.map +1 -0
  86. package/lib/manifest/definitions/category.mjs +23 -0
  87. package/lib/manifest/definitions/category.mjs.map +1 -0
  88. package/lib/manifest/definitions/component.d.mts +101 -0
  89. package/lib/manifest/definitions/component.d.mts.map +1 -0
  90. package/lib/manifest/definitions/component.d.ts +101 -0
  91. package/lib/manifest/definitions/component.d.ts.map +1 -0
  92. package/lib/manifest/definitions/component.js +106 -0
  93. package/lib/manifest/definitions/component.js.map +1 -0
  94. package/lib/manifest/definitions/component.mjs +97 -0
  95. package/lib/manifest/definitions/component.mjs.map +1 -0
  96. package/lib/manifest/definitions/custom-field-section.d.mts +13 -0
  97. package/lib/manifest/definitions/custom-field-section.d.mts.map +1 -0
  98. package/lib/manifest/definitions/custom-field-section.d.ts +13 -0
  99. package/lib/manifest/definitions/custom-field-section.d.ts.map +1 -0
  100. package/lib/manifest/definitions/custom-field-section.js +15 -0
  101. package/lib/manifest/definitions/custom-field-section.js.map +1 -0
  102. package/lib/manifest/definitions/custom-field-section.mjs +12 -0
  103. package/lib/manifest/definitions/custom-field-section.mjs.map +1 -0
  104. package/lib/manifest/definitions/custom-field.d.mts +10 -0
  105. package/lib/manifest/definitions/custom-field.d.mts.map +1 -0
  106. package/lib/manifest/definitions/custom-field.d.ts +10 -0
  107. package/lib/manifest/definitions/custom-field.d.ts.map +1 -0
  108. package/lib/manifest/definitions/custom-field.js +18 -0
  109. package/lib/manifest/definitions/custom-field.js.map +1 -0
  110. package/lib/manifest/definitions/custom-field.mjs +15 -0
  111. package/lib/manifest/definitions/custom-field.mjs.map +1 -0
  112. package/lib/manifest/definitions/custom-object.d.mts +162 -0
  113. package/lib/manifest/definitions/custom-object.d.mts.map +1 -0
  114. package/lib/manifest/definitions/custom-object.d.ts +162 -0
  115. package/lib/manifest/definitions/custom-object.d.ts.map +1 -0
  116. package/lib/manifest/definitions/custom-object.js +412 -0
  117. package/lib/manifest/definitions/custom-object.js.map +1 -0
  118. package/lib/manifest/definitions/custom-object.mjs +386 -0
  119. package/lib/manifest/definitions/custom-object.mjs.map +1 -0
  120. package/lib/manifest/definitions/custom-skill.d.mts +8 -0
  121. package/lib/manifest/definitions/custom-skill.d.mts.map +1 -0
  122. package/lib/manifest/definitions/custom-skill.d.ts +8 -0
  123. package/lib/manifest/definitions/custom-skill.d.ts.map +1 -0
  124. package/lib/manifest/definitions/custom-skill.js +15 -0
  125. package/lib/manifest/definitions/custom-skill.js.map +1 -0
  126. package/lib/manifest/definitions/custom-skill.mjs +12 -0
  127. package/lib/manifest/definitions/custom-skill.mjs.map +1 -0
  128. package/lib/manifest/definitions/field-section.d.mts +7 -0
  129. package/lib/manifest/definitions/field-section.d.mts.map +1 -0
  130. package/lib/manifest/definitions/field-section.d.ts +7 -0
  131. package/lib/manifest/definitions/field-section.d.ts.map +1 -0
  132. package/lib/manifest/definitions/field-section.js +16 -0
  133. package/lib/manifest/definitions/field-section.js.map +1 -0
  134. package/lib/manifest/definitions/field-section.mjs +13 -0
  135. package/lib/manifest/definitions/field-section.mjs.map +1 -0
  136. package/lib/manifest/definitions/field.d.mts +38 -0
  137. package/lib/manifest/definitions/field.d.mts.map +1 -0
  138. package/lib/manifest/definitions/field.d.ts +38 -0
  139. package/lib/manifest/definitions/field.d.ts.map +1 -0
  140. package/lib/manifest/definitions/field.js +50 -0
  141. package/lib/manifest/definitions/field.js.map +1 -0
  142. package/lib/manifest/definitions/field.mjs +45 -0
  143. package/lib/manifest/definitions/field.mjs.map +1 -0
  144. package/lib/manifest/definitions/function.d.mts +61 -0
  145. package/lib/manifest/definitions/function.d.mts.map +1 -0
  146. package/lib/manifest/definitions/function.d.ts +61 -0
  147. package/lib/manifest/definitions/function.d.ts.map +1 -0
  148. package/lib/manifest/definitions/function.js +79 -0
  149. package/lib/manifest/definitions/function.js.map +1 -0
  150. package/lib/manifest/definitions/function.mjs +73 -0
  151. package/lib/manifest/definitions/function.mjs.map +1 -0
  152. package/lib/manifest/definitions/index.d.mts +22 -0
  153. package/lib/manifest/definitions/index.d.mts.map +1 -0
  154. package/lib/manifest/definitions/index.d.ts +22 -0
  155. package/lib/manifest/definitions/index.d.ts.map +1 -0
  156. package/lib/manifest/definitions/index.js +64 -0
  157. package/lib/manifest/definitions/index.js.map +1 -0
  158. package/lib/manifest/definitions/index.mjs +22 -0
  159. package/lib/manifest/definitions/index.mjs.map +1 -0
  160. package/lib/manifest/definitions/list-view.d.mts +9 -0
  161. package/lib/manifest/definitions/list-view.d.mts.map +1 -0
  162. package/lib/manifest/definitions/list-view.d.ts +9 -0
  163. package/lib/manifest/definitions/list-view.d.ts.map +1 -0
  164. package/lib/manifest/definitions/list-view.js +25 -0
  165. package/lib/manifest/definitions/list-view.js.map +1 -0
  166. package/lib/manifest/definitions/list-view.mjs +22 -0
  167. package/lib/manifest/definitions/list-view.mjs.map +1 -0
  168. package/lib/manifest/definitions/object-search-config.d.mts +13 -0
  169. package/lib/manifest/definitions/object-search-config.d.mts.map +1 -0
  170. package/lib/manifest/definitions/object-search-config.d.ts +13 -0
  171. package/lib/manifest/definitions/object-search-config.d.ts.map +1 -0
  172. package/lib/manifest/definitions/object-search-config.js +25 -0
  173. package/lib/manifest/definitions/object-search-config.js.map +1 -0
  174. package/lib/manifest/definitions/object-search-config.mjs +22 -0
  175. package/lib/manifest/definitions/object-search-config.mjs.map +1 -0
  176. package/lib/manifest/definitions/object-settings.d.mts +24 -0
  177. package/lib/manifest/definitions/object-settings.d.mts.map +1 -0
  178. package/lib/manifest/definitions/object-settings.d.ts +24 -0
  179. package/lib/manifest/definitions/object-settings.d.ts.map +1 -0
  180. package/lib/manifest/definitions/object-settings.js +32 -0
  181. package/lib/manifest/definitions/object-settings.js.map +1 -0
  182. package/lib/manifest/definitions/object-settings.mjs +29 -0
  183. package/lib/manifest/definitions/object-settings.mjs.map +1 -0
  184. package/lib/manifest/definitions/page-layout.d.mts +21 -0
  185. package/lib/manifest/definitions/page-layout.d.mts.map +1 -0
  186. package/lib/manifest/definitions/page-layout.d.ts +21 -0
  187. package/lib/manifest/definitions/page-layout.d.ts.map +1 -0
  188. package/lib/manifest/definitions/page-layout.js +155 -0
  189. package/lib/manifest/definitions/page-layout.js.map +1 -0
  190. package/lib/manifest/definitions/page-layout.mjs +152 -0
  191. package/lib/manifest/definitions/page-layout.mjs.map +1 -0
  192. package/lib/manifest/definitions/page.d.mts +8 -0
  193. package/lib/manifest/definitions/page.d.mts.map +1 -0
  194. package/lib/manifest/definitions/page.d.ts +8 -0
  195. package/lib/manifest/definitions/page.d.ts.map +1 -0
  196. package/lib/manifest/definitions/page.js +15 -0
  197. package/lib/manifest/definitions/page.js.map +1 -0
  198. package/lib/manifest/definitions/page.mjs +12 -0
  199. package/lib/manifest/definitions/page.mjs.map +1 -0
  200. package/lib/manifest/definitions/record-triggered-flow.d.mts +24 -0
  201. package/lib/manifest/definitions/record-triggered-flow.d.mts.map +1 -0
  202. package/lib/manifest/definitions/record-triggered-flow.d.ts +24 -0
  203. package/lib/manifest/definitions/record-triggered-flow.d.ts.map +1 -0
  204. package/lib/manifest/definitions/record-triggered-flow.js +28 -0
  205. package/lib/manifest/definitions/record-triggered-flow.js.map +1 -0
  206. package/lib/manifest/definitions/record-triggered-flow.mjs +25 -0
  207. package/lib/manifest/definitions/record-triggered-flow.mjs.map +1 -0
  208. package/lib/manifest/definitions/validation.d.mts +8 -0
  209. package/lib/manifest/definitions/validation.d.mts.map +1 -0
  210. package/lib/manifest/definitions/validation.d.ts +8 -0
  211. package/lib/manifest/definitions/validation.d.ts.map +1 -0
  212. package/lib/manifest/definitions/validation.js +24 -0
  213. package/lib/manifest/definitions/validation.js.map +1 -0
  214. package/lib/manifest/definitions/validation.mjs +21 -0
  215. package/lib/manifest/definitions/validation.mjs.map +1 -0
  216. package/lib/manifest/definitions/workflow.d.mts +10 -0
  217. package/lib/manifest/definitions/workflow.d.mts.map +1 -0
  218. package/lib/manifest/definitions/workflow.d.ts +10 -0
  219. package/lib/manifest/definitions/workflow.d.ts.map +1 -0
  220. package/lib/manifest/definitions/workflow.js +33 -0
  221. package/lib/manifest/definitions/workflow.js.map +1 -0
  222. package/lib/manifest/definitions/workflow.mjs +29 -0
  223. package/lib/manifest/definitions/workflow.mjs.map +1 -0
  224. package/lib/manifest/index.d.mts +3 -0
  225. package/lib/manifest/index.d.mts.map +1 -1
  226. package/lib/manifest/index.d.ts +3 -0
  227. package/lib/manifest/index.d.ts.map +1 -1
  228. package/lib/manifest/index.js +4 -0
  229. package/lib/manifest/index.js.map +1 -1
  230. package/lib/manifest/index.mjs +3 -0
  231. package/lib/manifest/index.mjs.map +1 -1
  232. package/lib/manifest/package-manifest.d.mts +17 -0
  233. package/lib/manifest/package-manifest.d.mts.map +1 -0
  234. package/lib/manifest/package-manifest.d.ts +17 -0
  235. package/lib/manifest/package-manifest.d.ts.map +1 -0
  236. package/lib/manifest/package-manifest.js +26 -0
  237. package/lib/manifest/package-manifest.js.map +1 -0
  238. package/lib/manifest/package-manifest.mjs +23 -0
  239. package/lib/manifest/package-manifest.mjs.map +1 -0
  240. package/package.json +1 -1
  241. package/resources/activity-log.d.mts +1 -1
  242. package/resources/activity-log.d.ts +1 -1
  243. package/resources/activity-log.js +1 -1
  244. package/resources/activity-log.mjs +1 -1
  245. package/resources/agents/sessions/messages.d.mts +10 -1
  246. package/resources/agents/sessions/messages.d.mts.map +1 -1
  247. package/resources/agents/sessions/messages.d.ts +10 -1
  248. package/resources/agents/sessions/messages.d.ts.map +1 -1
  249. package/resources/agents/sessions/sessions.d.mts +30 -3
  250. package/resources/agents/sessions/sessions.d.mts.map +1 -1
  251. package/resources/agents/sessions/sessions.d.ts +30 -3
  252. package/resources/agents/sessions/sessions.d.ts.map +1 -1
  253. package/resources/agents/sessions/sessions.js.map +1 -1
  254. package/resources/agents/sessions/sessions.mjs.map +1 -1
  255. package/resources/bills.d.mts +1343 -0
  256. package/resources/bills.d.mts.map +1 -0
  257. package/resources/bills.d.ts +1343 -0
  258. package/resources/bills.d.ts.map +1 -0
  259. package/resources/bills.js +214 -0
  260. package/resources/bills.js.map +1 -0
  261. package/resources/bills.mjs +210 -0
  262. package/resources/bills.mjs.map +1 -0
  263. package/resources/card-transactions.d.mts +607 -49
  264. package/resources/card-transactions.d.mts.map +1 -1
  265. package/resources/card-transactions.d.ts +607 -49
  266. package/resources/card-transactions.d.ts.map +1 -1
  267. package/resources/card-transactions.js +73 -12
  268. package/resources/card-transactions.js.map +1 -1
  269. package/resources/card-transactions.mjs +73 -12
  270. package/resources/card-transactions.mjs.map +1 -1
  271. package/resources/custom-objects/custom-objects.d.mts +39 -3
  272. package/resources/custom-objects/custom-objects.d.mts.map +1 -1
  273. package/resources/custom-objects/custom-objects.d.ts +39 -3
  274. package/resources/custom-objects/custom-objects.d.ts.map +1 -1
  275. package/resources/custom-objects/custom-objects.js +38 -2
  276. package/resources/custom-objects/custom-objects.js.map +1 -1
  277. package/resources/custom-objects/custom-objects.mjs +38 -2
  278. package/resources/custom-objects/custom-objects.mjs.map +1 -1
  279. package/resources/custom-objects/fields.d.mts +44 -0
  280. package/resources/custom-objects/fields.d.mts.map +1 -1
  281. package/resources/custom-objects/fields.d.ts +44 -0
  282. package/resources/custom-objects/fields.d.ts.map +1 -1
  283. package/resources/custom-objects/fields.js +44 -0
  284. package/resources/custom-objects/fields.js.map +1 -1
  285. package/resources/custom-objects/fields.mjs +44 -0
  286. package/resources/custom-objects/fields.mjs.map +1 -1
  287. package/resources/custom-objects/index.d.mts +2 -1
  288. package/resources/custom-objects/index.d.mts.map +1 -1
  289. package/resources/custom-objects/index.d.ts +2 -1
  290. package/resources/custom-objects/index.d.ts.map +1 -1
  291. package/resources/custom-objects/index.js +5 -3
  292. package/resources/custom-objects/index.js.map +1 -1
  293. package/resources/custom-objects/index.mjs +2 -1
  294. package/resources/custom-objects/index.mjs.map +1 -1
  295. package/resources/custom-objects/list-views/capabilities.d.mts +63 -0
  296. package/resources/custom-objects/list-views/capabilities.d.mts.map +1 -0
  297. package/resources/custom-objects/list-views/capabilities.d.ts +63 -0
  298. package/resources/custom-objects/list-views/capabilities.d.ts.map +1 -0
  299. package/resources/custom-objects/list-views/capabilities.js +48 -0
  300. package/resources/custom-objects/list-views/capabilities.js.map +1 -0
  301. package/resources/custom-objects/list-views/capabilities.mjs +44 -0
  302. package/resources/custom-objects/list-views/capabilities.mjs.map +1 -0
  303. package/resources/custom-objects/list-views/default.d.mts +69 -0
  304. package/resources/custom-objects/list-views/default.d.mts.map +1 -0
  305. package/resources/custom-objects/list-views/default.d.ts +69 -0
  306. package/resources/custom-objects/list-views/default.d.ts.map +1 -0
  307. package/resources/custom-objects/list-views/default.js +59 -0
  308. package/resources/custom-objects/list-views/default.js.map +1 -0
  309. package/resources/custom-objects/list-views/default.mjs +55 -0
  310. package/resources/custom-objects/list-views/default.mjs.map +1 -0
  311. package/resources/custom-objects/list-views/index.d.mts +4 -0
  312. package/resources/custom-objects/list-views/index.d.mts.map +1 -0
  313. package/resources/custom-objects/list-views/index.d.ts +4 -0
  314. package/resources/custom-objects/list-views/index.d.ts.map +1 -0
  315. package/resources/custom-objects/list-views/index.js +11 -0
  316. package/resources/custom-objects/list-views/index.js.map +1 -0
  317. package/resources/custom-objects/list-views/index.mjs +5 -0
  318. package/resources/custom-objects/list-views/index.mjs.map +1 -0
  319. package/resources/custom-objects/list-views/list-views.d.mts +806 -0
  320. package/resources/custom-objects/list-views/list-views.d.mts.map +1 -0
  321. package/resources/custom-objects/list-views/list-views.d.ts +806 -0
  322. package/resources/custom-objects/list-views/list-views.d.ts.map +1 -0
  323. package/resources/custom-objects/list-views/list-views.js +314 -0
  324. package/resources/custom-objects/list-views/list-views.js.map +1 -0
  325. package/resources/custom-objects/list-views/list-views.mjs +309 -0
  326. package/resources/custom-objects/list-views/list-views.mjs.map +1 -0
  327. package/resources/custom-objects/list-views.d.mts +2 -0
  328. package/resources/custom-objects/list-views.d.mts.map +1 -0
  329. package/resources/custom-objects/list-views.d.ts +2 -0
  330. package/resources/custom-objects/list-views.d.ts.map +1 -0
  331. package/resources/custom-objects/list-views.js +6 -0
  332. package/resources/custom-objects/list-views.js.map +1 -0
  333. package/resources/custom-objects/list-views.mjs +3 -0
  334. package/resources/custom-objects/list-views.mjs.map +1 -0
  335. package/resources/custom-objects/records/capabilities.d.mts +61 -0
  336. package/resources/custom-objects/records/capabilities.d.mts.map +1 -0
  337. package/resources/custom-objects/records/capabilities.d.ts +61 -0
  338. package/resources/custom-objects/records/capabilities.d.ts.map +1 -0
  339. package/resources/custom-objects/records/capabilities.js +47 -0
  340. package/resources/custom-objects/records/capabilities.js.map +1 -0
  341. package/resources/custom-objects/records/capabilities.mjs +43 -0
  342. package/resources/custom-objects/records/capabilities.mjs.map +1 -0
  343. package/resources/custom-objects/records/index.d.mts +3 -0
  344. package/resources/custom-objects/records/index.d.mts.map +1 -0
  345. package/resources/custom-objects/records/index.d.ts +3 -0
  346. package/resources/custom-objects/records/index.d.ts.map +1 -0
  347. package/resources/custom-objects/records/index.js +9 -0
  348. package/resources/custom-objects/records/index.js.map +1 -0
  349. package/resources/custom-objects/records/index.mjs +4 -0
  350. package/resources/custom-objects/records/index.mjs.map +1 -0
  351. package/resources/custom-objects/records/records.d.mts +787 -0
  352. package/resources/custom-objects/records/records.d.mts.map +1 -0
  353. package/resources/custom-objects/records/records.d.ts +787 -0
  354. package/resources/custom-objects/records/records.d.ts.map +1 -0
  355. package/resources/custom-objects/records/records.js +543 -0
  356. package/resources/custom-objects/records/records.js.map +1 -0
  357. package/resources/custom-objects/records/records.mjs +538 -0
  358. package/resources/custom-objects/records/records.mjs.map +1 -0
  359. package/resources/custom-objects/records.d.mts +1 -561
  360. package/resources/custom-objects/records.d.mts.map +1 -1
  361. package/resources/custom-objects/records.d.ts +1 -561
  362. package/resources/custom-objects/records.d.ts.map +1 -1
  363. package/resources/custom-objects/records.js +2 -444
  364. package/resources/custom-objects/records.js.map +1 -1
  365. package/resources/custom-objects/records.mjs +1 -442
  366. package/resources/custom-objects/records.mjs.map +1 -1
  367. package/resources/devices.d.mts +2 -2
  368. package/resources/devices.d.mts.map +1 -1
  369. package/resources/devices.d.ts +2 -2
  370. package/resources/devices.d.ts.map +1 -1
  371. package/resources/draft-transitions.d.mts +241 -307
  372. package/resources/draft-transitions.d.mts.map +1 -1
  373. package/resources/draft-transitions.d.ts +241 -307
  374. package/resources/draft-transitions.d.ts.map +1 -1
  375. package/resources/draft-transitions.js +49 -23
  376. package/resources/draft-transitions.js.map +1 -1
  377. package/resources/draft-transitions.mjs +49 -23
  378. package/resources/draft-transitions.mjs.map +1 -1
  379. package/resources/employee-documents.d.mts +2 -2
  380. package/resources/employee-documents.d.ts +2 -2
  381. package/resources/{spend-categories.d.mts → finance-categories.d.mts} +21 -18
  382. package/resources/finance-categories.d.mts.map +1 -0
  383. package/resources/{spend-categories.d.ts → finance-categories.d.ts} +21 -18
  384. package/resources/finance-categories.d.ts.map +1 -0
  385. package/resources/{spend-categories.js → finance-categories.js} +14 -11
  386. package/resources/finance-categories.js.map +1 -0
  387. package/resources/{spend-categories.mjs → finance-categories.mjs} +12 -9
  388. package/resources/finance-categories.mjs.map +1 -0
  389. package/resources/finance-vendors.d.mts +154 -0
  390. package/resources/finance-vendors.d.mts.map +1 -0
  391. package/resources/finance-vendors.d.ts +154 -0
  392. package/resources/finance-vendors.d.ts.map +1 -0
  393. package/resources/finance-vendors.js +87 -0
  394. package/resources/finance-vendors.js.map +1 -0
  395. package/resources/finance-vendors.mjs +83 -0
  396. package/resources/finance-vendors.mjs.map +1 -0
  397. package/resources/functions/executions.d.mts +4 -1
  398. package/resources/functions/executions.d.mts.map +1 -1
  399. package/resources/functions/executions.d.ts +4 -1
  400. package/resources/functions/executions.d.ts.map +1 -1
  401. package/resources/functions/executions.js +4 -1
  402. package/resources/functions/executions.js.map +1 -1
  403. package/resources/functions/executions.mjs +4 -1
  404. package/resources/functions/executions.mjs.map +1 -1
  405. package/resources/functions/functions.d.mts +192 -4
  406. package/resources/functions/functions.d.mts.map +1 -1
  407. package/resources/functions/functions.d.ts +192 -4
  408. package/resources/functions/functions.d.ts.map +1 -1
  409. package/resources/functions/functions.js +72 -4
  410. package/resources/functions/functions.js.map +1 -1
  411. package/resources/functions/functions.mjs +72 -4
  412. package/resources/functions/functions.mjs.map +1 -1
  413. package/resources/hire-requirements.d.mts +98 -9
  414. package/resources/hire-requirements.d.mts.map +1 -1
  415. package/resources/hire-requirements.d.ts +98 -9
  416. package/resources/hire-requirements.d.ts.map +1 -1
  417. package/resources/hire-requirements.js +23 -4
  418. package/resources/hire-requirements.js.map +1 -1
  419. package/resources/hire-requirements.mjs +23 -4
  420. package/resources/hire-requirements.mjs.map +1 -1
  421. package/resources/hires.d.mts +1636 -510
  422. package/resources/hires.d.mts.map +1 -1
  423. package/resources/hires.d.ts +1636 -510
  424. package/resources/hires.d.ts.map +1 -1
  425. package/resources/hires.js +10 -4
  426. package/resources/hires.js.map +1 -1
  427. package/resources/hires.mjs +10 -4
  428. package/resources/hires.mjs.map +1 -1
  429. package/resources/index.d.mts +11 -3
  430. package/resources/index.d.mts.map +1 -1
  431. package/resources/index.d.ts +11 -3
  432. package/resources/index.d.ts.map +1 -1
  433. package/resources/index.js +21 -5
  434. package/resources/index.js.map +1 -1
  435. package/resources/index.mjs +9 -1
  436. package/resources/index.mjs.map +1 -1
  437. package/resources/leave-requests.d.mts +11 -2
  438. package/resources/leave-requests.d.mts.map +1 -1
  439. package/resources/leave-requests.d.ts +11 -2
  440. package/resources/leave-requests.d.ts.map +1 -1
  441. package/resources/leave-requests.js +11 -2
  442. package/resources/leave-requests.js.map +1 -1
  443. package/resources/leave-requests.mjs +11 -2
  444. package/resources/leave-requests.mjs.map +1 -1
  445. package/resources/object-categories.d.mts +2 -1
  446. package/resources/object-categories.d.mts.map +1 -1
  447. package/resources/object-categories.d.ts +2 -1
  448. package/resources/object-categories.d.ts.map +1 -1
  449. package/resources/object-categories.js +2 -1
  450. package/resources/object-categories.js.map +1 -1
  451. package/resources/object-categories.mjs +2 -1
  452. package/resources/object-categories.mjs.map +1 -1
  453. package/resources/package-components/extract.d.mts +121 -0
  454. package/resources/package-components/extract.d.mts.map +1 -0
  455. package/resources/package-components/extract.d.ts +121 -0
  456. package/resources/package-components/extract.d.ts.map +1 -0
  457. package/resources/package-components/extract.js +69 -0
  458. package/resources/package-components/extract.js.map +1 -0
  459. package/resources/package-components/extract.mjs +65 -0
  460. package/resources/package-components/extract.mjs.map +1 -0
  461. package/resources/package-components/index.d.mts +4 -0
  462. package/resources/package-components/index.d.mts.map +1 -0
  463. package/resources/package-components/index.d.ts +4 -0
  464. package/resources/package-components/index.d.ts.map +1 -0
  465. package/resources/package-components/index.js +11 -0
  466. package/resources/package-components/index.js.map +1 -0
  467. package/resources/package-components/index.mjs +5 -0
  468. package/resources/package-components/index.mjs.map +1 -0
  469. package/resources/package-components/package-components.d.mts +99 -0
  470. package/resources/package-components/package-components.d.mts.map +1 -0
  471. package/resources/package-components/package-components.d.ts +99 -0
  472. package/resources/package-components/package-components.d.ts.map +1 -0
  473. package/resources/package-components/package-components.js +63 -0
  474. package/resources/package-components/package-components.js.map +1 -0
  475. package/resources/package-components/package-components.mjs +58 -0
  476. package/resources/package-components/package-components.mjs.map +1 -0
  477. package/resources/package-components/types.d.mts +56 -0
  478. package/resources/package-components/types.d.mts.map +1 -0
  479. package/resources/package-components/types.d.ts +56 -0
  480. package/resources/package-components/types.d.ts.map +1 -0
  481. package/resources/package-components/types.js +40 -0
  482. package/resources/package-components/types.js.map +1 -0
  483. package/resources/package-components/types.mjs +36 -0
  484. package/resources/package-components/types.mjs.map +1 -0
  485. package/resources/package-components.d.mts +2 -0
  486. package/resources/package-components.d.mts.map +1 -0
  487. package/resources/package-components.d.ts +2 -0
  488. package/resources/package-components.d.ts.map +1 -0
  489. package/resources/package-components.js +6 -0
  490. package/resources/package-components.js.map +1 -0
  491. package/resources/package-components.mjs +3 -0
  492. package/resources/package-components.mjs.map +1 -0
  493. package/resources/package-installs.d.mts +96 -9
  494. package/resources/package-installs.d.mts.map +1 -1
  495. package/resources/package-installs.d.ts +96 -9
  496. package/resources/package-installs.d.ts.map +1 -1
  497. package/resources/package-installs.js +20 -3
  498. package/resources/package-installs.js.map +1 -1
  499. package/resources/package-installs.mjs +20 -3
  500. package/resources/package-installs.mjs.map +1 -1
  501. package/resources/package-managed-installs.d.mts +104 -7
  502. package/resources/package-managed-installs.d.mts.map +1 -1
  503. package/resources/package-managed-installs.d.ts +104 -7
  504. package/resources/package-managed-installs.d.ts.map +1 -1
  505. package/resources/package-managed-installs.js +22 -3
  506. package/resources/package-managed-installs.js.map +1 -1
  507. package/resources/package-managed-installs.mjs +22 -3
  508. package/resources/package-managed-installs.mjs.map +1 -1
  509. package/resources/package-manifests/index.d.mts +4 -0
  510. package/resources/package-manifests/index.d.mts.map +1 -0
  511. package/resources/package-manifests/index.d.ts +4 -0
  512. package/resources/package-manifests/index.d.ts.map +1 -0
  513. package/resources/package-manifests/index.js +11 -0
  514. package/resources/package-manifests/index.js.map +1 -0
  515. package/resources/package-manifests/index.mjs +5 -0
  516. package/resources/package-manifests/index.mjs.map +1 -0
  517. package/resources/package-manifests/package-manifests.d.mts +14 -0
  518. package/resources/package-manifests/package-manifests.d.mts.map +1 -0
  519. package/resources/package-manifests/package-manifests.d.ts +14 -0
  520. package/resources/package-manifests/package-manifests.d.ts.map +1 -0
  521. package/resources/package-manifests/package-manifests.js +21 -0
  522. package/resources/package-manifests/package-manifests.js.map +1 -0
  523. package/resources/package-manifests/package-manifests.mjs +16 -0
  524. package/resources/package-manifests/package-manifests.mjs.map +1 -0
  525. package/resources/package-manifests/packages/index.d.mts +3 -0
  526. package/resources/package-manifests/packages/index.d.mts.map +1 -0
  527. package/resources/package-manifests/packages/index.d.ts +3 -0
  528. package/resources/package-manifests/packages/index.d.ts.map +1 -0
  529. package/resources/package-manifests/packages/index.js +9 -0
  530. package/resources/package-manifests/packages/index.js.map +1 -0
  531. package/resources/package-manifests/packages/index.mjs +4 -0
  532. package/resources/package-manifests/packages/index.mjs.map +1 -0
  533. package/resources/package-manifests/packages/packages.d.mts +10 -0
  534. package/resources/package-manifests/packages/packages.d.mts.map +1 -0
  535. package/resources/package-manifests/packages/packages.d.ts +10 -0
  536. package/resources/package-manifests/packages/packages.d.ts.map +1 -0
  537. package/resources/package-manifests/packages/packages.js +17 -0
  538. package/resources/package-manifests/packages/packages.js.map +1 -0
  539. package/resources/package-manifests/packages/packages.mjs +12 -0
  540. package/resources/package-manifests/packages/packages.mjs.map +1 -0
  541. package/resources/package-manifests/packages/versions.d.mts +199 -0
  542. package/resources/package-manifests/packages/versions.d.mts.map +1 -0
  543. package/resources/package-manifests/packages/versions.d.ts +199 -0
  544. package/resources/package-manifests/packages/versions.d.ts.map +1 -0
  545. package/resources/package-manifests/packages/versions.js +68 -0
  546. package/resources/package-manifests/packages/versions.js.map +1 -0
  547. package/resources/package-manifests/packages/versions.mjs +64 -0
  548. package/resources/package-manifests/packages/versions.mjs.map +1 -0
  549. package/resources/package-manifests/packages.d.mts +2 -0
  550. package/resources/package-manifests/packages.d.mts.map +1 -0
  551. package/resources/package-manifests/packages.d.ts +2 -0
  552. package/resources/package-manifests/packages.d.ts.map +1 -0
  553. package/resources/package-manifests/packages.js +6 -0
  554. package/resources/package-manifests/packages.js.map +1 -0
  555. package/resources/package-manifests/packages.mjs +3 -0
  556. package/resources/package-manifests/packages.mjs.map +1 -0
  557. package/resources/package-manifests/versions.d.mts +84 -0
  558. package/resources/package-manifests/versions.d.mts.map +1 -0
  559. package/resources/package-manifests/versions.d.ts +84 -0
  560. package/resources/package-manifests/versions.d.ts.map +1 -0
  561. package/resources/package-manifests/versions.js +44 -0
  562. package/resources/package-manifests/versions.js.map +1 -0
  563. package/resources/package-manifests/versions.mjs +40 -0
  564. package/resources/package-manifests/versions.mjs.map +1 -0
  565. package/resources/package-manifests.d.mts +2 -0
  566. package/resources/package-manifests.d.mts.map +1 -0
  567. package/resources/package-manifests.d.ts +2 -0
  568. package/resources/package-manifests.d.ts.map +1 -0
  569. package/resources/package-manifests.js +6 -0
  570. package/resources/package-manifests.js.map +1 -0
  571. package/resources/package-manifests.mjs +3 -0
  572. package/resources/package-manifests.mjs.map +1 -0
  573. package/resources/package-versions/package-versions.d.mts +104 -14
  574. package/resources/package-versions/package-versions.d.mts.map +1 -1
  575. package/resources/package-versions/package-versions.d.ts +104 -14
  576. package/resources/package-versions/package-versions.d.ts.map +1 -1
  577. package/resources/package-versions/package-versions.js +30 -9
  578. package/resources/package-versions/package-versions.js.map +1 -1
  579. package/resources/package-versions/package-versions.mjs +30 -9
  580. package/resources/package-versions/package-versions.mjs.map +1 -1
  581. package/resources/package-versions/publish.d.mts +40 -4
  582. package/resources/package-versions/publish.d.mts.map +1 -1
  583. package/resources/package-versions/publish.d.ts +40 -4
  584. package/resources/package-versions/publish.d.ts.map +1 -1
  585. package/resources/package-versions/publish.js +8 -2
  586. package/resources/package-versions/publish.js.map +1 -1
  587. package/resources/package-versions/publish.mjs +8 -2
  588. package/resources/package-versions/publish.mjs.map +1 -1
  589. package/resources/packages/next-versions.d.mts +40 -4
  590. package/resources/packages/next-versions.d.mts.map +1 -1
  591. package/resources/packages/next-versions.d.ts +40 -4
  592. package/resources/packages/next-versions.d.ts.map +1 -1
  593. package/resources/packages/next-versions.js +8 -2
  594. package/resources/packages/next-versions.js.map +1 -1
  595. package/resources/packages/next-versions.mjs +8 -2
  596. package/resources/packages/next-versions.mjs.map +1 -1
  597. package/resources/packages/versions.d.mts +80 -9
  598. package/resources/packages/versions.d.mts.map +1 -1
  599. package/resources/packages/versions.d.ts +80 -9
  600. package/resources/packages/versions.d.ts.map +1 -1
  601. package/resources/packages/versions.js +16 -5
  602. package/resources/packages/versions.js.map +1 -1
  603. package/resources/packages/versions.mjs +16 -5
  604. package/resources/packages/versions.mjs.map +1 -1
  605. package/resources/payroll-runs/off-cycle.d.mts +17 -9
  606. package/resources/payroll-runs/off-cycle.d.mts.map +1 -1
  607. package/resources/payroll-runs/off-cycle.d.ts +17 -9
  608. package/resources/payroll-runs/off-cycle.d.ts.map +1 -1
  609. package/resources/payroll-runs/off-cycle.js +9 -5
  610. package/resources/payroll-runs/off-cycle.js.map +1 -1
  611. package/resources/payroll-runs/off-cycle.mjs +9 -5
  612. package/resources/payroll-runs/off-cycle.mjs.map +1 -1
  613. package/resources/permissions/index.d.mts +3 -0
  614. package/resources/permissions/index.d.mts.map +1 -0
  615. package/resources/permissions/index.d.ts +3 -0
  616. package/resources/permissions/index.d.ts.map +1 -0
  617. package/resources/permissions/index.js +9 -0
  618. package/resources/permissions/index.js.map +1 -0
  619. package/resources/permissions/index.mjs +4 -0
  620. package/resources/permissions/index.mjs.map +1 -0
  621. package/resources/permissions/permission-profiles.d.mts +43 -0
  622. package/resources/permissions/permission-profiles.d.mts.map +1 -0
  623. package/resources/permissions/permission-profiles.d.ts +43 -0
  624. package/resources/permissions/permission-profiles.d.ts.map +1 -0
  625. package/resources/permissions/permission-profiles.js +36 -0
  626. package/resources/permissions/permission-profiles.js.map +1 -0
  627. package/resources/permissions/permission-profiles.mjs +32 -0
  628. package/resources/permissions/permission-profiles.mjs.map +1 -0
  629. package/resources/permissions/permissions.d.mts +10 -0
  630. package/resources/permissions/permissions.d.mts.map +1 -0
  631. package/resources/permissions/permissions.d.ts +10 -0
  632. package/resources/permissions/permissions.d.ts.map +1 -0
  633. package/resources/permissions/permissions.js +17 -0
  634. package/resources/permissions/permissions.js.map +1 -0
  635. package/resources/permissions/permissions.mjs +12 -0
  636. package/resources/permissions/permissions.mjs.map +1 -0
  637. package/resources/permissions.d.mts +2 -0
  638. package/resources/permissions.d.mts.map +1 -0
  639. package/resources/permissions.d.ts +2 -0
  640. package/resources/permissions.d.ts.map +1 -0
  641. package/resources/permissions.js +6 -0
  642. package/resources/permissions.js.map +1 -0
  643. package/resources/permissions.mjs +3 -0
  644. package/resources/permissions.mjs.map +1 -0
  645. package/resources/record-detail-reference-options.d.mts +111 -0
  646. package/resources/record-detail-reference-options.d.mts.map +1 -0
  647. package/resources/record-detail-reference-options.d.ts +111 -0
  648. package/resources/record-detail-reference-options.d.ts.map +1 -0
  649. package/resources/record-detail-reference-options.js +54 -0
  650. package/resources/record-detail-reference-options.js.map +1 -0
  651. package/resources/record-detail-reference-options.mjs +50 -0
  652. package/resources/record-detail-reference-options.mjs.map +1 -0
  653. package/resources/record-detail-related-records.d.mts +1070 -0
  654. package/resources/record-detail-related-records.d.mts.map +1 -0
  655. package/resources/record-detail-related-records.d.ts +1070 -0
  656. package/resources/record-detail-related-records.d.ts.map +1 -0
  657. package/resources/record-detail-related-records.js +49 -0
  658. package/resources/record-detail-related-records.js.map +1 -0
  659. package/resources/record-detail-related-records.mjs +45 -0
  660. package/resources/record-detail-related-records.mjs.map +1 -0
  661. package/resources/record-details.d.mts +1227 -0
  662. package/resources/record-details.d.mts.map +1 -0
  663. package/resources/record-details.d.ts +1227 -0
  664. package/resources/record-details.d.ts.map +1 -0
  665. package/resources/record-details.js +71 -0
  666. package/resources/record-details.js.map +1 -0
  667. package/resources/record-details.mjs +67 -0
  668. package/resources/record-details.mjs.map +1 -0
  669. package/resources/reimbursements.d.mts +2158 -90
  670. package/resources/reimbursements.d.mts.map +1 -1
  671. package/resources/reimbursements.d.ts +2158 -90
  672. package/resources/reimbursements.d.ts.map +1 -1
  673. package/resources/reimbursements.js +306 -16
  674. package/resources/reimbursements.js.map +1 -1
  675. package/resources/reimbursements.mjs +306 -16
  676. package/resources/reimbursements.mjs.map +1 -1
  677. package/resources/report-runs.d.mts +2 -1
  678. package/resources/report-runs.d.mts.map +1 -1
  679. package/resources/report-runs.d.ts +2 -1
  680. package/resources/report-runs.d.ts.map +1 -1
  681. package/resources/report-runs.js +2 -1
  682. package/resources/report-runs.js.map +1 -1
  683. package/resources/report-runs.mjs +2 -1
  684. package/resources/report-runs.mjs.map +1 -1
  685. package/resources/sandboxes.d.mts +20 -624
  686. package/resources/sandboxes.d.mts.map +1 -1
  687. package/resources/sandboxes.d.ts +20 -624
  688. package/resources/sandboxes.d.ts.map +1 -1
  689. package/resources/sandboxes.js +5 -60
  690. package/resources/sandboxes.js.map +1 -1
  691. package/resources/sandboxes.mjs +5 -60
  692. package/resources/sandboxes.mjs.map +1 -1
  693. package/src/client.ts +180 -17
  694. package/src/core/platform/custom-objects/manager.ts +65 -42
  695. package/src/core/platform/custom-objects.ts +3 -0
  696. package/src/index.ts +17 -0
  697. package/src/lib/manifest/acp-agent.ts +7 -1
  698. package/src/lib/manifest/composition.ts +133 -0
  699. package/src/lib/manifest/definitions/README.md +89 -0
  700. package/src/lib/manifest/definitions/_object-records.ts +225 -0
  701. package/src/lib/manifest/definitions/action.ts +31 -0
  702. package/src/lib/manifest/definitions/agent.ts +149 -0
  703. package/src/lib/manifest/definitions/app.ts +12 -0
  704. package/src/lib/manifest/definitions/category.ts +35 -0
  705. package/src/lib/manifest/definitions/component.ts +241 -0
  706. package/src/lib/manifest/definitions/custom-field-section.ts +39 -0
  707. package/src/lib/manifest/definitions/custom-field.ts +32 -0
  708. package/src/lib/manifest/definitions/custom-object.ts +791 -0
  709. package/src/lib/manifest/definitions/custom-skill.ts +28 -0
  710. package/src/lib/manifest/definitions/field-section.ts +31 -0
  711. package/src/lib/manifest/definitions/field.ts +119 -0
  712. package/src/lib/manifest/definitions/function.ts +198 -0
  713. package/src/lib/manifest/definitions/index.ts +91 -0
  714. package/src/lib/manifest/definitions/list-view.ts +48 -0
  715. package/src/lib/manifest/definitions/object-search-config.ts +44 -0
  716. package/src/lib/manifest/definitions/object-settings.ts +61 -0
  717. package/src/lib/manifest/definitions/page-layout.ts +218 -0
  718. package/src/lib/manifest/definitions/page.ts +28 -0
  719. package/src/lib/manifest/definitions/record-triggered-flow.ts +71 -0
  720. package/src/lib/manifest/definitions/validation.ts +46 -0
  721. package/src/lib/manifest/definitions/workflow.ts +62 -0
  722. package/src/lib/manifest/index.ts +4 -0
  723. package/src/lib/manifest/package-manifest.ts +40 -0
  724. package/src/resources/activity-log.ts +1 -1
  725. package/src/resources/agents/sessions/messages.ts +10 -1
  726. package/src/resources/agents/sessions/sessions.ts +30 -3
  727. package/src/resources/bills.ts +1660 -0
  728. package/src/resources/card-transactions.ts +742 -49
  729. package/src/resources/custom-objects/custom-objects.ts +62 -2
  730. package/src/resources/custom-objects/fields.ts +44 -0
  731. package/src/resources/custom-objects/index.ts +13 -1
  732. package/src/resources/custom-objects/list-views/capabilities.ts +72 -0
  733. package/src/resources/custom-objects/list-views/default.ts +87 -0
  734. package/src/resources/custom-objects/list-views/index.ts +15 -0
  735. package/src/resources/custom-objects/list-views/list-views.ts +973 -0
  736. package/src/resources/custom-objects/list-views.ts +3 -0
  737. package/src/resources/custom-objects/records/capabilities.ts +73 -0
  738. package/src/resources/custom-objects/records/index.ts +21 -0
  739. package/src/resources/custom-objects/records/records.ts +955 -0
  740. package/src/resources/custom-objects/records.ts +1 -703
  741. package/src/resources/devices.ts +2 -0
  742. package/src/resources/draft-transitions.ts +276 -347
  743. package/src/resources/employee-documents.ts +2 -2
  744. package/src/resources/{spend-categories.ts → finance-categories.ts} +26 -23
  745. package/src/resources/finance-vendors.ts +191 -0
  746. package/src/resources/functions/executions.ts +4 -1
  747. package/src/resources/functions/functions.ts +216 -4
  748. package/src/resources/hire-requirements.ts +107 -9
  749. package/src/resources/hires.ts +1768 -539
  750. package/src/resources/index.ts +51 -7
  751. package/src/resources/leave-requests.ts +11 -2
  752. package/src/resources/object-categories.ts +2 -1
  753. package/src/resources/package-components/extract.ts +139 -0
  754. package/src/resources/package-components/index.ts +10 -0
  755. package/src/resources/package-components/package-components.ts +134 -0
  756. package/src/resources/package-components/types.ts +64 -0
  757. package/src/resources/package-components.ts +3 -0
  758. package/src/resources/package-installs.ts +120 -9
  759. package/src/resources/package-managed-installs.ts +146 -7
  760. package/src/resources/package-manifests/index.ts +5 -0
  761. package/src/resources/package-manifests/package-manifests.ts +21 -0
  762. package/src/resources/package-manifests/packages/index.ts +4 -0
  763. package/src/resources/package-manifests/packages/packages.ts +19 -0
  764. package/src/resources/package-manifests/packages/versions.ts +237 -0
  765. package/src/resources/package-manifests/packages.ts +3 -0
  766. package/src/resources/package-manifests/versions.ts +96 -0
  767. package/src/resources/package-manifests.ts +3 -0
  768. package/src/resources/package-versions/package-versions.ts +117 -14
  769. package/src/resources/package-versions/publish.ts +46 -4
  770. package/src/resources/packages/next-versions.ts +46 -4
  771. package/src/resources/packages/versions.ts +92 -9
  772. package/src/resources/payroll-runs/off-cycle.ts +17 -9
  773. package/src/resources/permissions/index.ts +4 -0
  774. package/src/resources/permissions/permission-profiles.ts +50 -0
  775. package/src/resources/permissions/permissions.ts +20 -0
  776. package/src/resources/permissions.ts +3 -0
  777. package/src/resources/record-detail-reference-options.ts +142 -0
  778. package/src/resources/record-detail-related-records.ts +1380 -0
  779. package/src/resources/record-details.ts +1554 -0
  780. package/src/resources/reimbursements.ts +2591 -126
  781. package/src/resources/report-runs.ts +2 -1
  782. package/src/resources/sandboxes.ts +48 -742
  783. package/src/version.ts +1 -1
  784. package/version.d.mts +1 -1
  785. package/version.d.ts +1 -1
  786. package/version.js +1 -1
  787. package/version.mjs +1 -1
  788. package/resources/spend-categories.d.mts.map +0 -1
  789. package/resources/spend-categories.d.ts.map +0 -1
  790. package/resources/spend-categories.js.map +0 -1
  791. package/resources/spend-categories.mjs.map +0 -1
@@ -2,24 +2,29 @@
2
2
 
3
3
  import { APIResource } from '../core/resource';
4
4
  import * as BusinessPartnersAPI from './business-partners';
5
+ import * as WorkersAPI from './workers';
5
6
  import { APIPromise } from '../core/api-promise';
6
7
  import { PageCursorURL, PagePromise } from '../core/pagination';
7
8
  import { RequestOptions } from '../internal/request-options';
8
9
  import { path } from '../internal/utils/path';
9
10
 
11
+ /**
12
+ * Expense reimbursements, including mileage and per diem
13
+ */
10
14
  export class Reimbursements extends APIResource {
11
15
  /**
12
16
  * A list of reimbursements.
13
17
  *
14
- * - Requires: `Internal Testing`
15
- * - Filterable fields: `worker_id`, `transaction_date`, `entity_id`, `vendor_id`,
16
- * `category_id`, `transaction_type`
18
+ * - Requires: `Spend Management Platform API`
19
+ * - Filterable fields: `worker_id`, `entity_id`, `vendor_id`, `transaction_date`,
20
+ * `transaction_type`
21
+ * - Expandable fields: `worker`, `vendor`, `mileage_rate`, `per_diem_rate`
17
22
  * - Sortable fields: `id`, `created_at`, `updated_at`, `transaction_date`
18
23
  *
19
24
  * @example HTTP
20
25
  * Representative request and response shapes.
21
26
  * ```
22
- * GET /reimbursements/?filter=filter&order_by=order_by&limit=50&cursor=cursor HTTP/1.1
27
+ * GET /reimbursements/?filter=filter&expand=expand&order_by=order_by&limit=50&cursor=cursor HTTP/1.1
23
28
  * Host: rest.ripplingapis.com
24
29
  * Accept: application/json
25
30
  * Rippling-Api-Version: 2024-08-01
@@ -42,6 +47,55 @@ export class Reimbursements extends APIResource {
42
47
  * "created_at": "string",
43
48
  * "updated_at": "string",
44
49
  * "worker_id": "string",
50
+ * "worker": {
51
+ * "id": "string",
52
+ * "created_at": "string",
53
+ * "updated_at": "string",
54
+ * "user_id": "string",
55
+ * "user": {},
56
+ * "is_manager": "string",
57
+ * "manager_id": "string",
58
+ * "manager": {},
59
+ * "legal_entity_id": "string",
60
+ * "legal_entity": {},
61
+ * "country": "AF",
62
+ * "start_date": "string",
63
+ * "end_date": "string",
64
+ * "number": "string",
65
+ * "work_email": "string",
66
+ * "personal_email": "string",
67
+ * "status": "INIT",
68
+ * "location": {},
69
+ * "employment_type_id": "string",
70
+ * "employment_type": {},
71
+ * "gender": "MALE",
72
+ * "date_of_birth": "string",
73
+ * "race": "BLACK",
74
+ * "ethnicity": "HISPANIC_OR_LATINO",
75
+ * "citizenship": "AF",
76
+ * "compensation_id": "string",
77
+ * "compensation": {},
78
+ * "overtime_exemption": "EXEMPT",
79
+ * "department_id": "string",
80
+ * "department": {},
81
+ * "teams_id": [],
82
+ * "teams": [],
83
+ * "title": "string",
84
+ * "title_effective_date": "string",
85
+ * "level_id": "string",
86
+ * "level": {},
87
+ * "job_function_id": "string",
88
+ * "job_function": {},
89
+ * "termination_details": {},
90
+ * "pay_schedule_id": "string",
91
+ * "work_schedule": {},
92
+ * "compensation_grade": {},
93
+ * "original_start_date": "string",
94
+ * "custom_fields": [],
95
+ * "country_fields": {},
96
+ * "business_partners_id": [],
97
+ * "business_partners": []
98
+ * },
45
99
  * "company_amount": {
46
100
  * "currency_type": "string",
47
101
  * "value": "string"
@@ -50,14 +104,17 @@ export class Reimbursements extends APIResource {
50
104
  * "currency_type": "string",
51
105
  * "value": "string"
52
106
  * },
53
- * "transaction_date": "string",
54
107
  * "accounting_date": "string",
55
108
  * "gl_sync_state": "NOT_FINALIZED",
56
109
  * "approval_status": "DRAFT",
57
110
  * "entity_id": "string",
58
111
  * "vendor": {
59
112
  * "id": "string",
60
- * "name": "string"
113
+ * "created_at": "string",
114
+ * "updated_at": "string",
115
+ * "name": "string",
116
+ * "logo": "string",
117
+ * "is_archived": "string"
61
118
  * },
62
119
  * "gl_vendor": {
63
120
  * "id": "string",
@@ -65,13 +122,18 @@ export class Reimbursements extends APIResource {
65
122
  * "gl_vendor_id": "string"
66
123
  * },
67
124
  * "memo": "string",
68
- * "receipt": "string",
69
125
  * "attachments": [
70
- * "string"
126
+ * {}
71
127
  * ],
72
128
  * "line_items": [
73
129
  * {}
74
130
  * ],
131
+ * "vendor_id": "string",
132
+ * "transaction_date": "string",
133
+ * "receipt": {
134
+ * "url": "string",
135
+ * "file_name": "string"
136
+ * },
75
137
  * "transaction_type": "REIMBURSEMENT",
76
138
  * "payout_amount": {
77
139
  * "currency_type": "string",
@@ -80,21 +142,44 @@ export class Reimbursements extends APIResource {
80
142
  * "payout_method": "NOT_SET",
81
143
  * "payout_date": "string",
82
144
  * "distance": 0,
145
+ * "mileage_rate_id": "string",
83
146
  * "mileage_rate": {
84
147
  * "id": "string",
148
+ * "created_at": "string",
149
+ * "updated_at": "string",
85
150
  * "name": "string",
86
151
  * "rate": {},
87
- * "units": "km"
152
+ * "units": "km",
153
+ * "start_date": "string",
154
+ * "end_date": "string",
155
+ * "country": "string",
156
+ * "half_cent": "string"
157
+ * },
158
+ * "start_location": {
159
+ * "address": "string",
160
+ * "coordinates": {}
161
+ * },
162
+ * "end_location": {
163
+ * "address": "string",
164
+ * "coordinates": {}
88
165
  * },
89
- * "start_address": "string",
90
- * "end_address": "string",
166
+ * "waypoints": [
167
+ * {}
168
+ * ],
91
169
  * "trip_start_date": "string",
92
170
  * "trip_end_date": "string",
171
+ * "per_diem_rate_id": "string",
93
172
  * "per_diem_rate": {
94
173
  * "id": "string",
174
+ * "created_at": "string",
175
+ * "updated_at": "string",
95
176
  * "destination_name": "string",
96
177
  * "country": "string",
97
- * "currency": "string"
178
+ * "currency": "string",
179
+ * "start_date": "string",
180
+ * "end_date": "string",
181
+ * "is_current": "string",
182
+ * "is_archived": "string"
98
183
  * },
99
184
  * "per_diem_line_items": [
100
185
  * {}
@@ -116,12 +201,13 @@ export class Reimbursements extends APIResource {
116
201
  }
117
202
 
118
203
  /**
119
- * Retrieve a specific reimbursement
204
+ * Retrieve a specific reimbursement. Expandable fields: `worker`, `vendor`,
205
+ * `mileage_rate`, `per_diem_rate`.
120
206
  *
121
207
  * @example HTTP
122
208
  * Representative request and response shapes.
123
209
  * ```
124
- * GET /reimbursements/{id}/ HTTP/1.1
210
+ * GET /reimbursements/{id}/?expand=expand HTTP/1.1
125
211
  * Host: rest.ripplingapis.com
126
212
  * Accept: application/json
127
213
  * Rippling-Api-Version: 2024-08-01
@@ -138,20 +224,237 @@ export class Reimbursements extends APIResource {
138
224
  * }
139
225
  * ```
140
226
  */
141
- retrieve(id: string, options?: RequestOptions): APIPromise<ReimbursementRetrieveResponse> {
142
- return this._client.get(path`/reimbursements/${id}/`, options);
227
+ retrieve(
228
+ id: string,
229
+ query: ReimbursementRetrieveParams | null | undefined = {},
230
+ options?: RequestOptions,
231
+ ): APIPromise<ReimbursementRetrieveResponse> {
232
+ return this._client.get(path`/reimbursements/${id}/`, { query, ...options });
233
+ }
234
+
235
+ /**
236
+ * Replace a reimbursement's line items. Supplying `line_items` replaces the entire
237
+ * list: unlisted lines are deleted, omitted or null optional fields on supplied
238
+ * lines are cleared. `amount` and `tax_amount` are decimal strings in the merchant
239
+ * currency; GET responses return them as Currency objects. Line item `amount`
240
+ * values must sum to the reimbursement's merchant amount. Line items on per-diem
241
+ * reimbursements cannot be updated. Mileage reimbursements must have exactly one
242
+ * line item.
243
+ *
244
+ * @example HTTP
245
+ * Representative request and response shapes.
246
+ * ```
247
+ * PATCH /reimbursements/{id}/ HTTP/1.1
248
+ * Host: rest.ripplingapis.com
249
+ * Content-Type: application/json
250
+ * Accept: application/json
251
+ * Rippling-Api-Version: 2024-08-01
252
+ *
253
+ * {}
254
+ *
255
+ * HTTP/1.1 200 OK
256
+ * Content-Type: application/json
257
+ *
258
+ * {
259
+ * "id": "string",
260
+ * "created_at": "string",
261
+ * "updated_at": "string",
262
+ * "worker_id": "string",
263
+ * "worker": {
264
+ * "id": "string",
265
+ * "created_at": "string",
266
+ * "updated_at": "string"
267
+ * },
268
+ * "company_amount": {},
269
+ * "merchant_amount": {
270
+ * "currency_type": "string",
271
+ * "value": 0
272
+ * },
273
+ * "accounting_date": "string",
274
+ * "gl_sync_state": "NOT_FINALIZED",
275
+ * "approval_status": "DRAFT",
276
+ * "entity_id": "string",
277
+ * "vendor": {
278
+ * "id": "string",
279
+ * "created_at": "string",
280
+ * "updated_at": "string",
281
+ * "name": "string",
282
+ * "logo": "string",
283
+ * "is_archived": false
284
+ * },
285
+ * "gl_vendor": {
286
+ * "id": "string",
287
+ * "name": "string",
288
+ * "gl_vendor_id": "string"
289
+ * },
290
+ * "memo": "string",
291
+ * "attachments": [
292
+ * {
293
+ * "url": "string",
294
+ * "file_name": "string",
295
+ * "uploaded_at": "string",
296
+ * "uploaded_by_id": "string"
297
+ * }
298
+ * ],
299
+ * "line_items": [
300
+ * {
301
+ * "gl_customer": "string",
302
+ * "gl_billable": "BILLABLE",
303
+ * "dimension_choices": {},
304
+ * "memo": "string",
305
+ * "gl_amortization_template": {
306
+ * "gl_object_id": "string",
307
+ * "accounting_integration_id": "string",
308
+ * "name": "string",
309
+ * "gl_object_type": "GL_AMORTIZATION_TEMPLATE"
310
+ * },
311
+ * "amortized": false,
312
+ * "start_date": "string",
313
+ * "end_date": "string",
314
+ * "prepaid_account": {
315
+ * "account_id": "string",
316
+ * "name": "string",
317
+ * "code": "string",
318
+ * "type": "RECEIVABLE",
319
+ * "required_custom_dimensions": [],
320
+ * "requires_department": "string",
321
+ * "requires_work_location": "string"
322
+ * },
323
+ * "gl_amortization_schedule": {
324
+ * "gl_object_id": "string",
325
+ * "accounting_integration_id": "string",
326
+ * "name": "string",
327
+ * "gl_object_type": "GL_AMORTIZATION_TEMPLATE",
328
+ * "start_date": "string",
329
+ * "end_date": "string",
330
+ * "total_amount": "string",
331
+ * "total_amortized_amount": "string",
332
+ * "amortization_period": "string",
333
+ * "status": "NOT_STARTED"
334
+ * },
335
+ * "gl_tax_code": "string",
336
+ * "id": "string",
337
+ * "category_id": "string",
338
+ * "category_name": "string",
339
+ * "amount": {
340
+ * "currency_type": "string",
341
+ * "value": "string"
342
+ * },
343
+ * "tax_amount": {
344
+ * "currency_type": "string",
345
+ * "value": "string"
346
+ * }
347
+ * }
348
+ * ],
349
+ * "vendor_id": "string",
350
+ * "transaction_date": "string",
351
+ * "receipt": {
352
+ * "url": "string",
353
+ * "file_name": "string"
354
+ * },
355
+ * "transaction_type": "REIMBURSEMENT",
356
+ * "payout_amount": {
357
+ * "currency_type": "string",
358
+ * "value": 0
359
+ * },
360
+ * "payout_method": "NOT_SET",
361
+ * "payout_date": "string",
362
+ * "distance": 0,
363
+ * "mileage_rate_id": "string",
364
+ * "mileage_rate": {
365
+ * "id": "string",
366
+ * "created_at": "string",
367
+ * "updated_at": "string",
368
+ * "name": "string",
369
+ * "rate": {
370
+ * "currency_type": "string",
371
+ * "value": 0
372
+ * },
373
+ * "units": "km",
374
+ * "start_date": "string",
375
+ * "end_date": "string",
376
+ * "country": "string",
377
+ * "half_cent": false
378
+ * },
379
+ * "start_location": {
380
+ * "address": "string",
381
+ * "coordinates": {
382
+ * "latitude": 0,
383
+ * "longitude": 0
384
+ * }
385
+ * },
386
+ * "end_location": {
387
+ * "address": "string",
388
+ * "coordinates": {
389
+ * "latitude": 0,
390
+ * "longitude": 0
391
+ * }
392
+ * },
393
+ * "waypoints": [
394
+ * {
395
+ * "address": "string",
396
+ * "coordinates": {
397
+ * "latitude": "string",
398
+ * "longitude": "string"
399
+ * }
400
+ * }
401
+ * ],
402
+ * "trip_start_date": "string",
403
+ * "trip_end_date": "string",
404
+ * "per_diem_rate_id": "string",
405
+ * "per_diem_rate": {
406
+ * "id": "string",
407
+ * "created_at": "string",
408
+ * "updated_at": "string",
409
+ * "destination_name": "string",
410
+ * "country": "string",
411
+ * "currency": "string",
412
+ * "start_date": "string",
413
+ * "end_date": "string",
414
+ * "is_current": false,
415
+ * "is_archived": false
416
+ * },
417
+ * "per_diem_line_items": [
418
+ * {
419
+ * "sub_rate_id": "string",
420
+ * "sub_rate_type": "FULL_DAY",
421
+ * "label": "string",
422
+ * "amount": {
423
+ * "currency_type": "string",
424
+ * "value": "string"
425
+ * },
426
+ * "count": 0,
427
+ * "line_type": "INCLUDE",
428
+ * "calculated_amount": {
429
+ * "currency_type": "string",
430
+ * "value": "string"
431
+ * }
432
+ * }
433
+ * ]
434
+ * }
435
+ * ```
436
+ */
437
+ update(
438
+ id: string,
439
+ body: ReimbursementUpdateParams | null | undefined = {},
440
+ options?: RequestOptions,
441
+ ): APIPromise<ReimbursementUpdateResponse> {
442
+ return this._client.patch(path`/reimbursements/${id}/`, { body, ...options });
143
443
  }
144
444
  }
145
445
 
146
446
  export type ReimbursementListResponsesPageCursorURL = PageCursorURL<ReimbursementListResponse>;
147
447
 
148
448
  /**
149
- * A Spend reimbursement the caller can see.
449
+ * A Finance reimbursement the caller can see.
150
450
  *
151
451
  * A reimbursement is an expense the worker paid and the company pays back. Mileage and per diem
152
452
  * use the same resource, with transaction_type MILEAGE_REIMBURSEMENT or PER_DIEM_REIMBURSEMENT.
153
453
  * Retrieve returns one by ID. A reimbursement the caller cannot see returns 404, the same as one
154
- * that does not exist.
454
+ * that does not exist. PATCH `/reimbursements/{id}/` accepts only `line_items` and replaces the entire list.
455
+ * Request `amount` and `tax_amount` are decimal strings (for example `"75.00"`), not Currency
456
+ * objects. GET responses return those fields as Currency objects (`currency_type` + `value`).
457
+ * The sum of request `amount` values must equal the reimbursement's merchant amount.
155
458
  */
156
459
  export interface ReimbursementListResponse {
157
460
  /**
@@ -195,9 +498,9 @@ export interface ReimbursementListResponse {
195
498
  | 'FAILED';
196
499
 
197
500
  /**
198
- * URLs of other attached files.
501
+ * Other attached files, including filenames and recorded upload metadata.
199
502
  */
200
- attachments?: Array<string>;
503
+ attachments?: Array<ReimbursementListResponse.Attachment>;
201
504
 
202
505
  /**
203
506
  * Amount in the company's headquarters currency. The `value` is a decimal string.
@@ -210,9 +513,9 @@ export interface ReimbursementListResponse {
210
513
  distance?: number;
211
514
 
212
515
  /**
213
- * Mileage end address. Null when the trip has no end address.
516
+ * End of a mileage trip. Null except on mileage reimbursements.
214
517
  */
215
- end_address?: string;
518
+ end_location?: ReimbursementListResponse.EndLocation;
216
519
 
217
520
  /**
218
521
  * ID of the legal entity the transaction belongs to. Use it with
@@ -245,7 +548,7 @@ export interface ReimbursementListResponse {
245
548
  gl_vendor?: ReimbursementListResponse.GlVendor;
246
549
 
247
550
  /**
248
- * Category splits of the transaction amount.
551
+ * Category splits of the transaction amount. Updates replace the entire list.
249
552
  */
250
553
  line_items?: Array<ReimbursementListResponse.LineItem>;
251
554
 
@@ -261,10 +564,20 @@ export interface ReimbursementListResponse {
261
564
  merchant_amount?: ReimbursementListResponse.MerchantAmount;
262
565
 
263
566
  /**
264
- * Company mileage rate. Null except on mileage reimbursements.
567
+ * Company mileage rate. Include with `expand=mileage_rate` using
568
+ * `reimbursements.read`.
569
+ *
570
+ * Expandable field
265
571
  */
266
572
  mileage_rate?: ReimbursementListResponse.MileageRate;
267
573
 
574
+ /**
575
+ * ID of the company mileage rate. Null except on mileage reimbursements. Resolve
576
+ * it with `expand=mileage_rate` on this reimbursement using `reimbursements.read`;
577
+ * there is no standalone rate lookup endpoint.
578
+ */
579
+ mileage_rate_id?: string;
580
+
268
581
  /**
269
582
  * Amount credited to the worker. The `value` is a decimal string.
270
583
  */
@@ -291,19 +604,29 @@ export interface ReimbursementListResponse {
291
604
  per_diem_line_items?: Array<ReimbursementListResponse.PerDiemLineItem>;
292
605
 
293
606
  /**
294
- * Per diem rate for the trip. Null except on per diem reimbursements.
607
+ * Per diem rate for the trip. Include with `expand=per_diem_rate` using
608
+ * `reimbursements.read`.
609
+ *
610
+ * Expandable field
295
611
  */
296
612
  per_diem_rate?: ReimbursementListResponse.PerDiemRate;
297
613
 
298
614
  /**
299
- * URL of the receipt file.
615
+ * ID of the per diem rate. Null except on per diem reimbursements. Resolve it with
616
+ * `expand=per_diem_rate` on this reimbursement using `reimbursements.read`; there
617
+ * is no standalone rate lookup endpoint.
618
+ */
619
+ per_diem_rate_id?: string;
620
+
621
+ /**
622
+ * Receipt file and its filename.
300
623
  */
301
- receipt?: string;
624
+ receipt?: ReimbursementListResponse.Receipt;
302
625
 
303
626
  /**
304
- * Mileage start address. Null when the trip has no start address.
627
+ * Start of a mileage trip. Null except on mileage reimbursements.
305
628
  */
306
- start_address?: string;
629
+ start_location?: ReimbursementListResponse.StartLocation;
307
630
 
308
631
  /**
309
632
  * When the purchase or authorization happened, as an ISO 8601 date-time in UTC.
@@ -331,10 +654,30 @@ export interface ReimbursementListResponse {
331
654
  trip_start_date?: string;
332
655
 
333
656
  /**
334
- * Vendor the purchase was made from.
657
+ * Vendor details. Expand with `reimbursements.read` and `finance-vendors.read`.
658
+ *
659
+ * Expandable field
335
660
  */
336
661
  vendor?: ReimbursementListResponse.Vendor;
337
662
 
663
+ /**
664
+ * ID of the Finance vendor. Use it with `/finance-vendors/{id}/`.
665
+ */
666
+ vendor_id?: string;
667
+
668
+ /**
669
+ * List of intermediate stops during the trip, for mileage reimbursements. Null
670
+ * except on mileage reimbursements.
671
+ */
672
+ waypoints?: Array<ReimbursementListResponse.Waypoint>;
673
+
674
+ /**
675
+ * Worker details. Expand with `reimbursements.read` and `workers.read`.
676
+ *
677
+ * Expandable field
678
+ */
679
+ worker?: WorkersAPI.Worker;
680
+
338
681
  /**
339
682
  * ID of the worker who made the transaction. Use it with `/workers/{id}/`.
340
683
  */
@@ -342,6 +685,32 @@ export interface ReimbursementListResponse {
342
685
  }
343
686
 
344
687
  export namespace ReimbursementListResponse {
688
+ /**
689
+ * A Finance transaction attachment with recorded upload details.
690
+ */
691
+ export interface Attachment {
692
+ /**
693
+ * URL for accessing the file.
694
+ */
695
+ url: string;
696
+
697
+ /**
698
+ * Original file name, when recorded.
699
+ */
700
+ file_name?: string;
701
+
702
+ /**
703
+ * When the attachment was uploaded, as an ISO 8601 date-time in UTC, when
704
+ * recorded.
705
+ */
706
+ uploaded_at?: string;
707
+
708
+ /**
709
+ * ID of the worker who uploaded the attachment. Use it with `/workers/{id}/`.
710
+ */
711
+ uploaded_by_id?: string;
712
+ }
713
+
345
714
  /**
346
715
  * Amount in the company's headquarters currency. The `value` is a decimal string.
347
716
  */
@@ -357,6 +726,40 @@ export namespace ReimbursementListResponse {
357
726
  value?: number;
358
727
  }
359
728
 
729
+ /**
730
+ * End of a mileage trip. Null except on mileage reimbursements.
731
+ */
732
+ export interface EndLocation {
733
+ /**
734
+ * Address of this point. Null when the point has no address.
735
+ */
736
+ address?: string;
737
+
738
+ /**
739
+ * Latitude and longitude of this point, in decimal degrees. Null when the point
740
+ * has no coordinates.
741
+ */
742
+ coordinates?: EndLocation.Coordinates;
743
+ }
744
+
745
+ export namespace EndLocation {
746
+ /**
747
+ * Latitude and longitude of this point, in decimal degrees. Null when the point
748
+ * has no coordinates.
749
+ */
750
+ export interface Coordinates {
751
+ /**
752
+ * Latitude of this point, in decimal degrees.
753
+ */
754
+ latitude?: number;
755
+
756
+ /**
757
+ * Longitude of this point, in decimal degrees.
758
+ */
759
+ longitude?: number;
760
+ }
761
+ }
762
+
360
763
  /**
361
764
  * Vendor in the connected accounting system.
362
765
  */
@@ -378,28 +781,56 @@ export namespace ReimbursementListResponse {
378
781
  }
379
782
 
380
783
  export interface LineItem {
784
+ /**
785
+ * Unique identifier of this line item. Null for older line items that have not
786
+ * been assigned one yet.
787
+ */
788
+ id?: string;
789
+
790
+ /**
791
+ * Whether this line is amortized.
792
+ */
793
+ amortized?: boolean;
794
+
381
795
  /**
382
796
  * Amount of this split, in the merchant currency. The `value` is a decimal string.
383
797
  */
384
798
  amount?: LineItem.Amount;
385
799
 
386
800
  /**
387
- * ID of the Spend category assigned to this split. No public API is currently
388
- * available to retrieve this category; its name is in `category_name`.
801
+ * ID of the Finance category assigned to this split. Use it with
802
+ * `/finance-categories/{id}/`. The category name is in `category_name`.
389
803
  */
390
804
  category_id?: string;
391
805
 
392
806
  /**
393
- * Name of the spend category.
807
+ * Name of the finance category.
394
808
  */
395
809
  category_name?: string;
396
810
 
397
811
  /**
398
- * Selected dimension values, keyed by dimension ID. Includes department and work
399
- * location.
812
+ * Selected dimension values, keyed by dimension ID. `DEPARTMENT` and
813
+ * `WORK_LOCATION` are the built-in keys. Get custom dimension IDs from
814
+ * `/job-dimensions/` and `/job-dimensions/{id}/`. Each choice `value` is a job
815
+ * code ID from `/job-codes/` and `/job-codes/{id}/`.
400
816
  */
401
817
  dimension_choices?: { [key: string]: LineItem.DimensionChoices };
402
818
 
819
+ /**
820
+ * End of the amortization period (YYYY-MM-DD).
821
+ */
822
+ end_date?: string;
823
+
824
+ /**
825
+ * ERP amortization schedule associated with this line.
826
+ */
827
+ gl_amortization_schedule?: LineItem.GlAmortizationSchedule;
828
+
829
+ /**
830
+ * ERP amortization template for this line.
831
+ */
832
+ gl_amortization_template?: LineItem.GlAmortizationTemplate;
833
+
403
834
  /**
404
835
  * Whether this split is billed to `gl_customer` in the accounting system.
405
836
  * `BILLABLE` means it is billed, `NOT_BILLABLE` means it is not. Null when not
@@ -413,10 +844,31 @@ export namespace ReimbursementListResponse {
413
844
  */
414
845
  gl_customer?: string;
415
846
 
847
+ /**
848
+ * Rippling ID of the accounting tax code. No public Rippling API is currently
849
+ * available to retrieve this accounting tax code.
850
+ */
851
+ gl_tax_code?: string;
852
+
416
853
  /**
417
854
  * Memo entered on this split.
418
855
  */
419
856
  memo?: string;
857
+
858
+ /**
859
+ * Prepaid asset account for Rippling-managed amortization.
860
+ */
861
+ prepaid_account?: LineItem.PrepaidAccount;
862
+
863
+ /**
864
+ * Start of the amortization period (YYYY-MM-DD).
865
+ */
866
+ start_date?: string;
867
+
868
+ /**
869
+ * Total tax amount for this line in the merchant currency.
870
+ */
871
+ tax_amount?: LineItem.TaxAmount;
420
872
  }
421
873
 
422
874
  export namespace LineItem {
@@ -447,10 +899,192 @@ export namespace ReimbursementListResponse {
447
899
  label?: string;
448
900
 
449
901
  /**
450
- * ID of the selected dimension value.
902
+ * ID of the selected value. For `DEPARTMENT` use `/departments/{id}/`, for
903
+ * `WORK_LOCATION` use `/work-locations/{id}/`, and for a custom job dimension use
904
+ * `/job-codes/{id}/`.
451
905
  */
452
906
  value?: string;
453
907
  }
908
+
909
+ /**
910
+ * ERP amortization schedule associated with this line.
911
+ */
912
+ export interface GlAmortizationSchedule {
913
+ /**
914
+ * Rippling ID of the accounting integration that owns this object. No public
915
+ * Rippling API is currently available to retrieve this accounting integration.
916
+ */
917
+ accounting_integration_id?: string;
918
+
919
+ /**
920
+ * Number of amortization periods.
921
+ */
922
+ amortization_period?: number;
923
+
924
+ /**
925
+ * End of the ERP amortization schedule as an ISO 8601 timestamp (for example,
926
+ * 2026-12-31T00:00:00). May omit a timezone offset; an omitted offset does not
927
+ * indicate UTC. Null when not set.
928
+ */
929
+ end_date?: string;
930
+
931
+ /**
932
+ * Object ID in the connected accounting system.
933
+ */
934
+ gl_object_id?: string;
935
+
936
+ /**
937
+ * Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
938
+ * defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
939
+ * GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
940
+ * ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
941
+ * accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
942
+ * customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
943
+ * when not set.
944
+ */
945
+ gl_object_type?:
946
+ | 'GL_AMORTIZATION_TEMPLATE'
947
+ | 'GL_AMORTIZATION_SCHEDULE'
948
+ | 'GL_AMORTIZATION_SCHEDULE_RECURRENCE'
949
+ | 'GL_ACCOUNT'
950
+ | 'GL_JOURNAL_ENTRY'
951
+ | 'GL_POSTING_PERIOD'
952
+ | 'GL_VENDOR'
953
+ | 'GL_CUSTOMER'
954
+ | 'GL_EMPLOYEE'
955
+ | 'GL_SUBSIDIARY';
956
+
957
+ /**
958
+ * Accounting object name.
959
+ */
960
+ name?: string;
961
+
962
+ /**
963
+ * Start of the ERP amortization schedule as an ISO 8601 timestamp (for example,
964
+ * 2026-01-01T00:00:00). May omit a timezone offset; an omitted offset does not
965
+ * indicate UTC. Null when not set.
966
+ */
967
+ start_date?: string;
968
+
969
+ /**
970
+ * ERP amortization schedule status: NOT_STARTED means amortization has not begun;
971
+ * IN_PROGRESS means amortization is underway; COMPLETED means amortization is
972
+ * complete; ON_HOLD means amortization is paused. Null when not set.
973
+ */
974
+ status?: 'NOT_STARTED' | 'IN_PROGRESS' | 'COMPLETED' | 'ON_HOLD';
975
+
976
+ /**
977
+ * Amount already amortized as reported by the ERP, in the same currency as
978
+ * total_amount. No currency conversion is applied; the schedule currency code is
979
+ * not available in this response.
980
+ */
981
+ total_amortized_amount?: number;
982
+
983
+ /**
984
+ * Total schedule amount as reported by the ERP, without currency conversion. The
985
+ * schedule currency code is not available in this response.
986
+ */
987
+ total_amount?: number;
988
+ }
989
+
990
+ /**
991
+ * ERP amortization template for this line.
992
+ */
993
+ export interface GlAmortizationTemplate {
994
+ /**
995
+ * Rippling ID of the accounting integration that owns this object. No public
996
+ * Rippling API is currently available to retrieve this accounting integration.
997
+ */
998
+ accounting_integration_id?: string;
999
+
1000
+ /**
1001
+ * Object ID in the connected accounting system.
1002
+ */
1003
+ gl_object_id?: string;
1004
+
1005
+ /**
1006
+ * Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
1007
+ * defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
1008
+ * GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
1009
+ * ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
1010
+ * accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
1011
+ * customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
1012
+ * when not set.
1013
+ */
1014
+ gl_object_type?:
1015
+ | 'GL_AMORTIZATION_TEMPLATE'
1016
+ | 'GL_AMORTIZATION_SCHEDULE'
1017
+ | 'GL_AMORTIZATION_SCHEDULE_RECURRENCE'
1018
+ | 'GL_ACCOUNT'
1019
+ | 'GL_JOURNAL_ENTRY'
1020
+ | 'GL_POSTING_PERIOD'
1021
+ | 'GL_VENDOR'
1022
+ | 'GL_CUSTOMER'
1023
+ | 'GL_EMPLOYEE'
1024
+ | 'GL_SUBSIDIARY';
1025
+
1026
+ /**
1027
+ * Accounting object name.
1028
+ */
1029
+ name?: string;
1030
+ }
1031
+
1032
+ /**
1033
+ * Prepaid asset account for Rippling-managed amortization.
1034
+ */
1035
+ export interface PrepaidAccount {
1036
+ /**
1037
+ * Account ID in the connected accounting system.
1038
+ */
1039
+ account_id?: string;
1040
+
1041
+ /**
1042
+ * Account code.
1043
+ */
1044
+ code?: string;
1045
+
1046
+ /**
1047
+ * Account name.
1048
+ */
1049
+ name?: string;
1050
+
1051
+ /**
1052
+ * IDs of custom dimensions required by this account.
1053
+ */
1054
+ required_custom_dimensions?: Array<string>;
1055
+
1056
+ /**
1057
+ * Whether this account requires a department.
1058
+ */
1059
+ requires_department?: boolean;
1060
+
1061
+ /**
1062
+ * Whether this account requires a work location.
1063
+ */
1064
+ requires_work_location?: boolean;
1065
+
1066
+ /**
1067
+ * Accounting account type: RECEIVABLE for accounts receivable, PAYABLE for
1068
+ * accounts payable, EXPENSE for expense accounts, or BANK for bank accounts. Null
1069
+ * when not set.
1070
+ */
1071
+ type?: 'RECEIVABLE' | 'PAYABLE' | 'EXPENSE' | 'BANK';
1072
+ }
1073
+
1074
+ /**
1075
+ * Total tax amount for this line in the merchant currency.
1076
+ */
1077
+ export interface TaxAmount {
1078
+ /**
1079
+ * The currency type, ex: USD, EUR, etc.
1080
+ */
1081
+ currency_type?: string;
1082
+
1083
+ /**
1084
+ * The decimal amount for the currency.
1085
+ */
1086
+ value?: number;
1087
+ }
454
1088
  }
455
1089
 
456
1090
  /**
@@ -470,30 +1104,63 @@ export namespace ReimbursementListResponse {
470
1104
  }
471
1105
 
472
1106
  /**
473
- * Company mileage rate. Null except on mileage reimbursements.
1107
+ * Company mileage rate. Include with `expand=mileage_rate` using
1108
+ * `reimbursements.read`.
1109
+ *
1110
+ * Expandable field
474
1111
  */
475
1112
  export interface MileageRate {
476
1113
  /**
477
1114
  * Company mileage rate ID.
478
1115
  */
479
- id?: string;
1116
+ id: string;
480
1117
 
481
1118
  /**
482
- * Company-defined label for this mileage rate, such as the rate used for a country
483
- * or vehicle type.
1119
+ * When the mileage rate was created, as an ISO 8601 date-time in UTC.
484
1120
  */
485
- name?: string;
1121
+ created_at: string;
486
1122
 
487
1123
  /**
488
- * Amount per distance unit. The `value` is a decimal string.
1124
+ * When the mileage rate was last updated, as an ISO 8601 date-time in UTC.
489
1125
  */
490
- rate?: MileageRate.Rate;
1126
+ updated_at: string;
491
1127
 
492
1128
  /**
493
- * Distance unit, mi or km.
1129
+ * ISO 3166-1 alpha-2 country code.
494
1130
  */
495
- units?: 'km' | 'mi';
496
- }
1131
+ country?: string;
1132
+
1133
+ /**
1134
+ * Effective end date of the rate, as an ISO 8601 date (YYYY-MM-DD).
1135
+ */
1136
+ end_date?: string;
1137
+
1138
+ /**
1139
+ * Whether an additional half cent per distance unit applies.
1140
+ */
1141
+ half_cent?: boolean;
1142
+
1143
+ /**
1144
+ * Company-defined label for this mileage rate, such as the rate used for a country
1145
+ * or vehicle type.
1146
+ */
1147
+ name?: string;
1148
+
1149
+ /**
1150
+ * Amount per distance unit. The `value` is a decimal string.
1151
+ */
1152
+ rate?: MileageRate.Rate;
1153
+
1154
+ /**
1155
+ * Effective start date of the rate, as an ISO 8601 date (YYYY-MM-DD).
1156
+ */
1157
+ start_date?: string;
1158
+
1159
+ /**
1160
+ * Distance unit, mi or km.
1161
+ */
1162
+ units?: 'km' | 'mi';
1163
+ }
497
1164
 
498
1165
  export namespace MileageRate {
499
1166
  /**
@@ -601,13 +1268,26 @@ export namespace ReimbursementListResponse {
601
1268
  }
602
1269
 
603
1270
  /**
604
- * Per diem rate for the trip. Null except on per diem reimbursements.
1271
+ * Per diem rate for the trip. Include with `expand=per_diem_rate` using
1272
+ * `reimbursements.read`.
1273
+ *
1274
+ * Expandable field
605
1275
  */
606
1276
  export interface PerDiemRate {
607
1277
  /**
608
1278
  * Per diem rate ID.
609
1279
  */
610
- id?: string;
1280
+ id: string;
1281
+
1282
+ /**
1283
+ * When the per diem rate was created, as an ISO 8601 date-time in UTC.
1284
+ */
1285
+ created_at: string;
1286
+
1287
+ /**
1288
+ * When the per diem rate was last updated, as an ISO 8601 date-time in UTC.
1289
+ */
1290
+ updated_at: string;
611
1291
 
612
1292
  /**
613
1293
  * Country this per diem rate applies to, as an ISO 3166-1 alpha-2 code. Example:
@@ -624,22 +1304,150 @@ export namespace ReimbursementListResponse {
624
1304
  * Place this per diem rate applies to, such as a city.
625
1305
  */
626
1306
  destination_name?: string;
1307
+
1308
+ /**
1309
+ * Effective end date of the rate, as an ISO 8601 date (YYYY-MM-DD).
1310
+ */
1311
+ end_date?: string;
1312
+
1313
+ /**
1314
+ * Whether the rate is archived. Archived rates remain readable for historical
1315
+ * references.
1316
+ */
1317
+ is_archived?: boolean;
1318
+
1319
+ /**
1320
+ * Whether this is the current version of the rate.
1321
+ */
1322
+ is_current?: boolean;
1323
+
1324
+ /**
1325
+ * Effective start date of the rate, as an ISO 8601 date (YYYY-MM-DD).
1326
+ */
1327
+ start_date?: string;
1328
+ }
1329
+
1330
+ /**
1331
+ * Receipt file and its filename.
1332
+ */
1333
+ export interface Receipt {
1334
+ /**
1335
+ * URL for accessing the file.
1336
+ */
1337
+ url: string;
1338
+
1339
+ /**
1340
+ * Original file name, when recorded.
1341
+ */
1342
+ file_name?: string;
1343
+ }
1344
+
1345
+ /**
1346
+ * Start of a mileage trip. Null except on mileage reimbursements.
1347
+ */
1348
+ export interface StartLocation {
1349
+ /**
1350
+ * Address of this point. Null when the point has no address.
1351
+ */
1352
+ address?: string;
1353
+
1354
+ /**
1355
+ * Latitude and longitude of this point, in decimal degrees. Null when the point
1356
+ * has no coordinates.
1357
+ */
1358
+ coordinates?: StartLocation.Coordinates;
1359
+ }
1360
+
1361
+ export namespace StartLocation {
1362
+ /**
1363
+ * Latitude and longitude of this point, in decimal degrees. Null when the point
1364
+ * has no coordinates.
1365
+ */
1366
+ export interface Coordinates {
1367
+ /**
1368
+ * Latitude of this point, in decimal degrees.
1369
+ */
1370
+ latitude?: number;
1371
+
1372
+ /**
1373
+ * Longitude of this point, in decimal degrees.
1374
+ */
1375
+ longitude?: number;
1376
+ }
627
1377
  }
628
1378
 
629
1379
  /**
630
- * Vendor the purchase was made from.
1380
+ * Vendor details. Expand with `reimbursements.read` and `finance-vendors.read`.
1381
+ *
1382
+ * Expandable field
631
1383
  */
632
1384
  export interface Vendor {
633
1385
  /**
634
- * ID of the vendor.
1386
+ * Identifier field
635
1387
  */
636
- id?: string;
1388
+ id: string;
1389
+
1390
+ /**
1391
+ * Record creation date
1392
+ */
1393
+ created_at: string;
637
1394
 
638
1395
  /**
639
- * Name of the vendor.
1396
+ * Record update date
1397
+ */
1398
+ updated_at: string;
1399
+
1400
+ /**
1401
+ * Whether the vendor is archived. Archived vendors remain available for historical
1402
+ * references.
1403
+ */
1404
+ is_archived?: boolean;
1405
+
1406
+ /**
1407
+ * URL of the vendor's logo. Null when no logo is available.
1408
+ */
1409
+ logo?: string;
1410
+
1411
+ /**
1412
+ * Canonical name of the Finance vendor. Name eq, ne, and in filters also match
1413
+ * alternate names.
640
1414
  */
641
1415
  name?: string;
642
1416
  }
1417
+
1418
+ /**
1419
+ * Start, end, or intermediate stop on a mileage trip.
1420
+ */
1421
+ export interface Waypoint {
1422
+ /**
1423
+ * Address of this point. Null when the point has no address.
1424
+ */
1425
+ address?: string;
1426
+
1427
+ /**
1428
+ * Latitude and longitude of this point, in decimal degrees. Null when the point
1429
+ * has no coordinates.
1430
+ */
1431
+ coordinates?: Waypoint.Coordinates;
1432
+ }
1433
+
1434
+ export namespace Waypoint {
1435
+ /**
1436
+ * Latitude and longitude of this point, in decimal degrees. Null when the point
1437
+ * has no coordinates.
1438
+ */
1439
+ export interface Coordinates {
1440
+ /**
1441
+ * Latitude of this point, in decimal degrees.
1442
+ */
1443
+ latitude?: number;
1444
+
1445
+ /**
1446
+ * Longitude of this point, in decimal degrees.
1447
+ */
1448
+ longitude?: number;
1449
+ }
1450
+ }
643
1451
  }
644
1452
 
645
1453
  /**
@@ -687,9 +1495,9 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
687
1495
  | 'FAILED';
688
1496
 
689
1497
  /**
690
- * URLs of other attached files.
1498
+ * Other attached files, including filenames and recorded upload metadata.
691
1499
  */
692
- attachments?: Array<string>;
1500
+ attachments?: Array<ReimbursementRetrieveResponse.Attachment>;
693
1501
 
694
1502
  /**
695
1503
  * Amount in the company's headquarters currency. The `value` is a decimal string.
@@ -702,9 +1510,9 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
702
1510
  distance?: number;
703
1511
 
704
1512
  /**
705
- * Mileage end address. Null when the trip has no end address.
1513
+ * End of a mileage trip. Null except on mileage reimbursements.
706
1514
  */
707
- end_address?: string;
1515
+ end_location?: ReimbursementRetrieveResponse.EndLocation;
708
1516
 
709
1517
  /**
710
1518
  * ID of the legal entity the transaction belongs to. Use it with
@@ -737,7 +1545,7 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
737
1545
  gl_vendor?: ReimbursementRetrieveResponse.GlVendor;
738
1546
 
739
1547
  /**
740
- * Category splits of the transaction amount.
1548
+ * Category splits of the transaction amount. Updates replace the entire list.
741
1549
  */
742
1550
  line_items?: Array<ReimbursementRetrieveResponse.LineItem>;
743
1551
 
@@ -753,10 +1561,20 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
753
1561
  merchant_amount?: ReimbursementRetrieveResponse.MerchantAmount;
754
1562
 
755
1563
  /**
756
- * Company mileage rate. Null except on mileage reimbursements.
1564
+ * Company mileage rate. Include with `expand=mileage_rate` using
1565
+ * `reimbursements.read`.
1566
+ *
1567
+ * Expandable field
757
1568
  */
758
1569
  mileage_rate?: ReimbursementRetrieveResponse.MileageRate;
759
1570
 
1571
+ /**
1572
+ * ID of the company mileage rate. Null except on mileage reimbursements. Resolve
1573
+ * it with `expand=mileage_rate` on this reimbursement using `reimbursements.read`;
1574
+ * there is no standalone rate lookup endpoint.
1575
+ */
1576
+ mileage_rate_id?: string;
1577
+
760
1578
  /**
761
1579
  * Amount credited to the worker. The `value` is a decimal string.
762
1580
  */
@@ -783,19 +1601,29 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
783
1601
  per_diem_line_items?: Array<ReimbursementRetrieveResponse.PerDiemLineItem>;
784
1602
 
785
1603
  /**
786
- * Per diem rate for the trip. Null except on per diem reimbursements.
1604
+ * Per diem rate for the trip. Include with `expand=per_diem_rate` using
1605
+ * `reimbursements.read`.
1606
+ *
1607
+ * Expandable field
787
1608
  */
788
1609
  per_diem_rate?: ReimbursementRetrieveResponse.PerDiemRate;
789
1610
 
790
1611
  /**
791
- * URL of the receipt file.
1612
+ * ID of the per diem rate. Null except on per diem reimbursements. Resolve it with
1613
+ * `expand=per_diem_rate` on this reimbursement using `reimbursements.read`; there
1614
+ * is no standalone rate lookup endpoint.
1615
+ */
1616
+ per_diem_rate_id?: string;
1617
+
1618
+ /**
1619
+ * Receipt file and its filename.
792
1620
  */
793
- receipt?: string;
1621
+ receipt?: ReimbursementRetrieveResponse.Receipt;
794
1622
 
795
1623
  /**
796
- * Mileage start address. Null when the trip has no start address.
1624
+ * Start of a mileage trip. Null except on mileage reimbursements.
797
1625
  */
798
- start_address?: string;
1626
+ start_location?: ReimbursementRetrieveResponse.StartLocation;
799
1627
 
800
1628
  /**
801
1629
  * When the purchase or authorization happened, as an ISO 8601 date-time in UTC.
@@ -823,10 +1651,30 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
823
1651
  trip_start_date?: string;
824
1652
 
825
1653
  /**
826
- * Vendor the purchase was made from.
1654
+ * Vendor details. Expand with `reimbursements.read` and `finance-vendors.read`.
1655
+ *
1656
+ * Expandable field
827
1657
  */
828
1658
  vendor?: ReimbursementRetrieveResponse.Vendor;
829
1659
 
1660
+ /**
1661
+ * ID of the Finance vendor. Use it with `/finance-vendors/{id}/`.
1662
+ */
1663
+ vendor_id?: string;
1664
+
1665
+ /**
1666
+ * List of intermediate stops during the trip, for mileage reimbursements. Null
1667
+ * except on mileage reimbursements.
1668
+ */
1669
+ waypoints?: Array<ReimbursementRetrieveResponse.Waypoint>;
1670
+
1671
+ /**
1672
+ * Worker details. Expand with `reimbursements.read` and `workers.read`.
1673
+ *
1674
+ * Expandable field
1675
+ */
1676
+ worker?: WorkersAPI.Worker;
1677
+
830
1678
  /**
831
1679
  * ID of the worker who made the transaction. Use it with `/workers/{id}/`.
832
1680
  */
@@ -834,6 +1682,32 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
834
1682
  }
835
1683
 
836
1684
  export namespace ReimbursementRetrieveResponse {
1685
+ /**
1686
+ * A Finance transaction attachment with recorded upload details.
1687
+ */
1688
+ export interface Attachment {
1689
+ /**
1690
+ * URL for accessing the file.
1691
+ */
1692
+ url: string;
1693
+
1694
+ /**
1695
+ * Original file name, when recorded.
1696
+ */
1697
+ file_name?: string;
1698
+
1699
+ /**
1700
+ * When the attachment was uploaded, as an ISO 8601 date-time in UTC, when
1701
+ * recorded.
1702
+ */
1703
+ uploaded_at?: string;
1704
+
1705
+ /**
1706
+ * ID of the worker who uploaded the attachment. Use it with `/workers/{id}/`.
1707
+ */
1708
+ uploaded_by_id?: string;
1709
+ }
1710
+
837
1711
  /**
838
1712
  * Amount in the company's headquarters currency. The `value` is a decimal string.
839
1713
  */
@@ -849,6 +1723,40 @@ export namespace ReimbursementRetrieveResponse {
849
1723
  value?: number;
850
1724
  }
851
1725
 
1726
+ /**
1727
+ * End of a mileage trip. Null except on mileage reimbursements.
1728
+ */
1729
+ export interface EndLocation {
1730
+ /**
1731
+ * Address of this point. Null when the point has no address.
1732
+ */
1733
+ address?: string;
1734
+
1735
+ /**
1736
+ * Latitude and longitude of this point, in decimal degrees. Null when the point
1737
+ * has no coordinates.
1738
+ */
1739
+ coordinates?: EndLocation.Coordinates;
1740
+ }
1741
+
1742
+ export namespace EndLocation {
1743
+ /**
1744
+ * Latitude and longitude of this point, in decimal degrees. Null when the point
1745
+ * has no coordinates.
1746
+ */
1747
+ export interface Coordinates {
1748
+ /**
1749
+ * Latitude of this point, in decimal degrees.
1750
+ */
1751
+ latitude?: number;
1752
+
1753
+ /**
1754
+ * Longitude of this point, in decimal degrees.
1755
+ */
1756
+ longitude?: number;
1757
+ }
1758
+ }
1759
+
852
1760
  /**
853
1761
  * Vendor in the connected accounting system.
854
1762
  */
@@ -870,28 +1778,56 @@ export namespace ReimbursementRetrieveResponse {
870
1778
  }
871
1779
 
872
1780
  export interface LineItem {
1781
+ /**
1782
+ * Unique identifier of this line item. Null for older line items that have not
1783
+ * been assigned one yet.
1784
+ */
1785
+ id?: string;
1786
+
1787
+ /**
1788
+ * Whether this line is amortized.
1789
+ */
1790
+ amortized?: boolean;
1791
+
873
1792
  /**
874
1793
  * Amount of this split, in the merchant currency. The `value` is a decimal string.
875
1794
  */
876
1795
  amount?: LineItem.Amount;
877
1796
 
878
1797
  /**
879
- * ID of the Spend category assigned to this split. No public API is currently
880
- * available to retrieve this category; its name is in `category_name`.
1798
+ * ID of the Finance category assigned to this split. Use it with
1799
+ * `/finance-categories/{id}/`. The category name is in `category_name`.
881
1800
  */
882
1801
  category_id?: string;
883
1802
 
884
1803
  /**
885
- * Name of the spend category.
1804
+ * Name of the finance category.
886
1805
  */
887
1806
  category_name?: string;
888
1807
 
889
1808
  /**
890
- * Selected dimension values, keyed by dimension ID. Includes department and work
891
- * location.
1809
+ * Selected dimension values, keyed by dimension ID. `DEPARTMENT` and
1810
+ * `WORK_LOCATION` are the built-in keys. Get custom dimension IDs from
1811
+ * `/job-dimensions/` and `/job-dimensions/{id}/`. Each choice `value` is a job
1812
+ * code ID from `/job-codes/` and `/job-codes/{id}/`.
892
1813
  */
893
1814
  dimension_choices?: { [key: string]: LineItem.DimensionChoices };
894
1815
 
1816
+ /**
1817
+ * End of the amortization period (YYYY-MM-DD).
1818
+ */
1819
+ end_date?: string;
1820
+
1821
+ /**
1822
+ * ERP amortization schedule associated with this line.
1823
+ */
1824
+ gl_amortization_schedule?: LineItem.GlAmortizationSchedule;
1825
+
1826
+ /**
1827
+ * ERP amortization template for this line.
1828
+ */
1829
+ gl_amortization_template?: LineItem.GlAmortizationTemplate;
1830
+
895
1831
  /**
896
1832
  * Whether this split is billed to `gl_customer` in the accounting system.
897
1833
  * `BILLABLE` means it is billed, `NOT_BILLABLE` means it is not. Null when not
@@ -905,10 +1841,31 @@ export namespace ReimbursementRetrieveResponse {
905
1841
  */
906
1842
  gl_customer?: string;
907
1843
 
1844
+ /**
1845
+ * Rippling ID of the accounting tax code. No public Rippling API is currently
1846
+ * available to retrieve this accounting tax code.
1847
+ */
1848
+ gl_tax_code?: string;
1849
+
908
1850
  /**
909
1851
  * Memo entered on this split.
910
1852
  */
911
1853
  memo?: string;
1854
+
1855
+ /**
1856
+ * Prepaid asset account for Rippling-managed amortization.
1857
+ */
1858
+ prepaid_account?: LineItem.PrepaidAccount;
1859
+
1860
+ /**
1861
+ * Start of the amortization period (YYYY-MM-DD).
1862
+ */
1863
+ start_date?: string;
1864
+
1865
+ /**
1866
+ * Total tax amount for this line in the merchant currency.
1867
+ */
1868
+ tax_amount?: LineItem.TaxAmount;
912
1869
  }
913
1870
 
914
1871
  export namespace LineItem {
@@ -939,77 +1896,1297 @@ export namespace ReimbursementRetrieveResponse {
939
1896
  label?: string;
940
1897
 
941
1898
  /**
942
- * ID of the selected dimension value.
1899
+ * ID of the selected value. For `DEPARTMENT` use `/departments/{id}/`, for
1900
+ * `WORK_LOCATION` use `/work-locations/{id}/`, and for a custom job dimension use
1901
+ * `/job-codes/{id}/`.
943
1902
  */
944
1903
  value?: string;
945
1904
  }
946
- }
947
1905
 
948
- /**
949
- * Amount charged by the merchant, in the merchant currency. The `value` is a
950
- * decimal string.
951
- */
952
- export interface MerchantAmount {
953
1906
  /**
954
- * The currency type, ex: USD, EUR, etc.
1907
+ * ERP amortization schedule associated with this line.
955
1908
  */
956
- currency_type?: string;
1909
+ export interface GlAmortizationSchedule {
1910
+ /**
1911
+ * Rippling ID of the accounting integration that owns this object. No public
1912
+ * Rippling API is currently available to retrieve this accounting integration.
1913
+ */
1914
+ accounting_integration_id?: string;
957
1915
 
958
- /**
959
- * The decimal amount for the currency.
960
- */
961
- value?: number;
962
- }
1916
+ /**
1917
+ * Number of amortization periods.
1918
+ */
1919
+ amortization_period?: number;
963
1920
 
964
- /**
965
- * Company mileage rate. Null except on mileage reimbursements.
966
- */
967
- export interface MileageRate {
968
- /**
969
- * Company mileage rate ID.
970
- */
971
- id?: string;
1921
+ /**
1922
+ * End of the ERP amortization schedule as an ISO 8601 timestamp (for example,
1923
+ * 2026-12-31T00:00:00). May omit a timezone offset; an omitted offset does not
1924
+ * indicate UTC. Null when not set.
1925
+ */
1926
+ end_date?: string;
972
1927
 
973
- /**
974
- * Company-defined label for this mileage rate, such as the rate used for a country
975
- * or vehicle type.
976
- */
977
- name?: string;
1928
+ /**
1929
+ * Object ID in the connected accounting system.
1930
+ */
1931
+ gl_object_id?: string;
978
1932
 
979
- /**
980
- * Amount per distance unit. The `value` is a decimal string.
981
- */
982
- rate?: MileageRate.Rate;
1933
+ /**
1934
+ * Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
1935
+ * defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
1936
+ * GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
1937
+ * ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
1938
+ * accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
1939
+ * customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
1940
+ * when not set.
1941
+ */
1942
+ gl_object_type?:
1943
+ | 'GL_AMORTIZATION_TEMPLATE'
1944
+ | 'GL_AMORTIZATION_SCHEDULE'
1945
+ | 'GL_AMORTIZATION_SCHEDULE_RECURRENCE'
1946
+ | 'GL_ACCOUNT'
1947
+ | 'GL_JOURNAL_ENTRY'
1948
+ | 'GL_POSTING_PERIOD'
1949
+ | 'GL_VENDOR'
1950
+ | 'GL_CUSTOMER'
1951
+ | 'GL_EMPLOYEE'
1952
+ | 'GL_SUBSIDIARY';
983
1953
 
984
- /**
985
- * Distance unit, mi or km.
986
- */
987
- units?: 'km' | 'mi';
988
- }
1954
+ /**
1955
+ * Accounting object name.
1956
+ */
1957
+ name?: string;
989
1958
 
990
- export namespace MileageRate {
991
- /**
992
- * Amount per distance unit. The `value` is a decimal string.
993
- */
994
- export interface Rate {
995
1959
  /**
996
- * The currency type, ex: USD, EUR, etc.
1960
+ * Start of the ERP amortization schedule as an ISO 8601 timestamp (for example,
1961
+ * 2026-01-01T00:00:00). May omit a timezone offset; an omitted offset does not
1962
+ * indicate UTC. Null when not set.
997
1963
  */
998
- currency_type?: string;
1964
+ start_date?: string;
999
1965
 
1000
1966
  /**
1001
- * The decimal amount for the currency.
1967
+ * ERP amortization schedule status: NOT_STARTED means amortization has not begun;
1968
+ * IN_PROGRESS means amortization is underway; COMPLETED means amortization is
1969
+ * complete; ON_HOLD means amortization is paused. Null when not set.
1002
1970
  */
1003
- value?: number;
1971
+ status?: 'NOT_STARTED' | 'IN_PROGRESS' | 'COMPLETED' | 'ON_HOLD';
1972
+
1973
+ /**
1974
+ * Amount already amortized as reported by the ERP, in the same currency as
1975
+ * total_amount. No currency conversion is applied; the schedule currency code is
1976
+ * not available in this response.
1977
+ */
1978
+ total_amortized_amount?: number;
1979
+
1980
+ /**
1981
+ * Total schedule amount as reported by the ERP, without currency conversion. The
1982
+ * schedule currency code is not available in this response.
1983
+ */
1984
+ total_amount?: number;
1004
1985
  }
1005
- }
1006
1986
 
1007
- /**
1008
- * Amount credited to the worker. The `value` is a decimal string.
1009
- */
1010
- export interface PayoutAmount {
1011
1987
  /**
1012
- * The currency type, ex: USD, EUR, etc.
1988
+ * ERP amortization template for this line.
1989
+ */
1990
+ export interface GlAmortizationTemplate {
1991
+ /**
1992
+ * Rippling ID of the accounting integration that owns this object. No public
1993
+ * Rippling API is currently available to retrieve this accounting integration.
1994
+ */
1995
+ accounting_integration_id?: string;
1996
+
1997
+ /**
1998
+ * Object ID in the connected accounting system.
1999
+ */
2000
+ gl_object_id?: string;
2001
+
2002
+ /**
2003
+ * Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
2004
+ * defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
2005
+ * GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
2006
+ * ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
2007
+ * accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
2008
+ * customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
2009
+ * when not set.
2010
+ */
2011
+ gl_object_type?:
2012
+ | 'GL_AMORTIZATION_TEMPLATE'
2013
+ | 'GL_AMORTIZATION_SCHEDULE'
2014
+ | 'GL_AMORTIZATION_SCHEDULE_RECURRENCE'
2015
+ | 'GL_ACCOUNT'
2016
+ | 'GL_JOURNAL_ENTRY'
2017
+ | 'GL_POSTING_PERIOD'
2018
+ | 'GL_VENDOR'
2019
+ | 'GL_CUSTOMER'
2020
+ | 'GL_EMPLOYEE'
2021
+ | 'GL_SUBSIDIARY';
2022
+
2023
+ /**
2024
+ * Accounting object name.
2025
+ */
2026
+ name?: string;
2027
+ }
2028
+
2029
+ /**
2030
+ * Prepaid asset account for Rippling-managed amortization.
2031
+ */
2032
+ export interface PrepaidAccount {
2033
+ /**
2034
+ * Account ID in the connected accounting system.
2035
+ */
2036
+ account_id?: string;
2037
+
2038
+ /**
2039
+ * Account code.
2040
+ */
2041
+ code?: string;
2042
+
2043
+ /**
2044
+ * Account name.
2045
+ */
2046
+ name?: string;
2047
+
2048
+ /**
2049
+ * IDs of custom dimensions required by this account.
2050
+ */
2051
+ required_custom_dimensions?: Array<string>;
2052
+
2053
+ /**
2054
+ * Whether this account requires a department.
2055
+ */
2056
+ requires_department?: boolean;
2057
+
2058
+ /**
2059
+ * Whether this account requires a work location.
2060
+ */
2061
+ requires_work_location?: boolean;
2062
+
2063
+ /**
2064
+ * Accounting account type: RECEIVABLE for accounts receivable, PAYABLE for
2065
+ * accounts payable, EXPENSE for expense accounts, or BANK for bank accounts. Null
2066
+ * when not set.
2067
+ */
2068
+ type?: 'RECEIVABLE' | 'PAYABLE' | 'EXPENSE' | 'BANK';
2069
+ }
2070
+
2071
+ /**
2072
+ * Total tax amount for this line in the merchant currency.
2073
+ */
2074
+ export interface TaxAmount {
2075
+ /**
2076
+ * The currency type, ex: USD, EUR, etc.
2077
+ */
2078
+ currency_type?: string;
2079
+
2080
+ /**
2081
+ * The decimal amount for the currency.
2082
+ */
2083
+ value?: number;
2084
+ }
2085
+ }
2086
+
2087
+ /**
2088
+ * Amount charged by the merchant, in the merchant currency. The `value` is a
2089
+ * decimal string.
2090
+ */
2091
+ export interface MerchantAmount {
2092
+ /**
2093
+ * The currency type, ex: USD, EUR, etc.
2094
+ */
2095
+ currency_type?: string;
2096
+
2097
+ /**
2098
+ * The decimal amount for the currency.
2099
+ */
2100
+ value?: number;
2101
+ }
2102
+
2103
+ /**
2104
+ * Company mileage rate. Include with `expand=mileage_rate` using
2105
+ * `reimbursements.read`.
2106
+ *
2107
+ * Expandable field
2108
+ */
2109
+ export interface MileageRate {
2110
+ /**
2111
+ * Company mileage rate ID.
2112
+ */
2113
+ id: string;
2114
+
2115
+ /**
2116
+ * When the mileage rate was created, as an ISO 8601 date-time in UTC.
2117
+ */
2118
+ created_at: string;
2119
+
2120
+ /**
2121
+ * When the mileage rate was last updated, as an ISO 8601 date-time in UTC.
2122
+ */
2123
+ updated_at: string;
2124
+
2125
+ /**
2126
+ * ISO 3166-1 alpha-2 country code.
2127
+ */
2128
+ country?: string;
2129
+
2130
+ /**
2131
+ * Effective end date of the rate, as an ISO 8601 date (YYYY-MM-DD).
2132
+ */
2133
+ end_date?: string;
2134
+
2135
+ /**
2136
+ * Whether an additional half cent per distance unit applies.
2137
+ */
2138
+ half_cent?: boolean;
2139
+
2140
+ /**
2141
+ * Company-defined label for this mileage rate, such as the rate used for a country
2142
+ * or vehicle type.
2143
+ */
2144
+ name?: string;
2145
+
2146
+ /**
2147
+ * Amount per distance unit. The `value` is a decimal string.
2148
+ */
2149
+ rate?: MileageRate.Rate;
2150
+
2151
+ /**
2152
+ * Effective start date of the rate, as an ISO 8601 date (YYYY-MM-DD).
2153
+ */
2154
+ start_date?: string;
2155
+
2156
+ /**
2157
+ * Distance unit, mi or km.
2158
+ */
2159
+ units?: 'km' | 'mi';
2160
+ }
2161
+
2162
+ export namespace MileageRate {
2163
+ /**
2164
+ * Amount per distance unit. The `value` is a decimal string.
2165
+ */
2166
+ export interface Rate {
2167
+ /**
2168
+ * The currency type, ex: USD, EUR, etc.
2169
+ */
2170
+ currency_type?: string;
2171
+
2172
+ /**
2173
+ * The decimal amount for the currency.
2174
+ */
2175
+ value?: number;
2176
+ }
2177
+ }
2178
+
2179
+ /**
2180
+ * Amount credited to the worker. The `value` is a decimal string.
2181
+ */
2182
+ export interface PayoutAmount {
2183
+ /**
2184
+ * The currency type, ex: USD, EUR, etc.
2185
+ */
2186
+ currency_type?: string;
2187
+
2188
+ /**
2189
+ * The decimal amount for the currency.
2190
+ */
2191
+ value?: number;
2192
+ }
2193
+
2194
+ export interface PerDiemLineItem {
2195
+ /**
2196
+ * Sub-rate amount for one unit. The `value` is a decimal string.
2197
+ */
2198
+ amount?: PerDiemLineItem.Amount;
2199
+
2200
+ /**
2201
+ * amount times count. The `value` is a decimal string. Negative when line_type is
2202
+ * EXCLUDE.
2203
+ */
2204
+ calculated_amount?: PerDiemLineItem.CalculatedAmount;
2205
+
2206
+ /**
2207
+ * How many units.
2208
+ */
2209
+ count?: number;
2210
+
2211
+ /**
2212
+ * Sub-rate label.
2213
+ */
2214
+ label?: string;
2215
+
2216
+ /**
2217
+ * `INCLUDE`: this row is added to the reimbursement. `EXCLUDE`: this row is
2218
+ * subtracted. `calculated_amount.value` is negative when excluded.
2219
+ */
2220
+ line_type?: 'INCLUDE' | 'EXCLUDE';
2221
+
2222
+ /**
2223
+ * Per diem sub-rate ID.
2224
+ */
2225
+ sub_rate_id?: string;
2226
+
2227
+ /**
2228
+ * `FULL_DAY`: the full daily allowance. `MEALS`: the meals portion of the daily
2229
+ * allowance. `OTHERS`: an allowance that is not the full day or meals.
2230
+ */
2231
+ sub_rate_type?: 'FULL_DAY' | 'MEALS' | 'OTHERS';
2232
+ }
2233
+
2234
+ export namespace PerDiemLineItem {
2235
+ /**
2236
+ * Sub-rate amount for one unit. The `value` is a decimal string.
2237
+ */
2238
+ export interface Amount {
2239
+ /**
2240
+ * The currency type, ex: USD, EUR, etc.
2241
+ */
2242
+ currency_type?: string;
2243
+
2244
+ /**
2245
+ * The decimal amount for the currency.
2246
+ */
2247
+ value?: number;
2248
+ }
2249
+
2250
+ /**
2251
+ * amount times count. The `value` is a decimal string. Negative when line_type is
2252
+ * EXCLUDE.
2253
+ */
2254
+ export interface CalculatedAmount {
2255
+ /**
2256
+ * The currency type, ex: USD, EUR, etc.
2257
+ */
2258
+ currency_type?: string;
2259
+
2260
+ /**
2261
+ * The decimal amount for the currency.
2262
+ */
2263
+ value?: number;
2264
+ }
2265
+ }
2266
+
2267
+ /**
2268
+ * Per diem rate for the trip. Include with `expand=per_diem_rate` using
2269
+ * `reimbursements.read`.
2270
+ *
2271
+ * Expandable field
2272
+ */
2273
+ export interface PerDiemRate {
2274
+ /**
2275
+ * Per diem rate ID.
2276
+ */
2277
+ id: string;
2278
+
2279
+ /**
2280
+ * When the per diem rate was created, as an ISO 8601 date-time in UTC.
2281
+ */
2282
+ created_at: string;
2283
+
2284
+ /**
2285
+ * When the per diem rate was last updated, as an ISO 8601 date-time in UTC.
2286
+ */
2287
+ updated_at: string;
2288
+
2289
+ /**
2290
+ * Country this per diem rate applies to, as an ISO 3166-1 alpha-2 code. Example:
2291
+ * US.
2292
+ */
2293
+ country?: string;
2294
+
2295
+ /**
2296
+ * Currency of the per diem rate, as an ISO 4217 code. Example: USD.
2297
+ */
2298
+ currency?: string;
2299
+
2300
+ /**
2301
+ * Place this per diem rate applies to, such as a city.
2302
+ */
2303
+ destination_name?: string;
2304
+
2305
+ /**
2306
+ * Effective end date of the rate, as an ISO 8601 date (YYYY-MM-DD).
2307
+ */
2308
+ end_date?: string;
2309
+
2310
+ /**
2311
+ * Whether the rate is archived. Archived rates remain readable for historical
2312
+ * references.
2313
+ */
2314
+ is_archived?: boolean;
2315
+
2316
+ /**
2317
+ * Whether this is the current version of the rate.
2318
+ */
2319
+ is_current?: boolean;
2320
+
2321
+ /**
2322
+ * Effective start date of the rate, as an ISO 8601 date (YYYY-MM-DD).
2323
+ */
2324
+ start_date?: string;
2325
+ }
2326
+
2327
+ /**
2328
+ * Receipt file and its filename.
2329
+ */
2330
+ export interface Receipt {
2331
+ /**
2332
+ * URL for accessing the file.
2333
+ */
2334
+ url: string;
2335
+
2336
+ /**
2337
+ * Original file name, when recorded.
2338
+ */
2339
+ file_name?: string;
2340
+ }
2341
+
2342
+ /**
2343
+ * Start of a mileage trip. Null except on mileage reimbursements.
2344
+ */
2345
+ export interface StartLocation {
2346
+ /**
2347
+ * Address of this point. Null when the point has no address.
2348
+ */
2349
+ address?: string;
2350
+
2351
+ /**
2352
+ * Latitude and longitude of this point, in decimal degrees. Null when the point
2353
+ * has no coordinates.
2354
+ */
2355
+ coordinates?: StartLocation.Coordinates;
2356
+ }
2357
+
2358
+ export namespace StartLocation {
2359
+ /**
2360
+ * Latitude and longitude of this point, in decimal degrees. Null when the point
2361
+ * has no coordinates.
2362
+ */
2363
+ export interface Coordinates {
2364
+ /**
2365
+ * Latitude of this point, in decimal degrees.
2366
+ */
2367
+ latitude?: number;
2368
+
2369
+ /**
2370
+ * Longitude of this point, in decimal degrees.
2371
+ */
2372
+ longitude?: number;
2373
+ }
2374
+ }
2375
+
2376
+ /**
2377
+ * Vendor details. Expand with `reimbursements.read` and `finance-vendors.read`.
2378
+ *
2379
+ * Expandable field
2380
+ */
2381
+ export interface Vendor {
2382
+ /**
2383
+ * Identifier field
2384
+ */
2385
+ id: string;
2386
+
2387
+ /**
2388
+ * Record creation date
2389
+ */
2390
+ created_at: string;
2391
+
2392
+ /**
2393
+ * Record update date
2394
+ */
2395
+ updated_at: string;
2396
+
2397
+ /**
2398
+ * Whether the vendor is archived. Archived vendors remain available for historical
2399
+ * references.
2400
+ */
2401
+ is_archived?: boolean;
2402
+
2403
+ /**
2404
+ * URL of the vendor's logo. Null when no logo is available.
2405
+ */
2406
+ logo?: string;
2407
+
2408
+ /**
2409
+ * Canonical name of the Finance vendor. Name eq, ne, and in filters also match
2410
+ * alternate names.
2411
+ */
2412
+ name?: string;
2413
+ }
2414
+
2415
+ /**
2416
+ * Start, end, or intermediate stop on a mileage trip.
2417
+ */
2418
+ export interface Waypoint {
2419
+ /**
2420
+ * Address of this point. Null when the point has no address.
2421
+ */
2422
+ address?: string;
2423
+
2424
+ /**
2425
+ * Latitude and longitude of this point, in decimal degrees. Null when the point
2426
+ * has no coordinates.
2427
+ */
2428
+ coordinates?: Waypoint.Coordinates;
2429
+ }
2430
+
2431
+ export namespace Waypoint {
2432
+ /**
2433
+ * Latitude and longitude of this point, in decimal degrees. Null when the point
2434
+ * has no coordinates.
2435
+ */
2436
+ export interface Coordinates {
2437
+ /**
2438
+ * Latitude of this point, in decimal degrees.
2439
+ */
2440
+ latitude?: number;
2441
+
2442
+ /**
2443
+ * Longitude of this point, in decimal degrees.
2444
+ */
2445
+ longitude?: number;
2446
+ }
2447
+ }
2448
+ }
2449
+
2450
+ /**
2451
+ * A Finance reimbursement the caller can see.
2452
+ *
2453
+ * A reimbursement is an expense the worker paid and the company pays back. Mileage and per diem
2454
+ * use the same resource, with transaction_type MILEAGE_REIMBURSEMENT or PER_DIEM_REIMBURSEMENT.
2455
+ * Retrieve returns one by ID. A reimbursement the caller cannot see returns 404, the same as one
2456
+ * that does not exist. PATCH `/reimbursements/{id}/` accepts only `line_items` and replaces the entire list.
2457
+ * Request `amount` and `tax_amount` are decimal strings (for example `"75.00"`), not Currency
2458
+ * objects. GET responses return those fields as Currency objects (`currency_type` + `value`).
2459
+ * The sum of request `amount` values must equal the reimbursement's merchant amount.
2460
+ */
2461
+ export interface ReimbursementUpdateResponse {
2462
+ /**
2463
+ * Identifier field
2464
+ */
2465
+ id: string;
2466
+
2467
+ /**
2468
+ * Record creation date
2469
+ */
2470
+ created_at: string;
2471
+
2472
+ /**
2473
+ * Record update date
2474
+ */
2475
+ updated_at: string;
2476
+
2477
+ /**
2478
+ * Date the transaction is booked in the accounting system, as an ISO 8601 date
2479
+ * (YYYY-MM-DD).
2480
+ */
2481
+ accounting_date?: string;
2482
+
2483
+ /**
2484
+ * Approval status of the transaction. `DRAFT`: not submitted for approval.
2485
+ * `PENDING`: awaiting required information or submission before approval.
2486
+ * `REQUESTED`: submitted and awaiting approval. `APPROVED`: approved. `REJECTED`:
2487
+ * rejected. `FINALIZED`: finalized for payment. `ACTIONED`: payment or
2488
+ * reimbursement completed. `CANCELLED`: cancelled. `FAILED`: payment failed. Null
2489
+ * for card authorizations.
2490
+ */
2491
+ approval_status?:
2492
+ | 'DRAFT'
2493
+ | 'PENDING'
2494
+ | 'REQUESTED'
2495
+ | 'APPROVED'
2496
+ | 'REJECTED'
2497
+ | 'FINALIZED'
2498
+ | 'ACTIONED'
2499
+ | 'CANCELLED'
2500
+ | 'FAILED';
2501
+
2502
+ /**
2503
+ * Other attached files, including filenames and recorded upload metadata.
2504
+ */
2505
+ attachments?: Array<ReimbursementUpdateResponse.Attachment>;
2506
+
2507
+ /**
2508
+ * Amount in the company's headquarters currency. The `value` is a decimal string.
2509
+ */
2510
+ company_amount?: ReimbursementUpdateResponse.CompanyAmount;
2511
+
2512
+ /**
2513
+ * Trip length in mileage_rate.units. Null except on mileage reimbursements.
2514
+ */
2515
+ distance?: number;
2516
+
2517
+ /**
2518
+ * End of a mileage trip. Null except on mileage reimbursements.
2519
+ */
2520
+ end_location?: ReimbursementUpdateResponse.EndLocation;
2521
+
2522
+ /**
2523
+ * ID of the legal entity the transaction belongs to. Use it with
2524
+ * `/company-legal-entities/{id}/`.
2525
+ */
2526
+ entity_id?: string;
2527
+
2528
+ /**
2529
+ * State of the sync to the accounting system. `NOT_FINALIZED`: not ready for
2530
+ * accounting review. `FOR_REVIEW`: ready for accounting review. `PENDING_SYNC`:
2531
+ * sync is in progress. `SYNCED`: synced to the accounting system. `ERROR`: sync
2532
+ * failed. `DO_NOT_SYNC`: marked to be excluded from sync. `EXPORTED`: exported for
2533
+ * accounting. `NOT_SYNCABLE`: this record cannot be synced. `AUTO_SYNC`: ready to
2534
+ * be synced automatically. Null when no sync state is set.
2535
+ */
2536
+ gl_sync_state?:
2537
+ | 'NOT_FINALIZED'
2538
+ | 'FOR_REVIEW'
2539
+ | 'PENDING_SYNC'
2540
+ | 'SYNCED'
2541
+ | 'ERROR'
2542
+ | 'DO_NOT_SYNC'
2543
+ | 'EXPORTED'
2544
+ | 'NOT_SYNCABLE'
2545
+ | 'AUTO_SYNC';
2546
+
2547
+ /**
2548
+ * Vendor in the connected accounting system.
2549
+ */
2550
+ gl_vendor?: ReimbursementUpdateResponse.GlVendor;
2551
+
2552
+ /**
2553
+ * Category splits of the transaction amount. Updates replace the entire list.
2554
+ */
2555
+ line_items?: Array<ReimbursementUpdateResponse.LineItem>;
2556
+
2557
+ /**
2558
+ * Memo entered on the transaction.
2559
+ */
2560
+ memo?: string;
2561
+
2562
+ /**
2563
+ * Amount charged by the merchant, in the merchant currency. The `value` is a
2564
+ * decimal string.
2565
+ */
2566
+ merchant_amount?: ReimbursementUpdateResponse.MerchantAmount;
2567
+
2568
+ /**
2569
+ * Company mileage rate. Include with `expand=mileage_rate` using
2570
+ * `reimbursements.read`.
2571
+ *
2572
+ * Expandable field
2573
+ */
2574
+ mileage_rate?: ReimbursementUpdateResponse.MileageRate;
2575
+
2576
+ /**
2577
+ * ID of the company mileage rate. Null except on mileage reimbursements. Resolve
2578
+ * it with `expand=mileage_rate` on this reimbursement using `reimbursements.read`;
2579
+ * there is no standalone rate lookup endpoint.
2580
+ */
2581
+ mileage_rate_id?: string;
2582
+
2583
+ /**
2584
+ * Amount credited to the worker. The `value` is a decimal string.
2585
+ */
2586
+ payout_amount?: ReimbursementUpdateResponse.PayoutAmount;
2587
+
2588
+ /**
2589
+ * Date the worker is paid, as an ISO 8601 date (YYYY-MM-DD). Null before a run is
2590
+ * assigned.
2591
+ */
2592
+ payout_date?: string;
2593
+
2594
+ /**
2595
+ * How the worker is paid. `NOT_SET`: no payout run is assigned. `US_PAYROLL`:
2596
+ * assigned to a US payroll run. `GLOBAL_PAYROLL`: assigned to a global payroll
2597
+ * run. `DIRECT_DEPOSIT`: assigned to a direct deposit run. `EOR`: assigned to an
2598
+ * employer-of-record payroll run. `MANUAL`: marked paid outside a run. If a payout
2599
+ * method override is set, it is returned.
2600
+ */
2601
+ payout_method?: 'NOT_SET' | 'GLOBAL_PAYROLL' | 'US_PAYROLL' | 'DIRECT_DEPOSIT' | 'EOR' | 'MANUAL';
2602
+
2603
+ /**
2604
+ * Per diem sub-rate rows. Null except on per diem reimbursements.
2605
+ */
2606
+ per_diem_line_items?: Array<ReimbursementUpdateResponse.PerDiemLineItem>;
2607
+
2608
+ /**
2609
+ * Per diem rate for the trip. Include with `expand=per_diem_rate` using
2610
+ * `reimbursements.read`.
2611
+ *
2612
+ * Expandable field
2613
+ */
2614
+ per_diem_rate?: ReimbursementUpdateResponse.PerDiemRate;
2615
+
2616
+ /**
2617
+ * ID of the per diem rate. Null except on per diem reimbursements. Resolve it with
2618
+ * `expand=per_diem_rate` on this reimbursement using `reimbursements.read`; there
2619
+ * is no standalone rate lookup endpoint.
2620
+ */
2621
+ per_diem_rate_id?: string;
2622
+
2623
+ /**
2624
+ * Receipt file and its filename.
2625
+ */
2626
+ receipt?: ReimbursementUpdateResponse.Receipt;
2627
+
2628
+ /**
2629
+ * Start of a mileage trip. Null except on mileage reimbursements.
2630
+ */
2631
+ start_location?: ReimbursementUpdateResponse.StartLocation;
2632
+
2633
+ /**
2634
+ * When the purchase or authorization happened, as an ISO 8601 date-time in UTC.
2635
+ */
2636
+ transaction_date?: string;
2637
+
2638
+ /**
2639
+ * `REIMBURSEMENT`: an expense the worker paid and the company pays back.
2640
+ * `MILEAGE_REIMBURSEMENT`: payback for distance driven. `PER_DIEM_REIMBURSEMENT`:
2641
+ * payback for a daily travel allowance. This decides which mileage or per diem
2642
+ * fields are set.
2643
+ */
2644
+ transaction_type?: 'REIMBURSEMENT' | 'MILEAGE_REIMBURSEMENT' | 'PER_DIEM_REIMBURSEMENT';
2645
+
2646
+ /**
2647
+ * Per diem trip end date, as an ISO 8601 date (YYYY-MM-DD). Null except on per
2648
+ * diem reimbursements.
2649
+ */
2650
+ trip_end_date?: string;
2651
+
2652
+ /**
2653
+ * Per diem trip start date, as an ISO 8601 date (YYYY-MM-DD). Null except on per
2654
+ * diem reimbursements.
2655
+ */
2656
+ trip_start_date?: string;
2657
+
2658
+ /**
2659
+ * Vendor details. Expand with `reimbursements.read` and `finance-vendors.read`.
2660
+ *
2661
+ * Expandable field
2662
+ */
2663
+ vendor?: ReimbursementUpdateResponse.Vendor;
2664
+
2665
+ /**
2666
+ * ID of the Finance vendor. Use it with `/finance-vendors/{id}/`.
2667
+ */
2668
+ vendor_id?: string;
2669
+
2670
+ /**
2671
+ * List of intermediate stops during the trip, for mileage reimbursements. Null
2672
+ * except on mileage reimbursements.
2673
+ */
2674
+ waypoints?: Array<ReimbursementUpdateResponse.Waypoint>;
2675
+
2676
+ /**
2677
+ * Worker details. Expand with `reimbursements.read` and `workers.read`.
2678
+ *
2679
+ * Expandable field
2680
+ */
2681
+ worker?: WorkersAPI.Worker;
2682
+
2683
+ /**
2684
+ * ID of the worker who made the transaction. Use it with `/workers/{id}/`.
2685
+ */
2686
+ worker_id?: string;
2687
+ }
2688
+
2689
+ export namespace ReimbursementUpdateResponse {
2690
+ /**
2691
+ * A Finance transaction attachment with recorded upload details.
2692
+ */
2693
+ export interface Attachment {
2694
+ /**
2695
+ * URL for accessing the file.
2696
+ */
2697
+ url: string;
2698
+
2699
+ /**
2700
+ * Original file name, when recorded.
2701
+ */
2702
+ file_name?: string;
2703
+
2704
+ /**
2705
+ * When the attachment was uploaded, as an ISO 8601 date-time in UTC, when
2706
+ * recorded.
2707
+ */
2708
+ uploaded_at?: string;
2709
+
2710
+ /**
2711
+ * ID of the worker who uploaded the attachment. Use it with `/workers/{id}/`.
2712
+ */
2713
+ uploaded_by_id?: string;
2714
+ }
2715
+
2716
+ /**
2717
+ * Amount in the company's headquarters currency. The `value` is a decimal string.
2718
+ */
2719
+ export interface CompanyAmount {
2720
+ /**
2721
+ * The currency type, ex: USD, EUR, etc.
2722
+ */
2723
+ currency_type?: string;
2724
+
2725
+ /**
2726
+ * The decimal amount for the currency.
2727
+ */
2728
+ value?: number;
2729
+ }
2730
+
2731
+ /**
2732
+ * End of a mileage trip. Null except on mileage reimbursements.
2733
+ */
2734
+ export interface EndLocation {
2735
+ /**
2736
+ * Address of this point. Null when the point has no address.
2737
+ */
2738
+ address?: string;
2739
+
2740
+ /**
2741
+ * Latitude and longitude of this point, in decimal degrees. Null when the point
2742
+ * has no coordinates.
2743
+ */
2744
+ coordinates?: EndLocation.Coordinates;
2745
+ }
2746
+
2747
+ export namespace EndLocation {
2748
+ /**
2749
+ * Latitude and longitude of this point, in decimal degrees. Null when the point
2750
+ * has no coordinates.
2751
+ */
2752
+ export interface Coordinates {
2753
+ /**
2754
+ * Latitude of this point, in decimal degrees.
2755
+ */
2756
+ latitude?: number;
2757
+
2758
+ /**
2759
+ * Longitude of this point, in decimal degrees.
2760
+ */
2761
+ longitude?: number;
2762
+ }
2763
+ }
2764
+
2765
+ /**
2766
+ * Vendor in the connected accounting system.
2767
+ */
2768
+ export interface GlVendor {
2769
+ /**
2770
+ * ID of the accounting vendor in Rippling.
2771
+ */
2772
+ id?: string;
2773
+
2774
+ /**
2775
+ * ID of the vendor in the accounting system.
2776
+ */
2777
+ gl_vendor_id?: string;
2778
+
2779
+ /**
2780
+ * Name of the vendor in the accounting system.
2781
+ */
2782
+ name?: string;
2783
+ }
2784
+
2785
+ export interface LineItem {
2786
+ /**
2787
+ * Unique identifier of this line item. Null for older line items that have not
2788
+ * been assigned one yet.
2789
+ */
2790
+ id?: string;
2791
+
2792
+ /**
2793
+ * Whether this line is amortized.
2794
+ */
2795
+ amortized?: boolean;
2796
+
2797
+ /**
2798
+ * Amount of this split, in the merchant currency. The `value` is a decimal string.
2799
+ */
2800
+ amount?: LineItem.Amount;
2801
+
2802
+ /**
2803
+ * ID of the Finance category assigned to this split. Use it with
2804
+ * `/finance-categories/{id}/`. The category name is in `category_name`.
2805
+ */
2806
+ category_id?: string;
2807
+
2808
+ /**
2809
+ * Name of the finance category.
2810
+ */
2811
+ category_name?: string;
2812
+
2813
+ /**
2814
+ * Selected dimension values, keyed by dimension ID. `DEPARTMENT` and
2815
+ * `WORK_LOCATION` are the built-in keys. Get custom dimension IDs from
2816
+ * `/job-dimensions/` and `/job-dimensions/{id}/`. Each choice `value` is a job
2817
+ * code ID from `/job-codes/` and `/job-codes/{id}/`.
2818
+ */
2819
+ dimension_choices?: { [key: string]: LineItem.DimensionChoices };
2820
+
2821
+ /**
2822
+ * End of the amortization period (YYYY-MM-DD).
2823
+ */
2824
+ end_date?: string;
2825
+
2826
+ /**
2827
+ * ERP amortization schedule associated with this line.
2828
+ */
2829
+ gl_amortization_schedule?: LineItem.GlAmortizationSchedule;
2830
+
2831
+ /**
2832
+ * ERP amortization template for this line.
2833
+ */
2834
+ gl_amortization_template?: LineItem.GlAmortizationTemplate;
2835
+
2836
+ /**
2837
+ * Whether this split is billed to `gl_customer` in the accounting system.
2838
+ * `BILLABLE` means it is billed, `NOT_BILLABLE` means it is not. Null when not
2839
+ * set.
2840
+ */
2841
+ gl_billable?: 'BILLABLE' | 'NOT_BILLABLE';
2842
+
2843
+ /**
2844
+ * ID of the customer record in the connected accounting integration. No public
2845
+ * Rippling API is currently available to retrieve this accounting customer.
2846
+ */
2847
+ gl_customer?: string;
2848
+
2849
+ /**
2850
+ * Rippling ID of the accounting tax code. No public Rippling API is currently
2851
+ * available to retrieve this accounting tax code.
2852
+ */
2853
+ gl_tax_code?: string;
2854
+
2855
+ /**
2856
+ * Memo entered on this split.
2857
+ */
2858
+ memo?: string;
2859
+
2860
+ /**
2861
+ * Prepaid asset account for Rippling-managed amortization.
2862
+ */
2863
+ prepaid_account?: LineItem.PrepaidAccount;
2864
+
2865
+ /**
2866
+ * Start of the amortization period (YYYY-MM-DD).
2867
+ */
2868
+ start_date?: string;
2869
+
2870
+ /**
2871
+ * Total tax amount for this line in the merchant currency.
2872
+ */
2873
+ tax_amount?: LineItem.TaxAmount;
2874
+ }
2875
+
2876
+ export namespace LineItem {
2877
+ /**
2878
+ * Amount of this split, in the merchant currency. The `value` is a decimal string.
2879
+ */
2880
+ export interface Amount {
2881
+ /**
2882
+ * The currency type, ex: USD, EUR, etc.
2883
+ */
2884
+ currency_type?: string;
2885
+
2886
+ /**
2887
+ * The decimal amount for the currency.
2888
+ */
2889
+ value?: number;
2890
+ }
2891
+
2892
+ export interface DimensionChoices {
2893
+ /**
2894
+ * Name of the dimension, such as Department.
2895
+ */
2896
+ dimension_name?: string;
2897
+
2898
+ /**
2899
+ * Display name of the selected dimension value.
2900
+ */
2901
+ label?: string;
2902
+
2903
+ /**
2904
+ * ID of the selected value. For `DEPARTMENT` use `/departments/{id}/`, for
2905
+ * `WORK_LOCATION` use `/work-locations/{id}/`, and for a custom job dimension use
2906
+ * `/job-codes/{id}/`.
2907
+ */
2908
+ value?: string;
2909
+ }
2910
+
2911
+ /**
2912
+ * ERP amortization schedule associated with this line.
2913
+ */
2914
+ export interface GlAmortizationSchedule {
2915
+ /**
2916
+ * Rippling ID of the accounting integration that owns this object. No public
2917
+ * Rippling API is currently available to retrieve this accounting integration.
2918
+ */
2919
+ accounting_integration_id?: string;
2920
+
2921
+ /**
2922
+ * Number of amortization periods.
2923
+ */
2924
+ amortization_period?: number;
2925
+
2926
+ /**
2927
+ * End of the ERP amortization schedule as an ISO 8601 timestamp (for example,
2928
+ * 2026-12-31T00:00:00). May omit a timezone offset; an omitted offset does not
2929
+ * indicate UTC. Null when not set.
2930
+ */
2931
+ end_date?: string;
2932
+
2933
+ /**
2934
+ * Object ID in the connected accounting system.
2935
+ */
2936
+ gl_object_id?: string;
2937
+
2938
+ /**
2939
+ * Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
2940
+ * defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
2941
+ * GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
2942
+ * ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
2943
+ * accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
2944
+ * customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
2945
+ * when not set.
2946
+ */
2947
+ gl_object_type?:
2948
+ | 'GL_AMORTIZATION_TEMPLATE'
2949
+ | 'GL_AMORTIZATION_SCHEDULE'
2950
+ | 'GL_AMORTIZATION_SCHEDULE_RECURRENCE'
2951
+ | 'GL_ACCOUNT'
2952
+ | 'GL_JOURNAL_ENTRY'
2953
+ | 'GL_POSTING_PERIOD'
2954
+ | 'GL_VENDOR'
2955
+ | 'GL_CUSTOMER'
2956
+ | 'GL_EMPLOYEE'
2957
+ | 'GL_SUBSIDIARY';
2958
+
2959
+ /**
2960
+ * Accounting object name.
2961
+ */
2962
+ name?: string;
2963
+
2964
+ /**
2965
+ * Start of the ERP amortization schedule as an ISO 8601 timestamp (for example,
2966
+ * 2026-01-01T00:00:00). May omit a timezone offset; an omitted offset does not
2967
+ * indicate UTC. Null when not set.
2968
+ */
2969
+ start_date?: string;
2970
+
2971
+ /**
2972
+ * ERP amortization schedule status: NOT_STARTED means amortization has not begun;
2973
+ * IN_PROGRESS means amortization is underway; COMPLETED means amortization is
2974
+ * complete; ON_HOLD means amortization is paused. Null when not set.
2975
+ */
2976
+ status?: 'NOT_STARTED' | 'IN_PROGRESS' | 'COMPLETED' | 'ON_HOLD';
2977
+
2978
+ /**
2979
+ * Amount already amortized as reported by the ERP, in the same currency as
2980
+ * total_amount. No currency conversion is applied; the schedule currency code is
2981
+ * not available in this response.
2982
+ */
2983
+ total_amortized_amount?: number;
2984
+
2985
+ /**
2986
+ * Total schedule amount as reported by the ERP, without currency conversion. The
2987
+ * schedule currency code is not available in this response.
2988
+ */
2989
+ total_amount?: number;
2990
+ }
2991
+
2992
+ /**
2993
+ * ERP amortization template for this line.
2994
+ */
2995
+ export interface GlAmortizationTemplate {
2996
+ /**
2997
+ * Rippling ID of the accounting integration that owns this object. No public
2998
+ * Rippling API is currently available to retrieve this accounting integration.
2999
+ */
3000
+ accounting_integration_id?: string;
3001
+
3002
+ /**
3003
+ * Object ID in the connected accounting system.
3004
+ */
3005
+ gl_object_id?: string;
3006
+
3007
+ /**
3008
+ * Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
3009
+ * defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
3010
+ * GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
3011
+ * ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
3012
+ * accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
3013
+ * customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
3014
+ * when not set.
3015
+ */
3016
+ gl_object_type?:
3017
+ | 'GL_AMORTIZATION_TEMPLATE'
3018
+ | 'GL_AMORTIZATION_SCHEDULE'
3019
+ | 'GL_AMORTIZATION_SCHEDULE_RECURRENCE'
3020
+ | 'GL_ACCOUNT'
3021
+ | 'GL_JOURNAL_ENTRY'
3022
+ | 'GL_POSTING_PERIOD'
3023
+ | 'GL_VENDOR'
3024
+ | 'GL_CUSTOMER'
3025
+ | 'GL_EMPLOYEE'
3026
+ | 'GL_SUBSIDIARY';
3027
+
3028
+ /**
3029
+ * Accounting object name.
3030
+ */
3031
+ name?: string;
3032
+ }
3033
+
3034
+ /**
3035
+ * Prepaid asset account for Rippling-managed amortization.
3036
+ */
3037
+ export interface PrepaidAccount {
3038
+ /**
3039
+ * Account ID in the connected accounting system.
3040
+ */
3041
+ account_id?: string;
3042
+
3043
+ /**
3044
+ * Account code.
3045
+ */
3046
+ code?: string;
3047
+
3048
+ /**
3049
+ * Account name.
3050
+ */
3051
+ name?: string;
3052
+
3053
+ /**
3054
+ * IDs of custom dimensions required by this account.
3055
+ */
3056
+ required_custom_dimensions?: Array<string>;
3057
+
3058
+ /**
3059
+ * Whether this account requires a department.
3060
+ */
3061
+ requires_department?: boolean;
3062
+
3063
+ /**
3064
+ * Whether this account requires a work location.
3065
+ */
3066
+ requires_work_location?: boolean;
3067
+
3068
+ /**
3069
+ * Accounting account type: RECEIVABLE for accounts receivable, PAYABLE for
3070
+ * accounts payable, EXPENSE for expense accounts, or BANK for bank accounts. Null
3071
+ * when not set.
3072
+ */
3073
+ type?: 'RECEIVABLE' | 'PAYABLE' | 'EXPENSE' | 'BANK';
3074
+ }
3075
+
3076
+ /**
3077
+ * Total tax amount for this line in the merchant currency.
3078
+ */
3079
+ export interface TaxAmount {
3080
+ /**
3081
+ * The currency type, ex: USD, EUR, etc.
3082
+ */
3083
+ currency_type?: string;
3084
+
3085
+ /**
3086
+ * The decimal amount for the currency.
3087
+ */
3088
+ value?: number;
3089
+ }
3090
+ }
3091
+
3092
+ /**
3093
+ * Amount charged by the merchant, in the merchant currency. The `value` is a
3094
+ * decimal string.
3095
+ */
3096
+ export interface MerchantAmount {
3097
+ /**
3098
+ * The currency type, ex: USD, EUR, etc.
3099
+ */
3100
+ currency_type?: string;
3101
+
3102
+ /**
3103
+ * The decimal amount for the currency.
3104
+ */
3105
+ value?: number;
3106
+ }
3107
+
3108
+ /**
3109
+ * Company mileage rate. Include with `expand=mileage_rate` using
3110
+ * `reimbursements.read`.
3111
+ *
3112
+ * Expandable field
3113
+ */
3114
+ export interface MileageRate {
3115
+ /**
3116
+ * Company mileage rate ID.
3117
+ */
3118
+ id: string;
3119
+
3120
+ /**
3121
+ * When the mileage rate was created, as an ISO 8601 date-time in UTC.
3122
+ */
3123
+ created_at: string;
3124
+
3125
+ /**
3126
+ * When the mileage rate was last updated, as an ISO 8601 date-time in UTC.
3127
+ */
3128
+ updated_at: string;
3129
+
3130
+ /**
3131
+ * ISO 3166-1 alpha-2 country code.
3132
+ */
3133
+ country?: string;
3134
+
3135
+ /**
3136
+ * Effective end date of the rate, as an ISO 8601 date (YYYY-MM-DD).
3137
+ */
3138
+ end_date?: string;
3139
+
3140
+ /**
3141
+ * Whether an additional half cent per distance unit applies.
3142
+ */
3143
+ half_cent?: boolean;
3144
+
3145
+ /**
3146
+ * Company-defined label for this mileage rate, such as the rate used for a country
3147
+ * or vehicle type.
3148
+ */
3149
+ name?: string;
3150
+
3151
+ /**
3152
+ * Amount per distance unit. The `value` is a decimal string.
3153
+ */
3154
+ rate?: MileageRate.Rate;
3155
+
3156
+ /**
3157
+ * Effective start date of the rate, as an ISO 8601 date (YYYY-MM-DD).
3158
+ */
3159
+ start_date?: string;
3160
+
3161
+ /**
3162
+ * Distance unit, mi or km.
3163
+ */
3164
+ units?: 'km' | 'mi';
3165
+ }
3166
+
3167
+ export namespace MileageRate {
3168
+ /**
3169
+ * Amount per distance unit. The `value` is a decimal string.
3170
+ */
3171
+ export interface Rate {
3172
+ /**
3173
+ * The currency type, ex: USD, EUR, etc.
3174
+ */
3175
+ currency_type?: string;
3176
+
3177
+ /**
3178
+ * The decimal amount for the currency.
3179
+ */
3180
+ value?: number;
3181
+ }
3182
+ }
3183
+
3184
+ /**
3185
+ * Amount credited to the worker. The `value` is a decimal string.
3186
+ */
3187
+ export interface PayoutAmount {
3188
+ /**
3189
+ * The currency type, ex: USD, EUR, etc.
1013
3190
  */
1014
3191
  currency_type?: string;
1015
3192
 
@@ -1093,13 +3270,26 @@ export namespace ReimbursementRetrieveResponse {
1093
3270
  }
1094
3271
 
1095
3272
  /**
1096
- * Per diem rate for the trip. Null except on per diem reimbursements.
3273
+ * Per diem rate for the trip. Include with `expand=per_diem_rate` using
3274
+ * `reimbursements.read`.
3275
+ *
3276
+ * Expandable field
1097
3277
  */
1098
3278
  export interface PerDiemRate {
1099
3279
  /**
1100
3280
  * Per diem rate ID.
1101
3281
  */
1102
- id?: string;
3282
+ id: string;
3283
+
3284
+ /**
3285
+ * When the per diem rate was created, as an ISO 8601 date-time in UTC.
3286
+ */
3287
+ created_at: string;
3288
+
3289
+ /**
3290
+ * When the per diem rate was last updated, as an ISO 8601 date-time in UTC.
3291
+ */
3292
+ updated_at: string;
1103
3293
 
1104
3294
  /**
1105
3295
  * Country this per diem rate applies to, as an ISO 3166-1 alpha-2 code. Example:
@@ -1116,27 +3306,157 @@ export namespace ReimbursementRetrieveResponse {
1116
3306
  * Place this per diem rate applies to, such as a city.
1117
3307
  */
1118
3308
  destination_name?: string;
3309
+
3310
+ /**
3311
+ * Effective end date of the rate, as an ISO 8601 date (YYYY-MM-DD).
3312
+ */
3313
+ end_date?: string;
3314
+
3315
+ /**
3316
+ * Whether the rate is archived. Archived rates remain readable for historical
3317
+ * references.
3318
+ */
3319
+ is_archived?: boolean;
3320
+
3321
+ /**
3322
+ * Whether this is the current version of the rate.
3323
+ */
3324
+ is_current?: boolean;
3325
+
3326
+ /**
3327
+ * Effective start date of the rate, as an ISO 8601 date (YYYY-MM-DD).
3328
+ */
3329
+ start_date?: string;
3330
+ }
3331
+
3332
+ /**
3333
+ * Receipt file and its filename.
3334
+ */
3335
+ export interface Receipt {
3336
+ /**
3337
+ * URL for accessing the file.
3338
+ */
3339
+ url: string;
3340
+
3341
+ /**
3342
+ * Original file name, when recorded.
3343
+ */
3344
+ file_name?: string;
3345
+ }
3346
+
3347
+ /**
3348
+ * Start of a mileage trip. Null except on mileage reimbursements.
3349
+ */
3350
+ export interface StartLocation {
3351
+ /**
3352
+ * Address of this point. Null when the point has no address.
3353
+ */
3354
+ address?: string;
3355
+
3356
+ /**
3357
+ * Latitude and longitude of this point, in decimal degrees. Null when the point
3358
+ * has no coordinates.
3359
+ */
3360
+ coordinates?: StartLocation.Coordinates;
3361
+ }
3362
+
3363
+ export namespace StartLocation {
3364
+ /**
3365
+ * Latitude and longitude of this point, in decimal degrees. Null when the point
3366
+ * has no coordinates.
3367
+ */
3368
+ export interface Coordinates {
3369
+ /**
3370
+ * Latitude of this point, in decimal degrees.
3371
+ */
3372
+ latitude?: number;
3373
+
3374
+ /**
3375
+ * Longitude of this point, in decimal degrees.
3376
+ */
3377
+ longitude?: number;
3378
+ }
1119
3379
  }
1120
3380
 
1121
3381
  /**
1122
- * Vendor the purchase was made from.
3382
+ * Vendor details. Expand with `reimbursements.read` and `finance-vendors.read`.
3383
+ *
3384
+ * Expandable field
1123
3385
  */
1124
3386
  export interface Vendor {
1125
3387
  /**
1126
- * ID of the vendor.
3388
+ * Identifier field
1127
3389
  */
1128
- id?: string;
3390
+ id: string;
3391
+
3392
+ /**
3393
+ * Record creation date
3394
+ */
3395
+ created_at: string;
3396
+
3397
+ /**
3398
+ * Record update date
3399
+ */
3400
+ updated_at: string;
3401
+
3402
+ /**
3403
+ * Whether the vendor is archived. Archived vendors remain available for historical
3404
+ * references.
3405
+ */
3406
+ is_archived?: boolean;
1129
3407
 
1130
3408
  /**
1131
- * Name of the vendor.
3409
+ * URL of the vendor's logo. Null when no logo is available.
3410
+ */
3411
+ logo?: string;
3412
+
3413
+ /**
3414
+ * Canonical name of the Finance vendor. Name eq, ne, and in filters also match
3415
+ * alternate names.
1132
3416
  */
1133
3417
  name?: string;
1134
3418
  }
3419
+
3420
+ /**
3421
+ * Start, end, or intermediate stop on a mileage trip.
3422
+ */
3423
+ export interface Waypoint {
3424
+ /**
3425
+ * Address of this point. Null when the point has no address.
3426
+ */
3427
+ address?: string;
3428
+
3429
+ /**
3430
+ * Latitude and longitude of this point, in decimal degrees. Null when the point
3431
+ * has no coordinates.
3432
+ */
3433
+ coordinates?: Waypoint.Coordinates;
3434
+ }
3435
+
3436
+ export namespace Waypoint {
3437
+ /**
3438
+ * Latitude and longitude of this point, in decimal degrees. Null when the point
3439
+ * has no coordinates.
3440
+ */
3441
+ export interface Coordinates {
3442
+ /**
3443
+ * Latitude of this point, in decimal degrees.
3444
+ */
3445
+ latitude?: number;
3446
+
3447
+ /**
3448
+ * Longitude of this point, in decimal degrees.
3449
+ */
3450
+ longitude?: number;
3451
+ }
3452
+ }
1135
3453
  }
1136
3454
 
1137
3455
  export interface ReimbursementListParams {
1138
3456
  cursor?: string;
1139
3457
 
3458
+ expand?: string;
3459
+
1140
3460
  filter?: string;
1141
3461
 
1142
3462
  /**
@@ -1147,11 +3467,156 @@ export interface ReimbursementListParams {
1147
3467
  order_by?: string;
1148
3468
  }
1149
3469
 
3470
+ export interface ReimbursementRetrieveParams {
3471
+ expand?: string;
3472
+ }
3473
+
3474
+ export interface ReimbursementUpdateParams {
3475
+ /**
3476
+ * Category splits of the transaction amount. Updates replace the entire list.
3477
+ */
3478
+ line_items?: Array<ReimbursementUpdateParams.LineItem>;
3479
+ }
3480
+
3481
+ export namespace ReimbursementUpdateParams {
3482
+ /**
3483
+ * PATCH body for a line item. `amount` and `tax_amount` are decimal strings, not
3484
+ * Currency objects.
3485
+ */
3486
+ export interface LineItem {
3487
+ /**
3488
+ * Amount of this split, in the merchant currency, as a decimal string.
3489
+ */
3490
+ amount: string;
3491
+
3492
+ /**
3493
+ * ID of the Finance category assigned to this split. Use it with
3494
+ * `/finance-categories/{id}/`.
3495
+ */
3496
+ category_id: string;
3497
+
3498
+ /**
3499
+ * Optional. Omit to create a new line. Replacing `line_items` assigns new IDs; a
3500
+ * supplied `id` is not preserved.
3501
+ */
3502
+ id?: string;
3503
+
3504
+ /**
3505
+ * Whether this line is amortized.
3506
+ */
3507
+ amortized?: boolean;
3508
+
3509
+ /**
3510
+ * Selected dimension values, keyed by dimension ID. `DEPARTMENT` and
3511
+ * `WORK_LOCATION` are the built-in keys. Get custom dimension IDs from
3512
+ * `/job-dimensions/` and `/job-dimensions/{id}/`. Each value is an ID:
3513
+ * `/departments/{id}/` for `DEPARTMENT`, `/work-locations/{id}/` for
3514
+ * `WORK_LOCATION`, and `/job-codes/{id}/` for a custom job dimension.
3515
+ */
3516
+ dimension_choices?: { [key: string]: string };
3517
+
3518
+ /**
3519
+ * End of the amortization period (YYYY-MM-DD).
3520
+ */
3521
+ end_date?: string;
3522
+
3523
+ /**
3524
+ * ERP amortization template for this line.
3525
+ */
3526
+ gl_amortization_template?: LineItem.GlAmortizationTemplate;
3527
+
3528
+ /**
3529
+ * Whether this split is billed to `gl_customer` in the accounting system.
3530
+ * `BILLABLE` means it is billed, `NOT_BILLABLE` means it is not. Null when not
3531
+ * set.
3532
+ */
3533
+ gl_billable?: 'BILLABLE' | 'NOT_BILLABLE';
3534
+
3535
+ /**
3536
+ * ID of the customer record in the connected accounting integration. No public
3537
+ * Rippling API is currently available to retrieve this accounting customer.
3538
+ */
3539
+ gl_customer?: string;
3540
+
3541
+ /**
3542
+ * Rippling ID of the accounting tax code. No public Rippling API is currently
3543
+ * available to retrieve this accounting tax code.
3544
+ */
3545
+ gl_tax_code?: string;
3546
+
3547
+ /**
3548
+ * Memo entered on this split.
3549
+ */
3550
+ memo?: string;
3551
+
3552
+ /**
3553
+ * Prepaid asset account for Rippling-managed amortization.
3554
+ */
3555
+ prepaid_account?: LineItem.PrepaidAccount;
3556
+
3557
+ /**
3558
+ * Start of the amortization period (YYYY-MM-DD).
3559
+ */
3560
+ start_date?: string;
3561
+
3562
+ /**
3563
+ * Total tax amount for this line in the merchant currency, as a decimal string.
3564
+ */
3565
+ tax_amount?: string;
3566
+ }
3567
+
3568
+ export namespace LineItem {
3569
+ /**
3570
+ * ERP amortization template for this line.
3571
+ */
3572
+ export interface GlAmortizationTemplate {
3573
+ /**
3574
+ * Rippling ID of the accounting integration that owns this template. No public
3575
+ * Rippling API is currently available to retrieve this accounting integration.
3576
+ */
3577
+ accounting_integration_id?: string;
3578
+
3579
+ /**
3580
+ * Object ID of the amortization template in the connected accounting system.
3581
+ */
3582
+ gl_object_id?: string;
3583
+
3584
+ /**
3585
+ * Amortization template name.
3586
+ */
3587
+ name?: string;
3588
+ }
3589
+
3590
+ /**
3591
+ * Prepaid asset account for Rippling-managed amortization.
3592
+ */
3593
+ export interface PrepaidAccount {
3594
+ /**
3595
+ * Account ID in the connected accounting system.
3596
+ */
3597
+ account_id?: string;
3598
+
3599
+ /**
3600
+ * Account code.
3601
+ */
3602
+ code?: string;
3603
+
3604
+ /**
3605
+ * Account name.
3606
+ */
3607
+ name?: string;
3608
+ }
3609
+ }
3610
+ }
3611
+
1150
3612
  export declare namespace Reimbursements {
1151
3613
  export {
1152
3614
  type ReimbursementListResponse as ReimbursementListResponse,
1153
3615
  type ReimbursementRetrieveResponse as ReimbursementRetrieveResponse,
3616
+ type ReimbursementUpdateResponse as ReimbursementUpdateResponse,
1154
3617
  type ReimbursementListResponsesPageCursorURL as ReimbursementListResponsesPageCursorURL,
1155
3618
  type ReimbursementListParams as ReimbursementListParams,
3619
+ type ReimbursementRetrieveParams as ReimbursementRetrieveParams,
3620
+ type ReimbursementUpdateParams as ReimbursementUpdateParams,
1156
3621
  };
1157
3622
  }