@rippling/rippling-sdk 0.2.0-alpha.20

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 (818) hide show
  1. package/LICENSE +201 -0
  2. package/api-promise.d.mts +2 -0
  3. package/api-promise.d.mts.map +1 -0
  4. package/api-promise.d.ts +2 -0
  5. package/api-promise.d.ts.map +1 -0
  6. package/api-promise.js +6 -0
  7. package/api-promise.js.map +1 -0
  8. package/api-promise.mjs +2 -0
  9. package/api-promise.mjs.map +1 -0
  10. package/client.d.mts +308 -0
  11. package/client.d.mts.map +1 -0
  12. package/client.d.ts +308 -0
  13. package/client.d.ts.map +1 -0
  14. package/client.js +592 -0
  15. package/client.js.map +1 -0
  16. package/client.mjs +588 -0
  17. package/client.mjs.map +1 -0
  18. package/core/api-promise.d.mts +46 -0
  19. package/core/api-promise.d.mts.map +1 -0
  20. package/core/api-promise.d.ts +46 -0
  21. package/core/api-promise.d.ts.map +1 -0
  22. package/core/api-promise.js +74 -0
  23. package/core/api-promise.js.map +1 -0
  24. package/core/api-promise.mjs +70 -0
  25. package/core/api-promise.mjs.map +1 -0
  26. package/core/error.d.mts +46 -0
  27. package/core/error.d.mts.map +1 -0
  28. package/core/error.d.ts +46 -0
  29. package/core/error.d.ts.map +1 -0
  30. package/core/error.js +113 -0
  31. package/core/error.js.map +1 -0
  32. package/core/error.mjs +97 -0
  33. package/core/error.mjs.map +1 -0
  34. package/core/pagination.d.mts +50 -0
  35. package/core/pagination.d.mts.map +1 -0
  36. package/core/pagination.d.ts +50 -0
  37. package/core/pagination.d.ts.map +1 -0
  38. package/core/pagination.js +104 -0
  39. package/core/pagination.js.map +1 -0
  40. package/core/pagination.mjs +98 -0
  41. package/core/pagination.mjs.map +1 -0
  42. package/core/resource.d.mts +6 -0
  43. package/core/resource.d.mts.map +1 -0
  44. package/core/resource.d.ts +6 -0
  45. package/core/resource.d.ts.map +1 -0
  46. package/core/resource.js +11 -0
  47. package/core/resource.js.map +1 -0
  48. package/core/resource.mjs +7 -0
  49. package/core/resource.mjs.map +1 -0
  50. package/core/uploads.d.mts +3 -0
  51. package/core/uploads.d.mts.map +1 -0
  52. package/core/uploads.d.ts +3 -0
  53. package/core/uploads.d.ts.map +1 -0
  54. package/core/uploads.js +6 -0
  55. package/core/uploads.js.map +1 -0
  56. package/core/uploads.mjs +2 -0
  57. package/core/uploads.mjs.map +1 -0
  58. package/error.d.mts +2 -0
  59. package/error.d.mts.map +1 -0
  60. package/error.d.ts +2 -0
  61. package/error.d.ts.map +1 -0
  62. package/error.js +6 -0
  63. package/error.js.map +1 -0
  64. package/error.mjs +2 -0
  65. package/error.mjs.map +1 -0
  66. package/functions.d.mts +68 -0
  67. package/functions.d.mts.map +1 -0
  68. package/functions.d.ts +68 -0
  69. package/functions.d.ts.map +1 -0
  70. package/functions.js +48 -0
  71. package/functions.js.map +1 -0
  72. package/functions.mjs +40 -0
  73. package/functions.mjs.map +1 -0
  74. package/index.d.mts +8 -0
  75. package/index.d.mts.map +1 -0
  76. package/index.d.ts +8 -0
  77. package/index.d.ts.map +1 -0
  78. package/index.js +34 -0
  79. package/index.js.map +1 -0
  80. package/index.mjs +9 -0
  81. package/index.mjs.map +1 -0
  82. package/internal/builtin-types.d.mts +73 -0
  83. package/internal/builtin-types.d.mts.map +1 -0
  84. package/internal/builtin-types.d.ts +73 -0
  85. package/internal/builtin-types.d.ts.map +1 -0
  86. package/internal/builtin-types.js +4 -0
  87. package/internal/builtin-types.js.map +1 -0
  88. package/internal/builtin-types.mjs +3 -0
  89. package/internal/builtin-types.mjs.map +1 -0
  90. package/internal/detect-platform.d.mts +15 -0
  91. package/internal/detect-platform.d.mts.map +1 -0
  92. package/internal/detect-platform.d.ts +15 -0
  93. package/internal/detect-platform.d.ts.map +1 -0
  94. package/internal/detect-platform.js +162 -0
  95. package/internal/detect-platform.js.map +1 -0
  96. package/internal/detect-platform.mjs +157 -0
  97. package/internal/detect-platform.mjs.map +1 -0
  98. package/internal/errors.d.mts +3 -0
  99. package/internal/errors.d.mts.map +1 -0
  100. package/internal/errors.d.ts +3 -0
  101. package/internal/errors.d.ts.map +1 -0
  102. package/internal/errors.js +41 -0
  103. package/internal/errors.js.map +1 -0
  104. package/internal/errors.mjs +36 -0
  105. package/internal/errors.mjs.map +1 -0
  106. package/internal/headers.d.mts +20 -0
  107. package/internal/headers.d.mts.map +1 -0
  108. package/internal/headers.d.ts +20 -0
  109. package/internal/headers.d.ts.map +1 -0
  110. package/internal/headers.js +79 -0
  111. package/internal/headers.js.map +1 -0
  112. package/internal/headers.mjs +74 -0
  113. package/internal/headers.mjs.map +1 -0
  114. package/internal/parse.d.mts +12 -0
  115. package/internal/parse.d.mts.map +1 -0
  116. package/internal/parse.d.ts +12 -0
  117. package/internal/parse.d.ts.map +1 -0
  118. package/internal/parse.js +35 -0
  119. package/internal/parse.js.map +1 -0
  120. package/internal/parse.mjs +32 -0
  121. package/internal/parse.mjs.map +1 -0
  122. package/internal/request-options.d.mts +75 -0
  123. package/internal/request-options.d.mts.map +1 -0
  124. package/internal/request-options.d.ts +75 -0
  125. package/internal/request-options.d.ts.map +1 -0
  126. package/internal/request-options.js +14 -0
  127. package/internal/request-options.js.map +1 -0
  128. package/internal/request-options.mjs +10 -0
  129. package/internal/request-options.mjs.map +1 -0
  130. package/internal/shim-types.d.mts +17 -0
  131. package/internal/shim-types.d.mts.map +1 -0
  132. package/internal/shim-types.d.ts +17 -0
  133. package/internal/shim-types.d.ts.map +1 -0
  134. package/internal/shim-types.js +4 -0
  135. package/internal/shim-types.js.map +1 -0
  136. package/internal/shim-types.mjs +3 -0
  137. package/internal/shim-types.mjs.map +1 -0
  138. package/internal/shims.d.mts +20 -0
  139. package/internal/shims.d.mts.map +1 -0
  140. package/internal/shims.d.ts +20 -0
  141. package/internal/shims.d.ts.map +1 -0
  142. package/internal/shims.js +92 -0
  143. package/internal/shims.js.map +1 -0
  144. package/internal/shims.mjs +85 -0
  145. package/internal/shims.mjs.map +1 -0
  146. package/internal/to-file.d.mts +45 -0
  147. package/internal/to-file.d.mts.map +1 -0
  148. package/internal/to-file.d.ts +45 -0
  149. package/internal/to-file.d.ts.map +1 -0
  150. package/internal/to-file.js +91 -0
  151. package/internal/to-file.js.map +1 -0
  152. package/internal/to-file.mjs +88 -0
  153. package/internal/to-file.mjs.map +1 -0
  154. package/internal/tslib.js +81 -0
  155. package/internal/tslib.mjs +17 -0
  156. package/internal/types.d.mts +69 -0
  157. package/internal/types.d.mts.map +1 -0
  158. package/internal/types.d.ts +69 -0
  159. package/internal/types.d.ts.map +1 -0
  160. package/internal/types.js +4 -0
  161. package/internal/types.js.map +1 -0
  162. package/internal/types.mjs +3 -0
  163. package/internal/types.mjs.map +1 -0
  164. package/internal/uploads.d.mts +42 -0
  165. package/internal/uploads.d.mts.map +1 -0
  166. package/internal/uploads.d.ts +42 -0
  167. package/internal/uploads.d.ts.map +1 -0
  168. package/internal/uploads.js +141 -0
  169. package/internal/uploads.js.map +1 -0
  170. package/internal/uploads.mjs +131 -0
  171. package/internal/uploads.mjs.map +1 -0
  172. package/internal/utils/base64.d.mts +3 -0
  173. package/internal/utils/base64.d.mts.map +1 -0
  174. package/internal/utils/base64.d.ts +3 -0
  175. package/internal/utils/base64.d.ts.map +1 -0
  176. package/internal/utils/base64.js +38 -0
  177. package/internal/utils/base64.js.map +1 -0
  178. package/internal/utils/base64.mjs +33 -0
  179. package/internal/utils/base64.mjs.map +1 -0
  180. package/internal/utils/bytes.d.mts +4 -0
  181. package/internal/utils/bytes.d.mts.map +1 -0
  182. package/internal/utils/bytes.d.ts +4 -0
  183. package/internal/utils/bytes.d.ts.map +1 -0
  184. package/internal/utils/bytes.js +31 -0
  185. package/internal/utils/bytes.js.map +1 -0
  186. package/internal/utils/bytes.mjs +26 -0
  187. package/internal/utils/bytes.mjs.map +1 -0
  188. package/internal/utils/env.d.mts +9 -0
  189. package/internal/utils/env.d.mts.map +1 -0
  190. package/internal/utils/env.d.ts +9 -0
  191. package/internal/utils/env.d.ts.map +1 -0
  192. package/internal/utils/env.js +22 -0
  193. package/internal/utils/env.js.map +1 -0
  194. package/internal/utils/env.mjs +18 -0
  195. package/internal/utils/env.mjs.map +1 -0
  196. package/internal/utils/log.d.mts +37 -0
  197. package/internal/utils/log.d.mts.map +1 -0
  198. package/internal/utils/log.d.ts +37 -0
  199. package/internal/utils/log.d.ts.map +1 -0
  200. package/internal/utils/log.js +85 -0
  201. package/internal/utils/log.js.map +1 -0
  202. package/internal/utils/log.mjs +79 -0
  203. package/internal/utils/log.mjs.map +1 -0
  204. package/internal/utils/path.d.mts +15 -0
  205. package/internal/utils/path.d.mts.map +1 -0
  206. package/internal/utils/path.d.ts +15 -0
  207. package/internal/utils/path.d.ts.map +1 -0
  208. package/internal/utils/path.js +79 -0
  209. package/internal/utils/path.js.map +1 -0
  210. package/internal/utils/path.mjs +74 -0
  211. package/internal/utils/path.mjs.map +1 -0
  212. package/internal/utils/sleep.d.mts +2 -0
  213. package/internal/utils/sleep.d.mts.map +1 -0
  214. package/internal/utils/sleep.d.ts +2 -0
  215. package/internal/utils/sleep.d.ts.map +1 -0
  216. package/internal/utils/sleep.js +7 -0
  217. package/internal/utils/sleep.js.map +1 -0
  218. package/internal/utils/sleep.mjs +3 -0
  219. package/internal/utils/sleep.mjs.map +1 -0
  220. package/internal/utils/uuid.d.mts +5 -0
  221. package/internal/utils/uuid.d.mts.map +1 -0
  222. package/internal/utils/uuid.d.ts +5 -0
  223. package/internal/utils/uuid.d.ts.map +1 -0
  224. package/internal/utils/uuid.js +19 -0
  225. package/internal/utils/uuid.js.map +1 -0
  226. package/internal/utils/uuid.mjs +15 -0
  227. package/internal/utils/uuid.mjs.map +1 -0
  228. package/internal/utils/values.d.mts +18 -0
  229. package/internal/utils/values.d.mts.map +1 -0
  230. package/internal/utils/values.d.ts +18 -0
  231. package/internal/utils/values.d.ts.map +1 -0
  232. package/internal/utils/values.js +112 -0
  233. package/internal/utils/values.js.map +1 -0
  234. package/internal/utils/values.mjs +94 -0
  235. package/internal/utils/values.mjs.map +1 -0
  236. package/internal/utils.d.mts +7 -0
  237. package/internal/utils.d.mts.map +1 -0
  238. package/internal/utils.d.ts +7 -0
  239. package/internal/utils.d.ts.map +1 -0
  240. package/internal/utils.js +11 -0
  241. package/internal/utils.js.map +1 -0
  242. package/internal/utils.mjs +8 -0
  243. package/internal/utils.mjs.map +1 -0
  244. package/package.json +158 -0
  245. package/pagination.d.mts +2 -0
  246. package/pagination.d.mts.map +1 -0
  247. package/pagination.d.ts +2 -0
  248. package/pagination.d.ts.map +1 -0
  249. package/pagination.js +6 -0
  250. package/pagination.js.map +1 -0
  251. package/pagination.mjs +2 -0
  252. package/pagination.mjs.map +1 -0
  253. package/resource.d.mts +2 -0
  254. package/resource.d.mts.map +1 -0
  255. package/resource.d.ts +2 -0
  256. package/resource.d.ts.map +1 -0
  257. package/resource.js +6 -0
  258. package/resource.js.map +1 -0
  259. package/resource.mjs +2 -0
  260. package/resource.mjs.map +1 -0
  261. package/resources/business-partner-groups.d.mts +94 -0
  262. package/resources/business-partner-groups.d.mts.map +1 -0
  263. package/resources/business-partner-groups.d.ts +94 -0
  264. package/resources/business-partner-groups.d.ts.map +1 -0
  265. package/resources/business-partner-groups.js +46 -0
  266. package/resources/business-partner-groups.js.map +1 -0
  267. package/resources/business-partner-groups.mjs +42 -0
  268. package/resources/business-partner-groups.mjs.map +1 -0
  269. package/resources/business-partners.d.mts +132 -0
  270. package/resources/business-partners.d.mts.map +1 -0
  271. package/resources/business-partners.d.ts +132 -0
  272. package/resources/business-partners.d.ts.map +1 -0
  273. package/resources/business-partners.js +47 -0
  274. package/resources/business-partners.js.map +1 -0
  275. package/resources/business-partners.mjs +43 -0
  276. package/resources/business-partners.mjs.map +1 -0
  277. package/resources/candidate-applications.d.mts +63 -0
  278. package/resources/candidate-applications.d.mts.map +1 -0
  279. package/resources/candidate-applications.d.ts +63 -0
  280. package/resources/candidate-applications.d.ts.map +1 -0
  281. package/resources/candidate-applications.js +20 -0
  282. package/resources/candidate-applications.js.map +1 -0
  283. package/resources/candidate-applications.mjs +16 -0
  284. package/resources/candidate-applications.mjs.map +1 -0
  285. package/resources/candidates.d.mts +54 -0
  286. package/resources/candidates.d.mts.map +1 -0
  287. package/resources/candidates.d.ts +54 -0
  288. package/resources/candidates.d.ts.map +1 -0
  289. package/resources/candidates.js +22 -0
  290. package/resources/candidates.js.map +1 -0
  291. package/resources/candidates.mjs +18 -0
  292. package/resources/candidates.mjs.map +1 -0
  293. package/resources/companies.d.mts +82 -0
  294. package/resources/companies.d.mts.map +1 -0
  295. package/resources/companies.d.ts +82 -0
  296. package/resources/companies.d.ts.map +1 -0
  297. package/resources/companies.js +20 -0
  298. package/resources/companies.js.map +1 -0
  299. package/resources/companies.mjs +16 -0
  300. package/resources/companies.mjs.map +1 -0
  301. package/resources/compensations.d.mts +250 -0
  302. package/resources/compensations.d.mts.map +1 -0
  303. package/resources/compensations.d.ts +250 -0
  304. package/resources/compensations.d.ts.map +1 -0
  305. package/resources/compensations.js +27 -0
  306. package/resources/compensations.js.map +1 -0
  307. package/resources/compensations.mjs +23 -0
  308. package/resources/compensations.mjs.map +1 -0
  309. package/resources/custom-fields.d.mts +50 -0
  310. package/resources/custom-fields.d.mts.map +1 -0
  311. package/resources/custom-fields.d.ts +50 -0
  312. package/resources/custom-fields.d.ts.map +1 -0
  313. package/resources/custom-fields.js +22 -0
  314. package/resources/custom-fields.js.map +1 -0
  315. package/resources/custom-fields.mjs +18 -0
  316. package/resources/custom-fields.mjs.map +1 -0
  317. package/resources/custom-objects/custom-objects.d.mts +103 -0
  318. package/resources/custom-objects/custom-objects.d.mts.map +1 -0
  319. package/resources/custom-objects/custom-objects.d.ts +103 -0
  320. package/resources/custom-objects/custom-objects.d.ts.map +1 -0
  321. package/resources/custom-objects/custom-objects.js +59 -0
  322. package/resources/custom-objects/custom-objects.js.map +1 -0
  323. package/resources/custom-objects/custom-objects.mjs +54 -0
  324. package/resources/custom-objects/custom-objects.mjs.map +1 -0
  325. package/resources/custom-objects/fields.d.mts +113 -0
  326. package/resources/custom-objects/fields.d.mts.map +1 -0
  327. package/resources/custom-objects/fields.d.ts +113 -0
  328. package/resources/custom-objects/fields.d.ts.map +1 -0
  329. package/resources/custom-objects/fields.js +50 -0
  330. package/resources/custom-objects/fields.js.map +1 -0
  331. package/resources/custom-objects/fields.mjs +46 -0
  332. package/resources/custom-objects/fields.mjs.map +1 -0
  333. package/resources/custom-objects/index.d.mts +4 -0
  334. package/resources/custom-objects/index.d.mts.map +1 -0
  335. package/resources/custom-objects/index.d.ts +4 -0
  336. package/resources/custom-objects/index.d.ts.map +1 -0
  337. package/resources/custom-objects/index.js +11 -0
  338. package/resources/custom-objects/index.js.map +1 -0
  339. package/resources/custom-objects/index.mjs +5 -0
  340. package/resources/custom-objects/index.mjs.map +1 -0
  341. package/resources/custom-objects/records.d.mts +143 -0
  342. package/resources/custom-objects/records.d.mts.map +1 -0
  343. package/resources/custom-objects/records.d.ts +143 -0
  344. package/resources/custom-objects/records.d.ts.map +1 -0
  345. package/resources/custom-objects/records.js +93 -0
  346. package/resources/custom-objects/records.js.map +1 -0
  347. package/resources/custom-objects/records.mjs +89 -0
  348. package/resources/custom-objects/records.mjs.map +1 -0
  349. package/resources/custom-objects.d.mts +2 -0
  350. package/resources/custom-objects.d.mts.map +1 -0
  351. package/resources/custom-objects.d.ts +2 -0
  352. package/resources/custom-objects.d.ts.map +1 -0
  353. package/resources/custom-objects.js +6 -0
  354. package/resources/custom-objects.js.map +1 -0
  355. package/resources/custom-objects.mjs +3 -0
  356. package/resources/custom-objects.mjs.map +1 -0
  357. package/resources/departments.d.mts +80 -0
  358. package/resources/departments.d.mts.map +1 -0
  359. package/resources/departments.d.ts +80 -0
  360. package/resources/departments.d.ts.map +1 -0
  361. package/resources/departments.js +27 -0
  362. package/resources/departments.js.map +1 -0
  363. package/resources/departments.mjs +23 -0
  364. package/resources/departments.mjs.map +1 -0
  365. package/resources/employment-types.d.mts +77 -0
  366. package/resources/employment-types.d.mts.map +1 -0
  367. package/resources/employment-types.d.ts +77 -0
  368. package/resources/employment-types.d.ts.map +1 -0
  369. package/resources/employment-types.js +29 -0
  370. package/resources/employment-types.js.map +1 -0
  371. package/resources/employment-types.mjs +25 -0
  372. package/resources/employment-types.mjs.map +1 -0
  373. package/resources/entitlements.d.mts +30 -0
  374. package/resources/entitlements.d.mts.map +1 -0
  375. package/resources/entitlements.d.ts +30 -0
  376. package/resources/entitlements.d.ts.map +1 -0
  377. package/resources/entitlements.js +18 -0
  378. package/resources/entitlements.js.map +1 -0
  379. package/resources/entitlements.mjs +14 -0
  380. package/resources/entitlements.mjs.map +1 -0
  381. package/resources/functions/deployments.d.mts +145 -0
  382. package/resources/functions/deployments.d.mts.map +1 -0
  383. package/resources/functions/deployments.d.ts +145 -0
  384. package/resources/functions/deployments.d.ts.map +1 -0
  385. package/resources/functions/deployments.js +40 -0
  386. package/resources/functions/deployments.js.map +1 -0
  387. package/resources/functions/deployments.mjs +36 -0
  388. package/resources/functions/deployments.mjs.map +1 -0
  389. package/resources/functions/executions.d.mts +188 -0
  390. package/resources/functions/executions.d.mts.map +1 -0
  391. package/resources/functions/executions.d.ts +188 -0
  392. package/resources/functions/executions.d.ts.map +1 -0
  393. package/resources/functions/executions.js +42 -0
  394. package/resources/functions/executions.js.map +1 -0
  395. package/resources/functions/executions.mjs +38 -0
  396. package/resources/functions/executions.mjs.map +1 -0
  397. package/resources/functions/functions.d.mts +129 -0
  398. package/resources/functions/functions.d.mts.map +1 -0
  399. package/resources/functions/functions.d.ts +129 -0
  400. package/resources/functions/functions.d.ts.map +1 -0
  401. package/resources/functions/functions.js +56 -0
  402. package/resources/functions/functions.js.map +1 -0
  403. package/resources/functions/functions.mjs +51 -0
  404. package/resources/functions/functions.mjs.map +1 -0
  405. package/resources/functions/index.d.mts +4 -0
  406. package/resources/functions/index.d.mts.map +1 -0
  407. package/resources/functions/index.d.ts +4 -0
  408. package/resources/functions/index.d.ts.map +1 -0
  409. package/resources/functions/index.js +11 -0
  410. package/resources/functions/index.js.map +1 -0
  411. package/resources/functions/index.mjs +5 -0
  412. package/resources/functions/index.mjs.map +1 -0
  413. package/resources/functions.d.mts +2 -0
  414. package/resources/functions.d.mts.map +1 -0
  415. package/resources/functions.d.ts +2 -0
  416. package/resources/functions.d.ts.map +1 -0
  417. package/resources/functions.js +6 -0
  418. package/resources/functions.js.map +1 -0
  419. package/resources/functions.mjs +3 -0
  420. package/resources/functions.mjs.map +1 -0
  421. package/resources/headcount-positions.d.mts +1059 -0
  422. package/resources/headcount-positions.d.mts.map +1 -0
  423. package/resources/headcount-positions.d.ts +1059 -0
  424. package/resources/headcount-positions.d.ts.map +1 -0
  425. package/resources/headcount-positions.js +41 -0
  426. package/resources/headcount-positions.js.map +1 -0
  427. package/resources/headcount-positions.mjs +37 -0
  428. package/resources/headcount-positions.mjs.map +1 -0
  429. package/resources/headcount-priorities.d.mts +65 -0
  430. package/resources/headcount-priorities.d.mts.map +1 -0
  431. package/resources/headcount-priorities.d.ts +65 -0
  432. package/resources/headcount-priorities.d.ts.map +1 -0
  433. package/resources/headcount-priorities.js +29 -0
  434. package/resources/headcount-priorities.js.map +1 -0
  435. package/resources/headcount-priorities.mjs +25 -0
  436. package/resources/headcount-priorities.mjs.map +1 -0
  437. package/resources/index.d.mts +42 -0
  438. package/resources/index.d.mts.map +1 -0
  439. package/resources/index.d.ts +42 -0
  440. package/resources/index.d.ts.map +1 -0
  441. package/resources/index.js +87 -0
  442. package/resources/index.js.map +1 -0
  443. package/resources/index.mjs +43 -0
  444. package/resources/index.mjs.map +1 -0
  445. package/resources/job-assignments.d.mts +161 -0
  446. package/resources/job-assignments.d.mts.map +1 -0
  447. package/resources/job-assignments.d.ts +161 -0
  448. package/resources/job-assignments.d.ts.map +1 -0
  449. package/resources/job-assignments.js +38 -0
  450. package/resources/job-assignments.js.map +1 -0
  451. package/resources/job-assignments.mjs +34 -0
  452. package/resources/job-assignments.mjs.map +1 -0
  453. package/resources/job-codes.d.mts +358 -0
  454. package/resources/job-codes.d.mts.map +1 -0
  455. package/resources/job-codes.d.ts +358 -0
  456. package/resources/job-codes.d.ts.map +1 -0
  457. package/resources/job-codes.js +61 -0
  458. package/resources/job-codes.js.map +1 -0
  459. package/resources/job-codes.mjs +57 -0
  460. package/resources/job-codes.mjs.map +1 -0
  461. package/resources/job-dimensions.d.mts +145 -0
  462. package/resources/job-dimensions.d.mts.map +1 -0
  463. package/resources/job-dimensions.d.ts +145 -0
  464. package/resources/job-dimensions.d.ts.map +1 -0
  465. package/resources/job-dimensions.js +49 -0
  466. package/resources/job-dimensions.js.map +1 -0
  467. package/resources/job-dimensions.mjs +45 -0
  468. package/resources/job-dimensions.mjs.map +1 -0
  469. package/resources/job-functions.d.mts +65 -0
  470. package/resources/job-functions.d.mts.map +1 -0
  471. package/resources/job-functions.d.ts +65 -0
  472. package/resources/job-functions.d.ts.map +1 -0
  473. package/resources/job-functions.js +29 -0
  474. package/resources/job-functions.js.map +1 -0
  475. package/resources/job-functions.mjs +25 -0
  476. package/resources/job-functions.mjs.map +1 -0
  477. package/resources/job-pay-rate-exceptions.d.mts +91 -0
  478. package/resources/job-pay-rate-exceptions.d.mts.map +1 -0
  479. package/resources/job-pay-rate-exceptions.d.ts +91 -0
  480. package/resources/job-pay-rate-exceptions.d.ts.map +1 -0
  481. package/resources/job-pay-rate-exceptions.js +41 -0
  482. package/resources/job-pay-rate-exceptions.js.map +1 -0
  483. package/resources/job-pay-rate-exceptions.mjs +37 -0
  484. package/resources/job-pay-rate-exceptions.mjs.map +1 -0
  485. package/resources/job-requisitions.d.mts +42 -0
  486. package/resources/job-requisitions.d.mts.map +1 -0
  487. package/resources/job-requisitions.d.ts +42 -0
  488. package/resources/job-requisitions.d.ts.map +1 -0
  489. package/resources/job-requisitions.js +19 -0
  490. package/resources/job-requisitions.js.map +1 -0
  491. package/resources/job-requisitions.mjs +15 -0
  492. package/resources/job-requisitions.mjs.map +1 -0
  493. package/resources/kiosk-badges.d.mts +247 -0
  494. package/resources/kiosk-badges.d.mts.map +1 -0
  495. package/resources/kiosk-badges.d.ts +247 -0
  496. package/resources/kiosk-badges.d.ts.map +1 -0
  497. package/resources/kiosk-badges.js +53 -0
  498. package/resources/kiosk-badges.js.map +1 -0
  499. package/resources/kiosk-badges.mjs +49 -0
  500. package/resources/kiosk-badges.mjs.map +1 -0
  501. package/resources/leave-balances.d.mts +88 -0
  502. package/resources/leave-balances.d.mts.map +1 -0
  503. package/resources/leave-balances.d.ts +88 -0
  504. package/resources/leave-balances.d.ts.map +1 -0
  505. package/resources/leave-balances.js +28 -0
  506. package/resources/leave-balances.js.map +1 -0
  507. package/resources/leave-balances.mjs +24 -0
  508. package/resources/leave-balances.mjs.map +1 -0
  509. package/resources/leave-requests.d.mts +731 -0
  510. package/resources/leave-requests.d.mts.map +1 -0
  511. package/resources/leave-requests.d.ts +731 -0
  512. package/resources/leave-requests.d.ts.map +1 -0
  513. package/resources/leave-requests.js +44 -0
  514. package/resources/leave-requests.js.map +1 -0
  515. package/resources/leave-requests.mjs +40 -0
  516. package/resources/leave-requests.mjs.map +1 -0
  517. package/resources/leave-types.d.mts +67 -0
  518. package/resources/leave-types.d.mts.map +1 -0
  519. package/resources/leave-types.d.ts +67 -0
  520. package/resources/leave-types.d.ts.map +1 -0
  521. package/resources/leave-types.js +27 -0
  522. package/resources/leave-types.js.map +1 -0
  523. package/resources/leave-types.mjs +23 -0
  524. package/resources/leave-types.mjs.map +1 -0
  525. package/resources/legal-entities.d.mts +117 -0
  526. package/resources/legal-entities.d.mts.map +1 -0
  527. package/resources/legal-entities.d.ts +117 -0
  528. package/resources/legal-entities.d.ts.map +1 -0
  529. package/resources/legal-entities.js +27 -0
  530. package/resources/legal-entities.js.map +1 -0
  531. package/resources/legal-entities.mjs +23 -0
  532. package/resources/legal-entities.mjs.map +1 -0
  533. package/resources/levels.d.mts +91 -0
  534. package/resources/levels.d.mts.map +1 -0
  535. package/resources/levels.d.ts +91 -0
  536. package/resources/levels.d.ts.map +1 -0
  537. package/resources/levels.js +27 -0
  538. package/resources/levels.js.map +1 -0
  539. package/resources/levels.mjs +23 -0
  540. package/resources/levels.mjs.map +1 -0
  541. package/resources/location-factors.d.mts +111 -0
  542. package/resources/location-factors.d.mts.map +1 -0
  543. package/resources/location-factors.d.ts +111 -0
  544. package/resources/location-factors.d.ts.map +1 -0
  545. package/resources/location-factors.js +29 -0
  546. package/resources/location-factors.js.map +1 -0
  547. package/resources/location-factors.mjs +25 -0
  548. package/resources/location-factors.mjs.map +1 -0
  549. package/resources/object-categories.d.mts +63 -0
  550. package/resources/object-categories.d.mts.map +1 -0
  551. package/resources/object-categories.d.ts +63 -0
  552. package/resources/object-categories.d.ts.map +1 -0
  553. package/resources/object-categories.js +47 -0
  554. package/resources/object-categories.js.map +1 -0
  555. package/resources/object-categories.mjs +43 -0
  556. package/resources/object-categories.mjs.map +1 -0
  557. package/resources/schedules.d.mts +139 -0
  558. package/resources/schedules.d.mts.map +1 -0
  559. package/resources/schedules.d.ts +139 -0
  560. package/resources/schedules.d.ts.map +1 -0
  561. package/resources/schedules.js +27 -0
  562. package/resources/schedules.js.map +1 -0
  563. package/resources/schedules.mjs +23 -0
  564. package/resources/schedules.mjs.map +1 -0
  565. package/resources/shared.d.mts +55 -0
  566. package/resources/shared.d.mts.map +1 -0
  567. package/resources/shared.d.ts +55 -0
  568. package/resources/shared.d.ts.map +1 -0
  569. package/resources/shared.js +4 -0
  570. package/resources/shared.js.map +1 -0
  571. package/resources/shared.mjs +3 -0
  572. package/resources/shared.mjs.map +1 -0
  573. package/resources/shift-inputs.d.mts +291 -0
  574. package/resources/shift-inputs.d.mts.map +1 -0
  575. package/resources/shift-inputs.d.ts +291 -0
  576. package/resources/shift-inputs.d.ts.map +1 -0
  577. package/resources/shift-inputs.js +53 -0
  578. package/resources/shift-inputs.js.map +1 -0
  579. package/resources/shift-inputs.mjs +49 -0
  580. package/resources/shift-inputs.mjs.map +1 -0
  581. package/resources/shiftassignments.d.mts +466 -0
  582. package/resources/shiftassignments.d.mts.map +1 -0
  583. package/resources/shiftassignments.d.ts +466 -0
  584. package/resources/shiftassignments.d.ts.map +1 -0
  585. package/resources/shiftassignments.js +32 -0
  586. package/resources/shiftassignments.js.map +1 -0
  587. package/resources/shiftassignments.mjs +28 -0
  588. package/resources/shiftassignments.mjs.map +1 -0
  589. package/resources/sso-me.d.mts +48 -0
  590. package/resources/sso-me.d.mts.map +1 -0
  591. package/resources/sso-me.d.ts +48 -0
  592. package/resources/sso-me.d.ts.map +1 -0
  593. package/resources/sso-me.js +18 -0
  594. package/resources/sso-me.js.map +1 -0
  595. package/resources/sso-me.mjs +14 -0
  596. package/resources/sso-me.mjs.map +1 -0
  597. package/resources/supergroups/exclusion-members.d.mts +56 -0
  598. package/resources/supergroups/exclusion-members.d.mts.map +1 -0
  599. package/resources/supergroups/exclusion-members.d.ts +56 -0
  600. package/resources/supergroups/exclusion-members.d.ts.map +1 -0
  601. package/resources/supergroups/exclusion-members.js +26 -0
  602. package/resources/supergroups/exclusion-members.js.map +1 -0
  603. package/resources/supergroups/exclusion-members.mjs +22 -0
  604. package/resources/supergroups/exclusion-members.mjs.map +1 -0
  605. package/resources/supergroups/inclusion-members.d.mts +56 -0
  606. package/resources/supergroups/inclusion-members.d.mts.map +1 -0
  607. package/resources/supergroups/inclusion-members.d.ts +56 -0
  608. package/resources/supergroups/inclusion-members.d.ts.map +1 -0
  609. package/resources/supergroups/inclusion-members.js +26 -0
  610. package/resources/supergroups/inclusion-members.js.map +1 -0
  611. package/resources/supergroups/inclusion-members.mjs +22 -0
  612. package/resources/supergroups/inclusion-members.mjs.map +1 -0
  613. package/resources/supergroups/index.d.mts +5 -0
  614. package/resources/supergroups/index.d.mts.map +1 -0
  615. package/resources/supergroups/index.d.ts +5 -0
  616. package/resources/supergroups/index.d.ts.map +1 -0
  617. package/resources/supergroups/index.js +13 -0
  618. package/resources/supergroups/index.js.map +1 -0
  619. package/resources/supergroups/index.mjs +6 -0
  620. package/resources/supergroups/index.mjs.map +1 -0
  621. package/resources/supergroups/members.d.mts +42 -0
  622. package/resources/supergroups/members.d.mts.map +1 -0
  623. package/resources/supergroups/members.d.ts +42 -0
  624. package/resources/supergroups/members.d.ts.map +1 -0
  625. package/resources/supergroups/members.js +23 -0
  626. package/resources/supergroups/members.js.map +1 -0
  627. package/resources/supergroups/members.mjs +19 -0
  628. package/resources/supergroups/members.mjs.map +1 -0
  629. package/resources/supergroups/supergroups.d.mts +123 -0
  630. package/resources/supergroups/supergroups.d.mts.map +1 -0
  631. package/resources/supergroups/supergroups.d.ts +123 -0
  632. package/resources/supergroups/supergroups.d.ts.map +1 -0
  633. package/resources/supergroups/supergroups.js +43 -0
  634. package/resources/supergroups/supergroups.js.map +1 -0
  635. package/resources/supergroups/supergroups.mjs +38 -0
  636. package/resources/supergroups/supergroups.mjs.map +1 -0
  637. package/resources/supergroups.d.mts +2 -0
  638. package/resources/supergroups.d.mts.map +1 -0
  639. package/resources/supergroups.d.ts +2 -0
  640. package/resources/supergroups.d.ts.map +1 -0
  641. package/resources/supergroups.js +6 -0
  642. package/resources/supergroups.js.map +1 -0
  643. package/resources/supergroups.mjs +3 -0
  644. package/resources/supergroups.mjs.map +1 -0
  645. package/resources/teams.d.mts +64 -0
  646. package/resources/teams.d.mts.map +1 -0
  647. package/resources/teams.d.ts +64 -0
  648. package/resources/teams.d.ts.map +1 -0
  649. package/resources/teams.js +27 -0
  650. package/resources/teams.js.map +1 -0
  651. package/resources/teams.mjs +23 -0
  652. package/resources/teams.mjs.map +1 -0
  653. package/resources/time-cards.d.mts +156 -0
  654. package/resources/time-cards.d.mts.map +1 -0
  655. package/resources/time-cards.d.ts +156 -0
  656. package/resources/time-cards.d.ts.map +1 -0
  657. package/resources/time-cards.js +28 -0
  658. package/resources/time-cards.js.map +1 -0
  659. package/resources/time-cards.mjs +24 -0
  660. package/resources/time-cards.mjs.map +1 -0
  661. package/resources/time-entries.d.mts +1494 -0
  662. package/resources/time-entries.d.mts.map +1 -0
  663. package/resources/time-entries.d.ts +1494 -0
  664. package/resources/time-entries.d.ts.map +1 -0
  665. package/resources/time-entries.js +53 -0
  666. package/resources/time-entries.js.map +1 -0
  667. package/resources/time-entries.mjs +49 -0
  668. package/resources/time-entries.mjs.map +1 -0
  669. package/resources/tracks.d.mts +49 -0
  670. package/resources/tracks.d.mts.map +1 -0
  671. package/resources/tracks.d.ts +49 -0
  672. package/resources/tracks.d.ts.map +1 -0
  673. package/resources/tracks.js +26 -0
  674. package/resources/tracks.js.map +1 -0
  675. package/resources/tracks.mjs +22 -0
  676. package/resources/tracks.mjs.map +1 -0
  677. package/resources/users.d.mts +200 -0
  678. package/resources/users.d.mts.map +1 -0
  679. package/resources/users.d.ts +200 -0
  680. package/resources/users.d.ts.map +1 -0
  681. package/resources/users.js +26 -0
  682. package/resources/users.js.map +1 -0
  683. package/resources/users.mjs +22 -0
  684. package/resources/users.mjs.map +1 -0
  685. package/resources/work-locations.d.mts +54 -0
  686. package/resources/work-locations.d.mts.map +1 -0
  687. package/resources/work-locations.d.ts +54 -0
  688. package/resources/work-locations.d.ts.map +1 -0
  689. package/resources/work-locations.js +26 -0
  690. package/resources/work-locations.js.map +1 -0
  691. package/resources/work-locations.mjs +22 -0
  692. package/resources/work-locations.mjs.map +1 -0
  693. package/resources/workers.d.mts +298 -0
  694. package/resources/workers.d.mts.map +1 -0
  695. package/resources/workers.d.ts +298 -0
  696. package/resources/workers.d.ts.map +1 -0
  697. package/resources/workers.js +31 -0
  698. package/resources/workers.js.map +1 -0
  699. package/resources/workers.mjs +27 -0
  700. package/resources/workers.mjs.map +1 -0
  701. package/resources.d.mts +2 -0
  702. package/resources.d.mts.map +1 -0
  703. package/resources.d.ts +2 -0
  704. package/resources.d.ts.map +1 -0
  705. package/resources.js +5 -0
  706. package/resources.js.map +1 -0
  707. package/resources.mjs +2 -0
  708. package/resources.mjs.map +1 -0
  709. package/src/api-promise.ts +2 -0
  710. package/src/client.ts +1518 -0
  711. package/src/core/README.md +3 -0
  712. package/src/core/api-promise.ts +92 -0
  713. package/src/core/error.ts +130 -0
  714. package/src/core/pagination.ts +155 -0
  715. package/src/core/resource.ts +11 -0
  716. package/src/core/uploads.ts +2 -0
  717. package/src/error.ts +2 -0
  718. package/src/functions.ts +114 -0
  719. package/src/index.ts +25 -0
  720. package/src/internal/README.md +3 -0
  721. package/src/internal/builtin-types.ts +93 -0
  722. package/src/internal/detect-platform.ts +196 -0
  723. package/src/internal/errors.ts +33 -0
  724. package/src/internal/headers.ts +97 -0
  725. package/src/internal/parse.ts +50 -0
  726. package/src/internal/request-options.ts +91 -0
  727. package/src/internal/shim-types.ts +26 -0
  728. package/src/internal/shims.ts +107 -0
  729. package/src/internal/to-file.ts +154 -0
  730. package/src/internal/types.ts +95 -0
  731. package/src/internal/uploads.ts +187 -0
  732. package/src/internal/utils/base64.ts +40 -0
  733. package/src/internal/utils/bytes.ts +32 -0
  734. package/src/internal/utils/env.ts +18 -0
  735. package/src/internal/utils/log.ts +126 -0
  736. package/src/internal/utils/path.ts +88 -0
  737. package/src/internal/utils/sleep.ts +3 -0
  738. package/src/internal/utils/uuid.ts +17 -0
  739. package/src/internal/utils/values.ts +105 -0
  740. package/src/internal/utils.ts +8 -0
  741. package/src/lib/.keep +4 -0
  742. package/src/pagination.ts +2 -0
  743. package/src/resource.ts +2 -0
  744. package/src/resources/business-partner-groups.ts +146 -0
  745. package/src/resources/business-partners.ts +190 -0
  746. package/src/resources/candidate-applications.ts +91 -0
  747. package/src/resources/candidates.ts +79 -0
  748. package/src/resources/companies.ts +110 -0
  749. package/src/resources/compensations.ts +313 -0
  750. package/src/resources/custom-fields.ts +93 -0
  751. package/src/resources/custom-objects/custom-objects.ts +206 -0
  752. package/src/resources/custom-objects/fields.ts +199 -0
  753. package/src/resources/custom-objects/index.ts +32 -0
  754. package/src/resources/custom-objects/records.ts +282 -0
  755. package/src/resources/custom-objects.ts +3 -0
  756. package/src/resources/departments.ts +115 -0
  757. package/src/resources/employment-types.ts +107 -0
  758. package/src/resources/entitlements.ts +44 -0
  759. package/src/resources/functions/deployments.ts +209 -0
  760. package/src/resources/functions/executions.ts +273 -0
  761. package/src/resources/functions/functions.ts +229 -0
  762. package/src/resources/functions/index.ts +32 -0
  763. package/src/resources/functions.ts +3 -0
  764. package/src/resources/headcount-positions.ts +1767 -0
  765. package/src/resources/headcount-priorities.ts +95 -0
  766. package/src/resources/index.ts +322 -0
  767. package/src/resources/job-assignments.ts +227 -0
  768. package/src/resources/job-codes.ts +466 -0
  769. package/src/resources/job-dimensions.ts +201 -0
  770. package/src/resources/job-functions.ts +95 -0
  771. package/src/resources/job-pay-rate-exceptions.ts +144 -0
  772. package/src/resources/job-requisitions.ts +61 -0
  773. package/src/resources/kiosk-badges.ts +343 -0
  774. package/src/resources/leave-balances.ts +125 -0
  775. package/src/resources/leave-requests.ts +928 -0
  776. package/src/resources/leave-types.ts +95 -0
  777. package/src/resources/legal-entities.ts +406 -0
  778. package/src/resources/levels.ts +128 -0
  779. package/src/resources/location-factors.ts +643 -0
  780. package/src/resources/object-categories.ts +107 -0
  781. package/src/resources/schedules.ts +187 -0
  782. package/src/resources/shared.ts +313 -0
  783. package/src/resources/shift-inputs.ts +398 -0
  784. package/src/resources/shiftassignments.ts +580 -0
  785. package/src/resources/sso-me.ts +60 -0
  786. package/src/resources/supergroups/exclusion-members.ts +88 -0
  787. package/src/resources/supergroups/inclusion-members.ts +88 -0
  788. package/src/resources/supergroups/index.ts +22 -0
  789. package/src/resources/supergroups/members.ts +66 -0
  790. package/src/resources/supergroups/supergroups.ts +199 -0
  791. package/src/resources/supergroups.ts +3 -0
  792. package/src/resources/teams.ts +96 -0
  793. package/src/resources/time-cards.ts +209 -0
  794. package/src/resources/time-entries.ts +1860 -0
  795. package/src/resources/tracks.ts +72 -0
  796. package/src/resources/users.ts +255 -0
  797. package/src/resources/work-locations.ts +78 -0
  798. package/src/resources/workers.ts +906 -0
  799. package/src/resources.ts +1 -0
  800. package/src/tsconfig.json +11 -0
  801. package/src/uploads.ts +2 -0
  802. package/src/version.ts +1 -0
  803. package/uploads.d.mts +2 -0
  804. package/uploads.d.mts.map +1 -0
  805. package/uploads.d.ts +2 -0
  806. package/uploads.d.ts.map +1 -0
  807. package/uploads.js +6 -0
  808. package/uploads.js.map +1 -0
  809. package/uploads.mjs +2 -0
  810. package/uploads.mjs.map +1 -0
  811. package/version.d.mts +2 -0
  812. package/version.d.mts.map +1 -0
  813. package/version.d.ts +2 -0
  814. package/version.d.ts.map +1 -0
  815. package/version.js +5 -0
  816. package/version.js.map +1 -0
  817. package/version.mjs +2 -0
  818. package/version.mjs.map +1 -0
@@ -0,0 +1,1860 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import * as BusinessPartnersAPI from './business-partners';
5
+ import * as TimeCardsAPI from './time-cards';
6
+ import * as WorkersAPI from './workers';
7
+ import { APIPromise } from '../core/api-promise';
8
+ import { PageCursorURL, PagePromise } from '../core/pagination';
9
+ import { buildHeaders } from '../internal/headers';
10
+ import { RequestOptions } from '../internal/request-options';
11
+ import { path } from '../internal/utils/path';
12
+
13
+ export class TimeEntries extends APIResource {
14
+ /**
15
+ * Create a new time entry
16
+ */
17
+ create(body: TimeEntryCreateParams, options?: RequestOptions): APIPromise<TimeEntryCreateResponse> {
18
+ return this._client.post('/time-entries', { body, ...options });
19
+ }
20
+
21
+ /**
22
+ * Retrieve a specific time entry
23
+ */
24
+ retrieve(
25
+ id: string,
26
+ query: TimeEntryRetrieveParams | null | undefined = {},
27
+ options?: RequestOptions,
28
+ ): APIPromise<TimeEntryRetrieveResponse> {
29
+ return this._client.get(path`/time-entries/${id}`, { query, ...options });
30
+ }
31
+
32
+ /**
33
+ * Updated a specific time entry
34
+ */
35
+ update(
36
+ id: string,
37
+ body: TimeEntryUpdateParams,
38
+ options?: RequestOptions,
39
+ ): APIPromise<TimeEntryUpdateResponse> {
40
+ return this._client.patch(path`/time-entries/${id}`, { body, ...options });
41
+ }
42
+
43
+ /**
44
+ * A List of time entries
45
+ *
46
+ * - Requires: `API Tier 2`
47
+ * - Filterable fields: `worker_id`, `start_time`, `pay_period.start_date`
48
+ * - Expandable fields: `worker`, `time_card`
49
+ * - Sortable fields: `id`, `created_at`, `updated_at`
50
+ */
51
+ list(
52
+ query: TimeEntryListParams | null | undefined = {},
53
+ options?: RequestOptions,
54
+ ): PagePromise<TimeEntryListResponsesPageCursorURL, TimeEntryListResponse> {
55
+ return this._client.getAPIList('/time-entries', PageCursorURL<TimeEntryListResponse>, {
56
+ query,
57
+ ...options,
58
+ });
59
+ }
60
+
61
+ /**
62
+ * Delete a time entry
63
+ */
64
+ delete(id: string, options?: RequestOptions): APIPromise<void> {
65
+ return this._client.delete(path`/time-entries/${id}`, {
66
+ ...options,
67
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
68
+ });
69
+ }
70
+ }
71
+
72
+ export type TimeEntryListResponsesPageCursorURL = PageCursorURL<TimeEntryListResponse>;
73
+
74
+ export interface TimeEntry {
75
+ /**
76
+ * The ID of the worker associated with the time entry.
77
+ */
78
+ worker_id: string;
79
+
80
+ /**
81
+ * The breaks taken during the time entry.
82
+ */
83
+ breaks?: Array<TimeEntry.Break>;
84
+
85
+ /**
86
+ * The comments associated with the time entry.
87
+ */
88
+ comments?: Array<TimeEntry.Comment>;
89
+
90
+ /**
91
+ * Whether the time entry should create an extra hours run.
92
+ */
93
+ create_extra_hours_run?: boolean;
94
+
95
+ /**
96
+ * The duration of the time entry.
97
+ */
98
+ duration?: number;
99
+
100
+ /**
101
+ * The unique key of the time entry in an outside system. If set, no other time
102
+ * entry with the same key can be created.
103
+ */
104
+ idempotency_key?: string;
105
+
106
+ /**
107
+ * The job shifts worked during the time entry.
108
+ */
109
+ job_shifts?: Array<TimeEntry.JobShift>;
110
+
111
+ /**
112
+ * The pay period associated with the time card.
113
+ */
114
+ pay_period?: TimeEntry.PayPeriod;
115
+
116
+ /**
117
+ * Arbitrary shift inputs collected on the time entry
118
+ */
119
+ shift_input_values?: Array<TimeEntry.ShiftInputValue>;
120
+
121
+ /**
122
+ * The date of the time entry if using duration.
123
+ */
124
+ start_date?: string;
125
+
126
+ /**
127
+ * The status of the time entry.
128
+ */
129
+ status?: 'DRAFT' | 'APPROVED' | 'PAID' | 'FINALIZED';
130
+
131
+ /**
132
+ * The tags associated with the time entry.
133
+ */
134
+ tags?: Array<string>;
135
+ }
136
+
137
+ export namespace TimeEntry {
138
+ export interface Break {
139
+ /**
140
+ * The ID of the break type.
141
+ */
142
+ break_type_id?: string;
143
+
144
+ /**
145
+ * The end time of the break.
146
+ */
147
+ end_time?: string;
148
+
149
+ /**
150
+ * The start time of the break.
151
+ */
152
+ start_time?: string;
153
+ }
154
+
155
+ export interface Comment {
156
+ /**
157
+ * The text of the comment.
158
+ */
159
+ text?: string;
160
+ }
161
+
162
+ export interface JobShift {
163
+ /**
164
+ * The duration of the job shift.
165
+ */
166
+ duration?: number;
167
+
168
+ /**
169
+ * The end time of the job shift.
170
+ */
171
+ end_time?: string;
172
+
173
+ /**
174
+ * Whether the job shift was entered as a duration in hours table
175
+ */
176
+ is_hours_only_input?: boolean;
177
+
178
+ /**
179
+ * The IDs of the job codes associated with the job shift.
180
+ */
181
+ job_codes_id?: Array<string>;
182
+
183
+ /**
184
+ * The original end time of the job shift. If the endTime field has been rounded
185
+ * then this contain the end time before the rounding occured.
186
+ */
187
+ original_end_time?: string;
188
+
189
+ /**
190
+ * The original start time of the job shift. If the startTime field has been
191
+ * rounded then this contain the start time before the rounding occured.
192
+ */
193
+ original_start_time?: string;
194
+
195
+ /**
196
+ * The date of the job shift if using duration.
197
+ */
198
+ start_date?: string;
199
+
200
+ /**
201
+ * The start time of the job shift.
202
+ */
203
+ start_time?: string;
204
+ }
205
+
206
+ /**
207
+ * The pay period associated with the time card.
208
+ */
209
+ export interface PayPeriod {
210
+ /**
211
+ * The end date of the pay period.
212
+ */
213
+ end_date?: string;
214
+
215
+ /**
216
+ * The ID of the pay schedule associated with the pay period.
217
+ */
218
+ pay_schedule_id?: string;
219
+
220
+ /**
221
+ * The start date of the pay period.
222
+ */
223
+ start_date?: string;
224
+ }
225
+
226
+ export interface ShiftInputValue {
227
+ /**
228
+ * The id of the relevant shift input
229
+ */
230
+ shift_input_id: string;
231
+
232
+ /**
233
+ * The value of the shift input.
234
+ */
235
+ value: unknown;
236
+
237
+ /**
238
+ * The id of the role that last added/updated this input.
239
+ */
240
+ author_id?: string;
241
+ }
242
+ }
243
+
244
+ export interface TimeEntryCreateResponse {
245
+ /**
246
+ * Identifier field
247
+ */
248
+ id: string;
249
+
250
+ /**
251
+ * Record creation date
252
+ */
253
+ created_at: string;
254
+
255
+ /**
256
+ * Record update date
257
+ */
258
+ updated_at: string;
259
+
260
+ /**
261
+ * The ID of the worker associated with the time entry.
262
+ */
263
+ worker_id: string;
264
+
265
+ /**
266
+ * The breaks taken during the time entry.
267
+ */
268
+ breaks?: Array<TimeEntryCreateResponse.Break>;
269
+
270
+ /**
271
+ * The comments associated with the time entry.
272
+ */
273
+ comments?: Array<TimeEntryCreateResponse.Comment>;
274
+
275
+ /**
276
+ * Whether the time entry should create an extra hours run.
277
+ */
278
+ create_extra_hours_run?: boolean;
279
+
280
+ /**
281
+ * The end time of the time entry.
282
+ */
283
+ end_time?: string;
284
+
285
+ /**
286
+ * The unique key of the time entry in an outside system. If set, no other time
287
+ * entry with the same key can be created.
288
+ */
289
+ idempotency_key?: string;
290
+
291
+ /**
292
+ * The job shifts worked during the time entry.
293
+ */
294
+ job_shifts?: Array<TimeEntryCreateResponse.JobShift>;
295
+
296
+ /**
297
+ * The pay period associated with the time card.
298
+ */
299
+ pay_period?: TimeCardsAPI.PayPeriod;
300
+
301
+ /**
302
+ * The piece-rate premiums earned during the time entry.
303
+ */
304
+ piece_rate_premiums?: Array<TimeEntryCreateResponse.PieceRatePremium>;
305
+
306
+ /**
307
+ * The premiums earned during the time entry.
308
+ */
309
+ premiums?: Array<TimeEntryCreateResponse.Premium>;
310
+
311
+ /**
312
+ * The pay rates for each segment of the time entry.
313
+ */
314
+ segments?: Array<TimeEntryCreateResponse.Segment>;
315
+
316
+ /**
317
+ * Arbitrary shift inputs collected on the time entry
318
+ */
319
+ shift_input_values?: Array<TimeEntryCreateResponse.ShiftInputValue>;
320
+
321
+ /**
322
+ * The start time of the time entry.
323
+ */
324
+ start_time?: string;
325
+
326
+ /**
327
+ * The status of the time entry.
328
+ */
329
+ status?: 'DRAFT' | 'APPROVED' | 'PAID' | 'FINALIZED';
330
+
331
+ /**
332
+ * The tags associated with the time entry.
333
+ */
334
+ tags?: Array<string>;
335
+
336
+ /**
337
+ * The time card associated with the time entry.
338
+ *
339
+ * Expandable field
340
+ */
341
+ time_card?: TimeCardsAPI.TimeCard;
342
+
343
+ /**
344
+ * The ID of the time card associated with the time entry.
345
+ */
346
+ time_card_id?: string;
347
+
348
+ /**
349
+ * A summary of the time entry.
350
+ */
351
+ time_entry_summary?: TimeEntryCreateResponse.TimeEntrySummary;
352
+
353
+ /**
354
+ * The worker associated with the time entry.
355
+ *
356
+ * Expandable field
357
+ */
358
+ worker?: WorkersAPI.Worker;
359
+ }
360
+
361
+ export namespace TimeEntryCreateResponse {
362
+ export interface Break {
363
+ /**
364
+ * The ID of the break type.
365
+ */
366
+ break_type_id?: string;
367
+
368
+ /**
369
+ * The end time of the break.
370
+ */
371
+ end_time?: string;
372
+
373
+ /**
374
+ * The original end time of the break. If the endTime field has been rounded then
375
+ * this contain the end time before the rounding occured.
376
+ */
377
+ original_end_time?: string;
378
+
379
+ /**
380
+ * The original start time of the break. If the startTime field has been rounded
381
+ * then this contain the start time before the rounding occured.
382
+ */
383
+ original_start_time?: string;
384
+
385
+ /**
386
+ * The start time of the break.
387
+ */
388
+ start_time?: string;
389
+ }
390
+
391
+ export interface Comment {
392
+ /**
393
+ * The ID of the worker who made of the comment.
394
+ */
395
+ author_id?: string;
396
+
397
+ /**
398
+ * The time the comment was created.
399
+ */
400
+ created_at?: string;
401
+
402
+ /**
403
+ * The text of the comment.
404
+ */
405
+ text?: string;
406
+ }
407
+
408
+ export interface JobShift {
409
+ /**
410
+ * The end time of the job shift.
411
+ */
412
+ end_time?: string;
413
+
414
+ /**
415
+ * Whether the job shift was entered as a duration in hours table
416
+ */
417
+ is_hours_only_input?: boolean;
418
+
419
+ /**
420
+ * The IDs of the job codes associated with the job shift.
421
+ */
422
+ job_codes_id?: Array<string>;
423
+
424
+ /**
425
+ * The original end time of the job shift. If the endTime field has been rounded
426
+ * then this contain the end time before the rounding occured.
427
+ */
428
+ original_end_time?: string;
429
+
430
+ /**
431
+ * The original start time of the job shift. If the startTime field has been
432
+ * rounded then this contain the start time before the rounding occured.
433
+ */
434
+ original_start_time?: string;
435
+
436
+ /**
437
+ * The start time of the job shift.
438
+ */
439
+ start_time?: string;
440
+ }
441
+
442
+ export interface PieceRatePremium {
443
+ /**
444
+ * The piece rate name.
445
+ */
446
+ name?: string;
447
+
448
+ /**
449
+ * The pay rate for this piece rate premium.
450
+ */
451
+ premium_rate?: number;
452
+
453
+ /**
454
+ * The total units produced at the premium rate.
455
+ */
456
+ premium_units?: number;
457
+ }
458
+
459
+ export interface Premium {
460
+ /**
461
+ * The pay rate name
462
+ */
463
+ name?: string;
464
+
465
+ /**
466
+ * The total hours worked for at the premium rate.
467
+ */
468
+ premium_hours?: number;
469
+
470
+ /**
471
+ * The pay rate for this premium.
472
+ */
473
+ premium_rate?: number;
474
+ }
475
+
476
+ export interface Segment {
477
+ /**
478
+ * The ID of the break type.
479
+ */
480
+ break_type_id?: string;
481
+
482
+ /**
483
+ * Name of the final earning for the segment.
484
+ */
485
+ display_name?: string;
486
+
487
+ /**
488
+ * The end time of the segment.
489
+ */
490
+ end_time?: string;
491
+
492
+ /**
493
+ * The IDs of the job codes associated with the segment.
494
+ */
495
+ job_codes_id?: Array<string>;
496
+
497
+ /**
498
+ * The multiplier for overtime hours in this segment.
499
+ */
500
+ ot_multiplier?: number;
501
+
502
+ /**
503
+ * The pay rate for this segment.
504
+ */
505
+ pay_rate?: number;
506
+
507
+ /**
508
+ * The start time of the segment.
509
+ */
510
+ start_time?: string;
511
+ }
512
+
513
+ export interface ShiftInputValue {
514
+ /**
515
+ * The id of the relevant shift input
516
+ */
517
+ shift_input_id: string;
518
+
519
+ /**
520
+ * The value of the shift input.
521
+ */
522
+ value: unknown;
523
+
524
+ /**
525
+ * The id of the role that last added/updated this input.
526
+ */
527
+ author_id?: string;
528
+ }
529
+
530
+ /**
531
+ * A summary of the time entry.
532
+ */
533
+ export interface TimeEntrySummary {
534
+ /**
535
+ * The number of double overtime hours worked during this time entry.
536
+ */
537
+ double_over_time_hours?: number;
538
+
539
+ /**
540
+ * The duration of the time entry.
541
+ */
542
+ duration?: number;
543
+
544
+ /**
545
+ * The number of overtime hours worked during this time entry.
546
+ */
547
+ over_time_hours?: number;
548
+
549
+ /**
550
+ * The number of regular hours worked during this time entry.
551
+ */
552
+ regular_hours?: number;
553
+ }
554
+ }
555
+
556
+ /**
557
+ * Meta information for the response.
558
+ */
559
+ export interface TimeEntryRetrieveResponse extends BusinessPartnersAPI.Meta {
560
+ /**
561
+ * Identifier field
562
+ */
563
+ id: string;
564
+
565
+ /**
566
+ * Record creation date
567
+ */
568
+ created_at: string;
569
+
570
+ /**
571
+ * Record update date
572
+ */
573
+ updated_at: string;
574
+
575
+ /**
576
+ * The ID of the worker associated with the time entry.
577
+ */
578
+ worker_id: string;
579
+
580
+ /**
581
+ * The breaks taken during the time entry.
582
+ */
583
+ breaks?: Array<TimeEntryRetrieveResponse.Break>;
584
+
585
+ /**
586
+ * The comments associated with the time entry.
587
+ */
588
+ comments?: Array<TimeEntryRetrieveResponse.Comment>;
589
+
590
+ /**
591
+ * Whether the time entry should create an extra hours run.
592
+ */
593
+ create_extra_hours_run?: boolean;
594
+
595
+ /**
596
+ * The end time of the time entry.
597
+ */
598
+ end_time?: string;
599
+
600
+ /**
601
+ * The unique key of the time entry in an outside system. If set, no other time
602
+ * entry with the same key can be created.
603
+ */
604
+ idempotency_key?: string;
605
+
606
+ /**
607
+ * The job shifts worked during the time entry.
608
+ */
609
+ job_shifts?: Array<TimeEntryRetrieveResponse.JobShift>;
610
+
611
+ /**
612
+ * The pay period associated with the time card.
613
+ */
614
+ pay_period?: TimeCardsAPI.PayPeriod;
615
+
616
+ /**
617
+ * The piece-rate premiums earned during the time entry.
618
+ */
619
+ piece_rate_premiums?: Array<TimeEntryRetrieveResponse.PieceRatePremium>;
620
+
621
+ /**
622
+ * The premiums earned during the time entry.
623
+ */
624
+ premiums?: Array<TimeEntryRetrieveResponse.Premium>;
625
+
626
+ /**
627
+ * The pay rates for each segment of the time entry.
628
+ */
629
+ segments?: Array<TimeEntryRetrieveResponse.Segment>;
630
+
631
+ /**
632
+ * Arbitrary shift inputs collected on the time entry
633
+ */
634
+ shift_input_values?: Array<TimeEntryRetrieveResponse.ShiftInputValue>;
635
+
636
+ /**
637
+ * The start time of the time entry.
638
+ */
639
+ start_time?: string;
640
+
641
+ /**
642
+ * The status of the time entry.
643
+ */
644
+ status?: 'DRAFT' | 'APPROVED' | 'PAID' | 'FINALIZED';
645
+
646
+ /**
647
+ * The tags associated with the time entry.
648
+ */
649
+ tags?: Array<string>;
650
+
651
+ /**
652
+ * The time card associated with the time entry.
653
+ *
654
+ * Expandable field
655
+ */
656
+ time_card?: TimeCardsAPI.TimeCard;
657
+
658
+ /**
659
+ * The ID of the time card associated with the time entry.
660
+ */
661
+ time_card_id?: string;
662
+
663
+ /**
664
+ * A summary of the time entry.
665
+ */
666
+ time_entry_summary?: TimeEntryRetrieveResponse.TimeEntrySummary;
667
+
668
+ /**
669
+ * The worker associated with the time entry.
670
+ *
671
+ * Expandable field
672
+ */
673
+ worker?: WorkersAPI.Worker;
674
+ }
675
+
676
+ export namespace TimeEntryRetrieveResponse {
677
+ export interface Break {
678
+ /**
679
+ * The ID of the break type.
680
+ */
681
+ break_type_id?: string;
682
+
683
+ /**
684
+ * The end time of the break.
685
+ */
686
+ end_time?: string;
687
+
688
+ /**
689
+ * The original end time of the break. If the endTime field has been rounded then
690
+ * this contain the end time before the rounding occured.
691
+ */
692
+ original_end_time?: string;
693
+
694
+ /**
695
+ * The original start time of the break. If the startTime field has been rounded
696
+ * then this contain the start time before the rounding occured.
697
+ */
698
+ original_start_time?: string;
699
+
700
+ /**
701
+ * The start time of the break.
702
+ */
703
+ start_time?: string;
704
+ }
705
+
706
+ export interface Comment {
707
+ /**
708
+ * The ID of the worker who made of the comment.
709
+ */
710
+ author_id?: string;
711
+
712
+ /**
713
+ * The time the comment was created.
714
+ */
715
+ created_at?: string;
716
+
717
+ /**
718
+ * The text of the comment.
719
+ */
720
+ text?: string;
721
+ }
722
+
723
+ export interface JobShift {
724
+ /**
725
+ * The end time of the job shift.
726
+ */
727
+ end_time?: string;
728
+
729
+ /**
730
+ * Whether the job shift was entered as a duration in hours table
731
+ */
732
+ is_hours_only_input?: boolean;
733
+
734
+ /**
735
+ * The IDs of the job codes associated with the job shift.
736
+ */
737
+ job_codes_id?: Array<string>;
738
+
739
+ /**
740
+ * The original end time of the job shift. If the endTime field has been rounded
741
+ * then this contain the end time before the rounding occured.
742
+ */
743
+ original_end_time?: string;
744
+
745
+ /**
746
+ * The original start time of the job shift. If the startTime field has been
747
+ * rounded then this contain the start time before the rounding occured.
748
+ */
749
+ original_start_time?: string;
750
+
751
+ /**
752
+ * The start time of the job shift.
753
+ */
754
+ start_time?: string;
755
+ }
756
+
757
+ export interface PieceRatePremium {
758
+ /**
759
+ * The piece rate name.
760
+ */
761
+ name?: string;
762
+
763
+ /**
764
+ * The pay rate for this piece rate premium.
765
+ */
766
+ premium_rate?: number;
767
+
768
+ /**
769
+ * The total units produced at the premium rate.
770
+ */
771
+ premium_units?: number;
772
+ }
773
+
774
+ export interface Premium {
775
+ /**
776
+ * The pay rate name
777
+ */
778
+ name?: string;
779
+
780
+ /**
781
+ * The total hours worked for at the premium rate.
782
+ */
783
+ premium_hours?: number;
784
+
785
+ /**
786
+ * The pay rate for this premium.
787
+ */
788
+ premium_rate?: number;
789
+ }
790
+
791
+ export interface Segment {
792
+ /**
793
+ * The ID of the break type.
794
+ */
795
+ break_type_id?: string;
796
+
797
+ /**
798
+ * Name of the final earning for the segment.
799
+ */
800
+ display_name?: string;
801
+
802
+ /**
803
+ * The end time of the segment.
804
+ */
805
+ end_time?: string;
806
+
807
+ /**
808
+ * The IDs of the job codes associated with the segment.
809
+ */
810
+ job_codes_id?: Array<string>;
811
+
812
+ /**
813
+ * The multiplier for overtime hours in this segment.
814
+ */
815
+ ot_multiplier?: number;
816
+
817
+ /**
818
+ * The pay rate for this segment.
819
+ */
820
+ pay_rate?: number;
821
+
822
+ /**
823
+ * The start time of the segment.
824
+ */
825
+ start_time?: string;
826
+ }
827
+
828
+ export interface ShiftInputValue {
829
+ /**
830
+ * The id of the relevant shift input
831
+ */
832
+ shift_input_id: string;
833
+
834
+ /**
835
+ * The value of the shift input.
836
+ */
837
+ value: unknown;
838
+
839
+ /**
840
+ * The id of the role that last added/updated this input.
841
+ */
842
+ author_id?: string;
843
+ }
844
+
845
+ /**
846
+ * A summary of the time entry.
847
+ */
848
+ export interface TimeEntrySummary {
849
+ /**
850
+ * The number of double overtime hours worked during this time entry.
851
+ */
852
+ double_over_time_hours?: number;
853
+
854
+ /**
855
+ * The duration of the time entry.
856
+ */
857
+ duration?: number;
858
+
859
+ /**
860
+ * The number of overtime hours worked during this time entry.
861
+ */
862
+ over_time_hours?: number;
863
+
864
+ /**
865
+ * The number of regular hours worked during this time entry.
866
+ */
867
+ regular_hours?: number;
868
+ }
869
+ }
870
+
871
+ export interface TimeEntryUpdateResponse {
872
+ /**
873
+ * Identifier field
874
+ */
875
+ id: string;
876
+
877
+ /**
878
+ * Record creation date
879
+ */
880
+ created_at: string;
881
+
882
+ /**
883
+ * Record update date
884
+ */
885
+ updated_at: string;
886
+
887
+ /**
888
+ * The ID of the worker associated with the time entry.
889
+ */
890
+ worker_id: string;
891
+
892
+ /**
893
+ * The breaks taken during the time entry.
894
+ */
895
+ breaks?: Array<TimeEntryUpdateResponse.Break>;
896
+
897
+ /**
898
+ * The comments associated with the time entry.
899
+ */
900
+ comments?: Array<TimeEntryUpdateResponse.Comment>;
901
+
902
+ /**
903
+ * Whether the time entry should create an extra hours run.
904
+ */
905
+ create_extra_hours_run?: boolean;
906
+
907
+ /**
908
+ * The end time of the time entry.
909
+ */
910
+ end_time?: string;
911
+
912
+ /**
913
+ * The unique key of the time entry in an outside system. If set, no other time
914
+ * entry with the same key can be created.
915
+ */
916
+ idempotency_key?: string;
917
+
918
+ /**
919
+ * The job shifts worked during the time entry.
920
+ */
921
+ job_shifts?: Array<TimeEntryUpdateResponse.JobShift>;
922
+
923
+ /**
924
+ * The pay period associated with the time card.
925
+ */
926
+ pay_period?: TimeCardsAPI.PayPeriod;
927
+
928
+ /**
929
+ * The piece-rate premiums earned during the time entry.
930
+ */
931
+ piece_rate_premiums?: Array<TimeEntryUpdateResponse.PieceRatePremium>;
932
+
933
+ /**
934
+ * The premiums earned during the time entry.
935
+ */
936
+ premiums?: Array<TimeEntryUpdateResponse.Premium>;
937
+
938
+ /**
939
+ * The pay rates for each segment of the time entry.
940
+ */
941
+ segments?: Array<TimeEntryUpdateResponse.Segment>;
942
+
943
+ /**
944
+ * Arbitrary shift inputs collected on the time entry
945
+ */
946
+ shift_input_values?: Array<TimeEntryUpdateResponse.ShiftInputValue>;
947
+
948
+ /**
949
+ * The start time of the time entry.
950
+ */
951
+ start_time?: string;
952
+
953
+ /**
954
+ * The status of the time entry.
955
+ */
956
+ status?: 'DRAFT' | 'APPROVED' | 'PAID' | 'FINALIZED';
957
+
958
+ /**
959
+ * The tags associated with the time entry.
960
+ */
961
+ tags?: Array<string>;
962
+
963
+ /**
964
+ * The time card associated with the time entry.
965
+ *
966
+ * Expandable field
967
+ */
968
+ time_card?: TimeCardsAPI.TimeCard;
969
+
970
+ /**
971
+ * The ID of the time card associated with the time entry.
972
+ */
973
+ time_card_id?: string;
974
+
975
+ /**
976
+ * A summary of the time entry.
977
+ */
978
+ time_entry_summary?: TimeEntryUpdateResponse.TimeEntrySummary;
979
+
980
+ /**
981
+ * The worker associated with the time entry.
982
+ *
983
+ * Expandable field
984
+ */
985
+ worker?: WorkersAPI.Worker;
986
+ }
987
+
988
+ export namespace TimeEntryUpdateResponse {
989
+ export interface Break {
990
+ /**
991
+ * The ID of the break type.
992
+ */
993
+ break_type_id?: string;
994
+
995
+ /**
996
+ * The end time of the break.
997
+ */
998
+ end_time?: string;
999
+
1000
+ /**
1001
+ * The original end time of the break. If the endTime field has been rounded then
1002
+ * this contain the end time before the rounding occured.
1003
+ */
1004
+ original_end_time?: string;
1005
+
1006
+ /**
1007
+ * The original start time of the break. If the startTime field has been rounded
1008
+ * then this contain the start time before the rounding occured.
1009
+ */
1010
+ original_start_time?: string;
1011
+
1012
+ /**
1013
+ * The start time of the break.
1014
+ */
1015
+ start_time?: string;
1016
+ }
1017
+
1018
+ export interface Comment {
1019
+ /**
1020
+ * The ID of the worker who made of the comment.
1021
+ */
1022
+ author_id?: string;
1023
+
1024
+ /**
1025
+ * The time the comment was created.
1026
+ */
1027
+ created_at?: string;
1028
+
1029
+ /**
1030
+ * The text of the comment.
1031
+ */
1032
+ text?: string;
1033
+ }
1034
+
1035
+ export interface JobShift {
1036
+ /**
1037
+ * The end time of the job shift.
1038
+ */
1039
+ end_time?: string;
1040
+
1041
+ /**
1042
+ * Whether the job shift was entered as a duration in hours table
1043
+ */
1044
+ is_hours_only_input?: boolean;
1045
+
1046
+ /**
1047
+ * The IDs of the job codes associated with the job shift.
1048
+ */
1049
+ job_codes_id?: Array<string>;
1050
+
1051
+ /**
1052
+ * The original end time of the job shift. If the endTime field has been rounded
1053
+ * then this contain the end time before the rounding occured.
1054
+ */
1055
+ original_end_time?: string;
1056
+
1057
+ /**
1058
+ * The original start time of the job shift. If the startTime field has been
1059
+ * rounded then this contain the start time before the rounding occured.
1060
+ */
1061
+ original_start_time?: string;
1062
+
1063
+ /**
1064
+ * The start time of the job shift.
1065
+ */
1066
+ start_time?: string;
1067
+ }
1068
+
1069
+ export interface PieceRatePremium {
1070
+ /**
1071
+ * The piece rate name.
1072
+ */
1073
+ name?: string;
1074
+
1075
+ /**
1076
+ * The pay rate for this piece rate premium.
1077
+ */
1078
+ premium_rate?: number;
1079
+
1080
+ /**
1081
+ * The total units produced at the premium rate.
1082
+ */
1083
+ premium_units?: number;
1084
+ }
1085
+
1086
+ export interface Premium {
1087
+ /**
1088
+ * The pay rate name
1089
+ */
1090
+ name?: string;
1091
+
1092
+ /**
1093
+ * The total hours worked for at the premium rate.
1094
+ */
1095
+ premium_hours?: number;
1096
+
1097
+ /**
1098
+ * The pay rate for this premium.
1099
+ */
1100
+ premium_rate?: number;
1101
+ }
1102
+
1103
+ export interface Segment {
1104
+ /**
1105
+ * The ID of the break type.
1106
+ */
1107
+ break_type_id?: string;
1108
+
1109
+ /**
1110
+ * Name of the final earning for the segment.
1111
+ */
1112
+ display_name?: string;
1113
+
1114
+ /**
1115
+ * The end time of the segment.
1116
+ */
1117
+ end_time?: string;
1118
+
1119
+ /**
1120
+ * The IDs of the job codes associated with the segment.
1121
+ */
1122
+ job_codes_id?: Array<string>;
1123
+
1124
+ /**
1125
+ * The multiplier for overtime hours in this segment.
1126
+ */
1127
+ ot_multiplier?: number;
1128
+
1129
+ /**
1130
+ * The pay rate for this segment.
1131
+ */
1132
+ pay_rate?: number;
1133
+
1134
+ /**
1135
+ * The start time of the segment.
1136
+ */
1137
+ start_time?: string;
1138
+ }
1139
+
1140
+ export interface ShiftInputValue {
1141
+ /**
1142
+ * The id of the relevant shift input
1143
+ */
1144
+ shift_input_id: string;
1145
+
1146
+ /**
1147
+ * The value of the shift input.
1148
+ */
1149
+ value: unknown;
1150
+
1151
+ /**
1152
+ * The id of the role that last added/updated this input.
1153
+ */
1154
+ author_id?: string;
1155
+ }
1156
+
1157
+ /**
1158
+ * A summary of the time entry.
1159
+ */
1160
+ export interface TimeEntrySummary {
1161
+ /**
1162
+ * The number of double overtime hours worked during this time entry.
1163
+ */
1164
+ double_over_time_hours?: number;
1165
+
1166
+ /**
1167
+ * The duration of the time entry.
1168
+ */
1169
+ duration?: number;
1170
+
1171
+ /**
1172
+ * The number of overtime hours worked during this time entry.
1173
+ */
1174
+ over_time_hours?: number;
1175
+
1176
+ /**
1177
+ * The number of regular hours worked during this time entry.
1178
+ */
1179
+ regular_hours?: number;
1180
+ }
1181
+ }
1182
+
1183
+ export interface TimeEntryListResponse {
1184
+ /**
1185
+ * Identifier field
1186
+ */
1187
+ id: string;
1188
+
1189
+ /**
1190
+ * Record creation date
1191
+ */
1192
+ created_at: string;
1193
+
1194
+ /**
1195
+ * Record update date
1196
+ */
1197
+ updated_at: string;
1198
+
1199
+ /**
1200
+ * The ID of the worker associated with the time entry.
1201
+ */
1202
+ worker_id: string;
1203
+
1204
+ /**
1205
+ * The breaks taken during the time entry.
1206
+ */
1207
+ breaks?: Array<TimeEntryListResponse.Break>;
1208
+
1209
+ /**
1210
+ * The comments associated with the time entry.
1211
+ */
1212
+ comments?: Array<TimeEntryListResponse.Comment>;
1213
+
1214
+ /**
1215
+ * Whether the time entry should create an extra hours run.
1216
+ */
1217
+ create_extra_hours_run?: boolean;
1218
+
1219
+ /**
1220
+ * The end time of the time entry.
1221
+ */
1222
+ end_time?: string;
1223
+
1224
+ /**
1225
+ * The unique key of the time entry in an outside system. If set, no other time
1226
+ * entry with the same key can be created.
1227
+ */
1228
+ idempotency_key?: string;
1229
+
1230
+ /**
1231
+ * The job shifts worked during the time entry.
1232
+ */
1233
+ job_shifts?: Array<TimeEntryListResponse.JobShift>;
1234
+
1235
+ /**
1236
+ * The pay period associated with the time card.
1237
+ */
1238
+ pay_period?: TimeCardsAPI.PayPeriod;
1239
+
1240
+ /**
1241
+ * The piece-rate premiums earned during the time entry.
1242
+ */
1243
+ piece_rate_premiums?: Array<TimeEntryListResponse.PieceRatePremium>;
1244
+
1245
+ /**
1246
+ * The premiums earned during the time entry.
1247
+ */
1248
+ premiums?: Array<TimeEntryListResponse.Premium>;
1249
+
1250
+ /**
1251
+ * The pay rates for each segment of the time entry.
1252
+ */
1253
+ segments?: Array<TimeEntryListResponse.Segment>;
1254
+
1255
+ /**
1256
+ * Arbitrary shift inputs collected on the time entry
1257
+ */
1258
+ shift_input_values?: Array<TimeEntryListResponse.ShiftInputValue>;
1259
+
1260
+ /**
1261
+ * The start time of the time entry.
1262
+ */
1263
+ start_time?: string;
1264
+
1265
+ /**
1266
+ * The status of the time entry.
1267
+ */
1268
+ status?: 'DRAFT' | 'APPROVED' | 'PAID' | 'FINALIZED';
1269
+
1270
+ /**
1271
+ * The tags associated with the time entry.
1272
+ */
1273
+ tags?: Array<string>;
1274
+
1275
+ /**
1276
+ * The time card associated with the time entry.
1277
+ *
1278
+ * Expandable field
1279
+ */
1280
+ time_card?: TimeCardsAPI.TimeCard;
1281
+
1282
+ /**
1283
+ * The ID of the time card associated with the time entry.
1284
+ */
1285
+ time_card_id?: string;
1286
+
1287
+ /**
1288
+ * A summary of the time entry.
1289
+ */
1290
+ time_entry_summary?: TimeEntryListResponse.TimeEntrySummary;
1291
+
1292
+ /**
1293
+ * The worker associated with the time entry.
1294
+ *
1295
+ * Expandable field
1296
+ */
1297
+ worker?: WorkersAPI.Worker;
1298
+ }
1299
+
1300
+ export namespace TimeEntryListResponse {
1301
+ export interface Break {
1302
+ /**
1303
+ * The ID of the break type.
1304
+ */
1305
+ break_type_id?: string;
1306
+
1307
+ /**
1308
+ * The end time of the break.
1309
+ */
1310
+ end_time?: string;
1311
+
1312
+ /**
1313
+ * The original end time of the break. If the endTime field has been rounded then
1314
+ * this contain the end time before the rounding occured.
1315
+ */
1316
+ original_end_time?: string;
1317
+
1318
+ /**
1319
+ * The original start time of the break. If the startTime field has been rounded
1320
+ * then this contain the start time before the rounding occured.
1321
+ */
1322
+ original_start_time?: string;
1323
+
1324
+ /**
1325
+ * The start time of the break.
1326
+ */
1327
+ start_time?: string;
1328
+ }
1329
+
1330
+ export interface Comment {
1331
+ /**
1332
+ * The ID of the worker who made of the comment.
1333
+ */
1334
+ author_id?: string;
1335
+
1336
+ /**
1337
+ * The time the comment was created.
1338
+ */
1339
+ created_at?: string;
1340
+
1341
+ /**
1342
+ * The text of the comment.
1343
+ */
1344
+ text?: string;
1345
+ }
1346
+
1347
+ export interface JobShift {
1348
+ /**
1349
+ * The end time of the job shift.
1350
+ */
1351
+ end_time?: string;
1352
+
1353
+ /**
1354
+ * Whether the job shift was entered as a duration in hours table
1355
+ */
1356
+ is_hours_only_input?: boolean;
1357
+
1358
+ /**
1359
+ * The IDs of the job codes associated with the job shift.
1360
+ */
1361
+ job_codes_id?: Array<string>;
1362
+
1363
+ /**
1364
+ * The original end time of the job shift. If the endTime field has been rounded
1365
+ * then this contain the end time before the rounding occured.
1366
+ */
1367
+ original_end_time?: string;
1368
+
1369
+ /**
1370
+ * The original start time of the job shift. If the startTime field has been
1371
+ * rounded then this contain the start time before the rounding occured.
1372
+ */
1373
+ original_start_time?: string;
1374
+
1375
+ /**
1376
+ * The start time of the job shift.
1377
+ */
1378
+ start_time?: string;
1379
+ }
1380
+
1381
+ export interface PieceRatePremium {
1382
+ /**
1383
+ * The piece rate name.
1384
+ */
1385
+ name?: string;
1386
+
1387
+ /**
1388
+ * The pay rate for this piece rate premium.
1389
+ */
1390
+ premium_rate?: number;
1391
+
1392
+ /**
1393
+ * The total units produced at the premium rate.
1394
+ */
1395
+ premium_units?: number;
1396
+ }
1397
+
1398
+ export interface Premium {
1399
+ /**
1400
+ * The pay rate name
1401
+ */
1402
+ name?: string;
1403
+
1404
+ /**
1405
+ * The total hours worked for at the premium rate.
1406
+ */
1407
+ premium_hours?: number;
1408
+
1409
+ /**
1410
+ * The pay rate for this premium.
1411
+ */
1412
+ premium_rate?: number;
1413
+ }
1414
+
1415
+ export interface Segment {
1416
+ /**
1417
+ * The ID of the break type.
1418
+ */
1419
+ break_type_id?: string;
1420
+
1421
+ /**
1422
+ * Name of the final earning for the segment.
1423
+ */
1424
+ display_name?: string;
1425
+
1426
+ /**
1427
+ * The end time of the segment.
1428
+ */
1429
+ end_time?: string;
1430
+
1431
+ /**
1432
+ * The IDs of the job codes associated with the segment.
1433
+ */
1434
+ job_codes_id?: Array<string>;
1435
+
1436
+ /**
1437
+ * The multiplier for overtime hours in this segment.
1438
+ */
1439
+ ot_multiplier?: number;
1440
+
1441
+ /**
1442
+ * The pay rate for this segment.
1443
+ */
1444
+ pay_rate?: number;
1445
+
1446
+ /**
1447
+ * The start time of the segment.
1448
+ */
1449
+ start_time?: string;
1450
+ }
1451
+
1452
+ export interface ShiftInputValue {
1453
+ /**
1454
+ * The id of the relevant shift input
1455
+ */
1456
+ shift_input_id: string;
1457
+
1458
+ /**
1459
+ * The value of the shift input.
1460
+ */
1461
+ value: unknown;
1462
+
1463
+ /**
1464
+ * The id of the role that last added/updated this input.
1465
+ */
1466
+ author_id?: string;
1467
+ }
1468
+
1469
+ /**
1470
+ * A summary of the time entry.
1471
+ */
1472
+ export interface TimeEntrySummary {
1473
+ /**
1474
+ * The number of double overtime hours worked during this time entry.
1475
+ */
1476
+ double_over_time_hours?: number;
1477
+
1478
+ /**
1479
+ * The duration of the time entry.
1480
+ */
1481
+ duration?: number;
1482
+
1483
+ /**
1484
+ * The number of overtime hours worked during this time entry.
1485
+ */
1486
+ over_time_hours?: number;
1487
+
1488
+ /**
1489
+ * The number of regular hours worked during this time entry.
1490
+ */
1491
+ regular_hours?: number;
1492
+ }
1493
+ }
1494
+
1495
+ export interface TimeEntryCreateParams {
1496
+ /**
1497
+ * The ID of the worker associated with the time entry.
1498
+ */
1499
+ worker_id: string;
1500
+
1501
+ /**
1502
+ * The breaks taken during the time entry.
1503
+ */
1504
+ breaks?: Array<TimeEntryCreateParams.Break>;
1505
+
1506
+ /**
1507
+ * The comments associated with the time entry.
1508
+ */
1509
+ comments?: Array<TimeEntryCreateParams.Comment>;
1510
+
1511
+ /**
1512
+ * Whether the time entry should create an extra hours run.
1513
+ */
1514
+ create_extra_hours_run?: boolean;
1515
+
1516
+ /**
1517
+ * The duration of the time entry.
1518
+ */
1519
+ duration?: number;
1520
+
1521
+ /**
1522
+ * The unique key of the time entry in an outside system. If set, no other time
1523
+ * entry with the same key can be created.
1524
+ */
1525
+ idempotency_key?: string;
1526
+
1527
+ /**
1528
+ * The job shifts worked during the time entry.
1529
+ */
1530
+ job_shifts?: Array<TimeEntryCreateParams.JobShift>;
1531
+
1532
+ /**
1533
+ * The pay period associated with the time card.
1534
+ */
1535
+ pay_period?: TimeEntryCreateParams.PayPeriod;
1536
+
1537
+ /**
1538
+ * Arbitrary shift inputs collected on the time entry
1539
+ */
1540
+ shift_input_values?: Array<TimeEntryCreateParams.ShiftInputValue>;
1541
+
1542
+ /**
1543
+ * The date of the time entry if using duration.
1544
+ */
1545
+ start_date?: string;
1546
+
1547
+ /**
1548
+ * The status of the time entry.
1549
+ */
1550
+ status?: 'DRAFT' | 'APPROVED' | 'PAID' | 'FINALIZED';
1551
+
1552
+ /**
1553
+ * The tags associated with the time entry.
1554
+ */
1555
+ tags?: Array<string>;
1556
+ }
1557
+
1558
+ export namespace TimeEntryCreateParams {
1559
+ export interface Break {
1560
+ /**
1561
+ * The ID of the break type.
1562
+ */
1563
+ break_type_id?: string;
1564
+
1565
+ /**
1566
+ * The end time of the break.
1567
+ */
1568
+ end_time?: string;
1569
+
1570
+ /**
1571
+ * The start time of the break.
1572
+ */
1573
+ start_time?: string;
1574
+ }
1575
+
1576
+ export interface Comment {
1577
+ /**
1578
+ * The text of the comment.
1579
+ */
1580
+ text?: string;
1581
+ }
1582
+
1583
+ export interface JobShift {
1584
+ /**
1585
+ * The duration of the job shift.
1586
+ */
1587
+ duration?: number;
1588
+
1589
+ /**
1590
+ * The end time of the job shift.
1591
+ */
1592
+ end_time?: string;
1593
+
1594
+ /**
1595
+ * Whether the job shift was entered as a duration in hours table
1596
+ */
1597
+ is_hours_only_input?: boolean;
1598
+
1599
+ /**
1600
+ * The IDs of the job codes associated with the job shift.
1601
+ */
1602
+ job_codes_id?: Array<string>;
1603
+
1604
+ /**
1605
+ * The original end time of the job shift. If the endTime field has been rounded
1606
+ * then this contain the end time before the rounding occured.
1607
+ */
1608
+ original_end_time?: string;
1609
+
1610
+ /**
1611
+ * The original start time of the job shift. If the startTime field has been
1612
+ * rounded then this contain the start time before the rounding occured.
1613
+ */
1614
+ original_start_time?: string;
1615
+
1616
+ /**
1617
+ * The date of the job shift if using duration.
1618
+ */
1619
+ start_date?: string;
1620
+
1621
+ /**
1622
+ * The start time of the job shift.
1623
+ */
1624
+ start_time?: string;
1625
+ }
1626
+
1627
+ /**
1628
+ * The pay period associated with the time card.
1629
+ */
1630
+ export interface PayPeriod {
1631
+ /**
1632
+ * The end date of the pay period.
1633
+ */
1634
+ end_date?: string;
1635
+
1636
+ /**
1637
+ * The ID of the pay schedule associated with the pay period.
1638
+ */
1639
+ pay_schedule_id?: string;
1640
+
1641
+ /**
1642
+ * The start date of the pay period.
1643
+ */
1644
+ start_date?: string;
1645
+ }
1646
+
1647
+ export interface ShiftInputValue {
1648
+ /**
1649
+ * The id of the relevant shift input
1650
+ */
1651
+ shift_input_id: string;
1652
+
1653
+ /**
1654
+ * The value of the shift input.
1655
+ */
1656
+ value: unknown;
1657
+
1658
+ /**
1659
+ * The id of the role that last added/updated this input.
1660
+ */
1661
+ author_id?: string;
1662
+ }
1663
+ }
1664
+
1665
+ export interface TimeEntryRetrieveParams {
1666
+ expand?: string;
1667
+ }
1668
+
1669
+ export interface TimeEntryUpdateParams {
1670
+ /**
1671
+ * The ID of the worker associated with the time entry.
1672
+ */
1673
+ worker_id: string;
1674
+
1675
+ /**
1676
+ * The breaks taken during the time entry.
1677
+ */
1678
+ breaks?: Array<TimeEntryUpdateParams.Break>;
1679
+
1680
+ /**
1681
+ * The comments associated with the time entry.
1682
+ */
1683
+ comments?: Array<TimeEntryUpdateParams.Comment>;
1684
+
1685
+ /**
1686
+ * Whether the time entry should create an extra hours run.
1687
+ */
1688
+ create_extra_hours_run?: boolean;
1689
+
1690
+ /**
1691
+ * The duration of the time entry.
1692
+ */
1693
+ duration?: number;
1694
+
1695
+ /**
1696
+ * The unique key of the time entry in an outside system. If set, no other time
1697
+ * entry with the same key can be created.
1698
+ */
1699
+ idempotency_key?: string;
1700
+
1701
+ /**
1702
+ * The job shifts worked during the time entry.
1703
+ */
1704
+ job_shifts?: Array<TimeEntryUpdateParams.JobShift>;
1705
+
1706
+ /**
1707
+ * The pay period associated with the time card.
1708
+ */
1709
+ pay_period?: TimeEntryUpdateParams.PayPeriod;
1710
+
1711
+ /**
1712
+ * Arbitrary shift inputs collected on the time entry
1713
+ */
1714
+ shift_input_values?: Array<TimeEntryUpdateParams.ShiftInputValue>;
1715
+
1716
+ /**
1717
+ * The date of the time entry if using duration.
1718
+ */
1719
+ start_date?: string;
1720
+
1721
+ /**
1722
+ * The status of the time entry.
1723
+ */
1724
+ status?: 'DRAFT' | 'APPROVED' | 'PAID' | 'FINALIZED';
1725
+
1726
+ /**
1727
+ * The tags associated with the time entry.
1728
+ */
1729
+ tags?: Array<string>;
1730
+ }
1731
+
1732
+ export namespace TimeEntryUpdateParams {
1733
+ export interface Break {
1734
+ /**
1735
+ * The ID of the break type.
1736
+ */
1737
+ break_type_id?: string;
1738
+
1739
+ /**
1740
+ * The end time of the break.
1741
+ */
1742
+ end_time?: string;
1743
+
1744
+ /**
1745
+ * The start time of the break.
1746
+ */
1747
+ start_time?: string;
1748
+ }
1749
+
1750
+ export interface Comment {
1751
+ /**
1752
+ * The text of the comment.
1753
+ */
1754
+ text?: string;
1755
+ }
1756
+
1757
+ export interface JobShift {
1758
+ /**
1759
+ * The duration of the job shift.
1760
+ */
1761
+ duration?: number;
1762
+
1763
+ /**
1764
+ * The end time of the job shift.
1765
+ */
1766
+ end_time?: string;
1767
+
1768
+ /**
1769
+ * Whether the job shift was entered as a duration in hours table
1770
+ */
1771
+ is_hours_only_input?: boolean;
1772
+
1773
+ /**
1774
+ * The IDs of the job codes associated with the job shift.
1775
+ */
1776
+ job_codes_id?: Array<string>;
1777
+
1778
+ /**
1779
+ * The original end time of the job shift. If the endTime field has been rounded
1780
+ * then this contain the end time before the rounding occured.
1781
+ */
1782
+ original_end_time?: string;
1783
+
1784
+ /**
1785
+ * The original start time of the job shift. If the startTime field has been
1786
+ * rounded then this contain the start time before the rounding occured.
1787
+ */
1788
+ original_start_time?: string;
1789
+
1790
+ /**
1791
+ * The date of the job shift if using duration.
1792
+ */
1793
+ start_date?: string;
1794
+
1795
+ /**
1796
+ * The start time of the job shift.
1797
+ */
1798
+ start_time?: string;
1799
+ }
1800
+
1801
+ /**
1802
+ * The pay period associated with the time card.
1803
+ */
1804
+ export interface PayPeriod {
1805
+ /**
1806
+ * The end date of the pay period.
1807
+ */
1808
+ end_date?: string;
1809
+
1810
+ /**
1811
+ * The ID of the pay schedule associated with the pay period.
1812
+ */
1813
+ pay_schedule_id?: string;
1814
+
1815
+ /**
1816
+ * The start date of the pay period.
1817
+ */
1818
+ start_date?: string;
1819
+ }
1820
+
1821
+ export interface ShiftInputValue {
1822
+ /**
1823
+ * The id of the relevant shift input
1824
+ */
1825
+ shift_input_id: string;
1826
+
1827
+ /**
1828
+ * The value of the shift input.
1829
+ */
1830
+ value: unknown;
1831
+
1832
+ /**
1833
+ * The id of the role that last added/updated this input.
1834
+ */
1835
+ author_id?: string;
1836
+ }
1837
+ }
1838
+
1839
+ export interface TimeEntryListParams {
1840
+ expand?: string;
1841
+
1842
+ filter?: string;
1843
+
1844
+ order_by?: string;
1845
+ }
1846
+
1847
+ export declare namespace TimeEntries {
1848
+ export {
1849
+ type TimeEntry as TimeEntry,
1850
+ type TimeEntryCreateResponse as TimeEntryCreateResponse,
1851
+ type TimeEntryRetrieveResponse as TimeEntryRetrieveResponse,
1852
+ type TimeEntryUpdateResponse as TimeEntryUpdateResponse,
1853
+ type TimeEntryListResponse as TimeEntryListResponse,
1854
+ type TimeEntryListResponsesPageCursorURL as TimeEntryListResponsesPageCursorURL,
1855
+ type TimeEntryCreateParams as TimeEntryCreateParams,
1856
+ type TimeEntryRetrieveParams as TimeEntryRetrieveParams,
1857
+ type TimeEntryUpdateParams as TimeEntryUpdateParams,
1858
+ type TimeEntryListParams as TimeEntryListParams,
1859
+ };
1860
+ }