@rippling/rippling-sdk 0.2.0-alpha.25 → 0.2.0-alpha.27

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 (705) hide show
  1. package/LICENSE +1 -1
  2. package/client.d.mts +226 -14
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +226 -14
  5. package/client.d.ts.map +1 -1
  6. package/client.js +236 -20
  7. package/client.js.map +1 -1
  8. package/client.mjs +236 -20
  9. package/client.mjs.map +1 -1
  10. package/functions.d.mts +4 -0
  11. package/functions.d.mts.map +1 -1
  12. package/functions.d.ts +4 -0
  13. package/functions.d.ts.map +1 -1
  14. package/functions.js +13 -1
  15. package/functions.js.map +1 -1
  16. package/functions.mjs +11 -0
  17. package/functions.mjs.map +1 -1
  18. package/internal/parse.d.mts.map +1 -1
  19. package/internal/parse.d.ts.map +1 -1
  20. package/internal/parse.js +5 -0
  21. package/internal/parse.js.map +1 -1
  22. package/internal/parse.mjs +5 -0
  23. package/internal/parse.mjs.map +1 -1
  24. package/internal/utils/query.d.mts +5 -0
  25. package/internal/utils/query.d.mts.map +1 -0
  26. package/internal/utils/query.d.ts +5 -0
  27. package/internal/utils/query.d.ts.map +1 -0
  28. package/internal/utils/query.js +23 -0
  29. package/internal/utils/query.js.map +1 -0
  30. package/internal/utils/query.mjs +20 -0
  31. package/internal/utils/query.mjs.map +1 -0
  32. package/internal/utils.d.mts +1 -0
  33. package/internal/utils.d.ts +1 -0
  34. package/internal/utils.js +1 -0
  35. package/internal/utils.js.map +1 -1
  36. package/internal/utils.mjs +1 -0
  37. package/package.json +12 -1
  38. package/resources/business-partner-groups.d.mts +3 -0
  39. package/resources/business-partner-groups.d.mts.map +1 -1
  40. package/resources/business-partner-groups.d.ts +3 -0
  41. package/resources/business-partner-groups.d.ts.map +1 -1
  42. package/resources/business-partner-groups.js +3 -0
  43. package/resources/business-partner-groups.js.map +1 -1
  44. package/resources/business-partner-groups.mjs +3 -0
  45. package/resources/business-partner-groups.mjs.map +1 -1
  46. package/resources/business-partners.d.mts +3 -0
  47. package/resources/business-partners.d.mts.map +1 -1
  48. package/resources/business-partners.d.ts +3 -0
  49. package/resources/business-partners.d.ts.map +1 -1
  50. package/resources/business-partners.js +3 -0
  51. package/resources/business-partners.js.map +1 -1
  52. package/resources/business-partners.mjs +3 -0
  53. package/resources/business-partners.mjs.map +1 -1
  54. package/resources/candidate-applications.d.mts +3 -0
  55. package/resources/candidate-applications.d.mts.map +1 -1
  56. package/resources/candidate-applications.d.ts +3 -0
  57. package/resources/candidate-applications.d.ts.map +1 -1
  58. package/resources/candidate-applications.js +3 -0
  59. package/resources/candidate-applications.js.map +1 -1
  60. package/resources/candidate-applications.mjs +3 -0
  61. package/resources/candidate-applications.mjs.map +1 -1
  62. package/resources/candidates.d.mts +3 -0
  63. package/resources/candidates.d.mts.map +1 -1
  64. package/resources/candidates.d.ts +3 -0
  65. package/resources/candidates.d.ts.map +1 -1
  66. package/resources/candidates.js +3 -0
  67. package/resources/candidates.js.map +1 -1
  68. package/resources/candidates.mjs +3 -0
  69. package/resources/candidates.mjs.map +1 -1
  70. package/resources/companies.d.mts +3 -0
  71. package/resources/companies.d.mts.map +1 -1
  72. package/resources/companies.d.ts +3 -0
  73. package/resources/companies.d.ts.map +1 -1
  74. package/resources/companies.js +3 -0
  75. package/resources/companies.js.map +1 -1
  76. package/resources/companies.mjs +3 -0
  77. package/resources/companies.mjs.map +1 -1
  78. package/resources/compensation-bands-details.d.mts +98 -0
  79. package/resources/compensation-bands-details.d.mts.map +1 -0
  80. package/resources/compensation-bands-details.d.ts +98 -0
  81. package/resources/compensation-bands-details.d.ts.map +1 -0
  82. package/resources/compensation-bands-details.js +32 -0
  83. package/resources/compensation-bands-details.js.map +1 -0
  84. package/resources/compensation-bands-details.mjs +28 -0
  85. package/resources/compensation-bands-details.mjs.map +1 -0
  86. package/resources/compensations.d.mts +3 -0
  87. package/resources/compensations.d.mts.map +1 -1
  88. package/resources/compensations.d.ts +3 -0
  89. package/resources/compensations.d.ts.map +1 -1
  90. package/resources/compensations.js +3 -0
  91. package/resources/compensations.js.map +1 -1
  92. package/resources/compensations.mjs +3 -0
  93. package/resources/compensations.mjs.map +1 -1
  94. package/resources/create-app-notification.d.mts +29 -0
  95. package/resources/create-app-notification.d.mts.map +1 -0
  96. package/resources/create-app-notification.d.ts +29 -0
  97. package/resources/create-app-notification.d.ts.map +1 -0
  98. package/resources/create-app-notification.js +18 -0
  99. package/resources/create-app-notification.js.map +1 -0
  100. package/resources/create-app-notification.mjs +14 -0
  101. package/resources/create-app-notification.mjs.map +1 -0
  102. package/resources/custom-apps.d.mts +261 -0
  103. package/resources/custom-apps.d.mts.map +1 -0
  104. package/resources/custom-apps.d.ts +261 -0
  105. package/resources/custom-apps.d.ts.map +1 -0
  106. package/resources/custom-apps.js +47 -0
  107. package/resources/custom-apps.js.map +1 -0
  108. package/resources/custom-apps.mjs +43 -0
  109. package/resources/custom-apps.mjs.map +1 -0
  110. package/resources/custom-fields.d.mts +3 -0
  111. package/resources/custom-fields.d.mts.map +1 -1
  112. package/resources/custom-fields.d.ts +3 -0
  113. package/resources/custom-fields.d.ts.map +1 -1
  114. package/resources/custom-fields.js +3 -0
  115. package/resources/custom-fields.js.map +1 -1
  116. package/resources/custom-fields.mjs +3 -0
  117. package/resources/custom-fields.mjs.map +1 -1
  118. package/resources/custom-objects/custom-objects.d.mts +3 -0
  119. package/resources/custom-objects/custom-objects.d.mts.map +1 -1
  120. package/resources/custom-objects/custom-objects.d.ts +3 -0
  121. package/resources/custom-objects/custom-objects.d.ts.map +1 -1
  122. package/resources/custom-objects/custom-objects.js +3 -0
  123. package/resources/custom-objects/custom-objects.js.map +1 -1
  124. package/resources/custom-objects/custom-objects.mjs +3 -0
  125. package/resources/custom-objects/custom-objects.mjs.map +1 -1
  126. package/resources/custom-objects/fields.d.mts +3 -0
  127. package/resources/custom-objects/fields.d.mts.map +1 -1
  128. package/resources/custom-objects/fields.d.ts +3 -0
  129. package/resources/custom-objects/fields.d.ts.map +1 -1
  130. package/resources/custom-objects/fields.js +3 -0
  131. package/resources/custom-objects/fields.js.map +1 -1
  132. package/resources/custom-objects/fields.mjs +3 -0
  133. package/resources/custom-objects/fields.mjs.map +1 -1
  134. package/resources/custom-objects/records.d.mts +3 -0
  135. package/resources/custom-objects/records.d.mts.map +1 -1
  136. package/resources/custom-objects/records.d.ts +3 -0
  137. package/resources/custom-objects/records.d.ts.map +1 -1
  138. package/resources/custom-objects/records.js +3 -0
  139. package/resources/custom-objects/records.js.map +1 -1
  140. package/resources/custom-objects/records.mjs +3 -0
  141. package/resources/custom-objects/records.mjs.map +1 -1
  142. package/resources/custom-pages.d.mts +201 -0
  143. package/resources/custom-pages.d.mts.map +1 -0
  144. package/resources/custom-pages.d.ts +201 -0
  145. package/resources/custom-pages.d.ts.map +1 -0
  146. package/resources/custom-pages.js +47 -0
  147. package/resources/custom-pages.js.map +1 -0
  148. package/resources/custom-pages.mjs +43 -0
  149. package/resources/custom-pages.mjs.map +1 -0
  150. package/resources/custom-settings.d.mts +270 -0
  151. package/resources/custom-settings.d.mts.map +1 -0
  152. package/resources/custom-settings.d.ts +270 -0
  153. package/resources/custom-settings.d.ts.map +1 -0
  154. package/resources/custom-settings.js +51 -0
  155. package/resources/custom-settings.js.map +1 -0
  156. package/resources/custom-settings.mjs +47 -0
  157. package/resources/custom-settings.mjs.map +1 -0
  158. package/resources/departments.d.mts +40 -1
  159. package/resources/departments.d.mts.map +1 -1
  160. package/resources/departments.d.ts +40 -1
  161. package/resources/departments.d.ts.map +1 -1
  162. package/resources/departments.js +15 -0
  163. package/resources/departments.js.map +1 -1
  164. package/resources/departments.mjs +15 -0
  165. package/resources/departments.mjs.map +1 -1
  166. package/resources/draft-hires.d.mts +30 -0
  167. package/resources/draft-hires.d.mts.map +1 -1
  168. package/resources/draft-hires.d.ts +30 -0
  169. package/resources/draft-hires.d.ts.map +1 -1
  170. package/resources/draft-hires.js +3 -0
  171. package/resources/draft-hires.js.map +1 -1
  172. package/resources/draft-hires.mjs +3 -0
  173. package/resources/draft-hires.mjs.map +1 -1
  174. package/resources/employment-types.d.mts +3 -0
  175. package/resources/employment-types.d.mts.map +1 -1
  176. package/resources/employment-types.d.ts +3 -0
  177. package/resources/employment-types.d.ts.map +1 -1
  178. package/resources/employment-types.js +3 -0
  179. package/resources/employment-types.js.map +1 -1
  180. package/resources/employment-types.mjs +3 -0
  181. package/resources/employment-types.mjs.map +1 -1
  182. package/resources/entitlements.d.mts +3 -0
  183. package/resources/entitlements.d.mts.map +1 -1
  184. package/resources/entitlements.d.ts +3 -0
  185. package/resources/entitlements.d.ts.map +1 -1
  186. package/resources/entitlements.js +3 -0
  187. package/resources/entitlements.js.map +1 -1
  188. package/resources/entitlements.mjs +3 -0
  189. package/resources/entitlements.mjs.map +1 -1
  190. package/resources/functions/deployments.d.mts +3 -0
  191. package/resources/functions/deployments.d.mts.map +1 -1
  192. package/resources/functions/deployments.d.ts +3 -0
  193. package/resources/functions/deployments.d.ts.map +1 -1
  194. package/resources/functions/deployments.js +3 -0
  195. package/resources/functions/deployments.js.map +1 -1
  196. package/resources/functions/deployments.mjs +3 -0
  197. package/resources/functions/deployments.mjs.map +1 -1
  198. package/resources/functions/executions.d.mts +9 -82
  199. package/resources/functions/executions.d.mts.map +1 -1
  200. package/resources/functions/executions.d.ts +9 -82
  201. package/resources/functions/executions.d.ts.map +1 -1
  202. package/resources/functions/executions.js +3 -0
  203. package/resources/functions/executions.js.map +1 -1
  204. package/resources/functions/executions.mjs +3 -0
  205. package/resources/functions/executions.mjs.map +1 -1
  206. package/resources/functions/functions.d.mts +17 -2
  207. package/resources/functions/functions.d.mts.map +1 -1
  208. package/resources/functions/functions.d.ts +17 -2
  209. package/resources/functions/functions.d.ts.map +1 -1
  210. package/resources/functions/functions.js +3 -0
  211. package/resources/functions/functions.js.map +1 -1
  212. package/resources/functions/functions.mjs +3 -0
  213. package/resources/functions/functions.mjs.map +1 -1
  214. package/resources/functions/index.d.mts +1 -1
  215. package/resources/functions/index.d.mts.map +1 -1
  216. package/resources/functions/index.d.ts +1 -1
  217. package/resources/functions/index.d.ts.map +1 -1
  218. package/resources/functions/index.js.map +1 -1
  219. package/resources/functions/index.mjs.map +1 -1
  220. package/resources/headcount-positions.d.mts +3 -0
  221. package/resources/headcount-positions.d.mts.map +1 -1
  222. package/resources/headcount-positions.d.ts +3 -0
  223. package/resources/headcount-positions.d.ts.map +1 -1
  224. package/resources/headcount-positions.js +3 -0
  225. package/resources/headcount-positions.js.map +1 -1
  226. package/resources/headcount-positions.mjs +3 -0
  227. package/resources/headcount-positions.mjs.map +1 -1
  228. package/resources/headcount-priorities.d.mts +3 -0
  229. package/resources/headcount-priorities.d.mts.map +1 -1
  230. package/resources/headcount-priorities.d.ts +3 -0
  231. package/resources/headcount-priorities.d.ts.map +1 -1
  232. package/resources/headcount-priorities.js +3 -0
  233. package/resources/headcount-priorities.js.map +1 -1
  234. package/resources/headcount-priorities.mjs +3 -0
  235. package/resources/headcount-priorities.mjs.map +1 -1
  236. package/resources/index.d.mts +20 -5
  237. package/resources/index.d.mts.map +1 -1
  238. package/resources/index.d.ts +20 -5
  239. package/resources/index.d.ts.map +1 -1
  240. package/resources/index.js +32 -1
  241. package/resources/index.js.map +1 -1
  242. package/resources/index.mjs +15 -0
  243. package/resources/index.mjs.map +1 -1
  244. package/resources/job-assignments.d.mts +73 -6
  245. package/resources/job-assignments.d.mts.map +1 -1
  246. package/resources/job-assignments.d.ts +73 -6
  247. package/resources/job-assignments.d.ts.map +1 -1
  248. package/resources/job-assignments.js +25 -0
  249. package/resources/job-assignments.js.map +1 -1
  250. package/resources/job-assignments.mjs +25 -0
  251. package/resources/job-assignments.mjs.map +1 -1
  252. package/resources/job-codes.d.mts +50 -1
  253. package/resources/job-codes.d.mts.map +1 -1
  254. package/resources/job-codes.d.ts +50 -1
  255. package/resources/job-codes.d.ts.map +1 -1
  256. package/resources/job-codes.js +3 -0
  257. package/resources/job-codes.js.map +1 -1
  258. package/resources/job-codes.mjs +3 -0
  259. package/resources/job-codes.mjs.map +1 -1
  260. package/resources/job-dimensions.d.mts +23 -0
  261. package/resources/job-dimensions.d.mts.map +1 -1
  262. package/resources/job-dimensions.d.ts +23 -0
  263. package/resources/job-dimensions.d.ts.map +1 -1
  264. package/resources/job-dimensions.js +3 -0
  265. package/resources/job-dimensions.js.map +1 -1
  266. package/resources/job-dimensions.mjs +3 -0
  267. package/resources/job-dimensions.mjs.map +1 -1
  268. package/resources/job-functions.d.mts +3 -0
  269. package/resources/job-functions.d.mts.map +1 -1
  270. package/resources/job-functions.d.ts +3 -0
  271. package/resources/job-functions.d.ts.map +1 -1
  272. package/resources/job-functions.js +3 -0
  273. package/resources/job-functions.js.map +1 -1
  274. package/resources/job-functions.mjs +3 -0
  275. package/resources/job-functions.mjs.map +1 -1
  276. package/resources/job-pay-rate-exceptions.d.mts +3 -0
  277. package/resources/job-pay-rate-exceptions.d.mts.map +1 -1
  278. package/resources/job-pay-rate-exceptions.d.ts +3 -0
  279. package/resources/job-pay-rate-exceptions.d.ts.map +1 -1
  280. package/resources/job-pay-rate-exceptions.js +3 -0
  281. package/resources/job-pay-rate-exceptions.js.map +1 -1
  282. package/resources/job-pay-rate-exceptions.mjs +3 -0
  283. package/resources/job-pay-rate-exceptions.mjs.map +1 -1
  284. package/resources/job-requisitions-write.d.mts +260 -0
  285. package/resources/job-requisitions-write.d.mts.map +1 -0
  286. package/resources/job-requisitions-write.d.ts +260 -0
  287. package/resources/job-requisitions-write.d.ts.map +1 -0
  288. package/resources/job-requisitions-write.js +18 -0
  289. package/resources/job-requisitions-write.js.map +1 -0
  290. package/resources/job-requisitions-write.mjs +14 -0
  291. package/resources/job-requisitions-write.mjs.map +1 -0
  292. package/resources/job-requisitions.d.mts +3 -0
  293. package/resources/job-requisitions.d.mts.map +1 -1
  294. package/resources/job-requisitions.d.ts +3 -0
  295. package/resources/job-requisitions.d.ts.map +1 -1
  296. package/resources/job-requisitions.js +3 -0
  297. package/resources/job-requisitions.js.map +1 -1
  298. package/resources/job-requisitions.mjs +3 -0
  299. package/resources/job-requisitions.mjs.map +1 -1
  300. package/resources/kiosk-badges.d.mts +3 -0
  301. package/resources/kiosk-badges.d.mts.map +1 -1
  302. package/resources/kiosk-badges.d.ts +3 -0
  303. package/resources/kiosk-badges.d.ts.map +1 -1
  304. package/resources/kiosk-badges.js +3 -0
  305. package/resources/kiosk-badges.js.map +1 -1
  306. package/resources/kiosk-badges.mjs +3 -0
  307. package/resources/kiosk-badges.mjs.map +1 -1
  308. package/resources/leave-accruals.d.mts +115 -6
  309. package/resources/leave-accruals.d.mts.map +1 -1
  310. package/resources/leave-accruals.d.ts +115 -6
  311. package/resources/leave-accruals.d.ts.map +1 -1
  312. package/resources/leave-accruals.js +22 -3
  313. package/resources/leave-accruals.js.map +1 -1
  314. package/resources/leave-accruals.mjs +22 -3
  315. package/resources/leave-accruals.mjs.map +1 -1
  316. package/resources/leave-balances.d.mts +3 -0
  317. package/resources/leave-balances.d.mts.map +1 -1
  318. package/resources/leave-balances.d.ts +3 -0
  319. package/resources/leave-balances.d.ts.map +1 -1
  320. package/resources/leave-balances.js +3 -0
  321. package/resources/leave-balances.js.map +1 -1
  322. package/resources/leave-balances.mjs +3 -0
  323. package/resources/leave-balances.mjs.map +1 -1
  324. package/resources/leave-requests.d.mts +3 -0
  325. package/resources/leave-requests.d.mts.map +1 -1
  326. package/resources/leave-requests.d.ts +3 -0
  327. package/resources/leave-requests.d.ts.map +1 -1
  328. package/resources/leave-requests.js +3 -0
  329. package/resources/leave-requests.js.map +1 -1
  330. package/resources/leave-requests.mjs +3 -0
  331. package/resources/leave-requests.mjs.map +1 -1
  332. package/resources/leave-types.d.mts +3 -0
  333. package/resources/leave-types.d.mts.map +1 -1
  334. package/resources/leave-types.d.ts +3 -0
  335. package/resources/leave-types.d.ts.map +1 -1
  336. package/resources/leave-types.js +3 -0
  337. package/resources/leave-types.js.map +1 -1
  338. package/resources/leave-types.mjs +3 -0
  339. package/resources/leave-types.mjs.map +1 -1
  340. package/resources/legal-entities.d.mts +3 -0
  341. package/resources/legal-entities.d.mts.map +1 -1
  342. package/resources/legal-entities.d.ts +3 -0
  343. package/resources/legal-entities.d.ts.map +1 -1
  344. package/resources/legal-entities.js +3 -0
  345. package/resources/legal-entities.js.map +1 -1
  346. package/resources/legal-entities.mjs +3 -0
  347. package/resources/legal-entities.mjs.map +1 -1
  348. package/resources/levels.d.mts +3 -0
  349. package/resources/levels.d.mts.map +1 -1
  350. package/resources/levels.d.ts +3 -0
  351. package/resources/levels.d.ts.map +1 -1
  352. package/resources/levels.js +3 -0
  353. package/resources/levels.js.map +1 -1
  354. package/resources/levels.mjs +3 -0
  355. package/resources/levels.mjs.map +1 -1
  356. package/resources/location-factors.d.mts +3 -0
  357. package/resources/location-factors.d.mts.map +1 -1
  358. package/resources/location-factors.d.ts +3 -0
  359. package/resources/location-factors.d.ts.map +1 -1
  360. package/resources/location-factors.js +3 -0
  361. package/resources/location-factors.js.map +1 -1
  362. package/resources/location-factors.mjs +3 -0
  363. package/resources/location-factors.mjs.map +1 -1
  364. package/resources/metadata/components.d.mts +28 -0
  365. package/resources/metadata/components.d.mts.map +1 -0
  366. package/resources/metadata/components.d.ts +28 -0
  367. package/resources/metadata/components.d.ts.map +1 -0
  368. package/resources/metadata/components.js +21 -0
  369. package/resources/metadata/components.js.map +1 -0
  370. package/resources/metadata/components.mjs +17 -0
  371. package/resources/metadata/components.mjs.map +1 -0
  372. package/resources/metadata/index.d.mts +5 -0
  373. package/resources/metadata/index.d.mts.map +1 -0
  374. package/resources/metadata/index.d.ts +5 -0
  375. package/resources/metadata/index.d.ts.map +1 -0
  376. package/resources/metadata/index.js +13 -0
  377. package/resources/metadata/index.js.map +1 -0
  378. package/resources/metadata/index.mjs +6 -0
  379. package/resources/metadata/index.mjs.map +1 -0
  380. package/resources/metadata/metadata.d.mts +40 -0
  381. package/resources/metadata/metadata.d.mts.map +1 -0
  382. package/resources/metadata/metadata.d.ts +40 -0
  383. package/resources/metadata/metadata.d.ts.map +1 -0
  384. package/resources/metadata/metadata.js +37 -0
  385. package/resources/metadata/metadata.js.map +1 -0
  386. package/resources/metadata/metadata.mjs +32 -0
  387. package/resources/metadata/metadata.mjs.map +1 -0
  388. package/resources/metadata/summary.d.mts +28 -0
  389. package/resources/metadata/summary.d.mts.map +1 -0
  390. package/resources/metadata/summary.d.ts +28 -0
  391. package/resources/metadata/summary.d.ts.map +1 -0
  392. package/resources/metadata/summary.js +21 -0
  393. package/resources/metadata/summary.js.map +1 -0
  394. package/resources/metadata/summary.mjs +17 -0
  395. package/resources/metadata/summary.mjs.map +1 -0
  396. package/resources/metadata/types.d.mts +28 -0
  397. package/resources/metadata/types.d.mts.map +1 -0
  398. package/resources/metadata/types.d.ts +28 -0
  399. package/resources/metadata/types.d.ts.map +1 -0
  400. package/resources/metadata/types.js +21 -0
  401. package/resources/metadata/types.js.map +1 -0
  402. package/resources/metadata/types.mjs +17 -0
  403. package/resources/metadata/types.mjs.map +1 -0
  404. package/resources/metadata.d.mts +2 -0
  405. package/resources/metadata.d.mts.map +1 -0
  406. package/resources/metadata.d.ts +2 -0
  407. package/resources/metadata.d.ts.map +1 -0
  408. package/resources/metadata.js +6 -0
  409. package/resources/metadata.js.map +1 -0
  410. package/resources/metadata.mjs +3 -0
  411. package/resources/metadata.mjs.map +1 -0
  412. package/resources/object-categories.d.mts +3 -0
  413. package/resources/object-categories.d.mts.map +1 -1
  414. package/resources/object-categories.d.ts +3 -0
  415. package/resources/object-categories.d.ts.map +1 -1
  416. package/resources/object-categories.js +3 -0
  417. package/resources/object-categories.js.map +1 -1
  418. package/resources/object-categories.mjs +3 -0
  419. package/resources/object-categories.mjs.map +1 -1
  420. package/resources/platform-capabilities.d.mts +25 -0
  421. package/resources/platform-capabilities.d.mts.map +1 -0
  422. package/resources/platform-capabilities.d.ts +25 -0
  423. package/resources/platform-capabilities.d.ts.map +1 -0
  424. package/resources/platform-capabilities.js +21 -0
  425. package/resources/platform-capabilities.js.map +1 -0
  426. package/resources/platform-capabilities.mjs +17 -0
  427. package/resources/platform-capabilities.mjs.map +1 -0
  428. package/resources/report-runs.d.mts +158 -0
  429. package/resources/report-runs.d.mts.map +1 -0
  430. package/resources/report-runs.d.ts +158 -0
  431. package/resources/report-runs.d.ts.map +1 -0
  432. package/resources/report-runs.js +25 -0
  433. package/resources/report-runs.js.map +1 -0
  434. package/resources/report-runs.mjs +21 -0
  435. package/resources/report-runs.mjs.map +1 -0
  436. package/resources/run-query.d.mts +39 -0
  437. package/resources/run-query.d.mts.map +1 -0
  438. package/resources/run-query.d.ts +39 -0
  439. package/resources/run-query.d.ts.map +1 -0
  440. package/resources/run-query.js +21 -0
  441. package/resources/run-query.js.map +1 -0
  442. package/resources/run-query.mjs +17 -0
  443. package/resources/run-query.mjs.map +1 -0
  444. package/resources/schedules.d.mts +3 -0
  445. package/resources/schedules.d.mts.map +1 -1
  446. package/resources/schedules.d.ts +3 -0
  447. package/resources/schedules.d.ts.map +1 -1
  448. package/resources/schedules.js +3 -0
  449. package/resources/schedules.js.map +1 -1
  450. package/resources/schedules.mjs +3 -0
  451. package/resources/schedules.mjs.map +1 -1
  452. package/resources/send-email.d.mts +33 -0
  453. package/resources/send-email.d.mts.map +1 -0
  454. package/resources/send-email.d.ts +33 -0
  455. package/resources/send-email.d.ts.map +1 -0
  456. package/resources/send-email.js +18 -0
  457. package/resources/send-email.js.map +1 -0
  458. package/resources/send-email.mjs +14 -0
  459. package/resources/send-email.mjs.map +1 -0
  460. package/resources/send-slack.d.mts +30 -0
  461. package/resources/send-slack.d.mts.map +1 -0
  462. package/resources/send-slack.d.ts +30 -0
  463. package/resources/send-slack.d.ts.map +1 -0
  464. package/resources/send-slack.js +18 -0
  465. package/resources/send-slack.js.map +1 -0
  466. package/resources/send-slack.mjs +14 -0
  467. package/resources/send-slack.mjs.map +1 -0
  468. package/resources/shared.d.mts +35 -0
  469. package/resources/shared.d.mts.map +1 -1
  470. package/resources/shared.d.ts +35 -0
  471. package/resources/shared.d.ts.map +1 -1
  472. package/resources/shift-assignments.d.mts +299 -0
  473. package/resources/shift-assignments.d.mts.map +1 -0
  474. package/resources/shift-assignments.d.ts +299 -0
  475. package/resources/shift-assignments.d.ts.map +1 -0
  476. package/resources/shift-assignments.js +28 -0
  477. package/resources/shift-assignments.js.map +1 -0
  478. package/resources/shift-assignments.mjs +24 -0
  479. package/resources/shift-assignments.mjs.map +1 -0
  480. package/resources/shift-inputs.d.mts +3 -0
  481. package/resources/shift-inputs.d.mts.map +1 -1
  482. package/resources/shift-inputs.d.ts +3 -0
  483. package/resources/shift-inputs.d.ts.map +1 -1
  484. package/resources/shift-inputs.js +3 -0
  485. package/resources/shift-inputs.js.map +1 -1
  486. package/resources/shift-inputs.mjs +3 -0
  487. package/resources/shift-inputs.mjs.map +1 -1
  488. package/resources/shiftassignments.d.mts +59 -4
  489. package/resources/shiftassignments.d.mts.map +1 -1
  490. package/resources/shiftassignments.d.ts +59 -4
  491. package/resources/shiftassignments.d.ts.map +1 -1
  492. package/resources/shiftassignments.js +3 -0
  493. package/resources/shiftassignments.js.map +1 -1
  494. package/resources/shiftassignments.mjs +3 -0
  495. package/resources/shiftassignments.mjs.map +1 -1
  496. package/resources/sso-me.d.mts +3 -0
  497. package/resources/sso-me.d.mts.map +1 -1
  498. package/resources/sso-me.d.ts +3 -0
  499. package/resources/sso-me.d.ts.map +1 -1
  500. package/resources/sso-me.js +3 -0
  501. package/resources/sso-me.js.map +1 -1
  502. package/resources/sso-me.mjs +3 -0
  503. package/resources/sso-me.mjs.map +1 -1
  504. package/resources/supergroups/exclusion-members.d.mts +6 -3
  505. package/resources/supergroups/exclusion-members.d.mts.map +1 -1
  506. package/resources/supergroups/exclusion-members.d.ts +6 -3
  507. package/resources/supergroups/exclusion-members.d.ts.map +1 -1
  508. package/resources/supergroups/exclusion-members.js +3 -0
  509. package/resources/supergroups/exclusion-members.js.map +1 -1
  510. package/resources/supergroups/exclusion-members.mjs +3 -0
  511. package/resources/supergroups/exclusion-members.mjs.map +1 -1
  512. package/resources/supergroups/inclusion-members.d.mts +6 -3
  513. package/resources/supergroups/inclusion-members.d.mts.map +1 -1
  514. package/resources/supergroups/inclusion-members.d.ts +6 -3
  515. package/resources/supergroups/inclusion-members.d.ts.map +1 -1
  516. package/resources/supergroups/inclusion-members.js +3 -0
  517. package/resources/supergroups/inclusion-members.js.map +1 -1
  518. package/resources/supergroups/inclusion-members.mjs +3 -0
  519. package/resources/supergroups/inclusion-members.mjs.map +1 -1
  520. package/resources/supergroups/index.d.mts +1 -1
  521. package/resources/supergroups/index.d.mts.map +1 -1
  522. package/resources/supergroups/index.d.ts +1 -1
  523. package/resources/supergroups/index.d.ts.map +1 -1
  524. package/resources/supergroups/index.js.map +1 -1
  525. package/resources/supergroups/index.mjs.map +1 -1
  526. package/resources/supergroups/members.d.mts +9 -37
  527. package/resources/supergroups/members.d.mts.map +1 -1
  528. package/resources/supergroups/members.d.ts +9 -37
  529. package/resources/supergroups/members.d.ts.map +1 -1
  530. package/resources/supergroups/members.js +3 -0
  531. package/resources/supergroups/members.js.map +1 -1
  532. package/resources/supergroups/members.mjs +3 -0
  533. package/resources/supergroups/members.mjs.map +1 -1
  534. package/resources/supergroups/supergroups.d.mts +5 -2
  535. package/resources/supergroups/supergroups.d.mts.map +1 -1
  536. package/resources/supergroups/supergroups.d.ts +5 -2
  537. package/resources/supergroups/supergroups.d.ts.map +1 -1
  538. package/resources/supergroups/supergroups.js +3 -0
  539. package/resources/supergroups/supergroups.js.map +1 -1
  540. package/resources/supergroups/supergroups.mjs +3 -0
  541. package/resources/supergroups/supergroups.mjs.map +1 -1
  542. package/resources/teams.d.mts +3 -0
  543. package/resources/teams.d.mts.map +1 -1
  544. package/resources/teams.d.ts +3 -0
  545. package/resources/teams.d.ts.map +1 -1
  546. package/resources/teams.js +3 -0
  547. package/resources/teams.js.map +1 -1
  548. package/resources/teams.mjs +3 -0
  549. package/resources/teams.mjs.map +1 -1
  550. package/resources/time-cards.d.mts +3 -0
  551. package/resources/time-cards.d.mts.map +1 -1
  552. package/resources/time-cards.d.ts +3 -0
  553. package/resources/time-cards.d.ts.map +1 -1
  554. package/resources/time-cards.js +3 -0
  555. package/resources/time-cards.js.map +1 -1
  556. package/resources/time-cards.mjs +3 -0
  557. package/resources/time-cards.mjs.map +1 -1
  558. package/resources/time-entries.d.mts +5 -1
  559. package/resources/time-entries.d.mts.map +1 -1
  560. package/resources/time-entries.d.ts +5 -1
  561. package/resources/time-entries.d.ts.map +1 -1
  562. package/resources/time-entries.js +5 -1
  563. package/resources/time-entries.js.map +1 -1
  564. package/resources/time-entries.mjs +5 -1
  565. package/resources/time-entries.mjs.map +1 -1
  566. package/resources/titles.d.mts +129 -0
  567. package/resources/titles.d.mts.map +1 -0
  568. package/resources/titles.d.ts +129 -0
  569. package/resources/titles.d.ts.map +1 -0
  570. package/resources/titles.js +51 -0
  571. package/resources/titles.js.map +1 -0
  572. package/resources/titles.mjs +47 -0
  573. package/resources/titles.mjs.map +1 -0
  574. package/resources/tracks.d.mts +3 -0
  575. package/resources/tracks.d.mts.map +1 -1
  576. package/resources/tracks.d.ts +3 -0
  577. package/resources/tracks.d.ts.map +1 -1
  578. package/resources/tracks.js +3 -0
  579. package/resources/tracks.js.map +1 -1
  580. package/resources/tracks.mjs +3 -0
  581. package/resources/tracks.mjs.map +1 -1
  582. package/resources/unassigned-shifts.d.mts +337 -0
  583. package/resources/unassigned-shifts.d.mts.map +1 -0
  584. package/resources/unassigned-shifts.d.ts +337 -0
  585. package/resources/unassigned-shifts.d.ts.map +1 -0
  586. package/resources/unassigned-shifts.js +45 -0
  587. package/resources/unassigned-shifts.js.map +1 -0
  588. package/resources/unassigned-shifts.mjs +41 -0
  589. package/resources/unassigned-shifts.mjs.map +1 -0
  590. package/resources/unassignedshifts.d.mts +385 -1
  591. package/resources/unassignedshifts.d.mts.map +1 -1
  592. package/resources/unassignedshifts.d.ts +385 -1
  593. package/resources/unassignedshifts.d.ts.map +1 -1
  594. package/resources/unassignedshifts.js +9 -0
  595. package/resources/unassignedshifts.js.map +1 -1
  596. package/resources/unassignedshifts.mjs +9 -0
  597. package/resources/unassignedshifts.mjs.map +1 -1
  598. package/resources/users.d.mts +3 -0
  599. package/resources/users.d.mts.map +1 -1
  600. package/resources/users.d.ts +3 -0
  601. package/resources/users.d.ts.map +1 -1
  602. package/resources/users.js +3 -0
  603. package/resources/users.js.map +1 -1
  604. package/resources/users.mjs +3 -0
  605. package/resources/users.mjs.map +1 -1
  606. package/resources/work-locations.d.mts +102 -1
  607. package/resources/work-locations.d.mts.map +1 -1
  608. package/resources/work-locations.d.ts +102 -1
  609. package/resources/work-locations.d.ts.map +1 -1
  610. package/resources/work-locations.js +25 -0
  611. package/resources/work-locations.js.map +1 -1
  612. package/resources/work-locations.mjs +25 -0
  613. package/resources/work-locations.mjs.map +1 -1
  614. package/resources/workers.d.mts +11 -4
  615. package/resources/workers.d.mts.map +1 -1
  616. package/resources/workers.d.ts +11 -4
  617. package/resources/workers.d.ts.map +1 -1
  618. package/resources/workers.js +3 -0
  619. package/resources/workers.js.map +1 -1
  620. package/resources/workers.mjs +3 -0
  621. package/resources/workers.mjs.map +1 -1
  622. package/src/client.ts +466 -30
  623. package/src/functions.ts +14 -0
  624. package/src/internal/parse.ts +6 -0
  625. package/src/internal/utils/query.ts +23 -0
  626. package/src/internal/utils.ts +1 -0
  627. package/src/resources/business-partner-groups.ts +3 -0
  628. package/src/resources/business-partners.ts +3 -0
  629. package/src/resources/candidate-applications.ts +3 -0
  630. package/src/resources/candidates.ts +3 -0
  631. package/src/resources/companies.ts +3 -0
  632. package/src/resources/compensation-bands-details.ts +143 -0
  633. package/src/resources/compensations.ts +3 -0
  634. package/src/resources/create-app-notification.ts +46 -0
  635. package/src/resources/custom-apps.ts +342 -0
  636. package/src/resources/custom-fields.ts +3 -0
  637. package/src/resources/custom-objects/custom-objects.ts +3 -0
  638. package/src/resources/custom-objects/fields.ts +3 -0
  639. package/src/resources/custom-objects/records.ts +3 -0
  640. package/src/resources/custom-pages.ts +277 -0
  641. package/src/resources/custom-settings.ts +371 -0
  642. package/src/resources/departments.ts +53 -0
  643. package/src/resources/draft-hires.ts +35 -0
  644. package/src/resources/employment-types.ts +3 -0
  645. package/src/resources/entitlements.ts +3 -0
  646. package/src/resources/functions/deployments.ts +3 -0
  647. package/src/resources/functions/executions.ts +11 -104
  648. package/src/resources/functions/functions.ts +22 -8
  649. package/src/resources/functions/index.ts +2 -4
  650. package/src/resources/headcount-positions.ts +3 -0
  651. package/src/resources/headcount-priorities.ts +3 -0
  652. package/src/resources/index.ts +104 -2
  653. package/src/resources/job-assignments.ts +98 -6
  654. package/src/resources/job-codes.ts +59 -1
  655. package/src/resources/job-dimensions.ts +27 -0
  656. package/src/resources/job-functions.ts +3 -0
  657. package/src/resources/job-pay-rate-exceptions.ts +3 -0
  658. package/src/resources/job-requisitions-write.ts +330 -0
  659. package/src/resources/job-requisitions.ts +3 -0
  660. package/src/resources/kiosk-badges.ts +3 -0
  661. package/src/resources/leave-accruals.ts +236 -12
  662. package/src/resources/leave-balances.ts +3 -0
  663. package/src/resources/leave-requests.ts +3 -0
  664. package/src/resources/leave-types.ts +3 -0
  665. package/src/resources/legal-entities.ts +3 -0
  666. package/src/resources/levels.ts +3 -0
  667. package/src/resources/location-factors.ts +3 -0
  668. package/src/resources/metadata/components.ts +38 -0
  669. package/src/resources/metadata/index.ts +10 -0
  670. package/src/resources/metadata/metadata.ts +70 -0
  671. package/src/resources/metadata/summary.ts +38 -0
  672. package/src/resources/metadata/types.ts +38 -0
  673. package/src/resources/metadata.ts +3 -0
  674. package/src/resources/object-categories.ts +3 -0
  675. package/src/resources/platform-capabilities.ts +41 -0
  676. package/src/resources/report-runs.ts +196 -0
  677. package/src/resources/run-query.ts +51 -0
  678. package/src/resources/schedules.ts +3 -0
  679. package/src/resources/send-email.ts +48 -0
  680. package/src/resources/send-slack.ts +42 -0
  681. package/src/resources/shared.ts +44 -0
  682. package/src/resources/shift-assignments.ts +365 -0
  683. package/src/resources/shift-inputs.ts +3 -0
  684. package/src/resources/shiftassignments.ts +73 -5
  685. package/src/resources/sso-me.ts +3 -0
  686. package/src/resources/supergroups/exclusion-members.ts +7 -4
  687. package/src/resources/supergroups/inclusion-members.ts +7 -4
  688. package/src/resources/supergroups/index.ts +1 -1
  689. package/src/resources/supergroups/members.ts +10 -49
  690. package/src/resources/supergroups/supergroups.ts +5 -7
  691. package/src/resources/teams.ts +3 -0
  692. package/src/resources/time-cards.ts +3 -0
  693. package/src/resources/time-entries.ts +5 -1
  694. package/src/resources/titles.ts +184 -0
  695. package/src/resources/tracks.ts +3 -0
  696. package/src/resources/unassigned-shifts.ts +418 -0
  697. package/src/resources/unassignedshifts.ts +470 -0
  698. package/src/resources/users.ts +3 -0
  699. package/src/resources/work-locations.ts +132 -0
  700. package/src/resources/workers.ts +11 -3
  701. package/src/version.ts +1 -1
  702. package/version.d.mts +1 -1
  703. package/version.d.ts +1 -1
  704. package/version.js +1 -1
  705. package/version.mjs +1 -1
@@ -0,0 +1,270 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import * as BusinessPartnersAPI from "./business-partners.js";
3
+ import { APIPromise } from "../core/api-promise.js";
4
+ import { PageCursorURL, PagePromise } from "../core/pagination.js";
5
+ import { RequestOptions } from "../internal/request-options.js";
6
+ export declare class CustomSettings extends APIResource {
7
+ /**
8
+ * A List of Setting
9
+ *
10
+ * - Requires: `Functions API`
11
+ * - Sortable fields: `id`, `created_at`, `updated_at`
12
+ */
13
+ list(query?: CustomSettingListParams | null | undefined, options?: RequestOptions): PagePromise<CustomSettingListResponsesPageCursorURL, CustomSettingListResponse>;
14
+ /**
15
+ * Create a new Setting
16
+ */
17
+ create(body?: CustomSettingCreateParams | null | undefined, options?: RequestOptions): APIPromise<CustomSettingCreateResponse>;
18
+ /**
19
+ * Retrieve a specific Setting
20
+ */
21
+ retrieve(id: string, options?: RequestOptions): APIPromise<CustomSettingRetrieveResponse>;
22
+ /**
23
+ * Updated a specific Setting
24
+ */
25
+ update(id: string, body?: CustomSettingUpdateParams | null | undefined, options?: RequestOptions): APIPromise<CustomSettingUpdateResponse>;
26
+ /**
27
+ * Delete a Setting
28
+ */
29
+ delete(id: string, options?: RequestOptions): APIPromise<void>;
30
+ }
31
+ export type CustomSettingListResponsesPageCursorURL = PageCursorURL<CustomSettingListResponse>;
32
+ export interface CustomSettingListResponse {
33
+ /**
34
+ * Identifier field
35
+ */
36
+ id: string;
37
+ /**
38
+ * Record creation date
39
+ */
40
+ created_at: string;
41
+ /**
42
+ * Record update date
43
+ */
44
+ updated_at: string;
45
+ /**
46
+ * The unique api name of the setting
47
+ */
48
+ api_name?: string;
49
+ /**
50
+ * Boolean value of the setting, if it has boolean data type
51
+ */
52
+ boolean_value?: boolean;
53
+ /**
54
+ * Data type of the setting
55
+ */
56
+ data_type?: string;
57
+ /**
58
+ * The display name of setting
59
+ */
60
+ display_name?: string;
61
+ /**
62
+ * Number value of the setting, if it has number data type
63
+ */
64
+ number_value?: number;
65
+ /**
66
+ * Secret value of the setting, if it has secret data type
67
+ */
68
+ secret_value?: string;
69
+ /**
70
+ * String value of the setting, if it has string data type
71
+ */
72
+ string_value?: string;
73
+ }
74
+ export interface CustomSettingCreateResponse {
75
+ /**
76
+ * Identifier field
77
+ */
78
+ id: string;
79
+ /**
80
+ * Record creation date
81
+ */
82
+ created_at: string;
83
+ /**
84
+ * Record update date
85
+ */
86
+ updated_at: string;
87
+ /**
88
+ * The unique api name of the setting
89
+ */
90
+ api_name?: string;
91
+ /**
92
+ * Boolean value of the setting, if it has boolean data type
93
+ */
94
+ boolean_value?: boolean;
95
+ /**
96
+ * Data type of the setting
97
+ */
98
+ data_type?: string;
99
+ /**
100
+ * The display name of setting
101
+ */
102
+ display_name?: string;
103
+ /**
104
+ * Number value of the setting, if it has number data type
105
+ */
106
+ number_value?: number;
107
+ /**
108
+ * Secret value of the setting, if it has secret data type
109
+ */
110
+ secret_value?: string;
111
+ /**
112
+ * String value of the setting, if it has string data type
113
+ */
114
+ string_value?: string;
115
+ }
116
+ /**
117
+ * Meta information for the response.
118
+ */
119
+ export interface CustomSettingRetrieveResponse extends BusinessPartnersAPI.Meta {
120
+ /**
121
+ * Identifier field
122
+ */
123
+ id: string;
124
+ /**
125
+ * Record creation date
126
+ */
127
+ created_at: string;
128
+ /**
129
+ * Record update date
130
+ */
131
+ updated_at: string;
132
+ /**
133
+ * The unique api name of the setting
134
+ */
135
+ api_name?: string;
136
+ /**
137
+ * Boolean value of the setting, if it has boolean data type
138
+ */
139
+ boolean_value?: boolean;
140
+ /**
141
+ * Data type of the setting
142
+ */
143
+ data_type?: string;
144
+ /**
145
+ * The display name of setting
146
+ */
147
+ display_name?: string;
148
+ /**
149
+ * Number value of the setting, if it has number data type
150
+ */
151
+ number_value?: number;
152
+ /**
153
+ * Secret value of the setting, if it has secret data type
154
+ */
155
+ secret_value?: string;
156
+ /**
157
+ * String value of the setting, if it has string data type
158
+ */
159
+ string_value?: string;
160
+ }
161
+ export interface CustomSettingUpdateResponse {
162
+ /**
163
+ * Identifier field
164
+ */
165
+ id: string;
166
+ /**
167
+ * Record creation date
168
+ */
169
+ created_at: string;
170
+ /**
171
+ * Record update date
172
+ */
173
+ updated_at: string;
174
+ /**
175
+ * The unique api name of the setting
176
+ */
177
+ api_name?: string;
178
+ /**
179
+ * Boolean value of the setting, if it has boolean data type
180
+ */
181
+ boolean_value?: boolean;
182
+ /**
183
+ * Data type of the setting
184
+ */
185
+ data_type?: string;
186
+ /**
187
+ * The display name of setting
188
+ */
189
+ display_name?: string;
190
+ /**
191
+ * Number value of the setting, if it has number data type
192
+ */
193
+ number_value?: number;
194
+ /**
195
+ * Secret value of the setting, if it has secret data type
196
+ */
197
+ secret_value?: string;
198
+ /**
199
+ * String value of the setting, if it has string data type
200
+ */
201
+ string_value?: string;
202
+ }
203
+ export interface CustomSettingListParams {
204
+ cursor?: string;
205
+ order_by?: string;
206
+ }
207
+ export interface CustomSettingCreateParams {
208
+ /**
209
+ * The unique api name of the setting
210
+ */
211
+ api_name?: string;
212
+ /**
213
+ * Boolean value of the setting, if it has boolean data type
214
+ */
215
+ boolean_value?: boolean;
216
+ /**
217
+ * Data type of the setting
218
+ */
219
+ data_type?: string;
220
+ /**
221
+ * The display name of setting
222
+ */
223
+ display_name?: string;
224
+ /**
225
+ * Number value of the setting, if it has number data type
226
+ */
227
+ number_value?: number;
228
+ /**
229
+ * Secret value of the setting, if it has secret data type
230
+ */
231
+ secret_value?: string;
232
+ /**
233
+ * String value of the setting, if it has string data type
234
+ */
235
+ string_value?: string;
236
+ }
237
+ export interface CustomSettingUpdateParams {
238
+ /**
239
+ * The unique api name of the setting
240
+ */
241
+ api_name?: string;
242
+ /**
243
+ * Boolean value of the setting, if it has boolean data type
244
+ */
245
+ boolean_value?: boolean;
246
+ /**
247
+ * Data type of the setting
248
+ */
249
+ data_type?: string;
250
+ /**
251
+ * The display name of setting
252
+ */
253
+ display_name?: string;
254
+ /**
255
+ * Number value of the setting, if it has number data type
256
+ */
257
+ number_value?: number;
258
+ /**
259
+ * Secret value of the setting, if it has secret data type
260
+ */
261
+ secret_value?: string;
262
+ /**
263
+ * String value of the setting, if it has string data type
264
+ */
265
+ string_value?: string;
266
+ }
267
+ export declare namespace CustomSettings {
268
+ export { type CustomSettingListResponse as CustomSettingListResponse, type CustomSettingCreateResponse as CustomSettingCreateResponse, type CustomSettingRetrieveResponse as CustomSettingRetrieveResponse, type CustomSettingUpdateResponse as CustomSettingUpdateResponse, type CustomSettingListResponsesPageCursorURL as CustomSettingListResponsesPageCursorURL, type CustomSettingListParams as CustomSettingListParams, type CustomSettingCreateParams as CustomSettingCreateParams, type CustomSettingUpdateParams as CustomSettingUpdateParams, };
269
+ }
270
+ //# sourceMappingURL=custom-settings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-settings.d.ts","sourceRoot":"","sources":["../src/resources/custom-settings.ts"],"names":[],"mappings":"OAEO,EAAE,WAA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AAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,uCAAuC,IAAI,uCAAuC,EACvF,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CustomSettings = void 0;
5
+ const resource_1 = require("../core/resource.js");
6
+ const pagination_1 = require("../core/pagination.js");
7
+ const headers_1 = require("../internal/headers.js");
8
+ const path_1 = require("../internal/utils/path.js");
9
+ class CustomSettings extends resource_1.APIResource {
10
+ /**
11
+ * A List of Setting
12
+ *
13
+ * - Requires: `Functions API`
14
+ * - Sortable fields: `id`, `created_at`, `updated_at`
15
+ */
16
+ list(query = {}, options) {
17
+ return this._client.getAPIList('/custom-settings', (pagination_1.PageCursorURL), {
18
+ query,
19
+ ...options,
20
+ });
21
+ }
22
+ /**
23
+ * Create a new Setting
24
+ */
25
+ create(body = {}, options) {
26
+ return this._client.post('/custom-settings', { body, ...options });
27
+ }
28
+ /**
29
+ * Retrieve a specific Setting
30
+ */
31
+ retrieve(id, options) {
32
+ return this._client.get((0, path_1.path) `/custom-settings/${id}`, options);
33
+ }
34
+ /**
35
+ * Updated a specific Setting
36
+ */
37
+ update(id, body = {}, options) {
38
+ return this._client.patch((0, path_1.path) `/custom-settings/${id}`, { body, ...options });
39
+ }
40
+ /**
41
+ * Delete a Setting
42
+ */
43
+ delete(id, options) {
44
+ return this._client.delete((0, path_1.path) `/custom-settings/${id}`, {
45
+ ...options,
46
+ headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
47
+ });
48
+ }
49
+ }
50
+ exports.CustomSettings = CustomSettings;
51
+ //# sourceMappingURL=custom-settings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-settings.js","sourceRoot":"","sources":["../src/resources/custom-settings.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAgE;AAChE,oDAAmD;AAEnD,oDAA8C;AAE9C,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;;;;OAKG;IACH,IAAI,CACF,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAA,0BAAwC,CAAA,EAAE;YAC3F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,OAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,OAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,EAAE,EAAE;YACvD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAtDD,wCAsDC"}
@@ -0,0 +1,47 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../core/resource.mjs";
3
+ import { PageCursorURL } from "../core/pagination.mjs";
4
+ import { buildHeaders } from "../internal/headers.mjs";
5
+ import { path } from "../internal/utils/path.mjs";
6
+ export class CustomSettings extends APIResource {
7
+ /**
8
+ * A List of Setting
9
+ *
10
+ * - Requires: `Functions API`
11
+ * - Sortable fields: `id`, `created_at`, `updated_at`
12
+ */
13
+ list(query = {}, options) {
14
+ return this._client.getAPIList('/custom-settings', (PageCursorURL), {
15
+ query,
16
+ ...options,
17
+ });
18
+ }
19
+ /**
20
+ * Create a new Setting
21
+ */
22
+ create(body = {}, options) {
23
+ return this._client.post('/custom-settings', { body, ...options });
24
+ }
25
+ /**
26
+ * Retrieve a specific Setting
27
+ */
28
+ retrieve(id, options) {
29
+ return this._client.get(path `/custom-settings/${id}`, options);
30
+ }
31
+ /**
32
+ * Updated a specific Setting
33
+ */
34
+ update(id, body = {}, options) {
35
+ return this._client.patch(path `/custom-settings/${id}`, { body, ...options });
36
+ }
37
+ /**
38
+ * Delete a Setting
39
+ */
40
+ delete(id, options) {
41
+ return this._client.delete(path `/custom-settings/${id}`, {
42
+ ...options,
43
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
44
+ });
45
+ }
46
+ }
47
+ //# sourceMappingURL=custom-settings.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-settings.mjs","sourceRoot":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,CAAC;CACF"}
@@ -3,6 +3,9 @@ import * as BusinessPartnersAPI from "./business-partners.mjs";
3
3
  import { APIPromise } from "../core/api-promise.mjs";
4
4
  import { PageCursorURL, PagePromise } from "../core/pagination.mjs";
5
5
  import { RequestOptions } from "../internal/request-options.mjs";
6
+ /**
7
+ * Departments used by the company
8
+ */
6
9
  export declare class Departments extends APIResource {
7
10
  /**
8
11
  * A List of departments
@@ -12,10 +15,18 @@ export declare class Departments extends APIResource {
12
15
  * - Sortable fields: `id`, `created_at`, `updated_at`
13
16
  */
14
17
  list(query?: DepartmentListParams | null | undefined, options?: RequestOptions): PagePromise<DepartmentsPageCursorURL, Department>;
18
+ /**
19
+ * Create a new department
20
+ */
21
+ create(body: DepartmentCreateParams, options?: RequestOptions): APIPromise<Department>;
15
22
  /**
16
23
  * Retrieve a specific department
17
24
  */
18
25
  retrieve(id: string, query?: DepartmentRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<DepartmentRetrieveResponse>;
26
+ /**
27
+ * Updated a specific department
28
+ */
29
+ update(id: string, body: DepartmentUpdateParams, options?: RequestOptions): APIPromise<Department>;
19
30
  }
20
31
  export type DepartmentsPageCursorURL = PageCursorURL<Department>;
21
32
  export interface Department {
@@ -72,10 +83,38 @@ export interface DepartmentListParams {
72
83
  expand?: string;
73
84
  order_by?: string;
74
85
  }
86
+ export interface DepartmentCreateParams {
87
+ /**
88
+ * The name of the department.
89
+ */
90
+ name: string;
91
+ /**
92
+ * The parent department.
93
+ */
94
+ parent_id?: string;
95
+ /**
96
+ * Reference code of the department.
97
+ */
98
+ reference_code?: string;
99
+ }
75
100
  export interface DepartmentRetrieveParams {
76
101
  expand?: string;
77
102
  }
103
+ export interface DepartmentUpdateParams {
104
+ /**
105
+ * The name of the department.
106
+ */
107
+ name: string;
108
+ /**
109
+ * The parent department.
110
+ */
111
+ parent_id?: string;
112
+ /**
113
+ * Reference code of the department.
114
+ */
115
+ reference_code?: string;
116
+ }
78
117
  export declare namespace Departments {
79
- export { type Department as Department, type DepartmentRetrieveResponse as DepartmentRetrieveResponse, type DepartmentsPageCursorURL as DepartmentsPageCursorURL, type DepartmentListParams as DepartmentListParams, type DepartmentRetrieveParams as DepartmentRetrieveParams, };
118
+ export { type Department as Department, type DepartmentRetrieveResponse as DepartmentRetrieveResponse, type DepartmentsPageCursorURL as DepartmentsPageCursorURL, type DepartmentListParams as DepartmentListParams, type DepartmentCreateParams as DepartmentCreateParams, type DepartmentRetrieveParams as DepartmentRetrieveParams, type DepartmentUpdateParams as DepartmentUpdateParams, };
80
119
  }
81
120
  //# sourceMappingURL=departments.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"departments.d.mts","sourceRoot":"","sources":["../src/resources/departments.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,EAAE,UAAU,EAAE;OACd,EAAE,aAAa,EAAE,WAAW,EAAE;OAC9B,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;OAMG;IACH,IAAI,CACF,KAAK,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,wBAAwB,EAAE,UAAU,CAAC;IAIpD;;OAEG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,wBAAwB,GAAG,IAAI,GAAG,SAAc,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0BAA0B,CAAC;CAG1C;AAED,MAAM,MAAM,wBAAwB,GAAG,aAAa,CAAC,UAAU,CAAC,CAAC;AAEjE,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;IACH,oBAAoB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AAM,CAAC;IAEb;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,wBAAwB;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -3,6 +3,9 @@ import * as BusinessPartnersAPI from "./business-partners.js";
3
3
  import { APIPromise } from "../core/api-promise.js";
4
4
  import { PageCursorURL, PagePromise } from "../core/pagination.js";
5
5
  import { RequestOptions } from "../internal/request-options.js";
6
+ /**
7
+ * Departments used by the company
8
+ */
6
9
  export declare class Departments extends APIResource {
7
10
  /**
8
11
  * A List of departments
@@ -12,10 +15,18 @@ export declare class Departments extends APIResource {
12
15
  * - Sortable fields: `id`, `created_at`, `updated_at`
13
16
  */
14
17
  list(query?: DepartmentListParams | null | undefined, options?: RequestOptions): PagePromise<DepartmentsPageCursorURL, Department>;
18
+ /**
19
+ * Create a new department
20
+ */
21
+ create(body: DepartmentCreateParams, options?: RequestOptions): APIPromise<Department>;
15
22
  /**
16
23
  * Retrieve a specific department
17
24
  */
18
25
  retrieve(id: string, query?: DepartmentRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<DepartmentRetrieveResponse>;
26
+ /**
27
+ * Updated a specific department
28
+ */
29
+ update(id: string, body: DepartmentUpdateParams, options?: RequestOptions): APIPromise<Department>;
19
30
  }
20
31
  export type DepartmentsPageCursorURL = PageCursorURL<Department>;
21
32
  export interface Department {
@@ -72,10 +83,38 @@ export interface DepartmentListParams {
72
83
  expand?: string;
73
84
  order_by?: string;
74
85
  }
86
+ export interface DepartmentCreateParams {
87
+ /**
88
+ * The name of the department.
89
+ */
90
+ name: string;
91
+ /**
92
+ * The parent department.
93
+ */
94
+ parent_id?: string;
95
+ /**
96
+ * Reference code of the department.
97
+ */
98
+ reference_code?: string;
99
+ }
75
100
  export interface DepartmentRetrieveParams {
76
101
  expand?: string;
77
102
  }
103
+ export interface DepartmentUpdateParams {
104
+ /**
105
+ * The name of the department.
106
+ */
107
+ name: string;
108
+ /**
109
+ * The parent department.
110
+ */
111
+ parent_id?: string;
112
+ /**
113
+ * Reference code of the department.
114
+ */
115
+ reference_code?: string;
116
+ }
78
117
  export declare namespace Departments {
79
- export { type Department as Department, type DepartmentRetrieveResponse as DepartmentRetrieveResponse, type DepartmentsPageCursorURL as DepartmentsPageCursorURL, type DepartmentListParams as DepartmentListParams, type DepartmentRetrieveParams as DepartmentRetrieveParams, };
118
+ export { type Department as Department, type DepartmentRetrieveResponse as DepartmentRetrieveResponse, type DepartmentsPageCursorURL as DepartmentsPageCursorURL, type DepartmentListParams as DepartmentListParams, type DepartmentCreateParams as DepartmentCreateParams, type DepartmentRetrieveParams as DepartmentRetrieveParams, type DepartmentUpdateParams as DepartmentUpdateParams, };
80
119
  }
81
120
  //# sourceMappingURL=departments.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"departments.d.ts","sourceRoot":"","sources":["../src/resources/departments.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,EAAE,UAAU,EAAE;OACd,EAAE,aAAa,EAAE,WAAW,EAAE;OAC9B,EAAE,cAAc,EAAE;A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AAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -5,6 +5,9 @@ exports.Departments = void 0;
5
5
  const resource_1 = require("../core/resource.js");
6
6
  const pagination_1 = require("../core/pagination.js");
7
7
  const path_1 = require("../internal/utils/path.js");
8
+ /**
9
+ * Departments used by the company
10
+ */
8
11
  class Departments extends resource_1.APIResource {
9
12
  /**
10
13
  * A List of departments
@@ -16,12 +19,24 @@ class Departments extends resource_1.APIResource {
16
19
  list(query = {}, options) {
17
20
  return this._client.getAPIList('/departments', (pagination_1.PageCursorURL), { query, ...options });
18
21
  }
22
+ /**
23
+ * Create a new department
24
+ */
25
+ create(body, options) {
26
+ return this._client.post('/departments', { body, ...options });
27
+ }
19
28
  /**
20
29
  * Retrieve a specific department
21
30
  */
22
31
  retrieve(id, query = {}, options) {
23
32
  return this._client.get((0, path_1.path) `/departments/${id}`, { query, ...options });
24
33
  }
34
+ /**
35
+ * Updated a specific department
36
+ */
37
+ update(id, body, options) {
38
+ return this._client.patch((0, path_1.path) `/departments/${id}`, { body, ...options });
39
+ }
25
40
  }
26
41
  exports.Departments = Departments;
27
42
  //# sourceMappingURL=departments.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"departments.js","sourceRoot":"","sources":["../src/resources/departments.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAgE;AAEhE,oDAA8C;AAE9C,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;;;OAMG;IACH,IAAI,CACF,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,cAAc,EAAE,CAAA,0BAAyB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,QAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gBAAgB,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;CACF;AAzBD,kCAyBC"}
1
+ {"version":3,"file":"departments.js","sourceRoot":"","sources":["../src/resources/departments.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAgE;AAEhE,oDAA8C;AAE9C;;GAEG;AACH,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;;;OAMG;IACH,IAAI,CACF,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,cAAc,EAAE,CAAA,0BAAyB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAA4B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,QAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gBAAgB,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,IAA4B,EAAE,OAAwB;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,gBAAgB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF;AAvCD,kCAuCC"}
@@ -2,6 +2,9 @@
2
2
  import { APIResource } from "../core/resource.mjs";
3
3
  import { PageCursorURL } from "../core/pagination.mjs";
4
4
  import { path } from "../internal/utils/path.mjs";
5
+ /**
6
+ * Departments used by the company
7
+ */
5
8
  export class Departments extends APIResource {
6
9
  /**
7
10
  * A List of departments
@@ -13,11 +16,23 @@ export class Departments extends APIResource {
13
16
  list(query = {}, options) {
14
17
  return this._client.getAPIList('/departments', (PageCursorURL), { query, ...options });
15
18
  }
19
+ /**
20
+ * Create a new department
21
+ */
22
+ create(body, options) {
23
+ return this._client.post('/departments', { body, ...options });
24
+ }
16
25
  /**
17
26
  * Retrieve a specific department
18
27
  */
19
28
  retrieve(id, query = {}, options) {
20
29
  return this._client.get(path `/departments/${id}`, { query, ...options });
21
30
  }
31
+ /**
32
+ * Updated a specific department
33
+ */
34
+ update(id, body, options) {
35
+ return this._client.patch(path `/departments/${id}`, { body, ...options });
36
+ }
22
37
  }
23
38
  //# sourceMappingURL=departments.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"departments.mjs","sourceRoot":"","sources":["../src/resources/departments.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,aAAa,EAAe;OAE9B,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;OAMG;IACH,IAAI,CACF,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,cAAc,EAAE,CAAA,aAAyB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,QAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,gBAAgB,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;CACF"}
1
+ {"version":3,"file":"departments.mjs","sourceRoot":"","sources":["../src/resources/depart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