@tryfinch/finch-api 6.31.0 → 7.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 +312 -0
- package/README.md +129 -68
- 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 +53 -0
- package/bin/migration-config.json +6 -0
- package/client.d.mts +258 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +258 -0
- package/client.d.ts.map +1 -0
- package/client.js +553 -0
- package/client.js.map +1 -0
- package/client.mjs +549 -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 +105 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +105 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +163 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +154 -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 -197
- package/index.d.mts.map +1 -0
- package/index.d.ts +6 -196
- package/index.d.ts.map +1 -1
- package/index.js +14 -235
- package/index.js.map +1 -1
- package/index.mjs +6 -208
- 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 +26 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +26 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +120 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +112 -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 +116 -67
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +1 -79
- package/pagination.d.ts.map +1 -1
- package/pagination.js +3 -123
- package/pagination.js.map +1 -1
- package/pagination.mjs +1 -118
- 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/access-tokens.d.mts +83 -0
- package/resources/access-tokens.d.mts.map +1 -0
- package/resources/access-tokens.d.ts +42 -33
- package/resources/access-tokens.d.ts.map +1 -1
- package/resources/access-tokens.js +2 -10
- package/resources/access-tokens.js.map +1 -1
- package/resources/access-tokens.mjs +2 -10
- package/resources/access-tokens.mjs.map +1 -1
- package/resources/account.d.mts +149 -0
- package/resources/account.d.mts.map +1 -0
- package/resources/account.d.ts +73 -49
- package/resources/account.d.ts.map +1 -1
- package/resources/account.js +1 -1
- package/resources/account.js.map +1 -1
- package/resources/account.mjs +1 -1
- package/resources/account.mjs.map +1 -1
- package/resources/connect/connect.d.mts +10 -0
- package/resources/connect/connect.d.mts.map +1 -0
- package/resources/connect/connect.d.ts +1 -1
- package/resources/connect/connect.d.ts.map +1 -1
- package/resources/connect/connect.js +3 -25
- package/resources/connect/connect.js.map +1 -1
- package/resources/connect/connect.mjs +1 -1
- package/resources/connect/index.d.mts +3 -0
- package/resources/connect/index.d.mts.map +1 -0
- package/resources/connect/index.d.ts.map +1 -1
- package/resources/connect/sessions.d.mts +110 -0
- package/resources/connect/sessions.d.mts.map +1 -0
- package/resources/connect/sessions.d.ts +44 -10
- package/resources/connect/sessions.d.ts.map +1 -1
- package/resources/connect/sessions.js +1 -1
- package/resources/connect/sessions.js.map +1 -1
- package/resources/connect/sessions.mjs +1 -1
- package/resources/connect/sessions.mjs.map +1 -1
- package/resources/connect.d.mts +2 -0
- package/resources/connect.d.mts.map +1 -0
- package/resources/connect.d.ts.map +1 -1
- package/resources/connect.js +2 -15
- package/resources/connect.js.map +1 -1
- package/resources/hris/benefits/benefits.d.mts +298 -0
- package/resources/hris/benefits/benefits.d.mts.map +1 -0
- package/resources/hris/benefits/benefits.d.ts +103 -115
- package/resources/hris/benefits/benefits.d.ts.map +1 -1
- package/resources/hris/benefits/benefits.js +45 -54
- package/resources/hris/benefits/benefits.js.map +1 -1
- package/resources/hris/benefits/benefits.mjs +43 -28
- package/resources/hris/benefits/benefits.mjs.map +1 -1
- package/resources/hris/benefits/index.d.mts +3 -0
- package/resources/hris/benefits/index.d.mts.map +1 -0
- package/resources/hris/benefits/index.d.ts +2 -2
- package/resources/hris/benefits/index.d.ts.map +1 -1
- package/resources/hris/benefits/index.js +1 -4
- package/resources/hris/benefits/index.js.map +1 -1
- package/resources/hris/benefits/index.mjs +2 -2
- package/resources/hris/benefits/index.mjs.map +1 -1
- package/resources/hris/benefits/individuals.d.mts +288 -0
- package/resources/hris/benefits/individuals.d.mts.map +1 -0
- package/resources/hris/benefits/individuals.d.ts +145 -27
- package/resources/hris/benefits/individuals.d.ts.map +1 -1
- package/resources/hris/benefits/individuals.js +61 -26
- package/resources/hris/benefits/individuals.js.map +1 -1
- package/resources/hris/benefits/individuals.mjs +60 -24
- package/resources/hris/benefits/individuals.mjs.map +1 -1
- package/resources/hris/benefits.d.mts +2 -0
- package/resources/hris/benefits.d.mts.map +1 -0
- package/resources/hris/benefits.d.ts.map +1 -1
- package/resources/hris/benefits.js +2 -15
- package/resources/hris/benefits.js.map +1 -1
- package/resources/hris/company/company.d.mts +124 -0
- package/resources/hris/company/company.d.mts.map +1 -0
- package/resources/hris/company/company.d.ts +12 -5
- package/resources/hris/company/company.d.ts.map +1 -1
- package/resources/hris/company/company.js +5 -28
- package/resources/hris/company/company.js.map +1 -1
- package/resources/hris/company/company.mjs +4 -5
- package/resources/hris/company/company.mjs.map +1 -1
- package/resources/hris/company/index.d.mts +3 -0
- package/resources/hris/company/index.d.mts.map +1 -0
- package/resources/hris/company/index.d.ts +2 -2
- package/resources/hris/company/index.d.ts.map +1 -1
- package/resources/hris/company/index.js +1 -2
- package/resources/hris/company/index.js.map +1 -1
- package/resources/hris/company/index.mjs +1 -1
- package/resources/hris/company/index.mjs.map +1 -1
- package/resources/hris/company/pay-statement-item/index.d.mts +3 -0
- package/resources/hris/company/pay-statement-item/index.d.mts.map +1 -0
- package/resources/hris/company/pay-statement-item/index.d.ts +2 -2
- package/resources/hris/company/pay-statement-item/index.d.ts.map +1 -1
- package/resources/hris/company/pay-statement-item/index.js +1 -3
- package/resources/hris/company/pay-statement-item/index.js.map +1 -1
- package/resources/hris/company/pay-statement-item/index.mjs +2 -2
- package/resources/hris/company/pay-statement-item/index.mjs.map +1 -1
- package/resources/hris/company/pay-statement-item/pay-statement-item.d.mts +99 -0
- package/resources/hris/company/pay-statement-item/pay-statement-item.d.mts.map +1 -0
- package/resources/hris/company/pay-statement-item/pay-statement-item.d.ts +22 -18
- package/resources/hris/company/pay-statement-item/pay-statement-item.d.ts.map +1 -1
- package/resources/hris/company/pay-statement-item/pay-statement-item.js +19 -40
- package/resources/hris/company/pay-statement-item/pay-statement-item.js.map +1 -1
- package/resources/hris/company/pay-statement-item/pay-statement-item.mjs +17 -15
- package/resources/hris/company/pay-statement-item/pay-statement-item.mjs.map +1 -1
- package/resources/hris/company/pay-statement-item/rules.d.mts +398 -0
- package/resources/hris/company/pay-statement-item/rules.d.mts.map +1 -0
- package/resources/hris/company/pay-statement-item/rules.d.ts +56 -21
- package/resources/hris/company/pay-statement-item/rules.d.ts.map +1 -1
- package/resources/hris/company/pay-statement-item/rules.js +55 -22
- package/resources/hris/company/pay-statement-item/rules.js.map +1 -1
- package/resources/hris/company/pay-statement-item/rules.mjs +54 -20
- package/resources/hris/company/pay-statement-item/rules.mjs.map +1 -1
- package/resources/hris/company/pay-statement-item.d.mts +2 -0
- package/resources/hris/company/pay-statement-item.d.mts.map +1 -0
- package/resources/hris/company/pay-statement-item.d.ts.map +1 -1
- package/resources/hris/company/pay-statement-item.js +2 -15
- package/resources/hris/company/pay-statement-item.js.map +1 -1
- package/resources/hris/company.d.mts +2 -0
- package/resources/hris/company.d.mts.map +1 -0
- package/resources/hris/company.d.ts.map +1 -1
- package/resources/hris/company.js +2 -15
- package/resources/hris/company.js.map +1 -1
- package/resources/hris/directory.d.mts +87 -0
- package/resources/hris/directory.d.mts.map +1 -0
- package/resources/hris/directory.d.ts +13 -9
- package/resources/hris/directory.d.ts.map +1 -1
- package/resources/hris/directory.js +17 -7
- package/resources/hris/directory.js.map +1 -1
- package/resources/hris/directory.mjs +17 -7
- package/resources/hris/directory.mjs.map +1 -1
- package/resources/hris/documents.d.mts +198 -0
- package/resources/hris/documents.d.mts.map +1 -0
- package/resources/hris/documents.d.ts +40 -30
- package/resources/hris/documents.d.ts.map +1 -1
- package/resources/hris/documents.js +13 -7
- package/resources/hris/documents.js.map +1 -1
- package/resources/hris/documents.mjs +13 -7
- package/resources/hris/documents.mjs.map +1 -1
- package/resources/hris/employments.d.mts +175 -0
- package/resources/hris/employments.d.mts.map +1 -0
- package/resources/hris/employments.d.ts +23 -20
- package/resources/hris/employments.d.ts.map +1 -1
- package/resources/hris/employments.js +7 -9
- package/resources/hris/employments.js.map +1 -1
- package/resources/hris/employments.mjs +6 -7
- package/resources/hris/employments.mjs.map +1 -1
- package/resources/hris/hris.d.mts +98 -0
- package/resources/hris/hris.d.mts.map +1 -0
- package/resources/hris/hris.d.ts +14 -14
- package/resources/hris/hris.d.ts.map +1 -1
- package/resources/hris/hris.js +10 -38
- package/resources/hris/hris.js.map +1 -1
- package/resources/hris/hris.mjs +6 -12
- package/resources/hris/hris.mjs.map +1 -1
- package/resources/hris/index.d.mts +10 -0
- package/resources/hris/index.d.mts.map +1 -0
- package/resources/hris/index.d.ts +7 -7
- package/resources/hris/index.d.ts.map +1 -1
- package/resources/hris/index.js +1 -7
- package/resources/hris/index.js.map +1 -1
- package/resources/hris/index.mjs +5 -5
- package/resources/hris/index.mjs.map +1 -1
- package/resources/hris/individuals.d.mts +116 -0
- package/resources/hris/individuals.d.mts.map +1 -0
- package/resources/hris/individuals.d.ts +16 -8
- package/resources/hris/individuals.d.ts.map +1 -1
- package/resources/hris/individuals.js +18 -13
- package/resources/hris/individuals.js.map +1 -1
- package/resources/hris/individuals.mjs +17 -11
- package/resources/hris/individuals.mjs.map +1 -1
- package/resources/hris/pay-statements.d.mts +268 -0
- package/resources/hris/pay-statements.d.mts.map +1 -0
- package/resources/hris/pay-statements.d.ts +113 -100
- package/resources/hris/pay-statements.d.ts.map +1 -1
- package/resources/hris/pay-statements.js +7 -9
- package/resources/hris/pay-statements.js.map +1 -1
- package/resources/hris/pay-statements.mjs +6 -7
- package/resources/hris/pay-statements.mjs.map +1 -1
- package/resources/hris/payments.d.mts +80 -0
- package/resources/hris/payments.d.mts.map +1 -0
- package/resources/hris/payments.d.ts +24 -21
- package/resources/hris/payments.d.ts.map +1 -1
- package/resources/hris/payments.js +4 -8
- package/resources/hris/payments.js.map +1 -1
- package/resources/hris/payments.mjs +3 -6
- package/resources/hris/payments.mjs.map +1 -1
- package/resources/hris.d.mts +2 -0
- package/resources/hris.d.mts.map +1 -0
- package/resources/hris.d.ts.map +1 -1
- package/resources/hris.js +2 -15
- package/resources/hris.js.map +1 -1
- package/resources/index.d.mts +12 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -17
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/jobs/automated.d.mts +174 -0
- package/resources/jobs/automated.d.mts.map +1 -0
- package/resources/jobs/automated.d.ts +15 -11
- package/resources/jobs/automated.d.ts.map +1 -1
- package/resources/jobs/automated.js +9 -7
- package/resources/jobs/automated.js.map +1 -1
- package/resources/jobs/automated.mjs +9 -7
- package/resources/jobs/automated.mjs.map +1 -1
- package/resources/jobs/index.d.mts +4 -0
- package/resources/jobs/index.d.mts.map +1 -0
- package/resources/jobs/index.d.ts.map +1 -1
- package/resources/jobs/jobs.d.mts +14 -0
- package/resources/jobs/jobs.d.mts.map +1 -0
- package/resources/jobs/jobs.d.ts +1 -1
- package/resources/jobs/jobs.d.ts.map +1 -1
- package/resources/jobs/jobs.js +4 -26
- package/resources/jobs/jobs.js.map +1 -1
- package/resources/jobs/jobs.mjs +1 -1
- package/resources/jobs/manual.d.mts +22 -0
- package/resources/jobs/manual.d.mts.map +1 -0
- package/resources/jobs/manual.d.ts +4 -3
- package/resources/jobs/manual.d.ts.map +1 -1
- package/resources/jobs/manual.js +4 -3
- package/resources/jobs/manual.js.map +1 -1
- package/resources/jobs/manual.mjs +4 -3
- package/resources/jobs/manual.mjs.map +1 -1
- package/resources/jobs.d.mts +2 -0
- package/resources/jobs.d.mts.map +1 -0
- package/resources/jobs.d.ts.map +1 -1
- package/resources/jobs.js +2 -15
- package/resources/jobs.js.map +1 -1
- package/resources/payroll/index.d.mts +3 -0
- package/resources/payroll/index.d.mts.map +1 -0
- package/resources/payroll/index.d.ts +1 -1
- package/resources/payroll/index.d.ts.map +1 -1
- package/resources/payroll/index.js +1 -2
- package/resources/payroll/index.js.map +1 -1
- package/resources/payroll/index.mjs +1 -1
- package/resources/payroll/index.mjs.map +1 -1
- package/resources/payroll/pay-groups.d.mts +62 -0
- package/resources/payroll/pay-groups.d.mts.map +1 -0
- package/resources/payroll/pay-groups.d.ts +22 -13
- package/resources/payroll/pay-groups.d.ts.map +1 -1
- package/resources/payroll/pay-groups.js +10 -14
- package/resources/payroll/pay-groups.js.map +1 -1
- package/resources/payroll/pay-groups.mjs +9 -12
- package/resources/payroll/pay-groups.mjs.map +1 -1
- package/resources/payroll/payroll.d.mts +10 -0
- package/resources/payroll/payroll.d.mts.map +1 -0
- package/resources/payroll/payroll.d.ts +3 -3
- package/resources/payroll/payroll.d.ts.map +1 -1
- package/resources/payroll/payroll.js +3 -26
- package/resources/payroll/payroll.js.map +1 -1
- package/resources/payroll/payroll.mjs +2 -3
- package/resources/payroll/payroll.mjs.map +1 -1
- package/resources/payroll.d.mts +2 -0
- package/resources/payroll.d.mts.map +1 -0
- package/resources/payroll.d.ts.map +1 -1
- package/resources/payroll.js +2 -15
- package/resources/payroll.js.map +1 -1
- package/resources/providers.d.mts +142 -0
- package/resources/providers.d.mts.map +1 -0
- package/resources/providers.d.ts +90 -258
- package/resources/providers.d.ts.map +1 -1
- package/resources/providers.js +4 -8
- package/resources/providers.js.map +1 -1
- package/resources/providers.mjs +3 -6
- package/resources/providers.mjs.map +1 -1
- package/resources/request-forwarding.d.mts +109 -0
- package/resources/request-forwarding.d.mts.map +1 -0
- package/resources/request-forwarding.d.ts +48 -49
- package/resources/request-forwarding.d.ts.map +1 -1
- package/resources/request-forwarding.js +3 -13
- package/resources/request-forwarding.js.map +1 -1
- package/resources/request-forwarding.mjs +3 -13
- package/resources/request-forwarding.mjs.map +1 -1
- package/resources/sandbox/company.d.mts +219 -0
- package/resources/sandbox/company.d.mts.map +1 -0
- package/resources/sandbox/company.d.ts +4 -3
- package/resources/sandbox/company.d.ts.map +1 -1
- package/resources/sandbox/company.js +1 -1
- package/resources/sandbox/company.js.map +1 -1
- package/resources/sandbox/company.mjs +1 -1
- package/resources/sandbox/company.mjs.map +1 -1
- package/resources/sandbox/connections/accounts.d.mts +97 -0
- package/resources/sandbox/connections/accounts.d.mts.map +1 -0
- package/resources/sandbox/connections/accounts.d.ts +5 -5
- package/resources/sandbox/connections/accounts.d.ts.map +1 -1
- package/resources/sandbox/connections/accounts.js +13 -5
- package/resources/sandbox/connections/accounts.js.map +1 -1
- package/resources/sandbox/connections/accounts.mjs +13 -5
- package/resources/sandbox/connections/accounts.mjs.map +1 -1
- package/resources/sandbox/connections/connections.d.mts +62 -0
- package/resources/sandbox/connections/connections.d.mts.map +1 -0
- package/resources/sandbox/connections/connections.d.ts +4 -3
- package/resources/sandbox/connections/connections.d.ts.map +1 -1
- package/resources/sandbox/connections/connections.js +3 -25
- package/resources/sandbox/connections/connections.js.map +1 -1
- package/resources/sandbox/connections/connections.mjs +1 -1
- package/resources/sandbox/connections/connections.mjs.map +1 -1
- package/resources/sandbox/connections/index.d.mts +3 -0
- package/resources/sandbox/connections/index.d.mts.map +1 -0
- package/resources/sandbox/connections/index.d.ts.map +1 -1
- package/resources/sandbox/connections.d.mts +2 -0
- package/resources/sandbox/connections.d.mts.map +1 -0
- package/resources/sandbox/connections.d.ts.map +1 -1
- package/resources/sandbox/connections.js +2 -15
- package/resources/sandbox/connections.js.map +1 -1
- package/resources/sandbox/directory.d.mts +174 -0
- package/resources/sandbox/directory.d.mts.map +1 -0
- package/resources/sandbox/directory.d.ts +12 -8
- package/resources/sandbox/directory.d.ts.map +1 -1
- package/resources/sandbox/directory.js +12 -7
- package/resources/sandbox/directory.js.map +1 -1
- package/resources/sandbox/directory.mjs +12 -7
- package/resources/sandbox/directory.mjs.map +1 -1
- package/resources/sandbox/employment.d.mts +235 -0
- package/resources/sandbox/employment.d.mts.map +1 -0
- package/resources/sandbox/employment.d.ts +4 -4
- package/resources/sandbox/employment.d.ts.map +1 -1
- package/resources/sandbox/employment.js +14 -7
- package/resources/sandbox/employment.js.map +1 -1
- package/resources/sandbox/employment.mjs +14 -7
- package/resources/sandbox/employment.mjs.map +1 -1
- package/resources/sandbox/index.d.mts +9 -0
- package/resources/sandbox/index.d.mts.map +1 -0
- package/resources/sandbox/index.d.ts.map +1 -1
- package/resources/sandbox/individual.d.mts +131 -0
- package/resources/sandbox/individual.d.mts.map +1 -0
- package/resources/sandbox/individual.d.ts +4 -4
- package/resources/sandbox/individual.d.ts.map +1 -1
- package/resources/sandbox/individual.js +14 -7
- package/resources/sandbox/individual.js.map +1 -1
- package/resources/sandbox/individual.mjs +14 -7
- package/resources/sandbox/individual.mjs.map +1 -1
- package/resources/sandbox/jobs/configuration.d.mts +41 -0
- package/resources/sandbox/jobs/configuration.d.mts.map +1 -0
- package/resources/sandbox/jobs/configuration.d.ts +5 -4
- package/resources/sandbox/jobs/configuration.d.ts.map +1 -1
- package/resources/sandbox/jobs/configuration.js +1 -1
- package/resources/sandbox/jobs/configuration.js.map +1 -1
- package/resources/sandbox/jobs/configuration.mjs +1 -1
- package/resources/sandbox/jobs/configuration.mjs.map +1 -1
- package/resources/sandbox/jobs/index.d.mts +3 -0
- package/resources/sandbox/jobs/index.d.mts.map +1 -0
- package/resources/sandbox/jobs/index.d.ts.map +1 -1
- package/resources/sandbox/jobs/jobs.d.mts +48 -0
- package/resources/sandbox/jobs/jobs.d.mts.map +1 -0
- package/resources/sandbox/jobs/jobs.d.ts +4 -3
- package/resources/sandbox/jobs/jobs.d.ts.map +1 -1
- package/resources/sandbox/jobs/jobs.js +3 -25
- package/resources/sandbox/jobs/jobs.js.map +1 -1
- package/resources/sandbox/jobs/jobs.mjs +1 -1
- package/resources/sandbox/jobs/jobs.mjs.map +1 -1
- package/resources/sandbox/jobs.d.mts +2 -0
- package/resources/sandbox/jobs.d.mts.map +1 -0
- package/resources/sandbox/jobs.d.ts.map +1 -1
- package/resources/sandbox/jobs.js +2 -15
- package/resources/sandbox/jobs.js.map +1 -1
- package/resources/sandbox/payment.d.mts +81 -0
- package/resources/sandbox/payment.d.mts.map +1 -0
- package/resources/sandbox/payment.d.ts +34 -188
- package/resources/sandbox/payment.d.ts.map +1 -1
- package/resources/sandbox/payment.js +9 -5
- package/resources/sandbox/payment.js.map +1 -1
- package/resources/sandbox/payment.mjs +9 -5
- package/resources/sandbox/payment.mjs.map +1 -1
- package/resources/sandbox/sandbox.d.mts +34 -0
- package/resources/sandbox/sandbox.d.mts.map +1 -0
- package/resources/sandbox/sandbox.d.ts +1 -1
- package/resources/sandbox/sandbox.d.ts.map +1 -1
- package/resources/sandbox/sandbox.js +9 -31
- package/resources/sandbox/sandbox.js.map +1 -1
- package/resources/sandbox/sandbox.mjs +1 -1
- package/resources/sandbox.d.mts +2 -0
- package/resources/sandbox.d.mts.map +1 -0
- package/resources/sandbox.d.ts.map +1 -1
- package/resources/sandbox.js +2 -15
- package/resources/sandbox.js.map +1 -1
- package/resources/shared.d.mts +64 -0
- package/resources/shared.d.mts.map +1 -0
- package/resources/top-level.d.mts +2 -0
- package/resources/top-level.d.mts.map +1 -0
- package/resources/webhooks.d.mts +396 -0
- package/resources/webhooks.d.mts.map +1 -0
- package/resources/webhooks.d.ts +5 -3
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +9 -8
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +3 -2
- package/resources/webhooks.mjs.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 +967 -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 +292 -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 -432
- 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 +144 -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 -221
- package/src/resource.ts +2 -11
- package/src/resources/access-tokens.ts +46 -39
- package/src/resources/account.ts +86 -57
- package/src/resources/connect/connect.ts +3 -3
- package/src/resources/connect/index.ts +2 -2
- package/src/resources/connect/sessions.ts +52 -18
- package/src/resources/connect.ts +1 -1
- package/src/resources/hris/benefits/benefits.ts +163 -173
- package/src/resources/hris/benefits/index.ts +9 -6
- package/src/resources/hris/benefits/individuals.ts +202 -79
- package/src/resources/hris/benefits.ts +1 -1
- package/src/resources/hris/company/company.ts +20 -10
- package/src/resources/hris/company/index.ts +3 -3
- package/src/resources/hris/company/pay-statement-item/index.ts +6 -4
- package/src/resources/hris/company/pay-statement-item/pay-statement-item.ts +34 -37
- package/src/resources/hris/company/pay-statement-item/rules.ts +85 -43
- package/src/resources/hris/company/pay-statement-item.ts +1 -1
- package/src/resources/hris/company.ts +1 -1
- package/src/resources/hris/directory.ts +22 -18
- package/src/resources/hris/documents.ts +51 -38
- package/src/resources/hris/employments.ts +33 -28
- package/src/resources/hris/hris.ts +41 -35
- package/src/resources/hris/index.ts +19 -15
- package/src/resources/hris/individuals.ts +23 -21
- package/src/resources/hris/pay-statements.ts +130 -116
- package/src/resources/hris/payments.ts +32 -32
- package/src/resources/hris.ts +1 -1
- package/src/resources/index.ts +16 -11
- package/src/resources/jobs/automated.ts +20 -22
- package/src/resources/jobs/index.ts +3 -3
- package/src/resources/jobs/jobs.ts +5 -5
- package/src/resources/jobs/manual.ts +6 -4
- package/src/resources/jobs.ts +1 -1
- package/src/resources/payroll/index.ts +4 -3
- package/src/resources/payroll/pay-groups.ts +43 -37
- package/src/resources/payroll/payroll.ts +6 -5
- package/src/resources/payroll.ts +1 -1
- package/src/resources/providers.ts +91 -397
- package/src/resources/request-forwarding.ts +38 -51
- package/src/resources/sandbox/company.ts +5 -4
- package/src/resources/sandbox/connections/accounts.ts +8 -13
- package/src/resources/sandbox/connections/connections.ts +6 -8
- package/src/resources/sandbox/connections/index.ts +2 -2
- package/src/resources/sandbox/connections.ts +1 -1
- package/src/resources/sandbox/directory.ts +17 -20
- package/src/resources/sandbox/employment.ts +10 -18
- package/src/resources/sandbox/index.ts +8 -8
- package/src/resources/sandbox/individual.ts +10 -18
- package/src/resources/sandbox/jobs/configuration.ts +5 -7
- package/src/resources/sandbox/jobs/index.ts +2 -2
- package/src/resources/sandbox/jobs/jobs.ts +6 -5
- package/src/resources/sandbox/jobs.ts +1 -1
- package/src/resources/sandbox/payment.ts +82 -220
- package/src/resources/sandbox/sandbox.ts +15 -15
- package/src/resources/sandbox.ts +1 -1
- package/src/resources/webhooks.ts +7 -5
- 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 -253
- package/core.d.ts.map +0 -1
- package/core.js +0 -932
- package/core.js.map +0 -1
- package/core.mjs +0 -899
- 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 -1248
- package/src/shims/node.ts +0 -50
- package/src/shims/web.ts +0 -50
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as HRISAPI from "./hris.mjs";
|
|
3
|
+
import * as BenefitsAPI from "./benefits/benefits.mjs";
|
|
4
|
+
import { PagePromise, ResponsesPage } from "../../core/pagination.mjs";
|
|
5
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
6
|
+
export declare class PayStatements extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Read detailed pay statements for each individual.
|
|
9
|
+
*
|
|
10
|
+
* Deduction and contribution types are supported by the payroll systems that
|
|
11
|
+
* supports Benefits.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* // Automatically fetches more pages as needed.
|
|
16
|
+
* for await (const payStatementResponse of client.hris.payStatements.retrieveMany(
|
|
17
|
+
* {
|
|
18
|
+
* requests: [
|
|
19
|
+
* {
|
|
20
|
+
* payment_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
21
|
+
* },
|
|
22
|
+
* ],
|
|
23
|
+
* },
|
|
24
|
+
* )) {
|
|
25
|
+
* // ...
|
|
26
|
+
* }
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
retrieveMany(params: PayStatementRetrieveManyParams, options?: RequestOptions): PagePromise<PayStatementResponsesPage, PayStatementResponse>;
|
|
30
|
+
}
|
|
31
|
+
export type PayStatementResponsesPage = ResponsesPage<PayStatementResponse>;
|
|
32
|
+
export interface PayStatement {
|
|
33
|
+
/**
|
|
34
|
+
* The array of earnings objects associated with this pay statement
|
|
35
|
+
*/
|
|
36
|
+
earnings: Array<PayStatement.Earning | null> | null;
|
|
37
|
+
/**
|
|
38
|
+
* The array of deductions objects associated with this pay statement.
|
|
39
|
+
*/
|
|
40
|
+
employee_deductions: Array<PayStatement.EmployeeDeduction> | null;
|
|
41
|
+
employer_contributions: Array<PayStatement.EmployerContribution> | null;
|
|
42
|
+
gross_pay: HRISAPI.Money | null;
|
|
43
|
+
/**
|
|
44
|
+
* A stable Finch `id` (UUID v4) for an individual in the company
|
|
45
|
+
*/
|
|
46
|
+
individual_id: string;
|
|
47
|
+
net_pay: HRISAPI.Money | null;
|
|
48
|
+
/**
|
|
49
|
+
* The payment method.
|
|
50
|
+
*/
|
|
51
|
+
payment_method: 'check' | 'direct_deposit' | 'other' | null;
|
|
52
|
+
/**
|
|
53
|
+
* The array of taxes objects associated with this pay statement.
|
|
54
|
+
*/
|
|
55
|
+
taxes: Array<PayStatement.Tax> | null;
|
|
56
|
+
/**
|
|
57
|
+
* The number of hours worked for this pay period
|
|
58
|
+
*/
|
|
59
|
+
total_hours: number | null;
|
|
60
|
+
/**
|
|
61
|
+
* The type of the payment associated with the pay statement.
|
|
62
|
+
*/
|
|
63
|
+
type: 'off_cycle_payroll' | 'one_time_payment' | 'regular_payroll' | null;
|
|
64
|
+
}
|
|
65
|
+
export declare namespace PayStatement {
|
|
66
|
+
interface Earning {
|
|
67
|
+
/**
|
|
68
|
+
* The earnings amount in cents.
|
|
69
|
+
*/
|
|
70
|
+
amount: number | null;
|
|
71
|
+
/**
|
|
72
|
+
* The earnings currency code.
|
|
73
|
+
*/
|
|
74
|
+
currency: string | null;
|
|
75
|
+
/**
|
|
76
|
+
* The number of hours associated with this earning. (For salaried employees, this
|
|
77
|
+
* could be hours per pay period, `0` or `null`, depending on the provider).
|
|
78
|
+
*/
|
|
79
|
+
hours: number | null;
|
|
80
|
+
/**
|
|
81
|
+
* The exact name of the deduction from the pay statement.
|
|
82
|
+
*/
|
|
83
|
+
name: string | null;
|
|
84
|
+
/**
|
|
85
|
+
* The type of earning.
|
|
86
|
+
*/
|
|
87
|
+
type: 'salary' | 'wage' | 'reimbursement' | 'overtime' | 'severance' | 'double_overtime' | 'pto' | 'sick' | 'bonus' | 'commission' | 'tips' | '1099' | 'other' | null;
|
|
88
|
+
attributes?: Earning.Attributes | null;
|
|
89
|
+
}
|
|
90
|
+
namespace Earning {
|
|
91
|
+
interface Attributes {
|
|
92
|
+
/**
|
|
93
|
+
* The metadata to be attached to the entity by existing rules. It is a key-value
|
|
94
|
+
* pairs where the values can be of any type (string, number, boolean, object,
|
|
95
|
+
* array, etc.).
|
|
96
|
+
*/
|
|
97
|
+
metadata: {
|
|
98
|
+
[key: string]: unknown;
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
interface EmployeeDeduction {
|
|
103
|
+
/**
|
|
104
|
+
* The deduction amount in cents.
|
|
105
|
+
*/
|
|
106
|
+
amount: number | null;
|
|
107
|
+
/**
|
|
108
|
+
* The deduction currency.
|
|
109
|
+
*/
|
|
110
|
+
currency: string | null;
|
|
111
|
+
/**
|
|
112
|
+
* The deduction name from the pay statement.
|
|
113
|
+
*/
|
|
114
|
+
name: string | null;
|
|
115
|
+
/**
|
|
116
|
+
* Boolean indicating if the deduction is pre-tax.
|
|
117
|
+
*/
|
|
118
|
+
pre_tax: boolean | null;
|
|
119
|
+
/**
|
|
120
|
+
* Type of benefit.
|
|
121
|
+
*/
|
|
122
|
+
type: BenefitsAPI.BenefitType | null;
|
|
123
|
+
attributes?: EmployeeDeduction.Attributes | null;
|
|
124
|
+
}
|
|
125
|
+
namespace EmployeeDeduction {
|
|
126
|
+
interface Attributes {
|
|
127
|
+
/**
|
|
128
|
+
* The metadata to be attached to the entity by existing rules. It is a key-value
|
|
129
|
+
* pairs where the values can be of any type (string, number, boolean, object,
|
|
130
|
+
* array, etc.).
|
|
131
|
+
*/
|
|
132
|
+
metadata: {
|
|
133
|
+
[key: string]: unknown;
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
interface EmployerContribution {
|
|
138
|
+
/**
|
|
139
|
+
* The contribution currency.
|
|
140
|
+
*/
|
|
141
|
+
currency: string | null;
|
|
142
|
+
/**
|
|
143
|
+
* The contribution name from the pay statement.
|
|
144
|
+
*/
|
|
145
|
+
name: string | null;
|
|
146
|
+
/**
|
|
147
|
+
* Type of benefit.
|
|
148
|
+
*/
|
|
149
|
+
type: BenefitsAPI.BenefitType | null;
|
|
150
|
+
/**
|
|
151
|
+
* The contribution amount in cents.
|
|
152
|
+
*/
|
|
153
|
+
amount?: number | null;
|
|
154
|
+
attributes?: EmployerContribution.Attributes | null;
|
|
155
|
+
}
|
|
156
|
+
namespace EmployerContribution {
|
|
157
|
+
interface Attributes {
|
|
158
|
+
/**
|
|
159
|
+
* The metadata to be attached to the entity by existing rules. It is a key-value
|
|
160
|
+
* pairs where the values can be of any type (string, number, boolean, object,
|
|
161
|
+
* array, etc.).
|
|
162
|
+
*/
|
|
163
|
+
metadata: {
|
|
164
|
+
[key: string]: unknown;
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
interface Tax {
|
|
169
|
+
/**
|
|
170
|
+
* The currency code.
|
|
171
|
+
*/
|
|
172
|
+
currency: string | null;
|
|
173
|
+
/**
|
|
174
|
+
* `true` if the amount is paid by the employers.
|
|
175
|
+
*/
|
|
176
|
+
employer: boolean | null;
|
|
177
|
+
/**
|
|
178
|
+
* The exact name of tax from the pay statement.
|
|
179
|
+
*/
|
|
180
|
+
name: string | null;
|
|
181
|
+
/**
|
|
182
|
+
* The type of taxes.
|
|
183
|
+
*/
|
|
184
|
+
type: 'state' | 'federal' | 'local' | 'fica' | null;
|
|
185
|
+
/**
|
|
186
|
+
* The tax amount in cents.
|
|
187
|
+
*/
|
|
188
|
+
amount?: number | null;
|
|
189
|
+
attributes?: Tax.Attributes | null;
|
|
190
|
+
}
|
|
191
|
+
namespace Tax {
|
|
192
|
+
interface Attributes {
|
|
193
|
+
/**
|
|
194
|
+
* The metadata to be attached to the entity by existing rules. It is a key-value
|
|
195
|
+
* pairs where the values can be of any type (string, number, boolean, object,
|
|
196
|
+
* array, etc.).
|
|
197
|
+
*/
|
|
198
|
+
metadata: {
|
|
199
|
+
[key: string]: unknown;
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
export interface PayStatementDataSyncInProgress {
|
|
205
|
+
code: 202;
|
|
206
|
+
finch_code: 'data_sync_in_progress';
|
|
207
|
+
message: 'The pay statements for this payment are being fetched. Please check back later.';
|
|
208
|
+
name: 'accepted';
|
|
209
|
+
}
|
|
210
|
+
export interface PayStatementResponse {
|
|
211
|
+
body: PayStatementResponseBody | PayStatementResponse.BatchError | PayStatementDataSyncInProgress;
|
|
212
|
+
code: number;
|
|
213
|
+
payment_id: string;
|
|
214
|
+
}
|
|
215
|
+
export declare namespace PayStatementResponse {
|
|
216
|
+
interface BatchError {
|
|
217
|
+
code: number;
|
|
218
|
+
message: string;
|
|
219
|
+
name: string;
|
|
220
|
+
finch_code?: string;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
export interface PayStatementResponseBody {
|
|
224
|
+
paging: PayStatementResponseBody.Paging;
|
|
225
|
+
pay_statements: Array<PayStatement>;
|
|
226
|
+
}
|
|
227
|
+
export declare namespace PayStatementResponseBody {
|
|
228
|
+
interface Paging {
|
|
229
|
+
/**
|
|
230
|
+
* The current start index of the returned list of elements
|
|
231
|
+
*/
|
|
232
|
+
offset: number;
|
|
233
|
+
/**
|
|
234
|
+
* The total number of elements for the entire query (not just the given page)
|
|
235
|
+
*/
|
|
236
|
+
count?: number;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
export interface PayStatementRetrieveManyParams {
|
|
240
|
+
/**
|
|
241
|
+
* Body param: The array of batch requests.
|
|
242
|
+
*/
|
|
243
|
+
requests: Array<PayStatementRetrieveManyParams.Request>;
|
|
244
|
+
/**
|
|
245
|
+
* Query param: The entity IDs to specify which entities' data to access.
|
|
246
|
+
*/
|
|
247
|
+
entity_ids?: Array<string>;
|
|
248
|
+
}
|
|
249
|
+
export declare namespace PayStatementRetrieveManyParams {
|
|
250
|
+
interface Request {
|
|
251
|
+
/**
|
|
252
|
+
* A stable Finch `id` (UUID v4) for a payment.
|
|
253
|
+
*/
|
|
254
|
+
payment_id: string;
|
|
255
|
+
/**
|
|
256
|
+
* Number of pay statements to return (defaults to all).
|
|
257
|
+
*/
|
|
258
|
+
limit?: number;
|
|
259
|
+
/**
|
|
260
|
+
* Index to start from.
|
|
261
|
+
*/
|
|
262
|
+
offset?: number;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
export declare namespace PayStatements {
|
|
266
|
+
export { type PayStatement as PayStatement, type PayStatementDataSyncInProgress as PayStatementDataSyncInProgress, type PayStatementResponse as PayStatementResponse, type PayStatementResponseBody as PayStatementResponseBody, type PayStatementResponsesPage as PayStatementResponsesPage, type PayStatementRetrieveManyParams as PayStatementRetrieveManyParams, };
|
|
267
|
+
}
|
|
268
|
+
//# sourceMappingURL=pay-statements.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pay-statements.d.mts","sourceRoot":"","sources":["../../src/resources/hris/pay-statements.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,KAAK,WAAW;OAChB,EAAE,WAAW,EAAE,aAAa,EAAE;OAC9B,EAAE,cAAc,EAAE;AAEzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,YAAY,CACV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;IACvC,MAAM,EAAE,wBAAwB,CAAC,MAAM,CAAC;IAExC,cAAc,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;CACrC;AAED,yBAAiB,wBAAwB,CAAC;IACxC,UAAiB,MAAM;QACrB;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;CACF;AAED,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,8BAA8B,CAAC,OAAO,CAAC,CAAC;IAExD;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC5B;AAED,yBAAiB,8BAA8B,CAAC;IAC9C,UAAiB,OAAO;QACtB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,8BAA8B,IAAI,8BAA8B,GACtE,CAAC;CACH"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { APIResource } from "../../resource.js";
|
|
2
|
-
import * as Core from "../../core.js";
|
|
3
|
-
import * as Shared from "../shared.js";
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
4
2
|
import * as HRISAPI from "./hris.js";
|
|
5
3
|
import * as BenefitsAPI from "./benefits/benefits.js";
|
|
6
|
-
import { ResponsesPage } from "../../pagination.js";
|
|
4
|
+
import { PagePromise, ResponsesPage } from "../../core/pagination.js";
|
|
5
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
7
6
|
export declare class PayStatements extends APIResource {
|
|
8
7
|
/**
|
|
9
8
|
* Read detailed pay statements for each individual.
|
|
@@ -27,211 +26,225 @@ export declare class PayStatements extends APIResource {
|
|
|
27
26
|
* }
|
|
28
27
|
* ```
|
|
29
28
|
*/
|
|
30
|
-
retrieveMany(
|
|
31
|
-
}
|
|
32
|
-
export declare class PayStatementResponsesPage extends ResponsesPage<PayStatementResponse> {
|
|
29
|
+
retrieveMany(params: PayStatementRetrieveManyParams, options?: RequestOptions): PagePromise<PayStatementResponsesPage, PayStatementResponse>;
|
|
33
30
|
}
|
|
31
|
+
export type PayStatementResponsesPage = ResponsesPage<PayStatementResponse>;
|
|
34
32
|
export interface PayStatement {
|
|
35
33
|
/**
|
|
36
34
|
* The array of earnings objects associated with this pay statement
|
|
37
35
|
*/
|
|
38
|
-
earnings
|
|
36
|
+
earnings: Array<PayStatement.Earning | null> | null;
|
|
39
37
|
/**
|
|
40
38
|
* The array of deductions objects associated with this pay statement.
|
|
41
39
|
*/
|
|
42
|
-
employee_deductions
|
|
43
|
-
employer_contributions
|
|
44
|
-
gross_pay
|
|
40
|
+
employee_deductions: Array<PayStatement.EmployeeDeduction> | null;
|
|
41
|
+
employer_contributions: Array<PayStatement.EmployerContribution> | null;
|
|
42
|
+
gross_pay: HRISAPI.Money | null;
|
|
45
43
|
/**
|
|
46
44
|
* A stable Finch `id` (UUID v4) for an individual in the company
|
|
47
45
|
*/
|
|
48
|
-
individual_id
|
|
49
|
-
net_pay
|
|
46
|
+
individual_id: string;
|
|
47
|
+
net_pay: HRISAPI.Money | null;
|
|
50
48
|
/**
|
|
51
49
|
* The payment method.
|
|
52
50
|
*/
|
|
53
|
-
payment_method
|
|
51
|
+
payment_method: 'check' | 'direct_deposit' | 'other' | null;
|
|
54
52
|
/**
|
|
55
53
|
* The array of taxes objects associated with this pay statement.
|
|
56
54
|
*/
|
|
57
|
-
taxes
|
|
55
|
+
taxes: Array<PayStatement.Tax> | null;
|
|
58
56
|
/**
|
|
59
57
|
* The number of hours worked for this pay period
|
|
60
58
|
*/
|
|
61
|
-
total_hours
|
|
59
|
+
total_hours: number | null;
|
|
62
60
|
/**
|
|
63
61
|
* The type of the payment associated with the pay statement.
|
|
64
62
|
*/
|
|
65
|
-
type
|
|
63
|
+
type: 'off_cycle_payroll' | 'one_time_payment' | 'regular_payroll' | null;
|
|
66
64
|
}
|
|
67
65
|
export declare namespace PayStatement {
|
|
68
66
|
interface Earning {
|
|
69
67
|
/**
|
|
70
68
|
* The earnings amount in cents.
|
|
71
69
|
*/
|
|
72
|
-
amount
|
|
73
|
-
attributes?: Earning.Attributes | null;
|
|
70
|
+
amount: number | null;
|
|
74
71
|
/**
|
|
75
72
|
* The earnings currency code.
|
|
76
73
|
*/
|
|
77
|
-
currency
|
|
74
|
+
currency: string | null;
|
|
78
75
|
/**
|
|
79
76
|
* The number of hours associated with this earning. (For salaried employees, this
|
|
80
77
|
* could be hours per pay period, `0` or `null`, depending on the provider).
|
|
81
78
|
*/
|
|
82
|
-
hours
|
|
79
|
+
hours: number | null;
|
|
83
80
|
/**
|
|
84
81
|
* The exact name of the deduction from the pay statement.
|
|
85
82
|
*/
|
|
86
|
-
name
|
|
83
|
+
name: string | null;
|
|
87
84
|
/**
|
|
88
85
|
* The type of earning.
|
|
89
86
|
*/
|
|
90
|
-
type
|
|
87
|
+
type: 'salary' | 'wage' | 'reimbursement' | 'overtime' | 'severance' | 'double_overtime' | 'pto' | 'sick' | 'bonus' | 'commission' | 'tips' | '1099' | 'other' | null;
|
|
88
|
+
attributes?: Earning.Attributes | null;
|
|
91
89
|
}
|
|
92
90
|
namespace Earning {
|
|
93
91
|
interface Attributes {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
*/
|
|
103
|
-
metadata?: Record<string, unknown>;
|
|
104
|
-
}
|
|
92
|
+
/**
|
|
93
|
+
* The metadata to be attached to the entity by existing rules. It is a key-value
|
|
94
|
+
* pairs where the values can be of any type (string, number, boolean, object,
|
|
95
|
+
* array, etc.).
|
|
96
|
+
*/
|
|
97
|
+
metadata: {
|
|
98
|
+
[key: string]: unknown;
|
|
99
|
+
};
|
|
105
100
|
}
|
|
106
101
|
}
|
|
107
102
|
interface EmployeeDeduction {
|
|
108
103
|
/**
|
|
109
104
|
* The deduction amount in cents.
|
|
110
105
|
*/
|
|
111
|
-
amount
|
|
112
|
-
attributes?: EmployeeDeduction.Attributes | null;
|
|
106
|
+
amount: number | null;
|
|
113
107
|
/**
|
|
114
108
|
* The deduction currency.
|
|
115
109
|
*/
|
|
116
|
-
currency
|
|
110
|
+
currency: string | null;
|
|
117
111
|
/**
|
|
118
112
|
* The deduction name from the pay statement.
|
|
119
113
|
*/
|
|
120
|
-
name
|
|
114
|
+
name: string | null;
|
|
121
115
|
/**
|
|
122
116
|
* Boolean indicating if the deduction is pre-tax.
|
|
123
117
|
*/
|
|
124
|
-
pre_tax
|
|
118
|
+
pre_tax: boolean | null;
|
|
125
119
|
/**
|
|
126
120
|
* Type of benefit.
|
|
127
121
|
*/
|
|
128
|
-
type
|
|
122
|
+
type: BenefitsAPI.BenefitType | null;
|
|
123
|
+
attributes?: EmployeeDeduction.Attributes | null;
|
|
129
124
|
}
|
|
130
125
|
namespace EmployeeDeduction {
|
|
131
126
|
interface Attributes {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
*/
|
|
141
|
-
metadata?: Record<string, unknown>;
|
|
142
|
-
}
|
|
127
|
+
/**
|
|
128
|
+
* The metadata to be attached to the entity by existing rules. It is a key-value
|
|
129
|
+
* pairs where the values can be of any type (string, number, boolean, object,
|
|
130
|
+
* array, etc.).
|
|
131
|
+
*/
|
|
132
|
+
metadata: {
|
|
133
|
+
[key: string]: unknown;
|
|
134
|
+
};
|
|
143
135
|
}
|
|
144
136
|
}
|
|
145
137
|
interface EmployerContribution {
|
|
146
|
-
/**
|
|
147
|
-
* The contribution amount in cents.
|
|
148
|
-
*/
|
|
149
|
-
amount?: number | null;
|
|
150
|
-
attributes?: EmployerContribution.Attributes | null;
|
|
151
138
|
/**
|
|
152
139
|
* The contribution currency.
|
|
153
140
|
*/
|
|
154
|
-
currency
|
|
141
|
+
currency: string | null;
|
|
155
142
|
/**
|
|
156
143
|
* The contribution name from the pay statement.
|
|
157
144
|
*/
|
|
158
|
-
name
|
|
145
|
+
name: string | null;
|
|
159
146
|
/**
|
|
160
147
|
* Type of benefit.
|
|
161
148
|
*/
|
|
162
|
-
type
|
|
149
|
+
type: BenefitsAPI.BenefitType | null;
|
|
150
|
+
/**
|
|
151
|
+
* The contribution amount in cents.
|
|
152
|
+
*/
|
|
153
|
+
amount?: number | null;
|
|
154
|
+
attributes?: EmployerContribution.Attributes | null;
|
|
163
155
|
}
|
|
164
156
|
namespace EmployerContribution {
|
|
165
157
|
interface Attributes {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
*/
|
|
175
|
-
metadata?: Record<string, unknown>;
|
|
176
|
-
}
|
|
158
|
+
/**
|
|
159
|
+
* The metadata to be attached to the entity by existing rules. It is a key-value
|
|
160
|
+
* pairs where the values can be of any type (string, number, boolean, object,
|
|
161
|
+
* array, etc.).
|
|
162
|
+
*/
|
|
163
|
+
metadata: {
|
|
164
|
+
[key: string]: unknown;
|
|
165
|
+
};
|
|
177
166
|
}
|
|
178
167
|
}
|
|
179
168
|
interface Tax {
|
|
180
|
-
/**
|
|
181
|
-
* The tax amount in cents.
|
|
182
|
-
*/
|
|
183
|
-
amount?: number | null;
|
|
184
|
-
attributes?: Tax.Attributes | null;
|
|
185
169
|
/**
|
|
186
170
|
* The currency code.
|
|
187
171
|
*/
|
|
188
|
-
currency
|
|
172
|
+
currency: string | null;
|
|
189
173
|
/**
|
|
190
174
|
* `true` if the amount is paid by the employers.
|
|
191
175
|
*/
|
|
192
|
-
employer
|
|
176
|
+
employer: boolean | null;
|
|
193
177
|
/**
|
|
194
178
|
* The exact name of tax from the pay statement.
|
|
195
179
|
*/
|
|
196
|
-
name
|
|
180
|
+
name: string | null;
|
|
197
181
|
/**
|
|
198
182
|
* The type of taxes.
|
|
199
183
|
*/
|
|
200
|
-
type
|
|
184
|
+
type: 'state' | 'federal' | 'local' | 'fica' | null;
|
|
185
|
+
/**
|
|
186
|
+
* The tax amount in cents.
|
|
187
|
+
*/
|
|
188
|
+
amount?: number | null;
|
|
189
|
+
attributes?: Tax.Attributes | null;
|
|
201
190
|
}
|
|
202
191
|
namespace Tax {
|
|
203
192
|
interface Attributes {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
*/
|
|
213
|
-
metadata?: Record<string, unknown>;
|
|
214
|
-
}
|
|
193
|
+
/**
|
|
194
|
+
* The metadata to be attached to the entity by existing rules. It is a key-value
|
|
195
|
+
* pairs where the values can be of any type (string, number, boolean, object,
|
|
196
|
+
* array, etc.).
|
|
197
|
+
*/
|
|
198
|
+
metadata: {
|
|
199
|
+
[key: string]: unknown;
|
|
200
|
+
};
|
|
215
201
|
}
|
|
216
202
|
}
|
|
217
203
|
}
|
|
204
|
+
export interface PayStatementDataSyncInProgress {
|
|
205
|
+
code: 202;
|
|
206
|
+
finch_code: 'data_sync_in_progress';
|
|
207
|
+
message: 'The pay statements for this payment are being fetched. Please check back later.';
|
|
208
|
+
name: 'accepted';
|
|
209
|
+
}
|
|
218
210
|
export interface PayStatementResponse {
|
|
219
|
-
body
|
|
220
|
-
code
|
|
221
|
-
payment_id
|
|
211
|
+
body: PayStatementResponseBody | PayStatementResponse.BatchError | PayStatementDataSyncInProgress;
|
|
212
|
+
code: number;
|
|
213
|
+
payment_id: string;
|
|
214
|
+
}
|
|
215
|
+
export declare namespace PayStatementResponse {
|
|
216
|
+
interface BatchError {
|
|
217
|
+
code: number;
|
|
218
|
+
message: string;
|
|
219
|
+
name: string;
|
|
220
|
+
finch_code?: string;
|
|
221
|
+
}
|
|
222
222
|
}
|
|
223
223
|
export interface PayStatementResponseBody {
|
|
224
|
-
paging
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
224
|
+
paging: PayStatementResponseBody.Paging;
|
|
225
|
+
pay_statements: Array<PayStatement>;
|
|
226
|
+
}
|
|
227
|
+
export declare namespace PayStatementResponseBody {
|
|
228
|
+
interface Paging {
|
|
229
|
+
/**
|
|
230
|
+
* The current start index of the returned list of elements
|
|
231
|
+
*/
|
|
232
|
+
offset: number;
|
|
233
|
+
/**
|
|
234
|
+
* The total number of elements for the entire query (not just the given page)
|
|
235
|
+
*/
|
|
236
|
+
count?: number;
|
|
237
|
+
}
|
|
229
238
|
}
|
|
230
239
|
export interface PayStatementRetrieveManyParams {
|
|
231
240
|
/**
|
|
232
|
-
* The array of batch requests.
|
|
241
|
+
* Body param: The array of batch requests.
|
|
233
242
|
*/
|
|
234
243
|
requests: Array<PayStatementRetrieveManyParams.Request>;
|
|
244
|
+
/**
|
|
245
|
+
* Query param: The entity IDs to specify which entities' data to access.
|
|
246
|
+
*/
|
|
247
|
+
entity_ids?: Array<string>;
|
|
235
248
|
}
|
|
236
249
|
export declare namespace PayStatementRetrieveManyParams {
|
|
237
250
|
interface Request {
|
|
@@ -250,6 +263,6 @@ export declare namespace PayStatementRetrieveManyParams {
|
|
|
250
263
|
}
|
|
251
264
|
}
|
|
252
265
|
export declare namespace PayStatements {
|
|
253
|
-
export { type PayStatement as PayStatement, type PayStatementResponse as PayStatementResponse, type PayStatementResponseBody as PayStatementResponseBody, PayStatementResponsesPage as PayStatementResponsesPage, type PayStatementRetrieveManyParams as PayStatementRetrieveManyParams, };
|
|
266
|
+
export { type PayStatement as PayStatement, type PayStatementDataSyncInProgress as PayStatementDataSyncInProgress, type PayStatementResponse as PayStatementResponse, type PayStatementResponseBody as PayStatementResponseBody, type PayStatementResponsesPage as PayStatementResponsesPage, type PayStatementRetrieveManyParams as PayStatementRetrieveManyParams, };
|
|
254
267
|
}
|
|
255
268
|
//# sourceMappingURL=pay-statements.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pay-statements.d.ts","sourceRoot":"","sources":["../../src/resources/hris/pay-statements.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pay-statements.d.ts","sourceRoot":"","sources":["../../src/resources/hris/pay-statements.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,KAAK,WAAW;OAChB,EAAE,WAAW,EAAE,aAAa,EAAE;OAC9B,EAAE,cAAc,EAAE;AAEzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,YAAY,CACV,MAAM,EAAE,8BAA8B,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,yBAAyB,EAAE,oBAAoB,CAAC;CAShE;AAED,MAAM,MAAM,yBAAyB,GAAG,aAAa,CAAC,oBAAoB,CAAC,CAAC;AAE5E,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,OAAO,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;IAEpD;;OAEG;IACH,mBAAmB,EAAE,KAAK,CAAC,YAAY,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC;IAElE,sBAAsB,EAAE,KAAK,CAAC,YAAY,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC;IAExE,SAAS,EAAE,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC;IAEhC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB,OAAO,EAAE,OAAO,CAAC,KAAK,GAAG,IAA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