@rippling/rippling-sdk 0.2.0-alpha.85 → 0.2.0-alpha.87
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/client.d.mts +15 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +15 -0
- package/client.d.ts.map +1 -1
- package/client.js +15 -0
- package/client.js.map +1 -1
- package/client.mjs +15 -0
- package/client.mjs.map +1 -1
- package/core/platform/custom-objects/category.d.mts +125 -0
- package/core/platform/custom-objects/category.d.mts.map +1 -0
- package/core/platform/custom-objects/category.d.ts +125 -0
- package/core/platform/custom-objects/category.d.ts.map +1 -0
- package/core/platform/custom-objects/category.js +188 -0
- package/core/platform/custom-objects/category.js.map +1 -0
- package/core/platform/custom-objects/category.mjs +178 -0
- package/core/platform/custom-objects/category.mjs.map +1 -0
- package/core/platform/custom-objects/definition.d.mts +147 -0
- package/core/platform/custom-objects/definition.d.mts.map +1 -0
- package/core/platform/custom-objects/definition.d.ts +147 -0
- package/core/platform/custom-objects/definition.d.ts.map +1 -0
- package/core/platform/custom-objects/definition.js +200 -0
- package/core/platform/custom-objects/definition.js.map +1 -0
- package/core/platform/custom-objects/definition.mjs +190 -0
- package/core/platform/custom-objects/definition.mjs.map +1 -0
- package/core/platform/custom-objects/fields.d.mts +302 -0
- package/core/platform/custom-objects/fields.d.mts.map +1 -0
- package/core/platform/custom-objects/fields.d.ts +302 -0
- package/core/platform/custom-objects/fields.d.ts.map +1 -0
- package/core/platform/custom-objects/fields.js +369 -0
- package/core/platform/custom-objects/fields.js.map +1 -0
- package/core/platform/custom-objects/fields.mjs +347 -0
- package/core/platform/custom-objects/fields.mjs.map +1 -0
- package/core/platform/custom-objects/function-runtime.d.mts +42 -0
- package/core/platform/custom-objects/function-runtime.d.mts.map +1 -0
- package/core/platform/custom-objects/function-runtime.d.ts +42 -0
- package/core/platform/custom-objects/function-runtime.d.ts.map +1 -0
- package/core/platform/custom-objects/function-runtime.js +38 -0
- package/core/platform/custom-objects/function-runtime.js.map +1 -0
- package/core/platform/custom-objects/function-runtime.mjs +35 -0
- package/core/platform/custom-objects/function-runtime.mjs.map +1 -0
- package/core/platform/custom-objects/lifecycle.d.mts +83 -0
- package/core/platform/custom-objects/lifecycle.d.mts.map +1 -0
- package/core/platform/custom-objects/lifecycle.d.ts +83 -0
- package/core/platform/custom-objects/lifecycle.d.ts.map +1 -0
- package/core/platform/custom-objects/lifecycle.js +372 -0
- package/core/platform/custom-objects/lifecycle.js.map +1 -0
- package/core/platform/custom-objects/lifecycle.mjs +367 -0
- package/core/platform/custom-objects/lifecycle.mjs.map +1 -0
- package/core/platform/custom-objects/manager.d.mts +354 -0
- package/core/platform/custom-objects/manager.d.mts.map +1 -0
- package/core/platform/custom-objects/manager.d.ts +354 -0
- package/core/platform/custom-objects/manager.d.ts.map +1 -0
- package/core/platform/custom-objects/manager.js +646 -0
- package/core/platform/custom-objects/manager.js.map +1 -0
- package/core/platform/custom-objects/manager.mjs +637 -0
- package/core/platform/custom-objects/manager.mjs.map +1 -0
- package/core/platform/custom-objects/provisioning.d.mts +138 -0
- package/core/platform/custom-objects/provisioning.d.mts.map +1 -0
- package/core/platform/custom-objects/provisioning.d.ts +138 -0
- package/core/platform/custom-objects/provisioning.d.ts.map +1 -0
- package/core/platform/custom-objects/provisioning.js +455 -0
- package/core/platform/custom-objects/provisioning.js.map +1 -0
- package/core/platform/custom-objects/provisioning.mjs +447 -0
- package/core/platform/custom-objects/provisioning.mjs.map +1 -0
- package/core/platform/custom-objects/rql.d.mts +122 -0
- package/core/platform/custom-objects/rql.d.mts.map +1 -0
- package/core/platform/custom-objects/rql.d.ts +122 -0
- package/core/platform/custom-objects/rql.d.ts.map +1 -0
- package/core/platform/custom-objects/rql.js +225 -0
- package/core/platform/custom-objects/rql.js.map +1 -0
- package/core/platform/custom-objects/rql.mjs +222 -0
- package/core/platform/custom-objects/rql.mjs.map +1 -0
- package/core/platform/custom-objects/schema-manager.d.mts +203 -0
- package/core/platform/custom-objects/schema-manager.d.mts.map +1 -0
- package/core/platform/custom-objects/schema-manager.d.ts +203 -0
- package/core/platform/custom-objects/schema-manager.d.ts.map +1 -0
- package/core/platform/custom-objects/schema-manager.js +256 -0
- package/core/platform/custom-objects/schema-manager.js.map +1 -0
- package/core/platform/custom-objects/schema-manager.mjs +249 -0
- package/core/platform/custom-objects/schema-manager.mjs.map +1 -0
- package/core/platform/custom-objects/typed-rql.d.mts +157 -0
- package/core/platform/custom-objects/typed-rql.d.mts.map +1 -0
- package/core/platform/custom-objects/typed-rql.d.ts +157 -0
- package/core/platform/custom-objects/typed-rql.d.ts.map +1 -0
- package/core/platform/custom-objects/typed-rql.js +583 -0
- package/core/platform/custom-objects/typed-rql.js.map +1 -0
- package/core/platform/custom-objects/typed-rql.mjs +580 -0
- package/core/platform/custom-objects/typed-rql.mjs.map +1 -0
- package/core/platform/custom-objects/types.d.mts +549 -0
- package/core/platform/custom-objects/types.d.mts.map +1 -0
- package/core/platform/custom-objects/types.d.ts +549 -0
- package/core/platform/custom-objects/types.d.ts.map +1 -0
- package/core/platform/custom-objects/types.js +20 -0
- package/core/platform/custom-objects/types.js.map +1 -0
- package/core/platform/custom-objects/types.mjs +17 -0
- package/core/platform/custom-objects/types.mjs.map +1 -0
- package/core/platform/custom-objects/validation.d.mts +97 -0
- package/core/platform/custom-objects/validation.d.mts.map +1 -0
- package/core/platform/custom-objects/validation.d.ts +97 -0
- package/core/platform/custom-objects/validation.d.ts.map +1 -0
- package/core/platform/custom-objects/validation.js +477 -0
- package/core/platform/custom-objects/validation.js.map +1 -0
- package/core/platform/custom-objects/validation.mjs +465 -0
- package/core/platform/custom-objects/validation.mjs.map +1 -0
- package/core/platform/custom-objects.d.mts +67 -0
- package/core/platform/custom-objects.d.mts.map +1 -0
- package/core/platform/custom-objects.d.ts +67 -0
- package/core/platform/custom-objects.d.ts.map +1 -0
- package/core/platform/custom-objects.js +118 -0
- package/core/platform/custom-objects.js.map +1 -0
- package/core/platform/custom-objects.mjs +45 -0
- package/core/platform/custom-objects.mjs.map +1 -0
- package/lib/leave-programs/advanced.d.mts +5 -0
- package/lib/leave-programs/advanced.d.mts.map +1 -0
- package/lib/leave-programs/advanced.d.ts +5 -0
- package/lib/leave-programs/advanced.d.ts.map +1 -0
- package/lib/leave-programs/advanced.js +13 -0
- package/lib/leave-programs/advanced.js.map +1 -0
- package/lib/leave-programs/advanced.mjs +4 -0
- package/lib/leave-programs/advanced.mjs.map +1 -0
- package/lib/leave-programs/context.d.mts +3 -0
- package/lib/leave-programs/context.d.mts.map +1 -0
- package/lib/leave-programs/context.d.ts +3 -0
- package/lib/leave-programs/context.d.ts.map +1 -0
- package/lib/leave-programs/context.js +89 -0
- package/lib/leave-programs/context.js.map +1 -0
- package/lib/leave-programs/context.mjs +86 -0
- package/lib/leave-programs/context.mjs.map +1 -0
- package/lib/leave-programs/define-company-leave-program.d.mts +3 -0
- package/lib/leave-programs/define-company-leave-program.d.mts.map +1 -0
- package/lib/leave-programs/define-company-leave-program.d.ts +3 -0
- package/lib/leave-programs/define-company-leave-program.d.ts.map +1 -0
- package/lib/leave-programs/define-company-leave-program.js +47 -0
- package/lib/leave-programs/define-company-leave-program.js.map +1 -0
- package/lib/leave-programs/define-company-leave-program.mjs +44 -0
- package/lib/leave-programs/define-company-leave-program.mjs.map +1 -0
- package/lib/leave-programs/duration.d.mts +5 -0
- package/lib/leave-programs/duration.d.mts.map +1 -0
- package/lib/leave-programs/duration.d.ts +5 -0
- package/lib/leave-programs/duration.d.ts.map +1 -0
- package/lib/leave-programs/duration.js +21 -0
- package/lib/leave-programs/duration.js.map +1 -0
- package/lib/leave-programs/duration.mjs +16 -0
- package/lib/leave-programs/duration.mjs.map +1 -0
- package/lib/leave-programs/pay.d.mts +4 -0
- package/lib/leave-programs/pay.d.mts.map +1 -0
- package/lib/leave-programs/pay.d.ts +4 -0
- package/lib/leave-programs/pay.d.ts.map +1 -0
- package/lib/leave-programs/pay.js +20 -0
- package/lib/leave-programs/pay.js.map +1 -0
- package/lib/leave-programs/pay.mjs +16 -0
- package/lib/leave-programs/pay.mjs.map +1 -0
- package/lib/leave-programs/policy-builder.d.mts +20 -0
- package/lib/leave-programs/policy-builder.d.mts.map +1 -0
- package/lib/leave-programs/policy-builder.d.ts +20 -0
- package/lib/leave-programs/policy-builder.d.ts.map +1 -0
- package/lib/leave-programs/policy-builder.js +89 -0
- package/lib/leave-programs/policy-builder.js.map +1 -0
- package/lib/leave-programs/policy-builder.mjs +85 -0
- package/lib/leave-programs/policy-builder.mjs.map +1 -0
- package/lib/leave-programs/recipes/parental-top-up-policy.d.mts +25 -0
- package/lib/leave-programs/recipes/parental-top-up-policy.d.mts.map +1 -0
- package/lib/leave-programs/recipes/parental-top-up-policy.d.ts +25 -0
- package/lib/leave-programs/recipes/parental-top-up-policy.d.ts.map +1 -0
- package/lib/leave-programs/recipes/parental-top-up-policy.js +56 -0
- package/lib/leave-programs/recipes/parental-top-up-policy.js.map +1 -0
- package/lib/leave-programs/recipes/parental-top-up-policy.mjs +53 -0
- package/lib/leave-programs/recipes/parental-top-up-policy.mjs.map +1 -0
- package/lib/leave-programs/testing.d.mts +8 -0
- package/lib/leave-programs/testing.d.mts.map +1 -0
- package/lib/leave-programs/testing.d.ts +8 -0
- package/lib/leave-programs/testing.d.ts.map +1 -0
- package/lib/leave-programs/testing.js +11 -0
- package/lib/leave-programs/testing.js.map +1 -0
- package/lib/leave-programs/testing.mjs +7 -0
- package/lib/leave-programs/testing.mjs.map +1 -0
- package/lib/leave-programs/types.d.mts +223 -0
- package/lib/leave-programs/types.d.mts.map +1 -0
- package/lib/leave-programs/types.d.ts +223 -0
- package/lib/leave-programs/types.d.ts.map +1 -0
- package/lib/leave-programs/types.js +10 -0
- package/lib/leave-programs/types.js.map +1 -0
- package/lib/leave-programs/types.mjs +7 -0
- package/lib/leave-programs/types.mjs.map +1 -0
- package/lib/leave-programs.d.mts +7 -0
- package/lib/leave-programs.d.mts.map +1 -0
- package/lib/leave-programs.d.ts +7 -0
- package/lib/leave-programs.d.ts.map +1 -0
- package/lib/leave-programs.js +19 -0
- package/lib/leave-programs.js.map +1 -0
- package/lib/leave-programs.mjs +7 -0
- package/lib/leave-programs.mjs.map +1 -0
- package/package.json +1 -1
- package/resources/agents/agents.d.mts +208 -0
- package/resources/agents/agents.d.mts.map +1 -0
- package/resources/agents/agents.d.ts +208 -0
- package/resources/agents/agents.d.ts.map +1 -0
- package/resources/agents/agents.js +64 -0
- package/resources/agents/agents.js.map +1 -0
- package/resources/agents/agents.mjs +59 -0
- package/resources/agents/agents.mjs.map +1 -0
- package/resources/agents/deployments.d.mts +180 -0
- package/resources/agents/deployments.d.mts.map +1 -0
- package/resources/agents/deployments.d.ts +180 -0
- package/resources/agents/deployments.d.ts.map +1 -0
- package/resources/agents/deployments.js +32 -0
- package/resources/agents/deployments.js.map +1 -0
- package/resources/agents/deployments.mjs +28 -0
- package/resources/agents/deployments.mjs.map +1 -0
- package/resources/agents/index.d.mts +5 -0
- package/resources/agents/index.d.mts.map +1 -0
- package/resources/agents/index.d.ts +5 -0
- package/resources/agents/index.d.ts.map +1 -0
- package/resources/agents/index.js +13 -0
- package/resources/agents/index.js.map +1 -0
- package/resources/agents/index.mjs +6 -0
- package/resources/agents/index.mjs.map +1 -0
- package/resources/agents/sessions/events.d.mts +80 -0
- package/resources/agents/sessions/events.d.mts.map +1 -0
- package/resources/agents/sessions/events.d.ts +80 -0
- package/resources/agents/sessions/events.d.ts.map +1 -0
- package/resources/agents/sessions/events.js +19 -0
- package/resources/agents/sessions/events.js.map +1 -0
- package/resources/agents/sessions/events.mjs +15 -0
- package/resources/agents/sessions/events.mjs.map +1 -0
- package/resources/agents/sessions/index.d.mts +3 -0
- package/resources/agents/sessions/index.d.mts.map +1 -0
- package/resources/agents/sessions/index.d.ts +3 -0
- package/resources/agents/sessions/index.d.ts.map +1 -0
- package/resources/agents/sessions/index.js +9 -0
- package/resources/agents/sessions/index.js.map +1 -0
- package/resources/agents/sessions/index.mjs +4 -0
- package/resources/agents/sessions/index.mjs.map +1 -0
- package/resources/agents/sessions/sessions.d.mts +153 -0
- package/resources/agents/sessions/sessions.d.mts.map +1 -0
- package/resources/agents/sessions/sessions.d.ts +153 -0
- package/resources/agents/sessions/sessions.d.ts.map +1 -0
- package/resources/agents/sessions/sessions.js +44 -0
- package/resources/agents/sessions/sessions.js.map +1 -0
- package/resources/agents/sessions/sessions.mjs +39 -0
- package/resources/agents/sessions/sessions.mjs.map +1 -0
- package/resources/agents/sessions.d.mts +2 -0
- package/resources/agents/sessions.d.mts.map +1 -0
- package/resources/agents/sessions.d.ts +2 -0
- package/resources/agents/sessions.d.ts.map +1 -0
- package/resources/agents/sessions.js +6 -0
- package/resources/agents/sessions.js.map +1 -0
- package/resources/agents/sessions.mjs +3 -0
- package/resources/agents/sessions.mjs.map +1 -0
- package/resources/agents/source-revisions.d.mts +195 -0
- package/resources/agents/source-revisions.d.mts.map +1 -0
- package/resources/agents/source-revisions.d.ts +195 -0
- package/resources/agents/source-revisions.d.ts.map +1 -0
- package/resources/agents/source-revisions.js +32 -0
- package/resources/agents/source-revisions.js.map +1 -0
- package/resources/agents/source-revisions.mjs +28 -0
- package/resources/agents/source-revisions.mjs.map +1 -0
- package/resources/agents.d.mts +2 -0
- package/resources/agents.d.mts.map +1 -0
- package/resources/agents.d.ts +2 -0
- package/resources/agents.d.ts.map +1 -0
- package/resources/agents.js +6 -0
- package/resources/agents.js.map +1 -0
- package/resources/agents.mjs +3 -0
- package/resources/agents.mjs.map +1 -0
- package/resources/break-policies.d.mts +1 -1
- package/resources/break-policies.d.ts +1 -1
- package/resources/break-policies.js +1 -1
- package/resources/break-policies.mjs +1 -1
- package/resources/break-types.d.mts +1 -1
- package/resources/break-types.d.ts +1 -1
- package/resources/break-types.js +1 -1
- package/resources/break-types.mjs +1 -1
- package/resources/business-structure-paths.d.mts +1 -1
- package/resources/business-structure-paths.d.ts +1 -1
- package/resources/business-structure-paths.js +1 -1
- package/resources/business-structure-paths.mjs +1 -1
- package/resources/candidate-applications.d.mts +1 -1
- package/resources/candidate-applications.d.ts +1 -1
- package/resources/candidate-applications.js +1 -1
- package/resources/candidate-applications.mjs +1 -1
- package/resources/candidates.d.mts +1 -1
- package/resources/candidates.d.ts +1 -1
- package/resources/candidates.js +1 -1
- package/resources/candidates.mjs +1 -1
- package/resources/company-legal-entities.d.mts +1 -1
- package/resources/company-legal-entities.d.ts +1 -1
- package/resources/company-legal-entities.js +1 -1
- package/resources/company-legal-entities.mjs +1 -1
- package/resources/company-legal-entity-workers.d.mts +1 -1
- package/resources/company-legal-entity-workers.d.ts +1 -1
- package/resources/company-legal-entity-workers.js +1 -1
- package/resources/company-legal-entity-workers.mjs +1 -1
- package/resources/compensation-bands-details.d.mts +1 -1
- package/resources/compensation-bands-details.d.ts +1 -1
- package/resources/compensation-bands-details.js +1 -1
- package/resources/compensation-bands-details.mjs +1 -1
- package/resources/compensations.d.mts +1 -1
- package/resources/compensations.d.ts +1 -1
- package/resources/compensations.js +1 -1
- package/resources/compensations.mjs +1 -1
- package/resources/custom-objects/custom-objects.d.mts +7 -0
- package/resources/custom-objects/custom-objects.d.mts.map +1 -1
- package/resources/custom-objects/custom-objects.d.ts +7 -0
- package/resources/custom-objects/custom-objects.d.ts.map +1 -1
- package/resources/custom-objects/custom-objects.js.map +1 -1
- package/resources/custom-objects/custom-objects.mjs.map +1 -1
- package/resources/custom-objects/fields.d.mts +129 -54
- package/resources/custom-objects/fields.d.mts.map +1 -1
- package/resources/custom-objects/fields.d.ts +129 -54
- package/resources/custom-objects/fields.d.ts.map +1 -1
- package/resources/device-orders.d.mts +1 -1
- package/resources/device-orders.d.ts +1 -1
- package/resources/device-orders.js +1 -1
- package/resources/device-orders.mjs +1 -1
- package/resources/devices.d.mts +1 -1
- package/resources/devices.d.ts +1 -1
- package/resources/devices.js +1 -1
- package/resources/devices.mjs +1 -1
- package/resources/functions/deployments.d.mts +2 -2
- package/resources/functions/deployments.d.ts +2 -2
- package/resources/functions/deployments.js +2 -2
- package/resources/functions/deployments.mjs +2 -2
- package/resources/functions/executions.d.mts +2 -2
- package/resources/functions/executions.d.ts +2 -2
- package/resources/functions/executions.js +2 -2
- package/resources/functions/executions.mjs +2 -2
- package/resources/functions/functions.d.mts +1 -1
- package/resources/functions/functions.d.ts +1 -1
- package/resources/functions/functions.js +1 -1
- package/resources/functions/functions.mjs +1 -1
- package/resources/headcount-positions.d.mts +1 -1
- package/resources/headcount-positions.d.ts +1 -1
- package/resources/headcount-positions.js +1 -1
- package/resources/headcount-positions.mjs +1 -1
- package/resources/headcount-priorities.d.mts +1 -1
- package/resources/headcount-priorities.d.ts +1 -1
- package/resources/headcount-priorities.js +1 -1
- package/resources/headcount-priorities.mjs +1 -1
- package/resources/index.d.mts +3 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +8 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/job-assignments.d.mts +2 -2
- package/resources/job-assignments.d.ts +2 -2
- package/resources/job-assignments.js +2 -2
- package/resources/job-assignments.mjs +2 -2
- package/resources/job-codes.d.mts +2 -2
- package/resources/job-codes.d.ts +2 -2
- package/resources/job-codes.js +2 -2
- package/resources/job-codes.mjs +2 -2
- package/resources/job-dimensions.d.mts +1 -1
- package/resources/job-dimensions.d.ts +1 -1
- package/resources/job-dimensions.js +1 -1
- package/resources/job-dimensions.mjs +1 -1
- package/resources/job-pay-rate-exceptions.d.mts +2 -2
- package/resources/job-pay-rate-exceptions.d.ts +2 -2
- package/resources/job-pay-rate-exceptions.js +2 -2
- package/resources/job-pay-rate-exceptions.mjs +2 -2
- package/resources/job-requisitions.d.mts +1 -1
- package/resources/job-requisitions.d.ts +1 -1
- package/resources/job-requisitions.js +1 -1
- package/resources/job-requisitions.mjs +1 -1
- package/resources/kiosk-badges.d.mts +1 -1
- package/resources/kiosk-badges.d.ts +1 -1
- package/resources/kiosk-badges.js +1 -1
- package/resources/kiosk-badges.mjs +1 -1
- package/resources/leave-accruals.d.mts +1 -1
- package/resources/leave-accruals.d.ts +1 -1
- package/resources/leave-accruals.js +1 -1
- package/resources/leave-accruals.mjs +1 -1
- package/resources/leave-balances.d.mts +1 -1
- package/resources/leave-balances.d.ts +1 -1
- package/resources/leave-balances.js +1 -1
- package/resources/leave-balances.mjs +1 -1
- package/resources/leave-requests.d.mts +1 -1
- package/resources/leave-requests.d.ts +1 -1
- package/resources/leave-requests.js +1 -1
- package/resources/leave-requests.mjs +1 -1
- package/resources/leave-types.d.mts +1 -1
- package/resources/leave-types.d.ts +1 -1
- package/resources/leave-types.js +1 -1
- package/resources/leave-types.mjs +1 -1
- package/resources/legal-entities.d.mts +1 -1
- package/resources/legal-entities.d.ts +1 -1
- package/resources/legal-entities.js +1 -1
- package/resources/legal-entities.mjs +1 -1
- package/resources/levels.d.mts +26 -5
- package/resources/levels.d.mts.map +1 -1
- package/resources/levels.d.ts +26 -5
- package/resources/levels.d.ts.map +1 -1
- package/resources/levels.js +1 -1
- package/resources/levels.mjs +1 -1
- package/resources/location-factors.d.mts +1 -1
- package/resources/location-factors.d.ts +1 -1
- package/resources/location-factors.js +1 -1
- package/resources/location-factors.mjs +1 -1
- package/resources/packages/index.d.mts +3 -0
- package/resources/packages/index.d.mts.map +1 -0
- package/resources/packages/index.d.ts +3 -0
- package/resources/packages/index.d.ts.map +1 -0
- package/resources/packages/index.js +9 -0
- package/resources/packages/index.js.map +1 -0
- package/resources/packages/index.mjs +4 -0
- package/resources/packages/index.mjs.map +1 -0
- package/resources/packages/packages.d.mts +239 -0
- package/resources/packages/packages.d.mts.map +1 -0
- package/resources/packages/packages.d.ts +239 -0
- package/resources/packages/packages.d.ts.map +1 -0
- package/resources/packages/packages.js +60 -0
- package/resources/packages/packages.js.map +1 -0
- package/resources/packages/packages.mjs +55 -0
- package/resources/packages/packages.mjs.map +1 -0
- package/resources/packages/versions.d.mts +72 -0
- package/resources/packages/versions.d.mts.map +1 -0
- package/resources/packages/versions.d.ts +72 -0
- package/resources/packages/versions.d.ts.map +1 -0
- package/resources/packages/versions.js +19 -0
- package/resources/packages/versions.js.map +1 -0
- package/resources/packages/versions.mjs +15 -0
- package/resources/packages/versions.mjs.map +1 -0
- package/resources/packages.d.mts +2 -0
- package/resources/packages.d.mts.map +1 -0
- package/resources/packages.d.ts +2 -0
- package/resources/packages.d.ts.map +1 -0
- package/resources/packages.js +6 -0
- package/resources/packages.js.map +1 -0
- package/resources/packages.mjs +3 -0
- package/resources/packages.mjs.map +1 -0
- package/resources/scheduled-job-assignments.d.mts +1 -1
- package/resources/scheduled-job-assignments.d.ts +1 -1
- package/resources/scheduled-job-assignments.js +1 -1
- package/resources/scheduled-job-assignments.mjs +1 -1
- package/resources/schedules.d.mts +1 -1
- package/resources/schedules.d.ts +1 -1
- package/resources/schedules.js +1 -1
- package/resources/schedules.mjs +1 -1
- package/resources/shift-assignments.d.mts +1 -1
- package/resources/shift-assignments.d.ts +1 -1
- package/resources/shift-assignments.js +1 -1
- package/resources/shift-assignments.mjs +1 -1
- package/resources/shift-inputs.d.mts +1 -1
- package/resources/shift-inputs.d.ts +1 -1
- package/resources/shift-inputs.js +1 -1
- package/resources/shift-inputs.mjs +1 -1
- package/resources/shiftassignments.d.mts +1 -1
- package/resources/shiftassignments.d.ts +1 -1
- package/resources/shiftassignments.js +1 -1
- package/resources/shiftassignments.mjs +1 -1
- package/resources/sites.d.mts +572 -0
- package/resources/sites.d.mts.map +1 -0
- package/resources/sites.d.ts +572 -0
- package/resources/sites.d.ts.map +1 -0
- package/resources/sites.js +154 -0
- package/resources/sites.js.map +1 -0
- package/resources/sites.mjs +150 -0
- package/resources/sites.mjs.map +1 -0
- package/resources/software-deployments.d.mts +1 -1
- package/resources/software-deployments.d.ts +1 -1
- package/resources/software-deployments.js +1 -1
- package/resources/software-deployments.mjs +1 -1
- package/resources/time-cards.d.mts +1 -1
- package/resources/time-cards.d.ts +1 -1
- package/resources/time-cards.js +1 -1
- package/resources/time-cards.mjs +1 -1
- package/resources/time-entries.d.mts +1 -1
- package/resources/time-entries.d.ts +1 -1
- package/resources/time-entries.js +1 -1
- package/resources/time-entries.mjs +1 -1
- package/resources/tracks.d.mts +1 -1
- package/resources/tracks.d.ts +1 -1
- package/resources/tracks.js +1 -1
- package/resources/tracks.mjs +1 -1
- package/resources/unassigned-shifts.d.mts +2 -2
- package/resources/unassigned-shifts.d.ts +2 -2
- package/resources/unassigned-shifts.js +2 -2
- package/resources/unassigned-shifts.mjs +2 -2
- package/resources/unassignedshifts.d.mts +1 -1
- package/resources/unassignedshifts.d.ts +1 -1
- package/resources/unassignedshifts.js +1 -1
- package/resources/unassignedshifts.mjs +1 -1
- package/resources/worker-time-splits.d.mts +1 -1
- package/resources/worker-time-splits.d.ts +1 -1
- package/resources/worker-time-splits.js +1 -1
- package/resources/worker-time-splits.mjs +1 -1
- package/src/client.ts +91 -0
- package/src/core/platform/custom-objects/category.ts +294 -0
- package/src/core/platform/custom-objects/definition.ts +373 -0
- package/src/core/platform/custom-objects/fields.ts +653 -0
- package/src/core/platform/custom-objects/function-runtime.ts +76 -0
- package/src/core/platform/custom-objects/lifecycle.ts +557 -0
- package/src/core/platform/custom-objects/manager.ts +959 -0
- package/src/core/platform/custom-objects/provisioning.ts +672 -0
- package/src/core/platform/custom-objects/rql.ts +375 -0
- package/src/core/platform/custom-objects/schema-manager.ts +351 -0
- package/src/core/platform/custom-objects/typed-rql.ts +1273 -0
- package/src/core/platform/custom-objects/types.ts +753 -0
- package/src/core/platform/custom-objects/validation.ts +573 -0
- package/src/core/platform/custom-objects.ts +269 -0
- package/src/lib/leave-programs/README.md +160 -0
- package/src/lib/leave-programs/advanced.ts +11 -0
- package/src/lib/leave-programs/context.ts +101 -0
- package/src/lib/leave-programs/define-company-leave-program.ts +58 -0
- package/src/lib/leave-programs/duration.ts +20 -0
- package/src/lib/leave-programs/pay.ts +18 -0
- package/src/lib/leave-programs/policy-builder.ts +113 -0
- package/src/lib/leave-programs/recipes/parental-top-up-policy.ts +85 -0
- package/src/lib/leave-programs/testing.ts +16 -0
- package/src/lib/leave-programs/types.ts +274 -0
- package/src/lib/leave-programs.ts +35 -0
- package/src/resources/agents/agents.ts +340 -0
- package/src/resources/agents/deployments.ts +249 -0
- package/src/resources/agents/index.ts +40 -0
- package/src/resources/agents/sessions/events.ts +107 -0
- package/src/resources/agents/sessions/index.ts +12 -0
- package/src/resources/agents/sessions/sessions.ts +216 -0
- package/src/resources/agents/sessions.ts +3 -0
- package/src/resources/agents/source-revisions.ts +267 -0
- package/src/resources/agents.ts +3 -0
- package/src/resources/break-policies.ts +1 -1
- package/src/resources/break-types.ts +1 -1
- package/src/resources/business-structure-paths.ts +1 -1
- package/src/resources/candidate-applications.ts +1 -1
- package/src/resources/candidates.ts +1 -1
- package/src/resources/company-legal-entities.ts +1 -1
- package/src/resources/company-legal-entity-workers.ts +1 -1
- package/src/resources/compensation-bands-details.ts +1 -1
- package/src/resources/compensations.ts +1 -1
- package/src/resources/custom-objects/custom-objects.ts +8 -0
- package/src/resources/custom-objects/fields.ts +192 -59
- package/src/resources/device-orders.ts +1 -1
- package/src/resources/devices.ts +1 -1
- package/src/resources/functions/deployments.ts +2 -2
- package/src/resources/functions/executions.ts +2 -2
- package/src/resources/functions/functions.ts +1 -1
- package/src/resources/headcount-positions.ts +1 -1
- package/src/resources/headcount-priorities.ts +1 -1
- package/src/resources/index.ts +38 -0
- package/src/resources/job-assignments.ts +2 -2
- package/src/resources/job-codes.ts +2 -2
- package/src/resources/job-dimensions.ts +1 -1
- package/src/resources/job-pay-rate-exceptions.ts +2 -2
- package/src/resources/job-requisitions.ts +1 -1
- package/src/resources/kiosk-badges.ts +1 -1
- package/src/resources/leave-accruals.ts +1 -1
- package/src/resources/leave-balances.ts +1 -1
- package/src/resources/leave-requests.ts +1 -1
- package/src/resources/leave-types.ts +1 -1
- package/src/resources/legal-entities.ts +1 -1
- package/src/resources/levels.ts +29 -5
- package/src/resources/location-factors.ts +1 -1
- package/src/resources/packages/index.ts +14 -0
- package/src/resources/packages/packages.ts +329 -0
- package/src/resources/packages/versions.ts +98 -0
- package/src/resources/packages.ts +3 -0
- package/src/resources/scheduled-job-assignments.ts +1 -1
- package/src/resources/schedules.ts +1 -1
- package/src/resources/shift-assignments.ts +1 -1
- package/src/resources/shift-inputs.ts +1 -1
- package/src/resources/shiftassignments.ts +1 -1
- package/src/resources/sites.ts +736 -0
- package/src/resources/software-deployments.ts +1 -1
- package/src/resources/time-cards.ts +1 -1
- package/src/resources/time-entries.ts +1 -1
- package/src/resources/tracks.ts +1 -1
- package/src/resources/unassigned-shifts.ts +2 -2
- package/src/resources/unassignedshifts.ts +1 -1
- package/src/resources/worker-time-splits.ts +1 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as BusinessPartnersAPI from "../business-partners.mjs";
|
|
3
|
+
import * as VersionsAPI from "./versions.mjs";
|
|
4
|
+
import { VersionCreateParams, VersionCreateResponse, Versions } from "./versions.mjs";
|
|
5
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
6
|
+
import { PageCursorURL, PagePromise } from "../../core/pagination.mjs";
|
|
7
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
8
|
+
/**
|
|
9
|
+
* Author, publish, and install Unity Packages V2 packages
|
|
10
|
+
*/
|
|
11
|
+
export declare class Packages extends APIResource {
|
|
12
|
+
versions: VersionsAPI.Versions;
|
|
13
|
+
/**
|
|
14
|
+
* A list of packages.
|
|
15
|
+
*
|
|
16
|
+
* - Requires: `Unity Packages V2 Platform API`
|
|
17
|
+
* - Filterable fields: `package_key`
|
|
18
|
+
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
19
|
+
*/
|
|
20
|
+
list(query?: PackageListParams | null | undefined, options?: RequestOptions): PagePromise<PackageListResponsesPageCursorURL, PackageListResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Create a new package
|
|
23
|
+
*/
|
|
24
|
+
create(body: PackageCreateParams, options?: RequestOptions): APIPromise<PackageCreateResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Retrieve a specific package
|
|
27
|
+
*/
|
|
28
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<PackageRetrieveResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Update a specific package.
|
|
31
|
+
*/
|
|
32
|
+
update(id: string, body: PackageUpdateParams, options?: RequestOptions): APIPromise<PackageUpdateResponse>;
|
|
33
|
+
/**
|
|
34
|
+
* Delete a package
|
|
35
|
+
*/
|
|
36
|
+
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
37
|
+
}
|
|
38
|
+
export type PackageListResponsesPageCursorURL = PageCursorURL<PackageListResponse>;
|
|
39
|
+
export interface PackageListResponse {
|
|
40
|
+
/**
|
|
41
|
+
* Identifier field
|
|
42
|
+
*/
|
|
43
|
+
id: string;
|
|
44
|
+
/**
|
|
45
|
+
* Record creation date
|
|
46
|
+
*/
|
|
47
|
+
created_at: string;
|
|
48
|
+
/**
|
|
49
|
+
* The display name of the package
|
|
50
|
+
*/
|
|
51
|
+
package_display_name: string;
|
|
52
|
+
/**
|
|
53
|
+
* The unique package key within the publisher company
|
|
54
|
+
*/
|
|
55
|
+
package_key: string;
|
|
56
|
+
/**
|
|
57
|
+
* The package type (for example MANAGED or UNMANAGED)
|
|
58
|
+
*/
|
|
59
|
+
package_type: string;
|
|
60
|
+
/**
|
|
61
|
+
* Record update date
|
|
62
|
+
*/
|
|
63
|
+
updated_at: string;
|
|
64
|
+
/**
|
|
65
|
+
* The description of the package
|
|
66
|
+
*/
|
|
67
|
+
description?: string;
|
|
68
|
+
/**
|
|
69
|
+
* The ID of the latest package version, if any
|
|
70
|
+
*/
|
|
71
|
+
latest_version_id?: string;
|
|
72
|
+
/**
|
|
73
|
+
* The version number of the latest package version, if any
|
|
74
|
+
*/
|
|
75
|
+
latest_version_number?: string;
|
|
76
|
+
}
|
|
77
|
+
export interface PackageCreateResponse {
|
|
78
|
+
/**
|
|
79
|
+
* Identifier field
|
|
80
|
+
*/
|
|
81
|
+
id: string;
|
|
82
|
+
/**
|
|
83
|
+
* Record creation date
|
|
84
|
+
*/
|
|
85
|
+
created_at: string;
|
|
86
|
+
/**
|
|
87
|
+
* The display name of the package
|
|
88
|
+
*/
|
|
89
|
+
package_display_name: string;
|
|
90
|
+
/**
|
|
91
|
+
* The unique package key within the publisher company
|
|
92
|
+
*/
|
|
93
|
+
package_key: string;
|
|
94
|
+
/**
|
|
95
|
+
* The package type (for example MANAGED or UNMANAGED)
|
|
96
|
+
*/
|
|
97
|
+
package_type: string;
|
|
98
|
+
/**
|
|
99
|
+
* Record update date
|
|
100
|
+
*/
|
|
101
|
+
updated_at: string;
|
|
102
|
+
/**
|
|
103
|
+
* The description of the package
|
|
104
|
+
*/
|
|
105
|
+
description?: string;
|
|
106
|
+
/**
|
|
107
|
+
* The ID of the latest package version, if any
|
|
108
|
+
*/
|
|
109
|
+
latest_version_id?: string;
|
|
110
|
+
/**
|
|
111
|
+
* The version number of the latest package version, if any
|
|
112
|
+
*/
|
|
113
|
+
latest_version_number?: string;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Meta information for the response.
|
|
117
|
+
*/
|
|
118
|
+
export interface PackageRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
119
|
+
/**
|
|
120
|
+
* Identifier field
|
|
121
|
+
*/
|
|
122
|
+
id: string;
|
|
123
|
+
/**
|
|
124
|
+
* Record creation date
|
|
125
|
+
*/
|
|
126
|
+
created_at: string;
|
|
127
|
+
/**
|
|
128
|
+
* The display name of the package
|
|
129
|
+
*/
|
|
130
|
+
package_display_name: string;
|
|
131
|
+
/**
|
|
132
|
+
* The unique package key within the publisher company
|
|
133
|
+
*/
|
|
134
|
+
package_key: string;
|
|
135
|
+
/**
|
|
136
|
+
* The package type (for example MANAGED or UNMANAGED)
|
|
137
|
+
*/
|
|
138
|
+
package_type: string;
|
|
139
|
+
/**
|
|
140
|
+
* Record update date
|
|
141
|
+
*/
|
|
142
|
+
updated_at: string;
|
|
143
|
+
/**
|
|
144
|
+
* The description of the package
|
|
145
|
+
*/
|
|
146
|
+
description?: string;
|
|
147
|
+
/**
|
|
148
|
+
* The ID of the latest package version, if any
|
|
149
|
+
*/
|
|
150
|
+
latest_version_id?: string;
|
|
151
|
+
/**
|
|
152
|
+
* The version number of the latest package version, if any
|
|
153
|
+
*/
|
|
154
|
+
latest_version_number?: string;
|
|
155
|
+
}
|
|
156
|
+
export interface PackageUpdateResponse {
|
|
157
|
+
/**
|
|
158
|
+
* Identifier field
|
|
159
|
+
*/
|
|
160
|
+
id: string;
|
|
161
|
+
/**
|
|
162
|
+
* Record creation date
|
|
163
|
+
*/
|
|
164
|
+
created_at: string;
|
|
165
|
+
/**
|
|
166
|
+
* The display name of the package
|
|
167
|
+
*/
|
|
168
|
+
package_display_name: string;
|
|
169
|
+
/**
|
|
170
|
+
* The unique package key within the publisher company
|
|
171
|
+
*/
|
|
172
|
+
package_key: string;
|
|
173
|
+
/**
|
|
174
|
+
* The package type (for example MANAGED or UNMANAGED)
|
|
175
|
+
*/
|
|
176
|
+
package_type: string;
|
|
177
|
+
/**
|
|
178
|
+
* Record update date
|
|
179
|
+
*/
|
|
180
|
+
updated_at: string;
|
|
181
|
+
/**
|
|
182
|
+
* The description of the package
|
|
183
|
+
*/
|
|
184
|
+
description?: string;
|
|
185
|
+
/**
|
|
186
|
+
* The ID of the latest package version, if any
|
|
187
|
+
*/
|
|
188
|
+
latest_version_id?: string;
|
|
189
|
+
/**
|
|
190
|
+
* The version number of the latest package version, if any
|
|
191
|
+
*/
|
|
192
|
+
latest_version_number?: string;
|
|
193
|
+
}
|
|
194
|
+
export interface PackageListParams {
|
|
195
|
+
cursor?: string;
|
|
196
|
+
filter?: string;
|
|
197
|
+
order_by?: string;
|
|
198
|
+
}
|
|
199
|
+
export interface PackageCreateParams {
|
|
200
|
+
/**
|
|
201
|
+
* The display name of the package
|
|
202
|
+
*/
|
|
203
|
+
package_display_name: string;
|
|
204
|
+
/**
|
|
205
|
+
* The unique package key within the publisher company
|
|
206
|
+
*/
|
|
207
|
+
package_key: string;
|
|
208
|
+
/**
|
|
209
|
+
* The package type (for example MANAGED or UNMANAGED)
|
|
210
|
+
*/
|
|
211
|
+
package_type: string;
|
|
212
|
+
/**
|
|
213
|
+
* The description of the package
|
|
214
|
+
*/
|
|
215
|
+
description?: string;
|
|
216
|
+
}
|
|
217
|
+
export interface PackageUpdateParams {
|
|
218
|
+
/**
|
|
219
|
+
* The display name of the package
|
|
220
|
+
*/
|
|
221
|
+
package_display_name: string;
|
|
222
|
+
/**
|
|
223
|
+
* The unique package key within the publisher company
|
|
224
|
+
*/
|
|
225
|
+
package_key: string;
|
|
226
|
+
/**
|
|
227
|
+
* The package type (for example MANAGED or UNMANAGED)
|
|
228
|
+
*/
|
|
229
|
+
package_type: string;
|
|
230
|
+
/**
|
|
231
|
+
* The description of the package
|
|
232
|
+
*/
|
|
233
|
+
description?: string;
|
|
234
|
+
}
|
|
235
|
+
export declare namespace Packages {
|
|
236
|
+
export { type PackageListResponse as PackageListResponse, type PackageCreateResponse as PackageCreateResponse, type PackageRetrieveResponse as PackageRetrieveResponse, type PackageUpdateResponse as PackageUpdateResponse, type PackageListResponsesPageCursorURL as PackageListResponsesPageCursorURL, type PackageListParams as PackageListParams, type PackageCreateParams as PackageCreateParams, type PackageUpdateParams as PackageUpdateParams, };
|
|
237
|
+
export { Versions as Versions, type VersionCreateResponse as VersionCreateResponse, type VersionCreateParams as VersionCreateParams, };
|
|
238
|
+
}
|
|
239
|
+
//# sourceMappingURL=packages.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"packages.d.mts","sourceRoot":"","sources":["../../src/resources/packages/packages.ts"],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IAAI,iCAAiC,EAC3E,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as BusinessPartnersAPI from "../business-partners.js";
|
|
3
|
+
import * as VersionsAPI from "./versions.js";
|
|
4
|
+
import { VersionCreateParams, VersionCreateResponse, Versions } from "./versions.js";
|
|
5
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
6
|
+
import { PageCursorURL, PagePromise } from "../../core/pagination.js";
|
|
7
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
8
|
+
/**
|
|
9
|
+
* Author, publish, and install Unity Packages V2 packages
|
|
10
|
+
*/
|
|
11
|
+
export declare class Packages extends APIResource {
|
|
12
|
+
versions: VersionsAPI.Versions;
|
|
13
|
+
/**
|
|
14
|
+
* A list of packages.
|
|
15
|
+
*
|
|
16
|
+
* - Requires: `Unity Packages V2 Platform API`
|
|
17
|
+
* - Filterable fields: `package_key`
|
|
18
|
+
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
19
|
+
*/
|
|
20
|
+
list(query?: PackageListParams | null | undefined, options?: RequestOptions): PagePromise<PackageListResponsesPageCursorURL, PackageListResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Create a new package
|
|
23
|
+
*/
|
|
24
|
+
create(body: PackageCreateParams, options?: RequestOptions): APIPromise<PackageCreateResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Retrieve a specific package
|
|
27
|
+
*/
|
|
28
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<PackageRetrieveResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Update a specific package.
|
|
31
|
+
*/
|
|
32
|
+
update(id: string, body: PackageUpdateParams, options?: RequestOptions): APIPromise<PackageUpdateResponse>;
|
|
33
|
+
/**
|
|
34
|
+
* Delete a package
|
|
35
|
+
*/
|
|
36
|
+
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
37
|
+
}
|
|
38
|
+
export type PackageListResponsesPageCursorURL = PageCursorURL<PackageListResponse>;
|
|
39
|
+
export interface PackageListResponse {
|
|
40
|
+
/**
|
|
41
|
+
* Identifier field
|
|
42
|
+
*/
|
|
43
|
+
id: string;
|
|
44
|
+
/**
|
|
45
|
+
* Record creation date
|
|
46
|
+
*/
|
|
47
|
+
created_at: string;
|
|
48
|
+
/**
|
|
49
|
+
* The display name of the package
|
|
50
|
+
*/
|
|
51
|
+
package_display_name: string;
|
|
52
|
+
/**
|
|
53
|
+
* The unique package key within the publisher company
|
|
54
|
+
*/
|
|
55
|
+
package_key: string;
|
|
56
|
+
/**
|
|
57
|
+
* The package type (for example MANAGED or UNMANAGED)
|
|
58
|
+
*/
|
|
59
|
+
package_type: string;
|
|
60
|
+
/**
|
|
61
|
+
* Record update date
|
|
62
|
+
*/
|
|
63
|
+
updated_at: string;
|
|
64
|
+
/**
|
|
65
|
+
* The description of the package
|
|
66
|
+
*/
|
|
67
|
+
description?: string;
|
|
68
|
+
/**
|
|
69
|
+
* The ID of the latest package version, if any
|
|
70
|
+
*/
|
|
71
|
+
latest_version_id?: string;
|
|
72
|
+
/**
|
|
73
|
+
* The version number of the latest package version, if any
|
|
74
|
+
*/
|
|
75
|
+
latest_version_number?: string;
|
|
76
|
+
}
|
|
77
|
+
export interface PackageCreateResponse {
|
|
78
|
+
/**
|
|
79
|
+
* Identifier field
|
|
80
|
+
*/
|
|
81
|
+
id: string;
|
|
82
|
+
/**
|
|
83
|
+
* Record creation date
|
|
84
|
+
*/
|
|
85
|
+
created_at: string;
|
|
86
|
+
/**
|
|
87
|
+
* The display name of the package
|
|
88
|
+
*/
|
|
89
|
+
package_display_name: string;
|
|
90
|
+
/**
|
|
91
|
+
* The unique package key within the publisher company
|
|
92
|
+
*/
|
|
93
|
+
package_key: string;
|
|
94
|
+
/**
|
|
95
|
+
* The package type (for example MANAGED or UNMANAGED)
|
|
96
|
+
*/
|
|
97
|
+
package_type: string;
|
|
98
|
+
/**
|
|
99
|
+
* Record update date
|
|
100
|
+
*/
|
|
101
|
+
updated_at: string;
|
|
102
|
+
/**
|
|
103
|
+
* The description of the package
|
|
104
|
+
*/
|
|
105
|
+
description?: string;
|
|
106
|
+
/**
|
|
107
|
+
* The ID of the latest package version, if any
|
|
108
|
+
*/
|
|
109
|
+
latest_version_id?: string;
|
|
110
|
+
/**
|
|
111
|
+
* The version number of the latest package version, if any
|
|
112
|
+
*/
|
|
113
|
+
latest_version_number?: string;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Meta information for the response.
|
|
117
|
+
*/
|
|
118
|
+
export interface PackageRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
119
|
+
/**
|
|
120
|
+
* Identifier field
|
|
121
|
+
*/
|
|
122
|
+
id: string;
|
|
123
|
+
/**
|
|
124
|
+
* Record creation date
|
|
125
|
+
*/
|
|
126
|
+
created_at: string;
|
|
127
|
+
/**
|
|
128
|
+
* The display name of the package
|
|
129
|
+
*/
|
|
130
|
+
package_display_name: string;
|
|
131
|
+
/**
|
|
132
|
+
* The unique package key within the publisher company
|
|
133
|
+
*/
|
|
134
|
+
package_key: string;
|
|
135
|
+
/**
|
|
136
|
+
* The package type (for example MANAGED or UNMANAGED)
|
|
137
|
+
*/
|
|
138
|
+
package_type: string;
|
|
139
|
+
/**
|
|
140
|
+
* Record update date
|
|
141
|
+
*/
|
|
142
|
+
updated_at: string;
|
|
143
|
+
/**
|
|
144
|
+
* The description of the package
|
|
145
|
+
*/
|
|
146
|
+
description?: string;
|
|
147
|
+
/**
|
|
148
|
+
* The ID of the latest package version, if any
|
|
149
|
+
*/
|
|
150
|
+
latest_version_id?: string;
|
|
151
|
+
/**
|
|
152
|
+
* The version number of the latest package version, if any
|
|
153
|
+
*/
|
|
154
|
+
latest_version_number?: string;
|
|
155
|
+
}
|
|
156
|
+
export interface PackageUpdateResponse {
|
|
157
|
+
/**
|
|
158
|
+
* Identifier field
|
|
159
|
+
*/
|
|
160
|
+
id: string;
|
|
161
|
+
/**
|
|
162
|
+
* Record creation date
|
|
163
|
+
*/
|
|
164
|
+
created_at: string;
|
|
165
|
+
/**
|
|
166
|
+
* The display name of the package
|
|
167
|
+
*/
|
|
168
|
+
package_display_name: string;
|
|
169
|
+
/**
|
|
170
|
+
* The unique package key within the publisher company
|
|
171
|
+
*/
|
|
172
|
+
package_key: string;
|
|
173
|
+
/**
|
|
174
|
+
* The package type (for example MANAGED or UNMANAGED)
|
|
175
|
+
*/
|
|
176
|
+
package_type: string;
|
|
177
|
+
/**
|
|
178
|
+
* Record update date
|
|
179
|
+
*/
|
|
180
|
+
updated_at: string;
|
|
181
|
+
/**
|
|
182
|
+
* The description of the package
|
|
183
|
+
*/
|
|
184
|
+
description?: string;
|
|
185
|
+
/**
|
|
186
|
+
* The ID of the latest package version, if any
|
|
187
|
+
*/
|
|
188
|
+
latest_version_id?: string;
|
|
189
|
+
/**
|
|
190
|
+
* The version number of the latest package version, if any
|
|
191
|
+
*/
|
|
192
|
+
latest_version_number?: string;
|
|
193
|
+
}
|
|
194
|
+
export interface PackageListParams {
|
|
195
|
+
cursor?: string;
|
|
196
|
+
filter?: string;
|
|
197
|
+
order_by?: string;
|
|
198
|
+
}
|
|
199
|
+
export interface PackageCreateParams {
|
|
200
|
+
/**
|
|
201
|
+
* The display name of the package
|
|
202
|
+
*/
|
|
203
|
+
package_display_name: string;
|
|
204
|
+
/**
|
|
205
|
+
* The unique package key within the publisher company
|
|
206
|
+
*/
|
|
207
|
+
package_key: string;
|
|
208
|
+
/**
|
|
209
|
+
* The package type (for example MANAGED or UNMANAGED)
|
|
210
|
+
*/
|
|
211
|
+
package_type: string;
|
|
212
|
+
/**
|
|
213
|
+
* The description of the package
|
|
214
|
+
*/
|
|
215
|
+
description?: string;
|
|
216
|
+
}
|
|
217
|
+
export interface PackageUpdateParams {
|
|
218
|
+
/**
|
|
219
|
+
* The display name of the package
|
|
220
|
+
*/
|
|
221
|
+
package_display_name: string;
|
|
222
|
+
/**
|
|
223
|
+
* The unique package key within the publisher company
|
|
224
|
+
*/
|
|
225
|
+
package_key: string;
|
|
226
|
+
/**
|
|
227
|
+
* The package type (for example MANAGED or UNMANAGED)
|
|
228
|
+
*/
|
|
229
|
+
package_type: string;
|
|
230
|
+
/**
|
|
231
|
+
* The description of the package
|
|
232
|
+
*/
|
|
233
|
+
description?: string;
|
|
234
|
+
}
|
|
235
|
+
export declare namespace Packages {
|
|
236
|
+
export { type PackageListResponse as PackageListResponse, type PackageCreateResponse as PackageCreateResponse, type PackageRetrieveResponse as PackageRetrieveResponse, type PackageUpdateResponse as PackageUpdateResponse, type PackageListResponsesPageCursorURL as PackageListResponsesPageCursorURL, type PackageListParams as PackageListParams, type PackageCreateParams as PackageCreateParams, type PackageUpdateParams as PackageUpdateParams, };
|
|
237
|
+
export { Versions as Versions, type VersionCreateResponse as VersionCreateResponse, type VersionCreateParams as VersionCreateParams, };
|
|
238
|
+
}
|
|
239
|
+
//# sourceMappingURL=packages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"packages.d.ts","sourceRoot":"","sources":["../../src/resources/packages/packages.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,mBAAmB,gCAA6B;AAC5D,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,QAAQ,EAAE,sBAAmB;AAClF,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,iCAA8B;AAEnE,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAG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ated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Packages = void 0;
|
|
5
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const VersionsAPI = tslib_1.__importStar(require("./versions.js"));
|
|
8
|
+
const versions_1 = require("./versions.js");
|
|
9
|
+
const pagination_1 = require("../../core/pagination.js");
|
|
10
|
+
const headers_1 = require("../../internal/headers.js");
|
|
11
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
12
|
+
/**
|
|
13
|
+
* Author, publish, and install Unity Packages V2 packages
|
|
14
|
+
*/
|
|
15
|
+
class Packages extends resource_1.APIResource {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
this.versions = new VersionsAPI.Versions(this._client);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* A list of packages.
|
|
22
|
+
*
|
|
23
|
+
* - Requires: `Unity Packages V2 Platform API`
|
|
24
|
+
* - Filterable fields: `package_key`
|
|
25
|
+
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
26
|
+
*/
|
|
27
|
+
list(query = {}, options) {
|
|
28
|
+
return this._client.getAPIList('/packages/', (pagination_1.PageCursorURL), { query, ...options });
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Create a new package
|
|
32
|
+
*/
|
|
33
|
+
create(body, options) {
|
|
34
|
+
return this._client.post('/packages/', { body, ...options });
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Retrieve a specific package
|
|
38
|
+
*/
|
|
39
|
+
retrieve(id, options) {
|
|
40
|
+
return this._client.get((0, path_1.path) `/packages/${id}/`, options);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Update a specific package.
|
|
44
|
+
*/
|
|
45
|
+
update(id, body, options) {
|
|
46
|
+
return this._client.patch((0, path_1.path) `/packages/${id}/`, { body, ...options });
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Delete a package
|
|
50
|
+
*/
|
|
51
|
+
delete(id, options) {
|
|
52
|
+
return this._client.delete((0, path_1.path) `/packages/${id}/`, {
|
|
53
|
+
...options,
|
|
54
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.Packages = Packages;
|
|
59
|
+
Packages.Versions = versions_1.Versions;
|
|
60
|
+
//# sourceMappingURL=packages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"packages.js","sourceRoot":"","sources":["../../src/resources/packages/packages.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,mEAA0C;AAC1C,4CAAkF;AAElF,yDAAmE;AACnE,uDAAsD;AAEtD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA8C1E,CAAC;IA5CC;;;;;;OAMG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,YAAY,EAAE,CAAA,0BAAkC,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1G,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,IAAyB,EAAE,OAAwB;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,GAAG,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,GAAG,EAAE;YACjD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AA/CD,4BA+CC;AAuPD,QAAQ,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import * as VersionsAPI from "./versions.mjs";
|
|
4
|
+
import { Versions } from "./versions.mjs";
|
|
5
|
+
import { PageCursorURL } from "../../core/pagination.mjs";
|
|
6
|
+
import { buildHeaders } from "../../internal/headers.mjs";
|
|
7
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
8
|
+
/**
|
|
9
|
+
* Author, publish, and install Unity Packages V2 packages
|
|
10
|
+
*/
|
|
11
|
+
export class Packages extends APIResource {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
this.versions = new VersionsAPI.Versions(this._client);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* A list of packages.
|
|
18
|
+
*
|
|
19
|
+
* - Requires: `Unity Packages V2 Platform API`
|
|
20
|
+
* - Filterable fields: `package_key`
|
|
21
|
+
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
22
|
+
*/
|
|
23
|
+
list(query = {}, options) {
|
|
24
|
+
return this._client.getAPIList('/packages/', (PageCursorURL), { query, ...options });
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Create a new package
|
|
28
|
+
*/
|
|
29
|
+
create(body, options) {
|
|
30
|
+
return this._client.post('/packages/', { body, ...options });
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Retrieve a specific package
|
|
34
|
+
*/
|
|
35
|
+
retrieve(id, options) {
|
|
36
|
+
return this._client.get(path `/packages/${id}/`, options);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Update a specific package.
|
|
40
|
+
*/
|
|
41
|
+
update(id, body, options) {
|
|
42
|
+
return this._client.patch(path `/packages/${id}/`, { body, ...options });
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Delete a package
|
|
46
|
+
*/
|
|
47
|
+
delete(id, options) {
|
|
48
|
+
return this._client.delete(path `/packages/${id}/`, {
|
|
49
|
+
...options,
|
|
50
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
Packages.Versions = Versions;
|
|
55
|
+
//# sourceMappingURL=packages.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"packages.mjs","sourceRoot":"","sources":["../../src/resources/packages/packages.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAA8C,QAAQ,EAAE,uBAAmB;AAElF,OAAO,EAAE,aAAa,EAAe,kCAA8B;AACnE,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,QAAS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|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Author, publish, and install Unity Packages V2 packages
|
|
6
|
+
*/
|
|
7
|
+
export declare class Versions extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Create a new package version.
|
|
10
|
+
*/
|
|
11
|
+
create(packageKey: string, body: VersionCreateParams, options?: RequestOptions): APIPromise<VersionCreateResponse>;
|
|
12
|
+
}
|
|
13
|
+
export interface VersionCreateResponse {
|
|
14
|
+
/**
|
|
15
|
+
* The semantic version number for this package version
|
|
16
|
+
*/
|
|
17
|
+
version_number: string;
|
|
18
|
+
/**
|
|
19
|
+
* The unique identifier of the package version
|
|
20
|
+
*/
|
|
21
|
+
id?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Components included in this package version
|
|
24
|
+
*/
|
|
25
|
+
components?: Array<unknown>;
|
|
26
|
+
/**
|
|
27
|
+
* Record creation date
|
|
28
|
+
*/
|
|
29
|
+
created_at?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The description of the package version
|
|
32
|
+
*/
|
|
33
|
+
description?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Whether this package version has been published
|
|
36
|
+
*/
|
|
37
|
+
is_published?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* The display name of the parent package
|
|
40
|
+
*/
|
|
41
|
+
package_display_name?: string;
|
|
42
|
+
/**
|
|
43
|
+
* The ID of the parent package
|
|
44
|
+
*/
|
|
45
|
+
package_id?: string;
|
|
46
|
+
/**
|
|
47
|
+
* The package key of the parent package
|
|
48
|
+
*/
|
|
49
|
+
package_key?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Record update date
|
|
52
|
+
*/
|
|
53
|
+
updated_at?: string;
|
|
54
|
+
}
|
|
55
|
+
export interface VersionCreateParams {
|
|
56
|
+
/**
|
|
57
|
+
* The semantic version number for this package version
|
|
58
|
+
*/
|
|
59
|
+
version_number: string;
|
|
60
|
+
/**
|
|
61
|
+
* Components included in this package version
|
|
62
|
+
*/
|
|
63
|
+
components?: Array<unknown>;
|
|
64
|
+
/**
|
|
65
|
+
* The description of the package version
|
|
66
|
+
*/
|
|
67
|
+
description?: string;
|
|
68
|
+
}
|
|
69
|
+
export declare namespace Versions {
|
|
70
|
+
export { type VersionCreateResponse as VersionCreateResponse, type VersionCreateParams as VersionCreateParams, };
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=versions.d.mts.map
|