@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.mts","sourceRoot":"","sources":["../src/internal/errors.ts"],"names":[],"mappings":"AAEA,wBAAgB,YAAY,CAAC,GAAG,EAAE,OAAO,WASxC;AAED,eAAO,MAAM,WAAW,GAAI,KAAK,GAAG,KAAG,KAmBtC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/internal/errors.ts"],"names":[],"mappings":"AAEA,wBAAgB,YAAY,CAAC,GAAG,EAAE,OAAO,WASxC;AAED,eAAO,MAAM,WAAW,GAAI,KAAK,GAAG,KAAG,KAmBtC,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.castToError = void 0;
|
|
5
|
+
exports.isAbortError = isAbortError;
|
|
6
|
+
function isAbortError(err) {
|
|
7
|
+
return (typeof err === 'object' &&
|
|
8
|
+
err !== null &&
|
|
9
|
+
// Spec-compliant fetch implementations
|
|
10
|
+
(('name' in err && err.name === 'AbortError') ||
|
|
11
|
+
// Expo fetch
|
|
12
|
+
('message' in err && String(err.message).includes('FetchRequestCanceledException'))));
|
|
13
|
+
}
|
|
14
|
+
const castToError = (err) => {
|
|
15
|
+
if (err instanceof Error)
|
|
16
|
+
return err;
|
|
17
|
+
if (typeof err === 'object' && err !== null) {
|
|
18
|
+
try {
|
|
19
|
+
if (Object.prototype.toString.call(err) === '[object Error]') {
|
|
20
|
+
// @ts-ignore - not all envs have native support for cause yet
|
|
21
|
+
const error = new Error(err.message, err.cause ? { cause: err.cause } : {});
|
|
22
|
+
if (err.stack)
|
|
23
|
+
error.stack = err.stack;
|
|
24
|
+
// @ts-ignore - not all envs have native support for cause yet
|
|
25
|
+
if (err.cause && !error.cause)
|
|
26
|
+
error.cause = err.cause;
|
|
27
|
+
if (err.name)
|
|
28
|
+
error.name = err.name;
|
|
29
|
+
return error;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
catch { }
|
|
33
|
+
try {
|
|
34
|
+
return new Error(JSON.stringify(err));
|
|
35
|
+
}
|
|
36
|
+
catch { }
|
|
37
|
+
}
|
|
38
|
+
return new Error(err);
|
|
39
|
+
};
|
|
40
|
+
exports.castToError = castToError;
|
|
41
|
+
//# sourceMappingURL=errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,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BACpC,OAAO,KAAK,CAAC;YACf,CAAC;QACH,CAAC;QAAC,MAAM,CAAC,CAAA,CAAC;QACV,IAAI,CAAC;YACH,OAAO,IAAI,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACxC,CAAC;QAAC,MAAM,CAAC,CAAA,CAAC;IACZ,CAAC;IACD,OAAO,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC;AACxB,CAAC,CAAC;AAnBW,QAAA,WAAW,eAmBtB"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export function isAbortError(err) {
|
|
3
|
+
return (typeof err === 'object' &&
|
|
4
|
+
err !== null &&
|
|
5
|
+
// Spec-compliant fetch implementations
|
|
6
|
+
(('name' in err && err.name === 'AbortError') ||
|
|
7
|
+
// Expo fetch
|
|
8
|
+
('message' in err && String(err.message).includes('FetchRequestCanceledException'))));
|
|
9
|
+
}
|
|
10
|
+
export const castToError = (err) => {
|
|
11
|
+
if (err instanceof Error)
|
|
12
|
+
return err;
|
|
13
|
+
if (typeof err === 'object' && err !== null) {
|
|
14
|
+
try {
|
|
15
|
+
if (Object.prototype.toString.call(err) === '[object Error]') {
|
|
16
|
+
// @ts-ignore - not all envs have native support for cause yet
|
|
17
|
+
const error = new Error(err.message, err.cause ? { cause: err.cause } : {});
|
|
18
|
+
if (err.stack)
|
|
19
|
+
error.stack = err.stack;
|
|
20
|
+
// @ts-ignore - not all envs have native support for cause yet
|
|
21
|
+
if (err.cause && !error.cause)
|
|
22
|
+
error.cause = err.cause;
|
|
23
|
+
if (err.name)
|
|
24
|
+
error.name = err.name;
|
|
25
|
+
return error;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
catch { }
|
|
29
|
+
try {
|
|
30
|
+
return new Error(JSON.stringify(err));
|
|
31
|
+
}
|
|
32
|
+
catch { }
|
|
33
|
+
}
|
|
34
|
+
return new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CAAC,KAAK,CAAC;gBACvD,IAAI,GAAG,CAAC,IAAI;oBAAE,KAAK,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC;gBACpC,OAAO,KAAK,CAAC;YACf,CAAC;QACH,CAAC;QAAC,MAAM,CAAC,CAAA,CAAC;QACV,IAAI,CAAC;YACH,OAAO,IAAI,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACxC,CAAC;QAAC,MAAM,CAAC,CAAA,CAAC;IACZ,CAAC;IACD,OAAO,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC;AACxB,CAAC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type HeaderValue = string | undefined | null;
|
|
2
|
+
export type HeadersLike = Headers | readonly HeaderValue[][] | Record<string, HeaderValue | readonly HeaderValue[]> | undefined | null | NullableHeaders;
|
|
3
|
+
declare const brand_privateNullableHeaders: unique symbol;
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
* Users can pass explicit nulls to unset default headers. When we parse them
|
|
7
|
+
* into a standard headers type we need to preserve that information.
|
|
8
|
+
*/
|
|
9
|
+
export type NullableHeaders = {
|
|
10
|
+
/** Brand check, prevent users from creating a NullableHeaders. */
|
|
11
|
+
[brand_privateNullableHeaders]: true;
|
|
12
|
+
/** Parsed headers. */
|
|
13
|
+
values: Headers;
|
|
14
|
+
/** Set of lowercase header names explicitly set to null. */
|
|
15
|
+
nulls: Set<string>;
|
|
16
|
+
};
|
|
17
|
+
export declare const buildHeaders: (newHeaders: HeadersLike[]) => NullableHeaders;
|
|
18
|
+
export declare const isEmptyHeaders: (headers: HeadersLike) => boolean;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=headers.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"headers.d.mts","sourceRoot":"","sources":["../src/internal/headers.ts"],"names":[],"mappings":"AAIA,KAAK,WAAW,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;AAC7C,MAAM,MAAM,WAAW,GACnB,OAAO,GACP,SAAS,WAAW,EAAE,EAAE,GACxB,MAAM,CAAC,MAAM,EAAE,WAAW,GAAG,SAAS,WAAW,EAAE,CAAC,GACpD,SAAS,GACT,IAAI,GACJ,eAAe,CAAC;AAEpB,QAAA,MAAM,4BAA4B,eAAyD,CAAC;AAE5F;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,kEAAkE;IAClE,CAAC,4BAA4B,CAAC,EAAE,IAAI,CAAC;IACrC,sBAAsB;IACtB,MAAM,EAAE,OAAO,CAAC;IAChB,4DAA4D;IAC5D,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CACpB,CAAC;AA2CF,eAAO,MAAM,YAAY,GAAI,YAAY,WAAW,EAAE,KAAG,eAqBxD,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,SAAS,WAAW,YAGlD,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type HeaderValue = string | undefined | null;
|
|
2
|
+
export type HeadersLike = Headers | readonly HeaderValue[][] | Record<string, HeaderValue | readonly HeaderValue[]> | undefined | null | NullableHeaders;
|
|
3
|
+
declare const brand_privateNullableHeaders: unique symbol;
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
* Users can pass explicit nulls to unset default headers. When we parse them
|
|
7
|
+
* into a standard headers type we need to preserve that information.
|
|
8
|
+
*/
|
|
9
|
+
export type NullableHeaders = {
|
|
10
|
+
/** Brand check, prevent users from creating a NullableHeaders. */
|
|
11
|
+
[brand_privateNullableHeaders]: true;
|
|
12
|
+
/** Parsed headers. */
|
|
13
|
+
values: Headers;
|
|
14
|
+
/** Set of lowercase header names explicitly set to null. */
|
|
15
|
+
nulls: Set<string>;
|
|
16
|
+
};
|
|
17
|
+
export declare const buildHeaders: (newHeaders: HeadersLike[]) => NullableHeaders;
|
|
18
|
+
export declare const isEmptyHeaders: (headers: HeadersLike) => boolean;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=headers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"headers.d.ts","sourceRoot":"","sources":["../src/internal/headers.ts"],"names":[],"mappings":"AAIA,KAAK,WAAW,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;AAC7C,MAAM,MAAM,WAAW,GACnB,OAAO,GACP,SAAS,WAAW,EAAE,EAAE,GACxB,MAAM,CAAC,MAAM,EAAE,WAAW,GAAG,SAAS,WAAW,EAAE,CAAC,GACpD,SAAS,GACT,IAAI,GACJ,eAAe,CAAC;AAEpB,QAAA,MAAM,4BAA4B,eAAyD,CAAC;AAE5F;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,kEAAkE;IAClE,CAAC,4BAA4B,CAAC,EAAE,IAAI,CAAC;IACrC,sBAAsB;IACtB,MAAM,EAAE,OAAO,CAAC;IAChB,4DAA4D;IAC5D,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CACpB,CAAC;AA2CF,eAAO,MAAM,YAAY,GAAI,YAAY,WAAW,EAAE,KAAG,eAqBxD,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,SAAS,WAAW,YAGlD,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.isEmptyHeaders = exports.buildHeaders = void 0;
|
|
5
|
+
const values_1 = require("./utils/values.js");
|
|
6
|
+
const brand_privateNullableHeaders = /* @__PURE__ */ Symbol('brand.privateNullableHeaders');
|
|
7
|
+
function* iterateHeaders(headers) {
|
|
8
|
+
if (!headers)
|
|
9
|
+
return;
|
|
10
|
+
if (brand_privateNullableHeaders in headers) {
|
|
11
|
+
const { values, nulls } = headers;
|
|
12
|
+
yield* values.entries();
|
|
13
|
+
for (const name of nulls) {
|
|
14
|
+
yield [name, null];
|
|
15
|
+
}
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
let shouldClear = false;
|
|
19
|
+
let iter;
|
|
20
|
+
if (headers instanceof Headers) {
|
|
21
|
+
iter = headers.entries();
|
|
22
|
+
}
|
|
23
|
+
else if ((0, values_1.isReadonlyArray)(headers)) {
|
|
24
|
+
iter = headers;
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
shouldClear = true;
|
|
28
|
+
iter = Object.entries(headers ?? {});
|
|
29
|
+
}
|
|
30
|
+
for (let row of iter) {
|
|
31
|
+
const name = row[0];
|
|
32
|
+
if (typeof name !== 'string')
|
|
33
|
+
throw new TypeError('expected header name to be a string');
|
|
34
|
+
const values = (0, values_1.isReadonlyArray)(row[1]) ? row[1] : [row[1]];
|
|
35
|
+
let didClear = false;
|
|
36
|
+
for (const value of values) {
|
|
37
|
+
if (value === undefined)
|
|
38
|
+
continue;
|
|
39
|
+
// Objects keys always overwrite older headers, they never append.
|
|
40
|
+
// Yield a null to clear the header before adding the new values.
|
|
41
|
+
if (shouldClear && !didClear) {
|
|
42
|
+
didClear = true;
|
|
43
|
+
yield [name, null];
|
|
44
|
+
}
|
|
45
|
+
yield [name, value];
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
const buildHeaders = (newHeaders) => {
|
|
50
|
+
const targetHeaders = new Headers();
|
|
51
|
+
const nullHeaders = new Set();
|
|
52
|
+
for (const headers of newHeaders) {
|
|
53
|
+
const seenHeaders = new Set();
|
|
54
|
+
for (const [name, value] of iterateHeaders(headers)) {
|
|
55
|
+
const lowerName = name.toLowerCase();
|
|
56
|
+
if (!seenHeaders.has(lowerName)) {
|
|
57
|
+
targetHeaders.delete(name);
|
|
58
|
+
seenHeaders.add(lowerName);
|
|
59
|
+
}
|
|
60
|
+
if (value === null) {
|
|
61
|
+
targetHeaders.delete(name);
|
|
62
|
+
nullHeaders.add(lowerName);
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
targetHeaders.append(name, value);
|
|
66
|
+
nullHeaders.delete(lowerName);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
return { [brand_privateNullableHeaders]: true, values: targetHeaders, nulls: nullHeaders };
|
|
71
|
+
};
|
|
72
|
+
exports.buildHeaders = buildHeaders;
|
|
73
|
+
const isEmptyHeaders = (headers) => {
|
|
74
|
+
for (const _ of iterateHeaders(headers))
|
|
75
|
+
return false;
|
|
76
|
+
return true;
|
|
77
|
+
};
|
|
78
|
+
exports.isEmptyHeaders = isEmptyHeaders;
|
|
79
|
+
//# sourceMappingURL=headers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"headers.js","sourceRoot":"","sources":["../src/internal/headers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8CAAiD;AAWjD,MAAM,4BAA4B,GAAG,eAAe,CAAC,MAAM,CAAC,8BAA8B,CAAC,CAAC;AAgB5F,QAAQ,CAAC,CAAC,cAAc,CAAC,OAAoB;IAC3C,IAAI,CAAC,OAAO;QAAE,OAAO;IAErB,IAAI,4BAA4B,IAAI,OAAO,EAAE,CAAC;QAC5C,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC;QAClC,KAAK,CAAC,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACxB,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACzB,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACrB,CAAC;QACD,OAAO;IACT,CAAC;IAED,IAAI,WAAW,GAAG,KAAK,CAAC;IACxB,IAAI,IAAiE,CAAC;IACtE,IAAI,OAAO,YAAY,OAAO,EAAE,CAAC;QAC/B,IAAI,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;SAAM,IAAI,IAAA,wBAAe,EAAC,OAAO,CAAC,EAA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C,OAAO,CAAC,EAAE,CAAC;YACpD,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;YACrC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC;gBAChC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;gBAC3B,WAAW,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;YAC7B,CAAC;YACD,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;gBACnB,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;gBAC3B,WAAW,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;YAC7B,CAAC;iBAAM,CAAC;gBACN,aAAa,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;gBAClC,WAAW,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;YAChC,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAO,EAAE,CAAC,4BAA4B,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC;AAC7F,CAAC,CAAC;AArBW,QAAA,YAAY,gBAqBvB;AAEK,MAAM,cAAc,GAAG,CAAC,OAAoB,EAAE,EAAE;IACrD,KAAK,MAAM,CAAC,IAAI,cAAc,CAAC,OAAO,CAAC;QAAE,OAAO,KAAK,CAAC;IACtD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAHW,QAAA,cAAc,kBAGzB"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { isReadonlyArray } from "./utils/values.mjs";
|
|
3
|
+
const brand_privateNullableHeaders = /* @__PURE__ */ Symbol('brand.privateNullableHeaders');
|
|
4
|
+
function* iterateHeaders(headers) {
|
|
5
|
+
if (!headers)
|
|
6
|
+
return;
|
|
7
|
+
if (brand_privateNullableHeaders in headers) {
|
|
8
|
+
const { values, nulls } = headers;
|
|
9
|
+
yield* values.entries();
|
|
10
|
+
for (const name of nulls) {
|
|
11
|
+
yield [name, null];
|
|
12
|
+
}
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
let shouldClear = false;
|
|
16
|
+
let iter;
|
|
17
|
+
if (headers instanceof Headers) {
|
|
18
|
+
iter = headers.entries();
|
|
19
|
+
}
|
|
20
|
+
else if (isReadonlyArray(headers)) {
|
|
21
|
+
iter = headers;
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
shouldClear = true;
|
|
25
|
+
iter = Object.entries(headers ?? {});
|
|
26
|
+
}
|
|
27
|
+
for (let row of iter) {
|
|
28
|
+
const name = row[0];
|
|
29
|
+
if (typeof name !== 'string')
|
|
30
|
+
throw new TypeError('expected header name to be a string');
|
|
31
|
+
const values = isReadonlyArray(row[1]) ? row[1] : [row[1]];
|
|
32
|
+
let didClear = false;
|
|
33
|
+
for (const value of values) {
|
|
34
|
+
if (value === undefined)
|
|
35
|
+
continue;
|
|
36
|
+
// Objects keys always overwrite older headers, they never append.
|
|
37
|
+
// Yield a null to clear the header before adding the new values.
|
|
38
|
+
if (shouldClear && !didClear) {
|
|
39
|
+
didClear = true;
|
|
40
|
+
yield [name, null];
|
|
41
|
+
}
|
|
42
|
+
yield [name, value];
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
export const buildHeaders = (newHeaders) => {
|
|
47
|
+
const targetHeaders = new Headers();
|
|
48
|
+
const nullHeaders = new Set();
|
|
49
|
+
for (const headers of newHeaders) {
|
|
50
|
+
const seenHeaders = new Set();
|
|
51
|
+
for (const [name, value] of iterateHeaders(headers)) {
|
|
52
|
+
const lowerName = name.toLowerCase();
|
|
53
|
+
if (!seenHeaders.has(lowerName)) {
|
|
54
|
+
targetHeaders.delete(name);
|
|
55
|
+
seenHeaders.add(lowerName);
|
|
56
|
+
}
|
|
57
|
+
if (value === null) {
|
|
58
|
+
targetHeaders.delete(name);
|
|
59
|
+
nullHeaders.add(lowerName);
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
targetHeaders.append(name, value);
|
|
63
|
+
nullHeaders.delete(lowerName);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return { [brand_privateNullableHeaders]: true, values: targetHeaders, nulls: nullHeaders };
|
|
68
|
+
};
|
|
69
|
+
export const isEmptyHeaders = (headers) => {
|
|
70
|
+
for (const _ of iterateHeaders(headers))
|
|
71
|
+
return false;
|
|
72
|
+
return true;
|
|
73
|
+
};
|
|
74
|
+
//# sourceMappingURL=headers.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"headers.mjs","sourceRoot":"","sources":["../src/internal/headers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,eAAe,EAAE;AAW1B,MAAM,4BAA4B,GAAG,eAAe,CAAC,MAAM,CAAC,8BAA8B,CAAC,CAAC;AAgB5F,QAAQ,CAAC,CAAC,cAAc,CAAC,OAAoB;IAC3C,IAAI,CAAC,OAAO;QAAE,OAAO;IAErB,IAAI,4BAA4B,IAAI,OAAO,EAAE,CAAC;QAC5C,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC;QAClC,KAAK,CAAC,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACxB,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACzB,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACrB,CAAC;QACD,OAAO;IACT,CAAC;IAED,IAAI,WAAW,GAAG,KAAK,CAAC;IACxB,IAAI,IAAiE,CAAC;IACtE,IAAI,OAAO,YAAY,OAAO,EAAE,CAAC;QAC/B,IAAI,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;SAAM,IAAI,eAAe,CAAC,OAAO,CAAC,EAAE,CAAC;QACpC,IAAI,GAAG,OAAO,CAAC;IACjB,CAAC;SAA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IAAI,CAAC,WAAW,EAAE,CAAC;YACrC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC;gBAChC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;gBAC3B,WAAW,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;YAC7B,CAAC;YACD,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;gBACnB,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;gBAC3B,WAAW,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;YAC7B,CAAC;iBAAM,CAAC;gBACN,aAAa,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;gBAClC,WAAW,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;YAChC,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAO,EAAE,CAAC,4BAA4B,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC;AAC7F,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,OAAoB,EAAE,EAAE;IACrD,KAAK,MAAM,CAAC,IAAI,cAAc,CAAC,OAAO,CAAC;QAAE,OAAO,KAAK,CAAC;IACtD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { FinalRequestOptions } from "./request-options.mjs";
|
|
2
|
+
import { type RipplingSDK } from "../client.mjs";
|
|
3
|
+
export type APIResponseProps = {
|
|
4
|
+
response: Response;
|
|
5
|
+
options: FinalRequestOptions;
|
|
6
|
+
controller: AbortController;
|
|
7
|
+
requestLogID: string;
|
|
8
|
+
retryOfRequestLogID: string | undefined;
|
|
9
|
+
startTime: number;
|
|
10
|
+
};
|
|
11
|
+
export declare function defaultParseResponse<T>(client: RipplingSDK, props: APIResponseProps): Promise<T>;
|
|
12
|
+
//# sourceMappingURL=parse.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse.d.mts","sourceRoot":"","sources":["../src/internal/parse.ts"],"names":[],"mappings":"OAEO,KAAK,EAAE,mBAAmB,EAAE;OAC5B,EAAE,KAAK,WAAW,EAAE;AAG3B,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,mBAAmB,CAAC;IAC7B,UAAU,EAAE,eAAe,CAAC;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,wBAAsB,oBAAoB,CAAC,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAAC,CAAC,CAAC,CAkCtG"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { FinalRequestOptions } from "./request-options.js";
|
|
2
|
+
import { type RipplingSDK } from "../client.js";
|
|
3
|
+
export type APIResponseProps = {
|
|
4
|
+
response: Response;
|
|
5
|
+
options: FinalRequestOptions;
|
|
6
|
+
controller: AbortController;
|
|
7
|
+
requestLogID: string;
|
|
8
|
+
retryOfRequestLogID: string | undefined;
|
|
9
|
+
startTime: number;
|
|
10
|
+
};
|
|
11
|
+
export declare function defaultParseResponse<T>(client: RipplingSDK, props: APIResponseProps): Promise<T>;
|
|
12
|
+
//# sourceMappingURL=parse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../src/internal/parse.ts"],"names":[],"mappings":"OAEO,KAAK,EAAE,mBAAmB,EAAE;OAC5B,EAAE,KAAK,WAAW,EAAE;AAG3B,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,mBAAmB,CAAC;IAC7B,UAAU,EAAE,eAAe,CAAC;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,wBAAsB,oBAAoB,CAAC,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAAC,CAAC,CAAC,CAkCtG"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.defaultParseResponse = defaultParseResponse;
|
|
5
|
+
const log_1 = require("./utils/log.js");
|
|
6
|
+
async function defaultParseResponse(client, props) {
|
|
7
|
+
const { response, requestLogID, retryOfRequestLogID, startTime } = props;
|
|
8
|
+
const body = await (async () => {
|
|
9
|
+
// fetch refuses to read the body when the status code is 204.
|
|
10
|
+
if (response.status === 204) {
|
|
11
|
+
return null;
|
|
12
|
+
}
|
|
13
|
+
if (props.options.__binaryResponse) {
|
|
14
|
+
return response;
|
|
15
|
+
}
|
|
16
|
+
const contentType = response.headers.get('content-type');
|
|
17
|
+
const mediaType = contentType?.split(';')[0]?.trim();
|
|
18
|
+
const isJSON = mediaType?.includes('application/json') || mediaType?.endsWith('+json');
|
|
19
|
+
if (isJSON) {
|
|
20
|
+
const json = await response.json();
|
|
21
|
+
return json;
|
|
22
|
+
}
|
|
23
|
+
const text = await response.text();
|
|
24
|
+
return text;
|
|
25
|
+
})();
|
|
26
|
+
(0, log_1.loggerFor)(client).debug(`[${requestLogID}] response parsed`, (0, log_1.formatRequestDetails)({
|
|
27
|
+
retryOfRequestLogID,
|
|
28
|
+
url: response.url,
|
|
29
|
+
status: response.status,
|
|
30
|
+
body,
|
|
31
|
+
durationMs: Date.now() - startTime,
|
|
32
|
+
}));
|
|
33
|
+
return body;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=par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GAAG;QACjB,MAAM,EAAE,QAAQ,CAAC,MAAM;QACvB,IAAI;QACJ,UAAU,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS;KACnC,CAAC,CACH,CAAC;IACF,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { formatRequestDetails, loggerFor } from "./utils/log.mjs";
|
|
3
|
+
export async function defaultParseResponse(client, props) {
|
|
4
|
+
const { response, requestLogID, retryOfRequestLogID, startTime } = props;
|
|
5
|
+
const body = await (async () => {
|
|
6
|
+
// fetch refuses to read the body when the status code is 204.
|
|
7
|
+
if (response.status === 204) {
|
|
8
|
+
return null;
|
|
9
|
+
}
|
|
10
|
+
if (props.options.__binaryResponse) {
|
|
11
|
+
return response;
|
|
12
|
+
}
|
|
13
|
+
const contentType = response.headers.get('content-type');
|
|
14
|
+
const mediaType = contentType?.split(';')[0]?.trim();
|
|
15
|
+
const isJSON = mediaType?.includes('application/json') || mediaType?.endsWith('+json');
|
|
16
|
+
if (isJSON) {
|
|
17
|
+
const json = await response.json();
|
|
18
|
+
return json;
|
|
19
|
+
}
|
|
20
|
+
const text = await response.text();
|
|
21
|
+
return text;
|
|
22
|
+
})();
|
|
23
|
+
loggerFor(client).debug(`[${requestLogID}] response parsed`, formatRequestDetails({
|
|
24
|
+
retryOfRequestLogID,
|
|
25
|
+
url: response.url,
|
|
26
|
+
status: response.status,
|
|
27
|
+
body,
|
|
28
|
+
durationMs: Date.now() - startTime,
|
|
29
|
+
}));
|
|
30
|
+
return body;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=parse.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse.mjs","sourceRoot":"","sources":["../src/internal/parse.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAI/E,EAAE,oBAAoB,EAAE,SAAS,EAAE;AAW1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ACd,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { NullableHeaders } from "./headers.mjs";
|
|
2
|
+
import type { BodyInit } from "./builtin-types.mjs";
|
|
3
|
+
import type { HTTPMethod, MergedRequestInit } from "./types.mjs";
|
|
4
|
+
import { type HeadersLike } from "./headers.mjs";
|
|
5
|
+
export type FinalRequestOptions = RequestOptions & {
|
|
6
|
+
method: HTTPMethod;
|
|
7
|
+
path: string;
|
|
8
|
+
};
|
|
9
|
+
export type RequestOptions = {
|
|
10
|
+
/**
|
|
11
|
+
* The HTTP method for the request (e.g., 'get', 'post', 'put', 'delete').
|
|
12
|
+
*/
|
|
13
|
+
method?: HTTPMethod;
|
|
14
|
+
/**
|
|
15
|
+
* The URL path for the request.
|
|
16
|
+
*
|
|
17
|
+
* @example "/v1/foo"
|
|
18
|
+
*/
|
|
19
|
+
path?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Query parameters to include in the request URL.
|
|
22
|
+
*/
|
|
23
|
+
query?: object | undefined | null;
|
|
24
|
+
/**
|
|
25
|
+
* The request body. Can be a string, JSON object, FormData, or other supported types.
|
|
26
|
+
*/
|
|
27
|
+
body?: unknown;
|
|
28
|
+
/**
|
|
29
|
+
* HTTP headers to include with the request. Can be a Headers object, plain object, or array of tuples.
|
|
30
|
+
*/
|
|
31
|
+
headers?: HeadersLike;
|
|
32
|
+
/**
|
|
33
|
+
* The maximum number of times that the client will retry a request in case of a
|
|
34
|
+
* temporary failure, like a network error or a 5XX error from the server.
|
|
35
|
+
*
|
|
36
|
+
* @default 2
|
|
37
|
+
*/
|
|
38
|
+
maxRetries?: number;
|
|
39
|
+
stream?: boolean | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* The maximum amount of time (in milliseconds) that the client should wait for a response
|
|
42
|
+
* from the server before timing out a single request.
|
|
43
|
+
*
|
|
44
|
+
* @unit milliseconds
|
|
45
|
+
*/
|
|
46
|
+
timeout?: number;
|
|
47
|
+
/**
|
|
48
|
+
* Additional `RequestInit` options to be passed to the underlying `fetch` call.
|
|
49
|
+
* These options will be merged with the client's default fetch options.
|
|
50
|
+
*/
|
|
51
|
+
fetchOptions?: MergedRequestInit;
|
|
52
|
+
/**
|
|
53
|
+
* An AbortSignal that can be used to cancel the request.
|
|
54
|
+
*/
|
|
55
|
+
signal?: AbortSignal | undefined | null;
|
|
56
|
+
/**
|
|
57
|
+
* A unique key for this request to enable idempotency.
|
|
58
|
+
*/
|
|
59
|
+
idempotencyKey?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Override the default base URL for this specific request.
|
|
62
|
+
*/
|
|
63
|
+
defaultBaseURL?: string | undefined;
|
|
64
|
+
__binaryResponse?: boolean | undefined;
|
|
65
|
+
};
|
|
66
|
+
export type EncodedContent = {
|
|
67
|
+
bodyHeaders: HeadersLike;
|
|
68
|
+
body: BodyInit;
|
|
69
|
+
};
|
|
70
|
+
export type RequestEncoder = (request: {
|
|
71
|
+
headers: NullableHeaders;
|
|
72
|
+
body: unknown;
|
|
73
|
+
}) => EncodedContent;
|
|
74
|
+
export declare const FallbackEncoder: RequestEncoder;
|
|
75
|
+
//# sourceMappingURL=request-options.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-options.d.mts","sourceRoot":"","sources":["../src/internal/request-options.ts"],"names":[],"mappings":"OAEO,EAAE,eAAe,EAAE;OAEnB,KAAK,EAAE,QAAQ,EAAE;OACjB,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE;OACtC,EAAE,KAAK,WAAW,EAAE;AAE3B,MAAM,MAAM,mBAAmB,GAAG,cAAc,GAAG;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAExF,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IAEpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;IAElC;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IAEtB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAE7B;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,YAAY,CAAC,EAAE,iBAAiB,CAAC;IAEjC;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,GAAG,SAAS,GAAG,IAAI,CAAC;IAExC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAEpC,gBAAgB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAAE,WAAW,EAAE,WAAW,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC;AAC1E,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE;IAAE,OAAO,EAAE,eAAe,CAAC;IAAC,IAAI,EAAE,OAAO,CAAA;CAAE,KAAK,cAAc,CAAC;AAEtG,eAAO,MAAM,eAAe,EAAE,cAO7B,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { NullableHeaders } from "./headers.js";
|
|
2
|
+
import type { BodyInit } from "./builtin-types.js";
|
|
3
|
+
import type { HTTPMethod, MergedRequestInit } from "./types.js";
|
|
4
|
+
import { type HeadersLike } from "./headers.js";
|
|
5
|
+
export type FinalRequestOptions = RequestOptions & {
|
|
6
|
+
method: HTTPMethod;
|
|
7
|
+
path: string;
|
|
8
|
+
};
|
|
9
|
+
export type RequestOptions = {
|
|
10
|
+
/**
|
|
11
|
+
* The HTTP method for the request (e.g., 'get', 'post', 'put', 'delete').
|
|
12
|
+
*/
|
|
13
|
+
method?: HTTPMethod;
|
|
14
|
+
/**
|
|
15
|
+
* The URL path for the request.
|
|
16
|
+
*
|
|
17
|
+
* @example "/v1/foo"
|
|
18
|
+
*/
|
|
19
|
+
path?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Query parameters to include in the request URL.
|
|
22
|
+
*/
|
|
23
|
+
query?: object | undefined | null;
|
|
24
|
+
/**
|
|
25
|
+
* The request body. Can be a string, JSON object, FormData, or other supported types.
|
|
26
|
+
*/
|
|
27
|
+
body?: unknown;
|
|
28
|
+
/**
|
|
29
|
+
* HTTP headers to include with the request. Can be a Headers object, plain object, or array of tuples.
|
|
30
|
+
*/
|
|
31
|
+
headers?: HeadersLike;
|
|
32
|
+
/**
|
|
33
|
+
* The maximum number of times that the client will retry a request in case of a
|
|
34
|
+
* temporary failure, like a network error or a 5XX error from the server.
|
|
35
|
+
*
|
|
36
|
+
* @default 2
|
|
37
|
+
*/
|
|
38
|
+
maxRetries?: number;
|
|
39
|
+
stream?: boolean | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* The maximum amount of time (in milliseconds) that the client should wait for a response
|
|
42
|
+
* from the server before timing out a single request.
|
|
43
|
+
*
|
|
44
|
+
* @unit milliseconds
|
|
45
|
+
*/
|
|
46
|
+
timeout?: number;
|
|
47
|
+
/**
|
|
48
|
+
* Additional `RequestInit` options to be passed to the underlying `fetch` call.
|
|
49
|
+
* These options will be merged with the client's default fetch options.
|
|
50
|
+
*/
|
|
51
|
+
fetchOptions?: MergedRequestInit;
|
|
52
|
+
/**
|
|
53
|
+
* An AbortSignal that can be used to cancel the request.
|
|
54
|
+
*/
|
|
55
|
+
signal?: AbortSignal | undefined | null;
|
|
56
|
+
/**
|
|
57
|
+
* A unique key for this request to enable idempotency.
|
|
58
|
+
*/
|
|
59
|
+
idempotencyKey?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Override the default base URL for this specific request.
|
|
62
|
+
*/
|
|
63
|
+
defaultBaseURL?: string | undefined;
|
|
64
|
+
__binaryResponse?: boolean | undefined;
|
|
65
|
+
};
|
|
66
|
+
export type EncodedContent = {
|
|
67
|
+
bodyHeaders: HeadersLike;
|
|
68
|
+
body: BodyInit;
|
|
69
|
+
};
|
|
70
|
+
export type RequestEncoder = (request: {
|
|
71
|
+
headers: NullableHeaders;
|
|
72
|
+
body: unknown;
|
|
73
|
+
}) => EncodedContent;
|
|
74
|
+
export declare const FallbackEncoder: RequestEncoder;
|
|
75
|
+
//# sourceMappingURL=request-options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-options.d.ts","sourceRoot":"","sources":["../src/internal/request-options.ts"],"names":[],"mappings":"OAEO,EAAE,eAAe,EAAE;OAEnB,KAAK,EAAE,QAAQ,EAAE;OACjB,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE;OACtC,EAAE,KAAK,WAAW,EAAE;AAE3B,MAAM,MAAM,mBAAmB,GAAG,cAAc,GAAG;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAExF,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IAEpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;IAElC;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IAEtB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAE7B;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,YAAY,CAAC,EAAE,iBAAiB,CAAC;IAEjC;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,GAAG,SAAS,GAAG,IAAI,CAAC;IAExC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAEpC,gBAAgB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAAE,WAAW,EAAE,WAAW,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC;AAC1E,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE;IAAE,OAAO,EAAE,eAAe,CAAC;IAAC,IAAI,EAAE,OAAO,CAAA;CAAE,KAAK,cAAc,CAAC;AAEtG,eAAO,MAAM,eAAe,EAAE,cAO7B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.FallbackEncoder = void 0;
|
|
5
|
+
const FallbackEncoder = ({ headers, body }) => {
|
|
6
|
+
return {
|
|
7
|
+
bodyHeaders: {
|
|
8
|
+
'content-type': 'application/json',
|
|
9
|
+
},
|
|
10
|
+
body: JSON.stringify(body),
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
exports.FallbackEncoder = FallbackEncoder;
|
|
14
|
+
//# sourceMappingURL=request-options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-options.js","sourceRoot":"","sources":["../src/internal/request-options.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAmF/E,MAAM,eAAe,GAAmB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE;IACnE,OAAO;QACL,WAAW,EAAE;YACX,cAAc,EAAE,kBAAkB;SACnC;QACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;KAC3B,CAAC;AACJ,CAAC,CAAC;AAPW,QAAA,eAAe,mBAO1B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export const FallbackEncoder = ({ headers, body }) => {
|
|
3
|
+
return {
|
|
4
|
+
bodyHeaders: {
|
|
5
|
+
'content-type': 'application/json',
|
|
6
|
+
},
|
|
7
|
+
body: JSON.stringify(body),
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=request-options.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-options.mjs","sourceRoot":"","sources":["../src/internal/request-options.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAmFtF,MAAM,CAAC,MAAM,eAAe,GAAmB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE;IACnE,OAAO;QACL,WAAW,EAAE;YACX,cAAc,EAAE,kBAAkB;SACnC;QACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;KAC3B,CAAC;AACJ,CAAC,CAAC"}
|