@rippling/rippling-sdk 0.2.0-alpha.20
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/LICENSE +201 -0
- 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/client.d.mts +308 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +308 -0
- package/client.d.ts.map +1 -0
- package/client.js +592 -0
- package/client.js.map +1 -0
- package/client.mjs +588 -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 +50 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +50 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +104 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +98 -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 +2 -0
- package/error.d.ts.map +1 -0
- package/error.js +6 -0
- package/error.js.map +1 -0
- package/error.mjs +2 -0
- package/error.mjs.map +1 -0
- package/functions.d.mts +68 -0
- package/functions.d.mts.map +1 -0
- package/functions.d.ts +68 -0
- package/functions.d.ts.map +1 -0
- package/functions.js +48 -0
- package/functions.js.map +1 -0
- package/functions.mjs +40 -0
- package/functions.mjs.map +1 -0
- package/index.d.mts +8 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +8 -0
- package/index.d.ts.map +1 -0
- package/index.js +34 -0
- package/index.js.map +1 -0
- package/index.mjs +9 -0
- package/index.mjs.map +1 -0
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +20 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +20 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +79 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +74 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +35 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +32 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/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 +158 -0
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +2 -0
- package/pagination.mjs.map +1 -0
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +2 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +6 -0
- package/resource.js.map +1 -0
- package/resource.mjs +2 -0
- package/resource.mjs.map +1 -0
- package/resources/business-partner-groups.d.mts +94 -0
- package/resources/business-partner-groups.d.mts.map +1 -0
- package/resources/business-partner-groups.d.ts +94 -0
- package/resources/business-partner-groups.d.ts.map +1 -0
- package/resources/business-partner-groups.js +46 -0
- package/resources/business-partner-groups.js.map +1 -0
- package/resources/business-partner-groups.mjs +42 -0
- package/resources/business-partner-groups.mjs.map +1 -0
- package/resources/business-partners.d.mts +132 -0
- package/resources/business-partners.d.mts.map +1 -0
- package/resources/business-partners.d.ts +132 -0
- package/resources/business-partners.d.ts.map +1 -0
- package/resources/business-partners.js +47 -0
- package/resources/business-partners.js.map +1 -0
- package/resources/business-partners.mjs +43 -0
- package/resources/business-partners.mjs.map +1 -0
- package/resources/candidate-applications.d.mts +63 -0
- package/resources/candidate-applications.d.mts.map +1 -0
- package/resources/candidate-applications.d.ts +63 -0
- package/resources/candidate-applications.d.ts.map +1 -0
- package/resources/candidate-applications.js +20 -0
- package/resources/candidate-applications.js.map +1 -0
- package/resources/candidate-applications.mjs +16 -0
- package/resources/candidate-applications.mjs.map +1 -0
- package/resources/candidates.d.mts +54 -0
- package/resources/candidates.d.mts.map +1 -0
- package/resources/candidates.d.ts +54 -0
- package/resources/candidates.d.ts.map +1 -0
- package/resources/candidates.js +22 -0
- package/resources/candidates.js.map +1 -0
- package/resources/candidates.mjs +18 -0
- package/resources/candidates.mjs.map +1 -0
- package/resources/companies.d.mts +82 -0
- package/resources/companies.d.mts.map +1 -0
- package/resources/companies.d.ts +82 -0
- package/resources/companies.d.ts.map +1 -0
- package/resources/companies.js +20 -0
- package/resources/companies.js.map +1 -0
- package/resources/companies.mjs +16 -0
- package/resources/companies.mjs.map +1 -0
- package/resources/compensations.d.mts +250 -0
- package/resources/compensations.d.mts.map +1 -0
- package/resources/compensations.d.ts +250 -0
- package/resources/compensations.d.ts.map +1 -0
- package/resources/compensations.js +27 -0
- package/resources/compensations.js.map +1 -0
- package/resources/compensations.mjs +23 -0
- package/resources/compensations.mjs.map +1 -0
- package/resources/custom-fields.d.mts +50 -0
- package/resources/custom-fields.d.mts.map +1 -0
- package/resources/custom-fields.d.ts +50 -0
- package/resources/custom-fields.d.ts.map +1 -0
- package/resources/custom-fields.js +22 -0
- package/resources/custom-fields.js.map +1 -0
- package/resources/custom-fields.mjs +18 -0
- package/resources/custom-fields.mjs.map +1 -0
- package/resources/custom-objects/custom-objects.d.mts +103 -0
- package/resources/custom-objects/custom-objects.d.mts.map +1 -0
- package/resources/custom-objects/custom-objects.d.ts +103 -0
- package/resources/custom-objects/custom-objects.d.ts.map +1 -0
- package/resources/custom-objects/custom-objects.js +59 -0
- package/resources/custom-objects/custom-objects.js.map +1 -0
- package/resources/custom-objects/custom-objects.mjs +54 -0
- package/resources/custom-objects/custom-objects.mjs.map +1 -0
- package/resources/custom-objects/fields.d.mts +113 -0
- package/resources/custom-objects/fields.d.mts.map +1 -0
- package/resources/custom-objects/fields.d.ts +113 -0
- package/resources/custom-objects/fields.d.ts.map +1 -0
- package/resources/custom-objects/fields.js +50 -0
- package/resources/custom-objects/fields.js.map +1 -0
- package/resources/custom-objects/fields.mjs +46 -0
- package/resources/custom-objects/fields.mjs.map +1 -0
- package/resources/custom-objects/index.d.mts +4 -0
- package/resources/custom-objects/index.d.mts.map +1 -0
- package/resources/custom-objects/index.d.ts +4 -0
- package/resources/custom-objects/index.d.ts.map +1 -0
- package/resources/custom-objects/index.js +11 -0
- package/resources/custom-objects/index.js.map +1 -0
- package/resources/custom-objects/index.mjs +5 -0
- package/resources/custom-objects/index.mjs.map +1 -0
- package/resources/custom-objects/records.d.mts +143 -0
- package/resources/custom-objects/records.d.mts.map +1 -0
- package/resources/custom-objects/records.d.ts +143 -0
- package/resources/custom-objects/records.d.ts.map +1 -0
- package/resources/custom-objects/records.js +93 -0
- package/resources/custom-objects/records.js.map +1 -0
- package/resources/custom-objects/records.mjs +89 -0
- package/resources/custom-objects/records.mjs.map +1 -0
- package/resources/custom-objects.d.mts +2 -0
- package/resources/custom-objects.d.mts.map +1 -0
- package/resources/custom-objects.d.ts +2 -0
- package/resources/custom-objects.d.ts.map +1 -0
- package/resources/custom-objects.js +6 -0
- package/resources/custom-objects.js.map +1 -0
- package/resources/custom-objects.mjs +3 -0
- package/resources/custom-objects.mjs.map +1 -0
- package/resources/departments.d.mts +80 -0
- package/resources/departments.d.mts.map +1 -0
- package/resources/departments.d.ts +80 -0
- package/resources/departments.d.ts.map +1 -0
- package/resources/departments.js +27 -0
- package/resources/departments.js.map +1 -0
- package/resources/departments.mjs +23 -0
- package/resources/departments.mjs.map +1 -0
- package/resources/employment-types.d.mts +77 -0
- package/resources/employment-types.d.mts.map +1 -0
- package/resources/employment-types.d.ts +77 -0
- package/resources/employment-types.d.ts.map +1 -0
- package/resources/employment-types.js +29 -0
- package/resources/employment-types.js.map +1 -0
- package/resources/employment-types.mjs +25 -0
- package/resources/employment-types.mjs.map +1 -0
- package/resources/entitlements.d.mts +30 -0
- package/resources/entitlements.d.mts.map +1 -0
- package/resources/entitlements.d.ts +30 -0
- package/resources/entitlements.d.ts.map +1 -0
- package/resources/entitlements.js +18 -0
- package/resources/entitlements.js.map +1 -0
- package/resources/entitlements.mjs +14 -0
- package/resources/entitlements.mjs.map +1 -0
- package/resources/functions/deployments.d.mts +145 -0
- package/resources/functions/deployments.d.mts.map +1 -0
- package/resources/functions/deployments.d.ts +145 -0
- package/resources/functions/deployments.d.ts.map +1 -0
- package/resources/functions/deployments.js +40 -0
- package/resources/functions/deployments.js.map +1 -0
- package/resources/functions/deployments.mjs +36 -0
- package/resources/functions/deployments.mjs.map +1 -0
- package/resources/functions/executions.d.mts +188 -0
- package/resources/functions/executions.d.mts.map +1 -0
- package/resources/functions/executions.d.ts +188 -0
- package/resources/functions/executions.d.ts.map +1 -0
- package/resources/functions/executions.js +42 -0
- package/resources/functions/executions.js.map +1 -0
- package/resources/functions/executions.mjs +38 -0
- package/resources/functions/executions.mjs.map +1 -0
- package/resources/functions/functions.d.mts +129 -0
- package/resources/functions/functions.d.mts.map +1 -0
- package/resources/functions/functions.d.ts +129 -0
- package/resources/functions/functions.d.ts.map +1 -0
- package/resources/functions/functions.js +56 -0
- package/resources/functions/functions.js.map +1 -0
- package/resources/functions/functions.mjs +51 -0
- package/resources/functions/functions.mjs.map +1 -0
- package/resources/functions/index.d.mts +4 -0
- package/resources/functions/index.d.mts.map +1 -0
- package/resources/functions/index.d.ts +4 -0
- package/resources/functions/index.d.ts.map +1 -0
- package/resources/functions/index.js +11 -0
- package/resources/functions/index.js.map +1 -0
- package/resources/functions/index.mjs +5 -0
- package/resources/functions/index.mjs.map +1 -0
- package/resources/functions.d.mts +2 -0
- package/resources/functions.d.mts.map +1 -0
- package/resources/functions.d.ts +2 -0
- package/resources/functions.d.ts.map +1 -0
- package/resources/functions.js +6 -0
- package/resources/functions.js.map +1 -0
- package/resources/functions.mjs +3 -0
- package/resources/functions.mjs.map +1 -0
- package/resources/headcount-positions.d.mts +1059 -0
- package/resources/headcount-positions.d.mts.map +1 -0
- package/resources/headcount-positions.d.ts +1059 -0
- package/resources/headcount-positions.d.ts.map +1 -0
- package/resources/headcount-positions.js +41 -0
- package/resources/headcount-positions.js.map +1 -0
- package/resources/headcount-positions.mjs +37 -0
- package/resources/headcount-positions.mjs.map +1 -0
- package/resources/headcount-priorities.d.mts +65 -0
- package/resources/headcount-priorities.d.mts.map +1 -0
- package/resources/headcount-priorities.d.ts +65 -0
- package/resources/headcount-priorities.d.ts.map +1 -0
- package/resources/headcount-priorities.js +29 -0
- package/resources/headcount-priorities.js.map +1 -0
- package/resources/headcount-priorities.mjs +25 -0
- package/resources/headcount-priorities.mjs.map +1 -0
- package/resources/index.d.mts +42 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +42 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +87 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +43 -0
- package/resources/index.mjs.map +1 -0
- package/resources/job-assignments.d.mts +161 -0
- package/resources/job-assignments.d.mts.map +1 -0
- package/resources/job-assignments.d.ts +161 -0
- package/resources/job-assignments.d.ts.map +1 -0
- package/resources/job-assignments.js +38 -0
- package/resources/job-assignments.js.map +1 -0
- package/resources/job-assignments.mjs +34 -0
- package/resources/job-assignments.mjs.map +1 -0
- package/resources/job-codes.d.mts +358 -0
- package/resources/job-codes.d.mts.map +1 -0
- package/resources/job-codes.d.ts +358 -0
- package/resources/job-codes.d.ts.map +1 -0
- package/resources/job-codes.js +61 -0
- package/resources/job-codes.js.map +1 -0
- package/resources/job-codes.mjs +57 -0
- package/resources/job-codes.mjs.map +1 -0
- package/resources/job-dimensions.d.mts +145 -0
- package/resources/job-dimensions.d.mts.map +1 -0
- package/resources/job-dimensions.d.ts +145 -0
- package/resources/job-dimensions.d.ts.map +1 -0
- package/resources/job-dimensions.js +49 -0
- package/resources/job-dimensions.js.map +1 -0
- package/resources/job-dimensions.mjs +45 -0
- package/resources/job-dimensions.mjs.map +1 -0
- package/resources/job-functions.d.mts +65 -0
- package/resources/job-functions.d.mts.map +1 -0
- package/resources/job-functions.d.ts +65 -0
- package/resources/job-functions.d.ts.map +1 -0
- package/resources/job-functions.js +29 -0
- package/resources/job-functions.js.map +1 -0
- package/resources/job-functions.mjs +25 -0
- package/resources/job-functions.mjs.map +1 -0
- package/resources/job-pay-rate-exceptions.d.mts +91 -0
- package/resources/job-pay-rate-exceptions.d.mts.map +1 -0
- package/resources/job-pay-rate-exceptions.d.ts +91 -0
- package/resources/job-pay-rate-exceptions.d.ts.map +1 -0
- package/resources/job-pay-rate-exceptions.js +41 -0
- package/resources/job-pay-rate-exceptions.js.map +1 -0
- package/resources/job-pay-rate-exceptions.mjs +37 -0
- package/resources/job-pay-rate-exceptions.mjs.map +1 -0
- package/resources/job-requisitions.d.mts +42 -0
- package/resources/job-requisitions.d.mts.map +1 -0
- package/resources/job-requisitions.d.ts +42 -0
- package/resources/job-requisitions.d.ts.map +1 -0
- package/resources/job-requisitions.js +19 -0
- package/resources/job-requisitions.js.map +1 -0
- package/resources/job-requisitions.mjs +15 -0
- package/resources/job-requisitions.mjs.map +1 -0
- package/resources/kiosk-badges.d.mts +247 -0
- package/resources/kiosk-badges.d.mts.map +1 -0
- package/resources/kiosk-badges.d.ts +247 -0
- package/resources/kiosk-badges.d.ts.map +1 -0
- package/resources/kiosk-badges.js +53 -0
- package/resources/kiosk-badges.js.map +1 -0
- package/resources/kiosk-badges.mjs +49 -0
- package/resources/kiosk-badges.mjs.map +1 -0
- package/resources/leave-balances.d.mts +88 -0
- package/resources/leave-balances.d.mts.map +1 -0
- package/resources/leave-balances.d.ts +88 -0
- package/resources/leave-balances.d.ts.map +1 -0
- package/resources/leave-balances.js +28 -0
- package/resources/leave-balances.js.map +1 -0
- package/resources/leave-balances.mjs +24 -0
- package/resources/leave-balances.mjs.map +1 -0
- package/resources/leave-requests.d.mts +731 -0
- package/resources/leave-requests.d.mts.map +1 -0
- package/resources/leave-requests.d.ts +731 -0
- package/resources/leave-requests.d.ts.map +1 -0
- package/resources/leave-requests.js +44 -0
- package/resources/leave-requests.js.map +1 -0
- package/resources/leave-requests.mjs +40 -0
- package/resources/leave-requests.mjs.map +1 -0
- package/resources/leave-types.d.mts +67 -0
- package/resources/leave-types.d.mts.map +1 -0
- package/resources/leave-types.d.ts +67 -0
- package/resources/leave-types.d.ts.map +1 -0
- package/resources/leave-types.js +27 -0
- package/resources/leave-types.js.map +1 -0
- package/resources/leave-types.mjs +23 -0
- package/resources/leave-types.mjs.map +1 -0
- package/resources/legal-entities.d.mts +117 -0
- package/resources/legal-entities.d.mts.map +1 -0
- package/resources/legal-entities.d.ts +117 -0
- package/resources/legal-entities.d.ts.map +1 -0
- package/resources/legal-entities.js +27 -0
- package/resources/legal-entities.js.map +1 -0
- package/resources/legal-entities.mjs +23 -0
- package/resources/legal-entities.mjs.map +1 -0
- package/resources/levels.d.mts +91 -0
- package/resources/levels.d.mts.map +1 -0
- package/resources/levels.d.ts +91 -0
- package/resources/levels.d.ts.map +1 -0
- package/resources/levels.js +27 -0
- package/resources/levels.js.map +1 -0
- package/resources/levels.mjs +23 -0
- package/resources/levels.mjs.map +1 -0
- package/resources/location-factors.d.mts +111 -0
- package/resources/location-factors.d.mts.map +1 -0
- package/resources/location-factors.d.ts +111 -0
- package/resources/location-factors.d.ts.map +1 -0
- package/resources/location-factors.js +29 -0
- package/resources/location-factors.js.map +1 -0
- package/resources/location-factors.mjs +25 -0
- package/resources/location-factors.mjs.map +1 -0
- package/resources/object-categories.d.mts +63 -0
- package/resources/object-categories.d.mts.map +1 -0
- package/resources/object-categories.d.ts +63 -0
- package/resources/object-categories.d.ts.map +1 -0
- package/resources/object-categories.js +47 -0
- package/resources/object-categories.js.map +1 -0
- package/resources/object-categories.mjs +43 -0
- package/resources/object-categories.mjs.map +1 -0
- package/resources/schedules.d.mts +139 -0
- package/resources/schedules.d.mts.map +1 -0
- package/resources/schedules.d.ts +139 -0
- package/resources/schedules.d.ts.map +1 -0
- package/resources/schedules.js +27 -0
- package/resources/schedules.js.map +1 -0
- package/resources/schedules.mjs +23 -0
- package/resources/schedules.mjs.map +1 -0
- package/resources/shared.d.mts +55 -0
- package/resources/shared.d.mts.map +1 -0
- package/resources/shared.d.ts +55 -0
- package/resources/shared.d.ts.map +1 -0
- package/resources/shared.js +4 -0
- package/resources/shared.js.map +1 -0
- package/resources/shared.mjs +3 -0
- package/resources/shared.mjs.map +1 -0
- package/resources/shift-inputs.d.mts +291 -0
- package/resources/shift-inputs.d.mts.map +1 -0
- package/resources/shift-inputs.d.ts +291 -0
- package/resources/shift-inputs.d.ts.map +1 -0
- package/resources/shift-inputs.js +53 -0
- package/resources/shift-inputs.js.map +1 -0
- package/resources/shift-inputs.mjs +49 -0
- package/resources/shift-inputs.mjs.map +1 -0
- package/resources/shiftassignments.d.mts +466 -0
- package/resources/shiftassignments.d.mts.map +1 -0
- package/resources/shiftassignments.d.ts +466 -0
- package/resources/shiftassignments.d.ts.map +1 -0
- package/resources/shiftassignments.js +32 -0
- package/resources/shiftassignments.js.map +1 -0
- package/resources/shiftassignments.mjs +28 -0
- package/resources/shiftassignments.mjs.map +1 -0
- package/resources/sso-me.d.mts +48 -0
- package/resources/sso-me.d.mts.map +1 -0
- package/resources/sso-me.d.ts +48 -0
- package/resources/sso-me.d.ts.map +1 -0
- package/resources/sso-me.js +18 -0
- package/resources/sso-me.js.map +1 -0
- package/resources/sso-me.mjs +14 -0
- package/resources/sso-me.mjs.map +1 -0
- package/resources/supergroups/exclusion-members.d.mts +56 -0
- package/resources/supergroups/exclusion-members.d.mts.map +1 -0
- package/resources/supergroups/exclusion-members.d.ts +56 -0
- package/resources/supergroups/exclusion-members.d.ts.map +1 -0
- package/resources/supergroups/exclusion-members.js +26 -0
- package/resources/supergroups/exclusion-members.js.map +1 -0
- package/resources/supergroups/exclusion-members.mjs +22 -0
- package/resources/supergroups/exclusion-members.mjs.map +1 -0
- package/resources/supergroups/inclusion-members.d.mts +56 -0
- package/resources/supergroups/inclusion-members.d.mts.map +1 -0
- package/resources/supergroups/inclusion-members.d.ts +56 -0
- package/resources/supergroups/inclusion-members.d.ts.map +1 -0
- package/resources/supergroups/inclusion-members.js +26 -0
- package/resources/supergroups/inclusion-members.js.map +1 -0
- package/resources/supergroups/inclusion-members.mjs +22 -0
- package/resources/supergroups/inclusion-members.mjs.map +1 -0
- package/resources/supergroups/index.d.mts +5 -0
- package/resources/supergroups/index.d.mts.map +1 -0
- package/resources/supergroups/index.d.ts +5 -0
- package/resources/supergroups/index.d.ts.map +1 -0
- package/resources/supergroups/index.js +13 -0
- package/resources/supergroups/index.js.map +1 -0
- package/resources/supergroups/index.mjs +6 -0
- package/resources/supergroups/index.mjs.map +1 -0
- package/resources/supergroups/members.d.mts +42 -0
- package/resources/supergroups/members.d.mts.map +1 -0
- package/resources/supergroups/members.d.ts +42 -0
- package/resources/supergroups/members.d.ts.map +1 -0
- package/resources/supergroups/members.js +23 -0
- package/resources/supergroups/members.js.map +1 -0
- package/resources/supergroups/members.mjs +19 -0
- package/resources/supergroups/members.mjs.map +1 -0
- package/resources/supergroups/supergroups.d.mts +123 -0
- package/resources/supergroups/supergroups.d.mts.map +1 -0
- package/resources/supergroups/supergroups.d.ts +123 -0
- package/resources/supergroups/supergroups.d.ts.map +1 -0
- package/resources/supergroups/supergroups.js +43 -0
- package/resources/supergroups/supergroups.js.map +1 -0
- package/resources/supergroups/supergroups.mjs +38 -0
- package/resources/supergroups/supergroups.mjs.map +1 -0
- package/resources/supergroups.d.mts +2 -0
- package/resources/supergroups.d.mts.map +1 -0
- package/resources/supergroups.d.ts +2 -0
- package/resources/supergroups.d.ts.map +1 -0
- package/resources/supergroups.js +6 -0
- package/resources/supergroups.js.map +1 -0
- package/resources/supergroups.mjs +3 -0
- package/resources/supergroups.mjs.map +1 -0
- package/resources/teams.d.mts +64 -0
- package/resources/teams.d.mts.map +1 -0
- package/resources/teams.d.ts +64 -0
- package/resources/teams.d.ts.map +1 -0
- package/resources/teams.js +27 -0
- package/resources/teams.js.map +1 -0
- package/resources/teams.mjs +23 -0
- package/resources/teams.mjs.map +1 -0
- package/resources/time-cards.d.mts +156 -0
- package/resources/time-cards.d.mts.map +1 -0
- package/resources/time-cards.d.ts +156 -0
- package/resources/time-cards.d.ts.map +1 -0
- package/resources/time-cards.js +28 -0
- package/resources/time-cards.js.map +1 -0
- package/resources/time-cards.mjs +24 -0
- package/resources/time-cards.mjs.map +1 -0
- package/resources/time-entries.d.mts +1494 -0
- package/resources/time-entries.d.mts.map +1 -0
- package/resources/time-entries.d.ts +1494 -0
- package/resources/time-entries.d.ts.map +1 -0
- package/resources/time-entries.js +53 -0
- package/resources/time-entries.js.map +1 -0
- package/resources/time-entries.mjs +49 -0
- package/resources/time-entries.mjs.map +1 -0
- package/resources/tracks.d.mts +49 -0
- package/resources/tracks.d.mts.map +1 -0
- package/resources/tracks.d.ts +49 -0
- package/resources/tracks.d.ts.map +1 -0
- package/resources/tracks.js +26 -0
- package/resources/tracks.js.map +1 -0
- package/resources/tracks.mjs +22 -0
- package/resources/tracks.mjs.map +1 -0
- package/resources/users.d.mts +200 -0
- package/resources/users.d.mts.map +1 -0
- package/resources/users.d.ts +200 -0
- package/resources/users.d.ts.map +1 -0
- package/resources/users.js +26 -0
- package/resources/users.js.map +1 -0
- package/resources/users.mjs +22 -0
- package/resources/users.mjs.map +1 -0
- package/resources/work-locations.d.mts +54 -0
- package/resources/work-locations.d.mts.map +1 -0
- package/resources/work-locations.d.ts +54 -0
- package/resources/work-locations.d.ts.map +1 -0
- package/resources/work-locations.js +26 -0
- package/resources/work-locations.js.map +1 -0
- package/resources/work-locations.mjs +22 -0
- package/resources/work-locations.mjs.map +1 -0
- package/resources/workers.d.mts +298 -0
- package/resources/workers.d.mts.map +1 -0
- package/resources/workers.d.ts +298 -0
- package/resources/workers.d.ts.map +1 -0
- package/resources/workers.js +31 -0
- package/resources/workers.js.map +1 -0
- package/resources/workers.mjs +27 -0
- package/resources/workers.mjs.map +1 -0
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +5 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/api-promise.ts +2 -0
- package/src/client.ts +1518 -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 +155 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/functions.ts +114 -0
- package/src/index.ts +25 -0
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +97 -0
- package/src/internal/parse.ts +50 -0
- package/src/internal/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/lib/.keep +4 -0
- package/src/pagination.ts +2 -0
- package/src/resource.ts +2 -0
- package/src/resources/business-partner-groups.ts +146 -0
- package/src/resources/business-partners.ts +190 -0
- package/src/resources/candidate-applications.ts +91 -0
- package/src/resources/candidates.ts +79 -0
- package/src/resources/companies.ts +110 -0
- package/src/resources/compensations.ts +313 -0
- package/src/resources/custom-fields.ts +93 -0
- package/src/resources/custom-objects/custom-objects.ts +206 -0
- package/src/resources/custom-objects/fields.ts +199 -0
- package/src/resources/custom-objects/index.ts +32 -0
- package/src/resources/custom-objects/records.ts +282 -0
- package/src/resources/custom-objects.ts +3 -0
- package/src/resources/departments.ts +115 -0
- package/src/resources/employment-types.ts +107 -0
- package/src/resources/entitlements.ts +44 -0
- package/src/resources/functions/deployments.ts +209 -0
- package/src/resources/functions/executions.ts +273 -0
- package/src/resources/functions/functions.ts +229 -0
- package/src/resources/functions/index.ts +32 -0
- package/src/resources/functions.ts +3 -0
- package/src/resources/headcount-positions.ts +1767 -0
- package/src/resources/headcount-priorities.ts +95 -0
- package/src/resources/index.ts +322 -0
- package/src/resources/job-assignments.ts +227 -0
- package/src/resources/job-codes.ts +466 -0
- package/src/resources/job-dimensions.ts +201 -0
- package/src/resources/job-functions.ts +95 -0
- package/src/resources/job-pay-rate-exceptions.ts +144 -0
- package/src/resources/job-requisitions.ts +61 -0
- package/src/resources/kiosk-badges.ts +343 -0
- package/src/resources/leave-balances.ts +125 -0
- package/src/resources/leave-requests.ts +928 -0
- package/src/resources/leave-types.ts +95 -0
- package/src/resources/legal-entities.ts +406 -0
- package/src/resources/levels.ts +128 -0
- package/src/resources/location-factors.ts +643 -0
- package/src/resources/object-categories.ts +107 -0
- package/src/resources/schedules.ts +187 -0
- package/src/resources/shared.ts +313 -0
- package/src/resources/shift-inputs.ts +398 -0
- package/src/resources/shiftassignments.ts +580 -0
- package/src/resources/sso-me.ts +60 -0
- package/src/resources/supergroups/exclusion-members.ts +88 -0
- package/src/resources/supergroups/inclusion-members.ts +88 -0
- package/src/resources/supergroups/index.ts +22 -0
- package/src/resources/supergroups/members.ts +66 -0
- package/src/resources/supergroups/supergroups.ts +199 -0
- package/src/resources/supergroups.ts +3 -0
- package/src/resources/teams.ts +96 -0
- package/src/resources/time-cards.ts +209 -0
- package/src/resources/time-entries.ts +1860 -0
- package/src/resources/tracks.ts +72 -0
- package/src/resources/users.ts +255 -0
- package/src/resources/work-locations.ts +78 -0
- package/src/resources/workers.ts +906 -0
- package/src/resources.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +2 -0
- package/src/version.ts +1 -0
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +2 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +6 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +2 -0
- package/uploads.mjs.map +1 -0
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
package/src/client.ts
ADDED
|
@@ -0,0 +1,1518 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import type { RequestInit, RequestInfo, BodyInit } from './internal/builtin-types';
|
|
4
|
+
import type { HTTPMethod, PromiseOrValue, MergedRequestInit, FinalizedRequestInit } from './internal/types';
|
|
5
|
+
import { uuid4 } from './internal/utils/uuid';
|
|
6
|
+
import { validatePositiveInteger, isAbsoluteURL, safeJSON } from './internal/utils/values';
|
|
7
|
+
import { sleep } from './internal/utils/sleep';
|
|
8
|
+
export type { Logger, LogLevel } from './internal/utils/log';
|
|
9
|
+
import { castToError, isAbortError } from './internal/errors';
|
|
10
|
+
import type { APIResponseProps } from './internal/parse';
|
|
11
|
+
import { getPlatformHeaders } from './internal/detect-platform';
|
|
12
|
+
import * as Shims from './internal/shims';
|
|
13
|
+
import * as Opts from './internal/request-options';
|
|
14
|
+
import { VERSION } from './version';
|
|
15
|
+
import * as Errors from './core/error';
|
|
16
|
+
import * as Pagination from './core/pagination';
|
|
17
|
+
import { AbstractPage, PageCursorURLResponse } from './core/pagination';
|
|
18
|
+
import * as Uploads from './core/uploads';
|
|
19
|
+
import * as API from './resources/index';
|
|
20
|
+
import { APIPromise } from './core/api-promise';
|
|
21
|
+
import {
|
|
22
|
+
BusinessPartnerGroup,
|
|
23
|
+
BusinessPartnerGroupCreateParams,
|
|
24
|
+
BusinessPartnerGroupListParams,
|
|
25
|
+
BusinessPartnerGroupRetrieveParams,
|
|
26
|
+
BusinessPartnerGroupRetrieveResponse,
|
|
27
|
+
BusinessPartnerGroups,
|
|
28
|
+
BusinessPartnerGroupsPageCursorURL,
|
|
29
|
+
} from './resources/business-partner-groups';
|
|
30
|
+
import {
|
|
31
|
+
BusinessPartner,
|
|
32
|
+
BusinessPartnerCreateParams,
|
|
33
|
+
BusinessPartnerListParams,
|
|
34
|
+
BusinessPartnerRetrieveParams,
|
|
35
|
+
BusinessPartnerRetrieveResponse,
|
|
36
|
+
BusinessPartners,
|
|
37
|
+
BusinessPartnersPageCursorURL,
|
|
38
|
+
Meta,
|
|
39
|
+
} from './resources/business-partners';
|
|
40
|
+
import {
|
|
41
|
+
CandidateApplicationListParams,
|
|
42
|
+
CandidateApplicationListResponse,
|
|
43
|
+
CandidateApplicationListResponsesPageCursorURL,
|
|
44
|
+
CandidateApplications,
|
|
45
|
+
} from './resources/candidate-applications';
|
|
46
|
+
import {
|
|
47
|
+
CandidateListParams,
|
|
48
|
+
CandidateListResponse,
|
|
49
|
+
CandidateListResponsesPageCursorURL,
|
|
50
|
+
Candidates,
|
|
51
|
+
} from './resources/candidates';
|
|
52
|
+
import { Companies, CompaniesPageCursorURL, Company, CompanyListParams } from './resources/companies';
|
|
53
|
+
import {
|
|
54
|
+
Compensation,
|
|
55
|
+
CompensationListParams,
|
|
56
|
+
CompensationRetrieveParams,
|
|
57
|
+
CompensationRetrieveResponse,
|
|
58
|
+
Compensations,
|
|
59
|
+
CompensationsPageCursorURL,
|
|
60
|
+
} from './resources/compensations';
|
|
61
|
+
import {
|
|
62
|
+
CustomFieldListParams,
|
|
63
|
+
CustomFieldListResponse,
|
|
64
|
+
CustomFieldListResponsesPageCursorURL,
|
|
65
|
+
CustomFields,
|
|
66
|
+
} from './resources/custom-fields';
|
|
67
|
+
import {
|
|
68
|
+
Department,
|
|
69
|
+
DepartmentListParams,
|
|
70
|
+
DepartmentRetrieveParams,
|
|
71
|
+
DepartmentRetrieveResponse,
|
|
72
|
+
Departments,
|
|
73
|
+
DepartmentsPageCursorURL,
|
|
74
|
+
} from './resources/departments';
|
|
75
|
+
import {
|
|
76
|
+
CompanyEmploymentType,
|
|
77
|
+
CompanyEmploymentTypesPageCursorURL,
|
|
78
|
+
EmploymentTypeListParams,
|
|
79
|
+
EmploymentTypeRetrieveResponse,
|
|
80
|
+
EmploymentTypes,
|
|
81
|
+
} from './resources/employment-types';
|
|
82
|
+
import {
|
|
83
|
+
EntitlementListResponse,
|
|
84
|
+
EntitlementListResponsesPageCursorURL,
|
|
85
|
+
Entitlements,
|
|
86
|
+
} from './resources/entitlements';
|
|
87
|
+
import {
|
|
88
|
+
HeadcountPositionListParams,
|
|
89
|
+
HeadcountPositionListResponse,
|
|
90
|
+
HeadcountPositionListResponsesPageCursorURL,
|
|
91
|
+
HeadcountPositionRetrieveParams,
|
|
92
|
+
HeadcountPositionRetrieveResponse,
|
|
93
|
+
HeadcountPositions,
|
|
94
|
+
} from './resources/headcount-positions';
|
|
95
|
+
import {
|
|
96
|
+
HeadcountPriorities,
|
|
97
|
+
HeadcountPriorityListParams,
|
|
98
|
+
HeadcountPriorityListResponse,
|
|
99
|
+
HeadcountPriorityListResponsesPageCursorURL,
|
|
100
|
+
HeadcountPriorityRetrieveResponse,
|
|
101
|
+
} from './resources/headcount-priorities';
|
|
102
|
+
import {
|
|
103
|
+
AttributeChangeDetails,
|
|
104
|
+
AttributeChangeDetailsPageCursorURL,
|
|
105
|
+
JobAssignment,
|
|
106
|
+
JobAssignmentListChangeLogParams,
|
|
107
|
+
JobAssignmentListParams,
|
|
108
|
+
JobAssignmentRetrieveParams,
|
|
109
|
+
JobAssignmentRetrieveResponse,
|
|
110
|
+
JobAssignments,
|
|
111
|
+
JobAssignmentsPageCursorURL,
|
|
112
|
+
} from './resources/job-assignments';
|
|
113
|
+
import {
|
|
114
|
+
JobCode,
|
|
115
|
+
JobCodeCreateParams,
|
|
116
|
+
JobCodeListChangeLogParams,
|
|
117
|
+
JobCodeListParams,
|
|
118
|
+
JobCodeRequest,
|
|
119
|
+
JobCodeRetrieveParams,
|
|
120
|
+
JobCodeRetrieveResponse,
|
|
121
|
+
JobCodeUpdateParams,
|
|
122
|
+
JobCodes,
|
|
123
|
+
JobCodesPageCursorURL,
|
|
124
|
+
} from './resources/job-codes';
|
|
125
|
+
import {
|
|
126
|
+
JobDimension,
|
|
127
|
+
JobDimensionCreateParams,
|
|
128
|
+
JobDimensionListParams,
|
|
129
|
+
JobDimensionRequest,
|
|
130
|
+
JobDimensionRetrieveResponse,
|
|
131
|
+
JobDimensionUpdateParams,
|
|
132
|
+
JobDimensions,
|
|
133
|
+
JobDimensionsPageCursorURL,
|
|
134
|
+
} from './resources/job-dimensions';
|
|
135
|
+
import {
|
|
136
|
+
JobFunctionListParams,
|
|
137
|
+
JobFunctionListResponse,
|
|
138
|
+
JobFunctionListResponsesPageCursorURL,
|
|
139
|
+
JobFunctionRetrieveResponse,
|
|
140
|
+
JobFunctions,
|
|
141
|
+
} from './resources/job-functions';
|
|
142
|
+
import {
|
|
143
|
+
JobPayRateException,
|
|
144
|
+
JobPayRateExceptionListChangeLogParams,
|
|
145
|
+
JobPayRateExceptionListParams,
|
|
146
|
+
JobPayRateExceptionRetrieveParams,
|
|
147
|
+
JobPayRateExceptionRetrieveResponse,
|
|
148
|
+
JobPayRateExceptions,
|
|
149
|
+
JobPayRateExceptionsPageCursorURL,
|
|
150
|
+
} from './resources/job-pay-rate-exceptions';
|
|
151
|
+
import {
|
|
152
|
+
JobRequisition,
|
|
153
|
+
JobRequisitionListParams,
|
|
154
|
+
JobRequisitions,
|
|
155
|
+
JobRequisitionsPageCursorURL,
|
|
156
|
+
} from './resources/job-requisitions';
|
|
157
|
+
import {
|
|
158
|
+
KioskBadgeCreateParams,
|
|
159
|
+
KioskBadgeCreateResponse,
|
|
160
|
+
KioskBadgeListParams,
|
|
161
|
+
KioskBadgeListResponse,
|
|
162
|
+
KioskBadgeListResponsesPageCursorURL,
|
|
163
|
+
KioskBadgeRetrieveParams,
|
|
164
|
+
KioskBadgeRetrieveResponse,
|
|
165
|
+
KioskBadgeUpdateParams,
|
|
166
|
+
KioskBadgeUpdateResponse,
|
|
167
|
+
KioskBadges,
|
|
168
|
+
TimeKioskBadge,
|
|
169
|
+
} from './resources/kiosk-badges';
|
|
170
|
+
import {
|
|
171
|
+
LeaveBalance,
|
|
172
|
+
LeaveBalanceListParams,
|
|
173
|
+
LeaveBalanceRetrieveParams,
|
|
174
|
+
LeaveBalanceRetrieveResponse,
|
|
175
|
+
LeaveBalances,
|
|
176
|
+
LeaveBalancesPageCursorURL,
|
|
177
|
+
} from './resources/leave-balances';
|
|
178
|
+
import {
|
|
179
|
+
LeaveRequest,
|
|
180
|
+
LeaveRequestCreateParams,
|
|
181
|
+
LeaveRequestCreateResponse,
|
|
182
|
+
LeaveRequestListParams,
|
|
183
|
+
LeaveRequestListResponse,
|
|
184
|
+
LeaveRequestListResponsesPageCursorURL,
|
|
185
|
+
LeaveRequestRetrieveParams,
|
|
186
|
+
LeaveRequestRetrieveResponse,
|
|
187
|
+
LeaveRequestUpdateParams,
|
|
188
|
+
LeaveRequestUpdateResponse,
|
|
189
|
+
LeaveRequests,
|
|
190
|
+
} from './resources/leave-requests';
|
|
191
|
+
import {
|
|
192
|
+
LeaveType,
|
|
193
|
+
LeaveTypeListParams,
|
|
194
|
+
LeaveTypeRetrieveResponse,
|
|
195
|
+
LeaveTypes,
|
|
196
|
+
LeaveTypesPageCursorURL,
|
|
197
|
+
} from './resources/leave-types';
|
|
198
|
+
import {
|
|
199
|
+
LegalEntities,
|
|
200
|
+
LegalEntitiesPageCursorURL,
|
|
201
|
+
LegalEntity,
|
|
202
|
+
LegalEntityListParams,
|
|
203
|
+
LegalEntityRetrieveParams,
|
|
204
|
+
LegalEntityRetrieveResponse,
|
|
205
|
+
} from './resources/legal-entities';
|
|
206
|
+
import {
|
|
207
|
+
Level,
|
|
208
|
+
LevelListParams,
|
|
209
|
+
LevelRetrieveParams,
|
|
210
|
+
LevelRetrieveResponse,
|
|
211
|
+
Levels,
|
|
212
|
+
LevelsPageCursorURL,
|
|
213
|
+
} from './resources/levels';
|
|
214
|
+
import {
|
|
215
|
+
LocationFactorListParams,
|
|
216
|
+
LocationFactorListResponse,
|
|
217
|
+
LocationFactorListResponsesPageCursorURL,
|
|
218
|
+
LocationFactorRetrieveResponse,
|
|
219
|
+
LocationFactors,
|
|
220
|
+
} from './resources/location-factors';
|
|
221
|
+
import {
|
|
222
|
+
ObjectCategories,
|
|
223
|
+
ObjectCategoriesPageCursorURL,
|
|
224
|
+
ObjectCategory,
|
|
225
|
+
ObjectCategoryCreateParams,
|
|
226
|
+
ObjectCategoryUpdateParams,
|
|
227
|
+
} from './resources/object-categories';
|
|
228
|
+
import {
|
|
229
|
+
ScheduleListParams,
|
|
230
|
+
ScheduleListResponse,
|
|
231
|
+
ScheduleListResponsesPageCursorURL,
|
|
232
|
+
ScheduleRetrieveParams,
|
|
233
|
+
ScheduleRetrieveResponse,
|
|
234
|
+
Schedules,
|
|
235
|
+
} from './resources/schedules';
|
|
236
|
+
import {
|
|
237
|
+
ShiftInput,
|
|
238
|
+
ShiftInputCreateParams,
|
|
239
|
+
ShiftInputCreateResponse,
|
|
240
|
+
ShiftInputListParams,
|
|
241
|
+
ShiftInputListResponse,
|
|
242
|
+
ShiftInputListResponsesPageCursorURL,
|
|
243
|
+
ShiftInputRetrieveParams,
|
|
244
|
+
ShiftInputRetrieveResponse,
|
|
245
|
+
ShiftInputUpdateParams,
|
|
246
|
+
ShiftInputUpdateResponse,
|
|
247
|
+
ShiftInputs,
|
|
248
|
+
} from './resources/shift-inputs';
|
|
249
|
+
import {
|
|
250
|
+
ShiftassignmentListParams,
|
|
251
|
+
ShiftassignmentListResponse,
|
|
252
|
+
ShiftassignmentListResponsesPageCursorURL,
|
|
253
|
+
ShiftassignmentRetrieveParams,
|
|
254
|
+
ShiftassignmentRetrieveResponse,
|
|
255
|
+
Shiftassignments,
|
|
256
|
+
} from './resources/shiftassignments';
|
|
257
|
+
import { SSOMe, SSOMeResource, SSOMeRetrieveParams } from './resources/sso-me';
|
|
258
|
+
import {
|
|
259
|
+
Team,
|
|
260
|
+
TeamListParams,
|
|
261
|
+
TeamRetrieveParams,
|
|
262
|
+
TeamRetrieveResponse,
|
|
263
|
+
Teams,
|
|
264
|
+
TeamsPageCursorURL,
|
|
265
|
+
} from './resources/teams';
|
|
266
|
+
import {
|
|
267
|
+
PayPeriod,
|
|
268
|
+
TimeCard,
|
|
269
|
+
TimeCardListParams,
|
|
270
|
+
TimeCardRetrieveParams,
|
|
271
|
+
TimeCardRetrieveResponse,
|
|
272
|
+
TimeCards,
|
|
273
|
+
TimeCardsPageCursorURL,
|
|
274
|
+
} from './resources/time-cards';
|
|
275
|
+
import {
|
|
276
|
+
TimeEntries,
|
|
277
|
+
TimeEntry,
|
|
278
|
+
TimeEntryCreateParams,
|
|
279
|
+
TimeEntryCreateResponse,
|
|
280
|
+
TimeEntryListParams,
|
|
281
|
+
TimeEntryListResponse,
|
|
282
|
+
TimeEntryListResponsesPageCursorURL,
|
|
283
|
+
TimeEntryRetrieveParams,
|
|
284
|
+
TimeEntryRetrieveResponse,
|
|
285
|
+
TimeEntryUpdateParams,
|
|
286
|
+
TimeEntryUpdateResponse,
|
|
287
|
+
} from './resources/time-entries';
|
|
288
|
+
import {
|
|
289
|
+
Track,
|
|
290
|
+
TrackListParams,
|
|
291
|
+
TrackRetrieveResponse,
|
|
292
|
+
Tracks,
|
|
293
|
+
TracksPageCursorURL,
|
|
294
|
+
} from './resources/tracks';
|
|
295
|
+
import { User, UserListParams, UserRetrieveResponse, Users, UsersPageCursorURL } from './resources/users';
|
|
296
|
+
import {
|
|
297
|
+
WorkLocation,
|
|
298
|
+
WorkLocationListParams,
|
|
299
|
+
WorkLocationRetrieveResponse,
|
|
300
|
+
WorkLocations,
|
|
301
|
+
WorkLocationsPageCursorURL,
|
|
302
|
+
} from './resources/work-locations';
|
|
303
|
+
import {
|
|
304
|
+
Worker,
|
|
305
|
+
WorkerListParams,
|
|
306
|
+
WorkerRetrieveParams,
|
|
307
|
+
WorkerRetrieveResponse,
|
|
308
|
+
Workers,
|
|
309
|
+
WorkersPageCursorURL,
|
|
310
|
+
} from './resources/workers';
|
|
311
|
+
import {
|
|
312
|
+
CustomObject,
|
|
313
|
+
CustomObjectCreateParams,
|
|
314
|
+
CustomObjectUpdateParams,
|
|
315
|
+
CustomObjects,
|
|
316
|
+
CustomObjectsPageCursorURL,
|
|
317
|
+
} from './resources/custom-objects/custom-objects';
|
|
318
|
+
import {
|
|
319
|
+
Function,
|
|
320
|
+
FunctionCreateDevBundleResponse,
|
|
321
|
+
FunctionCreateParams,
|
|
322
|
+
FunctionListParams,
|
|
323
|
+
FunctionUpdateParams,
|
|
324
|
+
Functions,
|
|
325
|
+
FunctionsPageCursorURL,
|
|
326
|
+
} from './resources/functions/functions';
|
|
327
|
+
import {
|
|
328
|
+
Supergroup,
|
|
329
|
+
SupergroupListParams,
|
|
330
|
+
SupergroupRetrieveResponse,
|
|
331
|
+
Supergroups,
|
|
332
|
+
SupergroupsPageCursorURL,
|
|
333
|
+
} from './resources/supergroups/supergroups';
|
|
334
|
+
import { type Fetch } from './internal/builtin-types';
|
|
335
|
+
import { HeadersLike, NullableHeaders, buildHeaders } from './internal/headers';
|
|
336
|
+
import { FinalRequestOptions, RequestOptions } from './internal/request-options';
|
|
337
|
+
import { readEnv } from './internal/utils/env';
|
|
338
|
+
import {
|
|
339
|
+
type LogLevel,
|
|
340
|
+
type Logger,
|
|
341
|
+
formatRequestDetails,
|
|
342
|
+
loggerFor,
|
|
343
|
+
parseLogLevel,
|
|
344
|
+
} from './internal/utils/log';
|
|
345
|
+
import { isEmptyObj } from './internal/utils/values';
|
|
346
|
+
|
|
347
|
+
export interface ClientOptions {
|
|
348
|
+
/**
|
|
349
|
+
* Bearer token for authorization
|
|
350
|
+
*/
|
|
351
|
+
bearerToken?: string | undefined;
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* Override the default base URL for the API, e.g., "https://api.example.com/v2/"
|
|
355
|
+
*
|
|
356
|
+
* Defaults to process.env['RIPPLING_SDK_BASE_URL'].
|
|
357
|
+
*/
|
|
358
|
+
baseURL?: string | null | undefined;
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* The maximum amount of time (in milliseconds) that the client should wait for a response
|
|
362
|
+
* from the server before timing out a single request.
|
|
363
|
+
*
|
|
364
|
+
* Note that request timeouts are retried by default, so in a worst-case scenario you may wait
|
|
365
|
+
* much longer than this timeout before the promise succeeds or fails.
|
|
366
|
+
*
|
|
367
|
+
* @unit milliseconds
|
|
368
|
+
*/
|
|
369
|
+
timeout?: number | undefined;
|
|
370
|
+
/**
|
|
371
|
+
* Additional `RequestInit` options to be passed to `fetch` calls.
|
|
372
|
+
* Properties will be overridden by per-request `fetchOptions`.
|
|
373
|
+
*/
|
|
374
|
+
fetchOptions?: MergedRequestInit | undefined;
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Specify a custom `fetch` function implementation.
|
|
378
|
+
*
|
|
379
|
+
* If not provided, we expect that `fetch` is defined globally.
|
|
380
|
+
*/
|
|
381
|
+
fetch?: Fetch | undefined;
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* The maximum number of times that the client will retry a request in case of a
|
|
385
|
+
* temporary failure, like a network error or a 5XX error from the server.
|
|
386
|
+
*
|
|
387
|
+
* @default 2
|
|
388
|
+
*/
|
|
389
|
+
maxRetries?: number | undefined;
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* Default headers to include with every request to the API.
|
|
393
|
+
*
|
|
394
|
+
* These can be removed in individual requests by explicitly setting the
|
|
395
|
+
* header to `null` in request options.
|
|
396
|
+
*/
|
|
397
|
+
defaultHeaders?: HeadersLike | undefined;
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* Default query parameters to include with every request to the API.
|
|
401
|
+
*
|
|
402
|
+
* These can be removed in individual requests by explicitly setting the
|
|
403
|
+
* param to `undefined` in request options.
|
|
404
|
+
*/
|
|
405
|
+
defaultQuery?: Record<string, string | undefined> | undefined;
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* Set the log level.
|
|
409
|
+
*
|
|
410
|
+
* Defaults to process.env['RIPPLING_SDK_LOG'] or 'warn' if it isn't set.
|
|
411
|
+
*/
|
|
412
|
+
logLevel?: LogLevel | undefined;
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* Set the logger.
|
|
416
|
+
*
|
|
417
|
+
* Defaults to globalThis.console.
|
|
418
|
+
*/
|
|
419
|
+
logger?: Logger | undefined;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* API Client for interfacing with the Rippling SDK API.
|
|
424
|
+
*/
|
|
425
|
+
export class RipplingSDK {
|
|
426
|
+
bearerToken: string;
|
|
427
|
+
|
|
428
|
+
baseURL: string;
|
|
429
|
+
maxRetries: number;
|
|
430
|
+
timeout: number;
|
|
431
|
+
logger: Logger | undefined;
|
|
432
|
+
logLevel: LogLevel | undefined;
|
|
433
|
+
fetchOptions: MergedRequestInit | undefined;
|
|
434
|
+
|
|
435
|
+
private fetch: Fetch;
|
|
436
|
+
#encoder: Opts.RequestEncoder;
|
|
437
|
+
protected idempotencyHeader?: string;
|
|
438
|
+
private _options: ClientOptions;
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* API Client for interfacing with the Rippling SDK API.
|
|
442
|
+
*
|
|
443
|
+
* @param {string | undefined} [opts.bearerToken=process.env['BEARER_TOKEN_PRODUCTION'] ?? undefined]
|
|
444
|
+
* @param {string} [opts.baseURL=process.env['RIPPLING_SDK_BASE_URL'] ?? https://rest.ripplingapis.com] - Override the default base URL for the API.
|
|
445
|
+
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
446
|
+
* @param {MergedRequestInit} [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls.
|
|
447
|
+
* @param {Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
448
|
+
* @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
|
|
449
|
+
* @param {HeadersLike} opts.defaultHeaders - Default headers to include with every request to the API.
|
|
450
|
+
* @param {Record<string, string | undefined>} opts.defaultQuery - Default query parameters to include with every request to the API.
|
|
451
|
+
*/
|
|
452
|
+
constructor({
|
|
453
|
+
baseURL = readEnv('RIPPLING_SDK_BASE_URL'),
|
|
454
|
+
bearerToken = readEnv('BEARER_TOKEN_PRODUCTION'),
|
|
455
|
+
...opts
|
|
456
|
+
}: ClientOptions = {}) {
|
|
457
|
+
if (bearerToken === undefined) {
|
|
458
|
+
throw new Errors.RipplingSDKError(
|
|
459
|
+
"The BEARER_TOKEN_PRODUCTION environment variable is missing or empty; either provide it, or instantiate the RipplingSDK client with an bearerToken option, like new RipplingSDK({ bearerToken: 'My Bearer Token' }).",
|
|
460
|
+
);
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
const options: ClientOptions = {
|
|
464
|
+
bearerToken,
|
|
465
|
+
...opts,
|
|
466
|
+
baseURL: baseURL || `https://rest.ripplingapis.com`,
|
|
467
|
+
};
|
|
468
|
+
|
|
469
|
+
this.baseURL = options.baseURL!;
|
|
470
|
+
this.timeout = options.timeout ?? RipplingSDK.DEFAULT_TIMEOUT /* 1 minute */;
|
|
471
|
+
this.logger = options.logger ?? console;
|
|
472
|
+
const defaultLogLevel = 'warn';
|
|
473
|
+
// Set default logLevel early so that we can log a warning in parseLogLevel.
|
|
474
|
+
this.logLevel = defaultLogLevel;
|
|
475
|
+
this.logLevel =
|
|
476
|
+
parseLogLevel(options.logLevel, 'ClientOptions.logLevel', this) ??
|
|
477
|
+
parseLogLevel(readEnv('RIPPLING_SDK_LOG'), "process.env['RIPPLING_SDK_LOG']", this) ??
|
|
478
|
+
defaultLogLevel;
|
|
479
|
+
this.fetchOptions = options.fetchOptions;
|
|
480
|
+
this.maxRetries = options.maxRetries ?? 2;
|
|
481
|
+
this.fetch = options.fetch ?? Shims.getDefaultFetch();
|
|
482
|
+
this.#encoder = Opts.FallbackEncoder;
|
|
483
|
+
|
|
484
|
+
this._options = options;
|
|
485
|
+
|
|
486
|
+
this.bearerToken = bearerToken;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
* Create a new client instance re-using the same options given to the current client with optional overriding.
|
|
491
|
+
*/
|
|
492
|
+
withOptions(options: Partial<ClientOptions>): this {
|
|
493
|
+
const client = new (this.constructor as any as new (props: ClientOptions) => typeof this)({
|
|
494
|
+
...this._options,
|
|
495
|
+
baseURL: this.baseURL,
|
|
496
|
+
maxRetries: this.maxRetries,
|
|
497
|
+
timeout: this.timeout,
|
|
498
|
+
logger: this.logger,
|
|
499
|
+
logLevel: this.logLevel,
|
|
500
|
+
fetch: this.fetch,
|
|
501
|
+
fetchOptions: this.fetchOptions,
|
|
502
|
+
bearerToken: this.bearerToken,
|
|
503
|
+
...options,
|
|
504
|
+
});
|
|
505
|
+
return client;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* Check whether the base URL is set to its default.
|
|
510
|
+
*/
|
|
511
|
+
#baseURLOverridden(): boolean {
|
|
512
|
+
return this.baseURL !== 'https://rest.ripplingapis.com';
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
protected defaultQuery(): Record<string, string | undefined> | undefined {
|
|
516
|
+
return this._options.defaultQuery;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
protected validateHeaders({ values, nulls }: NullableHeaders) {
|
|
520
|
+
return;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
protected async authHeaders(opts: FinalRequestOptions): Promise<NullableHeaders | undefined> {
|
|
524
|
+
return buildHeaders([await this.bearerTokenProductionAuth(opts), await this.oAuth2ProductionAuth(opts)]);
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
protected async bearerTokenProductionAuth(opts: FinalRequestOptions): Promise<NullableHeaders | undefined> {
|
|
528
|
+
return buildHeaders([{ Authorization: `Bearer ${this.bearerToken}` }]);
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
protected async oAuth2ProductionAuth(opts: FinalRequestOptions): Promise<NullableHeaders | undefined> {
|
|
532
|
+
return undefined;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
/**
|
|
536
|
+
* Basic re-implementation of `qs.stringify` for primitive types.
|
|
537
|
+
*/
|
|
538
|
+
protected stringifyQuery(query: Record<string, unknown>): string {
|
|
539
|
+
return Object.entries(query)
|
|
540
|
+
.filter(([_, value]) => typeof value !== 'undefined')
|
|
541
|
+
.map(([key, value]) => {
|
|
542
|
+
if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') {
|
|
543
|
+
return `${encodeURIComponent(key)}=${encodeURIComponent(value)}`;
|
|
544
|
+
}
|
|
545
|
+
if (value === null) {
|
|
546
|
+
return `${encodeURIComponent(key)}=`;
|
|
547
|
+
}
|
|
548
|
+
throw new Errors.RipplingSDKError(
|
|
549
|
+
`Cannot stringify type ${typeof value}; Expected string, number, boolean, or null. If you need to pass nested query parameters, you can manually encode them, e.g. { query: { 'foo[key1]': value1, 'foo[key2]': value2 } }, and please open a GitHub issue requesting better support for your use case.`,
|
|
550
|
+
);
|
|
551
|
+
})
|
|
552
|
+
.join('&');
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
private getUserAgent(): string {
|
|
556
|
+
return `${this.constructor.name}/JS ${VERSION}`;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
protected defaultIdempotencyKey(): string {
|
|
560
|
+
return `stainless-node-retry-${uuid4()}`;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
protected makeStatusError(
|
|
564
|
+
status: number,
|
|
565
|
+
error: Object,
|
|
566
|
+
message: string | undefined,
|
|
567
|
+
headers: Headers,
|
|
568
|
+
): Errors.APIError {
|
|
569
|
+
return Errors.APIError.generate(status, error, message, headers);
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
buildURL(
|
|
573
|
+
path: string,
|
|
574
|
+
query: Record<string, unknown> | null | undefined,
|
|
575
|
+
defaultBaseURL?: string | undefined,
|
|
576
|
+
): string {
|
|
577
|
+
const baseURL = (!this.#baseURLOverridden() && defaultBaseURL) || this.baseURL;
|
|
578
|
+
const url =
|
|
579
|
+
isAbsoluteURL(path) ?
|
|
580
|
+
new URL(path)
|
|
581
|
+
: new URL(baseURL + (baseURL.endsWith('/') && path.startsWith('/') ? path.slice(1) : path));
|
|
582
|
+
|
|
583
|
+
const defaultQuery = this.defaultQuery();
|
|
584
|
+
if (!isEmptyObj(defaultQuery)) {
|
|
585
|
+
query = { ...defaultQuery, ...query };
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
if (typeof query === 'object' && query && !Array.isArray(query)) {
|
|
589
|
+
url.search = this.stringifyQuery(query as Record<string, unknown>);
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
return url.toString();
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* Used as a callback for mutating the given `FinalRequestOptions` object.
|
|
597
|
+
*/
|
|
598
|
+
protected async prepareOptions(options: FinalRequestOptions): Promise<void> {}
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* Used as a callback for mutating the given `RequestInit` object.
|
|
602
|
+
*
|
|
603
|
+
* This is useful for cases where you want to add certain headers based off of
|
|
604
|
+
* the request properties, e.g. `method` or `url`.
|
|
605
|
+
*/
|
|
606
|
+
protected async prepareRequest(
|
|
607
|
+
request: RequestInit,
|
|
608
|
+
{ url, options }: { url: string; options: FinalRequestOptions },
|
|
609
|
+
): Promise<void> {}
|
|
610
|
+
|
|
611
|
+
get<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp> {
|
|
612
|
+
return this.methodRequest('get', path, opts);
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
post<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp> {
|
|
616
|
+
return this.methodRequest('post', path, opts);
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
patch<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp> {
|
|
620
|
+
return this.methodRequest('patch', path, opts);
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
put<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp> {
|
|
624
|
+
return this.methodRequest('put', path, opts);
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
delete<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp> {
|
|
628
|
+
return this.methodRequest('delete', path, opts);
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
private methodRequest<Rsp>(
|
|
632
|
+
method: HTTPMethod,
|
|
633
|
+
path: string,
|
|
634
|
+
opts?: PromiseOrValue<RequestOptions>,
|
|
635
|
+
): APIPromise<Rsp> {
|
|
636
|
+
return this.request(
|
|
637
|
+
Promise.resolve(opts).then((opts) => {
|
|
638
|
+
return { method, path, ...opts };
|
|
639
|
+
}),
|
|
640
|
+
);
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
request<Rsp>(
|
|
644
|
+
options: PromiseOrValue<FinalRequestOptions>,
|
|
645
|
+
remainingRetries: number | null = null,
|
|
646
|
+
): APIPromise<Rsp> {
|
|
647
|
+
return new APIPromise(this, this.makeRequest(options, remainingRetries, undefined));
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
private async makeRequest(
|
|
651
|
+
optionsInput: PromiseOrValue<FinalRequestOptions>,
|
|
652
|
+
retriesRemaining: number | null,
|
|
653
|
+
retryOfRequestLogID: string | undefined,
|
|
654
|
+
): Promise<APIResponseProps> {
|
|
655
|
+
const options = await optionsInput;
|
|
656
|
+
const maxRetries = options.maxRetries ?? this.maxRetries;
|
|
657
|
+
if (retriesRemaining == null) {
|
|
658
|
+
retriesRemaining = maxRetries;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
await this.prepareOptions(options);
|
|
662
|
+
|
|
663
|
+
const { req, url, timeout } = await this.buildRequest(options, {
|
|
664
|
+
retryCount: maxRetries - retriesRemaining,
|
|
665
|
+
});
|
|
666
|
+
|
|
667
|
+
await this.prepareRequest(req, { url, options });
|
|
668
|
+
|
|
669
|
+
/** Not an API request ID, just for correlating local log entries. */
|
|
670
|
+
const requestLogID = 'log_' + ((Math.random() * (1 << 24)) | 0).toString(16).padStart(6, '0');
|
|
671
|
+
const retryLogStr = retryOfRequestLogID === undefined ? '' : `, retryOf: ${retryOfRequestLogID}`;
|
|
672
|
+
const startTime = Date.now();
|
|
673
|
+
|
|
674
|
+
loggerFor(this).debug(
|
|
675
|
+
`[${requestLogID}] sending request`,
|
|
676
|
+
formatRequestDetails({
|
|
677
|
+
retryOfRequestLogID,
|
|
678
|
+
method: options.method,
|
|
679
|
+
url,
|
|
680
|
+
options,
|
|
681
|
+
headers: req.headers,
|
|
682
|
+
}),
|
|
683
|
+
);
|
|
684
|
+
|
|
685
|
+
if (options.signal?.aborted) {
|
|
686
|
+
throw new Errors.APIUserAbortError();
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
const controller = new AbortController();
|
|
690
|
+
const response = await this.fetchWithTimeout(url, req, timeout, controller).catch(castToError);
|
|
691
|
+
const headersTime = Date.now();
|
|
692
|
+
|
|
693
|
+
if (response instanceof globalThis.Error) {
|
|
694
|
+
const retryMessage = `retrying, ${retriesRemaining} attempts remaining`;
|
|
695
|
+
if (options.signal?.aborted) {
|
|
696
|
+
throw new Errors.APIUserAbortError();
|
|
697
|
+
}
|
|
698
|
+
// detect native connection timeout errors
|
|
699
|
+
// deno throws "TypeError: error sending request for url (https://example/): client error (Connect): tcp connect error: Operation timed out (os error 60): Operation timed out (os error 60)"
|
|
700
|
+
// undici throws "TypeError: fetch failed" with cause "ConnectTimeoutError: Connect Timeout Error (attempted address: example:443, timeout: 1ms)"
|
|
701
|
+
// others do not provide enough information to distinguish timeouts from other connection errors
|
|
702
|
+
const isTimeout =
|
|
703
|
+
isAbortError(response) ||
|
|
704
|
+
/timed? ?out/i.test(String(response) + ('cause' in response ? String(response.cause) : ''));
|
|
705
|
+
if (retriesRemaining) {
|
|
706
|
+
loggerFor(this).info(
|
|
707
|
+
`[${requestLogID}] connection ${isTimeout ? 'timed out' : 'failed'} - ${retryMessage}`,
|
|
708
|
+
);
|
|
709
|
+
loggerFor(this).debug(
|
|
710
|
+
`[${requestLogID}] connection ${isTimeout ? 'timed out' : 'failed'} (${retryMessage})`,
|
|
711
|
+
formatRequestDetails({
|
|
712
|
+
retryOfRequestLogID,
|
|
713
|
+
url,
|
|
714
|
+
durationMs: headersTime - startTime,
|
|
715
|
+
message: response.message,
|
|
716
|
+
}),
|
|
717
|
+
);
|
|
718
|
+
return this.retryRequest(options, retriesRemaining, retryOfRequestLogID ?? requestLogID);
|
|
719
|
+
}
|
|
720
|
+
loggerFor(this).info(
|
|
721
|
+
`[${requestLogID}] connection ${isTimeout ? 'timed out' : 'failed'} - error; no more retries left`,
|
|
722
|
+
);
|
|
723
|
+
loggerFor(this).debug(
|
|
724
|
+
`[${requestLogID}] connection ${isTimeout ? 'timed out' : 'failed'} (error; no more retries left)`,
|
|
725
|
+
formatRequestDetails({
|
|
726
|
+
retryOfRequestLogID,
|
|
727
|
+
url,
|
|
728
|
+
durationMs: headersTime - startTime,
|
|
729
|
+
message: response.message,
|
|
730
|
+
}),
|
|
731
|
+
);
|
|
732
|
+
if (isTimeout) {
|
|
733
|
+
throw new Errors.APIConnectionTimeoutError();
|
|
734
|
+
}
|
|
735
|
+
throw new Errors.APIConnectionError({ cause: response });
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
const responseInfo = `[${requestLogID}${retryLogStr}] ${req.method} ${url} ${
|
|
739
|
+
response.ok ? 'succeeded' : 'failed'
|
|
740
|
+
} with status ${response.status} in ${headersTime - startTime}ms`;
|
|
741
|
+
|
|
742
|
+
if (!response.ok) {
|
|
743
|
+
const shouldRetry = await this.shouldRetry(response);
|
|
744
|
+
if (retriesRemaining && shouldRetry) {
|
|
745
|
+
const retryMessage = `retrying, ${retriesRemaining} attempts remaining`;
|
|
746
|
+
|
|
747
|
+
// We don't need the body of this response.
|
|
748
|
+
await Shims.CancelReadableStream(response.body);
|
|
749
|
+
loggerFor(this).info(`${responseInfo} - ${retryMessage}`);
|
|
750
|
+
loggerFor(this).debug(
|
|
751
|
+
`[${requestLogID}] response error (${retryMessage})`,
|
|
752
|
+
formatRequestDetails({
|
|
753
|
+
retryOfRequestLogID,
|
|
754
|
+
url: response.url,
|
|
755
|
+
status: response.status,
|
|
756
|
+
headers: response.headers,
|
|
757
|
+
durationMs: headersTime - startTime,
|
|
758
|
+
}),
|
|
759
|
+
);
|
|
760
|
+
return this.retryRequest(
|
|
761
|
+
options,
|
|
762
|
+
retriesRemaining,
|
|
763
|
+
retryOfRequestLogID ?? requestLogID,
|
|
764
|
+
response.headers,
|
|
765
|
+
);
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
const retryMessage = shouldRetry ? `error; no more retries left` : `error; not retryable`;
|
|
769
|
+
|
|
770
|
+
loggerFor(this).info(`${responseInfo} - ${retryMessage}`);
|
|
771
|
+
|
|
772
|
+
const errText = await response.text().catch((err: any) => castToError(err).message);
|
|
773
|
+
const errJSON = safeJSON(errText);
|
|
774
|
+
const errMessage = errJSON ? undefined : errText;
|
|
775
|
+
|
|
776
|
+
loggerFor(this).debug(
|
|
777
|
+
`[${requestLogID}] response error (${retryMessage})`,
|
|
778
|
+
formatRequestDetails({
|
|
779
|
+
retryOfRequestLogID,
|
|
780
|
+
url: response.url,
|
|
781
|
+
status: response.status,
|
|
782
|
+
headers: response.headers,
|
|
783
|
+
message: errMessage,
|
|
784
|
+
durationMs: Date.now() - startTime,
|
|
785
|
+
}),
|
|
786
|
+
);
|
|
787
|
+
|
|
788
|
+
const err = this.makeStatusError(response.status, errJSON, errMessage, response.headers);
|
|
789
|
+
throw err;
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
loggerFor(this).info(responseInfo);
|
|
793
|
+
loggerFor(this).debug(
|
|
794
|
+
`[${requestLogID}] response start`,
|
|
795
|
+
formatRequestDetails({
|
|
796
|
+
retryOfRequestLogID,
|
|
797
|
+
url: response.url,
|
|
798
|
+
status: response.status,
|
|
799
|
+
headers: response.headers,
|
|
800
|
+
durationMs: headersTime - startTime,
|
|
801
|
+
}),
|
|
802
|
+
);
|
|
803
|
+
|
|
804
|
+
return { response, options, controller, requestLogID, retryOfRequestLogID, startTime };
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
getAPIList<Item, PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>>(
|
|
808
|
+
path: string,
|
|
809
|
+
Page: new (...args: any[]) => PageClass,
|
|
810
|
+
opts?: RequestOptions,
|
|
811
|
+
): Pagination.PagePromise<PageClass, Item> {
|
|
812
|
+
return this.requestAPIList(Page, { method: 'get', path, ...opts });
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
requestAPIList<
|
|
816
|
+
Item = unknown,
|
|
817
|
+
PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>,
|
|
818
|
+
>(
|
|
819
|
+
Page: new (...args: ConstructorParameters<typeof Pagination.AbstractPage>) => PageClass,
|
|
820
|
+
options: FinalRequestOptions,
|
|
821
|
+
): Pagination.PagePromise<PageClass, Item> {
|
|
822
|
+
const request = this.makeRequest(options, null, undefined);
|
|
823
|
+
return new Pagination.PagePromise<PageClass, Item>(this as any as RipplingSDK, request, Page);
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
async fetchWithTimeout(
|
|
827
|
+
url: RequestInfo,
|
|
828
|
+
init: RequestInit | undefined,
|
|
829
|
+
ms: number,
|
|
830
|
+
controller: AbortController,
|
|
831
|
+
): Promise<Response> {
|
|
832
|
+
const { signal, method, ...options } = init || {};
|
|
833
|
+
if (signal) signal.addEventListener('abort', () => controller.abort());
|
|
834
|
+
|
|
835
|
+
const timeout = setTimeout(() => controller.abort(), ms);
|
|
836
|
+
|
|
837
|
+
const isReadableBody =
|
|
838
|
+
((globalThis as any).ReadableStream && options.body instanceof (globalThis as any).ReadableStream) ||
|
|
839
|
+
(typeof options.body === 'object' && options.body !== null && Symbol.asyncIterator in options.body);
|
|
840
|
+
|
|
841
|
+
const fetchOptions: RequestInit = {
|
|
842
|
+
signal: controller.signal as any,
|
|
843
|
+
...(isReadableBody ? { duplex: 'half' } : {}),
|
|
844
|
+
method: 'GET',
|
|
845
|
+
...options,
|
|
846
|
+
};
|
|
847
|
+
if (method) {
|
|
848
|
+
// Custom methods like 'patch' need to be uppercased
|
|
849
|
+
// See https://github.com/nodejs/undici/issues/2294
|
|
850
|
+
fetchOptions.method = method.toUpperCase();
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
try {
|
|
854
|
+
// use undefined this binding; fetch errors if bound to something else in browser/cloudflare
|
|
855
|
+
return await this.fetch.call(undefined, url, fetchOptions);
|
|
856
|
+
} finally {
|
|
857
|
+
clearTimeout(timeout);
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
private async shouldRetry(response: Response): Promise<boolean> {
|
|
862
|
+
// Note this is not a standard header.
|
|
863
|
+
const shouldRetryHeader = response.headers.get('x-should-retry');
|
|
864
|
+
|
|
865
|
+
// If the server explicitly says whether or not to retry, obey.
|
|
866
|
+
if (shouldRetryHeader === 'true') return true;
|
|
867
|
+
if (shouldRetryHeader === 'false') return false;
|
|
868
|
+
|
|
869
|
+
// Retry on request timeouts.
|
|
870
|
+
if (response.status === 408) return true;
|
|
871
|
+
|
|
872
|
+
// Retry on lock timeouts.
|
|
873
|
+
if (response.status === 409) return true;
|
|
874
|
+
|
|
875
|
+
// Retry on rate limits.
|
|
876
|
+
if (response.status === 429) return true;
|
|
877
|
+
|
|
878
|
+
// Retry internal errors.
|
|
879
|
+
if (response.status >= 500) return true;
|
|
880
|
+
|
|
881
|
+
return false;
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
private async retryRequest(
|
|
885
|
+
options: FinalRequestOptions,
|
|
886
|
+
retriesRemaining: number,
|
|
887
|
+
requestLogID: string,
|
|
888
|
+
responseHeaders?: Headers | undefined,
|
|
889
|
+
): Promise<APIResponseProps> {
|
|
890
|
+
let timeoutMillis: number | undefined;
|
|
891
|
+
|
|
892
|
+
// Note the `retry-after-ms` header may not be standard, but is a good idea and we'd like proactive support for it.
|
|
893
|
+
const retryAfterMillisHeader = responseHeaders?.get('retry-after-ms');
|
|
894
|
+
if (retryAfterMillisHeader) {
|
|
895
|
+
const timeoutMs = parseFloat(retryAfterMillisHeader);
|
|
896
|
+
if (!Number.isNaN(timeoutMs)) {
|
|
897
|
+
timeoutMillis = timeoutMs;
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
// About the Retry-After header: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After
|
|
902
|
+
const retryAfterHeader = responseHeaders?.get('retry-after');
|
|
903
|
+
if (retryAfterHeader && !timeoutMillis) {
|
|
904
|
+
const timeoutSeconds = parseFloat(retryAfterHeader);
|
|
905
|
+
if (!Number.isNaN(timeoutSeconds)) {
|
|
906
|
+
timeoutMillis = timeoutSeconds * 1000;
|
|
907
|
+
} else {
|
|
908
|
+
timeoutMillis = Date.parse(retryAfterHeader) - Date.now();
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
// If the API asks us to wait a certain amount of time (and it's a reasonable amount),
|
|
913
|
+
// just do what it says, but otherwise calculate a default
|
|
914
|
+
if (!(timeoutMillis && 0 <= timeoutMillis && timeoutMillis < 60 * 1000)) {
|
|
915
|
+
const maxRetries = options.maxRetries ?? this.maxRetries;
|
|
916
|
+
timeoutMillis = this.calculateDefaultRetryTimeoutMillis(retriesRemaining, maxRetries);
|
|
917
|
+
}
|
|
918
|
+
await sleep(timeoutMillis);
|
|
919
|
+
|
|
920
|
+
return this.makeRequest(options, retriesRemaining - 1, requestLogID);
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
private calculateDefaultRetryTimeoutMillis(retriesRemaining: number, maxRetries: number): number {
|
|
924
|
+
const initialRetryDelay = 0.5;
|
|
925
|
+
const maxRetryDelay = 8.0;
|
|
926
|
+
|
|
927
|
+
const numRetries = maxRetries - retriesRemaining;
|
|
928
|
+
|
|
929
|
+
// Apply exponential backoff, but not more than the max.
|
|
930
|
+
const sleepSeconds = Math.min(initialRetryDelay * Math.pow(2, numRetries), maxRetryDelay);
|
|
931
|
+
|
|
932
|
+
// Apply some jitter, take up to at most 25 percent of the retry time.
|
|
933
|
+
const jitter = 1 - Math.random() * 0.25;
|
|
934
|
+
|
|
935
|
+
return sleepSeconds * jitter * 1000;
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
async buildRequest(
|
|
939
|
+
inputOptions: FinalRequestOptions,
|
|
940
|
+
{ retryCount = 0 }: { retryCount?: number } = {},
|
|
941
|
+
): Promise<{ req: FinalizedRequestInit; url: string; timeout: number }> {
|
|
942
|
+
const options = { ...inputOptions };
|
|
943
|
+
const { method, path, query, defaultBaseURL } = options;
|
|
944
|
+
|
|
945
|
+
const url = this.buildURL(path!, query as Record<string, unknown>, defaultBaseURL);
|
|
946
|
+
if ('timeout' in options) validatePositiveInteger('timeout', options.timeout);
|
|
947
|
+
options.timeout = options.timeout ?? this.timeout;
|
|
948
|
+
const { bodyHeaders, body } = this.buildBody({ options });
|
|
949
|
+
const reqHeaders = await this.buildHeaders({ options: inputOptions, method, bodyHeaders, retryCount });
|
|
950
|
+
|
|
951
|
+
const req: FinalizedRequestInit = {
|
|
952
|
+
method,
|
|
953
|
+
headers: reqHeaders,
|
|
954
|
+
...(options.signal && { signal: options.signal }),
|
|
955
|
+
...((globalThis as any).ReadableStream &&
|
|
956
|
+
body instanceof (globalThis as any).ReadableStream && { duplex: 'half' }),
|
|
957
|
+
...(body && { body }),
|
|
958
|
+
...((this.fetchOptions as any) ?? {}),
|
|
959
|
+
...((options.fetchOptions as any) ?? {}),
|
|
960
|
+
};
|
|
961
|
+
|
|
962
|
+
return { req, url, timeout: options.timeout };
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
private async buildHeaders({
|
|
966
|
+
options,
|
|
967
|
+
method,
|
|
968
|
+
bodyHeaders,
|
|
969
|
+
retryCount,
|
|
970
|
+
}: {
|
|
971
|
+
options: FinalRequestOptions;
|
|
972
|
+
method: HTTPMethod;
|
|
973
|
+
bodyHeaders: HeadersLike;
|
|
974
|
+
retryCount: number;
|
|
975
|
+
}): Promise<Headers> {
|
|
976
|
+
let idempotencyHeaders: HeadersLike = {};
|
|
977
|
+
if (this.idempotencyHeader && method !== 'get') {
|
|
978
|
+
if (!options.idempotencyKey) options.idempotencyKey = this.defaultIdempotencyKey();
|
|
979
|
+
idempotencyHeaders[this.idempotencyHeader] = options.idempotencyKey;
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
const headers = buildHeaders([
|
|
983
|
+
idempotencyHeaders,
|
|
984
|
+
{
|
|
985
|
+
Accept: 'application/json',
|
|
986
|
+
'User-Agent': this.getUserAgent(),
|
|
987
|
+
'X-Stainless-Retry-Count': String(retryCount),
|
|
988
|
+
...(options.timeout ? { 'X-Stainless-Timeout': String(Math.trunc(options.timeout / 1000)) } : {}),
|
|
989
|
+
...getPlatformHeaders(),
|
|
990
|
+
},
|
|
991
|
+
await this.authHeaders(options),
|
|
992
|
+
this._options.defaultHeaders,
|
|
993
|
+
bodyHeaders,
|
|
994
|
+
options.headers,
|
|
995
|
+
]);
|
|
996
|
+
|
|
997
|
+
this.validateHeaders(headers);
|
|
998
|
+
|
|
999
|
+
return headers.values;
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
private buildBody({ options: { body, headers: rawHeaders } }: { options: FinalRequestOptions }): {
|
|
1003
|
+
bodyHeaders: HeadersLike;
|
|
1004
|
+
body: BodyInit | undefined;
|
|
1005
|
+
} {
|
|
1006
|
+
if (!body) {
|
|
1007
|
+
return { bodyHeaders: undefined, body: undefined };
|
|
1008
|
+
}
|
|
1009
|
+
const headers = buildHeaders([rawHeaders]);
|
|
1010
|
+
if (
|
|
1011
|
+
// Pass raw type verbatim
|
|
1012
|
+
ArrayBuffer.isView(body) ||
|
|
1013
|
+
body instanceof ArrayBuffer ||
|
|
1014
|
+
body instanceof DataView ||
|
|
1015
|
+
(typeof body === 'string' &&
|
|
1016
|
+
// Preserve legacy string encoding behavior for now
|
|
1017
|
+
headers.values.has('content-type')) ||
|
|
1018
|
+
// `Blob` is superset of `File`
|
|
1019
|
+
((globalThis as any).Blob && body instanceof (globalThis as any).Blob) ||
|
|
1020
|
+
// `FormData` -> `multipart/form-data`
|
|
1021
|
+
body instanceof FormData ||
|
|
1022
|
+
// `URLSearchParams` -> `application/x-www-form-urlencoded`
|
|
1023
|
+
body instanceof URLSearchParams ||
|
|
1024
|
+
// Send chunked stream (each chunk has own `length`)
|
|
1025
|
+
((globalThis as any).ReadableStream && body instanceof (globalThis as any).ReadableStream)
|
|
1026
|
+
) {
|
|
1027
|
+
return { bodyHeaders: undefined, body: body as BodyInit };
|
|
1028
|
+
} else if (
|
|
1029
|
+
typeof body === 'object' &&
|
|
1030
|
+
(Symbol.asyncIterator in body ||
|
|
1031
|
+
(Symbol.iterator in body && 'next' in body && typeof body.next === 'function'))
|
|
1032
|
+
) {
|
|
1033
|
+
return { bodyHeaders: undefined, body: Shims.ReadableStreamFrom(body as AsyncIterable<Uint8Array>) };
|
|
1034
|
+
} else {
|
|
1035
|
+
return this.#encoder({ body, headers });
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
static RipplingSDK = this;
|
|
1040
|
+
static DEFAULT_TIMEOUT = 60000; // 1 minute
|
|
1041
|
+
|
|
1042
|
+
static RipplingSDKError = Errors.RipplingSDKError;
|
|
1043
|
+
static APIError = Errors.APIError;
|
|
1044
|
+
static APIConnectionError = Errors.APIConnectionError;
|
|
1045
|
+
static APIConnectionTimeoutError = Errors.APIConnectionTimeoutError;
|
|
1046
|
+
static APIUserAbortError = Errors.APIUserAbortError;
|
|
1047
|
+
static NotFoundError = Errors.NotFoundError;
|
|
1048
|
+
static ConflictError = Errors.ConflictError;
|
|
1049
|
+
static RateLimitError = Errors.RateLimitError;
|
|
1050
|
+
static BadRequestError = Errors.BadRequestError;
|
|
1051
|
+
static AuthenticationError = Errors.AuthenticationError;
|
|
1052
|
+
static InternalServerError = Errors.InternalServerError;
|
|
1053
|
+
static PermissionDeniedError = Errors.PermissionDeniedError;
|
|
1054
|
+
static UnprocessableEntityError = Errors.UnprocessableEntityError;
|
|
1055
|
+
|
|
1056
|
+
static toFile = Uploads.toFile;
|
|
1057
|
+
|
|
1058
|
+
candidates: API.Candidates = new API.Candidates(this);
|
|
1059
|
+
candidateApplications: API.CandidateApplications = new API.CandidateApplications(this);
|
|
1060
|
+
companies: API.Companies = new API.Companies(this);
|
|
1061
|
+
compensations: API.Compensations = new API.Compensations(this);
|
|
1062
|
+
customFields: API.CustomFields = new API.CustomFields(this);
|
|
1063
|
+
customObjects: API.CustomObjects = new API.CustomObjects(this);
|
|
1064
|
+
departments: API.Departments = new API.Departments(this);
|
|
1065
|
+
employmentTypes: API.EmploymentTypes = new API.EmploymentTypes(this);
|
|
1066
|
+
entitlements: API.Entitlements = new API.Entitlements(this);
|
|
1067
|
+
jobCodes: API.JobCodes = new API.JobCodes(this);
|
|
1068
|
+
jobDimensions: API.JobDimensions = new API.JobDimensions(this);
|
|
1069
|
+
jobRequisitions: API.JobRequisitions = new API.JobRequisitions(this);
|
|
1070
|
+
kioskBadges: API.KioskBadges = new API.KioskBadges(this);
|
|
1071
|
+
leaveBalances: API.LeaveBalances = new API.LeaveBalances(this);
|
|
1072
|
+
leaveRequests: API.LeaveRequests = new API.LeaveRequests(this);
|
|
1073
|
+
leaveTypes: API.LeaveTypes = new API.LeaveTypes(this);
|
|
1074
|
+
legalEntities: API.LegalEntities = new API.LegalEntities(this);
|
|
1075
|
+
levels: API.Levels = new API.Levels(this);
|
|
1076
|
+
objectCategories: API.ObjectCategories = new API.ObjectCategories(this);
|
|
1077
|
+
shiftInputs: API.ShiftInputs = new API.ShiftInputs(this);
|
|
1078
|
+
ssoMe: API.SSOMeResource = new API.SSOMeResource(this);
|
|
1079
|
+
supergroups: API.Supergroups = new API.Supergroups(this);
|
|
1080
|
+
teams: API.Teams = new API.Teams(this);
|
|
1081
|
+
timeCards: API.TimeCards = new API.TimeCards(this);
|
|
1082
|
+
timeEntries: API.TimeEntries = new API.TimeEntries(this);
|
|
1083
|
+
tracks: API.Tracks = new API.Tracks(this);
|
|
1084
|
+
users: API.Users = new API.Users(this);
|
|
1085
|
+
workLocations: API.WorkLocations = new API.WorkLocations(this);
|
|
1086
|
+
workers: API.Workers = new API.Workers(this);
|
|
1087
|
+
businessPartners: API.BusinessPartners = new API.BusinessPartners(this);
|
|
1088
|
+
businessPartnerGroups: API.BusinessPartnerGroups = new API.BusinessPartnerGroups(this);
|
|
1089
|
+
functions: API.Functions = new API.Functions(this);
|
|
1090
|
+
jobAssignments: API.JobAssignments = new API.JobAssignments(this);
|
|
1091
|
+
jobPayRateExceptions: API.JobPayRateExceptions = new API.JobPayRateExceptions(this);
|
|
1092
|
+
schedules: API.Schedules = new API.Schedules(this);
|
|
1093
|
+
headcountPositions: API.HeadcountPositions = new API.HeadcountPositions(this);
|
|
1094
|
+
shiftassignments: API.Shiftassignments = new API.Shiftassignments(this);
|
|
1095
|
+
headcountPriorities: API.HeadcountPriorities = new API.HeadcountPriorities(this);
|
|
1096
|
+
jobFunctions: API.JobFunctions = new API.JobFunctions(this);
|
|
1097
|
+
locationFactors: API.LocationFactors = new API.LocationFactors(this);
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
RipplingSDK.Candidates = Candidates;
|
|
1101
|
+
RipplingSDK.CandidateApplications = CandidateApplications;
|
|
1102
|
+
RipplingSDK.Companies = Companies;
|
|
1103
|
+
RipplingSDK.Compensations = Compensations;
|
|
1104
|
+
RipplingSDK.CustomFields = CustomFields;
|
|
1105
|
+
RipplingSDK.CustomObjects = CustomObjects;
|
|
1106
|
+
RipplingSDK.Departments = Departments;
|
|
1107
|
+
RipplingSDK.EmploymentTypes = EmploymentTypes;
|
|
1108
|
+
RipplingSDK.Entitlements = Entitlements;
|
|
1109
|
+
RipplingSDK.JobCodes = JobCodes;
|
|
1110
|
+
RipplingSDK.JobDimensions = JobDimensions;
|
|
1111
|
+
RipplingSDK.JobRequisitions = JobRequisitions;
|
|
1112
|
+
RipplingSDK.KioskBadges = KioskBadges;
|
|
1113
|
+
RipplingSDK.LeaveBalances = LeaveBalances;
|
|
1114
|
+
RipplingSDK.LeaveRequests = LeaveRequests;
|
|
1115
|
+
RipplingSDK.LeaveTypes = LeaveTypes;
|
|
1116
|
+
RipplingSDK.LegalEntities = LegalEntities;
|
|
1117
|
+
RipplingSDK.Levels = Levels;
|
|
1118
|
+
RipplingSDK.ObjectCategories = ObjectCategories;
|
|
1119
|
+
RipplingSDK.ShiftInputs = ShiftInputs;
|
|
1120
|
+
RipplingSDK.SSOMeResource = SSOMeResource;
|
|
1121
|
+
RipplingSDK.Supergroups = Supergroups;
|
|
1122
|
+
RipplingSDK.Teams = Teams;
|
|
1123
|
+
RipplingSDK.TimeCards = TimeCards;
|
|
1124
|
+
RipplingSDK.TimeEntries = TimeEntries;
|
|
1125
|
+
RipplingSDK.Tracks = Tracks;
|
|
1126
|
+
RipplingSDK.Users = Users;
|
|
1127
|
+
RipplingSDK.WorkLocations = WorkLocations;
|
|
1128
|
+
RipplingSDK.Workers = Workers;
|
|
1129
|
+
RipplingSDK.BusinessPartners = BusinessPartners;
|
|
1130
|
+
RipplingSDK.BusinessPartnerGroups = BusinessPartnerGroups;
|
|
1131
|
+
RipplingSDK.Functions = Functions;
|
|
1132
|
+
RipplingSDK.JobAssignments = JobAssignments;
|
|
1133
|
+
RipplingSDK.JobPayRateExceptions = JobPayRateExceptions;
|
|
1134
|
+
RipplingSDK.Schedules = Schedules;
|
|
1135
|
+
RipplingSDK.HeadcountPositions = HeadcountPositions;
|
|
1136
|
+
RipplingSDK.Shiftassignments = Shiftassignments;
|
|
1137
|
+
RipplingSDK.HeadcountPriorities = HeadcountPriorities;
|
|
1138
|
+
RipplingSDK.JobFunctions = JobFunctions;
|
|
1139
|
+
RipplingSDK.LocationFactors = LocationFactors;
|
|
1140
|
+
|
|
1141
|
+
export declare namespace RipplingSDK {
|
|
1142
|
+
export type RequestOptions = Opts.RequestOptions;
|
|
1143
|
+
|
|
1144
|
+
export import PageCursorURL = Pagination.PageCursorURL;
|
|
1145
|
+
export { type PageCursorURLResponse as PageCursorURLResponse };
|
|
1146
|
+
|
|
1147
|
+
export {
|
|
1148
|
+
Candidates as Candidates,
|
|
1149
|
+
type CandidateListResponse as CandidateListResponse,
|
|
1150
|
+
type CandidateListResponsesPageCursorURL as CandidateListResponsesPageCursorURL,
|
|
1151
|
+
type CandidateListParams as CandidateListParams,
|
|
1152
|
+
};
|
|
1153
|
+
|
|
1154
|
+
export {
|
|
1155
|
+
CandidateApplications as CandidateApplications,
|
|
1156
|
+
type CandidateApplicationListResponse as CandidateApplicationListResponse,
|
|
1157
|
+
type CandidateApplicationListResponsesPageCursorURL as CandidateApplicationListResponsesPageCursorURL,
|
|
1158
|
+
type CandidateApplicationListParams as CandidateApplicationListParams,
|
|
1159
|
+
};
|
|
1160
|
+
|
|
1161
|
+
export {
|
|
1162
|
+
Companies as Companies,
|
|
1163
|
+
type Company as Company,
|
|
1164
|
+
type CompaniesPageCursorURL as CompaniesPageCursorURL,
|
|
1165
|
+
type CompanyListParams as CompanyListParams,
|
|
1166
|
+
};
|
|
1167
|
+
|
|
1168
|
+
export {
|
|
1169
|
+
Compensations as Compensations,
|
|
1170
|
+
type Compensation as Compensation,
|
|
1171
|
+
type CompensationRetrieveResponse as CompensationRetrieveResponse,
|
|
1172
|
+
type CompensationsPageCursorURL as CompensationsPageCursorURL,
|
|
1173
|
+
type CompensationRetrieveParams as CompensationRetrieveParams,
|
|
1174
|
+
type CompensationListParams as CompensationListParams,
|
|
1175
|
+
};
|
|
1176
|
+
|
|
1177
|
+
export {
|
|
1178
|
+
CustomFields as CustomFields,
|
|
1179
|
+
type CustomFieldListResponse as CustomFieldListResponse,
|
|
1180
|
+
type CustomFieldListResponsesPageCursorURL as CustomFieldListResponsesPageCursorURL,
|
|
1181
|
+
type CustomFieldListParams as CustomFieldListParams,
|
|
1182
|
+
};
|
|
1183
|
+
|
|
1184
|
+
export {
|
|
1185
|
+
CustomObjects as CustomObjects,
|
|
1186
|
+
type CustomObject as CustomObject,
|
|
1187
|
+
type CustomObjectsPageCursorURL as CustomObjectsPageCursorURL,
|
|
1188
|
+
type CustomObjectCreateParams as CustomObjectCreateParams,
|
|
1189
|
+
type CustomObjectUpdateParams as CustomObjectUpdateParams,
|
|
1190
|
+
};
|
|
1191
|
+
|
|
1192
|
+
export {
|
|
1193
|
+
Departments as Departments,
|
|
1194
|
+
type Department as Department,
|
|
1195
|
+
type DepartmentRetrieveResponse as DepartmentRetrieveResponse,
|
|
1196
|
+
type DepartmentsPageCursorURL as DepartmentsPageCursorURL,
|
|
1197
|
+
type DepartmentRetrieveParams as DepartmentRetrieveParams,
|
|
1198
|
+
type DepartmentListParams as DepartmentListParams,
|
|
1199
|
+
};
|
|
1200
|
+
|
|
1201
|
+
export {
|
|
1202
|
+
EmploymentTypes as EmploymentTypes,
|
|
1203
|
+
type CompanyEmploymentType as CompanyEmploymentType,
|
|
1204
|
+
type EmploymentTypeRetrieveResponse as EmploymentTypeRetrieveResponse,
|
|
1205
|
+
type CompanyEmploymentTypesPageCursorURL as CompanyEmploymentTypesPageCursorURL,
|
|
1206
|
+
type EmploymentTypeListParams as EmploymentTypeListParams,
|
|
1207
|
+
};
|
|
1208
|
+
|
|
1209
|
+
export {
|
|
1210
|
+
Entitlements as Entitlements,
|
|
1211
|
+
type EntitlementListResponse as EntitlementListResponse,
|
|
1212
|
+
type EntitlementListResponsesPageCursorURL as EntitlementListResponsesPageCursorURL,
|
|
1213
|
+
};
|
|
1214
|
+
|
|
1215
|
+
export {
|
|
1216
|
+
JobCodes as JobCodes,
|
|
1217
|
+
type JobCode as JobCode,
|
|
1218
|
+
type JobCodeRequest as JobCodeRequest,
|
|
1219
|
+
type JobCodeRetrieveResponse as JobCodeRetrieveResponse,
|
|
1220
|
+
type JobCodesPageCursorURL as JobCodesPageCursorURL,
|
|
1221
|
+
type JobCodeCreateParams as JobCodeCreateParams,
|
|
1222
|
+
type JobCodeRetrieveParams as JobCodeRetrieveParams,
|
|
1223
|
+
type JobCodeUpdateParams as JobCodeUpdateParams,
|
|
1224
|
+
type JobCodeListParams as JobCodeListParams,
|
|
1225
|
+
type JobCodeListChangeLogParams as JobCodeListChangeLogParams,
|
|
1226
|
+
};
|
|
1227
|
+
|
|
1228
|
+
export {
|
|
1229
|
+
JobDimensions as JobDimensions,
|
|
1230
|
+
type JobDimension as JobDimension,
|
|
1231
|
+
type JobDimensionRequest as JobDimensionRequest,
|
|
1232
|
+
type JobDimensionRetrieveResponse as JobDimensionRetrieveResponse,
|
|
1233
|
+
type JobDimensionsPageCursorURL as JobDimensionsPageCursorURL,
|
|
1234
|
+
type JobDimensionCreateParams as JobDimensionCreateParams,
|
|
1235
|
+
type JobDimensionUpdateParams as JobDimensionUpdateParams,
|
|
1236
|
+
type JobDimensionListParams as JobDimensionListParams,
|
|
1237
|
+
};
|
|
1238
|
+
|
|
1239
|
+
export {
|
|
1240
|
+
JobRequisitions as JobRequisitions,
|
|
1241
|
+
type JobRequisition as JobRequisition,
|
|
1242
|
+
type JobRequisitionsPageCursorURL as JobRequisitionsPageCursorURL,
|
|
1243
|
+
type JobRequisitionListParams as JobRequisitionListParams,
|
|
1244
|
+
};
|
|
1245
|
+
|
|
1246
|
+
export {
|
|
1247
|
+
KioskBadges as KioskBadges,
|
|
1248
|
+
type TimeKioskBadge as TimeKioskBadge,
|
|
1249
|
+
type KioskBadgeCreateResponse as KioskBadgeCreateResponse,
|
|
1250
|
+
type KioskBadgeRetrieveResponse as KioskBadgeRetrieveResponse,
|
|
1251
|
+
type KioskBadgeUpdateResponse as KioskBadgeUpdateResponse,
|
|
1252
|
+
type KioskBadgeListResponse as KioskBadgeListResponse,
|
|
1253
|
+
type KioskBadgeListResponsesPageCursorURL as KioskBadgeListResponsesPageCursorURL,
|
|
1254
|
+
type KioskBadgeCreateParams as KioskBadgeCreateParams,
|
|
1255
|
+
type KioskBadgeRetrieveParams as KioskBadgeRetrieveParams,
|
|
1256
|
+
type KioskBadgeUpdateParams as KioskBadgeUpdateParams,
|
|
1257
|
+
type KioskBadgeListParams as KioskBadgeListParams,
|
|
1258
|
+
};
|
|
1259
|
+
|
|
1260
|
+
export {
|
|
1261
|
+
LeaveBalances as LeaveBalances,
|
|
1262
|
+
type LeaveBalance as LeaveBalance,
|
|
1263
|
+
type LeaveBalanceRetrieveResponse as LeaveBalanceRetrieveResponse,
|
|
1264
|
+
type LeaveBalancesPageCursorURL as LeaveBalancesPageCursorURL,
|
|
1265
|
+
type LeaveBalanceRetrieveParams as LeaveBalanceRetrieveParams,
|
|
1266
|
+
type LeaveBalanceListParams as LeaveBalanceListParams,
|
|
1267
|
+
};
|
|
1268
|
+
|
|
1269
|
+
export {
|
|
1270
|
+
LeaveRequests as LeaveRequests,
|
|
1271
|
+
type LeaveRequest as LeaveRequest,
|
|
1272
|
+
type LeaveRequestCreateResponse as LeaveRequestCreateResponse,
|
|
1273
|
+
type LeaveRequestRetrieveResponse as LeaveRequestRetrieveResponse,
|
|
1274
|
+
type LeaveRequestUpdateResponse as LeaveRequestUpdateResponse,
|
|
1275
|
+
type LeaveRequestListResponse as LeaveRequestListResponse,
|
|
1276
|
+
type LeaveRequestListResponsesPageCursorURL as LeaveRequestListResponsesPageCursorURL,
|
|
1277
|
+
type LeaveRequestCreateParams as LeaveRequestCreateParams,
|
|
1278
|
+
type LeaveRequestRetrieveParams as LeaveRequestRetrieveParams,
|
|
1279
|
+
type LeaveRequestUpdateParams as LeaveRequestUpdateParams,
|
|
1280
|
+
type LeaveRequestListParams as LeaveRequestListParams,
|
|
1281
|
+
};
|
|
1282
|
+
|
|
1283
|
+
export {
|
|
1284
|
+
LeaveTypes as LeaveTypes,
|
|
1285
|
+
type LeaveType as LeaveType,
|
|
1286
|
+
type LeaveTypeRetrieveResponse as LeaveTypeRetrieveResponse,
|
|
1287
|
+
type LeaveTypesPageCursorURL as LeaveTypesPageCursorURL,
|
|
1288
|
+
type LeaveTypeListParams as LeaveTypeListParams,
|
|
1289
|
+
};
|
|
1290
|
+
|
|
1291
|
+
export {
|
|
1292
|
+
LegalEntities as LegalEntities,
|
|
1293
|
+
type LegalEntity as LegalEntity,
|
|
1294
|
+
type LegalEntityRetrieveResponse as LegalEntityRetrieveResponse,
|
|
1295
|
+
type LegalEntitiesPageCursorURL as LegalEntitiesPageCursorURL,
|
|
1296
|
+
type LegalEntityRetrieveParams as LegalEntityRetrieveParams,
|
|
1297
|
+
type LegalEntityListParams as LegalEntityListParams,
|
|
1298
|
+
};
|
|
1299
|
+
|
|
1300
|
+
export {
|
|
1301
|
+
Levels as Levels,
|
|
1302
|
+
type Level as Level,
|
|
1303
|
+
type LevelRetrieveResponse as LevelRetrieveResponse,
|
|
1304
|
+
type LevelsPageCursorURL as LevelsPageCursorURL,
|
|
1305
|
+
type LevelRetrieveParams as LevelRetrieveParams,
|
|
1306
|
+
type LevelListParams as LevelListParams,
|
|
1307
|
+
};
|
|
1308
|
+
|
|
1309
|
+
export {
|
|
1310
|
+
ObjectCategories as ObjectCategories,
|
|
1311
|
+
type ObjectCategory as ObjectCategory,
|
|
1312
|
+
type ObjectCategoriesPageCursorURL as ObjectCategoriesPageCursorURL,
|
|
1313
|
+
type ObjectCategoryCreateParams as ObjectCategoryCreateParams,
|
|
1314
|
+
type ObjectCategoryUpdateParams as ObjectCategoryUpdateParams,
|
|
1315
|
+
};
|
|
1316
|
+
|
|
1317
|
+
export {
|
|
1318
|
+
ShiftInputs as ShiftInputs,
|
|
1319
|
+
type ShiftInput as ShiftInput,
|
|
1320
|
+
type ShiftInputCreateResponse as ShiftInputCreateResponse,
|
|
1321
|
+
type ShiftInputRetrieveResponse as ShiftInputRetrieveResponse,
|
|
1322
|
+
type ShiftInputUpdateResponse as ShiftInputUpdateResponse,
|
|
1323
|
+
type ShiftInputListResponse as ShiftInputListResponse,
|
|
1324
|
+
type ShiftInputListResponsesPageCursorURL as ShiftInputListResponsesPageCursorURL,
|
|
1325
|
+
type ShiftInputCreateParams as ShiftInputCreateParams,
|
|
1326
|
+
type ShiftInputRetrieveParams as ShiftInputRetrieveParams,
|
|
1327
|
+
type ShiftInputUpdateParams as ShiftInputUpdateParams,
|
|
1328
|
+
type ShiftInputListParams as ShiftInputListParams,
|
|
1329
|
+
};
|
|
1330
|
+
|
|
1331
|
+
export {
|
|
1332
|
+
SSOMeResource as SSOMeResource,
|
|
1333
|
+
type SSOMe as SSOMe,
|
|
1334
|
+
type SSOMeRetrieveParams as SSOMeRetrieveParams,
|
|
1335
|
+
};
|
|
1336
|
+
|
|
1337
|
+
export {
|
|
1338
|
+
Supergroups as Supergroups,
|
|
1339
|
+
type Supergroup as Supergroup,
|
|
1340
|
+
type SupergroupRetrieveResponse as SupergroupRetrieveResponse,
|
|
1341
|
+
type SupergroupsPageCursorURL as SupergroupsPageCursorURL,
|
|
1342
|
+
type SupergroupListParams as SupergroupListParams,
|
|
1343
|
+
};
|
|
1344
|
+
|
|
1345
|
+
export {
|
|
1346
|
+
Teams as Teams,
|
|
1347
|
+
type Team as Team,
|
|
1348
|
+
type TeamRetrieveResponse as TeamRetrieveResponse,
|
|
1349
|
+
type TeamsPageCursorURL as TeamsPageCursorURL,
|
|
1350
|
+
type TeamRetrieveParams as TeamRetrieveParams,
|
|
1351
|
+
type TeamListParams as TeamListParams,
|
|
1352
|
+
};
|
|
1353
|
+
|
|
1354
|
+
export {
|
|
1355
|
+
TimeCards as TimeCards,
|
|
1356
|
+
type PayPeriod as PayPeriod,
|
|
1357
|
+
type TimeCard as TimeCard,
|
|
1358
|
+
type TimeCardRetrieveResponse as TimeCardRetrieveResponse,
|
|
1359
|
+
type TimeCardsPageCursorURL as TimeCardsPageCursorURL,
|
|
1360
|
+
type TimeCardRetrieveParams as TimeCardRetrieveParams,
|
|
1361
|
+
type TimeCardListParams as TimeCardListParams,
|
|
1362
|
+
};
|
|
1363
|
+
|
|
1364
|
+
export {
|
|
1365
|
+
TimeEntries as TimeEntries,
|
|
1366
|
+
type TimeEntry as TimeEntry,
|
|
1367
|
+
type TimeEntryCreateResponse as TimeEntryCreateResponse,
|
|
1368
|
+
type TimeEntryRetrieveResponse as TimeEntryRetrieveResponse,
|
|
1369
|
+
type TimeEntryUpdateResponse as TimeEntryUpdateResponse,
|
|
1370
|
+
type TimeEntryListResponse as TimeEntryListResponse,
|
|
1371
|
+
type TimeEntryListResponsesPageCursorURL as TimeEntryListResponsesPageCursorURL,
|
|
1372
|
+
type TimeEntryCreateParams as TimeEntryCreateParams,
|
|
1373
|
+
type TimeEntryRetrieveParams as TimeEntryRetrieveParams,
|
|
1374
|
+
type TimeEntryUpdateParams as TimeEntryUpdateParams,
|
|
1375
|
+
type TimeEntryListParams as TimeEntryListParams,
|
|
1376
|
+
};
|
|
1377
|
+
|
|
1378
|
+
export {
|
|
1379
|
+
Tracks as Tracks,
|
|
1380
|
+
type Track as Track,
|
|
1381
|
+
type TrackRetrieveResponse as TrackRetrieveResponse,
|
|
1382
|
+
type TracksPageCursorURL as TracksPageCursorURL,
|
|
1383
|
+
type TrackListParams as TrackListParams,
|
|
1384
|
+
};
|
|
1385
|
+
|
|
1386
|
+
export {
|
|
1387
|
+
Users as Users,
|
|
1388
|
+
type User as User,
|
|
1389
|
+
type UserRetrieveResponse as UserRetrieveResponse,
|
|
1390
|
+
type UsersPageCursorURL as UsersPageCursorURL,
|
|
1391
|
+
type UserListParams as UserListParams,
|
|
1392
|
+
};
|
|
1393
|
+
|
|
1394
|
+
export {
|
|
1395
|
+
WorkLocations as WorkLocations,
|
|
1396
|
+
type WorkLocation as WorkLocation,
|
|
1397
|
+
type WorkLocationRetrieveResponse as WorkLocationRetrieveResponse,
|
|
1398
|
+
type WorkLocationsPageCursorURL as WorkLocationsPageCursorURL,
|
|
1399
|
+
type WorkLocationListParams as WorkLocationListParams,
|
|
1400
|
+
};
|
|
1401
|
+
|
|
1402
|
+
export {
|
|
1403
|
+
Workers as Workers,
|
|
1404
|
+
type Worker as Worker,
|
|
1405
|
+
type WorkerRetrieveResponse as WorkerRetrieveResponse,
|
|
1406
|
+
type WorkersPageCursorURL as WorkersPageCursorURL,
|
|
1407
|
+
type WorkerRetrieveParams as WorkerRetrieveParams,
|
|
1408
|
+
type WorkerListParams as WorkerListParams,
|
|
1409
|
+
};
|
|
1410
|
+
|
|
1411
|
+
export {
|
|
1412
|
+
BusinessPartners as BusinessPartners,
|
|
1413
|
+
type BusinessPartner as BusinessPartner,
|
|
1414
|
+
type Meta as Meta,
|
|
1415
|
+
type BusinessPartnerRetrieveResponse as BusinessPartnerRetrieveResponse,
|
|
1416
|
+
type BusinessPartnersPageCursorURL as BusinessPartnersPageCursorURL,
|
|
1417
|
+
type BusinessPartnerCreateParams as BusinessPartnerCreateParams,
|
|
1418
|
+
type BusinessPartnerRetrieveParams as BusinessPartnerRetrieveParams,
|
|
1419
|
+
type BusinessPartnerListParams as BusinessPartnerListParams,
|
|
1420
|
+
};
|
|
1421
|
+
|
|
1422
|
+
export {
|
|
1423
|
+
BusinessPartnerGroups as BusinessPartnerGroups,
|
|
1424
|
+
type BusinessPartnerGroup as BusinessPartnerGroup,
|
|
1425
|
+
type BusinessPartnerGroupRetrieveResponse as BusinessPartnerGroupRetrieveResponse,
|
|
1426
|
+
type BusinessPartnerGroupsPageCursorURL as BusinessPartnerGroupsPageCursorURL,
|
|
1427
|
+
type BusinessPartnerGroupCreateParams as BusinessPartnerGroupCreateParams,
|
|
1428
|
+
type BusinessPartnerGroupRetrieveParams as BusinessPartnerGroupRetrieveParams,
|
|
1429
|
+
type BusinessPartnerGroupListParams as BusinessPartnerGroupListParams,
|
|
1430
|
+
};
|
|
1431
|
+
|
|
1432
|
+
export {
|
|
1433
|
+
Functions as Functions,
|
|
1434
|
+
type Function as Function,
|
|
1435
|
+
type FunctionCreateDevBundleResponse as FunctionCreateDevBundleResponse,
|
|
1436
|
+
type FunctionsPageCursorURL as FunctionsPageCursorURL,
|
|
1437
|
+
type FunctionCreateParams as FunctionCreateParams,
|
|
1438
|
+
type FunctionUpdateParams as FunctionUpdateParams,
|
|
1439
|
+
type FunctionListParams as FunctionListParams,
|
|
1440
|
+
};
|
|
1441
|
+
|
|
1442
|
+
export {
|
|
1443
|
+
JobAssignments as JobAssignments,
|
|
1444
|
+
type AttributeChangeDetails as AttributeChangeDetails,
|
|
1445
|
+
type JobAssignment as JobAssignment,
|
|
1446
|
+
type JobAssignmentRetrieveResponse as JobAssignmentRetrieveResponse,
|
|
1447
|
+
type JobAssignmentsPageCursorURL as JobAssignmentsPageCursorURL,
|
|
1448
|
+
type AttributeChangeDetailsPageCursorURL as AttributeChangeDetailsPageCursorURL,
|
|
1449
|
+
type JobAssignmentRetrieveParams as JobAssignmentRetrieveParams,
|
|
1450
|
+
type JobAssignmentListParams as JobAssignmentListParams,
|
|
1451
|
+
type JobAssignmentListChangeLogParams as JobAssignmentListChangeLogParams,
|
|
1452
|
+
};
|
|
1453
|
+
|
|
1454
|
+
export {
|
|
1455
|
+
JobPayRateExceptions as JobPayRateExceptions,
|
|
1456
|
+
type JobPayRateException as JobPayRateException,
|
|
1457
|
+
type JobPayRateExceptionRetrieveResponse as JobPayRateExceptionRetrieveResponse,
|
|
1458
|
+
type JobPayRateExceptionsPageCursorURL as JobPayRateExceptionsPageCursorURL,
|
|
1459
|
+
type JobPayRateExceptionRetrieveParams as JobPayRateExceptionRetrieveParams,
|
|
1460
|
+
type JobPayRateExceptionListParams as JobPayRateExceptionListParams,
|
|
1461
|
+
type JobPayRateExceptionListChangeLogParams as JobPayRateExceptionListChangeLogParams,
|
|
1462
|
+
};
|
|
1463
|
+
|
|
1464
|
+
export {
|
|
1465
|
+
Schedules as Schedules,
|
|
1466
|
+
type ScheduleRetrieveResponse as ScheduleRetrieveResponse,
|
|
1467
|
+
type ScheduleListResponse as ScheduleListResponse,
|
|
1468
|
+
type ScheduleListResponsesPageCursorURL as ScheduleListResponsesPageCursorURL,
|
|
1469
|
+
type ScheduleRetrieveParams as ScheduleRetrieveParams,
|
|
1470
|
+
type ScheduleListParams as ScheduleListParams,
|
|
1471
|
+
};
|
|
1472
|
+
|
|
1473
|
+
export {
|
|
1474
|
+
HeadcountPositions as HeadcountPositions,
|
|
1475
|
+
type HeadcountPositionRetrieveResponse as HeadcountPositionRetrieveResponse,
|
|
1476
|
+
type HeadcountPositionListResponse as HeadcountPositionListResponse,
|
|
1477
|
+
type HeadcountPositionListResponsesPageCursorURL as HeadcountPositionListResponsesPageCursorURL,
|
|
1478
|
+
type HeadcountPositionRetrieveParams as HeadcountPositionRetrieveParams,
|
|
1479
|
+
type HeadcountPositionListParams as HeadcountPositionListParams,
|
|
1480
|
+
};
|
|
1481
|
+
|
|
1482
|
+
export {
|
|
1483
|
+
Shiftassignments as Shiftassignments,
|
|
1484
|
+
type ShiftassignmentRetrieveResponse as ShiftassignmentRetrieveResponse,
|
|
1485
|
+
type ShiftassignmentListResponse as ShiftassignmentListResponse,
|
|
1486
|
+
type ShiftassignmentListResponsesPageCursorURL as ShiftassignmentListResponsesPageCursorURL,
|
|
1487
|
+
type ShiftassignmentRetrieveParams as ShiftassignmentRetrieveParams,
|
|
1488
|
+
type ShiftassignmentListParams as ShiftassignmentListParams,
|
|
1489
|
+
};
|
|
1490
|
+
|
|
1491
|
+
export {
|
|
1492
|
+
HeadcountPriorities as HeadcountPriorities,
|
|
1493
|
+
type HeadcountPriorityRetrieveResponse as HeadcountPriorityRetrieveResponse,
|
|
1494
|
+
type HeadcountPriorityListResponse as HeadcountPriorityListResponse,
|
|
1495
|
+
type HeadcountPriorityListResponsesPageCursorURL as HeadcountPriorityListResponsesPageCursorURL,
|
|
1496
|
+
type HeadcountPriorityListParams as HeadcountPriorityListParams,
|
|
1497
|
+
};
|
|
1498
|
+
|
|
1499
|
+
export {
|
|
1500
|
+
JobFunctions as JobFunctions,
|
|
1501
|
+
type JobFunctionRetrieveResponse as JobFunctionRetrieveResponse,
|
|
1502
|
+
type JobFunctionListResponse as JobFunctionListResponse,
|
|
1503
|
+
type JobFunctionListResponsesPageCursorURL as JobFunctionListResponsesPageCursorURL,
|
|
1504
|
+
type JobFunctionListParams as JobFunctionListParams,
|
|
1505
|
+
};
|
|
1506
|
+
|
|
1507
|
+
export {
|
|
1508
|
+
LocationFactors as LocationFactors,
|
|
1509
|
+
type LocationFactorRetrieveResponse as LocationFactorRetrieveResponse,
|
|
1510
|
+
type LocationFactorListResponse as LocationFactorListResponse,
|
|
1511
|
+
type LocationFactorListResponsesPageCursorURL as LocationFactorListResponsesPageCursorURL,
|
|
1512
|
+
type LocationFactorListParams as LocationFactorListParams,
|
|
1513
|
+
};
|
|
1514
|
+
|
|
1515
|
+
export type Address = API.Address;
|
|
1516
|
+
export type CountryCode = API.CountryCode;
|
|
1517
|
+
export type RedactedFields = API.RedactedFields;
|
|
1518
|
+
}
|