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