conductor-node 11.10.1 → 12.0.0-beta.2

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 (510) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/LICENSE +201 -21
  3. package/README.md +336 -64
  4. package/_shims/MultipartBody.d.ts +9 -0
  5. package/_shims/MultipartBody.d.ts.map +1 -0
  6. package/_shims/MultipartBody.js +16 -0
  7. package/_shims/MultipartBody.js.map +1 -0
  8. package/_shims/MultipartBody.mjs +12 -0
  9. package/_shims/MultipartBody.mjs.map +1 -0
  10. package/_shims/README.md +46 -0
  11. package/_shims/auto/runtime-bun.d.ts +5 -0
  12. package/_shims/auto/runtime-bun.d.ts.map +1 -0
  13. package/_shims/auto/runtime-bun.js +21 -0
  14. package/_shims/auto/runtime-bun.js.map +1 -0
  15. package/_shims/auto/runtime-bun.mjs +2 -0
  16. package/_shims/auto/runtime-bun.mjs.map +1 -0
  17. package/_shims/auto/runtime-node.d.ts +5 -0
  18. package/_shims/auto/runtime-node.d.ts.map +1 -0
  19. package/_shims/auto/runtime-node.js +21 -0
  20. package/_shims/auto/runtime-node.js.map +1 -0
  21. package/_shims/auto/runtime-node.mjs +2 -0
  22. package/_shims/auto/runtime-node.mjs.map +1 -0
  23. package/_shims/auto/runtime.d.ts +5 -0
  24. package/_shims/auto/runtime.d.ts.map +1 -0
  25. package/_shims/auto/runtime.js +21 -0
  26. package/_shims/auto/runtime.js.map +1 -0
  27. package/_shims/auto/runtime.mjs +2 -0
  28. package/_shims/auto/runtime.mjs.map +1 -0
  29. package/_shims/auto/types-node.d.ts +5 -0
  30. package/_shims/auto/types-node.d.ts.map +1 -0
  31. package/_shims/auto/types-node.js +21 -0
  32. package/_shims/auto/types-node.js.map +1 -0
  33. package/_shims/auto/types-node.mjs +2 -0
  34. package/_shims/auto/types-node.mjs.map +1 -0
  35. package/_shims/auto/types.d.ts +101 -0
  36. package/_shims/auto/types.js +3 -0
  37. package/_shims/auto/types.mjs +3 -0
  38. package/_shims/bun-runtime.d.ts +6 -0
  39. package/_shims/bun-runtime.d.ts.map +1 -0
  40. package/_shims/bun-runtime.js +14 -0
  41. package/_shims/bun-runtime.js.map +1 -0
  42. package/_shims/bun-runtime.mjs +10 -0
  43. package/_shims/bun-runtime.mjs.map +1 -0
  44. package/_shims/index.d.ts +81 -0
  45. package/_shims/index.js +13 -0
  46. package/_shims/index.mjs +7 -0
  47. package/_shims/manual-types.d.ts +12 -0
  48. package/_shims/manual-types.js +3 -0
  49. package/_shims/manual-types.mjs +3 -0
  50. package/_shims/node-runtime.d.ts +3 -0
  51. package/_shims/node-runtime.d.ts.map +1 -0
  52. package/_shims/node-runtime.js +89 -0
  53. package/_shims/node-runtime.js.map +1 -0
  54. package/_shims/node-runtime.mjs +56 -0
  55. package/_shims/node-runtime.mjs.map +1 -0
  56. package/_shims/node-types.d.ts +42 -0
  57. package/_shims/node-types.js +3 -0
  58. package/_shims/node-types.mjs +3 -0
  59. package/_shims/registry.d.ts +37 -0
  60. package/_shims/registry.d.ts.map +1 -0
  61. package/_shims/registry.js +41 -0
  62. package/_shims/registry.js.map +1 -0
  63. package/_shims/registry.mjs +37 -0
  64. package/_shims/registry.mjs.map +1 -0
  65. package/_shims/web-runtime.d.ts +5 -0
  66. package/_shims/web-runtime.d.ts.map +1 -0
  67. package/_shims/web-runtime.js +78 -0
  68. package/_shims/web-runtime.js.map +1 -0
  69. package/_shims/web-runtime.mjs +71 -0
  70. package/_shims/web-runtime.mjs.map +1 -0
  71. package/_shims/web-types.d.ts +83 -0
  72. package/_shims/web-types.js +3 -0
  73. package/_shims/web-types.mjs +3 -0
  74. package/core.d.ts +241 -0
  75. package/core.d.ts.map +1 -0
  76. package/core.js +914 -0
  77. package/core.js.map +1 -0
  78. package/core.mjs +882 -0
  79. package/core.mjs.map +1 -0
  80. package/error.d.ts +47 -0
  81. package/error.d.ts.map +1 -0
  82. package/error.js +113 -0
  83. package/error.js.map +1 -0
  84. package/error.mjs +97 -0
  85. package/error.mjs.map +1 -0
  86. package/index.d.mts +121 -0
  87. package/index.d.ts +121 -0
  88. package/index.d.ts.map +1 -0
  89. package/index.js +133 -0
  90. package/index.js.map +1 -0
  91. package/index.mjs +90 -0
  92. package/index.mjs.map +1 -0
  93. package/internal/qs/formats.d.ts +6 -0
  94. package/internal/qs/formats.d.ts.map +1 -0
  95. package/internal/qs/formats.js +11 -0
  96. package/internal/qs/formats.js.map +1 -0
  97. package/internal/qs/formats.mjs +8 -0
  98. package/internal/qs/formats.mjs.map +1 -0
  99. package/internal/qs/index.d.ts +10 -0
  100. package/internal/qs/index.d.ts.map +1 -0
  101. package/internal/qs/index.js +14 -0
  102. package/internal/qs/index.js.map +1 -0
  103. package/internal/qs/index.mjs +10 -0
  104. package/internal/qs/index.mjs.map +1 -0
  105. package/internal/qs/stringify.d.ts +3 -0
  106. package/internal/qs/stringify.d.ts.map +1 -0
  107. package/internal/qs/stringify.js +280 -0
  108. package/internal/qs/stringify.js.map +1 -0
  109. package/internal/qs/stringify.mjs +276 -0
  110. package/internal/qs/stringify.mjs.map +1 -0
  111. package/internal/qs/types.d.ts +57 -0
  112. package/internal/qs/types.d.ts.map +1 -0
  113. package/{dist/src/resources → internal/qs}/types.js +1 -0
  114. package/internal/qs/types.js.map +1 -0
  115. package/internal/qs/types.mjs +2 -0
  116. package/internal/qs/types.mjs.map +1 -0
  117. package/internal/qs/utils.d.ts +14 -0
  118. package/internal/qs/utils.d.ts.map +1 -0
  119. package/internal/qs/utils.js +229 -0
  120. package/internal/qs/utils.js.map +1 -0
  121. package/internal/qs/utils.mjs +217 -0
  122. package/internal/qs/utils.mjs.map +1 -0
  123. package/package.json +111 -35
  124. package/pagination.d.ts +18 -0
  125. package/pagination.d.ts.map +1 -0
  126. package/pagination.js +40 -0
  127. package/pagination.js.map +1 -0
  128. package/pagination.mjs +36 -0
  129. package/pagination.mjs.map +1 -0
  130. package/resource.d.ts +6 -0
  131. package/resource.d.ts.map +1 -0
  132. package/resource.js +11 -0
  133. package/resource.js.map +1 -0
  134. package/resource.mjs +7 -0
  135. package/resource.mjs.map +1 -0
  136. package/resources/auth-sessions.d.ts +79 -0
  137. package/resources/auth-sessions.d.ts.map +1 -0
  138. package/resources/auth-sessions.js +23 -0
  139. package/resources/auth-sessions.js.map +1 -0
  140. package/resources/auth-sessions.mjs +19 -0
  141. package/resources/auth-sessions.mjs.map +1 -0
  142. package/resources/end-users.d.ts +154 -0
  143. package/resources/end-users.d.ts.map +1 -0
  144. package/resources/end-users.js +48 -0
  145. package/resources/end-users.js.map +1 -0
  146. package/resources/end-users.mjs +44 -0
  147. package/resources/end-users.mjs.map +1 -0
  148. package/resources/index.d.ts +4 -0
  149. package/resources/index.d.ts.map +1 -0
  150. package/resources/index.js +11 -0
  151. package/resources/index.js.map +1 -0
  152. package/resources/index.mjs +5 -0
  153. package/resources/index.mjs.map +1 -0
  154. package/resources/qbd/accounts.d.ts +579 -0
  155. package/resources/qbd/accounts.d.ts.map +1 -0
  156. package/resources/qbd/accounts.js +54 -0
  157. package/resources/qbd/accounts.js.map +1 -0
  158. package/resources/qbd/accounts.mjs +50 -0
  159. package/resources/qbd/accounts.mjs.map +1 -0
  160. package/resources/qbd/bill-check-payments.d.ts +831 -0
  161. package/resources/qbd/bill-check-payments.d.ts.map +1 -0
  162. package/resources/qbd/bill-check-payments.js +70 -0
  163. package/resources/qbd/bill-check-payments.js.map +1 -0
  164. package/resources/qbd/bill-check-payments.mjs +65 -0
  165. package/resources/qbd/bill-check-payments.mjs.map +1 -0
  166. package/resources/qbd/bill-credit-card-payments.d.ts +641 -0
  167. package/resources/qbd/bill-credit-card-payments.d.ts.map +1 -0
  168. package/resources/qbd/bill-credit-card-payments.js +55 -0
  169. package/resources/qbd/bill-credit-card-payments.js.map +1 -0
  170. package/resources/qbd/bill-credit-card-payments.mjs +50 -0
  171. package/resources/qbd/bill-credit-card-payments.mjs.map +1 -0
  172. package/resources/qbd/bills.d.ts +2561 -0
  173. package/resources/qbd/bills.d.ts.map +1 -0
  174. package/resources/qbd/bills.js +69 -0
  175. package/resources/qbd/bills.js.map +1 -0
  176. package/resources/qbd/bills.mjs +64 -0
  177. package/resources/qbd/bills.mjs.map +1 -0
  178. package/resources/qbd/checks.d.ts +2528 -0
  179. package/resources/qbd/checks.d.ts.map +1 -0
  180. package/resources/qbd/checks.js +69 -0
  181. package/resources/qbd/checks.js.map +1 -0
  182. package/resources/qbd/checks.mjs +64 -0
  183. package/resources/qbd/checks.mjs.map +1 -0
  184. package/resources/qbd/classes.d.ts +289 -0
  185. package/resources/qbd/classes.d.ts.map +1 -0
  186. package/resources/qbd/classes.js +54 -0
  187. package/resources/qbd/classes.js.map +1 -0
  188. package/resources/qbd/classes.mjs +50 -0
  189. package/resources/qbd/classes.mjs.map +1 -0
  190. package/resources/qbd/credit-card-charges.d.ts +2236 -0
  191. package/resources/qbd/credit-card-charges.d.ts.map +1 -0
  192. package/resources/qbd/credit-card-charges.js +69 -0
  193. package/resources/qbd/credit-card-charges.js.map +1 -0
  194. package/resources/qbd/credit-card-charges.mjs +64 -0
  195. package/resources/qbd/credit-card-charges.mjs.map +1 -0
  196. package/resources/qbd/credit-card-credits.d.ts +2233 -0
  197. package/resources/qbd/credit-card-credits.d.ts.map +1 -0
  198. package/resources/qbd/credit-card-credits.js +69 -0
  199. package/resources/qbd/credit-card-credits.js.map +1 -0
  200. package/resources/qbd/credit-card-credits.mjs +64 -0
  201. package/resources/qbd/credit-card-credits.mjs.map +1 -0
  202. package/resources/qbd/credit-memos.d.ts +2649 -0
  203. package/resources/qbd/credit-memos.d.ts.map +1 -0
  204. package/resources/qbd/credit-memos.js +69 -0
  205. package/resources/qbd/credit-memos.js.map +1 -0
  206. package/resources/qbd/credit-memos.mjs +64 -0
  207. package/resources/qbd/credit-memos.mjs.map +1 -0
  208. package/resources/qbd/customers.d.ts +2106 -0
  209. package/resources/qbd/customers.d.ts.map +1 -0
  210. package/resources/qbd/customers.js +58 -0
  211. package/resources/qbd/customers.js.map +1 -0
  212. package/resources/qbd/customers.mjs +53 -0
  213. package/resources/qbd/customers.mjs.map +1 -0
  214. package/resources/qbd/date-driven-terms.d.ts +242 -0
  215. package/resources/qbd/date-driven-terms.d.ts.map +1 -0
  216. package/resources/qbd/date-driven-terms.js +43 -0
  217. package/resources/qbd/date-driven-terms.js.map +1 -0
  218. package/resources/qbd/date-driven-terms.mjs +39 -0
  219. package/resources/qbd/date-driven-terms.mjs.map +1 -0
  220. package/resources/qbd/discount-items.d.ts +576 -0
  221. package/resources/qbd/discount-items.d.ts.map +1 -0
  222. package/resources/qbd/discount-items.js +58 -0
  223. package/resources/qbd/discount-items.js.map +1 -0
  224. package/resources/qbd/discount-items.mjs +53 -0
  225. package/resources/qbd/discount-items.mjs.map +1 -0
  226. package/resources/qbd/employees.d.ts +1669 -0
  227. package/resources/qbd/employees.d.ts.map +1 -0
  228. package/resources/qbd/employees.js +58 -0
  229. package/resources/qbd/employees.js.map +1 -0
  230. package/resources/qbd/employees.mjs +53 -0
  231. package/resources/qbd/employees.mjs.map +1 -0
  232. package/resources/qbd/estimates.d.ts +2493 -0
  233. package/resources/qbd/estimates.d.ts.map +1 -0
  234. package/resources/qbd/estimates.js +69 -0
  235. package/resources/qbd/estimates.js.map +1 -0
  236. package/resources/qbd/estimates.mjs +64 -0
  237. package/resources/qbd/estimates.mjs.map +1 -0
  238. package/resources/qbd/index.d.ts +37 -0
  239. package/resources/qbd/index.d.ts.map +1 -0
  240. package/resources/qbd/index.js +105 -0
  241. package/resources/qbd/index.js.map +1 -0
  242. package/resources/qbd/index.mjs +38 -0
  243. package/resources/qbd/index.mjs.map +1 -0
  244. package/resources/qbd/inventory-adjustments.d.ts +814 -0
  245. package/resources/qbd/inventory-adjustments.d.ts.map +1 -0
  246. package/resources/qbd/inventory-adjustments.js +66 -0
  247. package/resources/qbd/inventory-adjustments.js.map +1 -0
  248. package/resources/qbd/inventory-adjustments.mjs +62 -0
  249. package/resources/qbd/inventory-adjustments.mjs.map +1 -0
  250. package/resources/qbd/inventory-assembly-items.d.ts +931 -0
  251. package/resources/qbd/inventory-assembly-items.d.ts.map +1 -0
  252. package/resources/qbd/inventory-assembly-items.js +54 -0
  253. package/resources/qbd/inventory-assembly-items.js.map +1 -0
  254. package/resources/qbd/inventory-assembly-items.mjs +49 -0
  255. package/resources/qbd/inventory-assembly-items.mjs.map +1 -0
  256. package/resources/qbd/inventory-items.d.ts +844 -0
  257. package/resources/qbd/inventory-items.d.ts.map +1 -0
  258. package/resources/qbd/inventory-items.js +58 -0
  259. package/resources/qbd/inventory-items.js.map +1 -0
  260. package/resources/qbd/inventory-items.mjs +53 -0
  261. package/resources/qbd/inventory-items.mjs.map +1 -0
  262. package/resources/qbd/inventory-sites.d.ts +477 -0
  263. package/resources/qbd/inventory-sites.d.ts.map +1 -0
  264. package/resources/qbd/inventory-sites.js +54 -0
  265. package/resources/qbd/inventory-sites.js.map +1 -0
  266. package/resources/qbd/inventory-sites.mjs +50 -0
  267. package/resources/qbd/inventory-sites.mjs.map +1 -0
  268. package/resources/qbd/invoices.d.ts +2873 -0
  269. package/resources/qbd/invoices.d.ts.map +1 -0
  270. package/resources/qbd/invoices.js +69 -0
  271. package/resources/qbd/invoices.js.map +1 -0
  272. package/resources/qbd/invoices.mjs +64 -0
  273. package/resources/qbd/invoices.mjs.map +1 -0
  274. package/resources/qbd/journal-entries.d.ts +856 -0
  275. package/resources/qbd/journal-entries.d.ts.map +1 -0
  276. package/resources/qbd/journal-entries.js +69 -0
  277. package/resources/qbd/journal-entries.js.map +1 -0
  278. package/resources/qbd/journal-entries.mjs +64 -0
  279. package/resources/qbd/journal-entries.mjs.map +1 -0
  280. package/resources/qbd/non-inventory-items.d.ts +950 -0
  281. package/resources/qbd/non-inventory-items.d.ts.map +1 -0
  282. package/resources/qbd/non-inventory-items.js +58 -0
  283. package/resources/qbd/non-inventory-items.js.map +1 -0
  284. package/resources/qbd/non-inventory-items.mjs +53 -0
  285. package/resources/qbd/non-inventory-items.mjs.map +1 -0
  286. package/resources/qbd/payroll-wage-items.d.ts +215 -0
  287. package/resources/qbd/payroll-wage-items.d.ts.map +1 -0
  288. package/resources/qbd/payroll-wage-items.js +47 -0
  289. package/resources/qbd/payroll-wage-items.js.map +1 -0
  290. package/resources/qbd/payroll-wage-items.mjs +42 -0
  291. package/resources/qbd/payroll-wage-items.mjs.map +1 -0
  292. package/resources/qbd/purchase-orders.d.ts +2554 -0
  293. package/resources/qbd/purchase-orders.d.ts.map +1 -0
  294. package/resources/qbd/purchase-orders.js +69 -0
  295. package/resources/qbd/purchase-orders.js.map +1 -0
  296. package/resources/qbd/purchase-orders.mjs +64 -0
  297. package/resources/qbd/purchase-orders.mjs.map +1 -0
  298. package/resources/qbd/qbd.d.ts +146 -0
  299. package/resources/qbd/qbd.d.ts.map +1 -0
  300. package/resources/qbd/qbd.js +202 -0
  301. package/resources/qbd/qbd.js.map +1 -0
  302. package/resources/qbd/qbd.mjs +175 -0
  303. package/resources/qbd/qbd.mjs.map +1 -0
  304. package/resources/qbd/receive-payments.d.ts +1282 -0
  305. package/resources/qbd/receive-payments.d.ts.map +1 -0
  306. package/resources/qbd/receive-payments.js +70 -0
  307. package/resources/qbd/receive-payments.js.map +1 -0
  308. package/resources/qbd/receive-payments.mjs +65 -0
  309. package/resources/qbd/receive-payments.mjs.map +1 -0
  310. package/resources/qbd/sales-orders.d.ts +2628 -0
  311. package/resources/qbd/sales-orders.d.ts.map +1 -0
  312. package/resources/qbd/sales-orders.js +69 -0
  313. package/resources/qbd/sales-orders.js.map +1 -0
  314. package/resources/qbd/sales-orders.mjs +64 -0
  315. package/resources/qbd/sales-orders.mjs.map +1 -0
  316. package/resources/qbd/sales-receipts.d.ts +3373 -0
  317. package/resources/qbd/sales-receipts.d.ts.map +1 -0
  318. package/resources/qbd/sales-receipts.js +69 -0
  319. package/resources/qbd/sales-receipts.js.map +1 -0
  320. package/resources/qbd/sales-receipts.mjs +64 -0
  321. package/resources/qbd/sales-receipts.mjs.map +1 -0
  322. package/resources/qbd/sales-representatives.d.ts +251 -0
  323. package/resources/qbd/sales-representatives.d.ts.map +1 -0
  324. package/resources/qbd/sales-representatives.js +54 -0
  325. package/resources/qbd/sales-representatives.js.map +1 -0
  326. package/resources/qbd/sales-representatives.mjs +50 -0
  327. package/resources/qbd/sales-representatives.mjs.map +1 -0
  328. package/resources/qbd/sales-tax-codes.d.ts +306 -0
  329. package/resources/qbd/sales-tax-codes.d.ts.map +1 -0
  330. package/resources/qbd/sales-tax-codes.js +54 -0
  331. package/resources/qbd/sales-tax-codes.js.map +1 -0
  332. package/resources/qbd/sales-tax-codes.mjs +50 -0
  333. package/resources/qbd/sales-tax-codes.mjs.map +1 -0
  334. package/resources/qbd/sales-tax-items.d.ts +458 -0
  335. package/resources/qbd/sales-tax-items.d.ts.map +1 -0
  336. package/resources/qbd/sales-tax-items.js +58 -0
  337. package/resources/qbd/sales-tax-items.js.map +1 -0
  338. package/resources/qbd/sales-tax-items.mjs +53 -0
  339. package/resources/qbd/sales-tax-items.mjs.map +1 -0
  340. package/resources/qbd/service-items.d.ts +923 -0
  341. package/resources/qbd/service-items.d.ts.map +1 -0
  342. package/resources/qbd/service-items.js +58 -0
  343. package/resources/qbd/service-items.js.map +1 -0
  344. package/resources/qbd/service-items.mjs +53 -0
  345. package/resources/qbd/service-items.mjs.map +1 -0
  346. package/resources/qbd/standard-terms.d.ts +225 -0
  347. package/resources/qbd/standard-terms.d.ts.map +1 -0
  348. package/resources/qbd/standard-terms.js +43 -0
  349. package/resources/qbd/standard-terms.js.map +1 -0
  350. package/resources/qbd/standard-terms.mjs +39 -0
  351. package/resources/qbd/standard-terms.mjs.map +1 -0
  352. package/resources/qbd/subtotal-items.d.ts +323 -0
  353. package/resources/qbd/subtotal-items.d.ts.map +1 -0
  354. package/resources/qbd/subtotal-items.js +58 -0
  355. package/resources/qbd/subtotal-items.js.map +1 -0
  356. package/resources/qbd/subtotal-items.mjs +53 -0
  357. package/resources/qbd/subtotal-items.mjs.map +1 -0
  358. package/resources/qbd/transfers.d.ts +269 -0
  359. package/resources/qbd/transfers.d.ts.map +1 -0
  360. package/resources/qbd/transfers.js +58 -0
  361. package/resources/qbd/transfers.js.map +1 -0
  362. package/resources/qbd/transfers.mjs +53 -0
  363. package/resources/qbd/transfers.mjs.map +1 -0
  364. package/resources/qbd/vendor-credits.d.ts +2298 -0
  365. package/resources/qbd/vendor-credits.d.ts.map +1 -0
  366. package/resources/qbd/vendor-credits.js +69 -0
  367. package/resources/qbd/vendor-credits.js.map +1 -0
  368. package/resources/qbd/vendor-credits.mjs +64 -0
  369. package/resources/qbd/vendor-credits.mjs.map +1 -0
  370. package/resources/qbd/vendors.d.ts +1677 -0
  371. package/resources/qbd/vendors.d.ts.map +1 -0
  372. package/resources/qbd/vendors.js +58 -0
  373. package/resources/qbd/vendors.js.map +1 -0
  374. package/resources/qbd/vendors.mjs +53 -0
  375. package/resources/qbd/vendors.mjs.map +1 -0
  376. package/shims/node.d.ts +30 -0
  377. package/shims/node.d.ts.map +1 -0
  378. package/shims/node.js +31 -0
  379. package/shims/node.js.map +1 -0
  380. package/shims/node.mjs +5 -0
  381. package/shims/node.mjs.map +1 -0
  382. package/shims/web.d.ts +26 -0
  383. package/shims/web.d.ts.map +1 -0
  384. package/shims/web.js +31 -0
  385. package/shims/web.js.map +1 -0
  386. package/shims/web.mjs +5 -0
  387. package/shims/web.mjs.map +1 -0
  388. package/src/_shims/MultipartBody.ts +9 -0
  389. package/src/_shims/README.md +46 -0
  390. package/src/_shims/auto/runtime-bun.ts +4 -0
  391. package/src/_shims/auto/runtime-node.ts +4 -0
  392. package/src/_shims/auto/runtime.ts +4 -0
  393. package/src/_shims/auto/types-node.ts +4 -0
  394. package/src/_shims/auto/types.d.ts +101 -0
  395. package/src/_shims/auto/types.js +3 -0
  396. package/src/_shims/auto/types.mjs +3 -0
  397. package/src/_shims/bun-runtime.ts +14 -0
  398. package/src/_shims/index.d.ts +81 -0
  399. package/src/_shims/index.js +13 -0
  400. package/src/_shims/index.mjs +7 -0
  401. package/src/_shims/manual-types.d.ts +12 -0
  402. package/src/_shims/manual-types.js +3 -0
  403. package/src/_shims/manual-types.mjs +3 -0
  404. package/src/_shims/node-runtime.ts +81 -0
  405. package/src/_shims/node-types.d.ts +42 -0
  406. package/src/_shims/node-types.js +3 -0
  407. package/src/_shims/node-types.mjs +3 -0
  408. package/src/_shims/registry.ts +67 -0
  409. package/src/_shims/web-runtime.ts +103 -0
  410. package/src/_shims/web-types.d.ts +83 -0
  411. package/src/_shims/web-types.js +3 -0
  412. package/src/_shims/web-types.mjs +3 -0
  413. package/src/core.ts +1208 -0
  414. package/src/error.ts +130 -0
  415. package/src/index.ts +227 -0
  416. package/src/internal/qs/LICENSE.md +13 -0
  417. package/src/internal/qs/README.md +3 -0
  418. package/src/internal/qs/formats.ts +9 -0
  419. package/src/internal/qs/index.ts +13 -0
  420. package/src/internal/qs/stringify.ts +388 -0
  421. package/src/internal/qs/types.ts +71 -0
  422. package/src/internal/qs/utils.ts +265 -0
  423. package/src/lib/.keep +4 -0
  424. package/src/pagination.ts +60 -0
  425. package/src/resource.ts +11 -0
  426. package/src/resources/auth-sessions.ts +99 -0
  427. package/src/resources/end-users.ts +216 -0
  428. package/src/resources/index.ts +14 -0
  429. package/src/resources/qbd/accounts.ts +797 -0
  430. package/src/resources/qbd/bill-check-payments.ts +1086 -0
  431. package/src/resources/qbd/bill-credit-card-payments.ts +851 -0
  432. package/src/resources/qbd/bills.ts +3039 -0
  433. package/src/resources/qbd/checks.ts +3003 -0
  434. package/src/resources/qbd/classes.ts +366 -0
  435. package/src/resources/qbd/credit-card-charges.ts +2646 -0
  436. package/src/resources/qbd/credit-card-credits.ts +2643 -0
  437. package/src/resources/qbd/credit-memos.ts +3157 -0
  438. package/src/resources/qbd/customers.ts +2518 -0
  439. package/src/resources/qbd/date-driven-terms.ts +314 -0
  440. package/src/resources/qbd/discount-items.ts +712 -0
  441. package/src/resources/qbd/employees.ts +2266 -0
  442. package/src/resources/qbd/estimates.ts +2975 -0
  443. package/src/resources/qbd/index.ts +346 -0
  444. package/src/resources/qbd/inventory-adjustments.ts +1008 -0
  445. package/src/resources/qbd/inventory-assembly-items.ts +1126 -0
  446. package/src/resources/qbd/inventory-items.ts +1026 -0
  447. package/src/resources/qbd/inventory-sites.ts +605 -0
  448. package/src/resources/qbd/invoices.ts +3398 -0
  449. package/src/resources/qbd/journal-entries.ts +1051 -0
  450. package/src/resources/qbd/non-inventory-items.ts +1138 -0
  451. package/src/resources/qbd/payroll-wage-items.ts +304 -0
  452. package/src/resources/qbd/purchase-orders.ts +3045 -0
  453. package/src/resources/qbd/qbd.ts +876 -0
  454. package/src/resources/qbd/receive-payments.ts +1609 -0
  455. package/src/resources/qbd/sales-orders.ts +3141 -0
  456. package/src/resources/qbd/sales-receipts.ts +3977 -0
  457. package/src/resources/qbd/sales-representatives.ts +340 -0
  458. package/src/resources/qbd/sales-tax-codes.ts +398 -0
  459. package/src/resources/qbd/sales-tax-items.ts +583 -0
  460. package/src/resources/qbd/service-items.ts +1105 -0
  461. package/src/resources/qbd/standard-terms.ts +295 -0
  462. package/src/resources/qbd/subtotal-items.ts +430 -0
  463. package/src/resources/qbd/transfers.ts +359 -0
  464. package/src/resources/qbd/vendor-credits.ts +2742 -0
  465. package/src/resources/qbd/vendors.ts +2017 -0
  466. package/src/shims/node.ts +50 -0
  467. package/src/shims/web.ts +50 -0
  468. package/src/tsconfig.json +11 -0
  469. package/src/uploads.ts +255 -0
  470. package/src/version.ts +1 -0
  471. package/uploads.d.ts +75 -0
  472. package/uploads.d.ts.map +1 -0
  473. package/uploads.js +171 -0
  474. package/uploads.js.map +1 -0
  475. package/uploads.mjs +158 -0
  476. package/uploads.mjs.map +1 -0
  477. package/version.d.ts +2 -0
  478. package/version.d.ts.map +1 -0
  479. package/version.js +5 -0
  480. package/version.js.map +1 -0
  481. package/version.mjs +2 -0
  482. package/version.mjs.map +1 -0
  483. package/dist/package.json +0 -48
  484. package/dist/src/Client.d.ts +0 -21
  485. package/dist/src/Client.js +0 -54
  486. package/dist/src/index.d.ts +0 -11
  487. package/dist/src/index.js +0 -59
  488. package/dist/src/integrations/BaseIntegration.d.ts +0 -9
  489. package/dist/src/integrations/BaseIntegration.js +0 -14
  490. package/dist/src/integrations/qbd/QbdIntegration.d.ts +0 -3120
  491. package/dist/src/integrations/qbd/QbdIntegration.js +0 -3147
  492. package/dist/src/integrations/qbd/qbdTypes.d.ts +0 -14076
  493. package/dist/src/integrations/qbd/qbdTypes.js +0 -2
  494. package/dist/src/interceptors/errorHandling.d.ts +0 -2
  495. package/dist/src/interceptors/errorHandling.js +0 -53
  496. package/dist/src/interceptors/logging.d.ts +0 -18
  497. package/dist/src/interceptors/logging.js +0 -70
  498. package/dist/src/resources/AuthSessionsResource.d.ts +0 -77
  499. package/dist/src/resources/AuthSessionsResource.js +0 -26
  500. package/dist/src/resources/BaseResource.d.ts +0 -6
  501. package/dist/src/resources/BaseResource.js +0 -9
  502. package/dist/src/resources/EndUsersResource.d.ts +0 -84
  503. package/dist/src/resources/EndUsersResource.js +0 -57
  504. package/dist/src/resources/types.d.ts +0 -40
  505. package/dist/src/utils/checkForUpdates.d.ts +0 -2
  506. package/dist/src/utils/checkForUpdates.js +0 -65
  507. package/dist/src/utils/env.d.ts +0 -1
  508. package/dist/src/utils/env.js +0 -15
  509. package/dist/src/utils/error.d.ts +0 -184
  510. package/dist/src/utils/error.js +0 -254
@@ -0,0 +1,2266 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../resource';
4
+ import * as Core from '../../core';
5
+ import { CursorPage, type CursorPageParams } from '../../pagination';
6
+
7
+ export class Employees extends APIResource {
8
+ /**
9
+ * Creates a new employee.
10
+ */
11
+ create(params: EmployeeCreateParams, options?: Core.RequestOptions): Core.APIPromise<Employee> {
12
+ const { conductorEndUserId, ...body } = params;
13
+ return this._client.post('/quickbooks-desktop/employees', {
14
+ body,
15
+ ...options,
16
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
17
+ });
18
+ }
19
+
20
+ /**
21
+ * Retrieves an employee by ID.
22
+ */
23
+ retrieve(
24
+ id: string,
25
+ params: EmployeeRetrieveParams,
26
+ options?: Core.RequestOptions,
27
+ ): Core.APIPromise<Employee> {
28
+ const { conductorEndUserId } = params;
29
+ return this._client.get(`/quickbooks-desktop/employees/${id}`, {
30
+ ...options,
31
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
32
+ });
33
+ }
34
+
35
+ /**
36
+ * Updates an existing employee.
37
+ */
38
+ update(id: string, params: EmployeeUpdateParams, options?: Core.RequestOptions): Core.APIPromise<Employee> {
39
+ const { conductorEndUserId, ...body } = params;
40
+ return this._client.post(`/quickbooks-desktop/employees/${id}`, {
41
+ body,
42
+ ...options,
43
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
44
+ });
45
+ }
46
+
47
+ /**
48
+ * Returns a list of employees. Use the `cursor` parameter to paginate through the
49
+ * results.
50
+ */
51
+ list(
52
+ params: EmployeeListParams,
53
+ options?: Core.RequestOptions,
54
+ ): Core.PagePromise<EmployeesCursorPage, Employee> {
55
+ const { conductorEndUserId, ...query } = params;
56
+ return this._client.getAPIList('/quickbooks-desktop/employees', EmployeesCursorPage, {
57
+ query,
58
+ ...options,
59
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
60
+ });
61
+ }
62
+ }
63
+
64
+ export class EmployeesCursorPage extends CursorPage<Employee> {}
65
+
66
+ export interface Employee {
67
+ /**
68
+ * The unique identifier assigned by QuickBooks to this employee. This ID is unique
69
+ * across all employees but not across different QuickBooks object types.
70
+ */
71
+ id: string;
72
+
73
+ /**
74
+ * The employee's account number, which appears in the QuickBooks chart of
75
+ * accounts, reports, and graphs.
76
+ *
77
+ * Note that if the "Use Account Numbers" preference is turned off in QuickBooks,
78
+ * the account number may not be visible in the user interface, but it can still be
79
+ * set and retrieved through the API.
80
+ */
81
+ accountNumber: string | null;
82
+
83
+ /**
84
+ * Additional notes about this employee.
85
+ */
86
+ additionalNotes: Array<Employee.AdditionalNote>;
87
+
88
+ /**
89
+ * The employee's address.
90
+ *
91
+ * If the company uses QuickBooks Payroll for this employee, this address must
92
+ * specify a complete address, including city, state, ZIP (or postal) code, and at
93
+ * least one line of the street address.
94
+ */
95
+ address: Employee.Address | null;
96
+
97
+ /**
98
+ * The adjusted service date for this employee, in ISO 8601 format (YYYY-MM-DD).
99
+ * This date accounts for previous employment periods or leaves that affect
100
+ * seniority.
101
+ */
102
+ adjustedServiceDate: string | null;
103
+
104
+ /**
105
+ * The employee's alternate telephone number.
106
+ */
107
+ alternatePhone: string | null;
108
+
109
+ /**
110
+ * The employee's billing rate, used to override service item rates in time
111
+ * tracking transactions.
112
+ */
113
+ billingRate: Employee.BillingRate | null;
114
+
115
+ /**
116
+ * This employee's date of birth, in ISO 8601 format (YYYY-MM-DD).
117
+ */
118
+ birthDate: string | null;
119
+
120
+ /**
121
+ * The date and time when this employee was created, in ISO 8601 format
122
+ * (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone
123
+ * in QuickBooks.
124
+ */
125
+ createdAt: string;
126
+
127
+ /**
128
+ * Additional custom contact fields for this employee, such as phone numbers or
129
+ * email addresses.
130
+ */
131
+ customContactFields: Array<Employee.CustomContactField>;
132
+
133
+ /**
134
+ * The custom fields for the employee object, added as user-defined data
135
+ * extensions, not included in the standard QuickBooks object.
136
+ */
137
+ customFields: Array<Employee.CustomField>;
138
+
139
+ /**
140
+ * The employee's department. Found in the "employment job details" section of the
141
+ * employee's record in QuickBooks.
142
+ */
143
+ department: string | null;
144
+
145
+ /**
146
+ * A description of this employee. Found in the "employment job details" section of
147
+ * the employee's record in QuickBooks.
148
+ */
149
+ description: string | null;
150
+
151
+ /**
152
+ * A description of this employee's disability.
153
+ */
154
+ disabilityDescription: string | null;
155
+
156
+ /**
157
+ * Indicates whether this employee is disabled.
158
+ */
159
+ disabilityStatus: 'disabled' | 'non_disabled' | null;
160
+
161
+ /**
162
+ * The employee's email address.
163
+ */
164
+ email: string | null;
165
+
166
+ /**
167
+ * The employee's emergency contacts.
168
+ */
169
+ emergencyContact: Employee.EmergencyContact | null;
170
+
171
+ /**
172
+ * The employee's payroll information.
173
+ */
174
+ employeePayroll: Employee.EmployeePayroll | null;
175
+
176
+ /**
177
+ * The employee type. This affects payroll taxes - a statutory employee is defined
178
+ * as an employee by statute. Note that owners/partners are typically on the "Other
179
+ * Names" list in QuickBooks, but if listed as an employee their type will be
180
+ * `owner`.
181
+ */
182
+ employeeType: 'officer' | 'owner' | 'regular' | 'statutory' | null;
183
+
184
+ /**
185
+ * Indicates whether this employee is a part-time or full-time employee.
186
+ */
187
+ employmentStatus: 'full_time' | 'part_time' | null;
188
+
189
+ /**
190
+ * This employee's ethnicity.
191
+ */
192
+ ethnicity:
193
+ | 'american_indian'
194
+ | 'asian'
195
+ | 'black'
196
+ | 'hawaiian'
197
+ | 'hispanic'
198
+ | 'white'
199
+ | 'two_or_more_races'
200
+ | null;
201
+
202
+ /**
203
+ * A globally unique identifier (GUID) you, the developer, can provide for tracking
204
+ * this object in your external system. This field is immutable and can only be set
205
+ * during object creation.
206
+ */
207
+ externalId: string | null;
208
+
209
+ /**
210
+ * The employee's fax number.
211
+ */
212
+ fax: string | null;
213
+
214
+ /**
215
+ * The employee's first name.
216
+ */
217
+ firstName: string | null;
218
+
219
+ /**
220
+ * This employee's gender.
221
+ */
222
+ gender: 'male' | 'female' | null;
223
+
224
+ /**
225
+ * The date this employee was hired, in ISO 8601 format (YYYY-MM-DD).
226
+ */
227
+ hiredDate: string | null;
228
+
229
+ /**
230
+ * Indicates whether this employee's I-9 is on file.
231
+ */
232
+ i9OnFileStatus: 'on_file' | 'not_on_file' | null;
233
+
234
+ /**
235
+ * Indicates whether this employee is active. Inactive objects are typically hidden
236
+ * from views and reports in QuickBooks. Defaults to `true`.
237
+ */
238
+ isActive: boolean;
239
+
240
+ /**
241
+ * The employee's job title.
242
+ */
243
+ jobTitle: string | null;
244
+
245
+ /**
246
+ * Indicates whether this employee is a key employee.
247
+ */
248
+ keyEmployeeStatus: 'key_employee' | 'non_key_employee' | null;
249
+
250
+ /**
251
+ * The employee's last name.
252
+ */
253
+ lastName: string | null;
254
+
255
+ /**
256
+ * The employee's middle name.
257
+ */
258
+ middleName: string | null;
259
+
260
+ /**
261
+ * This employee's military status if they are a U.S. veteran.
262
+ */
263
+ militaryStatus: 'active' | 'reserve' | null;
264
+
265
+ /**
266
+ * The employee's mobile phone number.
267
+ */
268
+ mobile: string | null;
269
+
270
+ /**
271
+ * The case-insensitive unique name of this employee, unique across all employees.
272
+ * A concatenation of the employee's `firstName`, `middleName`, and `lastName`
273
+ * fields.
274
+ *
275
+ * **NOTE**: Employees do not have a `fullName` field because they are not
276
+ * hierarchical objects, which is why `name` is unique for them but not for objects
277
+ * that have parents.
278
+ */
279
+ name: string;
280
+
281
+ /**
282
+ * A note or comment about this employee.
283
+ */
284
+ note: string | null;
285
+
286
+ /**
287
+ * The type of object. This value is always `"qbd_employee"`.
288
+ */
289
+ objectType: 'qbd_employee';
290
+
291
+ /**
292
+ * The original hire date for this employee, in ISO 8601 format (YYYY-MM-DD).
293
+ */
294
+ originalHireDate: string | null;
295
+
296
+ /**
297
+ * Indicates whether this employee is exempt from overtime pay. This classification
298
+ * is based on U.S. labor laws (FLSA).
299
+ */
300
+ overtimeExemptStatus: 'exempt' | 'non_exempt' | null;
301
+
302
+ /**
303
+ * The employee's pager number.
304
+ */
305
+ pager: string | null;
306
+
307
+ /**
308
+ * The employee's pager PIN.
309
+ */
310
+ pagerPin: string | null;
311
+
312
+ /**
313
+ * The employee's primary telephone number.
314
+ */
315
+ phone: string | null;
316
+
317
+ /**
318
+ * The name to use when printing this employee from QuickBooks. By default, this is
319
+ * the same as the `name` field.
320
+ */
321
+ printAs: string | null;
322
+
323
+ /**
324
+ * The current QuickBooks-assigned revision number of this employee object, which
325
+ * changes each time the object is modified. When updating this object, you must
326
+ * provide the most recent `revisionNumber` to ensure you're working with the
327
+ * latest data; otherwise, the update will return an error.
328
+ */
329
+ revisionNumber: string;
330
+
331
+ /**
332
+ * The employee's formal salutation title that precedes their name, such as "Mr.",
333
+ * "Ms.", or "Dr.".
334
+ */
335
+ salutation: string | null;
336
+
337
+ /**
338
+ * The employee's Social Security Number. The value can be with or without dashes.
339
+ *
340
+ * **NOTE**: This field cannot be changed after the employee is created.
341
+ */
342
+ ssn: string | null;
343
+
344
+ /**
345
+ * The employee's supervisor. Found in the "employment job details" section of the
346
+ * employee's record in QuickBooks.
347
+ */
348
+ supervisor: Employee.Supervisor | null;
349
+
350
+ /**
351
+ * The target bonus for this employee, represented as a decimal string. Found in
352
+ * the "employment job details" section of the employee's record in QuickBooks.
353
+ */
354
+ targetBonus: string | null;
355
+
356
+ /**
357
+ * The date this employee's employment ended with the company, in ISO 8601 format
358
+ * (YYYY-MM-DD). This is also known as the released date or separation date.
359
+ */
360
+ terminationDate: string | null;
361
+
362
+ /**
363
+ * The date and time when this employee was last updated, in ISO 8601 format
364
+ * (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone
365
+ * in QuickBooks.
366
+ */
367
+ updatedAt: string;
368
+
369
+ /**
370
+ * Indicates whether this employee is a U.S. citizen.
371
+ */
372
+ usCitizenshipStatus: 'citizen' | 'non_citizen' | null;
373
+
374
+ /**
375
+ * Indicates whether this employee is a U.S. veteran.
376
+ */
377
+ usVeteranStatus: 'veteran' | 'non_veteran' | null;
378
+
379
+ /**
380
+ * The date this employee's work authorization expires, in ISO 8601 format
381
+ * (YYYY-MM-DD).
382
+ */
383
+ workAuthorizationExpirationDate: string | null;
384
+ }
385
+
386
+ export namespace Employee {
387
+ export interface AdditionalNote {
388
+ /**
389
+ * The auto-incrementing identifier assigned by QuickBooks to this note.
390
+ */
391
+ id: number;
392
+
393
+ /**
394
+ * The date this note was last updated, in ISO 8601 format (YYYY-MM-DD).
395
+ */
396
+ date: string;
397
+
398
+ /**
399
+ * The text of this note.
400
+ */
401
+ note: string;
402
+ }
403
+
404
+ /**
405
+ * The employee's address.
406
+ *
407
+ * If the company uses QuickBooks Payroll for this employee, this address must
408
+ * specify a complete address, including city, state, ZIP (or postal) code, and at
409
+ * least one line of the street address.
410
+ */
411
+ export interface Address {
412
+ /**
413
+ * The city, district, suburb, town, or village name of the employee address.
414
+ */
415
+ city: string | null;
416
+
417
+ /**
418
+ * The country name of the employee address.
419
+ */
420
+ country: string | null;
421
+
422
+ /**
423
+ * The first line of the employee address (e.g., street, PO Box, or company name).
424
+ */
425
+ line1: string | null;
426
+
427
+ /**
428
+ * The second line of the employee address, if needed (e.g., apartment, suite,
429
+ * unit, or building).
430
+ */
431
+ line2: string | null;
432
+
433
+ /**
434
+ * The third line of the employee address, if needed.
435
+ */
436
+ line3: string | null;
437
+
438
+ /**
439
+ * The fourth line of the employee address, if needed.
440
+ */
441
+ line4: string | null;
442
+
443
+ /**
444
+ * The postal code or ZIP code of the employee address.
445
+ */
446
+ postalCode: string | null;
447
+
448
+ /**
449
+ * The U.S. state of the employee address. QuickBooks requires this field to be a
450
+ * U.S. state abbreviation (e.g., "CA" for California). See enum for all possible
451
+ * values.
452
+ */
453
+ state:
454
+ | 'none'
455
+ | 'armed_forces_americas'
456
+ | 'armed_forces_europe'
457
+ | 'armed_forces_pacific'
458
+ | 'AK'
459
+ | 'AL'
460
+ | 'AR'
461
+ | 'AZ'
462
+ | 'CA'
463
+ | 'CO'
464
+ | 'CT'
465
+ | 'DC'
466
+ | 'DE'
467
+ | 'FL'
468
+ | 'GA'
469
+ | 'HI'
470
+ | 'IA'
471
+ | 'ID'
472
+ | 'IL'
473
+ | 'IN'
474
+ | 'KS'
475
+ | 'KY'
476
+ | 'LA'
477
+ | 'MA'
478
+ | 'MD'
479
+ | 'ME'
480
+ | 'MI'
481
+ | 'MN'
482
+ | 'MO'
483
+ | 'MS'
484
+ | 'MT'
485
+ | 'NB'
486
+ | 'NC'
487
+ | 'ND'
488
+ | 'NE'
489
+ | 'NH'
490
+ | 'NJ'
491
+ | 'NM'
492
+ | 'NV'
493
+ | 'NY'
494
+ | 'OH'
495
+ | 'OK'
496
+ | 'OR'
497
+ | 'PA'
498
+ | 'PR'
499
+ | 'RI'
500
+ | 'SC'
501
+ | 'SD'
502
+ | 'TN'
503
+ | 'TX'
504
+ | 'UT'
505
+ | 'VA'
506
+ | 'VT'
507
+ | 'WA'
508
+ | 'WI'
509
+ | 'WV'
510
+ | 'WY'
511
+ | null;
512
+ }
513
+
514
+ /**
515
+ * The employee's billing rate, used to override service item rates in time
516
+ * tracking transactions.
517
+ */
518
+ export interface BillingRate {
519
+ /**
520
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
521
+ * across all objects of the same type, but not across different QuickBooks object
522
+ * types.
523
+ */
524
+ id: string | null;
525
+
526
+ /**
527
+ * The fully-qualified unique name for this object, formed by combining the names
528
+ * of its parent objects with its own `name`, separated by colons. Not
529
+ * case-sensitive.
530
+ */
531
+ fullName: string | null;
532
+ }
533
+
534
+ export interface CustomContactField {
535
+ /**
536
+ * The name of the contact field (e.g., "old address", "secondary phone").
537
+ */
538
+ name: string;
539
+
540
+ /**
541
+ * The value of the contact field.
542
+ */
543
+ value: string;
544
+ }
545
+
546
+ export interface CustomField {
547
+ /**
548
+ * The name of the custom field, unique for the specified `ownerId`. For public
549
+ * custom fields, this name is visible as a label in the QuickBooks UI.
550
+ */
551
+ name: string;
552
+
553
+ /**
554
+ * The identifier of the owner of the custom field, which QuickBooks internally
555
+ * calls a "data extension". For public custom fields visible in the UI, such as
556
+ * those added by the QuickBooks user, this is always "0". For private custom
557
+ * fields that are only visible to the application that created them, this is a
558
+ * valid GUID identifying the owning application. Internally, Conductor always
559
+ * fetches all public custom fields (those with an `ownerId` of "0") for all
560
+ * objects.
561
+ */
562
+ ownerId: string;
563
+
564
+ /**
565
+ * The data type of this custom field.
566
+ */
567
+ type:
568
+ | 'amount_type'
569
+ | 'date_time_type'
570
+ | 'integer_type'
571
+ | 'percent_type'
572
+ | 'price_type'
573
+ | 'quantity_type'
574
+ | 'string_1024_type'
575
+ | 'string_255_type';
576
+
577
+ /**
578
+ * The value of this custom field. The maximum length depends on the field's data
579
+ * type.
580
+ */
581
+ value: string;
582
+ }
583
+
584
+ /**
585
+ * The employee's emergency contacts.
586
+ */
587
+ export interface EmergencyContact {
588
+ /**
589
+ * The employee's primary emergency contact.
590
+ */
591
+ primaryContact: EmergencyContact.PrimaryContact | null;
592
+
593
+ /**
594
+ * The employee's secondary emergency contact.
595
+ */
596
+ secondaryContact: EmergencyContact.SecondaryContact | null;
597
+ }
598
+
599
+ export namespace EmergencyContact {
600
+ /**
601
+ * The employee's primary emergency contact.
602
+ */
603
+ export interface PrimaryContact {
604
+ /**
605
+ * The name of the contact field (e.g., "old address", "secondary phone").
606
+ */
607
+ name: string;
608
+
609
+ /**
610
+ * The relationship of the employee to the employee.
611
+ */
612
+ relation:
613
+ | 'brother'
614
+ | 'daughter'
615
+ | 'father'
616
+ | 'friend'
617
+ | 'mother'
618
+ | 'other'
619
+ | 'partner'
620
+ | 'sister'
621
+ | 'son'
622
+ | 'spouse'
623
+ | null;
624
+
625
+ /**
626
+ * The value of the contact field.
627
+ */
628
+ value: string;
629
+ }
630
+
631
+ /**
632
+ * The employee's secondary emergency contact.
633
+ */
634
+ export interface SecondaryContact {
635
+ /**
636
+ * The name of the contact field (e.g., "old address", "secondary phone").
637
+ */
638
+ name: string;
639
+
640
+ /**
641
+ * The relationship of the employee to the employee.
642
+ */
643
+ relation:
644
+ | 'brother'
645
+ | 'daughter'
646
+ | 'father'
647
+ | 'friend'
648
+ | 'mother'
649
+ | 'other'
650
+ | 'partner'
651
+ | 'sister'
652
+ | 'son'
653
+ | 'spouse'
654
+ | null;
655
+
656
+ /**
657
+ * The value of the contact field.
658
+ */
659
+ value: string;
660
+ }
661
+ }
662
+
663
+ /**
664
+ * The employee's payroll information.
665
+ */
666
+ export interface EmployeePayroll {
667
+ /**
668
+ * The employee's class. Classes can be used to categorize objects into meaningful
669
+ * segments, such as department, location, or type of work. In QuickBooks, class
670
+ * tracking is off by default.
671
+ */
672
+ class: EmployeePayroll.Class | null;
673
+
674
+ /**
675
+ * The employee's earnings.
676
+ */
677
+ earnings: Array<EmployeePayroll.Earning>;
678
+
679
+ /**
680
+ * How frequently this employee is paid (e.g., weekly, biweekly, monthly). This
681
+ * determines the schedule for generating paychecks.
682
+ */
683
+ payPeriod: 'biweekly' | 'daily' | 'monthly' | 'quarterly' | 'semimonthly' | 'weekly' | 'yearly' | null;
684
+
685
+ /**
686
+ * The employee's sick hours, including how sick time is accrued and the total
687
+ * hours accrued.
688
+ */
689
+ sickHours: EmployeePayroll.SickHours | null;
690
+
691
+ /**
692
+ * Indicates whether this employee is using time-tracking data to create paychecks.
693
+ */
694
+ useTimeDataToCreatePaychecks: 'does_not_use_time_data' | 'not_set' | 'uses_time_data' | null;
695
+
696
+ /**
697
+ * The employee's vacation hours, including how vacation time is accrued and the
698
+ * total hours accrued.
699
+ */
700
+ vacationHours: EmployeePayroll.VacationHours | null;
701
+ }
702
+
703
+ export namespace EmployeePayroll {
704
+ /**
705
+ * The employee's class. Classes can be used to categorize objects into meaningful
706
+ * segments, such as department, location, or type of work. In QuickBooks, class
707
+ * tracking is off by default.
708
+ */
709
+ export interface Class {
710
+ /**
711
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
712
+ * across all objects of the same type, but not across different QuickBooks object
713
+ * types.
714
+ */
715
+ id: string | null;
716
+
717
+ /**
718
+ * The fully-qualified unique name for this object, formed by combining the names
719
+ * of its parent objects with its own `name`, separated by colons. Not
720
+ * case-sensitive.
721
+ */
722
+ fullName: string | null;
723
+ }
724
+
725
+ export interface Earning {
726
+ /**
727
+ * The payroll wage item that defines how this employee is paid (e.g., Regular Pay,
728
+ * Overtime Pay). This determines the payment scheme used for payroll calculations.
729
+ */
730
+ payrollWageItem: Earning.PayrollWageItem;
731
+
732
+ /**
733
+ * The hourly rate for this employee, represented as a decimal string.
734
+ */
735
+ rate: string | null;
736
+
737
+ /**
738
+ * The hourly rate for this employee expressed as a percentage.
739
+ */
740
+ ratePercent: string | null;
741
+ }
742
+
743
+ export namespace Earning {
744
+ /**
745
+ * The payroll wage item that defines how this employee is paid (e.g., Regular Pay,
746
+ * Overtime Pay). This determines the payment scheme used for payroll calculations.
747
+ */
748
+ export interface PayrollWageItem {
749
+ /**
750
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
751
+ * across all objects of the same type, but not across different QuickBooks object
752
+ * types.
753
+ */
754
+ id: string | null;
755
+
756
+ /**
757
+ * The fully-qualified unique name for this object, formed by combining the names
758
+ * of its parent objects with its own `name`, separated by colons. Not
759
+ * case-sensitive.
760
+ */
761
+ fullName: string | null;
762
+ }
763
+ }
764
+
765
+ /**
766
+ * The employee's sick hours, including how sick time is accrued and the total
767
+ * hours accrued.
768
+ */
769
+ export interface SickHours {
770
+ /**
771
+ * How frequently the employee's sick hours are accrued.
772
+ */
773
+ accrualPeriod: 'accrues_annually' | 'accrues_hourly' | 'accrues_per_paycheck' | null;
774
+
775
+ /**
776
+ * The date the employee's sick hours began to accrue, in ISO 8601 format
777
+ * (YYYY-MM-DD).
778
+ */
779
+ accrualStartDate: string | null;
780
+
781
+ /**
782
+ * The number of sick hours the employee will accrue per accrual period.
783
+ */
784
+ hoursAccruedPerPeriod: string | null;
785
+
786
+ /**
787
+ * The total number of sick hours currently available for the employee to use.
788
+ * Defaults to 0.
789
+ */
790
+ hoursAvailable: string | null;
791
+
792
+ /**
793
+ * The number of sick hours the employee has used.
794
+ */
795
+ hoursUsed: string | null;
796
+
797
+ /**
798
+ * The maximum number of sick hours the employee can accrue.
799
+ */
800
+ maximumHours: string | null;
801
+
802
+ /**
803
+ * Indicates whether the employee's sick hours reset to zero at the beginning of
804
+ * the new year.
805
+ */
806
+ resetsHoursEachYear: boolean | null;
807
+ }
808
+
809
+ /**
810
+ * The employee's vacation hours, including how vacation time is accrued and the
811
+ * total hours accrued.
812
+ */
813
+ export interface VacationHours {
814
+ /**
815
+ * How frequently the employee's vacation hours are accrued.
816
+ */
817
+ accrualPeriod: 'accrues_annually' | 'accrues_hourly' | 'accrues_per_paycheck' | null;
818
+
819
+ /**
820
+ * The date the employee's vacation hours began to accrue, in ISO 8601 format
821
+ * (YYYY-MM-DD).
822
+ */
823
+ accrualStartDate: string | null;
824
+
825
+ /**
826
+ * The number of vacation hours the employee will accrue per accrual period.
827
+ */
828
+ hoursAccruedPerPeriod: string | null;
829
+
830
+ /**
831
+ * The total number of vacation hours currently available for the employee to use.
832
+ * Defaults to 0.
833
+ */
834
+ hoursAvailable: string | null;
835
+
836
+ /**
837
+ * The number of vacation hours the employee has used.
838
+ */
839
+ hoursUsed: string | null;
840
+
841
+ /**
842
+ * The maximum number of vacation hours the employee can accrue.
843
+ */
844
+ maximumHours: string | null;
845
+
846
+ /**
847
+ * Indicates whether the employee's vacation hours reset to zero at the beginning
848
+ * of the new year.
849
+ */
850
+ resetsHoursEachYear: boolean | null;
851
+ }
852
+ }
853
+
854
+ /**
855
+ * The employee's supervisor. Found in the "employment job details" section of the
856
+ * employee's record in QuickBooks.
857
+ */
858
+ export interface Supervisor {
859
+ /**
860
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
861
+ * across all objects of the same type, but not across different QuickBooks object
862
+ * types.
863
+ */
864
+ id: string | null;
865
+
866
+ /**
867
+ * The fully-qualified unique name for this object, formed by combining the names
868
+ * of its parent objects with its own `name`, separated by colons. Not
869
+ * case-sensitive.
870
+ */
871
+ fullName: string | null;
872
+ }
873
+ }
874
+
875
+ export interface EmployeeCreateParams {
876
+ /**
877
+ * Header param: The ID of the EndUser to receive this request (e.g.,
878
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
879
+ */
880
+ conductorEndUserId: string;
881
+
882
+ /**
883
+ * Body param: The employee's account number, which appears in the QuickBooks chart
884
+ * of accounts, reports, and graphs.
885
+ *
886
+ * Note that if the "Use Account Numbers" preference is turned off in QuickBooks,
887
+ * the account number may not be visible in the user interface, but it can still be
888
+ * set and retrieved through the API.
889
+ */
890
+ accountNumber?: string;
891
+
892
+ /**
893
+ * Body param: Additional notes about this employee.
894
+ */
895
+ additionalNotes?: Array<EmployeeCreateParams.AdditionalNote>;
896
+
897
+ /**
898
+ * Body param: The employee's address.
899
+ *
900
+ * If the company uses QuickBooks Payroll for this employee, this address must
901
+ * specify a complete address, including city, state, ZIP (or postal) code, and at
902
+ * least one line of the street address.
903
+ */
904
+ address?: EmployeeCreateParams.Address;
905
+
906
+ /**
907
+ * Body param: The adjusted service date for this employee, in ISO 8601 format
908
+ * (YYYY-MM-DD). This date accounts for previous employment periods or leaves that
909
+ * affect seniority.
910
+ */
911
+ adjustedServiceDate?: string;
912
+
913
+ /**
914
+ * Body param: The employee's alternate telephone number.
915
+ */
916
+ alternatePhone?: string;
917
+
918
+ /**
919
+ * Body param: The employee's billing rate, used to override service item rates in
920
+ * time tracking transactions.
921
+ */
922
+ billingRateId?: string;
923
+
924
+ /**
925
+ * Body param: This employee's date of birth, in ISO 8601 format (YYYY-MM-DD).
926
+ */
927
+ birthDate?: string;
928
+
929
+ /**
930
+ * Body param: Additional custom contact fields for this employee, such as phone
931
+ * numbers or email addresses.
932
+ */
933
+ customContactFields?: Array<EmployeeCreateParams.CustomContactField>;
934
+
935
+ /**
936
+ * Body param: The employee's department. Found in the "employment job details"
937
+ * section of the employee's record in QuickBooks.
938
+ */
939
+ department?: string;
940
+
941
+ /**
942
+ * Body param: A description of this employee. Found in the "employment job
943
+ * details" section of the employee's record in QuickBooks.
944
+ */
945
+ description?: string;
946
+
947
+ /**
948
+ * Body param: A description of this employee's disability.
949
+ */
950
+ disabilityDescription?: string;
951
+
952
+ /**
953
+ * Body param: Indicates whether this employee is disabled.
954
+ */
955
+ disabilityStatus?: 'disabled' | 'non_disabled';
956
+
957
+ /**
958
+ * Body param: The employee's email address.
959
+ */
960
+ email?: string;
961
+
962
+ /**
963
+ * Body param: The employee's emergency contacts.
964
+ */
965
+ emergencyContact?: EmployeeCreateParams.EmergencyContact;
966
+
967
+ /**
968
+ * Body param: The employee's payroll information.
969
+ */
970
+ employeePayroll?: EmployeeCreateParams.EmployeePayroll;
971
+
972
+ /**
973
+ * Body param: The employee type. This affects payroll taxes - a statutory employee
974
+ * is defined as an employee by statute. Note that owners/partners are typically on
975
+ * the "Other Names" list in QuickBooks, but if listed as an employee their type
976
+ * will be `owner`.
977
+ */
978
+ employeeType?: 'officer' | 'owner' | 'regular' | 'statutory';
979
+
980
+ /**
981
+ * Body param: Indicates whether this employee is a part-time or full-time
982
+ * employee.
983
+ */
984
+ employmentStatus?: 'full_time' | 'part_time';
985
+
986
+ /**
987
+ * Body param: This employee's ethnicity.
988
+ */
989
+ ethnicity?: 'american_indian' | 'asian' | 'black' | 'hawaiian' | 'hispanic' | 'white' | 'two_or_more_races';
990
+
991
+ /**
992
+ * Body param: A globally unique identifier (GUID) you, the developer, can provide
993
+ * for tracking this object in your external system. This field is immutable and
994
+ * can only be set during object creation.
995
+ *
996
+ * **IMPORTANT**: This field must be formatted as a valid GUID; otherwise,
997
+ * QuickBooks will return an error.
998
+ */
999
+ externalId?: string;
1000
+
1001
+ /**
1002
+ * Body param: The employee's fax number.
1003
+ */
1004
+ fax?: string;
1005
+
1006
+ /**
1007
+ * Body param: The employee's first name.
1008
+ *
1009
+ * Maximum length: 25 characters.
1010
+ */
1011
+ firstName?: string;
1012
+
1013
+ /**
1014
+ * Body param: This employee's gender.
1015
+ */
1016
+ gender?: 'male' | 'female';
1017
+
1018
+ /**
1019
+ * Body param: The date this employee was hired, in ISO 8601 format (YYYY-MM-DD).
1020
+ */
1021
+ hiredDate?: string;
1022
+
1023
+ /**
1024
+ * Body param: Indicates whether this employee's I-9 is on file.
1025
+ */
1026
+ i9OnFileStatus?: 'on_file' | 'not_on_file';
1027
+
1028
+ /**
1029
+ * Body param: Indicates whether this employee is active. Inactive objects are
1030
+ * typically hidden from views and reports in QuickBooks. Defaults to `true`.
1031
+ */
1032
+ isActive?: boolean;
1033
+
1034
+ /**
1035
+ * Body param: The employee's job title.
1036
+ */
1037
+ jobTitle?: string;
1038
+
1039
+ /**
1040
+ * Body param: Indicates whether this employee is a key employee.
1041
+ */
1042
+ keyEmployeeStatus?: 'key_employee' | 'non_key_employee';
1043
+
1044
+ /**
1045
+ * Body param: The employee's last name.
1046
+ *
1047
+ * Maximum length: 25 characters.
1048
+ */
1049
+ lastName?: string;
1050
+
1051
+ /**
1052
+ * Body param: The employee's middle name.
1053
+ *
1054
+ * Maximum length: 5 characters.
1055
+ */
1056
+ middleName?: string;
1057
+
1058
+ /**
1059
+ * Body param: This employee's military status if they are a U.S. veteran.
1060
+ */
1061
+ militaryStatus?: 'active' | 'reserve';
1062
+
1063
+ /**
1064
+ * Body param: The employee's mobile phone number.
1065
+ */
1066
+ mobile?: string;
1067
+
1068
+ /**
1069
+ * Body param: A note or comment about this employee.
1070
+ */
1071
+ note?: string;
1072
+
1073
+ /**
1074
+ * Body param: The original hire date for this employee, in ISO 8601 format
1075
+ * (YYYY-MM-DD).
1076
+ */
1077
+ originalHireDate?: string;
1078
+
1079
+ /**
1080
+ * Body param: Indicates whether this employee is exempt from overtime pay. This
1081
+ * classification is based on U.S. labor laws (FLSA).
1082
+ */
1083
+ overtimeExemptStatus?: 'exempt' | 'non_exempt';
1084
+
1085
+ /**
1086
+ * Body param: The employee's pager number.
1087
+ */
1088
+ pager?: string;
1089
+
1090
+ /**
1091
+ * Body param: The employee's pager PIN.
1092
+ */
1093
+ pagerPin?: string;
1094
+
1095
+ /**
1096
+ * Body param: The employee's primary telephone number.
1097
+ */
1098
+ phone?: string;
1099
+
1100
+ /**
1101
+ * Body param: The name to use when printing this employee from QuickBooks. By
1102
+ * default, this is the same as the `name` field.
1103
+ */
1104
+ printAs?: string;
1105
+
1106
+ /**
1107
+ * Body param: The employee's formal salutation title that precedes their name,
1108
+ * such as "Mr.", "Ms.", or "Dr.".
1109
+ */
1110
+ salutation?: string;
1111
+
1112
+ /**
1113
+ * Body param: The employee's Social Security Number. The value can be with or
1114
+ * without dashes.
1115
+ *
1116
+ * **NOTE**: This field cannot be changed after the employee is created.
1117
+ */
1118
+ ssn?: string;
1119
+
1120
+ /**
1121
+ * Body param: The employee's supervisor. Found in the "employment job details"
1122
+ * section of the employee's record in QuickBooks.
1123
+ */
1124
+ supervisorId?: string;
1125
+
1126
+ /**
1127
+ * Body param: The target bonus for this employee, represented as a decimal string.
1128
+ * Found in the "employment job details" section of the employee's record in
1129
+ * QuickBooks.
1130
+ */
1131
+ targetBonus?: string;
1132
+
1133
+ /**
1134
+ * Body param: The date this employee's employment ended with the company, in ISO
1135
+ * 8601 format (YYYY-MM-DD). This is also known as the released date or separation
1136
+ * date.
1137
+ */
1138
+ terminationDate?: string;
1139
+
1140
+ /**
1141
+ * Body param: Indicates whether this employee is a U.S. citizen.
1142
+ */
1143
+ usCitizenshipStatus?: 'citizen' | 'non_citizen';
1144
+
1145
+ /**
1146
+ * Body param: Indicates whether this employee is a U.S. veteran.
1147
+ */
1148
+ usVeteranStatus?: 'veteran' | 'non_veteran';
1149
+
1150
+ /**
1151
+ * Body param: The date this employee's work authorization expires, in ISO 8601
1152
+ * format (YYYY-MM-DD).
1153
+ */
1154
+ workAuthorizationExpirationDate?: string;
1155
+ }
1156
+
1157
+ export namespace EmployeeCreateParams {
1158
+ export interface AdditionalNote {
1159
+ /**
1160
+ * The text of this note.
1161
+ */
1162
+ note: string;
1163
+ }
1164
+
1165
+ /**
1166
+ * The employee's address.
1167
+ *
1168
+ * If the company uses QuickBooks Payroll for this employee, this address must
1169
+ * specify a complete address, including city, state, ZIP (or postal) code, and at
1170
+ * least one line of the street address.
1171
+ */
1172
+ export interface Address {
1173
+ /**
1174
+ * The city, district, suburb, town, or village name of the employee address.
1175
+ *
1176
+ * Maximum length: 31 characters.
1177
+ */
1178
+ city?: string;
1179
+
1180
+ /**
1181
+ * The country name of the employee address.
1182
+ */
1183
+ country?: string;
1184
+
1185
+ /**
1186
+ * The first line of the employee address (e.g., street, PO Box, or company name).
1187
+ *
1188
+ * Maximum length: 41 characters.
1189
+ */
1190
+ line1?: string;
1191
+
1192
+ /**
1193
+ * The second line of the employee address, if needed (e.g., apartment, suite,
1194
+ * unit, or building).
1195
+ *
1196
+ * Maximum length: 41 characters.
1197
+ */
1198
+ line2?: string;
1199
+
1200
+ /**
1201
+ * The third line of the employee address, if needed.
1202
+ *
1203
+ * Maximum length: 41 characters.
1204
+ */
1205
+ line3?: string;
1206
+
1207
+ /**
1208
+ * The fourth line of the employee address, if needed.
1209
+ *
1210
+ * Maximum length: 41 characters.
1211
+ */
1212
+ line4?: string;
1213
+
1214
+ /**
1215
+ * The postal code or ZIP code of the employee address.
1216
+ *
1217
+ * Maximum length: 13 characters.
1218
+ */
1219
+ postalCode?: string;
1220
+
1221
+ /**
1222
+ * The U.S. state of the employee address. QuickBooks requires this field to be a
1223
+ * U.S. state abbreviation (e.g., "CA" for California). See enum for all possible
1224
+ * values.
1225
+ */
1226
+ state?:
1227
+ | 'none'
1228
+ | 'armed_forces_americas'
1229
+ | 'armed_forces_europe'
1230
+ | 'armed_forces_pacific'
1231
+ | 'AK'
1232
+ | 'AL'
1233
+ | 'AR'
1234
+ | 'AZ'
1235
+ | 'CA'
1236
+ | 'CO'
1237
+ | 'CT'
1238
+ | 'DC'
1239
+ | 'DE'
1240
+ | 'FL'
1241
+ | 'GA'
1242
+ | 'HI'
1243
+ | 'IA'
1244
+ | 'ID'
1245
+ | 'IL'
1246
+ | 'IN'
1247
+ | 'KS'
1248
+ | 'KY'
1249
+ | 'LA'
1250
+ | 'MA'
1251
+ | 'MD'
1252
+ | 'ME'
1253
+ | 'MI'
1254
+ | 'MN'
1255
+ | 'MO'
1256
+ | 'MS'
1257
+ | 'MT'
1258
+ | 'NB'
1259
+ | 'NC'
1260
+ | 'ND'
1261
+ | 'NE'
1262
+ | 'NH'
1263
+ | 'NJ'
1264
+ | 'NM'
1265
+ | 'NV'
1266
+ | 'NY'
1267
+ | 'OH'
1268
+ | 'OK'
1269
+ | 'OR'
1270
+ | 'PA'
1271
+ | 'PR'
1272
+ | 'RI'
1273
+ | 'SC'
1274
+ | 'SD'
1275
+ | 'TN'
1276
+ | 'TX'
1277
+ | 'UT'
1278
+ | 'VA'
1279
+ | 'VT'
1280
+ | 'WA'
1281
+ | 'WI'
1282
+ | 'WV'
1283
+ | 'WY';
1284
+ }
1285
+
1286
+ export interface CustomContactField {
1287
+ /**
1288
+ * The name of the contact field (e.g., "old address", "secondary phone").
1289
+ */
1290
+ name: string;
1291
+
1292
+ /**
1293
+ * The value of the contact field.
1294
+ */
1295
+ value: string;
1296
+ }
1297
+
1298
+ /**
1299
+ * The employee's emergency contacts.
1300
+ */
1301
+ export interface EmergencyContact {
1302
+ /**
1303
+ * The employee's primary emergency contact.
1304
+ */
1305
+ primaryContact?: EmergencyContact.PrimaryContact;
1306
+
1307
+ /**
1308
+ * The employee's secondary emergency contact.
1309
+ */
1310
+ secondaryContact?: EmergencyContact.SecondaryContact;
1311
+ }
1312
+
1313
+ export namespace EmergencyContact {
1314
+ /**
1315
+ * The employee's primary emergency contact.
1316
+ */
1317
+ export interface PrimaryContact {
1318
+ /**
1319
+ * The name of the contact field (e.g., "old address", "secondary phone").
1320
+ */
1321
+ name: string;
1322
+
1323
+ /**
1324
+ * The value of the contact field.
1325
+ */
1326
+ value: string;
1327
+
1328
+ /**
1329
+ * The relationship of the employee to the employee.
1330
+ */
1331
+ relation?:
1332
+ | 'brother'
1333
+ | 'daughter'
1334
+ | 'father'
1335
+ | 'friend'
1336
+ | 'mother'
1337
+ | 'other'
1338
+ | 'partner'
1339
+ | 'sister'
1340
+ | 'son'
1341
+ | 'spouse';
1342
+ }
1343
+
1344
+ /**
1345
+ * The employee's secondary emergency contact.
1346
+ */
1347
+ export interface SecondaryContact {
1348
+ /**
1349
+ * The name of the contact field (e.g., "old address", "secondary phone").
1350
+ */
1351
+ name: string;
1352
+
1353
+ /**
1354
+ * The value of the contact field.
1355
+ */
1356
+ value: string;
1357
+
1358
+ /**
1359
+ * The relationship of the employee to the employee.
1360
+ */
1361
+ relation?:
1362
+ | 'brother'
1363
+ | 'daughter'
1364
+ | 'father'
1365
+ | 'friend'
1366
+ | 'mother'
1367
+ | 'other'
1368
+ | 'partner'
1369
+ | 'sister'
1370
+ | 'son'
1371
+ | 'spouse';
1372
+ }
1373
+ }
1374
+
1375
+ /**
1376
+ * The employee's payroll information.
1377
+ */
1378
+ export interface EmployeePayroll {
1379
+ /**
1380
+ * The employee's class. Classes can be used to categorize objects into meaningful
1381
+ * segments, such as department, location, or type of work. In QuickBooks, class
1382
+ * tracking is off by default.
1383
+ */
1384
+ classId?: string;
1385
+
1386
+ /**
1387
+ * The employee's earnings.
1388
+ */
1389
+ earnings?: Array<EmployeePayroll.Earning>;
1390
+
1391
+ /**
1392
+ * How frequently this employee is paid (e.g., weekly, biweekly, monthly). This
1393
+ * determines the schedule for generating paychecks.
1394
+ */
1395
+ payPeriod?: 'biweekly' | 'daily' | 'monthly' | 'quarterly' | 'semimonthly' | 'weekly' | 'yearly';
1396
+
1397
+ /**
1398
+ * The employee's sick hours, including how sick time is accrued and the total
1399
+ * hours accrued.
1400
+ */
1401
+ sickHours?: EmployeePayroll.SickHours;
1402
+
1403
+ /**
1404
+ * Indicates whether this employee is using time-tracking data to create paychecks.
1405
+ */
1406
+ useTimeDataToCreatePaychecks?: 'does_not_use_time_data' | 'not_set' | 'uses_time_data';
1407
+
1408
+ /**
1409
+ * The employee's vacation hours, including how vacation time is accrued and the
1410
+ * total hours accrued.
1411
+ */
1412
+ vacationHours?: EmployeePayroll.VacationHours;
1413
+ }
1414
+
1415
+ export namespace EmployeePayroll {
1416
+ export interface Earning {
1417
+ /**
1418
+ * The payroll wage item that defines how this employee is paid (e.g., Regular Pay,
1419
+ * Overtime Pay). This determines the payment scheme used for payroll calculations.
1420
+ */
1421
+ payrollWageItemId: string;
1422
+
1423
+ /**
1424
+ * The hourly rate for this employee, represented as a decimal string.
1425
+ */
1426
+ rate?: string;
1427
+
1428
+ /**
1429
+ * The hourly rate for this employee expressed as a percentage.
1430
+ */
1431
+ ratePercent?: string;
1432
+ }
1433
+
1434
+ /**
1435
+ * The employee's sick hours, including how sick time is accrued and the total
1436
+ * hours accrued.
1437
+ */
1438
+ export interface SickHours {
1439
+ /**
1440
+ * How frequently the employee's sick hours are accrued.
1441
+ */
1442
+ accrualPeriod?: 'accrues_annually' | 'accrues_hourly' | 'accrues_per_paycheck';
1443
+
1444
+ /**
1445
+ * The date the employee's sick hours began to accrue, in ISO 8601 format
1446
+ * (YYYY-MM-DD).
1447
+ */
1448
+ accrualStartDate?: string;
1449
+
1450
+ /**
1451
+ * The number of sick hours the employee will accrue per accrual period.
1452
+ */
1453
+ hoursAccruedPerPeriod?: string;
1454
+
1455
+ /**
1456
+ * The total number of sick hours currently available for the employee to use.
1457
+ * Defaults to 0.
1458
+ */
1459
+ hoursAvailable?: string;
1460
+
1461
+ /**
1462
+ * The number of sick hours the employee has used.
1463
+ */
1464
+ hoursUsed?: string;
1465
+
1466
+ /**
1467
+ * The maximum number of sick hours the employee can accrue.
1468
+ */
1469
+ maximumHours?: string;
1470
+
1471
+ /**
1472
+ * Indicates whether the employee's sick hours reset to zero at the beginning of
1473
+ * the new year.
1474
+ */
1475
+ resetsHoursEachYear?: boolean;
1476
+ }
1477
+
1478
+ /**
1479
+ * The employee's vacation hours, including how vacation time is accrued and the
1480
+ * total hours accrued.
1481
+ */
1482
+ export interface VacationHours {
1483
+ /**
1484
+ * How frequently the employee's vacation hours are accrued.
1485
+ */
1486
+ accrualPeriod?: 'accrues_annually' | 'accrues_hourly' | 'accrues_per_paycheck';
1487
+
1488
+ /**
1489
+ * The date the employee's vacation hours began to accrue, in ISO 8601 format
1490
+ * (YYYY-MM-DD).
1491
+ */
1492
+ accrualStartDate?: string;
1493
+
1494
+ /**
1495
+ * The number of vacation hours the employee will accrue per accrual period.
1496
+ */
1497
+ hoursAccruedPerPeriod?: string;
1498
+
1499
+ /**
1500
+ * The total number of vacation hours currently available for the employee to use.
1501
+ * Defaults to 0.
1502
+ */
1503
+ hoursAvailable?: string;
1504
+
1505
+ /**
1506
+ * The number of vacation hours the employee has used.
1507
+ */
1508
+ hoursUsed?: string;
1509
+
1510
+ /**
1511
+ * The maximum number of vacation hours the employee can accrue.
1512
+ */
1513
+ maximumHours?: string;
1514
+
1515
+ /**
1516
+ * Indicates whether the employee's vacation hours reset to zero at the beginning
1517
+ * of the new year.
1518
+ */
1519
+ resetsHoursEachYear?: boolean;
1520
+ }
1521
+ }
1522
+ }
1523
+
1524
+ export interface EmployeeRetrieveParams {
1525
+ /**
1526
+ * The ID of the EndUser to receive this request (e.g.,
1527
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
1528
+ */
1529
+ conductorEndUserId: string;
1530
+ }
1531
+
1532
+ export interface EmployeeUpdateParams {
1533
+ /**
1534
+ * Body param: The current QuickBooks-assigned revision number of the employee
1535
+ * object you are updating, which you can get by fetching the object first. Provide
1536
+ * the most recent `revisionNumber` to ensure you're working with the latest data;
1537
+ * otherwise, the update will return an error.
1538
+ */
1539
+ revisionNumber: string;
1540
+
1541
+ /**
1542
+ * Header param: The ID of the EndUser to receive this request (e.g.,
1543
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
1544
+ */
1545
+ conductorEndUserId: string;
1546
+
1547
+ /**
1548
+ * Body param: The employee's account number, which appears in the QuickBooks chart
1549
+ * of accounts, reports, and graphs.
1550
+ *
1551
+ * Note that if the "Use Account Numbers" preference is turned off in QuickBooks,
1552
+ * the account number may not be visible in the user interface, but it can still be
1553
+ * set and retrieved through the API.
1554
+ */
1555
+ accountNumber?: string;
1556
+
1557
+ /**
1558
+ * Body param: Additional notes about this employee.
1559
+ */
1560
+ additionalNotes?: Array<EmployeeUpdateParams.AdditionalNote>;
1561
+
1562
+ /**
1563
+ * Body param: The employee's address.
1564
+ *
1565
+ * If the company uses QuickBooks Payroll for this employee, this address must
1566
+ * specify a complete address, including city, state, ZIP (or postal) code, and at
1567
+ * least one line of the street address.
1568
+ */
1569
+ address?: EmployeeUpdateParams.Address;
1570
+
1571
+ /**
1572
+ * Body param: The adjusted service date for this employee, in ISO 8601 format
1573
+ * (YYYY-MM-DD). This date accounts for previous employment periods or leaves that
1574
+ * affect seniority.
1575
+ */
1576
+ adjustedServiceDate?: string;
1577
+
1578
+ /**
1579
+ * Body param: The employee's alternate telephone number.
1580
+ */
1581
+ alternatePhone?: string;
1582
+
1583
+ /**
1584
+ * Body param: The employee's billing rate, used to override service item rates in
1585
+ * time tracking transactions.
1586
+ */
1587
+ billingRateId?: string;
1588
+
1589
+ /**
1590
+ * Body param: This employee's date of birth, in ISO 8601 format (YYYY-MM-DD).
1591
+ */
1592
+ birthDate?: string;
1593
+
1594
+ /**
1595
+ * Body param: Additional custom contact fields for this employee, such as phone
1596
+ * numbers or email addresses.
1597
+ */
1598
+ customContactFields?: Array<EmployeeUpdateParams.CustomContactField>;
1599
+
1600
+ /**
1601
+ * Body param: The employee's department. Found in the "employment job details"
1602
+ * section of the employee's record in QuickBooks.
1603
+ */
1604
+ department?: string;
1605
+
1606
+ /**
1607
+ * Body param: A description of this employee. Found in the "employment job
1608
+ * details" section of the employee's record in QuickBooks.
1609
+ */
1610
+ description?: string;
1611
+
1612
+ /**
1613
+ * Body param: A description of this employee's disability.
1614
+ */
1615
+ disabilityDescription?: string;
1616
+
1617
+ /**
1618
+ * Body param: Indicates whether this employee is disabled.
1619
+ */
1620
+ disabilityStatus?: 'disabled' | 'non_disabled';
1621
+
1622
+ /**
1623
+ * Body param: The employee's email address.
1624
+ */
1625
+ email?: string;
1626
+
1627
+ /**
1628
+ * Body param: The employee's emergency contacts.
1629
+ */
1630
+ emergencyContact?: EmployeeUpdateParams.EmergencyContact;
1631
+
1632
+ /**
1633
+ * Body param: The employee's payroll information.
1634
+ */
1635
+ employeePayroll?: EmployeeUpdateParams.EmployeePayroll;
1636
+
1637
+ /**
1638
+ * Body param: The employee type. This affects payroll taxes - a statutory employee
1639
+ * is defined as an employee by statute. Note that owners/partners are typically on
1640
+ * the "Other Names" list in QuickBooks, but if listed as an employee their type
1641
+ * will be `owner`.
1642
+ */
1643
+ employeeType?: 'officer' | 'owner' | 'regular' | 'statutory';
1644
+
1645
+ /**
1646
+ * Body param: Indicates whether this employee is a part-time or full-time
1647
+ * employee.
1648
+ */
1649
+ employmentStatus?: 'full_time' | 'part_time';
1650
+
1651
+ /**
1652
+ * Body param: This employee's ethnicity.
1653
+ */
1654
+ ethnicity?: 'american_indian' | 'asian' | 'black' | 'hawaiian' | 'hispanic' | 'white' | 'two_or_more_races';
1655
+
1656
+ /**
1657
+ * Body param: The employee's fax number.
1658
+ */
1659
+ fax?: string;
1660
+
1661
+ /**
1662
+ * Body param: The employee's first name.
1663
+ *
1664
+ * Maximum length: 25 characters.
1665
+ */
1666
+ firstName?: string;
1667
+
1668
+ /**
1669
+ * Body param: The date this employee was hired, in ISO 8601 format (YYYY-MM-DD).
1670
+ */
1671
+ hiredDate?: string;
1672
+
1673
+ /**
1674
+ * Body param: Indicates whether this employee's I-9 is on file.
1675
+ */
1676
+ i9OnFileStatus?: 'on_file' | 'not_on_file';
1677
+
1678
+ /**
1679
+ * Body param: Indicates whether this employee is active. Inactive objects are
1680
+ * typically hidden from views and reports in QuickBooks. Defaults to `true`.
1681
+ */
1682
+ isActive?: boolean;
1683
+
1684
+ /**
1685
+ * Body param: The employee's job title.
1686
+ */
1687
+ jobTitle?: string;
1688
+
1689
+ /**
1690
+ * Body param: Indicates whether this employee is a key employee.
1691
+ */
1692
+ keyEmployeeStatus?: 'key_employee' | 'non_key_employee';
1693
+
1694
+ /**
1695
+ * Body param: The employee's last name.
1696
+ *
1697
+ * Maximum length: 25 characters.
1698
+ */
1699
+ lastName?: string;
1700
+
1701
+ /**
1702
+ * Body param: The employee's middle name.
1703
+ *
1704
+ * Maximum length: 5 characters.
1705
+ */
1706
+ middleName?: string;
1707
+
1708
+ /**
1709
+ * Body param: This employee's military status if they are a U.S. veteran.
1710
+ */
1711
+ militaryStatus?: 'active' | 'reserve';
1712
+
1713
+ /**
1714
+ * Body param: The employee's mobile phone number.
1715
+ */
1716
+ mobile?: string;
1717
+
1718
+ /**
1719
+ * Body param: A note or comment about this employee.
1720
+ */
1721
+ note?: string;
1722
+
1723
+ /**
1724
+ * Body param: The original hire date for this employee, in ISO 8601 format
1725
+ * (YYYY-MM-DD).
1726
+ */
1727
+ originalHireDate?: string;
1728
+
1729
+ /**
1730
+ * Body param: Indicates whether this employee is exempt from overtime pay. This
1731
+ * classification is based on U.S. labor laws (FLSA).
1732
+ */
1733
+ overtimeExemptStatus?: 'exempt' | 'non_exempt';
1734
+
1735
+ /**
1736
+ * Body param: The employee's pager number.
1737
+ */
1738
+ pager?: string;
1739
+
1740
+ /**
1741
+ * Body param: The employee's pager PIN.
1742
+ */
1743
+ pagerPin?: string;
1744
+
1745
+ /**
1746
+ * Body param: The employee's primary telephone number.
1747
+ */
1748
+ phone?: string;
1749
+
1750
+ /**
1751
+ * Body param: The name to use when printing this employee from QuickBooks. By
1752
+ * default, this is the same as the `name` field.
1753
+ */
1754
+ printAs?: string;
1755
+
1756
+ /**
1757
+ * Body param: The employee's formal salutation title that precedes their name,
1758
+ * such as "Mr.", "Ms.", or "Dr.".
1759
+ */
1760
+ salutation?: string;
1761
+
1762
+ /**
1763
+ * Body param: The employee's supervisor. Found in the "employment job details"
1764
+ * section of the employee's record in QuickBooks.
1765
+ */
1766
+ supervisorId?: string;
1767
+
1768
+ /**
1769
+ * Body param: The target bonus for this employee, represented as a decimal string.
1770
+ * Found in the "employment job details" section of the employee's record in
1771
+ * QuickBooks.
1772
+ */
1773
+ targetBonus?: string;
1774
+
1775
+ /**
1776
+ * Body param: The date this employee's employment ended with the company, in ISO
1777
+ * 8601 format (YYYY-MM-DD). This is also known as the released date or separation
1778
+ * date.
1779
+ */
1780
+ terminationDate?: string;
1781
+
1782
+ /**
1783
+ * Body param: Indicates whether this employee is a U.S. citizen.
1784
+ */
1785
+ usCitizenshipStatus?: 'citizen' | 'non_citizen';
1786
+
1787
+ /**
1788
+ * Body param: Indicates whether this employee is a U.S. veteran.
1789
+ */
1790
+ usVeteranStatus?: 'veteran' | 'non_veteran';
1791
+
1792
+ /**
1793
+ * Body param: The date this employee's work authorization expires, in ISO 8601
1794
+ * format (YYYY-MM-DD).
1795
+ */
1796
+ workAuthorizationExpirationDate?: string;
1797
+ }
1798
+
1799
+ export namespace EmployeeUpdateParams {
1800
+ export interface AdditionalNote {
1801
+ /**
1802
+ * The ID of the note to update.
1803
+ */
1804
+ id: number;
1805
+
1806
+ /**
1807
+ * The text of this note.
1808
+ */
1809
+ note?: string;
1810
+ }
1811
+
1812
+ /**
1813
+ * The employee's address.
1814
+ *
1815
+ * If the company uses QuickBooks Payroll for this employee, this address must
1816
+ * specify a complete address, including city, state, ZIP (or postal) code, and at
1817
+ * least one line of the street address.
1818
+ */
1819
+ export interface Address {
1820
+ /**
1821
+ * The city, district, suburb, town, or village name of the employee address.
1822
+ *
1823
+ * Maximum length: 31 characters.
1824
+ */
1825
+ city?: string;
1826
+
1827
+ /**
1828
+ * The country name of the employee address.
1829
+ */
1830
+ country?: string;
1831
+
1832
+ /**
1833
+ * The first line of the employee address (e.g., street, PO Box, or company name).
1834
+ *
1835
+ * Maximum length: 41 characters.
1836
+ */
1837
+ line1?: string;
1838
+
1839
+ /**
1840
+ * The second line of the employee address, if needed (e.g., apartment, suite,
1841
+ * unit, or building).
1842
+ *
1843
+ * Maximum length: 41 characters.
1844
+ */
1845
+ line2?: string;
1846
+
1847
+ /**
1848
+ * The third line of the employee address, if needed.
1849
+ *
1850
+ * Maximum length: 41 characters.
1851
+ */
1852
+ line3?: string;
1853
+
1854
+ /**
1855
+ * The fourth line of the employee address, if needed.
1856
+ *
1857
+ * Maximum length: 41 characters.
1858
+ */
1859
+ line4?: string;
1860
+
1861
+ /**
1862
+ * The postal code or ZIP code of the employee address.
1863
+ *
1864
+ * Maximum length: 13 characters.
1865
+ */
1866
+ postalCode?: string;
1867
+
1868
+ /**
1869
+ * The U.S. state of the employee address. QuickBooks requires this field to be a
1870
+ * U.S. state abbreviation (e.g., "CA" for California). See enum for all possible
1871
+ * values.
1872
+ */
1873
+ state?:
1874
+ | 'none'
1875
+ | 'armed_forces_americas'
1876
+ | 'armed_forces_europe'
1877
+ | 'armed_forces_pacific'
1878
+ | 'AK'
1879
+ | 'AL'
1880
+ | 'AR'
1881
+ | 'AZ'
1882
+ | 'CA'
1883
+ | 'CO'
1884
+ | 'CT'
1885
+ | 'DC'
1886
+ | 'DE'
1887
+ | 'FL'
1888
+ | 'GA'
1889
+ | 'HI'
1890
+ | 'IA'
1891
+ | 'ID'
1892
+ | 'IL'
1893
+ | 'IN'
1894
+ | 'KS'
1895
+ | 'KY'
1896
+ | 'LA'
1897
+ | 'MA'
1898
+ | 'MD'
1899
+ | 'ME'
1900
+ | 'MI'
1901
+ | 'MN'
1902
+ | 'MO'
1903
+ | 'MS'
1904
+ | 'MT'
1905
+ | 'NB'
1906
+ | 'NC'
1907
+ | 'ND'
1908
+ | 'NE'
1909
+ | 'NH'
1910
+ | 'NJ'
1911
+ | 'NM'
1912
+ | 'NV'
1913
+ | 'NY'
1914
+ | 'OH'
1915
+ | 'OK'
1916
+ | 'OR'
1917
+ | 'PA'
1918
+ | 'PR'
1919
+ | 'RI'
1920
+ | 'SC'
1921
+ | 'SD'
1922
+ | 'TN'
1923
+ | 'TX'
1924
+ | 'UT'
1925
+ | 'VA'
1926
+ | 'VT'
1927
+ | 'WA'
1928
+ | 'WI'
1929
+ | 'WV'
1930
+ | 'WY';
1931
+ }
1932
+
1933
+ export interface CustomContactField {
1934
+ /**
1935
+ * The name of the contact field (e.g., "old address", "secondary phone").
1936
+ */
1937
+ name: string;
1938
+
1939
+ /**
1940
+ * The value of the contact field.
1941
+ */
1942
+ value: string;
1943
+ }
1944
+
1945
+ /**
1946
+ * The employee's emergency contacts.
1947
+ */
1948
+ export interface EmergencyContact {
1949
+ /**
1950
+ * The employee's primary emergency contact.
1951
+ */
1952
+ primaryContact?: EmergencyContact.PrimaryContact;
1953
+
1954
+ /**
1955
+ * The employee's secondary emergency contact.
1956
+ */
1957
+ secondaryContact?: EmergencyContact.SecondaryContact;
1958
+ }
1959
+
1960
+ export namespace EmergencyContact {
1961
+ /**
1962
+ * The employee's primary emergency contact.
1963
+ */
1964
+ export interface PrimaryContact {
1965
+ /**
1966
+ * The name of the contact field (e.g., "old address", "secondary phone").
1967
+ */
1968
+ name: string;
1969
+
1970
+ /**
1971
+ * The value of the contact field.
1972
+ */
1973
+ value: string;
1974
+
1975
+ /**
1976
+ * The relationship of the employee to the employee.
1977
+ */
1978
+ relation?:
1979
+ | 'brother'
1980
+ | 'daughter'
1981
+ | 'father'
1982
+ | 'friend'
1983
+ | 'mother'
1984
+ | 'other'
1985
+ | 'partner'
1986
+ | 'sister'
1987
+ | 'son'
1988
+ | 'spouse';
1989
+ }
1990
+
1991
+ /**
1992
+ * The employee's secondary emergency contact.
1993
+ */
1994
+ export interface SecondaryContact {
1995
+ /**
1996
+ * The name of the contact field (e.g., "old address", "secondary phone").
1997
+ */
1998
+ name: string;
1999
+
2000
+ /**
2001
+ * The value of the contact field.
2002
+ */
2003
+ value: string;
2004
+
2005
+ /**
2006
+ * The relationship of the employee to the employee.
2007
+ */
2008
+ relation?:
2009
+ | 'brother'
2010
+ | 'daughter'
2011
+ | 'father'
2012
+ | 'friend'
2013
+ | 'mother'
2014
+ | 'other'
2015
+ | 'partner'
2016
+ | 'sister'
2017
+ | 'son'
2018
+ | 'spouse';
2019
+ }
2020
+ }
2021
+
2022
+ /**
2023
+ * The employee's payroll information.
2024
+ */
2025
+ export interface EmployeePayroll {
2026
+ /**
2027
+ * The employee's class. Classes can be used to categorize objects into meaningful
2028
+ * segments, such as department, location, or type of work. In QuickBooks, class
2029
+ * tracking is off by default.
2030
+ */
2031
+ classId?: string;
2032
+
2033
+ /**
2034
+ * The employee's earnings.
2035
+ */
2036
+ earnings?: Array<EmployeePayroll.Earning>;
2037
+
2038
+ /**
2039
+ * How frequently this employee is paid (e.g., weekly, biweekly, monthly). This
2040
+ * determines the schedule for generating paychecks.
2041
+ */
2042
+ payPeriod?: 'biweekly' | 'daily' | 'monthly' | 'quarterly' | 'semimonthly' | 'weekly' | 'yearly';
2043
+
2044
+ /**
2045
+ * The employee's sick hours, including how sick time is accrued and the total
2046
+ * hours accrued.
2047
+ */
2048
+ sickHours?: EmployeePayroll.SickHours;
2049
+
2050
+ /**
2051
+ * Indicates whether this employee is using time-tracking data to create paychecks.
2052
+ */
2053
+ useTimeDataToCreatePaychecks?: 'does_not_use_time_data' | 'not_set' | 'uses_time_data';
2054
+
2055
+ /**
2056
+ * The employee's vacation hours, including how vacation time is accrued and the
2057
+ * total hours accrued.
2058
+ */
2059
+ vacationHours?: EmployeePayroll.VacationHours;
2060
+ }
2061
+
2062
+ export namespace EmployeePayroll {
2063
+ export interface Earning {
2064
+ /**
2065
+ * The payroll wage item that defines how this employee is paid (e.g., Regular Pay,
2066
+ * Overtime Pay). This determines the payment scheme used for payroll calculations.
2067
+ */
2068
+ payrollWageItemId: string;
2069
+
2070
+ /**
2071
+ * The hourly rate for this employee, represented as a decimal string.
2072
+ */
2073
+ rate?: string;
2074
+
2075
+ /**
2076
+ * The hourly rate for this employee expressed as a percentage.
2077
+ */
2078
+ ratePercent?: string;
2079
+ }
2080
+
2081
+ /**
2082
+ * The employee's sick hours, including how sick time is accrued and the total
2083
+ * hours accrued.
2084
+ */
2085
+ export interface SickHours {
2086
+ /**
2087
+ * How frequently the employee's sick hours are accrued.
2088
+ */
2089
+ accrualPeriod?: 'accrues_annually' | 'accrues_hourly' | 'accrues_per_paycheck';
2090
+
2091
+ /**
2092
+ * The date the employee's sick hours began to accrue, in ISO 8601 format
2093
+ * (YYYY-MM-DD).
2094
+ */
2095
+ accrualStartDate?: string;
2096
+
2097
+ /**
2098
+ * The number of sick hours the employee will accrue per accrual period.
2099
+ */
2100
+ hoursAccruedPerPeriod?: string;
2101
+
2102
+ /**
2103
+ * The total number of sick hours currently available for the employee to use.
2104
+ * Defaults to 0.
2105
+ */
2106
+ hoursAvailable?: string;
2107
+
2108
+ /**
2109
+ * The number of sick hours the employee has used.
2110
+ */
2111
+ hoursUsed?: string;
2112
+
2113
+ /**
2114
+ * The maximum number of sick hours the employee can accrue.
2115
+ */
2116
+ maximumHours?: string;
2117
+
2118
+ /**
2119
+ * Indicates whether the employee's sick hours reset to zero at the beginning of
2120
+ * the new year.
2121
+ */
2122
+ resetsHoursEachYear?: boolean;
2123
+ }
2124
+
2125
+ /**
2126
+ * The employee's vacation hours, including how vacation time is accrued and the
2127
+ * total hours accrued.
2128
+ */
2129
+ export interface VacationHours {
2130
+ /**
2131
+ * How frequently the employee's vacation hours are accrued.
2132
+ */
2133
+ accrualPeriod?: 'accrues_annually' | 'accrues_hourly' | 'accrues_per_paycheck';
2134
+
2135
+ /**
2136
+ * The date the employee's vacation hours began to accrue, in ISO 8601 format
2137
+ * (YYYY-MM-DD).
2138
+ */
2139
+ accrualStartDate?: string;
2140
+
2141
+ /**
2142
+ * The number of vacation hours the employee will accrue per accrual period.
2143
+ */
2144
+ hoursAccruedPerPeriod?: string;
2145
+
2146
+ /**
2147
+ * The total number of vacation hours currently available for the employee to use.
2148
+ * Defaults to 0.
2149
+ */
2150
+ hoursAvailable?: string;
2151
+
2152
+ /**
2153
+ * The number of vacation hours the employee has used.
2154
+ */
2155
+ hoursUsed?: string;
2156
+
2157
+ /**
2158
+ * The maximum number of vacation hours the employee can accrue.
2159
+ */
2160
+ maximumHours?: string;
2161
+
2162
+ /**
2163
+ * Indicates whether the employee's vacation hours reset to zero at the beginning
2164
+ * of the new year.
2165
+ */
2166
+ resetsHoursEachYear?: boolean;
2167
+ }
2168
+ }
2169
+ }
2170
+
2171
+ export interface EmployeeListParams extends CursorPageParams {
2172
+ /**
2173
+ * Header param: The ID of the EndUser to receive this request (e.g.,
2174
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
2175
+ */
2176
+ conductorEndUserId: string;
2177
+
2178
+ /**
2179
+ * Query param: Filter for specific employees by their QuickBooks-assigned unique
2180
+ * identifier(s).
2181
+ *
2182
+ * **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
2183
+ * query parameters for this request.
2184
+ *
2185
+ * **NOTE**: If any of the values you specify in this parameter are not found, the
2186
+ * request will return an error.
2187
+ */
2188
+ ids?: Array<string>;
2189
+
2190
+ /**
2191
+ * Query param: Filter for employees whose `name` contains this substring,
2192
+ * case-insensitive. NOTE: If you use this parameter, you cannot also use
2193
+ * `nameStartsWith` or `nameEndsWith`.
2194
+ */
2195
+ nameContains?: string;
2196
+
2197
+ /**
2198
+ * Query param: Filter for employees whose `name` ends with this substring,
2199
+ * case-insensitive. NOTE: If you use this parameter, you cannot also use
2200
+ * `nameContains` or `nameStartsWith`.
2201
+ */
2202
+ nameEndsWith?: string;
2203
+
2204
+ /**
2205
+ * Query param: Filter for employees whose `name` is alphabetically greater than or
2206
+ * equal to this value.
2207
+ */
2208
+ nameFrom?: string;
2209
+
2210
+ /**
2211
+ * Query param: Filter for specific employees by their name(s), case-insensitive.
2212
+ * Like `id`, `name` is a unique identifier for an employee.
2213
+ *
2214
+ * **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
2215
+ * query parameters for this request.
2216
+ *
2217
+ * **NOTE**: If any of the values you specify in this parameter are not found, the
2218
+ * request will return an error.
2219
+ */
2220
+ names?: Array<string>;
2221
+
2222
+ /**
2223
+ * Query param: Filter for employees whose `name` starts with this substring,
2224
+ * case-insensitive. NOTE: If you use this parameter, you cannot also use
2225
+ * `nameContains` or `nameEndsWith`.
2226
+ */
2227
+ nameStartsWith?: string;
2228
+
2229
+ /**
2230
+ * Query param: Filter for employees whose `name` is alphabetically less than or
2231
+ * equal to this value.
2232
+ */
2233
+ nameTo?: string;
2234
+
2235
+ /**
2236
+ * Query param: Filter for employees that are active, inactive, or both.
2237
+ */
2238
+ status?: 'active' | 'all' | 'inactive';
2239
+
2240
+ /**
2241
+ * Query param: Filter for employees updated on or after this date and time, in ISO
2242
+ * 8601 format (YYYY-MM-DDTHH:mm:ss). If you only provide a date (YYYY-MM-DD), the
2243
+ * time is assumed to be 00:00:00 of that day.
2244
+ */
2245
+ updatedAfter?: string;
2246
+
2247
+ /**
2248
+ * Query param: Filter for employees updated on or before this date and time, in
2249
+ * ISO 8601 format (YYYY-MM-DDTHH:mm:ss). If you only provide a date (YYYY-MM-DD),
2250
+ * the time is assumed to be 23:59:59 of that day.
2251
+ */
2252
+ updatedBefore?: string;
2253
+ }
2254
+
2255
+ Employees.EmployeesCursorPage = EmployeesCursorPage;
2256
+
2257
+ export declare namespace Employees {
2258
+ export {
2259
+ type Employee as Employee,
2260
+ EmployeesCursorPage as EmployeesCursorPage,
2261
+ type EmployeeCreateParams as EmployeeCreateParams,
2262
+ type EmployeeRetrieveParams as EmployeeRetrieveParams,
2263
+ type EmployeeUpdateParams as EmployeeUpdateParams,
2264
+ type EmployeeListParams as EmployeeListParams,
2265
+ };
2266
+ }