@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
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { APIResource } from "../../../resource.js";
|
|
2
|
-
import * as Core from "../../../core.js";
|
|
3
|
-
import * as BenefitsAPI from "./benefits.js";
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
4
2
|
import * as Shared from "../../shared.js";
|
|
5
3
|
import * as IndividualsAPI from "./individuals.js";
|
|
6
|
-
import { EnrolledIndividualBenefitResponse, IndividualBenefit, IndividualBenefitsSinglePage, IndividualEnrollManyParams, IndividualEnrolledIDsResponse, IndividualRetrieveManyBenefitsParams, IndividualUnenrollManyParams, Individuals, UnenrolledIndividualBenefitResponse } from "./individuals.js";
|
|
7
|
-
import {
|
|
4
|
+
import { EnrolledIndividualBenefitResponse, IndividualBenefit, IndividualBenefitsSinglePage, IndividualEnrollManyParams, IndividualEnrolledIDsParams, IndividualEnrolledIDsResponse, IndividualRetrieveManyBenefitsParams, IndividualUnenrollManyParams, Individuals, UnenrolledIndividualBenefitResponse } from "./individuals.js";
|
|
5
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
6
|
+
import { PagePromise, SinglePage } from "../../../core/pagination.js";
|
|
7
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
8
8
|
export declare class Benefits extends APIResource {
|
|
9
9
|
individuals: IndividualsAPI.Individuals;
|
|
10
10
|
/**
|
|
@@ -17,8 +17,7 @@ export declare class Benefits extends APIResource {
|
|
|
17
17
|
* await client.hris.benefits.create();
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
|
-
create(
|
|
21
|
-
create(options?: Core.RequestOptions): Core.APIPromise<CreateCompanyBenefitsResponse>;
|
|
20
|
+
create(params?: BenefitCreateParams | null | undefined, options?: RequestOptions): APIPromise<CreateCompanyBenefitsResponse>;
|
|
22
21
|
/**
|
|
23
22
|
* Lists deductions and contributions information for a given item
|
|
24
23
|
*
|
|
@@ -29,7 +28,7 @@ export declare class Benefits extends APIResource {
|
|
|
29
28
|
* );
|
|
30
29
|
* ```
|
|
31
30
|
*/
|
|
32
|
-
retrieve(
|
|
31
|
+
retrieve(benefitID: string, query?: BenefitRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<CompanyBenefit>;
|
|
33
32
|
/**
|
|
34
33
|
* Updates an existing company-wide deduction or contribution
|
|
35
34
|
*
|
|
@@ -39,8 +38,7 @@ export declare class Benefits extends APIResource {
|
|
|
39
38
|
* await client.hris.benefits.update('benefit_id');
|
|
40
39
|
* ```
|
|
41
40
|
*/
|
|
42
|
-
update(
|
|
43
|
-
update(benefitId: string, options?: Core.RequestOptions): Core.APIPromise<UpdateCompanyBenefitResponse>;
|
|
41
|
+
update(benefitID: string, params?: BenefitUpdateParams | null | undefined, options?: RequestOptions): APIPromise<UpdateCompanyBenefitResponse>;
|
|
44
42
|
/**
|
|
45
43
|
* List all company-wide deductions and contributions.
|
|
46
44
|
*
|
|
@@ -52,79 +50,74 @@ export declare class Benefits extends APIResource {
|
|
|
52
50
|
* }
|
|
53
51
|
* ```
|
|
54
52
|
*/
|
|
55
|
-
list(options?:
|
|
53
|
+
list(query?: BenefitListParams | null | undefined, options?: RequestOptions): PagePromise<CompanyBenefitsSinglePage, CompanyBenefit>;
|
|
56
54
|
/**
|
|
57
55
|
* Get deductions metadata
|
|
58
56
|
*
|
|
59
57
|
* @example
|
|
60
58
|
* ```ts
|
|
61
59
|
* // Automatically fetches more pages as needed.
|
|
62
|
-
* for await (const
|
|
60
|
+
* for await (const supportedBenefit of client.hris.benefits.listSupportedBenefits()) {
|
|
63
61
|
* // ...
|
|
64
62
|
* }
|
|
65
63
|
* ```
|
|
66
64
|
*/
|
|
67
|
-
listSupportedBenefits(options?:
|
|
65
|
+
listSupportedBenefits(query?: BenefitListSupportedBenefitsParams | null | undefined, options?: RequestOptions): PagePromise<SupportedBenefitsSinglePage, SupportedBenefit>;
|
|
68
66
|
}
|
|
69
|
-
export
|
|
70
|
-
|
|
71
|
-
export
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Contribution amount in cents (if `fixed`) or basis points (if `percent`).
|
|
76
|
-
*/
|
|
77
|
-
amount?: number | null;
|
|
78
|
-
/**
|
|
79
|
-
* Contribution type.
|
|
80
|
-
*/
|
|
81
|
-
type?: 'fixed' | 'percent' | null;
|
|
82
|
-
}
|
|
83
|
-
export interface BenefitFeaturesAndOperations {
|
|
84
|
-
supported_features?: BenefitFeaturesAndOperations.SupportedFeatures;
|
|
85
|
-
supported_operations?: SupportPerBenefitType;
|
|
86
|
-
}
|
|
87
|
-
export declare namespace BenefitFeaturesAndOperations {
|
|
88
|
-
interface SupportedFeatures {
|
|
67
|
+
export type CompanyBenefitsSinglePage = SinglePage<CompanyBenefit>;
|
|
68
|
+
export type SupportedBenefitsSinglePage = SinglePage<SupportedBenefit>;
|
|
69
|
+
export type BenefitContribution = BenefitContribution.UnionMember0 | BenefitContribution.UnionMember1 | BenefitContribution.UnionMember2;
|
|
70
|
+
export declare namespace BenefitContribution {
|
|
71
|
+
interface UnionMember0 {
|
|
89
72
|
/**
|
|
90
|
-
*
|
|
73
|
+
* Contribution amount in cents.
|
|
91
74
|
*/
|
|
92
|
-
|
|
75
|
+
amount: number;
|
|
93
76
|
/**
|
|
94
|
-
*
|
|
95
|
-
* true for retirement benefits.
|
|
77
|
+
* Fixed contribution type.
|
|
96
78
|
*/
|
|
97
|
-
|
|
79
|
+
type: 'fixed';
|
|
80
|
+
}
|
|
81
|
+
interface UnionMember1 {
|
|
98
82
|
/**
|
|
99
|
-
*
|
|
100
|
-
* supported.
|
|
83
|
+
* Contribution amount in basis points (1/100th of a percent).
|
|
101
84
|
*/
|
|
102
|
-
|
|
103
|
-
description?: string | null;
|
|
85
|
+
amount: number;
|
|
104
86
|
/**
|
|
105
|
-
*
|
|
106
|
-
* supported.
|
|
87
|
+
* Percentage contribution type.
|
|
107
88
|
*/
|
|
108
|
-
|
|
89
|
+
type: 'percent';
|
|
90
|
+
}
|
|
91
|
+
interface UnionMember2 {
|
|
109
92
|
/**
|
|
110
|
-
*
|
|
93
|
+
* Array of tier objects defining employer match tiers based on employee
|
|
94
|
+
* contribution thresholds.
|
|
111
95
|
*/
|
|
112
|
-
|
|
96
|
+
tiers: Array<UnionMember2.Tier>;
|
|
113
97
|
/**
|
|
114
|
-
*
|
|
115
|
-
* not supported for the benefit. This array only has values for HSA benefits.
|
|
98
|
+
* Tiered contribution type (only valid for company_contribution).
|
|
116
99
|
*/
|
|
117
|
-
|
|
100
|
+
type: 'tiered';
|
|
101
|
+
}
|
|
102
|
+
namespace UnionMember2 {
|
|
103
|
+
interface Tier {
|
|
104
|
+
match: number;
|
|
105
|
+
threshold: number;
|
|
106
|
+
}
|
|
118
107
|
}
|
|
119
108
|
}
|
|
109
|
+
export interface BenefitFeaturesAndOperations {
|
|
110
|
+
supported_features?: SupportedBenefit;
|
|
111
|
+
supported_operations?: SupportPerBenefitType;
|
|
112
|
+
}
|
|
120
113
|
/**
|
|
121
114
|
* The frequency of the benefit deduction/contribution.
|
|
122
115
|
*/
|
|
123
|
-
export type BenefitFrequency = '
|
|
116
|
+
export type BenefitFrequency = 'every_paycheck' | 'monthly' | 'one_time' | null;
|
|
124
117
|
/**
|
|
125
118
|
* Type of benefit.
|
|
126
119
|
*/
|
|
127
|
-
export type BenefitType = '401k' | '401k_roth' | '401k_loan' | '403b' | '403b_roth' | '
|
|
120
|
+
export type BenefitType = '457' | '401k' | '401k_roth' | '401k_loan' | '403b' | '403b_roth' | '457_roth' | 'commuter' | 'custom_post_tax' | 'custom_pre_tax' | 'fsa_dependent_care' | 'fsa_medical' | 'hsa_post' | 'hsa_pre' | 's125_dental' | 's125_medical' | 's125_vision' | 'simple' | 'simple_ira' | null;
|
|
128
121
|
/**
|
|
129
122
|
* Each benefit type and their supported features. If the benefit type is not
|
|
130
123
|
* supported, the property will be null
|
|
@@ -149,10 +142,6 @@ export interface CompanyBenefit {
|
|
|
149
142
|
* The id of the benefit.
|
|
150
143
|
*/
|
|
151
144
|
benefit_id: string;
|
|
152
|
-
/**
|
|
153
|
-
* The company match for this benefit.
|
|
154
|
-
*/
|
|
155
|
-
company_contribution: CompanyBenefit.CompanyContribution | null;
|
|
156
145
|
description: string | null;
|
|
157
146
|
/**
|
|
158
147
|
* The frequency of the benefit deduction/contribution.
|
|
@@ -162,19 +151,23 @@ export interface CompanyBenefit {
|
|
|
162
151
|
* Type of benefit.
|
|
163
152
|
*/
|
|
164
153
|
type: BenefitType | null;
|
|
154
|
+
/**
|
|
155
|
+
* The company match for this benefit.
|
|
156
|
+
*/
|
|
157
|
+
company_contribution?: CompanyBenefit.CompanyContribution | null;
|
|
165
158
|
}
|
|
166
159
|
export declare namespace CompanyBenefit {
|
|
167
160
|
/**
|
|
168
161
|
* The company match for this benefit.
|
|
169
162
|
*/
|
|
170
163
|
interface CompanyContribution {
|
|
171
|
-
tiers
|
|
172
|
-
type
|
|
164
|
+
tiers: Array<CompanyContribution.Tier>;
|
|
165
|
+
type: 'match';
|
|
173
166
|
}
|
|
174
167
|
namespace CompanyContribution {
|
|
175
168
|
interface Tier {
|
|
176
|
-
match
|
|
177
|
-
threshold
|
|
169
|
+
match: number;
|
|
170
|
+
threshold: number;
|
|
178
171
|
}
|
|
179
172
|
}
|
|
180
173
|
}
|
|
@@ -193,32 +186,32 @@ export interface SupportedBenefit {
|
|
|
193
186
|
/**
|
|
194
187
|
* Whether the provider supports an annual maximum for this benefit.
|
|
195
188
|
*/
|
|
196
|
-
annual_maximum
|
|
197
|
-
/**
|
|
198
|
-
* Whether the provider supports catch up for this benefit. This field will only be
|
|
199
|
-
* true for retirement benefits.
|
|
200
|
-
*/
|
|
201
|
-
catch_up?: boolean | null;
|
|
189
|
+
annual_maximum: boolean | null;
|
|
202
190
|
/**
|
|
203
191
|
* Supported contribution types. An empty array indicates contributions are not
|
|
204
192
|
* supported.
|
|
205
193
|
*/
|
|
206
|
-
company_contribution
|
|
207
|
-
description
|
|
194
|
+
company_contribution: Array<'fixed' | 'percent' | 'tiered' | null> | null;
|
|
195
|
+
description: string | null;
|
|
208
196
|
/**
|
|
209
197
|
* Supported deduction types. An empty array indicates deductions are not
|
|
210
198
|
* supported.
|
|
211
199
|
*/
|
|
212
|
-
employee_deduction
|
|
200
|
+
employee_deduction: Array<'fixed' | 'percent' | null> | null;
|
|
213
201
|
/**
|
|
214
202
|
* The list of frequencies supported by the provider for this benefit
|
|
215
203
|
*/
|
|
216
|
-
frequencies
|
|
204
|
+
frequencies: Array<BenefitFrequency | null>;
|
|
205
|
+
/**
|
|
206
|
+
* Whether the provider supports catch up for this benefit. This field will only be
|
|
207
|
+
* true for retirement benefits.
|
|
208
|
+
*/
|
|
209
|
+
catch_up?: boolean | null;
|
|
217
210
|
/**
|
|
218
211
|
* Whether the provider supports HSA contribution limits. Empty if this feature is
|
|
219
212
|
* not supported for the benefit. This array only has values for HSA benefits.
|
|
220
213
|
*/
|
|
221
|
-
hsa_contribution_limit?: Array<'
|
|
214
|
+
hsa_contribution_limit?: Array<'family' | 'individual' | null> | null;
|
|
222
215
|
}
|
|
223
216
|
export interface UpdateCompanyBenefitResponse {
|
|
224
217
|
/**
|
|
@@ -227,58 +220,31 @@ export interface UpdateCompanyBenefitResponse {
|
|
|
227
220
|
benefit_id: string;
|
|
228
221
|
job_id: string;
|
|
229
222
|
}
|
|
230
|
-
export interface BenefitListSupportedBenefitsResponse {
|
|
231
|
-
/**
|
|
232
|
-
* Whether the provider supports an annual maximum for this benefit.
|
|
233
|
-
*/
|
|
234
|
-
annual_maximum?: boolean | null;
|
|
235
|
-
/**
|
|
236
|
-
* Whether the provider supports catch up for this benefit. This field will only be
|
|
237
|
-
* true for retirement benefits.
|
|
238
|
-
*/
|
|
239
|
-
catch_up?: boolean | null;
|
|
240
|
-
/**
|
|
241
|
-
* Supported contribution types. An empty array indicates contributions are not
|
|
242
|
-
* supported.
|
|
243
|
-
*/
|
|
244
|
-
company_contribution?: Array<'fixed' | 'percent' | null> | null;
|
|
245
|
-
description?: string | null;
|
|
246
|
-
/**
|
|
247
|
-
* Supported deduction types. An empty array indicates deductions are not
|
|
248
|
-
* supported.
|
|
249
|
-
*/
|
|
250
|
-
employee_deduction?: Array<'fixed' | 'percent' | null> | null;
|
|
251
|
-
/**
|
|
252
|
-
* The list of frequencies supported by the provider for this benefit
|
|
253
|
-
*/
|
|
254
|
-
frequencies?: Array<BenefitFrequency | null>;
|
|
255
|
-
/**
|
|
256
|
-
* Whether the provider supports HSA contribution limits. Empty if this feature is
|
|
257
|
-
* not supported for the benefit. This array only has values for HSA benefits.
|
|
258
|
-
*/
|
|
259
|
-
hsa_contribution_limit?: Array<'individual' | 'family' | null> | null;
|
|
260
|
-
}
|
|
261
223
|
/**
|
|
262
224
|
* @deprecated use `BenefitContribution` instead
|
|
263
225
|
*/
|
|
264
226
|
export type BenfitContribution = BenefitContribution | null;
|
|
265
227
|
export interface BenefitCreateParams {
|
|
266
228
|
/**
|
|
267
|
-
* The
|
|
229
|
+
* Query param: The entity IDs to specify which entities' data to access.
|
|
230
|
+
*/
|
|
231
|
+
entity_ids?: Array<string>;
|
|
232
|
+
/**
|
|
233
|
+
* Body param: The company match for this benefit.
|
|
268
234
|
*/
|
|
269
235
|
company_contribution?: BenefitCreateParams.CompanyContribution | null;
|
|
270
236
|
/**
|
|
271
|
-
* Name of the benefit as it appears in the provider and pay
|
|
272
|
-
* limiting this to <30 characters due to limitations in
|
|
273
|
-
* Justworks).
|
|
237
|
+
* Body param: Name of the benefit as it appears in the provider and pay
|
|
238
|
+
* statements. Recommend limiting this to <30 characters due to limitations in
|
|
239
|
+
* specific providers (e.g. Justworks).
|
|
274
240
|
*/
|
|
275
241
|
description?: string;
|
|
276
242
|
/**
|
|
277
|
-
* The frequency of the benefit deduction/contribution.
|
|
243
|
+
* Body param: The frequency of the benefit deduction/contribution.
|
|
278
244
|
*/
|
|
279
245
|
frequency?: BenefitFrequency | null;
|
|
280
246
|
/**
|
|
281
|
-
* Type of benefit.
|
|
247
|
+
* Body param: Type of benefit.
|
|
282
248
|
*/
|
|
283
249
|
type?: BenefitType | null;
|
|
284
250
|
}
|
|
@@ -287,24 +253,46 @@ export declare namespace BenefitCreateParams {
|
|
|
287
253
|
* The company match for this benefit.
|
|
288
254
|
*/
|
|
289
255
|
interface CompanyContribution {
|
|
290
|
-
tiers
|
|
291
|
-
type
|
|
256
|
+
tiers: Array<CompanyContribution.Tier>;
|
|
257
|
+
type: 'match';
|
|
292
258
|
}
|
|
293
259
|
namespace CompanyContribution {
|
|
294
260
|
interface Tier {
|
|
295
|
-
match
|
|
296
|
-
threshold
|
|
261
|
+
match: number;
|
|
262
|
+
threshold: number;
|
|
297
263
|
}
|
|
298
264
|
}
|
|
299
265
|
}
|
|
266
|
+
export interface BenefitRetrieveParams {
|
|
267
|
+
/**
|
|
268
|
+
* The entity IDs to specify which entities' data to access.
|
|
269
|
+
*/
|
|
270
|
+
entity_ids?: Array<string>;
|
|
271
|
+
}
|
|
300
272
|
export interface BenefitUpdateParams {
|
|
301
273
|
/**
|
|
302
|
-
*
|
|
274
|
+
* Query param: The entity IDs to specify which entities' data to access.
|
|
275
|
+
*/
|
|
276
|
+
entity_ids?: Array<string>;
|
|
277
|
+
/**
|
|
278
|
+
* Body param: Updated name or description.
|
|
303
279
|
*/
|
|
304
280
|
description?: string;
|
|
305
281
|
}
|
|
282
|
+
export interface BenefitListParams {
|
|
283
|
+
/**
|
|
284
|
+
* The entity IDs to specify which entities' data to access.
|
|
285
|
+
*/
|
|
286
|
+
entity_ids?: Array<string>;
|
|
287
|
+
}
|
|
288
|
+
export interface BenefitListSupportedBenefitsParams {
|
|
289
|
+
/**
|
|
290
|
+
* The entity IDs to specify which entities' data to access.
|
|
291
|
+
*/
|
|
292
|
+
entity_ids?: Array<string>;
|
|
293
|
+
}
|
|
306
294
|
export declare namespace Benefits {
|
|
307
|
-
export { type BenefitContribution as BenefitContribution, type BenefitFeaturesAndOperations as BenefitFeaturesAndOperations, type BenefitFrequency as BenefitFrequency, type BenefitType as BenefitType, type BenefitsSupport as BenefitsSupport, type CompanyBenefit as CompanyBenefit, type CreateCompanyBenefitsResponse as CreateCompanyBenefitsResponse, type SupportPerBenefitType as SupportPerBenefitType, type SupportedBenefit as SupportedBenefit, type UpdateCompanyBenefitResponse as UpdateCompanyBenefitResponse, type
|
|
308
|
-
export { Individuals as Individuals, type EnrolledIndividualBenefitResponse as EnrolledIndividualBenefitResponse, type IndividualBenefit as IndividualBenefit, type UnenrolledIndividualBenefitResponse as UnenrolledIndividualBenefitResponse, type IndividualEnrolledIDsResponse as IndividualEnrolledIDsResponse, IndividualBenefitsSinglePage as IndividualBenefitsSinglePage, type IndividualEnrollManyParams as IndividualEnrollManyParams, type IndividualRetrieveManyBenefitsParams as IndividualRetrieveManyBenefitsParams, type IndividualUnenrollManyParams as IndividualUnenrollManyParams, };
|
|
295
|
+
export { type BenefitContribution as BenefitContribution, type BenefitFeaturesAndOperations as BenefitFeaturesAndOperations, type BenefitFrequency as BenefitFrequency, type BenefitType as BenefitType, type BenefitsSupport as BenefitsSupport, type CompanyBenefit as CompanyBenefit, type CreateCompanyBenefitsResponse as CreateCompanyBenefitsResponse, type SupportPerBenefitType as SupportPerBenefitType, type SupportedBenefit as SupportedBenefit, type UpdateCompanyBenefitResponse as UpdateCompanyBenefitResponse, type BenfitContribution as BenfitContribution, type CompanyBenefitsSinglePage as CompanyBenefitsSinglePage, type SupportedBenefitsSinglePage as SupportedBenefitsSinglePage, type BenefitCreateParams as BenefitCreateParams, type BenefitRetrieveParams as BenefitRetrieveParams, type BenefitUpdateParams as BenefitUpdateParams, type BenefitListParams as BenefitListParams, type BenefitListSupportedBenefitsParams as BenefitListSupportedBenefitsParams, };
|
|
296
|
+
export { Individuals as Individuals, type EnrolledIndividualBenefitResponse as EnrolledIndividualBenefitResponse, type IndividualBenefit as IndividualBenefit, type UnenrolledIndividualBenefitResponse as UnenrolledIndividualBenefitResponse, type IndividualEnrolledIDsResponse as IndividualEnrolledIDsResponse, type IndividualBenefitsSinglePage as IndividualBenefitsSinglePage, type IndividualEnrollManyParams as IndividualEnrollManyParams, type IndividualEnrolledIDsParams as IndividualEnrolledIDsParams, type IndividualRetrieveManyBenefitsParams as IndividualRetrieveManyBenefitsParams, type IndividualUnenrollManyParams as IndividualUnenrollManyParams, };
|
|
309
297
|
}
|
|
310
298
|
//# sourceMappingURL=benefits.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benefits.d.ts","sourceRoot":"","sources":["../../../src/resources/hris/benefits/benefits.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"benefits.d.ts","sourceRoot":"","sources":["../../../src/resources/hris/benefits/benefits.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,cAAc;OACnB,EACL,iCAAiC,EACjC,iBAAiB,EACjB,4BAA4B,EAC5B,0BAA0B,EAC1B,2BAA2B,EAC3B,6BAA6B,EAC7B,oCAAoC,EACpC,4BAA4B,EAC5B,WAAW,EACX,mCAAmC,EACpC;OACM,EAAE,UAAU,EAAE;OACd,EAAE,WAAW,EAAE,UAAU,EAAE;OAC3B,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;IAEvF;;;;;;;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EACL,WAAW,IAAI,WAAW,EAC1B,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
|
|
@@ -1,45 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
-
if (k2 === undefined) k2 = k;
|
|
5
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
-
}
|
|
9
|
-
Object.defineProperty(o, k2, desc);
|
|
10
|
-
}) : (function(o, m, k, k2) {
|
|
11
|
-
if (k2 === undefined) k2 = k;
|
|
12
|
-
o[k2] = m[k];
|
|
13
|
-
}));
|
|
14
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
-
}) : function(o, v) {
|
|
17
|
-
o["default"] = v;
|
|
18
|
-
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
20
|
-
if (mod && mod.__esModule) return mod;
|
|
21
|
-
var result = {};
|
|
22
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
-
__setModuleDefault(result, mod);
|
|
24
|
-
return result;
|
|
25
|
-
};
|
|
26
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.
|
|
28
|
-
const
|
|
29
|
-
const
|
|
30
|
-
const IndividualsAPI = __importStar(require("./individuals.js"));
|
|
4
|
+
exports.Benefits = void 0;
|
|
5
|
+
const tslib_1 = require("../../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../../core/resource.js");
|
|
7
|
+
const IndividualsAPI = tslib_1.__importStar(require("./individuals.js"));
|
|
31
8
|
const individuals_1 = require("./individuals.js");
|
|
32
|
-
const pagination_1 = require("../../../pagination.js");
|
|
9
|
+
const pagination_1 = require("../../../core/pagination.js");
|
|
10
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
33
11
|
class Benefits extends resource_1.APIResource {
|
|
34
12
|
constructor() {
|
|
35
13
|
super(...arguments);
|
|
36
14
|
this.individuals = new IndividualsAPI.Individuals(this._client);
|
|
37
15
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Creates a new company-wide deduction or contribution. Please use the
|
|
18
|
+
* `/providers` endpoint to view available types for each provider.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const createCompanyBenefitsResponse =
|
|
23
|
+
* await client.hris.benefits.create();
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
create(params = {}, options) {
|
|
27
|
+
const { entity_ids, ...body } = params ?? {};
|
|
28
|
+
return this._client.post('/employer/benefits', { query: { entity_ids }, body, ...options });
|
|
43
29
|
}
|
|
44
30
|
/**
|
|
45
31
|
* Lists deductions and contributions information for a given item
|
|
@@ -51,14 +37,25 @@ class Benefits extends resource_1.APIResource {
|
|
|
51
37
|
* );
|
|
52
38
|
* ```
|
|
53
39
|
*/
|
|
54
|
-
retrieve(
|
|
55
|
-
return this._client.get(`/employer/benefits/${
|
|
40
|
+
retrieve(benefitID, query = {}, options) {
|
|
41
|
+
return this._client.get((0, path_1.path) `/employer/benefits/${benefitID}`, { query, ...options });
|
|
56
42
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
43
|
+
/**
|
|
44
|
+
* Updates an existing company-wide deduction or contribution
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts
|
|
48
|
+
* const updateCompanyBenefitResponse =
|
|
49
|
+
* await client.hris.benefits.update('benefit_id');
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
update(benefitID, params = {}, options) {
|
|
53
|
+
const { entity_ids, ...body } = params ?? {};
|
|
54
|
+
return this._client.post((0, path_1.path) `/employer/benefits/${benefitID}`, {
|
|
55
|
+
query: { entity_ids },
|
|
56
|
+
body,
|
|
57
|
+
...options,
|
|
58
|
+
});
|
|
62
59
|
}
|
|
63
60
|
/**
|
|
64
61
|
* List all company-wide deductions and contributions.
|
|
@@ -71,8 +68,8 @@ class Benefits extends resource_1.APIResource {
|
|
|
71
68
|
* }
|
|
72
69
|
* ```
|
|
73
70
|
*/
|
|
74
|
-
list(options) {
|
|
75
|
-
return this._client.getAPIList('/employer/benefits',
|
|
71
|
+
list(query = {}, options) {
|
|
72
|
+
return this._client.getAPIList('/employer/benefits', (pagination_1.SinglePage), { query, ...options });
|
|
76
73
|
}
|
|
77
74
|
/**
|
|
78
75
|
* Get deductions metadata
|
|
@@ -80,24 +77,18 @@ class Benefits extends resource_1.APIResource {
|
|
|
80
77
|
* @example
|
|
81
78
|
* ```ts
|
|
82
79
|
* // Automatically fetches more pages as needed.
|
|
83
|
-
* for await (const
|
|
80
|
+
* for await (const supportedBenefit of client.hris.benefits.listSupportedBenefits()) {
|
|
84
81
|
* // ...
|
|
85
82
|
* }
|
|
86
83
|
* ```
|
|
87
84
|
*/
|
|
88
|
-
listSupportedBenefits(options) {
|
|
89
|
-
return this._client.getAPIList('/employer/benefits/meta',
|
|
85
|
+
listSupportedBenefits(query = {}, options) {
|
|
86
|
+
return this._client.getAPIList('/employer/benefits/meta', (pagination_1.SinglePage), {
|
|
87
|
+
query,
|
|
88
|
+
...options,
|
|
89
|
+
});
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
exports.Benefits = Benefits;
|
|
93
|
-
class CompanyBenefitsSinglePage extends pagination_1.SinglePage {
|
|
94
|
-
}
|
|
95
|
-
exports.CompanyBenefitsSinglePage = CompanyBenefitsSinglePage;
|
|
96
|
-
class BenefitListSupportedBenefitsResponsesSinglePage extends pagination_1.SinglePage {
|
|
97
|
-
}
|
|
98
|
-
exports.BenefitListSupportedBenefitsResponsesSinglePage = BenefitListSupportedBenefitsResponsesSinglePage;
|
|
99
|
-
Benefits.CompanyBenefitsSinglePage = CompanyBenefitsSinglePage;
|
|
100
|
-
Benefits.BenefitListSupportedBenefitsResponsesSinglePage = BenefitListSupportedBenefitsResponsesSinglePage;
|
|
101
93
|
Benefits.Individuals = individuals_1.Individuals;
|
|
102
|
-
Benefits.IndividualBenefitsSinglePage = individuals_1.IndividualBenefitsSinglePage;
|
|
103
94
|
//# sourceMappingURL=benefits.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benefits.js","sourceRoot":"","sources":["../../../src/resources/hris/benefits/benefits.ts"],"names":[],"mappings":";AAAA,sFAAsF
|
|
1
|
+
{"version":3,"file":"benefits.js","sourceRoot":"","sources":["../../../src/resources/hris/benefits/benefits.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAErD,yEAAgD;AAChD,kDAWuB;AAEvB,4DAAmE;AAEnE,0DAAoD;AAEpD,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAkGzF,CAAC;IAhGC;;;;;;;;;OASG;IACH,MAAM,CACJ,SAAiD,EAAE,EACnD,OAAwB;QAEx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