@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,83 @@
|
|
|
1
|
+
import type { RipplingSDK } from "../../../client.js";
|
|
2
|
+
import type { CustomObject } from "../../../resources/custom-objects/custom-objects.js";
|
|
3
|
+
import type { CustomObjectField } from "../../../resources/custom-objects/fields.js";
|
|
4
|
+
import type { AnyCustomObjectDefinition, FieldNames } from "./types.js";
|
|
5
|
+
import type { CustomObjectCategoryDefinition, ReconciledCustomObjectCategory } from "./category.js";
|
|
6
|
+
/** Lifecycle action emitted by typed metadata reconciliation helpers. */
|
|
7
|
+
export type CustomObjectLifecycleAction = 'created' | 'updated' | 'deleted' | 'unchanged';
|
|
8
|
+
/** Reconciliation result for one logical custom-object field. */
|
|
9
|
+
export interface ReconciledCustomObjectField<TDefinition extends AnyCustomObjectDefinition = AnyCustomObjectDefinition> {
|
|
10
|
+
/** Source typed object definition. */
|
|
11
|
+
readonly definition: TDefinition;
|
|
12
|
+
/** Logical field name from the typed definition. */
|
|
13
|
+
readonly fieldName: FieldNames<TDefinition>;
|
|
14
|
+
/** Action applied to the field. */
|
|
15
|
+
readonly action: CustomObjectLifecycleAction;
|
|
16
|
+
/** Remote field after reconciliation, when present. */
|
|
17
|
+
readonly field?: CustomObjectField;
|
|
18
|
+
}
|
|
19
|
+
/** Result returned by custom-object reconciliation helpers. */
|
|
20
|
+
export interface ReconciledCustomObject<TDefinition extends AnyCustomObjectDefinition = AnyCustomObjectDefinition> {
|
|
21
|
+
/** Source typed object definition. */
|
|
22
|
+
readonly definition: TDefinition;
|
|
23
|
+
/** Optional category reconciliation result, when a category definition was supplied. */
|
|
24
|
+
readonly category?: ReconciledCustomObjectCategory;
|
|
25
|
+
/** Whether the object metadata was created, updated, or already matched. */
|
|
26
|
+
readonly objectAction: Exclude<CustomObjectLifecycleAction, 'deleted'>;
|
|
27
|
+
/** Remote object after reconciliation. */
|
|
28
|
+
readonly object: CustomObject;
|
|
29
|
+
/** Whether the platform-managed name field required an update. */
|
|
30
|
+
readonly nameFieldAction?: Exclude<CustomObjectLifecycleAction, 'deleted'>;
|
|
31
|
+
/** Remote `name` field after applying `name_field_details`, when relevant. */
|
|
32
|
+
readonly nameField?: CustomObjectField;
|
|
33
|
+
/** Per-field reconciliation results keyed by logical field name. */
|
|
34
|
+
readonly fields: Readonly<Record<FieldNames<TDefinition>, ReconciledCustomObjectField<TDefinition>>>;
|
|
35
|
+
/** Deleted extra remote fields keyed by api name. */
|
|
36
|
+
readonly deletedFieldApiNames: readonly string[];
|
|
37
|
+
}
|
|
38
|
+
/** Options for reconciling one typed custom-object definition against the backend. */
|
|
39
|
+
export interface ReconcileCustomObjectDefinitionOptions {
|
|
40
|
+
/** Optional typed category definition to reconcile before the object. */
|
|
41
|
+
readonly categoryDefinition?: CustomObjectCategoryDefinition;
|
|
42
|
+
/** Resolved category id used by the live REST object APIs. */
|
|
43
|
+
readonly categoryIdentifier?: string;
|
|
44
|
+
/** Whether to delete non-standard remote fields that are absent from the typed definition. */
|
|
45
|
+
readonly deleteMissingFields?: boolean;
|
|
46
|
+
/** Whether to update the platform-managed `name` field when using autonumber metadata. Defaults to `true`. */
|
|
47
|
+
readonly updateNameFieldDetails?: boolean;
|
|
48
|
+
}
|
|
49
|
+
/** Options for reconciling multiple typed custom-object definitions in one batch. */
|
|
50
|
+
export interface ReconcileCustomObjectDefinitionsOptions extends Omit<ReconcileCustomObjectDefinitionOptions, 'categoryDefinition' | 'categoryIdentifier'> {
|
|
51
|
+
/** Optional typed categories to reconcile before object reconciliation. */
|
|
52
|
+
readonly categoryDefinitions?: readonly CustomObjectCategoryDefinition[];
|
|
53
|
+
/** Resolved category ids keyed by object api name for definitions without embedded category definitions. */
|
|
54
|
+
readonly categoryIdentifiersByObjectApiName?: Readonly<Record<string, string>>;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Reconciles one typed custom-object definition against the backend.
|
|
58
|
+
*
|
|
59
|
+
* @param client - SDK client used to call the metadata APIs.
|
|
60
|
+
* @param definition - Typed object definition to reconcile.
|
|
61
|
+
* @param options - Reconciliation behavior flags for categories, name fields, and deletions.
|
|
62
|
+
* @returns Frozen reconciliation result describing the final backend state.
|
|
63
|
+
* @typeParam TDefinition - Object definition being reconciled.
|
|
64
|
+
*/
|
|
65
|
+
export declare function reconcileCustomObjectDefinition<TDefinition extends AnyCustomObjectDefinition>(client: RipplingSDK, definition: TDefinition, options?: ReconcileCustomObjectDefinitionOptions): Promise<ReconciledCustomObject<TDefinition>>;
|
|
66
|
+
/**
|
|
67
|
+
* Reconciles multiple typed custom-object definitions in a relationship-safe batch.
|
|
68
|
+
*
|
|
69
|
+
* @param client - SDK client used to call the metadata APIs.
|
|
70
|
+
* @param definitions - Typed object definitions to reconcile.
|
|
71
|
+
* @param options - Batch reconciliation behavior flags.
|
|
72
|
+
* @returns Frozen reconciliation results in input order.
|
|
73
|
+
*/
|
|
74
|
+
export declare function reconcileCustomObjectDefinitions(client: RipplingSDK, definitions: readonly AnyCustomObjectDefinition[], options?: ReconcileCustomObjectDefinitionsOptions): Promise<readonly ReconciledCustomObject[]>;
|
|
75
|
+
/**
|
|
76
|
+
* Deletes one typed custom object definition by its compiled API name.
|
|
77
|
+
*
|
|
78
|
+
* @param client - SDK client used to call the object APIs.
|
|
79
|
+
* @param definition - Typed object definition identifying the object to delete.
|
|
80
|
+
* @typeParam TDefinition - Object definition being deleted.
|
|
81
|
+
*/
|
|
82
|
+
export declare function deleteCustomObjectDefinition<TDefinition extends AnyCustomObjectDefinition>(client: RipplingSDK, definition: TDefinition): Promise<void>;
|
|
83
|
+
//# sourceMappingURL=lifecycle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lifecycle.d.ts","sourceRoot":"","sources":["../../../src/core/platform/custom-objects/lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,2BAAwB;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,4DAAyD;AACrF,OAAO,KAAK,EAAE,iBAAiB,EAAE,oDAAiD;AAClF,OAAO,KAAK,EAAE,yBAAyB,EAAsB,UAAU,EAAE,mBAAgB;AACzF,OAAO,KAAK,EAAE,8BAA8B,EAAE,8BAA8B,EAAE,sBAAmB;AAQjG,yEAAyE;AACzE,MAAM,MAAM,2BAA2B,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,CAAC;AAE1F,iEAAiE;AACjE,MAAM,WAAW,2BAA2B,CAC1C,WAAW,SAAS,yBAAyB,GAAG,yBAAyB;IAEzE,sCAAsC;IACtC,QAAQ,CAAC,UAAU,EAAE,WAAW,CAAC;IACjC,oDAAoD;IACpD,QAAQ,CAAC,SAAS,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;IAC5C,mCAAmC;IACnC,QAAQ,CAAC,MAAM,EAAE,2BAA2B,CAAC;IAC7C,uDAAuD;IACvD,QAAQ,CAAC,KAAK,CAAC,EAAE,iBAAiB,CAAC;CACpC;AAED,+DAA+D;AAC/D,MAAM,WAAW,sBAAsB,CACrC,WAAW,SAAS,yBAAyB,GAAG,yBAAyB;IAEzE,sCAAs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C,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CAChF;AAqXD;;;;;;;;GAQG;AACH,wBAAsB,+BAA+B,CAAC,WAAW,SAAS,yBAAyB,EACjG,MAAM,EAAE,WAAW,EACnB,UAAU,EAAE,WAAW,EACvB,OAAO,GAAE,sCAA2C,GACnD,OAAO,CAAC,sBAAsB,CAAC,WAAW,CAAC,CAAC,CAwB9C;AAED;;;;;;;GAOG;AACH,wBAAsB,gCAAgC,CACpD,MAAM,EAAE,WAAW,EACnB,WAAW,EAAE,SAAS,yBAAyB,EAAE,EACjD,OAAO,GAAE,uCAA4C,GACpD,OAAO,CAAC,SAAS,sBAAsB,EAAE,CAAC,CAgD5C;AAED;;;;;;GAMG;AACH,wBAAsB,4BAA4B,CAAC,WAAW,SAAS,yBAAyB,EAC9F,MAAM,EAAE,WAAW,EACnB,UAAU,EAAE,WAAW,GACtB,OAAO,CAAC,IAAI,CAAC,CAEf"}
|
|
@@ -0,0 +1,372 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.reconcileCustomObjectDefinition = reconcileCustomObjectDefinition;
|
|
4
|
+
exports.reconcileCustomObjectDefinitions = reconcileCustomObjectDefinitions;
|
|
5
|
+
exports.deleteCustomObjectDefinition = deleteCustomObjectDefinition;
|
|
6
|
+
const category_1 = require("./category.js");
|
|
7
|
+
const provisioning_1 = require("./provisioning.js");
|
|
8
|
+
/**
|
|
9
|
+
* Returns whether one field should be treated as an inter-object relationship during reconciliation ordering.
|
|
10
|
+
*
|
|
11
|
+
* @param field - Typed field definition to inspect.
|
|
12
|
+
* @returns Whether the field references another object.
|
|
13
|
+
*/
|
|
14
|
+
function isRelationshipField(field) {
|
|
15
|
+
return field.kind === 'lookup' || field.kind === 'parent-child';
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Compares two metadata payload fragments structurally using JSON serialization.
|
|
19
|
+
*
|
|
20
|
+
* @param left - First value to compare.
|
|
21
|
+
* @param right - Second value to compare.
|
|
22
|
+
* @returns Whether the two values serialize to the same JSON representation.
|
|
23
|
+
*/
|
|
24
|
+
function valuesEqual(left, right) {
|
|
25
|
+
return JSON.stringify(left) === JSON.stringify(right);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Returns the field name the backend should currently expose for comparison purposes.
|
|
29
|
+
*
|
|
30
|
+
* @param field - Typed field definition being reconciled.
|
|
31
|
+
* @param useDisplayMetadata - Whether reconciliation should compare the display label rather than the logical name.
|
|
32
|
+
* @returns Expected backend-visible field name.
|
|
33
|
+
*/
|
|
34
|
+
function expectedFieldName(field, useDisplayMetadata) {
|
|
35
|
+
return useDisplayMetadata ? field.displayName : field.logicalName ?? field.displayName;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Returns the runtime-only `required` value when the active API profile happens to expose it.
|
|
39
|
+
*
|
|
40
|
+
* @param existing - Public field DTO returned by the backend.
|
|
41
|
+
* @returns Exposed required flag when present on the DTO.
|
|
42
|
+
*/
|
|
43
|
+
function existingFieldRequiredValue(existing) {
|
|
44
|
+
const value = existing['required'];
|
|
45
|
+
return typeof value === 'boolean' ? value : undefined;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Returns true when the desired field metadata is accepted on write but not exposed by the public read DTO.
|
|
49
|
+
*
|
|
50
|
+
* In those cases reconciliation cannot prove equality from `list`/`retrieve`, so the safest current-API
|
|
51
|
+
* behavior is to reapply the write-time metadata instead of treating the field as unchanged.
|
|
52
|
+
*/
|
|
53
|
+
/**
|
|
54
|
+
* Returns whether reconciliation must blindly reapply write-only field metadata.
|
|
55
|
+
*
|
|
56
|
+
* @param expected - Precompiled field create/update payloads derived from the definition.
|
|
57
|
+
* @returns Whether the public read DTO lacks enough information to prove equality.
|
|
58
|
+
*/
|
|
59
|
+
function fieldRequiresBlindMetadataUpdate(expected) {
|
|
60
|
+
const update = expected.update;
|
|
61
|
+
return (update['section'] != null ||
|
|
62
|
+
update['rql_definition'] != null ||
|
|
63
|
+
update['formula_attr_metas'] != null ||
|
|
64
|
+
update['derived_field_formula'] != null);
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Returns whether one public field DTO matches the currently observable subset of the typed field definition.
|
|
68
|
+
*
|
|
69
|
+
* @param existing - Public field DTO returned by the backend.
|
|
70
|
+
* @param field - Typed field definition being reconciled.
|
|
71
|
+
* @param expected - Precompiled field create/update payloads derived from the definition.
|
|
72
|
+
* @param useDisplayMetadata - Whether to compare display metadata or raw logical naming.
|
|
73
|
+
* @returns Whether the read-visible remote field already matches the definition.
|
|
74
|
+
*/
|
|
75
|
+
function remoteFieldMatchesDefinition(existing, field, expected, useDisplayMetadata) {
|
|
76
|
+
if (fieldRequiresBlindMetadataUpdate(expected))
|
|
77
|
+
return false;
|
|
78
|
+
const uniqueMatches = expected.update.is_unique == null ? true : existing.is_unique === expected.update.is_unique;
|
|
79
|
+
const enableHistoryMatches = expected.update.enable_history == null ?
|
|
80
|
+
true
|
|
81
|
+
: existing.enable_history === expected.update.enable_history;
|
|
82
|
+
const requiredMatches = expected.update.required == null ?
|
|
83
|
+
true
|
|
84
|
+
: (existingFieldRequiredValue(existing) ?? expected.update.required) === expected.update.required;
|
|
85
|
+
return (existing.name === expectedFieldName(field, useDisplayMetadata) &&
|
|
86
|
+
(existing.description ?? null) === (field.description ?? null) &&
|
|
87
|
+
uniqueMatches &&
|
|
88
|
+
enableHistoryMatches &&
|
|
89
|
+
requiredMatches &&
|
|
90
|
+
valuesEqual(existing.data_type, expected.update.data_type));
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Retrieves one existing custom object by API name, returning `undefined` when it does not exist.
|
|
94
|
+
*
|
|
95
|
+
* @param client - SDK client used to call the object APIs.
|
|
96
|
+
* @param customObjectApiName - Compiled custom-object API name to retrieve.
|
|
97
|
+
* @returns Existing custom object DTO, if found.
|
|
98
|
+
*/
|
|
99
|
+
async function retrieveExistingObject(client, customObjectApiName) {
|
|
100
|
+
try {
|
|
101
|
+
return await client.customObjects.retrieve(customObjectApiName);
|
|
102
|
+
}
|
|
103
|
+
catch (error) {
|
|
104
|
+
if (error instanceof Error && 'status' in error && error.status === 404) {
|
|
105
|
+
return undefined;
|
|
106
|
+
}
|
|
107
|
+
throw error;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Lists existing remote fields for one custom object keyed by API name.
|
|
112
|
+
*
|
|
113
|
+
* @param client - SDK client used to call the field APIs.
|
|
114
|
+
* @param customObjectApiName - Compiled custom-object API name whose fields should be listed.
|
|
115
|
+
* @returns Map of field API names to public field DTOs.
|
|
116
|
+
*/
|
|
117
|
+
async function listExistingFields(client, customObjectApiName) {
|
|
118
|
+
const results = new Map();
|
|
119
|
+
for await (const field of client.customObjects.fields.list(customObjectApiName)) {
|
|
120
|
+
results.set(field.api_name, field);
|
|
121
|
+
}
|
|
122
|
+
return results;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Rejects duplicate object definitions within one batch reconciliation request.
|
|
126
|
+
*
|
|
127
|
+
* @param definitions - Typed object definitions to validate for uniqueness.
|
|
128
|
+
* @throws Error when multiple definitions compile to the same object API name.
|
|
129
|
+
*/
|
|
130
|
+
function assertUniqueObjectDefinitions(definitions) {
|
|
131
|
+
const seen = new Map();
|
|
132
|
+
for (const definition of definitions) {
|
|
133
|
+
const existingName = seen.get(definition.apiName);
|
|
134
|
+
if (existingName != null) {
|
|
135
|
+
throw new Error(`Duplicate custom object definition for "${definition.apiName}" in batch: ` +
|
|
136
|
+
`"${existingName}" and "${definition.name}".`);
|
|
137
|
+
}
|
|
138
|
+
seen.set(definition.apiName, definition.name);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Collects and deduplicates embedded or explicitly supplied category definitions for a batch reconcile.
|
|
143
|
+
*
|
|
144
|
+
* @param definitions - Object definitions participating in the batch.
|
|
145
|
+
* @param explicitDefinitions - Optional explicit category definitions supplied by the caller.
|
|
146
|
+
* @returns Frozen deduplicated category-definition list.
|
|
147
|
+
* @throws Error when two definitions for the same category API name disagree on visible metadata.
|
|
148
|
+
*/
|
|
149
|
+
function collectCategoryDefinitions(definitions, explicitDefinitions) {
|
|
150
|
+
const categoryDefinitions = explicitDefinitions ?? definitions.map((definition) => definition.categoryDefinition);
|
|
151
|
+
const uniqueDefinitions = new Map();
|
|
152
|
+
for (const definition of categoryDefinitions) {
|
|
153
|
+
if (definition == null)
|
|
154
|
+
continue;
|
|
155
|
+
const existing = uniqueDefinitions.get(definition.apiName);
|
|
156
|
+
if (existing != null) {
|
|
157
|
+
if (existing.displayName !== definition.displayName ||
|
|
158
|
+
existing.description !== definition.description) {
|
|
159
|
+
throw new Error(`Conflicting category definitions for "${definition.apiName}" in batch reconciliation.`);
|
|
160
|
+
}
|
|
161
|
+
continue;
|
|
162
|
+
}
|
|
163
|
+
uniqueDefinitions.set(definition.apiName, definition);
|
|
164
|
+
}
|
|
165
|
+
return Object.freeze([...uniqueDefinitions.values()]);
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Requires a resolved category identifier for one object reconciliation operation.
|
|
169
|
+
*
|
|
170
|
+
* @param definition - Object definition that needs a category identifier.
|
|
171
|
+
* @param categoryIdentifier - Resolved custom-category id or native category id, if available.
|
|
172
|
+
* @returns Required category identifier.
|
|
173
|
+
* @throws Error when no usable category identifier is available.
|
|
174
|
+
* @typeParam TDefinition - Object definition being reconciled.
|
|
175
|
+
*/
|
|
176
|
+
function requireCategoryIdentifier(definition, categoryIdentifier) {
|
|
177
|
+
if (categoryIdentifier != null)
|
|
178
|
+
return categoryIdentifier;
|
|
179
|
+
throw new Error(`A category identifier is required to reconcile "${definition.apiName}". ` +
|
|
180
|
+
`Provide options.categoryIdentifier or embed/provide a typed category definition.`);
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Ensures the remote custom object exists and matches the currently visible object metadata.
|
|
184
|
+
*
|
|
185
|
+
* @param client - SDK client used to call the object APIs.
|
|
186
|
+
* @param definition - Typed object definition to reconcile.
|
|
187
|
+
* @param categoryIdentifier - Resolved category id required by the live object APIs.
|
|
188
|
+
* @returns Object action summary describing whether the object was created, updated, or already matched.
|
|
189
|
+
* @typeParam TDefinition - Object definition being reconciled.
|
|
190
|
+
*/
|
|
191
|
+
async function ensureObjectExists(client, definition, categoryIdentifier) {
|
|
192
|
+
const existing = await retrieveExistingObject(client, definition.apiName);
|
|
193
|
+
if (existing == null) {
|
|
194
|
+
const created = await client.customObjects.create({
|
|
195
|
+
category: categoryIdentifier,
|
|
196
|
+
description: definition.description,
|
|
197
|
+
name: definition.name,
|
|
198
|
+
});
|
|
199
|
+
const updated = await client.customObjects.update(definition.apiName, (0, provisioning_1.buildCustomObjectUpdateParams)(definition, categoryIdentifier));
|
|
200
|
+
return { action: 'created', object: updated };
|
|
201
|
+
}
|
|
202
|
+
const shouldUpdate = existing.category_id !== categoryIdentifier ||
|
|
203
|
+
existing.name !== definition.displayName ||
|
|
204
|
+
(existing.description ?? null) !== (definition.description ?? null) ||
|
|
205
|
+
(definition.enableHistory != null && existing.enable_history !== definition.enableHistory) ||
|
|
206
|
+
existing.plural_label !== (definition.pluralLabel ?? existing.plural_label) ||
|
|
207
|
+
(definition.ownerRole != null && existing.owner_id !== definition.ownerRole);
|
|
208
|
+
if (!shouldUpdate)
|
|
209
|
+
return { action: 'unchanged', object: existing };
|
|
210
|
+
const updated = await client.customObjects.update(definition.apiName, (0, provisioning_1.buildCustomObjectUpdateParams)(definition, categoryIdentifier));
|
|
211
|
+
return { action: 'updated', object: updated };
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Reapplies platform-managed `name` field metadata when the typed definition uses autonumber settings.
|
|
215
|
+
*
|
|
216
|
+
* @param client - SDK client used to call the field APIs.
|
|
217
|
+
* @param definition - Typed object definition whose name-field metadata should be enforced.
|
|
218
|
+
* @param options - Reconciliation behavior flags.
|
|
219
|
+
* @returns Optional update result for the platform-managed `name` field.
|
|
220
|
+
* @typeParam TDefinition - Object definition being reconciled.
|
|
221
|
+
*/
|
|
222
|
+
async function reconcileNameField(client, definition, options) {
|
|
223
|
+
if (!(options.updateNameFieldDetails ?? true))
|
|
224
|
+
return {};
|
|
225
|
+
const nameFieldDetails = (0, provisioning_1.buildCustomObjectNameFieldDetails)(definition);
|
|
226
|
+
if (nameFieldDetails == null)
|
|
227
|
+
return {};
|
|
228
|
+
const field = await client.customObjects.fields.update(definition.apiName, 'name', {
|
|
229
|
+
name_field_details: nameFieldDetails,
|
|
230
|
+
});
|
|
231
|
+
return { action: 'updated', field };
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Reconciles all custom fields for one object definition, creating, updating, and optionally deleting fields.
|
|
235
|
+
*
|
|
236
|
+
* @param client - SDK client used to call the field APIs.
|
|
237
|
+
* @param definition - Typed object definition whose fields should be reconciled.
|
|
238
|
+
* @param options - Reconciliation behavior flags.
|
|
239
|
+
* @returns Reconciled field results plus deleted extra remote field API names.
|
|
240
|
+
* @typeParam TDefinition - Object definition being reconciled.
|
|
241
|
+
*/
|
|
242
|
+
async function reconcileFields(client, definition, options) {
|
|
243
|
+
const existingByApiName = await listExistingFields(client, definition.apiName);
|
|
244
|
+
const orderedFieldNames = Object.keys(definition.fields).sort((left, right) => {
|
|
245
|
+
const leftField = definition.fields[left];
|
|
246
|
+
const rightField = definition.fields[right];
|
|
247
|
+
return Number(isRelationshipField(leftField)) - Number(isRelationshipField(rightField));
|
|
248
|
+
});
|
|
249
|
+
const reconciled = {};
|
|
250
|
+
for (const fieldName of orderedFieldNames) {
|
|
251
|
+
const field = definition.fields[fieldName];
|
|
252
|
+
const params = (0, provisioning_1.buildProvisionableFieldParams)(definition, fieldName);
|
|
253
|
+
const existing = existingByApiName.get(field.apiName);
|
|
254
|
+
if (existing == null) {
|
|
255
|
+
const created = await client.customObjects.fields.create(definition.apiName, params.create);
|
|
256
|
+
const updated = await client.customObjects.fields.update(definition.apiName, field.apiName, params.update);
|
|
257
|
+
reconciled[fieldName] = Object.freeze({
|
|
258
|
+
definition,
|
|
259
|
+
fieldName,
|
|
260
|
+
action: 'created',
|
|
261
|
+
field: updated.api_name === field.apiName ? updated : created,
|
|
262
|
+
});
|
|
263
|
+
continue;
|
|
264
|
+
}
|
|
265
|
+
if (remoteFieldMatchesDefinition(existing, field, params, true)) {
|
|
266
|
+
reconciled[fieldName] = Object.freeze({ definition, fieldName, action: 'unchanged', field: existing });
|
|
267
|
+
continue;
|
|
268
|
+
}
|
|
269
|
+
const updated = await client.customObjects.fields.update(definition.apiName, field.apiName, params.update);
|
|
270
|
+
reconciled[fieldName] = Object.freeze({ definition, fieldName, action: 'updated', field: updated });
|
|
271
|
+
}
|
|
272
|
+
const deletedFieldApiNames = [];
|
|
273
|
+
if (options.deleteMissingFields) {
|
|
274
|
+
const expectedFieldApiNames = new Set(Object.values(definition.fields).map((field) => field.apiName));
|
|
275
|
+
for (const existing of existingByApiName.values()) {
|
|
276
|
+
if (existing.is_standard || expectedFieldApiNames.has(existing.api_name))
|
|
277
|
+
continue;
|
|
278
|
+
await client.customObjects.fields.delete(definition.apiName, existing.api_name);
|
|
279
|
+
deletedFieldApiNames.push(existing.api_name);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
return {
|
|
283
|
+
fields: Object.freeze(reconciled),
|
|
284
|
+
deletedFieldApiNames: Object.freeze(deletedFieldApiNames),
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* Reconciles one typed custom-object definition against the backend.
|
|
289
|
+
*
|
|
290
|
+
* @param client - SDK client used to call the metadata APIs.
|
|
291
|
+
* @param definition - Typed object definition to reconcile.
|
|
292
|
+
* @param options - Reconciliation behavior flags for categories, name fields, and deletions.
|
|
293
|
+
* @returns Frozen reconciliation result describing the final backend state.
|
|
294
|
+
* @typeParam TDefinition - Object definition being reconciled.
|
|
295
|
+
*/
|
|
296
|
+
async function reconcileCustomObjectDefinition(client, definition, options = {}) {
|
|
297
|
+
const categoryDefinition = options.categoryDefinition ?? definition.categoryDefinition;
|
|
298
|
+
const category = categoryDefinition != null ?
|
|
299
|
+
await (0, category_1.reconcileCustomObjectCategoryDefinition)(client, categoryDefinition)
|
|
300
|
+
: undefined;
|
|
301
|
+
const categoryIdentifier = categoryDefinition != null ?
|
|
302
|
+
requireCategoryIdentifier(definition, category?.category.id)
|
|
303
|
+
: requireCategoryIdentifier(definition, options.categoryIdentifier);
|
|
304
|
+
const objectResult = await ensureObjectExists(client, definition, categoryIdentifier);
|
|
305
|
+
const nameField = await reconcileNameField(client, definition, options);
|
|
306
|
+
const fieldResults = await reconcileFields(client, definition, options);
|
|
307
|
+
return Object.freeze({
|
|
308
|
+
definition,
|
|
309
|
+
...(category != null ? { category } : {}),
|
|
310
|
+
objectAction: objectResult.action,
|
|
311
|
+
object: objectResult.object,
|
|
312
|
+
...(nameField.action != null ? { nameFieldAction: nameField.action } : {}),
|
|
313
|
+
...(nameField.field != null ? { nameField: nameField.field } : {}),
|
|
314
|
+
fields: fieldResults.fields,
|
|
315
|
+
deletedFieldApiNames: fieldResults.deletedFieldApiNames,
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* Reconciles multiple typed custom-object definitions in a relationship-safe batch.
|
|
320
|
+
*
|
|
321
|
+
* @param client - SDK client used to call the metadata APIs.
|
|
322
|
+
* @param definitions - Typed object definitions to reconcile.
|
|
323
|
+
* @param options - Batch reconciliation behavior flags.
|
|
324
|
+
* @returns Frozen reconciliation results in input order.
|
|
325
|
+
*/
|
|
326
|
+
async function reconcileCustomObjectDefinitions(client, definitions, options = {}) {
|
|
327
|
+
assertUniqueObjectDefinitions(definitions);
|
|
328
|
+
const categoryDefinitions = collectCategoryDefinitions(definitions, options.categoryDefinitions);
|
|
329
|
+
const reconciledCategoryIds = new Map();
|
|
330
|
+
for (const categoryDefinition of categoryDefinitions) {
|
|
331
|
+
const reconciledCategory = await (0, category_1.reconcileCustomObjectCategoryDefinition)(client, categoryDefinition);
|
|
332
|
+
reconciledCategoryIds.set(categoryDefinition.apiName, reconciledCategory.category.id);
|
|
333
|
+
}
|
|
334
|
+
const objectResults = new Map();
|
|
335
|
+
const nameFields = new Map();
|
|
336
|
+
for (const definition of definitions) {
|
|
337
|
+
const categoryIdentifier = definition.categoryDefinition != null ?
|
|
338
|
+
reconciledCategoryIds.get(definition.categoryDefinition.apiName)
|
|
339
|
+
: options.categoryIdentifiersByObjectApiName?.[definition.apiName];
|
|
340
|
+
objectResults.set(definition.apiName, await ensureObjectExists(client, definition, requireCategoryIdentifier(definition, categoryIdentifier)));
|
|
341
|
+
nameFields.set(definition.apiName, await reconcileNameField(client, definition, options));
|
|
342
|
+
}
|
|
343
|
+
const results = [];
|
|
344
|
+
for (const definition of definitions) {
|
|
345
|
+
const objectResult = objectResults.get(definition.apiName);
|
|
346
|
+
if (objectResult == null)
|
|
347
|
+
throw new Error(`Missing object reconciliation result for "${definition.apiName}".`);
|
|
348
|
+
const fieldResults = await reconcileFields(client, definition, options);
|
|
349
|
+
const nameField = nameFields.get(definition.apiName) ?? {};
|
|
350
|
+
results.push(Object.freeze({
|
|
351
|
+
definition,
|
|
352
|
+
objectAction: objectResult.action,
|
|
353
|
+
object: objectResult.object,
|
|
354
|
+
...(nameField.action != null ? { nameFieldAction: nameField.action } : {}),
|
|
355
|
+
...(nameField.field != null ? { nameField: nameField.field } : {}),
|
|
356
|
+
fields: fieldResults.fields,
|
|
357
|
+
deletedFieldApiNames: fieldResults.deletedFieldApiNames,
|
|
358
|
+
}));
|
|
359
|
+
}
|
|
360
|
+
return Object.freeze(results);
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* Deletes one typed custom object definition by its compiled API name.
|
|
364
|
+
*
|
|
365
|
+
* @param client - SDK client used to call the object APIs.
|
|
366
|
+
* @param definition - Typed object definition identifying the object to delete.
|
|
367
|
+
* @typeParam TDefinition - Object definition being deleted.
|
|
368
|
+
*/
|
|
369
|
+
async function deleteCustomObjectDefinition(client, definition) {
|
|
370
|
+
await client.customObjects.delete(definition.apiName);
|
|
371
|
+
}
|
|
372
|
+
//# sourceMappingURL=lifecycle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lifecycle.js","sourceRoot":"","sources":["../../../src/core/platform/custom-objects/lifecycle.ts"],"names":[],"mappings":";;AAocA,0EA4BC;AAUD,4EAoDC;AASD,oEAKC;AAviBD,4CAAqE;AACrE,oDAIwB;AA8DxB;;;;;GAKG;AACH,SAAS,mBAAmB,CAAC,KAAyB;IACpD,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,cAAc,CAAC;AAClE,CAAC;AAED;;;;;;GAMG;AACH,SAAS,WAAW,CAAC,IAAa,EAAE,KAAc;IAChD,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AACxD,CAAC;AAED;;;;;;GAMG;AACH,SAAS,iBAAiB,CAAC,KAAyB,EAAE,kBAA2B;IAC/E,OAAO,kBAAkB,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,IAAI,KAAK,CAAC,WAAW,CAAC;AACzF,CAAC;AAED;;;;;GAKG;AACH,SAAS,0BAA0B,CAAC,QAA2B;IAC7D,MAAM,KAAK,GAAI,QAA+C,CAAC,UAAU,CAAC,CAAC;IAC3E,OAAO,OAAO,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;AACxD,CAAC;AAED;;;;;GAKG;AACH;;;;;GAKG;AACH,SAAS,gCAAgC,CACvC,QAA0D;IAE1D,MAAM,MAAM,GAAG,QAAQ,CAAC,MAAiC,CAAC;IAC1D,OAAO,CACL,MAAM,CAAC,SAAS,CAAC,IAAI,IAAI;QACzB,MAA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