conductor-node 11.10.0 → 12.0.0-beta.1

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 +46 -0
  2. package/LICENSE +201 -21
  3. package/README.md +330 -63
  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 -62
  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,1669 @@
1
+ import { APIResource } from "../../resource.js";
2
+ import * as Core from "../../core.js";
3
+ import { CursorPage, type CursorPageParams } from "../../pagination.js";
4
+ export declare class Employees extends APIResource {
5
+ /**
6
+ * Creates a new employee.
7
+ */
8
+ create(params: EmployeeCreateParams, options?: Core.RequestOptions): Core.APIPromise<Employee>;
9
+ /**
10
+ * Retrieves an employee by ID.
11
+ */
12
+ retrieve(id: string, params: EmployeeRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<Employee>;
13
+ /**
14
+ * Updates an existing employee.
15
+ */
16
+ update(id: string, params: EmployeeUpdateParams, options?: Core.RequestOptions): Core.APIPromise<Employee>;
17
+ /**
18
+ * Returns a list of employees. Use the `cursor` parameter to paginate through the
19
+ * results.
20
+ */
21
+ list(params: EmployeeListParams, options?: Core.RequestOptions): Core.PagePromise<EmployeesCursorPage, Employee>;
22
+ }
23
+ export declare class EmployeesCursorPage extends CursorPage<Employee> {
24
+ }
25
+ export interface Employee {
26
+ /**
27
+ * The unique identifier assigned by QuickBooks to this employee. This ID is unique
28
+ * across all employees but not across different QuickBooks object types.
29
+ */
30
+ id: string;
31
+ /**
32
+ * The employee's account number, which appears in the QuickBooks chart of
33
+ * accounts, reports, and graphs.
34
+ *
35
+ * Note that if the "Use Account Numbers" preference is turned off in QuickBooks,
36
+ * the account number may not be visible in the user interface, but it can still be
37
+ * set and retrieved through the API.
38
+ */
39
+ accountNumber: string | null;
40
+ /**
41
+ * Additional notes about this employee.
42
+ */
43
+ additionalNotes: Array<Employee.AdditionalNote>;
44
+ /**
45
+ * The employee's address.
46
+ *
47
+ * If the company uses QuickBooks Payroll for this employee, this address must
48
+ * specify a complete address, including city, state, ZIP (or postal) code, and at
49
+ * least one line of the street address.
50
+ */
51
+ address: Employee.Address | null;
52
+ /**
53
+ * The adjusted service date for this employee, in ISO 8601 format (YYYY-MM-DD).
54
+ * This date accounts for previous employment periods or leaves that affect
55
+ * seniority.
56
+ */
57
+ adjustedServiceDate: string | null;
58
+ /**
59
+ * The employee's alternate telephone number.
60
+ */
61
+ alternatePhone: string | null;
62
+ /**
63
+ * The employee's billing rate, used to override service item rates in time
64
+ * tracking transactions.
65
+ */
66
+ billingRate: Employee.BillingRate | null;
67
+ /**
68
+ * This employee's date of birth, in ISO 8601 format (YYYY-MM-DD).
69
+ */
70
+ birthDate: string | null;
71
+ /**
72
+ * The date and time when this employee was created, in ISO 8601 format
73
+ * (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone
74
+ * in QuickBooks.
75
+ */
76
+ createdAt: string;
77
+ /**
78
+ * Additional custom contact fields for this employee, such as phone numbers or
79
+ * email addresses.
80
+ */
81
+ customContactFields: Array<Employee.CustomContactField>;
82
+ /**
83
+ * The custom fields for the employee object, added as user-defined data
84
+ * extensions, not included in the standard QuickBooks object.
85
+ */
86
+ customFields: Array<Employee.CustomField>;
87
+ /**
88
+ * The employee's department. Found in the "employment job details" section of the
89
+ * employee's record in QuickBooks.
90
+ */
91
+ department: string | null;
92
+ /**
93
+ * A description of this employee. Found in the "employment job details" section of
94
+ * the employee's record in QuickBooks.
95
+ */
96
+ description: string | null;
97
+ /**
98
+ * A description of this employee's disability.
99
+ */
100
+ disabilityDescription: string | null;
101
+ /**
102
+ * Indicates whether this employee is disabled.
103
+ */
104
+ disabilityStatus: 'disabled' | 'non_disabled' | null;
105
+ /**
106
+ * The employee's email address.
107
+ */
108
+ email: string | null;
109
+ /**
110
+ * The employee's emergency contacts.
111
+ */
112
+ emergencyContact: Employee.EmergencyContact | null;
113
+ /**
114
+ * The employee's payroll information.
115
+ */
116
+ employeePayroll: Employee.EmployeePayroll | null;
117
+ /**
118
+ * The employee type. This affects payroll taxes - a statutory employee is defined
119
+ * as an employee by statute. Note that owners/partners are typically on the "Other
120
+ * Names" list in QuickBooks, but if listed as an employee their type will be
121
+ * `owner`.
122
+ */
123
+ employeeType: 'officer' | 'owner' | 'regular' | 'statutory' | null;
124
+ /**
125
+ * Indicates whether this employee is a part-time or full-time employee.
126
+ */
127
+ employmentStatus: 'full_time' | 'part_time' | null;
128
+ /**
129
+ * This employee's ethnicity.
130
+ */
131
+ ethnicity: 'american_indian' | 'asian' | 'black' | 'hawaiian' | 'hispanic' | 'white' | 'two_or_more_races' | null;
132
+ /**
133
+ * A globally unique identifier (GUID) you, the developer, can provide for tracking
134
+ * this object in your external system. This field is immutable and can only be set
135
+ * during object creation.
136
+ */
137
+ externalId: string | null;
138
+ /**
139
+ * The employee's fax number.
140
+ */
141
+ fax: string | null;
142
+ /**
143
+ * The employee's first name.
144
+ */
145
+ firstName: string | null;
146
+ /**
147
+ * This employee's gender.
148
+ */
149
+ gender: 'male' | 'female' | null;
150
+ /**
151
+ * The date this employee was hired, in ISO 8601 format (YYYY-MM-DD).
152
+ */
153
+ hiredDate: string | null;
154
+ /**
155
+ * Indicates whether this employee's I-9 is on file.
156
+ */
157
+ i9OnFileStatus: 'on_file' | 'not_on_file' | null;
158
+ /**
159
+ * Indicates whether this employee is active. Inactive objects are typically hidden
160
+ * from views and reports in QuickBooks. Defaults to `true`.
161
+ */
162
+ isActive: boolean;
163
+ /**
164
+ * The employee's job title.
165
+ */
166
+ jobTitle: string | null;
167
+ /**
168
+ * Indicates whether this employee is a key employee.
169
+ */
170
+ keyEmployeeStatus: 'key_employee' | 'non_key_employee' | null;
171
+ /**
172
+ * The employee's last name.
173
+ */
174
+ lastName: string | null;
175
+ /**
176
+ * The employee's middle name.
177
+ */
178
+ middleName: string | null;
179
+ /**
180
+ * This employee's military status if they are a U.S. veteran.
181
+ */
182
+ militaryStatus: 'active' | 'reserve' | null;
183
+ /**
184
+ * The employee's mobile phone number.
185
+ */
186
+ mobile: string | null;
187
+ /**
188
+ * The case-insensitive unique name of this employee, unique across all employees.
189
+ * A concatenation of the employee's `firstName`, `middleName`, and `lastName`
190
+ * fields.
191
+ *
192
+ * **NOTE**: Employees do not have a `fullName` field because they are not
193
+ * hierarchical objects, which is why `name` is unique for them but not for objects
194
+ * that have parents.
195
+ */
196
+ name: string;
197
+ /**
198
+ * A note or comment about this employee.
199
+ */
200
+ note: string | null;
201
+ /**
202
+ * The type of object. This value is always `"qbd_employee"`.
203
+ */
204
+ objectType: 'qbd_employee';
205
+ /**
206
+ * The original hire date for this employee, in ISO 8601 format (YYYY-MM-DD).
207
+ */
208
+ originalHireDate: string | null;
209
+ /**
210
+ * Indicates whether this employee is exempt from overtime pay. This classification
211
+ * is based on U.S. labor laws (FLSA).
212
+ */
213
+ overtimeExemptStatus: 'exempt' | 'non_exempt' | null;
214
+ /**
215
+ * The employee's pager number.
216
+ */
217
+ pager: string | null;
218
+ /**
219
+ * The employee's pager PIN.
220
+ */
221
+ pagerPin: string | null;
222
+ /**
223
+ * The employee's primary telephone number.
224
+ */
225
+ phone: string | null;
226
+ /**
227
+ * The name to use when printing this employee from QuickBooks. By default, this is
228
+ * the same as the `name` field.
229
+ */
230
+ printAs: string | null;
231
+ /**
232
+ * The current QuickBooks-assigned revision number of this employee object, which
233
+ * changes each time the object is modified. When updating this object, you must
234
+ * provide the most recent `revisionNumber` to ensure you're working with the
235
+ * latest data; otherwise, the update will return an error.
236
+ */
237
+ revisionNumber: string;
238
+ /**
239
+ * The employee's formal salutation title that precedes their name, such as "Mr.",
240
+ * "Ms.", or "Dr.".
241
+ */
242
+ salutation: string | null;
243
+ /**
244
+ * The employee's Social Security Number. The value can be with or without dashes.
245
+ *
246
+ * **NOTE**: This field cannot be changed after the employee is created.
247
+ */
248
+ ssn: string | null;
249
+ /**
250
+ * The employee's supervisor. Found in the "employment job details" section of the
251
+ * employee's record in QuickBooks.
252
+ */
253
+ supervisor: Employee.Supervisor | null;
254
+ /**
255
+ * The target bonus for this employee, represented as a decimal string. Found in
256
+ * the "employment job details" section of the employee's record in QuickBooks.
257
+ */
258
+ targetBonus: string | null;
259
+ /**
260
+ * The date this employee's employment ended with the company, in ISO 8601 format
261
+ * (YYYY-MM-DD). This is also known as the released date or separation date.
262
+ */
263
+ terminationDate: string | null;
264
+ /**
265
+ * The date and time when this employee was last updated, in ISO 8601 format
266
+ * (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone
267
+ * in QuickBooks.
268
+ */
269
+ updatedAt: string;
270
+ /**
271
+ * Indicates whether this employee is a U.S. citizen.
272
+ */
273
+ usCitizenshipStatus: 'citizen' | 'non_citizen' | null;
274
+ /**
275
+ * Indicates whether this employee is a U.S. veteran.
276
+ */
277
+ usVeteranStatus: 'veteran' | 'non_veteran' | null;
278
+ /**
279
+ * The date this employee's work authorization expires, in ISO 8601 format
280
+ * (YYYY-MM-DD).
281
+ */
282
+ workAuthorizationExpirationDate: string | null;
283
+ }
284
+ export declare namespace Employee {
285
+ interface AdditionalNote {
286
+ /**
287
+ * The auto-incrementing identifier assigned by QuickBooks to this note.
288
+ */
289
+ id: number;
290
+ /**
291
+ * The date this note was last updated, in ISO 8601 format (YYYY-MM-DD).
292
+ */
293
+ date: string;
294
+ /**
295
+ * The text of this note.
296
+ */
297
+ note: string;
298
+ }
299
+ /**
300
+ * The employee's address.
301
+ *
302
+ * If the company uses QuickBooks Payroll for this employee, this address must
303
+ * specify a complete address, including city, state, ZIP (or postal) code, and at
304
+ * least one line of the street address.
305
+ */
306
+ interface Address {
307
+ /**
308
+ * The city, district, suburb, town, or village name of the employee address.
309
+ */
310
+ city: string | null;
311
+ /**
312
+ * The country name of the employee address.
313
+ */
314
+ country: string | null;
315
+ /**
316
+ * The first line of the employee address (e.g., street, PO Box, or company name).
317
+ */
318
+ line1: string | null;
319
+ /**
320
+ * The second line of the employee address, if needed (e.g., apartment, suite,
321
+ * unit, or building).
322
+ */
323
+ line2: string | null;
324
+ /**
325
+ * The third line of the employee address, if needed.
326
+ */
327
+ line3: string | null;
328
+ /**
329
+ * The fourth line of the employee address, if needed.
330
+ */
331
+ line4: string | null;
332
+ /**
333
+ * The postal code or ZIP code of the employee address.
334
+ */
335
+ postalCode: string | null;
336
+ /**
337
+ * The U.S. state of the employee address. QuickBooks requires this field to be a
338
+ * U.S. state abbreviation (e.g., "CA" for California). See enum for all possible
339
+ * values.
340
+ */
341
+ state: 'none' | 'armed_forces_americas' | 'armed_forces_europe' | 'armed_forces_pacific' | 'AK' | 'AL' | 'AR' | 'AZ' | 'CA' | 'CO' | 'CT' | 'DC' | 'DE' | 'FL' | 'GA' | 'HI' | 'IA' | 'ID' | 'IL' | 'IN' | 'KS' | 'KY' | 'LA' | 'MA' | 'MD' | 'ME' | 'MI' | 'MN' | 'MO' | 'MS' | 'MT' | 'NB' | 'NC' | 'ND' | 'NE' | 'NH' | 'NJ' | 'NM' | 'NV' | 'NY' | 'OH' | 'OK' | 'OR' | 'PA' | 'PR' | 'RI' | 'SC' | 'SD' | 'TN' | 'TX' | 'UT' | 'VA' | 'VT' | 'WA' | 'WI' | 'WV' | 'WY' | null;
342
+ }
343
+ /**
344
+ * The employee's billing rate, used to override service item rates in time
345
+ * tracking transactions.
346
+ */
347
+ interface BillingRate {
348
+ /**
349
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
350
+ * across all objects of the same type, but not across different QuickBooks object
351
+ * types.
352
+ */
353
+ id: string | null;
354
+ /**
355
+ * The fully-qualified unique name for this object, formed by combining the names
356
+ * of its parent objects with its own `name`, separated by colons. Not
357
+ * case-sensitive.
358
+ */
359
+ fullName: string | null;
360
+ }
361
+ interface CustomContactField {
362
+ /**
363
+ * The name of the contact field (e.g., "old address", "secondary phone").
364
+ */
365
+ name: string;
366
+ /**
367
+ * The value of the contact field.
368
+ */
369
+ value: string;
370
+ }
371
+ interface CustomField {
372
+ /**
373
+ * The name of the custom field, unique for the specified `ownerId`. For public
374
+ * custom fields, this name is visible as a label in the QuickBooks UI.
375
+ */
376
+ name: string;
377
+ /**
378
+ * The identifier of the owner of the custom field, which QuickBooks internally
379
+ * calls a "data extension". For public custom fields visible in the UI, such as
380
+ * those added by the QuickBooks user, this is always "0". For private custom
381
+ * fields that are only visible to the application that created them, this is a
382
+ * valid GUID identifying the owning application. Internally, Conductor always
383
+ * fetches all public custom fields (those with an `ownerId` of "0") for all
384
+ * objects.
385
+ */
386
+ ownerId: string;
387
+ /**
388
+ * The data type of this custom field.
389
+ */
390
+ type: 'amount_type' | 'date_time_type' | 'integer_type' | 'percent_type' | 'price_type' | 'quantity_type' | 'string_1024_type' | 'string_255_type';
391
+ /**
392
+ * The value of this custom field. The maximum length depends on the field's data
393
+ * type.
394
+ */
395
+ value: string;
396
+ }
397
+ /**
398
+ * The employee's emergency contacts.
399
+ */
400
+ interface EmergencyContact {
401
+ /**
402
+ * The employee's primary emergency contact.
403
+ */
404
+ primaryContact: EmergencyContact.PrimaryContact | null;
405
+ /**
406
+ * The employee's secondary emergency contact.
407
+ */
408
+ secondaryContact: EmergencyContact.SecondaryContact | null;
409
+ }
410
+ namespace EmergencyContact {
411
+ /**
412
+ * The employee's primary emergency contact.
413
+ */
414
+ interface PrimaryContact {
415
+ /**
416
+ * The name of the contact field (e.g., "old address", "secondary phone").
417
+ */
418
+ name: string;
419
+ /**
420
+ * The relationship of the employee to the employee.
421
+ */
422
+ relation: 'brother' | 'daughter' | 'father' | 'friend' | 'mother' | 'other' | 'partner' | 'sister' | 'son' | 'spouse' | null;
423
+ /**
424
+ * The value of the contact field.
425
+ */
426
+ value: string;
427
+ }
428
+ /**
429
+ * The employee's secondary emergency contact.
430
+ */
431
+ interface SecondaryContact {
432
+ /**
433
+ * The name of the contact field (e.g., "old address", "secondary phone").
434
+ */
435
+ name: string;
436
+ /**
437
+ * The relationship of the employee to the employee.
438
+ */
439
+ relation: 'brother' | 'daughter' | 'father' | 'friend' | 'mother' | 'other' | 'partner' | 'sister' | 'son' | 'spouse' | null;
440
+ /**
441
+ * The value of the contact field.
442
+ */
443
+ value: string;
444
+ }
445
+ }
446
+ /**
447
+ * The employee's payroll information.
448
+ */
449
+ interface EmployeePayroll {
450
+ /**
451
+ * The employee's class. Classes can be used to categorize objects into meaningful
452
+ * segments, such as department, location, or type of work. In QuickBooks, class
453
+ * tracking is off by default.
454
+ */
455
+ class: EmployeePayroll.Class | null;
456
+ /**
457
+ * The employee's earnings.
458
+ */
459
+ earnings: Array<EmployeePayroll.Earning>;
460
+ /**
461
+ * How frequently this employee is paid (e.g., weekly, biweekly, monthly). This
462
+ * determines the schedule for generating paychecks.
463
+ */
464
+ payPeriod: 'biweekly' | 'daily' | 'monthly' | 'quarterly' | 'semimonthly' | 'weekly' | 'yearly' | null;
465
+ /**
466
+ * The employee's sick hours, including how sick time is accrued and the total
467
+ * hours accrued.
468
+ */
469
+ sickHours: EmployeePayroll.SickHours | null;
470
+ /**
471
+ * Indicates whether this employee is using time-tracking data to create paychecks.
472
+ */
473
+ useTimeDataToCreatePaychecks: 'does_not_use_time_data' | 'not_set' | 'uses_time_data' | null;
474
+ /**
475
+ * The employee's vacation hours, including how vacation time is accrued and the
476
+ * total hours accrued.
477
+ */
478
+ vacationHours: EmployeePayroll.VacationHours | null;
479
+ }
480
+ namespace EmployeePayroll {
481
+ /**
482
+ * The employee's class. Classes can be used to categorize objects into meaningful
483
+ * segments, such as department, location, or type of work. In QuickBooks, class
484
+ * tracking is off by default.
485
+ */
486
+ interface Class {
487
+ /**
488
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
489
+ * across all objects of the same type, but not across different QuickBooks object
490
+ * types.
491
+ */
492
+ id: string | null;
493
+ /**
494
+ * The fully-qualified unique name for this object, formed by combining the names
495
+ * of its parent objects with its own `name`, separated by colons. Not
496
+ * case-sensitive.
497
+ */
498
+ fullName: string | null;
499
+ }
500
+ interface Earning {
501
+ /**
502
+ * The payroll wage item that defines how this employee is paid (e.g., Regular Pay,
503
+ * Overtime Pay). This determines the payment scheme used for payroll calculations.
504
+ */
505
+ payrollWageItem: Earning.PayrollWageItem;
506
+ /**
507
+ * The hourly rate for this employee, represented as a decimal string.
508
+ */
509
+ rate: string | null;
510
+ /**
511
+ * The hourly rate for this employee expressed as a percentage.
512
+ */
513
+ ratePercent: string | null;
514
+ }
515
+ namespace Earning {
516
+ /**
517
+ * The payroll wage item that defines how this employee is paid (e.g., Regular Pay,
518
+ * Overtime Pay). This determines the payment scheme used for payroll calculations.
519
+ */
520
+ interface PayrollWageItem {
521
+ /**
522
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
523
+ * across all objects of the same type, but not across different QuickBooks object
524
+ * types.
525
+ */
526
+ id: string | null;
527
+ /**
528
+ * The fully-qualified unique name for this object, formed by combining the names
529
+ * of its parent objects with its own `name`, separated by colons. Not
530
+ * case-sensitive.
531
+ */
532
+ fullName: string | null;
533
+ }
534
+ }
535
+ /**
536
+ * The employee's sick hours, including how sick time is accrued and the total
537
+ * hours accrued.
538
+ */
539
+ interface SickHours {
540
+ /**
541
+ * How frequently the employee's sick hours are accrued.
542
+ */
543
+ accrualPeriod: 'accrues_annually' | 'accrues_hourly' | 'accrues_per_paycheck' | null;
544
+ /**
545
+ * The date the employee's sick hours began to accrue, in ISO 8601 format
546
+ * (YYYY-MM-DD).
547
+ */
548
+ accrualStartDate: string | null;
549
+ /**
550
+ * The number of sick hours the employee will accrue per accrual period.
551
+ */
552
+ hoursAccruedPerPeriod: string | null;
553
+ /**
554
+ * The total number of sick hours currently available for the employee to use.
555
+ * Defaults to 0.
556
+ */
557
+ hoursAvailable: string | null;
558
+ /**
559
+ * The number of sick hours the employee has used.
560
+ */
561
+ hoursUsed: string | null;
562
+ /**
563
+ * The maximum number of sick hours the employee can accrue.
564
+ */
565
+ maximumHours: string | null;
566
+ /**
567
+ * Indicates whether the employee's sick hours reset to zero at the beginning of
568
+ * the new year.
569
+ */
570
+ resetsHoursEachYear: boolean | null;
571
+ }
572
+ /**
573
+ * The employee's vacation hours, including how vacation time is accrued and the
574
+ * total hours accrued.
575
+ */
576
+ interface VacationHours {
577
+ /**
578
+ * How frequently the employee's vacation hours are accrued.
579
+ */
580
+ accrualPeriod: 'accrues_annually' | 'accrues_hourly' | 'accrues_per_paycheck' | null;
581
+ /**
582
+ * The date the employee's vacation hours began to accrue, in ISO 8601 format
583
+ * (YYYY-MM-DD).
584
+ */
585
+ accrualStartDate: string | null;
586
+ /**
587
+ * The number of vacation hours the employee will accrue per accrual period.
588
+ */
589
+ hoursAccruedPerPeriod: string | null;
590
+ /**
591
+ * The total number of vacation hours currently available for the employee to use.
592
+ * Defaults to 0.
593
+ */
594
+ hoursAvailable: string | null;
595
+ /**
596
+ * The number of vacation hours the employee has used.
597
+ */
598
+ hoursUsed: string | null;
599
+ /**
600
+ * The maximum number of vacation hours the employee can accrue.
601
+ */
602
+ maximumHours: string | null;
603
+ /**
604
+ * Indicates whether the employee's vacation hours reset to zero at the beginning
605
+ * of the new year.
606
+ */
607
+ resetsHoursEachYear: boolean | null;
608
+ }
609
+ }
610
+ /**
611
+ * The employee's supervisor. Found in the "employment job details" section of the
612
+ * employee's record in QuickBooks.
613
+ */
614
+ interface Supervisor {
615
+ /**
616
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
617
+ * across all objects of the same type, but not across different QuickBooks object
618
+ * types.
619
+ */
620
+ id: string | null;
621
+ /**
622
+ * The fully-qualified unique name for this object, formed by combining the names
623
+ * of its parent objects with its own `name`, separated by colons. Not
624
+ * case-sensitive.
625
+ */
626
+ fullName: string | null;
627
+ }
628
+ }
629
+ export interface EmployeeCreateParams {
630
+ /**
631
+ * Header param: The ID of the EndUser to receive this request (e.g.,
632
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
633
+ */
634
+ conductorEndUserId: string;
635
+ /**
636
+ * Body param: The employee's account number, which appears in the QuickBooks chart
637
+ * of accounts, reports, and graphs.
638
+ *
639
+ * Note that if the "Use Account Numbers" preference is turned off in QuickBooks,
640
+ * the account number may not be visible in the user interface, but it can still be
641
+ * set and retrieved through the API.
642
+ */
643
+ accountNumber?: string;
644
+ /**
645
+ * Body param: Additional notes about this employee.
646
+ */
647
+ additionalNotes?: Array<EmployeeCreateParams.AdditionalNote>;
648
+ /**
649
+ * Body param: The employee's address.
650
+ *
651
+ * If the company uses QuickBooks Payroll for this employee, this address must
652
+ * specify a complete address, including city, state, ZIP (or postal) code, and at
653
+ * least one line of the street address.
654
+ */
655
+ address?: EmployeeCreateParams.Address;
656
+ /**
657
+ * Body param: The adjusted service date for this employee, in ISO 8601 format
658
+ * (YYYY-MM-DD). This date accounts for previous employment periods or leaves that
659
+ * affect seniority.
660
+ */
661
+ adjustedServiceDate?: string;
662
+ /**
663
+ * Body param: The employee's alternate telephone number.
664
+ */
665
+ alternatePhone?: string;
666
+ /**
667
+ * Body param: The employee's billing rate, used to override service item rates in
668
+ * time tracking transactions.
669
+ */
670
+ billingRateId?: string;
671
+ /**
672
+ * Body param: This employee's date of birth, in ISO 8601 format (YYYY-MM-DD).
673
+ */
674
+ birthDate?: string;
675
+ /**
676
+ * Body param: Additional custom contact fields for this employee, such as phone
677
+ * numbers or email addresses.
678
+ */
679
+ customContactFields?: Array<EmployeeCreateParams.CustomContactField>;
680
+ /**
681
+ * Body param: The employee's department. Found in the "employment job details"
682
+ * section of the employee's record in QuickBooks.
683
+ */
684
+ department?: string;
685
+ /**
686
+ * Body param: A description of this employee. Found in the "employment job
687
+ * details" section of the employee's record in QuickBooks.
688
+ */
689
+ description?: string;
690
+ /**
691
+ * Body param: A description of this employee's disability.
692
+ */
693
+ disabilityDescription?: string;
694
+ /**
695
+ * Body param: Indicates whether this employee is disabled.
696
+ */
697
+ disabilityStatus?: 'disabled' | 'non_disabled';
698
+ /**
699
+ * Body param: The employee's email address.
700
+ */
701
+ email?: string;
702
+ /**
703
+ * Body param: The employee's emergency contacts.
704
+ */
705
+ emergencyContact?: EmployeeCreateParams.EmergencyContact;
706
+ /**
707
+ * Body param: The employee's payroll information.
708
+ */
709
+ employeePayroll?: EmployeeCreateParams.EmployeePayroll;
710
+ /**
711
+ * Body param: The employee type. This affects payroll taxes - a statutory employee
712
+ * is defined as an employee by statute. Note that owners/partners are typically on
713
+ * the "Other Names" list in QuickBooks, but if listed as an employee their type
714
+ * will be `owner`.
715
+ */
716
+ employeeType?: 'officer' | 'owner' | 'regular' | 'statutory';
717
+ /**
718
+ * Body param: Indicates whether this employee is a part-time or full-time
719
+ * employee.
720
+ */
721
+ employmentStatus?: 'full_time' | 'part_time';
722
+ /**
723
+ * Body param: This employee's ethnicity.
724
+ */
725
+ ethnicity?: 'american_indian' | 'asian' | 'black' | 'hawaiian' | 'hispanic' | 'white' | 'two_or_more_races';
726
+ /**
727
+ * Body param: A globally unique identifier (GUID) you, the developer, can provide
728
+ * for tracking this object in your external system. This field is immutable and
729
+ * can only be set during object creation.
730
+ *
731
+ * **IMPORTANT**: This field must be formatted as a valid GUID; otherwise,
732
+ * QuickBooks will return an error.
733
+ */
734
+ externalId?: string;
735
+ /**
736
+ * Body param: The employee's fax number.
737
+ */
738
+ fax?: string;
739
+ /**
740
+ * Body param: The employee's first name.
741
+ *
742
+ * Maximum length: 25 characters.
743
+ */
744
+ firstName?: string;
745
+ /**
746
+ * Body param: This employee's gender.
747
+ */
748
+ gender?: 'male' | 'female';
749
+ /**
750
+ * Body param: The date this employee was hired, in ISO 8601 format (YYYY-MM-DD).
751
+ */
752
+ hiredDate?: string;
753
+ /**
754
+ * Body param: Indicates whether this employee's I-9 is on file.
755
+ */
756
+ i9OnFileStatus?: 'on_file' | 'not_on_file';
757
+ /**
758
+ * Body param: Indicates whether this employee is active. Inactive objects are
759
+ * typically hidden from views and reports in QuickBooks. Defaults to `true`.
760
+ */
761
+ isActive?: boolean;
762
+ /**
763
+ * Body param: The employee's job title.
764
+ */
765
+ jobTitle?: string;
766
+ /**
767
+ * Body param: Indicates whether this employee is a key employee.
768
+ */
769
+ keyEmployeeStatus?: 'key_employee' | 'non_key_employee';
770
+ /**
771
+ * Body param: The employee's last name.
772
+ *
773
+ * Maximum length: 25 characters.
774
+ */
775
+ lastName?: string;
776
+ /**
777
+ * Body param: The employee's middle name.
778
+ *
779
+ * Maximum length: 5 characters.
780
+ */
781
+ middleName?: string;
782
+ /**
783
+ * Body param: This employee's military status if they are a U.S. veteran.
784
+ */
785
+ militaryStatus?: 'active' | 'reserve';
786
+ /**
787
+ * Body param: The employee's mobile phone number.
788
+ */
789
+ mobile?: string;
790
+ /**
791
+ * Body param: A note or comment about this employee.
792
+ */
793
+ note?: string;
794
+ /**
795
+ * Body param: The original hire date for this employee, in ISO 8601 format
796
+ * (YYYY-MM-DD).
797
+ */
798
+ originalHireDate?: string;
799
+ /**
800
+ * Body param: Indicates whether this employee is exempt from overtime pay. This
801
+ * classification is based on U.S. labor laws (FLSA).
802
+ */
803
+ overtimeExemptStatus?: 'exempt' | 'non_exempt';
804
+ /**
805
+ * Body param: The employee's pager number.
806
+ */
807
+ pager?: string;
808
+ /**
809
+ * Body param: The employee's pager PIN.
810
+ */
811
+ pagerPin?: string;
812
+ /**
813
+ * Body param: The employee's primary telephone number.
814
+ */
815
+ phone?: string;
816
+ /**
817
+ * Body param: The name to use when printing this employee from QuickBooks. By
818
+ * default, this is the same as the `name` field.
819
+ */
820
+ printAs?: string;
821
+ /**
822
+ * Body param: The employee's formal salutation title that precedes their name,
823
+ * such as "Mr.", "Ms.", or "Dr.".
824
+ */
825
+ salutation?: string;
826
+ /**
827
+ * Body param: The employee's Social Security Number. The value can be with or
828
+ * without dashes.
829
+ *
830
+ * **NOTE**: This field cannot be changed after the employee is created.
831
+ */
832
+ ssn?: string;
833
+ /**
834
+ * Body param: The employee's supervisor. Found in the "employment job details"
835
+ * section of the employee's record in QuickBooks.
836
+ */
837
+ supervisorId?: string;
838
+ /**
839
+ * Body param: The target bonus for this employee, represented as a decimal string.
840
+ * Found in the "employment job details" section of the employee's record in
841
+ * QuickBooks.
842
+ */
843
+ targetBonus?: string;
844
+ /**
845
+ * Body param: The date this employee's employment ended with the company, in ISO
846
+ * 8601 format (YYYY-MM-DD). This is also known as the released date or separation
847
+ * date.
848
+ */
849
+ terminationDate?: string;
850
+ /**
851
+ * Body param: Indicates whether this employee is a U.S. citizen.
852
+ */
853
+ usCitizenshipStatus?: 'citizen' | 'non_citizen';
854
+ /**
855
+ * Body param: Indicates whether this employee is a U.S. veteran.
856
+ */
857
+ usVeteranStatus?: 'veteran' | 'non_veteran';
858
+ /**
859
+ * Body param: The date this employee's work authorization expires, in ISO 8601
860
+ * format (YYYY-MM-DD).
861
+ */
862
+ workAuthorizationExpirationDate?: string;
863
+ }
864
+ export declare namespace EmployeeCreateParams {
865
+ interface AdditionalNote {
866
+ /**
867
+ * The text of this note.
868
+ */
869
+ note: string;
870
+ }
871
+ /**
872
+ * The employee's address.
873
+ *
874
+ * If the company uses QuickBooks Payroll for this employee, this address must
875
+ * specify a complete address, including city, state, ZIP (or postal) code, and at
876
+ * least one line of the street address.
877
+ */
878
+ interface Address {
879
+ /**
880
+ * The city, district, suburb, town, or village name of the employee address.
881
+ *
882
+ * Maximum length: 31 characters.
883
+ */
884
+ city?: string;
885
+ /**
886
+ * The country name of the employee address.
887
+ */
888
+ country?: string;
889
+ /**
890
+ * The first line of the employee address (e.g., street, PO Box, or company name).
891
+ *
892
+ * Maximum length: 41 characters.
893
+ */
894
+ line1?: string;
895
+ /**
896
+ * The second line of the employee address, if needed (e.g., apartment, suite,
897
+ * unit, or building).
898
+ *
899
+ * Maximum length: 41 characters.
900
+ */
901
+ line2?: string;
902
+ /**
903
+ * The third line of the employee address, if needed.
904
+ *
905
+ * Maximum length: 41 characters.
906
+ */
907
+ line3?: string;
908
+ /**
909
+ * The fourth line of the employee address, if needed.
910
+ *
911
+ * Maximum length: 41 characters.
912
+ */
913
+ line4?: string;
914
+ /**
915
+ * The postal code or ZIP code of the employee address.
916
+ *
917
+ * Maximum length: 13 characters.
918
+ */
919
+ postalCode?: string;
920
+ /**
921
+ * The U.S. state of the employee address. QuickBooks requires this field to be a
922
+ * U.S. state abbreviation (e.g., "CA" for California). See enum for all possible
923
+ * values.
924
+ */
925
+ state?: 'none' | 'armed_forces_americas' | 'armed_forces_europe' | 'armed_forces_pacific' | 'AK' | 'AL' | 'AR' | 'AZ' | 'CA' | 'CO' | 'CT' | 'DC' | 'DE' | 'FL' | 'GA' | 'HI' | 'IA' | 'ID' | 'IL' | 'IN' | 'KS' | 'KY' | 'LA' | 'MA' | 'MD' | 'ME' | 'MI' | 'MN' | 'MO' | 'MS' | 'MT' | 'NB' | 'NC' | 'ND' | 'NE' | 'NH' | 'NJ' | 'NM' | 'NV' | 'NY' | 'OH' | 'OK' | 'OR' | 'PA' | 'PR' | 'RI' | 'SC' | 'SD' | 'TN' | 'TX' | 'UT' | 'VA' | 'VT' | 'WA' | 'WI' | 'WV' | 'WY';
926
+ }
927
+ interface CustomContactField {
928
+ /**
929
+ * The name of the contact field (e.g., "old address", "secondary phone").
930
+ */
931
+ name: string;
932
+ /**
933
+ * The value of the contact field.
934
+ */
935
+ value: string;
936
+ }
937
+ /**
938
+ * The employee's emergency contacts.
939
+ */
940
+ interface EmergencyContact {
941
+ /**
942
+ * The employee's primary emergency contact.
943
+ */
944
+ primaryContact?: EmergencyContact.PrimaryContact;
945
+ /**
946
+ * The employee's secondary emergency contact.
947
+ */
948
+ secondaryContact?: EmergencyContact.SecondaryContact;
949
+ }
950
+ namespace EmergencyContact {
951
+ /**
952
+ * The employee's primary emergency contact.
953
+ */
954
+ interface PrimaryContact {
955
+ /**
956
+ * The name of the contact field (e.g., "old address", "secondary phone").
957
+ */
958
+ name: string;
959
+ /**
960
+ * The value of the contact field.
961
+ */
962
+ value: string;
963
+ /**
964
+ * The relationship of the employee to the employee.
965
+ */
966
+ relation?: 'brother' | 'daughter' | 'father' | 'friend' | 'mother' | 'other' | 'partner' | 'sister' | 'son' | 'spouse';
967
+ }
968
+ /**
969
+ * The employee's secondary emergency contact.
970
+ */
971
+ interface SecondaryContact {
972
+ /**
973
+ * The name of the contact field (e.g., "old address", "secondary phone").
974
+ */
975
+ name: string;
976
+ /**
977
+ * The value of the contact field.
978
+ */
979
+ value: string;
980
+ /**
981
+ * The relationship of the employee to the employee.
982
+ */
983
+ relation?: 'brother' | 'daughter' | 'father' | 'friend' | 'mother' | 'other' | 'partner' | 'sister' | 'son' | 'spouse';
984
+ }
985
+ }
986
+ /**
987
+ * The employee's payroll information.
988
+ */
989
+ interface EmployeePayroll {
990
+ /**
991
+ * The employee's class. Classes can be used to categorize objects into meaningful
992
+ * segments, such as department, location, or type of work. In QuickBooks, class
993
+ * tracking is off by default.
994
+ */
995
+ classId?: string;
996
+ /**
997
+ * The employee's earnings.
998
+ */
999
+ earnings?: Array<EmployeePayroll.Earning>;
1000
+ /**
1001
+ * How frequently this employee is paid (e.g., weekly, biweekly, monthly). This
1002
+ * determines the schedule for generating paychecks.
1003
+ */
1004
+ payPeriod?: 'biweekly' | 'daily' | 'monthly' | 'quarterly' | 'semimonthly' | 'weekly' | 'yearly';
1005
+ /**
1006
+ * The employee's sick hours, including how sick time is accrued and the total
1007
+ * hours accrued.
1008
+ */
1009
+ sickHours?: EmployeePayroll.SickHours;
1010
+ /**
1011
+ * Indicates whether this employee is using time-tracking data to create paychecks.
1012
+ */
1013
+ useTimeDataToCreatePaychecks?: 'does_not_use_time_data' | 'not_set' | 'uses_time_data';
1014
+ /**
1015
+ * The employee's vacation hours, including how vacation time is accrued and the
1016
+ * total hours accrued.
1017
+ */
1018
+ vacationHours?: EmployeePayroll.VacationHours;
1019
+ }
1020
+ namespace EmployeePayroll {
1021
+ interface Earning {
1022
+ /**
1023
+ * The payroll wage item that defines how this employee is paid (e.g., Regular Pay,
1024
+ * Overtime Pay). This determines the payment scheme used for payroll calculations.
1025
+ */
1026
+ payrollWageItemId: string;
1027
+ /**
1028
+ * The hourly rate for this employee, represented as a decimal string.
1029
+ */
1030
+ rate?: string;
1031
+ /**
1032
+ * The hourly rate for this employee expressed as a percentage.
1033
+ */
1034
+ ratePercent?: string;
1035
+ }
1036
+ /**
1037
+ * The employee's sick hours, including how sick time is accrued and the total
1038
+ * hours accrued.
1039
+ */
1040
+ interface SickHours {
1041
+ /**
1042
+ * How frequently the employee's sick hours are accrued.
1043
+ */
1044
+ accrualPeriod?: 'accrues_annually' | 'accrues_hourly' | 'accrues_per_paycheck';
1045
+ /**
1046
+ * The date the employee's sick hours began to accrue, in ISO 8601 format
1047
+ * (YYYY-MM-DD).
1048
+ */
1049
+ accrualStartDate?: string;
1050
+ /**
1051
+ * The number of sick hours the employee will accrue per accrual period.
1052
+ */
1053
+ hoursAccruedPerPeriod?: string;
1054
+ /**
1055
+ * The total number of sick hours currently available for the employee to use.
1056
+ * Defaults to 0.
1057
+ */
1058
+ hoursAvailable?: string;
1059
+ /**
1060
+ * The number of sick hours the employee has used.
1061
+ */
1062
+ hoursUsed?: string;
1063
+ /**
1064
+ * The maximum number of sick hours the employee can accrue.
1065
+ */
1066
+ maximumHours?: string;
1067
+ /**
1068
+ * Indicates whether the employee's sick hours reset to zero at the beginning of
1069
+ * the new year.
1070
+ */
1071
+ resetsHoursEachYear?: boolean;
1072
+ }
1073
+ /**
1074
+ * The employee's vacation hours, including how vacation time is accrued and the
1075
+ * total hours accrued.
1076
+ */
1077
+ interface VacationHours {
1078
+ /**
1079
+ * How frequently the employee's vacation hours are accrued.
1080
+ */
1081
+ accrualPeriod?: 'accrues_annually' | 'accrues_hourly' | 'accrues_per_paycheck';
1082
+ /**
1083
+ * The date the employee's vacation hours began to accrue, in ISO 8601 format
1084
+ * (YYYY-MM-DD).
1085
+ */
1086
+ accrualStartDate?: string;
1087
+ /**
1088
+ * The number of vacation hours the employee will accrue per accrual period.
1089
+ */
1090
+ hoursAccruedPerPeriod?: string;
1091
+ /**
1092
+ * The total number of vacation hours currently available for the employee to use.
1093
+ * Defaults to 0.
1094
+ */
1095
+ hoursAvailable?: string;
1096
+ /**
1097
+ * The number of vacation hours the employee has used.
1098
+ */
1099
+ hoursUsed?: string;
1100
+ /**
1101
+ * The maximum number of vacation hours the employee can accrue.
1102
+ */
1103
+ maximumHours?: string;
1104
+ /**
1105
+ * Indicates whether the employee's vacation hours reset to zero at the beginning
1106
+ * of the new year.
1107
+ */
1108
+ resetsHoursEachYear?: boolean;
1109
+ }
1110
+ }
1111
+ }
1112
+ export interface EmployeeRetrieveParams {
1113
+ /**
1114
+ * The ID of the EndUser to receive this request (e.g.,
1115
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
1116
+ */
1117
+ conductorEndUserId: string;
1118
+ }
1119
+ export interface EmployeeUpdateParams {
1120
+ /**
1121
+ * Body param: The current QuickBooks-assigned revision number of the employee
1122
+ * object you are updating, which you can get by fetching the object first. Provide
1123
+ * the most recent `revisionNumber` to ensure you're working with the latest data;
1124
+ * otherwise, the update will return an error.
1125
+ */
1126
+ revisionNumber: string;
1127
+ /**
1128
+ * Header param: The ID of the EndUser to receive this request (e.g.,
1129
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
1130
+ */
1131
+ conductorEndUserId: string;
1132
+ /**
1133
+ * Body param: The employee's account number, which appears in the QuickBooks chart
1134
+ * of accounts, reports, and graphs.
1135
+ *
1136
+ * Note that if the "Use Account Numbers" preference is turned off in QuickBooks,
1137
+ * the account number may not be visible in the user interface, but it can still be
1138
+ * set and retrieved through the API.
1139
+ */
1140
+ accountNumber?: string;
1141
+ /**
1142
+ * Body param: Additional notes about this employee.
1143
+ */
1144
+ additionalNotes?: Array<EmployeeUpdateParams.AdditionalNote>;
1145
+ /**
1146
+ * Body param: The employee's address.
1147
+ *
1148
+ * If the company uses QuickBooks Payroll for this employee, this address must
1149
+ * specify a complete address, including city, state, ZIP (or postal) code, and at
1150
+ * least one line of the street address.
1151
+ */
1152
+ address?: EmployeeUpdateParams.Address;
1153
+ /**
1154
+ * Body param: The adjusted service date for this employee, in ISO 8601 format
1155
+ * (YYYY-MM-DD). This date accounts for previous employment periods or leaves that
1156
+ * affect seniority.
1157
+ */
1158
+ adjustedServiceDate?: string;
1159
+ /**
1160
+ * Body param: The employee's alternate telephone number.
1161
+ */
1162
+ alternatePhone?: string;
1163
+ /**
1164
+ * Body param: The employee's billing rate, used to override service item rates in
1165
+ * time tracking transactions.
1166
+ */
1167
+ billingRateId?: string;
1168
+ /**
1169
+ * Body param: This employee's date of birth, in ISO 8601 format (YYYY-MM-DD).
1170
+ */
1171
+ birthDate?: string;
1172
+ /**
1173
+ * Body param: Additional custom contact fields for this employee, such as phone
1174
+ * numbers or email addresses.
1175
+ */
1176
+ customContactFields?: Array<EmployeeUpdateParams.CustomContactField>;
1177
+ /**
1178
+ * Body param: The employee's department. Found in the "employment job details"
1179
+ * section of the employee's record in QuickBooks.
1180
+ */
1181
+ department?: string;
1182
+ /**
1183
+ * Body param: A description of this employee. Found in the "employment job
1184
+ * details" section of the employee's record in QuickBooks.
1185
+ */
1186
+ description?: string;
1187
+ /**
1188
+ * Body param: A description of this employee's disability.
1189
+ */
1190
+ disabilityDescription?: string;
1191
+ /**
1192
+ * Body param: Indicates whether this employee is disabled.
1193
+ */
1194
+ disabilityStatus?: 'disabled' | 'non_disabled';
1195
+ /**
1196
+ * Body param: The employee's email address.
1197
+ */
1198
+ email?: string;
1199
+ /**
1200
+ * Body param: The employee's emergency contacts.
1201
+ */
1202
+ emergencyContact?: EmployeeUpdateParams.EmergencyContact;
1203
+ /**
1204
+ * Body param: The employee's payroll information.
1205
+ */
1206
+ employeePayroll?: EmployeeUpdateParams.EmployeePayroll;
1207
+ /**
1208
+ * Body param: The employee type. This affects payroll taxes - a statutory employee
1209
+ * is defined as an employee by statute. Note that owners/partners are typically on
1210
+ * the "Other Names" list in QuickBooks, but if listed as an employee their type
1211
+ * will be `owner`.
1212
+ */
1213
+ employeeType?: 'officer' | 'owner' | 'regular' | 'statutory';
1214
+ /**
1215
+ * Body param: Indicates whether this employee is a part-time or full-time
1216
+ * employee.
1217
+ */
1218
+ employmentStatus?: 'full_time' | 'part_time';
1219
+ /**
1220
+ * Body param: This employee's ethnicity.
1221
+ */
1222
+ ethnicity?: 'american_indian' | 'asian' | 'black' | 'hawaiian' | 'hispanic' | 'white' | 'two_or_more_races';
1223
+ /**
1224
+ * Body param: The employee's fax number.
1225
+ */
1226
+ fax?: string;
1227
+ /**
1228
+ * Body param: The employee's first name.
1229
+ *
1230
+ * Maximum length: 25 characters.
1231
+ */
1232
+ firstName?: string;
1233
+ /**
1234
+ * Body param: The date this employee was hired, in ISO 8601 format (YYYY-MM-DD).
1235
+ */
1236
+ hiredDate?: string;
1237
+ /**
1238
+ * Body param: Indicates whether this employee's I-9 is on file.
1239
+ */
1240
+ i9OnFileStatus?: 'on_file' | 'not_on_file';
1241
+ /**
1242
+ * Body param: Indicates whether this employee is active. Inactive objects are
1243
+ * typically hidden from views and reports in QuickBooks. Defaults to `true`.
1244
+ */
1245
+ isActive?: boolean;
1246
+ /**
1247
+ * Body param: The employee's job title.
1248
+ */
1249
+ jobTitle?: string;
1250
+ /**
1251
+ * Body param: Indicates whether this employee is a key employee.
1252
+ */
1253
+ keyEmployeeStatus?: 'key_employee' | 'non_key_employee';
1254
+ /**
1255
+ * Body param: The employee's last name.
1256
+ *
1257
+ * Maximum length: 25 characters.
1258
+ */
1259
+ lastName?: string;
1260
+ /**
1261
+ * Body param: The employee's middle name.
1262
+ *
1263
+ * Maximum length: 5 characters.
1264
+ */
1265
+ middleName?: string;
1266
+ /**
1267
+ * Body param: This employee's military status if they are a U.S. veteran.
1268
+ */
1269
+ militaryStatus?: 'active' | 'reserve';
1270
+ /**
1271
+ * Body param: The employee's mobile phone number.
1272
+ */
1273
+ mobile?: string;
1274
+ /**
1275
+ * Body param: A note or comment about this employee.
1276
+ */
1277
+ note?: string;
1278
+ /**
1279
+ * Body param: The original hire date for this employee, in ISO 8601 format
1280
+ * (YYYY-MM-DD).
1281
+ */
1282
+ originalHireDate?: string;
1283
+ /**
1284
+ * Body param: Indicates whether this employee is exempt from overtime pay. This
1285
+ * classification is based on U.S. labor laws (FLSA).
1286
+ */
1287
+ overtimeExemptStatus?: 'exempt' | 'non_exempt';
1288
+ /**
1289
+ * Body param: The employee's pager number.
1290
+ */
1291
+ pager?: string;
1292
+ /**
1293
+ * Body param: The employee's pager PIN.
1294
+ */
1295
+ pagerPin?: string;
1296
+ /**
1297
+ * Body param: The employee's primary telephone number.
1298
+ */
1299
+ phone?: string;
1300
+ /**
1301
+ * Body param: The name to use when printing this employee from QuickBooks. By
1302
+ * default, this is the same as the `name` field.
1303
+ */
1304
+ printAs?: string;
1305
+ /**
1306
+ * Body param: The employee's formal salutation title that precedes their name,
1307
+ * such as "Mr.", "Ms.", or "Dr.".
1308
+ */
1309
+ salutation?: string;
1310
+ /**
1311
+ * Body param: The employee's supervisor. Found in the "employment job details"
1312
+ * section of the employee's record in QuickBooks.
1313
+ */
1314
+ supervisorId?: string;
1315
+ /**
1316
+ * Body param: The target bonus for this employee, represented as a decimal string.
1317
+ * Found in the "employment job details" section of the employee's record in
1318
+ * QuickBooks.
1319
+ */
1320
+ targetBonus?: string;
1321
+ /**
1322
+ * Body param: The date this employee's employment ended with the company, in ISO
1323
+ * 8601 format (YYYY-MM-DD). This is also known as the released date or separation
1324
+ * date.
1325
+ */
1326
+ terminationDate?: string;
1327
+ /**
1328
+ * Body param: Indicates whether this employee is a U.S. citizen.
1329
+ */
1330
+ usCitizenshipStatus?: 'citizen' | 'non_citizen';
1331
+ /**
1332
+ * Body param: Indicates whether this employee is a U.S. veteran.
1333
+ */
1334
+ usVeteranStatus?: 'veteran' | 'non_veteran';
1335
+ /**
1336
+ * Body param: The date this employee's work authorization expires, in ISO 8601
1337
+ * format (YYYY-MM-DD).
1338
+ */
1339
+ workAuthorizationExpirationDate?: string;
1340
+ }
1341
+ export declare namespace EmployeeUpdateParams {
1342
+ interface AdditionalNote {
1343
+ /**
1344
+ * The ID of the note to update.
1345
+ */
1346
+ id: number;
1347
+ /**
1348
+ * The text of this note.
1349
+ */
1350
+ note?: string;
1351
+ }
1352
+ /**
1353
+ * The employee's address.
1354
+ *
1355
+ * If the company uses QuickBooks Payroll for this employee, this address must
1356
+ * specify a complete address, including city, state, ZIP (or postal) code, and at
1357
+ * least one line of the street address.
1358
+ */
1359
+ interface Address {
1360
+ /**
1361
+ * The city, district, suburb, town, or village name of the employee address.
1362
+ *
1363
+ * Maximum length: 31 characters.
1364
+ */
1365
+ city?: string;
1366
+ /**
1367
+ * The country name of the employee address.
1368
+ */
1369
+ country?: string;
1370
+ /**
1371
+ * The first line of the employee address (e.g., street, PO Box, or company name).
1372
+ *
1373
+ * Maximum length: 41 characters.
1374
+ */
1375
+ line1?: string;
1376
+ /**
1377
+ * The second line of the employee address, if needed (e.g., apartment, suite,
1378
+ * unit, or building).
1379
+ *
1380
+ * Maximum length: 41 characters.
1381
+ */
1382
+ line2?: string;
1383
+ /**
1384
+ * The third line of the employee address, if needed.
1385
+ *
1386
+ * Maximum length: 41 characters.
1387
+ */
1388
+ line3?: string;
1389
+ /**
1390
+ * The fourth line of the employee address, if needed.
1391
+ *
1392
+ * Maximum length: 41 characters.
1393
+ */
1394
+ line4?: string;
1395
+ /**
1396
+ * The postal code or ZIP code of the employee address.
1397
+ *
1398
+ * Maximum length: 13 characters.
1399
+ */
1400
+ postalCode?: string;
1401
+ /**
1402
+ * The U.S. state of the employee address. QuickBooks requires this field to be a
1403
+ * U.S. state abbreviation (e.g., "CA" for California). See enum for all possible
1404
+ * values.
1405
+ */
1406
+ state?: 'none' | 'armed_forces_americas' | 'armed_forces_europe' | 'armed_forces_pacific' | 'AK' | 'AL' | 'AR' | 'AZ' | 'CA' | 'CO' | 'CT' | 'DC' | 'DE' | 'FL' | 'GA' | 'HI' | 'IA' | 'ID' | 'IL' | 'IN' | 'KS' | 'KY' | 'LA' | 'MA' | 'MD' | 'ME' | 'MI' | 'MN' | 'MO' | 'MS' | 'MT' | 'NB' | 'NC' | 'ND' | 'NE' | 'NH' | 'NJ' | 'NM' | 'NV' | 'NY' | 'OH' | 'OK' | 'OR' | 'PA' | 'PR' | 'RI' | 'SC' | 'SD' | 'TN' | 'TX' | 'UT' | 'VA' | 'VT' | 'WA' | 'WI' | 'WV' | 'WY';
1407
+ }
1408
+ interface CustomContactField {
1409
+ /**
1410
+ * The name of the contact field (e.g., "old address", "secondary phone").
1411
+ */
1412
+ name: string;
1413
+ /**
1414
+ * The value of the contact field.
1415
+ */
1416
+ value: string;
1417
+ }
1418
+ /**
1419
+ * The employee's emergency contacts.
1420
+ */
1421
+ interface EmergencyContact {
1422
+ /**
1423
+ * The employee's primary emergency contact.
1424
+ */
1425
+ primaryContact?: EmergencyContact.PrimaryContact;
1426
+ /**
1427
+ * The employee's secondary emergency contact.
1428
+ */
1429
+ secondaryContact?: EmergencyContact.SecondaryContact;
1430
+ }
1431
+ namespace EmergencyContact {
1432
+ /**
1433
+ * The employee's primary emergency contact.
1434
+ */
1435
+ interface PrimaryContact {
1436
+ /**
1437
+ * The name of the contact field (e.g., "old address", "secondary phone").
1438
+ */
1439
+ name: string;
1440
+ /**
1441
+ * The value of the contact field.
1442
+ */
1443
+ value: string;
1444
+ /**
1445
+ * The relationship of the employee to the employee.
1446
+ */
1447
+ relation?: 'brother' | 'daughter' | 'father' | 'friend' | 'mother' | 'other' | 'partner' | 'sister' | 'son' | 'spouse';
1448
+ }
1449
+ /**
1450
+ * The employee's secondary emergency contact.
1451
+ */
1452
+ interface SecondaryContact {
1453
+ /**
1454
+ * The name of the contact field (e.g., "old address", "secondary phone").
1455
+ */
1456
+ name: string;
1457
+ /**
1458
+ * The value of the contact field.
1459
+ */
1460
+ value: string;
1461
+ /**
1462
+ * The relationship of the employee to the employee.
1463
+ */
1464
+ relation?: 'brother' | 'daughter' | 'father' | 'friend' | 'mother' | 'other' | 'partner' | 'sister' | 'son' | 'spouse';
1465
+ }
1466
+ }
1467
+ /**
1468
+ * The employee's payroll information.
1469
+ */
1470
+ interface EmployeePayroll {
1471
+ /**
1472
+ * The employee's class. Classes can be used to categorize objects into meaningful
1473
+ * segments, such as department, location, or type of work. In QuickBooks, class
1474
+ * tracking is off by default.
1475
+ */
1476
+ classId?: string;
1477
+ /**
1478
+ * The employee's earnings.
1479
+ */
1480
+ earnings?: Array<EmployeePayroll.Earning>;
1481
+ /**
1482
+ * How frequently this employee is paid (e.g., weekly, biweekly, monthly). This
1483
+ * determines the schedule for generating paychecks.
1484
+ */
1485
+ payPeriod?: 'biweekly' | 'daily' | 'monthly' | 'quarterly' | 'semimonthly' | 'weekly' | 'yearly';
1486
+ /**
1487
+ * The employee's sick hours, including how sick time is accrued and the total
1488
+ * hours accrued.
1489
+ */
1490
+ sickHours?: EmployeePayroll.SickHours;
1491
+ /**
1492
+ * Indicates whether this employee is using time-tracking data to create paychecks.
1493
+ */
1494
+ useTimeDataToCreatePaychecks?: 'does_not_use_time_data' | 'not_set' | 'uses_time_data';
1495
+ /**
1496
+ * The employee's vacation hours, including how vacation time is accrued and the
1497
+ * total hours accrued.
1498
+ */
1499
+ vacationHours?: EmployeePayroll.VacationHours;
1500
+ }
1501
+ namespace EmployeePayroll {
1502
+ interface Earning {
1503
+ /**
1504
+ * The payroll wage item that defines how this employee is paid (e.g., Regular Pay,
1505
+ * Overtime Pay). This determines the payment scheme used for payroll calculations.
1506
+ */
1507
+ payrollWageItemId: string;
1508
+ /**
1509
+ * The hourly rate for this employee, represented as a decimal string.
1510
+ */
1511
+ rate?: string;
1512
+ /**
1513
+ * The hourly rate for this employee expressed as a percentage.
1514
+ */
1515
+ ratePercent?: string;
1516
+ }
1517
+ /**
1518
+ * The employee's sick hours, including how sick time is accrued and the total
1519
+ * hours accrued.
1520
+ */
1521
+ interface SickHours {
1522
+ /**
1523
+ * How frequently the employee's sick hours are accrued.
1524
+ */
1525
+ accrualPeriod?: 'accrues_annually' | 'accrues_hourly' | 'accrues_per_paycheck';
1526
+ /**
1527
+ * The date the employee's sick hours began to accrue, in ISO 8601 format
1528
+ * (YYYY-MM-DD).
1529
+ */
1530
+ accrualStartDate?: string;
1531
+ /**
1532
+ * The number of sick hours the employee will accrue per accrual period.
1533
+ */
1534
+ hoursAccruedPerPeriod?: string;
1535
+ /**
1536
+ * The total number of sick hours currently available for the employee to use.
1537
+ * Defaults to 0.
1538
+ */
1539
+ hoursAvailable?: string;
1540
+ /**
1541
+ * The number of sick hours the employee has used.
1542
+ */
1543
+ hoursUsed?: string;
1544
+ /**
1545
+ * The maximum number of sick hours the employee can accrue.
1546
+ */
1547
+ maximumHours?: string;
1548
+ /**
1549
+ * Indicates whether the employee's sick hours reset to zero at the beginning of
1550
+ * the new year.
1551
+ */
1552
+ resetsHoursEachYear?: boolean;
1553
+ }
1554
+ /**
1555
+ * The employee's vacation hours, including how vacation time is accrued and the
1556
+ * total hours accrued.
1557
+ */
1558
+ interface VacationHours {
1559
+ /**
1560
+ * How frequently the employee's vacation hours are accrued.
1561
+ */
1562
+ accrualPeriod?: 'accrues_annually' | 'accrues_hourly' | 'accrues_per_paycheck';
1563
+ /**
1564
+ * The date the employee's vacation hours began to accrue, in ISO 8601 format
1565
+ * (YYYY-MM-DD).
1566
+ */
1567
+ accrualStartDate?: string;
1568
+ /**
1569
+ * The number of vacation hours the employee will accrue per accrual period.
1570
+ */
1571
+ hoursAccruedPerPeriod?: string;
1572
+ /**
1573
+ * The total number of vacation hours currently available for the employee to use.
1574
+ * Defaults to 0.
1575
+ */
1576
+ hoursAvailable?: string;
1577
+ /**
1578
+ * The number of vacation hours the employee has used.
1579
+ */
1580
+ hoursUsed?: string;
1581
+ /**
1582
+ * The maximum number of vacation hours the employee can accrue.
1583
+ */
1584
+ maximumHours?: string;
1585
+ /**
1586
+ * Indicates whether the employee's vacation hours reset to zero at the beginning
1587
+ * of the new year.
1588
+ */
1589
+ resetsHoursEachYear?: boolean;
1590
+ }
1591
+ }
1592
+ }
1593
+ export interface EmployeeListParams extends CursorPageParams {
1594
+ /**
1595
+ * Header param: The ID of the EndUser to receive this request (e.g.,
1596
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
1597
+ */
1598
+ conductorEndUserId: string;
1599
+ /**
1600
+ * Query param: Filter for specific employees by their QuickBooks-assigned unique
1601
+ * identifier(s).
1602
+ *
1603
+ * **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
1604
+ * query parameters for this request.
1605
+ *
1606
+ * **NOTE**: If any of the values you specify in this parameter are not found, the
1607
+ * request will return an error.
1608
+ */
1609
+ ids?: Array<string>;
1610
+ /**
1611
+ * Query param: Filter for employees whose `name` contains this substring,
1612
+ * case-insensitive. NOTE: If you use this parameter, you cannot also use
1613
+ * `nameStartsWith` or `nameEndsWith`.
1614
+ */
1615
+ nameContains?: string;
1616
+ /**
1617
+ * Query param: Filter for employees whose `name` ends with this substring,
1618
+ * case-insensitive. NOTE: If you use this parameter, you cannot also use
1619
+ * `nameContains` or `nameStartsWith`.
1620
+ */
1621
+ nameEndsWith?: string;
1622
+ /**
1623
+ * Query param: Filter for employees whose `name` is alphabetically greater than or
1624
+ * equal to this value.
1625
+ */
1626
+ nameFrom?: string;
1627
+ /**
1628
+ * Query param: Filter for specific employees by their name(s), case-insensitive.
1629
+ * Like `id`, `name` is a unique identifier for an employee.
1630
+ *
1631
+ * **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
1632
+ * query parameters for this request.
1633
+ *
1634
+ * **NOTE**: If any of the values you specify in this parameter are not found, the
1635
+ * request will return an error.
1636
+ */
1637
+ names?: Array<string>;
1638
+ /**
1639
+ * Query param: Filter for employees whose `name` starts with this substring,
1640
+ * case-insensitive. NOTE: If you use this parameter, you cannot also use
1641
+ * `nameContains` or `nameEndsWith`.
1642
+ */
1643
+ nameStartsWith?: string;
1644
+ /**
1645
+ * Query param: Filter for employees whose `name` is alphabetically less than or
1646
+ * equal to this value.
1647
+ */
1648
+ nameTo?: string;
1649
+ /**
1650
+ * Query param: Filter for employees that are active, inactive, or both.
1651
+ */
1652
+ status?: 'active' | 'all' | 'inactive';
1653
+ /**
1654
+ * Query param: Filter for employees updated on or after this date and time, in ISO
1655
+ * 8601 format (YYYY-MM-DDTHH:mm:ss). If you only provide a date (YYYY-MM-DD), the
1656
+ * time is assumed to be 00:00:00 of that day.
1657
+ */
1658
+ updatedAfter?: string;
1659
+ /**
1660
+ * Query param: Filter for employees updated on or before this date and time, in
1661
+ * ISO 8601 format (YYYY-MM-DDTHH:mm:ss). If you only provide a date (YYYY-MM-DD),
1662
+ * the time is assumed to be 23:59:59 of that day.
1663
+ */
1664
+ updatedBefore?: string;
1665
+ }
1666
+ export declare namespace Employees {
1667
+ export { type Employee as Employee, EmployeesCursorPage as EmployeesCursorPage, type EmployeeCreateParams as EmployeeCreateParams, type EmployeeRetrieveParams as EmployeeRetrieveParams, type EmployeeUpdateParams as EmployeeUpdateParams, type EmployeeListParams as EmployeeListParams, };
1668
+ }
1669
+ //# sourceMappingURL=employees.d.ts.map