@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,143 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { PageCursorURL, PagePromise } from "../../core/pagination.mjs";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
5
|
+
export declare class Records extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Create a new custom object record
|
|
8
|
+
*/
|
|
9
|
+
create(customObjectAPIName: string, body?: RecordCreateParams | null | undefined, options?: RequestOptions): APIPromise<RecordCreateResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* Retrieve a specific custom object record
|
|
12
|
+
*/
|
|
13
|
+
retrieve(customObjectAPIName: string, codrID: string, options?: RequestOptions): APIPromise<CustomObjectDataRow>;
|
|
14
|
+
/**
|
|
15
|
+
* Updated a specific custom object record
|
|
16
|
+
*/
|
|
17
|
+
update(customObjectAPIName: string, codrID: string, body?: RecordUpdateParams | null | undefined, options?: RequestOptions): APIPromise<RecordUpdateResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* A List of custom object records
|
|
20
|
+
*
|
|
21
|
+
* - Requires: `API Tier 1`
|
|
22
|
+
*/
|
|
23
|
+
list(customObjectAPIName: string, options?: RequestOptions): PagePromise<CustomObjectDataRowsPageCursorURL, CustomObjectDataRow>;
|
|
24
|
+
/**
|
|
25
|
+
* Delete a custom object record
|
|
26
|
+
*/
|
|
27
|
+
delete(customObjectAPIName: string, codrID: string, options?: RequestOptions): APIPromise<void>;
|
|
28
|
+
/**
|
|
29
|
+
* bulk create new custom object records
|
|
30
|
+
*/
|
|
31
|
+
bulkCreate(customObjectAPIName: string, body?: RecordBulkCreateParams | null | undefined, options?: RequestOptions): APIPromise<RecordBulkCreateResponse>;
|
|
32
|
+
/**
|
|
33
|
+
* Bulk Delete custom object records
|
|
34
|
+
*/
|
|
35
|
+
bulkDelete(customObjectAPIName: string, body?: RecordBulkDeleteParams | null | undefined, options?: RequestOptions): APIPromise<void>;
|
|
36
|
+
/**
|
|
37
|
+
* Bulk Updated a specific custom object records
|
|
38
|
+
*/
|
|
39
|
+
bulkUpdate(customObjectAPIName: string, body?: RecordBulkUpdateParams | null | undefined, options?: RequestOptions): APIPromise<RecordBulkUpdateResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* A List of custom object records filtered by querying
|
|
42
|
+
*/
|
|
43
|
+
query(customObjectAPIName: string, body?: RecordQueryParams | null | undefined, options?: RequestOptions): APIPromise<RecordQueryResponse>;
|
|
44
|
+
/**
|
|
45
|
+
* Retrieve a specific custom object record by its external_id
|
|
46
|
+
*/
|
|
47
|
+
retrieveByExternalID(customObjectAPIName: string, externalID: string, options?: RequestOptions): APIPromise<CustomObjectDataRow>;
|
|
48
|
+
}
|
|
49
|
+
export type CustomObjectDataRowsPageCursorURL = PageCursorURL<CustomObjectDataRow>;
|
|
50
|
+
export interface CustomObjectDataRow {
|
|
51
|
+
/**
|
|
52
|
+
* Identifier field
|
|
53
|
+
*/
|
|
54
|
+
id: string;
|
|
55
|
+
/**
|
|
56
|
+
* Record creation date
|
|
57
|
+
*/
|
|
58
|
+
created_at: string;
|
|
59
|
+
/**
|
|
60
|
+
* The name of the custom object datarow
|
|
61
|
+
*/
|
|
62
|
+
name: string;
|
|
63
|
+
/**
|
|
64
|
+
* Record update date
|
|
65
|
+
*/
|
|
66
|
+
updated_at: string;
|
|
67
|
+
created_by?: CustomObjectDataRow.CreatedBy;
|
|
68
|
+
/**
|
|
69
|
+
* The external id of the custom object datarow
|
|
70
|
+
*/
|
|
71
|
+
external_id?: string;
|
|
72
|
+
last_modified_by?: CustomObjectDataRow.LastModifiedBy;
|
|
73
|
+
owner_role?: CustomObjectDataRow.OwnerRole;
|
|
74
|
+
system_updated_at?: string;
|
|
75
|
+
[k: string]: unknown;
|
|
76
|
+
}
|
|
77
|
+
export declare namespace CustomObjectDataRow {
|
|
78
|
+
interface CreatedBy {
|
|
79
|
+
id?: string;
|
|
80
|
+
display_value?: string;
|
|
81
|
+
image?: string;
|
|
82
|
+
}
|
|
83
|
+
interface LastModifiedBy {
|
|
84
|
+
id?: string;
|
|
85
|
+
display_value?: string;
|
|
86
|
+
image?: string;
|
|
87
|
+
}
|
|
88
|
+
interface OwnerRole {
|
|
89
|
+
id?: string;
|
|
90
|
+
display_value?: string;
|
|
91
|
+
image?: string;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
export interface RecordCreateResponse {
|
|
95
|
+
data?: CustomObjectDataRow;
|
|
96
|
+
}
|
|
97
|
+
export interface RecordUpdateResponse {
|
|
98
|
+
data?: CustomObjectDataRow;
|
|
99
|
+
}
|
|
100
|
+
export interface RecordBulkCreateResponse {
|
|
101
|
+
data?: Array<CustomObjectDataRow>;
|
|
102
|
+
}
|
|
103
|
+
export interface RecordBulkUpdateResponse {
|
|
104
|
+
data?: Array<CustomObjectDataRow>;
|
|
105
|
+
}
|
|
106
|
+
export interface RecordQueryResponse {
|
|
107
|
+
cursor?: string;
|
|
108
|
+
results?: Array<CustomObjectDataRow>;
|
|
109
|
+
}
|
|
110
|
+
export type RecordCreateParams = {
|
|
111
|
+
[key: string]: unknown;
|
|
112
|
+
};
|
|
113
|
+
export type RecordUpdateParams = {
|
|
114
|
+
[key: string]: unknown;
|
|
115
|
+
};
|
|
116
|
+
export interface RecordBulkCreateParams {
|
|
117
|
+
all_or_nothing?: boolean;
|
|
118
|
+
rows_to_write?: Array<{
|
|
119
|
+
[key: string]: unknown;
|
|
120
|
+
}>;
|
|
121
|
+
}
|
|
122
|
+
export interface RecordBulkDeleteParams {
|
|
123
|
+
all_or_nothing?: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* a list of ids, e.g. [id_1, id_2].
|
|
126
|
+
*/
|
|
127
|
+
rows_to_delete?: Array<string>;
|
|
128
|
+
}
|
|
129
|
+
export interface RecordBulkUpdateParams {
|
|
130
|
+
all_or_nothing?: boolean;
|
|
131
|
+
rows_to_update?: Array<{
|
|
132
|
+
[key: string]: unknown;
|
|
133
|
+
}>;
|
|
134
|
+
}
|
|
135
|
+
export interface RecordQueryParams {
|
|
136
|
+
cursor?: string;
|
|
137
|
+
limit?: number;
|
|
138
|
+
query?: string;
|
|
139
|
+
}
|
|
140
|
+
export declare namespace Records {
|
|
141
|
+
export { type CustomObjectDataRow as CustomObjectDataRow, type RecordCreateResponse as RecordCreateResponse, type RecordUpdateResponse as RecordUpdateResponse, type RecordBulkCreateResponse as RecordBulkCreateResponse, type RecordBulkUpdateResponse as RecordBulkUpdateResponse, type RecordQueryResponse as RecordQueryResponse, type CustomObjectDataRowsPageCursorURL as CustomObjectDataRowsPageCursorURL, type RecordCreateParams as RecordCreateParams, type RecordUpdateParams as RecordUpdateParams, type RecordBulkCreateParams as RecordBulkCreateParams, type RecordBulkDeleteParams as RecordBulkDeleteParams, type RecordBulkUpdateParams as RecordBulkUpdateParams, type RecordQueryParams as RecordQueryParams, };
|
|
142
|
+
}
|
|
143
|
+
//# sourceMappingURL=records.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"records.d.mts","sourceRoot":"","sources":["../../src/resources/custom-objects/records.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,aAAa,EAAE,WAAW,EAAE;OAE9B,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CACJ,mBAAmB,EAAE,MAAM,EAC3B,IAAI,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAqB,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAInC;;OAEG;IACH,QAAQ,CACN,mBAAmB,EAAE,MAAM,EAC3B,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;IAIlC;;OAEG;IACH,MAAM,CACJ,mBAAmB,EAAE,MAAM,EAC3B,MAAM,EAAE,MAAM,EACd,IAAI,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAqB,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAOnC;;;;OAIG;IACH,IAAI,CACF,mBAAmB,EAAE,MAAM,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,iCAAiC,EAAE,mBAAmB,CAAC;IAQtE;;OAEG;IACH,MAAM,CAAC,mBAAmB,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE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
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { PageCursorURL, PagePromise } from "../../core/pagination.js";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
|
+
export declare class Records extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Create a new custom object record
|
|
8
|
+
*/
|
|
9
|
+
create(customObjectAPIName: string, body?: RecordCreateParams | null | undefined, options?: RequestOptions): APIPromise<RecordCreateResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* Retrieve a specific custom object record
|
|
12
|
+
*/
|
|
13
|
+
retrieve(customObjectAPIName: string, codrID: string, options?: RequestOptions): APIPromise<CustomObjectDataRow>;
|
|
14
|
+
/**
|
|
15
|
+
* Updated a specific custom object record
|
|
16
|
+
*/
|
|
17
|
+
update(customObjectAPIName: string, codrID: string, body?: RecordUpdateParams | null | undefined, options?: RequestOptions): APIPromise<RecordUpdateResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* A List of custom object records
|
|
20
|
+
*
|
|
21
|
+
* - Requires: `API Tier 1`
|
|
22
|
+
*/
|
|
23
|
+
list(customObjectAPIName: string, options?: RequestOptions): PagePromise<CustomObjectDataRowsPageCursorURL, CustomObjectDataRow>;
|
|
24
|
+
/**
|
|
25
|
+
* Delete a custom object record
|
|
26
|
+
*/
|
|
27
|
+
delete(customObjectAPIName: string, codrID: string, options?: RequestOptions): APIPromise<void>;
|
|
28
|
+
/**
|
|
29
|
+
* bulk create new custom object records
|
|
30
|
+
*/
|
|
31
|
+
bulkCreate(customObjectAPIName: string, body?: RecordBulkCreateParams | null | undefined, options?: RequestOptions): APIPromise<RecordBulkCreateResponse>;
|
|
32
|
+
/**
|
|
33
|
+
* Bulk Delete custom object records
|
|
34
|
+
*/
|
|
35
|
+
bulkDelete(customObjectAPIName: string, body?: RecordBulkDeleteParams | null | undefined, options?: RequestOptions): APIPromise<void>;
|
|
36
|
+
/**
|
|
37
|
+
* Bulk Updated a specific custom object records
|
|
38
|
+
*/
|
|
39
|
+
bulkUpdate(customObjectAPIName: string, body?: RecordBulkUpdateParams | null | undefined, options?: RequestOptions): APIPromise<RecordBulkUpdateResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* A List of custom object records filtered by querying
|
|
42
|
+
*/
|
|
43
|
+
query(customObjectAPIName: string, body?: RecordQueryParams | null | undefined, options?: RequestOptions): APIPromise<RecordQueryResponse>;
|
|
44
|
+
/**
|
|
45
|
+
* Retrieve a specific custom object record by its external_id
|
|
46
|
+
*/
|
|
47
|
+
retrieveByExternalID(customObjectAPIName: string, externalID: string, options?: RequestOptions): APIPromise<CustomObjectDataRow>;
|
|
48
|
+
}
|
|
49
|
+
export type CustomObjectDataRowsPageCursorURL = PageCursorURL<CustomObjectDataRow>;
|
|
50
|
+
export interface CustomObjectDataRow {
|
|
51
|
+
/**
|
|
52
|
+
* Identifier field
|
|
53
|
+
*/
|
|
54
|
+
id: string;
|
|
55
|
+
/**
|
|
56
|
+
* Record creation date
|
|
57
|
+
*/
|
|
58
|
+
created_at: string;
|
|
59
|
+
/**
|
|
60
|
+
* The name of the custom object datarow
|
|
61
|
+
*/
|
|
62
|
+
name: string;
|
|
63
|
+
/**
|
|
64
|
+
* Record update date
|
|
65
|
+
*/
|
|
66
|
+
updated_at: string;
|
|
67
|
+
created_by?: CustomObjectDataRow.CreatedBy;
|
|
68
|
+
/**
|
|
69
|
+
* The external id of the custom object datarow
|
|
70
|
+
*/
|
|
71
|
+
external_id?: string;
|
|
72
|
+
last_modified_by?: CustomObjectDataRow.LastModifiedBy;
|
|
73
|
+
owner_role?: CustomObjectDataRow.OwnerRole;
|
|
74
|
+
system_updated_at?: string;
|
|
75
|
+
[k: string]: unknown;
|
|
76
|
+
}
|
|
77
|
+
export declare namespace CustomObjectDataRow {
|
|
78
|
+
interface CreatedBy {
|
|
79
|
+
id?: string;
|
|
80
|
+
display_value?: string;
|
|
81
|
+
image?: string;
|
|
82
|
+
}
|
|
83
|
+
interface LastModifiedBy {
|
|
84
|
+
id?: string;
|
|
85
|
+
display_value?: string;
|
|
86
|
+
image?: string;
|
|
87
|
+
}
|
|
88
|
+
interface OwnerRole {
|
|
89
|
+
id?: string;
|
|
90
|
+
display_value?: string;
|
|
91
|
+
image?: string;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
export interface RecordCreateResponse {
|
|
95
|
+
data?: CustomObjectDataRow;
|
|
96
|
+
}
|
|
97
|
+
export interface RecordUpdateResponse {
|
|
98
|
+
data?: CustomObjectDataRow;
|
|
99
|
+
}
|
|
100
|
+
export interface RecordBulkCreateResponse {
|
|
101
|
+
data?: Array<CustomObjectDataRow>;
|
|
102
|
+
}
|
|
103
|
+
export interface RecordBulkUpdateResponse {
|
|
104
|
+
data?: Array<CustomObjectDataRow>;
|
|
105
|
+
}
|
|
106
|
+
export interface RecordQueryResponse {
|
|
107
|
+
cursor?: string;
|
|
108
|
+
results?: Array<CustomObjectDataRow>;
|
|
109
|
+
}
|
|
110
|
+
export type RecordCreateParams = {
|
|
111
|
+
[key: string]: unknown;
|
|
112
|
+
};
|
|
113
|
+
export type RecordUpdateParams = {
|
|
114
|
+
[key: string]: unknown;
|
|
115
|
+
};
|
|
116
|
+
export interface RecordBulkCreateParams {
|
|
117
|
+
all_or_nothing?: boolean;
|
|
118
|
+
rows_to_write?: Array<{
|
|
119
|
+
[key: string]: unknown;
|
|
120
|
+
}>;
|
|
121
|
+
}
|
|
122
|
+
export interface RecordBulkDeleteParams {
|
|
123
|
+
all_or_nothing?: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* a list of ids, e.g. [id_1, id_2].
|
|
126
|
+
*/
|
|
127
|
+
rows_to_delete?: Array<string>;
|
|
128
|
+
}
|
|
129
|
+
export interface RecordBulkUpdateParams {
|
|
130
|
+
all_or_nothing?: boolean;
|
|
131
|
+
rows_to_update?: Array<{
|
|
132
|
+
[key: string]: unknown;
|
|
133
|
+
}>;
|
|
134
|
+
}
|
|
135
|
+
export interface RecordQueryParams {
|
|
136
|
+
cursor?: string;
|
|
137
|
+
limit?: number;
|
|
138
|
+
query?: string;
|
|
139
|
+
}
|
|
140
|
+
export declare namespace Records {
|
|
141
|
+
export { type CustomObjectDataRow as CustomObjectDataRow, type RecordCreateResponse as RecordCreateResponse, type RecordUpdateResponse as RecordUpdateResponse, type RecordBulkCreateResponse as RecordBulkCreateResponse, type RecordBulkUpdateResponse as RecordBulkUpdateResponse, type RecordQueryResponse as RecordQueryResponse, type CustomObjectDataRowsPageCursorURL as CustomObjectDataRowsPageCursorURL, type RecordCreateParams as RecordCreateParams, type RecordUpdateParams as RecordUpdateParams, type RecordBulkCreateParams as RecordBulkCreateParams, type RecordBulkDeleteParams as RecordBulkDeleteParams, type RecordBulkUpdateParams as RecordBulkUpdateParams, type RecordQueryParams as RecordQueryParams, };
|
|
142
|
+
}
|
|
143
|
+
//# sourceMappingURL=records.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"records.d.ts","sourceRoot":"","sources":["../../src/resources/custom-objects/records.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,aAAa,EAAE,WAAW,EAAE;OAE9B,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CACJ,mBAAmB,EAAE,MAAM,EAC3B,IAAI,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAqB,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAInC;;OAEG;IACH,QAAQ,CACN,mBAAmB,EAAE,MAAM,EAC3B,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;IAIlC;;OAEG;IACH,MAAM,CACJ,mBAAmB,EAAE,MAAM,EAC3B,MAAM,EAAE,MAAM,EACd,IAAI,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAqB,EACvD,OAAO,CAAC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kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -0,0 +1,93 @@
|
|
|
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.Records = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../../core/pagination.js");
|
|
7
|
+
const headers_1 = require("../../internal/headers.js");
|
|
8
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
9
|
+
class Records extends resource_1.APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Create a new custom object record
|
|
12
|
+
*/
|
|
13
|
+
create(customObjectAPIName, body = undefined, options) {
|
|
14
|
+
return this._client.post((0, path_1.path) `/custom-objects/${customObjectAPIName}/records/`, { body, ...options });
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Retrieve a specific custom object record
|
|
18
|
+
*/
|
|
19
|
+
retrieve(customObjectAPIName, codrID, options) {
|
|
20
|
+
return this._client.get((0, path_1.path) `/custom-objects/${customObjectAPIName}/records/${codrID}/`, options);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Updated a specific custom object record
|
|
24
|
+
*/
|
|
25
|
+
update(customObjectAPIName, codrID, body = undefined, options) {
|
|
26
|
+
return this._client.patch((0, path_1.path) `/custom-objects/${customObjectAPIName}/records/${codrID}/`, {
|
|
27
|
+
body,
|
|
28
|
+
...options,
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* A List of custom object records
|
|
33
|
+
*
|
|
34
|
+
* - Requires: `API Tier 1`
|
|
35
|
+
*/
|
|
36
|
+
list(customObjectAPIName, options) {
|
|
37
|
+
return this._client.getAPIList((0, path_1.path) `/custom-objects/${customObjectAPIName}/records/`, (pagination_1.PageCursorURL), options);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Delete a custom object record
|
|
41
|
+
*/
|
|
42
|
+
delete(customObjectAPIName, codrID, options) {
|
|
43
|
+
return this._client.delete((0, path_1.path) `/custom-objects/${customObjectAPIName}/records/${codrID}/`, {
|
|
44
|
+
...options,
|
|
45
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* bulk create new custom object records
|
|
50
|
+
*/
|
|
51
|
+
bulkCreate(customObjectAPIName, body = {}, options) {
|
|
52
|
+
return this._client.post((0, path_1.path) `/custom-objects/${customObjectAPIName}/records/bulk/`, {
|
|
53
|
+
body,
|
|
54
|
+
...options,
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Bulk Delete custom object records
|
|
59
|
+
*/
|
|
60
|
+
bulkDelete(customObjectAPIName, body = {}, options) {
|
|
61
|
+
return this._client.post((0, path_1.path) `/custom-objects/${customObjectAPIName}/records/bulk-delete/`, {
|
|
62
|
+
body,
|
|
63
|
+
...options,
|
|
64
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Bulk Updated a specific custom object records
|
|
69
|
+
*/
|
|
70
|
+
bulkUpdate(customObjectAPIName, body = {}, options) {
|
|
71
|
+
return this._client.patch((0, path_1.path) `/custom-objects/${customObjectAPIName}/records/bulk/`, {
|
|
72
|
+
body,
|
|
73
|
+
...options,
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* A List of custom object records filtered by querying
|
|
78
|
+
*/
|
|
79
|
+
query(customObjectAPIName, body = {}, options) {
|
|
80
|
+
return this._client.post((0, path_1.path) `/custom-objects/${customObjectAPIName}/records/query/`, {
|
|
81
|
+
body,
|
|
82
|
+
...options,
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Retrieve a specific custom object record by its external_id
|
|
87
|
+
*/
|
|
88
|
+
retrieveByExternalID(customObjectAPIName, externalID, options) {
|
|
89
|
+
return this._client.get((0, path_1.path) `/custom-objects/${customObjectAPIName}/records/external_id/${externalID}/`, options);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
exports.Records = Records;
|
|
93
|
+
//# sourceMappingURL=records.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"records.js","sourceRoot":"","sources":["../../src/resources/custom-objects/records.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAAmE;AACnE,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;OAEG;IACH,MAAM,CACJ,mBAA2B,EAC3B,OAA8C,SAAS,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,mBAAmB,mBAAmB,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxG,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,mBAA2B,EAC3B,MAAc,EACd,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,mBAAmB,mBAAmB,YAAY,MAAM,GAAG,EAAE,OAAO,CAAC,CAAC;IACpG,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,mBAA2B,EAC3B,MAAc,EACd,OAA8C,SAAS,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,mBAAmB,mBAAmB,YAAY,MAAM,GAAG,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B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,mBAAmB,mBAAmB,gBAAgB,EAAE;YACpF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CACH,mBAA2B,EAC3B,OAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,mBAAmB,mBAAmB,iBAAiB,EAAE;YACpF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,oBAAoB,CAClB,mBAA2B,EAC3B,UAAkB,EAClB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,IAAA,WAAI,EAAA,mBAAmB,mBAAmB,wBAAwB,UAAU,GAAG,EAC/E,OAAO,CACR,CAAC;IACJ,CAAC;CACF;AAtID,0BAsIC"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { PageCursorURL } from "../../core/pagination.mjs";
|
|
4
|
+
import { buildHeaders } from "../../internal/headers.mjs";
|
|
5
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
6
|
+
export class Records extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Create a new custom object record
|
|
9
|
+
*/
|
|
10
|
+
create(customObjectAPIName, body = undefined, options) {
|
|
11
|
+
return this._client.post(path `/custom-objects/${customObjectAPIName}/records/`, { body, ...options });
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Retrieve a specific custom object record
|
|
15
|
+
*/
|
|
16
|
+
retrieve(customObjectAPIName, codrID, options) {
|
|
17
|
+
return this._client.get(path `/custom-objects/${customObjectAPIName}/records/${codrID}/`, options);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Updated a specific custom object record
|
|
21
|
+
*/
|
|
22
|
+
update(customObjectAPIName, codrID, body = undefined, options) {
|
|
23
|
+
return this._client.patch(path `/custom-objects/${customObjectAPIName}/records/${codrID}/`, {
|
|
24
|
+
body,
|
|
25
|
+
...options,
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* A List of custom object records
|
|
30
|
+
*
|
|
31
|
+
* - Requires: `API Tier 1`
|
|
32
|
+
*/
|
|
33
|
+
list(customObjectAPIName, options) {
|
|
34
|
+
return this._client.getAPIList(path `/custom-objects/${customObjectAPIName}/records/`, (PageCursorURL), options);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Delete a custom object record
|
|
38
|
+
*/
|
|
39
|
+
delete(customObjectAPIName, codrID, options) {
|
|
40
|
+
return this._client.delete(path `/custom-objects/${customObjectAPIName}/records/${codrID}/`, {
|
|
41
|
+
...options,
|
|
42
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* bulk create new custom object records
|
|
47
|
+
*/
|
|
48
|
+
bulkCreate(customObjectAPIName, body = {}, options) {
|
|
49
|
+
return this._client.post(path `/custom-objects/${customObjectAPIName}/records/bulk/`, {
|
|
50
|
+
body,
|
|
51
|
+
...options,
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Bulk Delete custom object records
|
|
56
|
+
*/
|
|
57
|
+
bulkDelete(customObjectAPIName, body = {}, options) {
|
|
58
|
+
return this._client.post(path `/custom-objects/${customObjectAPIName}/records/bulk-delete/`, {
|
|
59
|
+
body,
|
|
60
|
+
...options,
|
|
61
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Bulk Updated a specific custom object records
|
|
66
|
+
*/
|
|
67
|
+
bulkUpdate(customObjectAPIName, body = {}, options) {
|
|
68
|
+
return this._client.patch(path `/custom-objects/${customObjectAPIName}/records/bulk/`, {
|
|
69
|
+
body,
|
|
70
|
+
...options,
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* A List of custom object records filtered by querying
|
|
75
|
+
*/
|
|
76
|
+
query(customObjectAPIName, body = {}, options) {
|
|
77
|
+
return this._client.post(path `/custom-objects/${customObjectAPIName}/records/query/`, {
|
|
78
|
+
body,
|
|
79
|
+
...options,
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Retrieve a specific custom object record by its external_id
|
|
84
|
+
*/
|
|
85
|
+
retrieveByExternalID(customObjectAPIName, externalID, options) {
|
|
86
|
+
return this._client.get(path `/custom-objects/${customObjectAPIName}/records/external_id/${externalID}/`, options);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
//# sourceMappingURL=records.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"records.mjs","sourceRoot":"","sources":["../../src/resources/custom-objects/records.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,aAAa,EAAe;OAC9B,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CACJ,mBAA2B,EAC3B,OAA8C,SAAS,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,mBAAmB,mBAAmB,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxG,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,mBAA2B,EAC3B,MAAc,EACd,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,mBAAmB,mBAAmB,YAAY,MAAM,GAAG,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AC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,UAAU,CACR,mBAA2B,EAC3B,OAAkD,EAAE,EACpD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,mBAAmB,mBAAmB,gBAAgB,EAAE;YACpF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CACH,mBAA2B,EAC3B,OAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,mBAAmB,mBAAmB,iBAAiB,EAAE;YACpF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,oBAAoB,CAClB,mBAA2B,EAC3B,UAAkB,EAClB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,IAAI,CAAA,mBAAmB,mBAAmB,wBAAwB,UAAU,GAAG,EAC/E,OAAO,CACR,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-objects.d.mts","sourceRoot":"","sources":["../src/resources/custom-objects.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-objects.d.ts","sourceRoot":"","sources":["../src/resources/custom-objects.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
+
const tslib_1 = require("../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./custom-objects/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=custom-objects.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-objects.js","sourceRoot":"","sources":["../src/resources/custom-objects.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oEAAuC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-objects.mjs","sourceRoot":"","sources":["../src/resources/custom-objects.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import * as BusinessPartnersAPI from "./business-partners.mjs";
|
|
3
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
4
|
+
import { PageCursorURL, PagePromise } from "../core/pagination.mjs";
|
|
5
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
6
|
+
export declare class Departments extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Retrieve a specific department
|
|
9
|
+
*/
|
|
10
|
+
retrieve(id: string, query?: DepartmentRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<DepartmentRetrieveResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* A List of departments
|
|
13
|
+
*
|
|
14
|
+
* - Requires: `API Tier 1`
|
|
15
|
+
* - Expandable fields: `parent`, `department_hierarchy`
|
|
16
|
+
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
17
|
+
*/
|
|
18
|
+
list(query?: DepartmentListParams | null | undefined, options?: RequestOptions): PagePromise<DepartmentsPageCursorURL, Department>;
|
|
19
|
+
}
|
|
20
|
+
export type DepartmentsPageCursorURL = PageCursorURL<Department>;
|
|
21
|
+
export interface Department {
|
|
22
|
+
/**
|
|
23
|
+
* Identifier field
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
* Record creation date
|
|
28
|
+
*/
|
|
29
|
+
created_at: string;
|
|
30
|
+
/**
|
|
31
|
+
* The name of the department.
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
* Record update date
|
|
36
|
+
*/
|
|
37
|
+
updated_at: string;
|
|
38
|
+
/**
|
|
39
|
+
* List of departments in the department hierarchy. Refer department_hierarchy_ids
|
|
40
|
+
* for department hierarchy order.
|
|
41
|
+
*
|
|
42
|
+
* Expandable field
|
|
43
|
+
*/
|
|
44
|
+
department_hierarchy?: Array<Department>;
|
|
45
|
+
/**
|
|
46
|
+
* The identifier of departments in the department hierarchy ordered from parent
|
|
47
|
+
* department to child department.
|
|
48
|
+
*/
|
|
49
|
+
department_hierarchy_id?: Array<string>;
|
|
50
|
+
/**
|
|
51
|
+
* The parent department.
|
|
52
|
+
*
|
|
53
|
+
* Expandable field
|
|
54
|
+
*/
|
|
55
|
+
parent?: Department;
|
|
56
|
+
/**
|
|
57
|
+
* The parent department.
|
|
58
|
+
*/
|
|
59
|
+
parent_id?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Reference code of the department.
|
|
62
|
+
*/
|
|
63
|
+
reference_code?: string;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Meta information for the response.
|
|
67
|
+
*/
|
|
68
|
+
export interface DepartmentRetrieveResponse extends BusinessPartnersAPI.Meta, Department {
|
|
69
|
+
}
|
|
70
|
+
export interface DepartmentRetrieveParams {
|
|
71
|
+
expand?: string;
|
|
72
|
+
}
|
|
73
|
+
export interface DepartmentListParams {
|
|
74
|
+
expand?: string;
|
|
75
|
+
order_by?: string;
|
|
76
|
+
}
|
|
77
|
+
export declare namespace Departments {
|
|
78
|
+
export { type Department as Department, type DepartmentRetrieveResponse as DepartmentRetrieveResponse, type DepartmentsPageCursorURL as DepartmentsPageCursorURL, type DepartmentRetrieveParams as DepartmentRetrieveParams, type DepartmentListParams as DepartmentListParams, };
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=departments.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"departments.d.mts","sourceRoot":"","sources":["../src/resources/depart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