@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,369 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.formula = void 0;
|
|
4
|
+
exports.nativeModel = nativeModel;
|
|
5
|
+
exports.text = text;
|
|
6
|
+
exports.longText = longText;
|
|
7
|
+
exports.email = email;
|
|
8
|
+
exports.url = url;
|
|
9
|
+
exports.phone = phone;
|
|
10
|
+
exports.number = number;
|
|
11
|
+
exports.currency = currency;
|
|
12
|
+
exports.percentage = percentage;
|
|
13
|
+
exports.date = date;
|
|
14
|
+
exports.datetime = datetime;
|
|
15
|
+
exports.time = time;
|
|
16
|
+
exports.select = select;
|
|
17
|
+
exports.radio = radio;
|
|
18
|
+
exports.boolean = boolean;
|
|
19
|
+
exports.file = file;
|
|
20
|
+
exports.lookup = lookup;
|
|
21
|
+
exports.parentChild = parentChild;
|
|
22
|
+
exports.sections = sections;
|
|
23
|
+
/**
|
|
24
|
+
* Freezes a field definition so reusable fragments stay immutable at runtime.
|
|
25
|
+
*
|
|
26
|
+
* @typeParam TField - Concrete field definition being frozen.
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* Freezes one field definition fragment before returning it to callers.
|
|
30
|
+
*
|
|
31
|
+
* @param field - Concrete field definition to freeze.
|
|
32
|
+
* @returns The same field definition, frozen for safe reuse.
|
|
33
|
+
* @typeParam TField - Concrete field definition being frozen.
|
|
34
|
+
*/
|
|
35
|
+
function freezeField(field) {
|
|
36
|
+
return Object.freeze(field);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Normalizes an optional required flag into the literal type expected by field definitions.
|
|
40
|
+
*
|
|
41
|
+
* @typeParam TRequired - Literal boolean requested by the caller.
|
|
42
|
+
*/
|
|
43
|
+
/**
|
|
44
|
+
* Normalizes an optional `required` flag into the literal boolean type used by field definitions.
|
|
45
|
+
*
|
|
46
|
+
* @param required - Optional literal required flag supplied by the caller.
|
|
47
|
+
* @returns Normalized required flag, defaulting to `false`.
|
|
48
|
+
* @typeParam TRequired - Literal boolean requested by the caller.
|
|
49
|
+
*/
|
|
50
|
+
function normalizeRequired(required) {
|
|
51
|
+
return (required ?? false);
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Declares a native Rippling model target for lookup fields.
|
|
55
|
+
*
|
|
56
|
+
* @param apiName - Native model API name, for example `'Employee'`.
|
|
57
|
+
* @returns Immutable native-model target descriptor for lookup fields.
|
|
58
|
+
* @typeParam TApiName - Native model api name, for example `'Employee'`.
|
|
59
|
+
*/
|
|
60
|
+
function nativeModel(apiName) {
|
|
61
|
+
return Object.freeze({ kind: 'native-model-target', apiName });
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Defines a single-line text field.
|
|
65
|
+
*
|
|
66
|
+
* @param props - Text-field metadata and presentation properties.
|
|
67
|
+
* @returns Immutable text field definition.
|
|
68
|
+
* @typeParam TRequired - Whether the field is required during record creation.
|
|
69
|
+
* @typeParam TSectionKey - Allowed section-key union for the enclosing object.
|
|
70
|
+
*/
|
|
71
|
+
function text(props) {
|
|
72
|
+
return freezeField({ kind: 'text', required: normalizeRequired(props.required), writable: true, ...props });
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Defines a multi-line text field.
|
|
76
|
+
*
|
|
77
|
+
* @param props - Long-text field metadata and presentation properties.
|
|
78
|
+
* @returns Immutable long-text field definition.
|
|
79
|
+
* @typeParam TRequired - Whether the field is required during record creation.
|
|
80
|
+
* @typeParam TSectionKey - Allowed section-key union for the enclosing object.
|
|
81
|
+
*/
|
|
82
|
+
function longText(props) {
|
|
83
|
+
return freezeField({
|
|
84
|
+
kind: 'long-text',
|
|
85
|
+
required: normalizeRequired(props.required),
|
|
86
|
+
writable: true,
|
|
87
|
+
...props,
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Defines an email-address field.
|
|
92
|
+
*
|
|
93
|
+
* @param props - Email-field metadata and presentation properties.
|
|
94
|
+
* @returns Immutable email field definition.
|
|
95
|
+
* @typeParam TRequired - Whether the field is required during record creation.
|
|
96
|
+
* @typeParam TSectionKey - Allowed section-key union for the enclosing object.
|
|
97
|
+
*/
|
|
98
|
+
function email(props) {
|
|
99
|
+
return freezeField({
|
|
100
|
+
kind: 'email',
|
|
101
|
+
required: normalizeRequired(props.required),
|
|
102
|
+
writable: true,
|
|
103
|
+
...props,
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Defines a URL field.
|
|
108
|
+
*
|
|
109
|
+
* @param props - URL-field metadata and presentation properties.
|
|
110
|
+
* @returns Immutable URL field definition.
|
|
111
|
+
* @typeParam TRequired - Whether the field is required during record creation.
|
|
112
|
+
* @typeParam TSectionKey - Allowed section-key union for the enclosing object.
|
|
113
|
+
*/
|
|
114
|
+
function url(props) {
|
|
115
|
+
return freezeField({ kind: 'url', required: normalizeRequired(props.required), writable: true, ...props });
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Defines a phone-number field.
|
|
119
|
+
*
|
|
120
|
+
* @param props - Phone-field metadata and presentation properties.
|
|
121
|
+
* @returns Immutable phone field definition.
|
|
122
|
+
* @typeParam TRequired - Whether the field is required during record creation.
|
|
123
|
+
* @typeParam TSectionKey - Allowed section-key union for the enclosing object.
|
|
124
|
+
*/
|
|
125
|
+
function phone(props) {
|
|
126
|
+
return freezeField({
|
|
127
|
+
kind: 'phone',
|
|
128
|
+
required: normalizeRequired(props.required),
|
|
129
|
+
writable: true,
|
|
130
|
+
...props,
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Defines a numeric field.
|
|
135
|
+
*
|
|
136
|
+
* @param props - Number-field metadata and presentation properties.
|
|
137
|
+
* @returns Immutable number field definition.
|
|
138
|
+
* @typeParam TRequired - Whether the field is required during record creation.
|
|
139
|
+
* @typeParam TSectionKey - Allowed section-key union for the enclosing object.
|
|
140
|
+
*/
|
|
141
|
+
function number(props) {
|
|
142
|
+
return freezeField({
|
|
143
|
+
kind: 'number',
|
|
144
|
+
required: normalizeRequired(props.required),
|
|
145
|
+
writable: true,
|
|
146
|
+
...props,
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Defines a currency field.
|
|
151
|
+
*
|
|
152
|
+
* @param props - Currency-field metadata and presentation properties.
|
|
153
|
+
* @returns Immutable currency field definition.
|
|
154
|
+
* @typeParam TRequired - Whether the field is required during record creation.
|
|
155
|
+
* @typeParam TSectionKey - Allowed section-key union for the enclosing object.
|
|
156
|
+
*/
|
|
157
|
+
function currency(props) {
|
|
158
|
+
return freezeField({
|
|
159
|
+
kind: 'currency',
|
|
160
|
+
required: normalizeRequired(props.required),
|
|
161
|
+
writable: true,
|
|
162
|
+
...props,
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Defines a percentage field.
|
|
167
|
+
*
|
|
168
|
+
* @param props - Percentage-field metadata and presentation properties.
|
|
169
|
+
* @returns Immutable percentage field definition.
|
|
170
|
+
* @typeParam TRequired - Whether the field is required during record creation.
|
|
171
|
+
* @typeParam TSectionKey - Allowed section-key union for the enclosing object.
|
|
172
|
+
*/
|
|
173
|
+
function percentage(props) {
|
|
174
|
+
return freezeField({
|
|
175
|
+
kind: 'percentage',
|
|
176
|
+
required: normalizeRequired(props.required),
|
|
177
|
+
writable: true,
|
|
178
|
+
...props,
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Defines a date-only field.
|
|
183
|
+
*
|
|
184
|
+
* @param props - Date-field metadata and presentation properties.
|
|
185
|
+
* @returns Immutable date field definition.
|
|
186
|
+
* @typeParam TRequired - Whether the field is required during record creation.
|
|
187
|
+
* @typeParam TSectionKey - Allowed section-key union for the enclosing object.
|
|
188
|
+
*/
|
|
189
|
+
function date(props) {
|
|
190
|
+
return freezeField({ kind: 'date', required: normalizeRequired(props.required), writable: true, ...props });
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Defines a date-time field.
|
|
194
|
+
*
|
|
195
|
+
* @param props - Datetime-field metadata and presentation properties.
|
|
196
|
+
* @returns Immutable datetime field definition.
|
|
197
|
+
* @typeParam TRequired - Whether the field is required during record creation.
|
|
198
|
+
* @typeParam TSectionKey - Allowed section-key union for the enclosing object.
|
|
199
|
+
*/
|
|
200
|
+
function datetime(props) {
|
|
201
|
+
return freezeField({
|
|
202
|
+
kind: 'datetime',
|
|
203
|
+
required: normalizeRequired(props.required),
|
|
204
|
+
writable: true,
|
|
205
|
+
...props,
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Defines a time-of-day field.
|
|
210
|
+
*
|
|
211
|
+
* @param props - Time-field metadata and presentation properties.
|
|
212
|
+
* @returns Immutable time field definition.
|
|
213
|
+
* @typeParam TRequired - Whether the field is required during record creation.
|
|
214
|
+
* @typeParam TSectionKey - Allowed section-key union for the enclosing object.
|
|
215
|
+
*/
|
|
216
|
+
function time(props) {
|
|
217
|
+
return freezeField({ kind: 'time', required: normalizeRequired(props.required), writable: true, ...props });
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Defines a multi-select choice field.
|
|
221
|
+
*
|
|
222
|
+
* @param props - Multi-select field metadata and presentation properties.
|
|
223
|
+
* @returns Immutable multi-select field definition.
|
|
224
|
+
* @typeParam TRequired - Whether the field is required during record creation.
|
|
225
|
+
* @typeParam TSectionKey - Allowed section-key union for the enclosing object.
|
|
226
|
+
*/
|
|
227
|
+
function select(props) {
|
|
228
|
+
return freezeField({
|
|
229
|
+
kind: 'select',
|
|
230
|
+
required: normalizeRequired(props.required),
|
|
231
|
+
writable: true,
|
|
232
|
+
...props,
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Defines a single-select radio field.
|
|
237
|
+
*
|
|
238
|
+
* @param props - Radio-field metadata and presentation properties.
|
|
239
|
+
* @returns Immutable radio field definition.
|
|
240
|
+
* @typeParam TRequired - Whether the field is required during record creation.
|
|
241
|
+
* @typeParam TSectionKey - Allowed section-key union for the enclosing object.
|
|
242
|
+
*/
|
|
243
|
+
function radio(props) {
|
|
244
|
+
return freezeField({
|
|
245
|
+
kind: 'radio',
|
|
246
|
+
required: normalizeRequired(props.required),
|
|
247
|
+
writable: true,
|
|
248
|
+
...props,
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Defines a boolean field.
|
|
253
|
+
*
|
|
254
|
+
* @param props - Boolean-field metadata and presentation properties.
|
|
255
|
+
* @returns Immutable boolean field definition.
|
|
256
|
+
* @typeParam TRequired - Whether the field is required during record creation.
|
|
257
|
+
* @typeParam TSectionKey - Allowed section-key union for the enclosing object.
|
|
258
|
+
*/
|
|
259
|
+
function boolean(props) {
|
|
260
|
+
return freezeField({
|
|
261
|
+
kind: 'boolean',
|
|
262
|
+
required: normalizeRequired(props.required),
|
|
263
|
+
writable: true,
|
|
264
|
+
...props,
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* Defines a file attachment field.
|
|
269
|
+
*
|
|
270
|
+
* @param props - File-field metadata and presentation properties.
|
|
271
|
+
* @returns Immutable file field definition.
|
|
272
|
+
* @typeParam TRequired - Whether the field is required during record creation.
|
|
273
|
+
* @typeParam TSectionKey - Allowed section-key union for the enclosing object.
|
|
274
|
+
*/
|
|
275
|
+
function file(props) {
|
|
276
|
+
return freezeField({ kind: 'file', required: normalizeRequired(props.required), writable: true, ...props });
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Defines a many-to-one lookup field.
|
|
280
|
+
*
|
|
281
|
+
* @param target - Target object or native model referenced by the lookup.
|
|
282
|
+
* @param props - Lookup-field metadata and presentation properties.
|
|
283
|
+
* @returns Immutable lookup field definition.
|
|
284
|
+
* @typeParam TTarget - Target object or native model referenced by the lookup.
|
|
285
|
+
* @typeParam TRequired - Whether the lookup is required during record creation.
|
|
286
|
+
* @typeParam TSectionKey - Allowed section-key union for the enclosing object.
|
|
287
|
+
*/
|
|
288
|
+
function lookup(target, props) {
|
|
289
|
+
return freezeField({
|
|
290
|
+
kind: 'lookup',
|
|
291
|
+
target,
|
|
292
|
+
targetApiName: target.apiName,
|
|
293
|
+
required: normalizeRequired(props.required),
|
|
294
|
+
writable: true,
|
|
295
|
+
...props,
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* Defines a parent-child relationship field.
|
|
300
|
+
*
|
|
301
|
+
* @param target - Parent object definition referenced by the relationship.
|
|
302
|
+
* @param props - Parent-child field metadata and presentation properties.
|
|
303
|
+
* @returns Immutable parent-child field definition.
|
|
304
|
+
* @typeParam TTarget - Parent object definition referenced by the relationship.
|
|
305
|
+
* @typeParam TSectionKey - Allowed section-key union for the enclosing object.
|
|
306
|
+
*/
|
|
307
|
+
function parentChild(target, props) {
|
|
308
|
+
return freezeField({
|
|
309
|
+
kind: 'parent-child',
|
|
310
|
+
target,
|
|
311
|
+
targetApiName: target.apiName,
|
|
312
|
+
required: true,
|
|
313
|
+
writable: true,
|
|
314
|
+
...props,
|
|
315
|
+
});
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* Shared implementation for the public formula helpers.
|
|
319
|
+
*
|
|
320
|
+
* @typeParam TKind - Concrete formula-field discriminant.
|
|
321
|
+
* @typeParam TSectionKey - Allowed section-key union for the enclosing object.
|
|
322
|
+
*/
|
|
323
|
+
/**
|
|
324
|
+
* Builds one immutable read-only formula field definition.
|
|
325
|
+
*
|
|
326
|
+
* @param kind - Concrete formula-field discriminant to produce.
|
|
327
|
+
* @param props - Formula metadata and presentation properties.
|
|
328
|
+
* @returns Immutable formula field definition.
|
|
329
|
+
* @typeParam TKind - Concrete formula-field discriminant.
|
|
330
|
+
* @typeParam TSectionKey - Allowed section-key union for the enclosing object.
|
|
331
|
+
*/
|
|
332
|
+
function formulaField(kind, props) {
|
|
333
|
+
return freezeField({ ...props, kind, writable: false, required: false });
|
|
334
|
+
}
|
|
335
|
+
/** Typed helpers for read-only formula fields. */
|
|
336
|
+
exports.formula = Object.freeze({
|
|
337
|
+
text(props) {
|
|
338
|
+
return formulaField('formula-text', props);
|
|
339
|
+
},
|
|
340
|
+
number(props) {
|
|
341
|
+
return formulaField('formula-number', props);
|
|
342
|
+
},
|
|
343
|
+
boolean(props) {
|
|
344
|
+
return formulaField('formula-boolean', props);
|
|
345
|
+
},
|
|
346
|
+
currency(props) {
|
|
347
|
+
return formulaField('formula-currency', props);
|
|
348
|
+
},
|
|
349
|
+
percentage(props) {
|
|
350
|
+
return formulaField('formula-percentage', props);
|
|
351
|
+
},
|
|
352
|
+
date(props) {
|
|
353
|
+
return formulaField('formula-date', props);
|
|
354
|
+
},
|
|
355
|
+
url(props) {
|
|
356
|
+
return formulaField('formula-url', props);
|
|
357
|
+
},
|
|
358
|
+
});
|
|
359
|
+
/**
|
|
360
|
+
* Immutable helper for authoring section maps in reusable fragments.
|
|
361
|
+
*
|
|
362
|
+
* @param definitions - Section definitions to freeze and preserve as-is.
|
|
363
|
+
* @returns Frozen section-definition map retaining the caller's key/value types.
|
|
364
|
+
* @typeParam TSections - Concrete section map to preserve in the returned value.
|
|
365
|
+
*/
|
|
366
|
+
function sections(definitions) {
|
|
367
|
+
return Object.freeze({ ...definitions });
|
|
368
|
+
}
|
|
369
|
+
//# sourceMappingURL=fields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../src/core/platform/custom-objects/fields.ts"],"names":[],"mappings":";;;AA4HA,kCAEC;AAUD,oBAQC;AAUD,4BAaC;AAUD,sBAaC;AAUD,kBAOC;AAUD,sBAYC;AAUD,wBAYC;AAUD,4BAaC;AAUD,gCAYC;AAUD,oBAOC;AAUD,4BAYC;AAUD,oBAOC;AAUD,wBAYC;AAUD,sBAYC;AAUD,0BAYC;AAUD,oBAQC;AAYD,wBAoBC;AAWD,kCAoBC;AAqJD,4BAIC;AAvjBD;;;;GAIG;AACH;;;;;;GAMG;AACH,SAAS,WAAW,CAAoC,KAAa;IACnE,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC9B,CAAC;AAED;;;;GAIG;AACH;;;;;;GAMG;AACH,SAAS,iBAAiB,CAA4B,QAA+B;IACnF,OAAO,CAAC,QAAQ,IAAI,KAAK,CAAc,CAAC;AAC1C,CAAC;AAED;;;;;;GAMG;AACH,SAAgB,WAAW,CAA0B,OAAiB;IACpE,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,qBAAqB,EAAE,OAAO,EAAE,CAAC,CAAC;AACjE,CAAC;AAED;;;;;;;GAOG;AACH,SAAgB,IAAI,CAIlB,KACuG;IAEvG,OAAO,WAAW,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,iBAAiB,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC;AAC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