conductor-node 11.10.1 → 12.0.0-beta.10

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 (517) hide show
  1. package/CHANGELOG.md +135 -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 +75 -0
  137. package/resources/auth-sessions.d.ts.map +1 -0
  138. package/resources/auth-sessions.js +17 -0
  139. package/resources/auth-sessions.js.map +1 -0
  140. package/resources/auth-sessions.mjs +13 -0
  141. package/resources/auth-sessions.mjs.map +1 -0
  142. package/resources/end-users.d.ts +142 -0
  143. package/resources/end-users.d.ts.map +1 -0
  144. package/resources/end-users.js +40 -0
  145. package/resources/end-users.js.map +1 -0
  146. package/resources/end-users.mjs +36 -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 +1711 -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 +38 -0
  239. package/resources/qbd/index.d.ts.map +1 -0
  240. package/resources/qbd/index.js +108 -0
  241. package/resources/qbd/index.js.map +1 -0
  242. package/resources/qbd/index.mjs +39 -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 +178 -0
  299. package/resources/qbd/qbd.d.ts.map +1 -0
  300. package/resources/qbd/qbd.js +222 -0
  301. package/resources/qbd/qbd.js.map +1 -0
  302. package/resources/qbd/qbd.mjs +195 -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/time-tracking-activities.d.ts +485 -0
  359. package/resources/qbd/time-tracking-activities.d.ts.map +1 -0
  360. package/resources/qbd/time-tracking-activities.js +66 -0
  361. package/resources/qbd/time-tracking-activities.js.map +1 -0
  362. package/resources/qbd/time-tracking-activities.mjs +61 -0
  363. package/resources/qbd/time-tracking-activities.mjs.map +1 -0
  364. package/resources/qbd/transfers.d.ts +269 -0
  365. package/resources/qbd/transfers.d.ts.map +1 -0
  366. package/resources/qbd/transfers.js +58 -0
  367. package/resources/qbd/transfers.js.map +1 -0
  368. package/resources/qbd/transfers.mjs +53 -0
  369. package/resources/qbd/transfers.mjs.map +1 -0
  370. package/resources/qbd/vendor-credits.d.ts +2298 -0
  371. package/resources/qbd/vendor-credits.d.ts.map +1 -0
  372. package/resources/qbd/vendor-credits.js +69 -0
  373. package/resources/qbd/vendor-credits.js.map +1 -0
  374. package/resources/qbd/vendor-credits.mjs +64 -0
  375. package/resources/qbd/vendor-credits.mjs.map +1 -0
  376. package/resources/qbd/vendors.d.ts +1677 -0
  377. package/resources/qbd/vendors.d.ts.map +1 -0
  378. package/resources/qbd/vendors.js +58 -0
  379. package/resources/qbd/vendors.js.map +1 -0
  380. package/resources/qbd/vendors.mjs +53 -0
  381. package/resources/qbd/vendors.mjs.map +1 -0
  382. package/shims/node.d.ts +30 -0
  383. package/shims/node.d.ts.map +1 -0
  384. package/shims/node.js +31 -0
  385. package/shims/node.js.map +1 -0
  386. package/shims/node.mjs +5 -0
  387. package/shims/node.mjs.map +1 -0
  388. package/shims/web.d.ts +26 -0
  389. package/shims/web.d.ts.map +1 -0
  390. package/shims/web.js +31 -0
  391. package/shims/web.js.map +1 -0
  392. package/shims/web.mjs +5 -0
  393. package/shims/web.mjs.map +1 -0
  394. package/src/_shims/MultipartBody.ts +9 -0
  395. package/src/_shims/README.md +46 -0
  396. package/src/_shims/auto/runtime-bun.ts +4 -0
  397. package/src/_shims/auto/runtime-node.ts +4 -0
  398. package/src/_shims/auto/runtime.ts +4 -0
  399. package/src/_shims/auto/types-node.ts +4 -0
  400. package/src/_shims/auto/types.d.ts +101 -0
  401. package/src/_shims/auto/types.js +3 -0
  402. package/src/_shims/auto/types.mjs +3 -0
  403. package/src/_shims/bun-runtime.ts +14 -0
  404. package/src/_shims/index.d.ts +81 -0
  405. package/src/_shims/index.js +13 -0
  406. package/src/_shims/index.mjs +7 -0
  407. package/src/_shims/manual-types.d.ts +12 -0
  408. package/src/_shims/manual-types.js +3 -0
  409. package/src/_shims/manual-types.mjs +3 -0
  410. package/src/_shims/node-runtime.ts +81 -0
  411. package/src/_shims/node-types.d.ts +42 -0
  412. package/src/_shims/node-types.js +3 -0
  413. package/src/_shims/node-types.mjs +3 -0
  414. package/src/_shims/registry.ts +67 -0
  415. package/src/_shims/web-runtime.ts +103 -0
  416. package/src/_shims/web-types.d.ts +83 -0
  417. package/src/_shims/web-types.js +3 -0
  418. package/src/_shims/web-types.mjs +3 -0
  419. package/src/core.ts +1208 -0
  420. package/src/error.ts +130 -0
  421. package/src/index.ts +229 -0
  422. package/src/internal/qs/LICENSE.md +13 -0
  423. package/src/internal/qs/README.md +3 -0
  424. package/src/internal/qs/formats.ts +9 -0
  425. package/src/internal/qs/index.ts +13 -0
  426. package/src/internal/qs/stringify.ts +388 -0
  427. package/src/internal/qs/types.ts +71 -0
  428. package/src/internal/qs/utils.ts +265 -0
  429. package/src/lib/.keep +4 -0
  430. package/src/pagination.ts +60 -0
  431. package/src/resource.ts +11 -0
  432. package/src/resources/auth-sessions.ts +92 -0
  433. package/src/resources/end-users.ts +195 -0
  434. package/src/resources/index.ts +13 -0
  435. package/src/resources/qbd/accounts.ts +797 -0
  436. package/src/resources/qbd/bill-check-payments.ts +1086 -0
  437. package/src/resources/qbd/bill-credit-card-payments.ts +851 -0
  438. package/src/resources/qbd/bills.ts +3039 -0
  439. package/src/resources/qbd/checks.ts +3003 -0
  440. package/src/resources/qbd/classes.ts +366 -0
  441. package/src/resources/qbd/credit-card-charges.ts +2646 -0
  442. package/src/resources/qbd/credit-card-credits.ts +2643 -0
  443. package/src/resources/qbd/credit-memos.ts +3157 -0
  444. package/src/resources/qbd/customers.ts +2518 -0
  445. package/src/resources/qbd/date-driven-terms.ts +314 -0
  446. package/src/resources/qbd/discount-items.ts +712 -0
  447. package/src/resources/qbd/employees.ts +2308 -0
  448. package/src/resources/qbd/estimates.ts +2975 -0
  449. package/src/resources/qbd/index.ts +357 -0
  450. package/src/resources/qbd/inventory-adjustments.ts +1008 -0
  451. package/src/resources/qbd/inventory-assembly-items.ts +1126 -0
  452. package/src/resources/qbd/inventory-items.ts +1026 -0
  453. package/src/resources/qbd/inventory-sites.ts +605 -0
  454. package/src/resources/qbd/invoices.ts +3398 -0
  455. package/src/resources/qbd/journal-entries.ts +1051 -0
  456. package/src/resources/qbd/non-inventory-items.ts +1138 -0
  457. package/src/resources/qbd/payroll-wage-items.ts +304 -0
  458. package/src/resources/qbd/purchase-orders.ts +3045 -0
  459. package/src/resources/qbd/qbd.ts +949 -0
  460. package/src/resources/qbd/receive-payments.ts +1609 -0
  461. package/src/resources/qbd/sales-orders.ts +3141 -0
  462. package/src/resources/qbd/sales-receipts.ts +3977 -0
  463. package/src/resources/qbd/sales-representatives.ts +340 -0
  464. package/src/resources/qbd/sales-tax-codes.ts +398 -0
  465. package/src/resources/qbd/sales-tax-items.ts +583 -0
  466. package/src/resources/qbd/service-items.ts +1105 -0
  467. package/src/resources/qbd/standard-terms.ts +295 -0
  468. package/src/resources/qbd/subtotal-items.ts +430 -0
  469. package/src/resources/qbd/time-tracking-activities.ts +615 -0
  470. package/src/resources/qbd/transfers.ts +359 -0
  471. package/src/resources/qbd/vendor-credits.ts +2742 -0
  472. package/src/resources/qbd/vendors.ts +2017 -0
  473. package/src/shims/node.ts +50 -0
  474. package/src/shims/web.ts +50 -0
  475. package/src/tsconfig.json +11 -0
  476. package/src/uploads.ts +255 -0
  477. package/src/version.ts +1 -0
  478. package/uploads.d.ts +75 -0
  479. package/uploads.d.ts.map +1 -0
  480. package/uploads.js +171 -0
  481. package/uploads.js.map +1 -0
  482. package/uploads.mjs +158 -0
  483. package/uploads.mjs.map +1 -0
  484. package/version.d.ts +2 -0
  485. package/version.d.ts.map +1 -0
  486. package/version.js +5 -0
  487. package/version.js.map +1 -0
  488. package/version.mjs +2 -0
  489. package/version.mjs.map +1 -0
  490. package/dist/package.json +0 -48
  491. package/dist/src/Client.d.ts +0 -21
  492. package/dist/src/Client.js +0 -54
  493. package/dist/src/index.d.ts +0 -11
  494. package/dist/src/index.js +0 -59
  495. package/dist/src/integrations/BaseIntegration.d.ts +0 -9
  496. package/dist/src/integrations/BaseIntegration.js +0 -14
  497. package/dist/src/integrations/qbd/QbdIntegration.d.ts +0 -3120
  498. package/dist/src/integrations/qbd/QbdIntegration.js +0 -3147
  499. package/dist/src/integrations/qbd/qbdTypes.d.ts +0 -14076
  500. package/dist/src/integrations/qbd/qbdTypes.js +0 -2
  501. package/dist/src/interceptors/errorHandling.d.ts +0 -2
  502. package/dist/src/interceptors/errorHandling.js +0 -53
  503. package/dist/src/interceptors/logging.d.ts +0 -18
  504. package/dist/src/interceptors/logging.js +0 -70
  505. package/dist/src/resources/AuthSessionsResource.d.ts +0 -77
  506. package/dist/src/resources/AuthSessionsResource.js +0 -26
  507. package/dist/src/resources/BaseResource.d.ts +0 -6
  508. package/dist/src/resources/BaseResource.js +0 -9
  509. package/dist/src/resources/EndUsersResource.d.ts +0 -84
  510. package/dist/src/resources/EndUsersResource.js +0 -57
  511. package/dist/src/resources/types.d.ts +0 -40
  512. package/dist/src/utils/checkForUpdates.d.ts +0 -2
  513. package/dist/src/utils/checkForUpdates.js +0 -65
  514. package/dist/src/utils/env.d.ts +0 -1
  515. package/dist/src/utils/env.js +0 -15
  516. package/dist/src/utils/error.d.ts +0 -184
  517. package/dist/src/utils/error.js +0 -254
@@ -0,0 +1,2308 @@
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, in ISO
783
+ * 8601 format for time intervals (PTnHnMnS). For example, 1 hour and 30 minutes is
784
+ * represented as PT1H30M.
785
+ */
786
+ hoursAccruedPerPeriod: string | null;
787
+
788
+ /**
789
+ * The total number of sick hours currently available for the employee to use, in
790
+ * ISO 8601 format for time intervals (PTnHnMnS). For example, 1 hour and 30
791
+ * minutes is represented as PT1H30M. Defaults to 0.
792
+ */
793
+ hoursAvailable: string | null;
794
+
795
+ /**
796
+ * The number of sick hours the employee has used, in ISO 8601 format for time
797
+ * intervals (PTnHnMnS). For example, 1 hour and 30 minutes is represented as
798
+ * PT1H30M.
799
+ */
800
+ hoursUsed: string | null;
801
+
802
+ /**
803
+ * The maximum number of sick hours the employee can accrue, in ISO 8601 format for
804
+ * time intervals (PTnHnMnS). For example, 1 hour and 30 minutes is represented as
805
+ * PT1H30M.
806
+ */
807
+ maximumHours: string | null;
808
+
809
+ /**
810
+ * Indicates whether the employee's sick hours reset to zero at the beginning of
811
+ * the new year.
812
+ */
813
+ resetsHoursEachYear: boolean | null;
814
+ }
815
+
816
+ /**
817
+ * The employee's vacation hours, including how vacation time is accrued and the
818
+ * total hours accrued.
819
+ */
820
+ export interface VacationHours {
821
+ /**
822
+ * How frequently the employee's vacation hours are accrued.
823
+ */
824
+ accrualPeriod: 'accrues_annually' | 'accrues_hourly' | 'accrues_per_paycheck' | null;
825
+
826
+ /**
827
+ * The date the employee's vacation hours began to accrue, in ISO 8601 format
828
+ * (YYYY-MM-DD).
829
+ */
830
+ accrualStartDate: string | null;
831
+
832
+ /**
833
+ * The number of vacation hours the employee will accrue per accrual period, in ISO
834
+ * 8601 format for time intervals (PTnHnMnS). For example, 1 hour and 30 minutes is
835
+ * represented as PT1H30M.
836
+ */
837
+ hoursAccruedPerPeriod: string | null;
838
+
839
+ /**
840
+ * The total number of vacation hours currently available for the employee to use,
841
+ * in ISO 8601 format for time intervals (PTnHnMnS). For example, 1 hour and 30
842
+ * minutes is represented as PT1H30M. Defaults to 0.
843
+ */
844
+ hoursAvailable: string | null;
845
+
846
+ /**
847
+ * The number of vacation hours the employee has used, in ISO 8601 format for time
848
+ * intervals (PTnHnMnS). For example, 1 hour and 30 minutes is represented as
849
+ * PT1H30M.
850
+ */
851
+ hoursUsed: string | null;
852
+
853
+ /**
854
+ * The maximum number of vacation hours the employee can accrue, in ISO 8601 format
855
+ * for time intervals (PTnHnMnS). For example, 1 hour and 30 minutes is represented
856
+ * as PT1H30M.
857
+ */
858
+ maximumHours: string | null;
859
+
860
+ /**
861
+ * Indicates whether the employee's vacation hours reset to zero at the beginning
862
+ * of the new year.
863
+ */
864
+ resetsHoursEachYear: boolean | null;
865
+ }
866
+ }
867
+
868
+ /**
869
+ * The employee's supervisor. Found in the "employment job details" section of the
870
+ * employee's record in QuickBooks.
871
+ */
872
+ export interface Supervisor {
873
+ /**
874
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
875
+ * across all objects of the same type, but not across different QuickBooks object
876
+ * types.
877
+ */
878
+ id: string | null;
879
+
880
+ /**
881
+ * The fully-qualified unique name for this object, formed by combining the names
882
+ * of its parent objects with its own `name`, separated by colons. Not
883
+ * case-sensitive.
884
+ */
885
+ fullName: string | null;
886
+ }
887
+ }
888
+
889
+ export interface EmployeeCreateParams {
890
+ /**
891
+ * Header param: The ID of the EndUser to receive this request (e.g.,
892
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
893
+ */
894
+ conductorEndUserId: string;
895
+
896
+ /**
897
+ * Body param: The employee's account number, which appears in the QuickBooks chart
898
+ * of accounts, reports, and graphs.
899
+ *
900
+ * Note that if the "Use Account Numbers" preference is turned off in QuickBooks,
901
+ * the account number may not be visible in the user interface, but it can still be
902
+ * set and retrieved through the API.
903
+ */
904
+ accountNumber?: string;
905
+
906
+ /**
907
+ * Body param: Additional notes about this employee.
908
+ */
909
+ additionalNotes?: Array<EmployeeCreateParams.AdditionalNote>;
910
+
911
+ /**
912
+ * Body param: The employee's address.
913
+ *
914
+ * If the company uses QuickBooks Payroll for this employee, this address must
915
+ * specify a complete address, including city, state, ZIP (or postal) code, and at
916
+ * least one line of the street address.
917
+ */
918
+ address?: EmployeeCreateParams.Address;
919
+
920
+ /**
921
+ * Body param: The adjusted service date for this employee, in ISO 8601 format
922
+ * (YYYY-MM-DD). This date accounts for previous employment periods or leaves that
923
+ * affect seniority.
924
+ */
925
+ adjustedServiceDate?: string;
926
+
927
+ /**
928
+ * Body param: The employee's alternate telephone number.
929
+ */
930
+ alternatePhone?: string;
931
+
932
+ /**
933
+ * Body param: The employee's billing rate, used to override service item rates in
934
+ * time tracking transactions.
935
+ */
936
+ billingRateId?: string;
937
+
938
+ /**
939
+ * Body param: This employee's date of birth, in ISO 8601 format (YYYY-MM-DD).
940
+ */
941
+ birthDate?: string;
942
+
943
+ /**
944
+ * Body param: Additional custom contact fields for this employee, such as phone
945
+ * numbers or email addresses.
946
+ */
947
+ customContactFields?: Array<EmployeeCreateParams.CustomContactField>;
948
+
949
+ /**
950
+ * Body param: The employee's department. Found in the "employment job details"
951
+ * section of the employee's record in QuickBooks.
952
+ */
953
+ department?: string;
954
+
955
+ /**
956
+ * Body param: A description of this employee. Found in the "employment job
957
+ * details" section of the employee's record in QuickBooks.
958
+ */
959
+ description?: string;
960
+
961
+ /**
962
+ * Body param: A description of this employee's disability.
963
+ */
964
+ disabilityDescription?: string;
965
+
966
+ /**
967
+ * Body param: Indicates whether this employee is disabled.
968
+ */
969
+ disabilityStatus?: 'disabled' | 'non_disabled';
970
+
971
+ /**
972
+ * Body param: The employee's email address.
973
+ */
974
+ email?: string;
975
+
976
+ /**
977
+ * Body param: The employee's emergency contacts.
978
+ */
979
+ emergencyContact?: EmployeeCreateParams.EmergencyContact;
980
+
981
+ /**
982
+ * Body param: The employee's payroll information.
983
+ */
984
+ employeePayroll?: EmployeeCreateParams.EmployeePayroll;
985
+
986
+ /**
987
+ * Body param: The employee type. This affects payroll taxes - a statutory employee
988
+ * is defined as an employee by statute. Note that owners/partners are typically on
989
+ * the "Other Names" list in QuickBooks, but if listed as an employee their type
990
+ * will be `owner`.
991
+ */
992
+ employeeType?: 'officer' | 'owner' | 'regular' | 'statutory';
993
+
994
+ /**
995
+ * Body param: Indicates whether this employee is a part-time or full-time
996
+ * employee.
997
+ */
998
+ employmentStatus?: 'full_time' | 'part_time';
999
+
1000
+ /**
1001
+ * Body param: This employee's ethnicity.
1002
+ */
1003
+ ethnicity?: 'american_indian' | 'asian' | 'black' | 'hawaiian' | 'hispanic' | 'white' | 'two_or_more_races';
1004
+
1005
+ /**
1006
+ * Body param: A globally unique identifier (GUID) you, the developer, can provide
1007
+ * for tracking this object in your external system. This field is immutable and
1008
+ * can only be set during object creation.
1009
+ *
1010
+ * **IMPORTANT**: This field must be formatted as a valid GUID; otherwise,
1011
+ * QuickBooks will return an error.
1012
+ */
1013
+ externalId?: string;
1014
+
1015
+ /**
1016
+ * Body param: The employee's fax number.
1017
+ */
1018
+ fax?: string;
1019
+
1020
+ /**
1021
+ * Body param: The employee's first name.
1022
+ *
1023
+ * Maximum length: 25 characters.
1024
+ */
1025
+ firstName?: string;
1026
+
1027
+ /**
1028
+ * Body param: This employee's gender.
1029
+ */
1030
+ gender?: 'male' | 'female';
1031
+
1032
+ /**
1033
+ * Body param: The date this employee was hired, in ISO 8601 format (YYYY-MM-DD).
1034
+ */
1035
+ hiredDate?: string;
1036
+
1037
+ /**
1038
+ * Body param: Indicates whether this employee's I-9 is on file.
1039
+ */
1040
+ i9OnFileStatus?: 'on_file' | 'not_on_file';
1041
+
1042
+ /**
1043
+ * Body param: Indicates whether this employee is active. Inactive objects are
1044
+ * typically hidden from views and reports in QuickBooks. Defaults to `true`.
1045
+ */
1046
+ isActive?: boolean;
1047
+
1048
+ /**
1049
+ * Body param: The employee's job title.
1050
+ */
1051
+ jobTitle?: string;
1052
+
1053
+ /**
1054
+ * Body param: Indicates whether this employee is a key employee.
1055
+ */
1056
+ keyEmployeeStatus?: 'key_employee' | 'non_key_employee';
1057
+
1058
+ /**
1059
+ * Body param: The employee's last name.
1060
+ *
1061
+ * Maximum length: 25 characters.
1062
+ */
1063
+ lastName?: string;
1064
+
1065
+ /**
1066
+ * Body param: The employee's middle name.
1067
+ *
1068
+ * Maximum length: 5 characters.
1069
+ */
1070
+ middleName?: string;
1071
+
1072
+ /**
1073
+ * Body param: This employee's military status if they are a U.S. veteran.
1074
+ */
1075
+ militaryStatus?: 'active' | 'reserve';
1076
+
1077
+ /**
1078
+ * Body param: The employee's mobile phone number.
1079
+ */
1080
+ mobile?: string;
1081
+
1082
+ /**
1083
+ * Body param: A note or comment about this employee.
1084
+ */
1085
+ note?: string;
1086
+
1087
+ /**
1088
+ * Body param: The original hire date for this employee, in ISO 8601 format
1089
+ * (YYYY-MM-DD).
1090
+ */
1091
+ originalHireDate?: string;
1092
+
1093
+ /**
1094
+ * Body param: Indicates whether this employee is exempt from overtime pay. This
1095
+ * classification is based on U.S. labor laws (FLSA).
1096
+ */
1097
+ overtimeExemptStatus?: 'exempt' | 'non_exempt';
1098
+
1099
+ /**
1100
+ * Body param: The employee's pager number.
1101
+ */
1102
+ pager?: string;
1103
+
1104
+ /**
1105
+ * Body param: The employee's pager PIN.
1106
+ */
1107
+ pagerPin?: string;
1108
+
1109
+ /**
1110
+ * Body param: The employee's primary telephone number.
1111
+ */
1112
+ phone?: string;
1113
+
1114
+ /**
1115
+ * Body param: The name to use when printing this employee from QuickBooks. By
1116
+ * default, this is the same as the `name` field.
1117
+ */
1118
+ printAs?: string;
1119
+
1120
+ /**
1121
+ * Body param: The employee's formal salutation title that precedes their name,
1122
+ * such as "Mr.", "Ms.", or "Dr.".
1123
+ */
1124
+ salutation?: string;
1125
+
1126
+ /**
1127
+ * Body param: The employee's Social Security Number. The value can be with or
1128
+ * without dashes.
1129
+ *
1130
+ * **NOTE**: This field cannot be changed after the employee is created.
1131
+ */
1132
+ ssn?: string;
1133
+
1134
+ /**
1135
+ * Body param: The employee's supervisor. Found in the "employment job details"
1136
+ * section of the employee's record in QuickBooks.
1137
+ */
1138
+ supervisorId?: string;
1139
+
1140
+ /**
1141
+ * Body param: The target bonus for this employee, represented as a decimal string.
1142
+ * Found in the "employment job details" section of the employee's record in
1143
+ * QuickBooks.
1144
+ */
1145
+ targetBonus?: string;
1146
+
1147
+ /**
1148
+ * Body param: The date this employee's employment ended with the company, in ISO
1149
+ * 8601 format (YYYY-MM-DD). This is also known as the released date or separation
1150
+ * date.
1151
+ */
1152
+ terminationDate?: string;
1153
+
1154
+ /**
1155
+ * Body param: Indicates whether this employee is a U.S. citizen.
1156
+ */
1157
+ usCitizenshipStatus?: 'citizen' | 'non_citizen';
1158
+
1159
+ /**
1160
+ * Body param: Indicates whether this employee is a U.S. veteran.
1161
+ */
1162
+ usVeteranStatus?: 'veteran' | 'non_veteran';
1163
+
1164
+ /**
1165
+ * Body param: The date this employee's work authorization expires, in ISO 8601
1166
+ * format (YYYY-MM-DD).
1167
+ */
1168
+ workAuthorizationExpirationDate?: string;
1169
+ }
1170
+
1171
+ export namespace EmployeeCreateParams {
1172
+ export interface AdditionalNote {
1173
+ /**
1174
+ * The text of this note.
1175
+ */
1176
+ note: string;
1177
+ }
1178
+
1179
+ /**
1180
+ * The employee's address.
1181
+ *
1182
+ * If the company uses QuickBooks Payroll for this employee, this address must
1183
+ * specify a complete address, including city, state, ZIP (or postal) code, and at
1184
+ * least one line of the street address.
1185
+ */
1186
+ export interface Address {
1187
+ /**
1188
+ * The city, district, suburb, town, or village name of the employee address.
1189
+ *
1190
+ * Maximum length: 31 characters.
1191
+ */
1192
+ city?: string;
1193
+
1194
+ /**
1195
+ * The country name of the employee address.
1196
+ */
1197
+ country?: string;
1198
+
1199
+ /**
1200
+ * The first line of the employee address (e.g., street, PO Box, or company name).
1201
+ *
1202
+ * Maximum length: 41 characters.
1203
+ */
1204
+ line1?: string;
1205
+
1206
+ /**
1207
+ * The second line of the employee address, if needed (e.g., apartment, suite,
1208
+ * unit, or building).
1209
+ *
1210
+ * Maximum length: 41 characters.
1211
+ */
1212
+ line2?: string;
1213
+
1214
+ /**
1215
+ * The third line of the employee address, if needed.
1216
+ *
1217
+ * Maximum length: 41 characters.
1218
+ */
1219
+ line3?: string;
1220
+
1221
+ /**
1222
+ * The fourth line of the employee address, if needed.
1223
+ *
1224
+ * Maximum length: 41 characters.
1225
+ */
1226
+ line4?: string;
1227
+
1228
+ /**
1229
+ * The postal code or ZIP code of the employee address.
1230
+ *
1231
+ * Maximum length: 13 characters.
1232
+ */
1233
+ postalCode?: string;
1234
+
1235
+ /**
1236
+ * The U.S. state of the employee address. QuickBooks requires this field to be a
1237
+ * U.S. state abbreviation (e.g., "CA" for California). See enum for all possible
1238
+ * values.
1239
+ */
1240
+ state?:
1241
+ | 'none'
1242
+ | 'armed_forces_americas'
1243
+ | 'armed_forces_europe'
1244
+ | 'armed_forces_pacific'
1245
+ | 'AK'
1246
+ | 'AL'
1247
+ | 'AR'
1248
+ | 'AZ'
1249
+ | 'CA'
1250
+ | 'CO'
1251
+ | 'CT'
1252
+ | 'DC'
1253
+ | 'DE'
1254
+ | 'FL'
1255
+ | 'GA'
1256
+ | 'HI'
1257
+ | 'IA'
1258
+ | 'ID'
1259
+ | 'IL'
1260
+ | 'IN'
1261
+ | 'KS'
1262
+ | 'KY'
1263
+ | 'LA'
1264
+ | 'MA'
1265
+ | 'MD'
1266
+ | 'ME'
1267
+ | 'MI'
1268
+ | 'MN'
1269
+ | 'MO'
1270
+ | 'MS'
1271
+ | 'MT'
1272
+ | 'NB'
1273
+ | 'NC'
1274
+ | 'ND'
1275
+ | 'NE'
1276
+ | 'NH'
1277
+ | 'NJ'
1278
+ | 'NM'
1279
+ | 'NV'
1280
+ | 'NY'
1281
+ | 'OH'
1282
+ | 'OK'
1283
+ | 'OR'
1284
+ | 'PA'
1285
+ | 'PR'
1286
+ | 'RI'
1287
+ | 'SC'
1288
+ | 'SD'
1289
+ | 'TN'
1290
+ | 'TX'
1291
+ | 'UT'
1292
+ | 'VA'
1293
+ | 'VT'
1294
+ | 'WA'
1295
+ | 'WI'
1296
+ | 'WV'
1297
+ | 'WY';
1298
+ }
1299
+
1300
+ export interface CustomContactField {
1301
+ /**
1302
+ * The name of the contact field (e.g., "old address", "secondary phone").
1303
+ */
1304
+ name: string;
1305
+
1306
+ /**
1307
+ * The value of the contact field.
1308
+ */
1309
+ value: string;
1310
+ }
1311
+
1312
+ /**
1313
+ * The employee's emergency contacts.
1314
+ */
1315
+ export interface EmergencyContact {
1316
+ /**
1317
+ * The employee's primary emergency contact.
1318
+ */
1319
+ primaryContact?: EmergencyContact.PrimaryContact;
1320
+
1321
+ /**
1322
+ * The employee's secondary emergency contact.
1323
+ */
1324
+ secondaryContact?: EmergencyContact.SecondaryContact;
1325
+ }
1326
+
1327
+ export namespace EmergencyContact {
1328
+ /**
1329
+ * The employee's primary emergency contact.
1330
+ */
1331
+ export interface PrimaryContact {
1332
+ /**
1333
+ * The name of the contact field (e.g., "old address", "secondary phone").
1334
+ */
1335
+ name: string;
1336
+
1337
+ /**
1338
+ * The value of the contact field.
1339
+ */
1340
+ value: string;
1341
+
1342
+ /**
1343
+ * The relationship of the employee to the employee.
1344
+ */
1345
+ relation?:
1346
+ | 'brother'
1347
+ | 'daughter'
1348
+ | 'father'
1349
+ | 'friend'
1350
+ | 'mother'
1351
+ | 'other'
1352
+ | 'partner'
1353
+ | 'sister'
1354
+ | 'son'
1355
+ | 'spouse';
1356
+ }
1357
+
1358
+ /**
1359
+ * The employee's secondary emergency contact.
1360
+ */
1361
+ export interface SecondaryContact {
1362
+ /**
1363
+ * The name of the contact field (e.g., "old address", "secondary phone").
1364
+ */
1365
+ name: string;
1366
+
1367
+ /**
1368
+ * The value of the contact field.
1369
+ */
1370
+ value: string;
1371
+
1372
+ /**
1373
+ * The relationship of the employee to the employee.
1374
+ */
1375
+ relation?:
1376
+ | 'brother'
1377
+ | 'daughter'
1378
+ | 'father'
1379
+ | 'friend'
1380
+ | 'mother'
1381
+ | 'other'
1382
+ | 'partner'
1383
+ | 'sister'
1384
+ | 'son'
1385
+ | 'spouse';
1386
+ }
1387
+ }
1388
+
1389
+ /**
1390
+ * The employee's payroll information.
1391
+ */
1392
+ export interface EmployeePayroll {
1393
+ /**
1394
+ * The employee's class. Classes can be used to categorize objects into meaningful
1395
+ * segments, such as department, location, or type of work. In QuickBooks, class
1396
+ * tracking is off by default.
1397
+ */
1398
+ classId?: string;
1399
+
1400
+ /**
1401
+ * The employee's earnings.
1402
+ */
1403
+ earnings?: Array<EmployeePayroll.Earning>;
1404
+
1405
+ /**
1406
+ * How frequently this employee is paid (e.g., weekly, biweekly, monthly). This
1407
+ * determines the schedule for generating paychecks.
1408
+ */
1409
+ payPeriod?: 'biweekly' | 'daily' | 'monthly' | 'quarterly' | 'semimonthly' | 'weekly' | 'yearly';
1410
+
1411
+ /**
1412
+ * The employee's sick hours, including how sick time is accrued and the total
1413
+ * hours accrued.
1414
+ */
1415
+ sickHours?: EmployeePayroll.SickHours;
1416
+
1417
+ /**
1418
+ * Indicates whether this employee is using time-tracking data to create paychecks.
1419
+ */
1420
+ useTimeDataToCreatePaychecks?: 'does_not_use_time_data' | 'not_set' | 'uses_time_data';
1421
+
1422
+ /**
1423
+ * The employee's vacation hours, including how vacation time is accrued and the
1424
+ * total hours accrued.
1425
+ */
1426
+ vacationHours?: EmployeePayroll.VacationHours;
1427
+ }
1428
+
1429
+ export namespace EmployeePayroll {
1430
+ export interface Earning {
1431
+ /**
1432
+ * The payroll wage item that defines how this employee is paid (e.g., Regular Pay,
1433
+ * Overtime Pay). This determines the payment scheme used for payroll calculations.
1434
+ */
1435
+ payrollWageItemId: string;
1436
+
1437
+ /**
1438
+ * The hourly rate for this employee, represented as a decimal string.
1439
+ */
1440
+ rate?: string;
1441
+
1442
+ /**
1443
+ * The hourly rate for this employee expressed as a percentage.
1444
+ */
1445
+ ratePercent?: string;
1446
+ }
1447
+
1448
+ /**
1449
+ * The employee's sick hours, including how sick time is accrued and the total
1450
+ * hours accrued.
1451
+ */
1452
+ export interface SickHours {
1453
+ /**
1454
+ * How frequently the employee's sick hours are accrued.
1455
+ */
1456
+ accrualPeriod?: 'accrues_annually' | 'accrues_hourly' | 'accrues_per_paycheck';
1457
+
1458
+ /**
1459
+ * The date the employee's sick hours began to accrue, in ISO 8601 format
1460
+ * (YYYY-MM-DD).
1461
+ */
1462
+ accrualStartDate?: string;
1463
+
1464
+ /**
1465
+ * The number of sick hours the employee will accrue per accrual period, in ISO
1466
+ * 8601 format for time intervals (PTnHnMnS). For example, 1 hour and 30 minutes is
1467
+ * represented as PT1H30M.
1468
+ */
1469
+ hoursAccruedPerPeriod?: string;
1470
+
1471
+ /**
1472
+ * The total number of sick hours currently available for the employee to use, in
1473
+ * ISO 8601 format for time intervals (PTnHnMnS). For example, 1 hour and 30
1474
+ * minutes is represented as PT1H30M. Defaults to 0.
1475
+ */
1476
+ hoursAvailable?: string;
1477
+
1478
+ /**
1479
+ * The number of sick hours the employee has used, in ISO 8601 format for time
1480
+ * intervals (PTnHnMnS). For example, 1 hour and 30 minutes is represented as
1481
+ * PT1H30M.
1482
+ */
1483
+ hoursUsed?: string;
1484
+
1485
+ /**
1486
+ * The maximum number of sick hours the employee can accrue, in ISO 8601 format for
1487
+ * time intervals (PTnHnMnS). For example, 1 hour and 30 minutes is represented as
1488
+ * PT1H30M.
1489
+ */
1490
+ maximumHours?: string;
1491
+
1492
+ /**
1493
+ * Indicates whether the employee's sick hours reset to zero at the beginning of
1494
+ * the new year.
1495
+ */
1496
+ resetsHoursEachYear?: boolean;
1497
+ }
1498
+
1499
+ /**
1500
+ * The employee's vacation hours, including how vacation time is accrued and the
1501
+ * total hours accrued.
1502
+ */
1503
+ export interface VacationHours {
1504
+ /**
1505
+ * How frequently the employee's vacation hours are accrued.
1506
+ */
1507
+ accrualPeriod?: 'accrues_annually' | 'accrues_hourly' | 'accrues_per_paycheck';
1508
+
1509
+ /**
1510
+ * The date the employee's vacation hours began to accrue, in ISO 8601 format
1511
+ * (YYYY-MM-DD).
1512
+ */
1513
+ accrualStartDate?: string;
1514
+
1515
+ /**
1516
+ * The number of vacation hours the employee will accrue per accrual period, in ISO
1517
+ * 8601 format for time intervals (PTnHnMnS). For example, 1 hour and 30 minutes is
1518
+ * represented as PT1H30M.
1519
+ */
1520
+ hoursAccruedPerPeriod?: string;
1521
+
1522
+ /**
1523
+ * The total number of vacation hours currently available for the employee to use,
1524
+ * in ISO 8601 format for time intervals (PTnHnMnS). For example, 1 hour and 30
1525
+ * minutes is represented as PT1H30M. Defaults to 0.
1526
+ */
1527
+ hoursAvailable?: string;
1528
+
1529
+ /**
1530
+ * The number of vacation hours the employee has used, in ISO 8601 format for time
1531
+ * intervals (PTnHnMnS). For example, 1 hour and 30 minutes is represented as
1532
+ * PT1H30M.
1533
+ */
1534
+ hoursUsed?: string;
1535
+
1536
+ /**
1537
+ * The maximum number of vacation hours the employee can accrue, in ISO 8601 format
1538
+ * for time intervals (PTnHnMnS). For example, 1 hour and 30 minutes is represented
1539
+ * as PT1H30M.
1540
+ */
1541
+ maximumHours?: string;
1542
+
1543
+ /**
1544
+ * Indicates whether the employee's vacation hours reset to zero at the beginning
1545
+ * of the new year.
1546
+ */
1547
+ resetsHoursEachYear?: boolean;
1548
+ }
1549
+ }
1550
+ }
1551
+
1552
+ export interface EmployeeRetrieveParams {
1553
+ /**
1554
+ * The ID of the EndUser to receive this request (e.g.,
1555
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
1556
+ */
1557
+ conductorEndUserId: string;
1558
+ }
1559
+
1560
+ export interface EmployeeUpdateParams {
1561
+ /**
1562
+ * Body param: The current QuickBooks-assigned revision number of the employee
1563
+ * object you are updating, which you can get by fetching the object first. Provide
1564
+ * the most recent `revisionNumber` to ensure you're working with the latest data;
1565
+ * otherwise, the update will return an error.
1566
+ */
1567
+ revisionNumber: string;
1568
+
1569
+ /**
1570
+ * Header param: The ID of the EndUser to receive this request (e.g.,
1571
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
1572
+ */
1573
+ conductorEndUserId: string;
1574
+
1575
+ /**
1576
+ * Body param: The employee's account number, which appears in the QuickBooks chart
1577
+ * of accounts, reports, and graphs.
1578
+ *
1579
+ * Note that if the "Use Account Numbers" preference is turned off in QuickBooks,
1580
+ * the account number may not be visible in the user interface, but it can still be
1581
+ * set and retrieved through the API.
1582
+ */
1583
+ accountNumber?: string;
1584
+
1585
+ /**
1586
+ * Body param: Additional notes about this employee.
1587
+ */
1588
+ additionalNotes?: Array<EmployeeUpdateParams.AdditionalNote>;
1589
+
1590
+ /**
1591
+ * Body param: The employee's address.
1592
+ *
1593
+ * If the company uses QuickBooks Payroll for this employee, this address must
1594
+ * specify a complete address, including city, state, ZIP (or postal) code, and at
1595
+ * least one line of the street address.
1596
+ */
1597
+ address?: EmployeeUpdateParams.Address;
1598
+
1599
+ /**
1600
+ * Body param: The adjusted service date for this employee, in ISO 8601 format
1601
+ * (YYYY-MM-DD). This date accounts for previous employment periods or leaves that
1602
+ * affect seniority.
1603
+ */
1604
+ adjustedServiceDate?: string;
1605
+
1606
+ /**
1607
+ * Body param: The employee's alternate telephone number.
1608
+ */
1609
+ alternatePhone?: string;
1610
+
1611
+ /**
1612
+ * Body param: The employee's billing rate, used to override service item rates in
1613
+ * time tracking transactions.
1614
+ */
1615
+ billingRateId?: string;
1616
+
1617
+ /**
1618
+ * Body param: This employee's date of birth, in ISO 8601 format (YYYY-MM-DD).
1619
+ */
1620
+ birthDate?: string;
1621
+
1622
+ /**
1623
+ * Body param: Additional custom contact fields for this employee, such as phone
1624
+ * numbers or email addresses.
1625
+ */
1626
+ customContactFields?: Array<EmployeeUpdateParams.CustomContactField>;
1627
+
1628
+ /**
1629
+ * Body param: The employee's department. Found in the "employment job details"
1630
+ * section of the employee's record in QuickBooks.
1631
+ */
1632
+ department?: string;
1633
+
1634
+ /**
1635
+ * Body param: A description of this employee. Found in the "employment job
1636
+ * details" section of the employee's record in QuickBooks.
1637
+ */
1638
+ description?: string;
1639
+
1640
+ /**
1641
+ * Body param: A description of this employee's disability.
1642
+ */
1643
+ disabilityDescription?: string;
1644
+
1645
+ /**
1646
+ * Body param: Indicates whether this employee is disabled.
1647
+ */
1648
+ disabilityStatus?: 'disabled' | 'non_disabled';
1649
+
1650
+ /**
1651
+ * Body param: The employee's email address.
1652
+ */
1653
+ email?: string;
1654
+
1655
+ /**
1656
+ * Body param: The employee's emergency contacts.
1657
+ */
1658
+ emergencyContact?: EmployeeUpdateParams.EmergencyContact;
1659
+
1660
+ /**
1661
+ * Body param: The employee's payroll information.
1662
+ */
1663
+ employeePayroll?: EmployeeUpdateParams.EmployeePayroll;
1664
+
1665
+ /**
1666
+ * Body param: The employee type. This affects payroll taxes - a statutory employee
1667
+ * is defined as an employee by statute. Note that owners/partners are typically on
1668
+ * the "Other Names" list in QuickBooks, but if listed as an employee their type
1669
+ * will be `owner`.
1670
+ */
1671
+ employeeType?: 'officer' | 'owner' | 'regular' | 'statutory';
1672
+
1673
+ /**
1674
+ * Body param: Indicates whether this employee is a part-time or full-time
1675
+ * employee.
1676
+ */
1677
+ employmentStatus?: 'full_time' | 'part_time';
1678
+
1679
+ /**
1680
+ * Body param: This employee's ethnicity.
1681
+ */
1682
+ ethnicity?: 'american_indian' | 'asian' | 'black' | 'hawaiian' | 'hispanic' | 'white' | 'two_or_more_races';
1683
+
1684
+ /**
1685
+ * Body param: The employee's fax number.
1686
+ */
1687
+ fax?: string;
1688
+
1689
+ /**
1690
+ * Body param: The employee's first name.
1691
+ *
1692
+ * Maximum length: 25 characters.
1693
+ */
1694
+ firstName?: string;
1695
+
1696
+ /**
1697
+ * Body param: The date this employee was hired, in ISO 8601 format (YYYY-MM-DD).
1698
+ */
1699
+ hiredDate?: string;
1700
+
1701
+ /**
1702
+ * Body param: Indicates whether this employee's I-9 is on file.
1703
+ */
1704
+ i9OnFileStatus?: 'on_file' | 'not_on_file';
1705
+
1706
+ /**
1707
+ * Body param: Indicates whether this employee is active. Inactive objects are
1708
+ * typically hidden from views and reports in QuickBooks. Defaults to `true`.
1709
+ */
1710
+ isActive?: boolean;
1711
+
1712
+ /**
1713
+ * Body param: The employee's job title.
1714
+ */
1715
+ jobTitle?: string;
1716
+
1717
+ /**
1718
+ * Body param: Indicates whether this employee is a key employee.
1719
+ */
1720
+ keyEmployeeStatus?: 'key_employee' | 'non_key_employee';
1721
+
1722
+ /**
1723
+ * Body param: The employee's last name.
1724
+ *
1725
+ * Maximum length: 25 characters.
1726
+ */
1727
+ lastName?: string;
1728
+
1729
+ /**
1730
+ * Body param: The employee's middle name.
1731
+ *
1732
+ * Maximum length: 5 characters.
1733
+ */
1734
+ middleName?: string;
1735
+
1736
+ /**
1737
+ * Body param: This employee's military status if they are a U.S. veteran.
1738
+ */
1739
+ militaryStatus?: 'active' | 'reserve';
1740
+
1741
+ /**
1742
+ * Body param: The employee's mobile phone number.
1743
+ */
1744
+ mobile?: string;
1745
+
1746
+ /**
1747
+ * Body param: A note or comment about this employee.
1748
+ */
1749
+ note?: string;
1750
+
1751
+ /**
1752
+ * Body param: The original hire date for this employee, in ISO 8601 format
1753
+ * (YYYY-MM-DD).
1754
+ */
1755
+ originalHireDate?: string;
1756
+
1757
+ /**
1758
+ * Body param: Indicates whether this employee is exempt from overtime pay. This
1759
+ * classification is based on U.S. labor laws (FLSA).
1760
+ */
1761
+ overtimeExemptStatus?: 'exempt' | 'non_exempt';
1762
+
1763
+ /**
1764
+ * Body param: The employee's pager number.
1765
+ */
1766
+ pager?: string;
1767
+
1768
+ /**
1769
+ * Body param: The employee's pager PIN.
1770
+ */
1771
+ pagerPin?: string;
1772
+
1773
+ /**
1774
+ * Body param: The employee's primary telephone number.
1775
+ */
1776
+ phone?: string;
1777
+
1778
+ /**
1779
+ * Body param: The name to use when printing this employee from QuickBooks. By
1780
+ * default, this is the same as the `name` field.
1781
+ */
1782
+ printAs?: string;
1783
+
1784
+ /**
1785
+ * Body param: The employee's formal salutation title that precedes their name,
1786
+ * such as "Mr.", "Ms.", or "Dr.".
1787
+ */
1788
+ salutation?: string;
1789
+
1790
+ /**
1791
+ * Body param: The employee's supervisor. Found in the "employment job details"
1792
+ * section of the employee's record in QuickBooks.
1793
+ */
1794
+ supervisorId?: string;
1795
+
1796
+ /**
1797
+ * Body param: The target bonus for this employee, represented as a decimal string.
1798
+ * Found in the "employment job details" section of the employee's record in
1799
+ * QuickBooks.
1800
+ */
1801
+ targetBonus?: string;
1802
+
1803
+ /**
1804
+ * Body param: The date this employee's employment ended with the company, in ISO
1805
+ * 8601 format (YYYY-MM-DD). This is also known as the released date or separation
1806
+ * date.
1807
+ */
1808
+ terminationDate?: string;
1809
+
1810
+ /**
1811
+ * Body param: Indicates whether this employee is a U.S. citizen.
1812
+ */
1813
+ usCitizenshipStatus?: 'citizen' | 'non_citizen';
1814
+
1815
+ /**
1816
+ * Body param: Indicates whether this employee is a U.S. veteran.
1817
+ */
1818
+ usVeteranStatus?: 'veteran' | 'non_veteran';
1819
+
1820
+ /**
1821
+ * Body param: The date this employee's work authorization expires, in ISO 8601
1822
+ * format (YYYY-MM-DD).
1823
+ */
1824
+ workAuthorizationExpirationDate?: string;
1825
+ }
1826
+
1827
+ export namespace EmployeeUpdateParams {
1828
+ export interface AdditionalNote {
1829
+ /**
1830
+ * The ID of the note to update.
1831
+ */
1832
+ id: number;
1833
+
1834
+ /**
1835
+ * The text of this note.
1836
+ */
1837
+ note?: string;
1838
+ }
1839
+
1840
+ /**
1841
+ * The employee's address.
1842
+ *
1843
+ * If the company uses QuickBooks Payroll for this employee, this address must
1844
+ * specify a complete address, including city, state, ZIP (or postal) code, and at
1845
+ * least one line of the street address.
1846
+ */
1847
+ export interface Address {
1848
+ /**
1849
+ * The city, district, suburb, town, or village name of the employee address.
1850
+ *
1851
+ * Maximum length: 31 characters.
1852
+ */
1853
+ city?: string;
1854
+
1855
+ /**
1856
+ * The country name of the employee address.
1857
+ */
1858
+ country?: string;
1859
+
1860
+ /**
1861
+ * The first line of the employee address (e.g., street, PO Box, or company name).
1862
+ *
1863
+ * Maximum length: 41 characters.
1864
+ */
1865
+ line1?: string;
1866
+
1867
+ /**
1868
+ * The second line of the employee address, if needed (e.g., apartment, suite,
1869
+ * unit, or building).
1870
+ *
1871
+ * Maximum length: 41 characters.
1872
+ */
1873
+ line2?: string;
1874
+
1875
+ /**
1876
+ * The third line of the employee address, if needed.
1877
+ *
1878
+ * Maximum length: 41 characters.
1879
+ */
1880
+ line3?: string;
1881
+
1882
+ /**
1883
+ * The fourth line of the employee address, if needed.
1884
+ *
1885
+ * Maximum length: 41 characters.
1886
+ */
1887
+ line4?: string;
1888
+
1889
+ /**
1890
+ * The postal code or ZIP code of the employee address.
1891
+ *
1892
+ * Maximum length: 13 characters.
1893
+ */
1894
+ postalCode?: string;
1895
+
1896
+ /**
1897
+ * The U.S. state of the employee address. QuickBooks requires this field to be a
1898
+ * U.S. state abbreviation (e.g., "CA" for California). See enum for all possible
1899
+ * values.
1900
+ */
1901
+ state?:
1902
+ | 'none'
1903
+ | 'armed_forces_americas'
1904
+ | 'armed_forces_europe'
1905
+ | 'armed_forces_pacific'
1906
+ | 'AK'
1907
+ | 'AL'
1908
+ | 'AR'
1909
+ | 'AZ'
1910
+ | 'CA'
1911
+ | 'CO'
1912
+ | 'CT'
1913
+ | 'DC'
1914
+ | 'DE'
1915
+ | 'FL'
1916
+ | 'GA'
1917
+ | 'HI'
1918
+ | 'IA'
1919
+ | 'ID'
1920
+ | 'IL'
1921
+ | 'IN'
1922
+ | 'KS'
1923
+ | 'KY'
1924
+ | 'LA'
1925
+ | 'MA'
1926
+ | 'MD'
1927
+ | 'ME'
1928
+ | 'MI'
1929
+ | 'MN'
1930
+ | 'MO'
1931
+ | 'MS'
1932
+ | 'MT'
1933
+ | 'NB'
1934
+ | 'NC'
1935
+ | 'ND'
1936
+ | 'NE'
1937
+ | 'NH'
1938
+ | 'NJ'
1939
+ | 'NM'
1940
+ | 'NV'
1941
+ | 'NY'
1942
+ | 'OH'
1943
+ | 'OK'
1944
+ | 'OR'
1945
+ | 'PA'
1946
+ | 'PR'
1947
+ | 'RI'
1948
+ | 'SC'
1949
+ | 'SD'
1950
+ | 'TN'
1951
+ | 'TX'
1952
+ | 'UT'
1953
+ | 'VA'
1954
+ | 'VT'
1955
+ | 'WA'
1956
+ | 'WI'
1957
+ | 'WV'
1958
+ | 'WY';
1959
+ }
1960
+
1961
+ export interface CustomContactField {
1962
+ /**
1963
+ * The name of the contact field (e.g., "old address", "secondary phone").
1964
+ */
1965
+ name: string;
1966
+
1967
+ /**
1968
+ * The value of the contact field.
1969
+ */
1970
+ value: string;
1971
+ }
1972
+
1973
+ /**
1974
+ * The employee's emergency contacts.
1975
+ */
1976
+ export interface EmergencyContact {
1977
+ /**
1978
+ * The employee's primary emergency contact.
1979
+ */
1980
+ primaryContact?: EmergencyContact.PrimaryContact;
1981
+
1982
+ /**
1983
+ * The employee's secondary emergency contact.
1984
+ */
1985
+ secondaryContact?: EmergencyContact.SecondaryContact;
1986
+ }
1987
+
1988
+ export namespace EmergencyContact {
1989
+ /**
1990
+ * The employee's primary emergency contact.
1991
+ */
1992
+ export interface PrimaryContact {
1993
+ /**
1994
+ * The name of the contact field (e.g., "old address", "secondary phone").
1995
+ */
1996
+ name: string;
1997
+
1998
+ /**
1999
+ * The value of the contact field.
2000
+ */
2001
+ value: string;
2002
+
2003
+ /**
2004
+ * The relationship of the employee to the employee.
2005
+ */
2006
+ relation?:
2007
+ | 'brother'
2008
+ | 'daughter'
2009
+ | 'father'
2010
+ | 'friend'
2011
+ | 'mother'
2012
+ | 'other'
2013
+ | 'partner'
2014
+ | 'sister'
2015
+ | 'son'
2016
+ | 'spouse';
2017
+ }
2018
+
2019
+ /**
2020
+ * The employee's secondary emergency contact.
2021
+ */
2022
+ export interface SecondaryContact {
2023
+ /**
2024
+ * The name of the contact field (e.g., "old address", "secondary phone").
2025
+ */
2026
+ name: string;
2027
+
2028
+ /**
2029
+ * The value of the contact field.
2030
+ */
2031
+ value: string;
2032
+
2033
+ /**
2034
+ * The relationship of the employee to the employee.
2035
+ */
2036
+ relation?:
2037
+ | 'brother'
2038
+ | 'daughter'
2039
+ | 'father'
2040
+ | 'friend'
2041
+ | 'mother'
2042
+ | 'other'
2043
+ | 'partner'
2044
+ | 'sister'
2045
+ | 'son'
2046
+ | 'spouse';
2047
+ }
2048
+ }
2049
+
2050
+ /**
2051
+ * The employee's payroll information.
2052
+ */
2053
+ export interface EmployeePayroll {
2054
+ /**
2055
+ * The employee's class. Classes can be used to categorize objects into meaningful
2056
+ * segments, such as department, location, or type of work. In QuickBooks, class
2057
+ * tracking is off by default.
2058
+ */
2059
+ classId?: string;
2060
+
2061
+ /**
2062
+ * The employee's earnings.
2063
+ */
2064
+ earnings?: Array<EmployeePayroll.Earning>;
2065
+
2066
+ /**
2067
+ * How frequently this employee is paid (e.g., weekly, biweekly, monthly). This
2068
+ * determines the schedule for generating paychecks.
2069
+ */
2070
+ payPeriod?: 'biweekly' | 'daily' | 'monthly' | 'quarterly' | 'semimonthly' | 'weekly' | 'yearly';
2071
+
2072
+ /**
2073
+ * The employee's sick hours, including how sick time is accrued and the total
2074
+ * hours accrued.
2075
+ */
2076
+ sickHours?: EmployeePayroll.SickHours;
2077
+
2078
+ /**
2079
+ * Indicates whether this employee is using time-tracking data to create paychecks.
2080
+ */
2081
+ useTimeDataToCreatePaychecks?: 'does_not_use_time_data' | 'not_set' | 'uses_time_data';
2082
+
2083
+ /**
2084
+ * The employee's vacation hours, including how vacation time is accrued and the
2085
+ * total hours accrued.
2086
+ */
2087
+ vacationHours?: EmployeePayroll.VacationHours;
2088
+ }
2089
+
2090
+ export namespace EmployeePayroll {
2091
+ export interface Earning {
2092
+ /**
2093
+ * The payroll wage item that defines how this employee is paid (e.g., Regular Pay,
2094
+ * Overtime Pay). This determines the payment scheme used for payroll calculations.
2095
+ */
2096
+ payrollWageItemId: string;
2097
+
2098
+ /**
2099
+ * The hourly rate for this employee, represented as a decimal string.
2100
+ */
2101
+ rate?: string;
2102
+
2103
+ /**
2104
+ * The hourly rate for this employee expressed as a percentage.
2105
+ */
2106
+ ratePercent?: string;
2107
+ }
2108
+
2109
+ /**
2110
+ * The employee's sick hours, including how sick time is accrued and the total
2111
+ * hours accrued.
2112
+ */
2113
+ export interface SickHours {
2114
+ /**
2115
+ * How frequently the employee's sick hours are accrued.
2116
+ */
2117
+ accrualPeriod?: 'accrues_annually' | 'accrues_hourly' | 'accrues_per_paycheck';
2118
+
2119
+ /**
2120
+ * The date the employee's sick hours began to accrue, in ISO 8601 format
2121
+ * (YYYY-MM-DD).
2122
+ */
2123
+ accrualStartDate?: string;
2124
+
2125
+ /**
2126
+ * The number of sick hours the employee will accrue per accrual period, in ISO
2127
+ * 8601 format for time intervals (PTnHnMnS). For example, 1 hour and 30 minutes is
2128
+ * represented as PT1H30M.
2129
+ */
2130
+ hoursAccruedPerPeriod?: string;
2131
+
2132
+ /**
2133
+ * The total number of sick hours currently available for the employee to use, in
2134
+ * ISO 8601 format for time intervals (PTnHnMnS). For example, 1 hour and 30
2135
+ * minutes is represented as PT1H30M. Defaults to 0.
2136
+ */
2137
+ hoursAvailable?: string;
2138
+
2139
+ /**
2140
+ * The number of sick hours the employee has used, in ISO 8601 format for time
2141
+ * intervals (PTnHnMnS). For example, 1 hour and 30 minutes is represented as
2142
+ * PT1H30M.
2143
+ */
2144
+ hoursUsed?: string;
2145
+
2146
+ /**
2147
+ * The maximum number of sick hours the employee can accrue, in ISO 8601 format for
2148
+ * time intervals (PTnHnMnS). For example, 1 hour and 30 minutes is represented as
2149
+ * PT1H30M.
2150
+ */
2151
+ maximumHours?: string;
2152
+
2153
+ /**
2154
+ * Indicates whether the employee's sick hours reset to zero at the beginning of
2155
+ * the new year.
2156
+ */
2157
+ resetsHoursEachYear?: boolean;
2158
+ }
2159
+
2160
+ /**
2161
+ * The employee's vacation hours, including how vacation time is accrued and the
2162
+ * total hours accrued.
2163
+ */
2164
+ export interface VacationHours {
2165
+ /**
2166
+ * How frequently the employee's vacation hours are accrued.
2167
+ */
2168
+ accrualPeriod?: 'accrues_annually' | 'accrues_hourly' | 'accrues_per_paycheck';
2169
+
2170
+ /**
2171
+ * The date the employee's vacation hours began to accrue, in ISO 8601 format
2172
+ * (YYYY-MM-DD).
2173
+ */
2174
+ accrualStartDate?: string;
2175
+
2176
+ /**
2177
+ * The number of vacation hours the employee will accrue per accrual period, in ISO
2178
+ * 8601 format for time intervals (PTnHnMnS). For example, 1 hour and 30 minutes is
2179
+ * represented as PT1H30M.
2180
+ */
2181
+ hoursAccruedPerPeriod?: string;
2182
+
2183
+ /**
2184
+ * The total number of vacation hours currently available for the employee to use,
2185
+ * in ISO 8601 format for time intervals (PTnHnMnS). For example, 1 hour and 30
2186
+ * minutes is represented as PT1H30M. Defaults to 0.
2187
+ */
2188
+ hoursAvailable?: string;
2189
+
2190
+ /**
2191
+ * The number of vacation hours the employee has used, in ISO 8601 format for time
2192
+ * intervals (PTnHnMnS). For example, 1 hour and 30 minutes is represented as
2193
+ * PT1H30M.
2194
+ */
2195
+ hoursUsed?: string;
2196
+
2197
+ /**
2198
+ * The maximum number of vacation hours the employee can accrue, in ISO 8601 format
2199
+ * for time intervals (PTnHnMnS). For example, 1 hour and 30 minutes is represented
2200
+ * as PT1H30M.
2201
+ */
2202
+ maximumHours?: string;
2203
+
2204
+ /**
2205
+ * Indicates whether the employee's vacation hours reset to zero at the beginning
2206
+ * of the new year.
2207
+ */
2208
+ resetsHoursEachYear?: boolean;
2209
+ }
2210
+ }
2211
+ }
2212
+
2213
+ export interface EmployeeListParams extends CursorPageParams {
2214
+ /**
2215
+ * Header param: The ID of the EndUser to receive this request (e.g.,
2216
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
2217
+ */
2218
+ conductorEndUserId: string;
2219
+
2220
+ /**
2221
+ * Query param: Filter for specific employees by their QuickBooks-assigned unique
2222
+ * identifier(s).
2223
+ *
2224
+ * **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
2225
+ * query parameters for this request.
2226
+ *
2227
+ * **NOTE**: If any of the values you specify in this parameter are not found, the
2228
+ * request will return an error.
2229
+ */
2230
+ ids?: Array<string>;
2231
+
2232
+ /**
2233
+ * Query param: Filter for employees whose `name` contains this substring,
2234
+ * case-insensitive. NOTE: If you use this parameter, you cannot also use
2235
+ * `nameStartsWith` or `nameEndsWith`.
2236
+ */
2237
+ nameContains?: string;
2238
+
2239
+ /**
2240
+ * Query param: Filter for employees whose `name` ends with this substring,
2241
+ * case-insensitive. NOTE: If you use this parameter, you cannot also use
2242
+ * `nameContains` or `nameStartsWith`.
2243
+ */
2244
+ nameEndsWith?: string;
2245
+
2246
+ /**
2247
+ * Query param: Filter for employees whose `name` is alphabetically greater than or
2248
+ * equal to this value.
2249
+ */
2250
+ nameFrom?: string;
2251
+
2252
+ /**
2253
+ * Query param: Filter for specific employees by their name(s), case-insensitive.
2254
+ * Like `id`, `name` is a unique identifier for an employee.
2255
+ *
2256
+ * **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
2257
+ * query parameters for this request.
2258
+ *
2259
+ * **NOTE**: If any of the values you specify in this parameter are not found, the
2260
+ * request will return an error.
2261
+ */
2262
+ names?: Array<string>;
2263
+
2264
+ /**
2265
+ * Query param: Filter for employees whose `name` starts with this substring,
2266
+ * case-insensitive. NOTE: If you use this parameter, you cannot also use
2267
+ * `nameContains` or `nameEndsWith`.
2268
+ */
2269
+ nameStartsWith?: string;
2270
+
2271
+ /**
2272
+ * Query param: Filter for employees whose `name` is alphabetically less than or
2273
+ * equal to this value.
2274
+ */
2275
+ nameTo?: string;
2276
+
2277
+ /**
2278
+ * Query param: Filter for employees that are active, inactive, or both.
2279
+ */
2280
+ status?: 'active' | 'all' | 'inactive';
2281
+
2282
+ /**
2283
+ * Query param: Filter for employees updated on or after this date and time, in ISO
2284
+ * 8601 format (YYYY-MM-DDTHH:mm:ss). If you only provide a date (YYYY-MM-DD), the
2285
+ * time is assumed to be 00:00:00 of that day.
2286
+ */
2287
+ updatedAfter?: string;
2288
+
2289
+ /**
2290
+ * Query param: Filter for employees updated on or before this date and time, in
2291
+ * ISO 8601 format (YYYY-MM-DDTHH:mm:ss). If you only provide a date (YYYY-MM-DD),
2292
+ * the time is assumed to be 23:59:59 of that day.
2293
+ */
2294
+ updatedBefore?: string;
2295
+ }
2296
+
2297
+ Employees.EmployeesCursorPage = EmployeesCursorPage;
2298
+
2299
+ export declare namespace Employees {
2300
+ export {
2301
+ type Employee as Employee,
2302
+ EmployeesCursorPage as EmployeesCursorPage,
2303
+ type EmployeeCreateParams as EmployeeCreateParams,
2304
+ type EmployeeRetrieveParams as EmployeeRetrieveParams,
2305
+ type EmployeeUpdateParams as EmployeeUpdateParams,
2306
+ type EmployeeListParams as EmployeeListParams,
2307
+ };
2308
+ }