@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 @@
|
|
|
1
|
+
{"version":3,"file":"custom-objects.d.ts","sourceRoot":"","sources":["../../src/core/platform/custom-objects.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,+DAA+D;AAC/D,OAAO,EAAE,OAAO,EAAE,kCAA+B;AAEjD,yEAAyE;AACzE,YAAY,EACV,yBAAyB,EACzB,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,kBAAkB,EAClB,mBAAmB,EACnB,sBAAsB,EACtB,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,EAChB,UAAU,EACV,UAAU,EACV,aAAa,EACb,sBAAsB,EACtB,gBAAgB,EAChB,kBAAkB,EAClB,mBAAmB,EACnB,sBAAsB,EACtB,uBAAuB,EACvB,qBAAqB,EACrB,eAAe,EACf,YAAY,EACZ,mBAAmB,EACnB,iBAAiB,EACjB,0BAA0B,EAC1B,0BAA0B,EAC1B,kBAAkB,EAClB,WAAW,EACX,0BAA0B,EAC1B,uBAAuB,EACvB,iBAAiB,EACjB,kBAAkB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C,EACxC,sBAAsB,EACtB,oBAAoB,EACpB,eAAe,EACf,sBAAsB,EACtB,uBAAuB,GACxB,oCAAiC;AAElC,0GAA0G;AAC1G,OAAO,EACL,SAAS,EACT,mBAAmB,EACnB,iCAAiC,EACjC,iCAAiC,EACjC,8BAA8B,EAC9B,+BAA+B,GAChC,oCAAiC;AAElC,iFAAiF;AACjF,YAAY,EACV,wCAAwC,EACxC,2BAA2B,EAC3B,iCAAiC,GAClC,6CAA0C;AAE3C,+GAA+G;AAC/G,OAAO,EAAE,iCAAiC,EAAE,6CAA0C"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Public custom-object authoring surface for the Rippling TypeScript SDK.
|
|
4
|
+
*
|
|
5
|
+
* Import this module when you want a TypeScript-first, structural definition
|
|
6
|
+
* layer for custom objects that can be reused across manifests, functions,
|
|
7
|
+
* validators, tests, and agent-authored code.
|
|
8
|
+
*
|
|
9
|
+
* The implementation lives under `core/platform/custom-objects/`, but this file
|
|
10
|
+
* is the stable public entrypoint that consumers should import from:
|
|
11
|
+
*
|
|
12
|
+
* ```ts
|
|
13
|
+
* import { defineCustomObject, text } from '@rippling/rippling-sdk/core/platform/custom-objects';
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* Manifest-specific adapters for typed custom objects live under:
|
|
17
|
+
*
|
|
18
|
+
* ```ts
|
|
19
|
+
* import { registerManifestCustomObject } from '@rippling/rippling-sdk/core/platform/manifest/custom-objects';
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
+
exports.buildCustomObjectCreateParams = exports.reconcileCustomObjectCategoryDefinitions = exports.reconcileCustomObjectCategoryDefinition = exports.provisionCustomObjectCategoryDefinitions = exports.provisionCustomObjectCategoryDefinition = exports.deleteCustomObjectCategoryDefinition = exports.defineCustomObjectCategory = exports.buildObjectCategoryUpdateParams = exports.buildObjectCategoryCreateParams = exports.typedRql = exports.createRqlHelpers = exports.validateUpdateInput = exports.validateLogicalCustomObjectName = exports.validateLogicalCustomFieldName = exports.validateLogicalCategoryName = exports.validateCustomObjectDefinition = exports.validateCreateInput = exports.getRecordValue = exports.assertValidUpdateInput = exports.assertValidCreateInput = exports.asTypedRecord = exports.toCustomObjectApiName = exports.toCustomFieldApiName = exports.toCustomCategoryApiName = exports.isWritableField = exports.getFieldDefinition = exports.fieldNames = exports.extendCustomObject = exports.defineCustomObject = exports.url = exports.time = exports.text = exports.select = exports.sections = exports.radio = exports.phone = exports.percentage = exports.parentChild = exports.number = exports.nativeModel = exports.lookup = exports.longText = exports.formula = exports.file = exports.email = exports.datetime = exports.date = exports.currency = exports.boolean = exports.section = void 0;
|
|
24
|
+
exports.createCustomObjectFunctionRuntime = exports.createCustomObjectRecordAdapter = exports.TypedCustomObjectRecordManager = exports.InMemoryCustomObjectRecordAdapter = exports.CustomObjectRecordValidationError = exports.CustomObjectManager = exports.COManager = exports.TypedCustomObjectSchemaManager = exports.TypedCustomObjectCategoryManager = exports.CustomObjectSchemaManager = exports.COSchemaManager = exports.reconcileCustomObjectDefinitions = exports.reconcileCustomObjectDefinition = exports.deleteCustomObjectDefinition = exports.provisionCustomObjectDefinitions = exports.provisionCustomObjectDefinition = exports.buildProvisionableFieldParams = exports.buildCustomObjectUpdateParams = exports.buildCustomObjectNameFieldDetails = void 0;
|
|
25
|
+
/** Section-definition helper and foundational schema types. */
|
|
26
|
+
var types_1 = require("./custom-objects/types.js");
|
|
27
|
+
Object.defineProperty(exports, "section", { enumerable: true, get: function () { return types_1.section; } });
|
|
28
|
+
/** Field factories and reusable schema fragments. */
|
|
29
|
+
var fields_1 = require("./custom-objects/fields.js");
|
|
30
|
+
Object.defineProperty(exports, "boolean", { enumerable: true, get: function () { return fields_1.boolean; } });
|
|
31
|
+
Object.defineProperty(exports, "currency", { enumerable: true, get: function () { return fields_1.currency; } });
|
|
32
|
+
Object.defineProperty(exports, "date", { enumerable: true, get: function () { return fields_1.date; } });
|
|
33
|
+
Object.defineProperty(exports, "datetime", { enumerable: true, get: function () { return fields_1.datetime; } });
|
|
34
|
+
Object.defineProperty(exports, "email", { enumerable: true, get: function () { return fields_1.email; } });
|
|
35
|
+
Object.defineProperty(exports, "file", { enumerable: true, get: function () { return fields_1.file; } });
|
|
36
|
+
Object.defineProperty(exports, "formula", { enumerable: true, get: function () { return fields_1.formula; } });
|
|
37
|
+
Object.defineProperty(exports, "longText", { enumerable: true, get: function () { return fields_1.longText; } });
|
|
38
|
+
Object.defineProperty(exports, "lookup", { enumerable: true, get: function () { return fields_1.lookup; } });
|
|
39
|
+
Object.defineProperty(exports, "nativeModel", { enumerable: true, get: function () { return fields_1.nativeModel; } });
|
|
40
|
+
Object.defineProperty(exports, "number", { enumerable: true, get: function () { return fields_1.number; } });
|
|
41
|
+
Object.defineProperty(exports, "parentChild", { enumerable: true, get: function () { return fields_1.parentChild; } });
|
|
42
|
+
Object.defineProperty(exports, "percentage", { enumerable: true, get: function () { return fields_1.percentage; } });
|
|
43
|
+
Object.defineProperty(exports, "phone", { enumerable: true, get: function () { return fields_1.phone; } });
|
|
44
|
+
Object.defineProperty(exports, "radio", { enumerable: true, get: function () { return fields_1.radio; } });
|
|
45
|
+
Object.defineProperty(exports, "sections", { enumerable: true, get: function () { return fields_1.sections; } });
|
|
46
|
+
Object.defineProperty(exports, "select", { enumerable: true, get: function () { return fields_1.select; } });
|
|
47
|
+
Object.defineProperty(exports, "text", { enumerable: true, get: function () { return fields_1.text; } });
|
|
48
|
+
Object.defineProperty(exports, "time", { enumerable: true, get: function () { return fields_1.time; } });
|
|
49
|
+
Object.defineProperty(exports, "url", { enumerable: true, get: function () { return fields_1.url; } });
|
|
50
|
+
/** Immutable definition helpers for creating and extending schemas. */
|
|
51
|
+
var definition_1 = require("./custom-objects/definition.js");
|
|
52
|
+
Object.defineProperty(exports, "defineCustomObject", { enumerable: true, get: function () { return definition_1.defineCustomObject; } });
|
|
53
|
+
Object.defineProperty(exports, "extendCustomObject", { enumerable: true, get: function () { return definition_1.extendCustomObject; } });
|
|
54
|
+
Object.defineProperty(exports, "fieldNames", { enumerable: true, get: function () { return definition_1.fieldNames; } });
|
|
55
|
+
Object.defineProperty(exports, "getFieldDefinition", { enumerable: true, get: function () { return definition_1.getFieldDefinition; } });
|
|
56
|
+
Object.defineProperty(exports, "isWritableField", { enumerable: true, get: function () { return definition_1.isWritableField; } });
|
|
57
|
+
Object.defineProperty(exports, "toCustomCategoryApiName", { enumerable: true, get: function () { return definition_1.toCustomCategoryApiName; } });
|
|
58
|
+
Object.defineProperty(exports, "toCustomFieldApiName", { enumerable: true, get: function () { return definition_1.toCustomFieldApiName; } });
|
|
59
|
+
Object.defineProperty(exports, "toCustomObjectApiName", { enumerable: true, get: function () { return definition_1.toCustomObjectApiName; } });
|
|
60
|
+
/** Runtime validation and typed-record helpers. */
|
|
61
|
+
var validation_1 = require("./custom-objects/validation.js");
|
|
62
|
+
Object.defineProperty(exports, "asTypedRecord", { enumerable: true, get: function () { return validation_1.asTypedRecord; } });
|
|
63
|
+
Object.defineProperty(exports, "assertValidCreateInput", { enumerable: true, get: function () { return validation_1.assertValidCreateInput; } });
|
|
64
|
+
Object.defineProperty(exports, "assertValidUpdateInput", { enumerable: true, get: function () { return validation_1.assertValidUpdateInput; } });
|
|
65
|
+
Object.defineProperty(exports, "getRecordValue", { enumerable: true, get: function () { return validation_1.getRecordValue; } });
|
|
66
|
+
Object.defineProperty(exports, "validateCreateInput", { enumerable: true, get: function () { return validation_1.validateCreateInput; } });
|
|
67
|
+
Object.defineProperty(exports, "validateCustomObjectDefinition", { enumerable: true, get: function () { return validation_1.validateCustomObjectDefinition; } });
|
|
68
|
+
Object.defineProperty(exports, "validateLogicalCategoryName", { enumerable: true, get: function () { return validation_1.validateLogicalCategoryName; } });
|
|
69
|
+
Object.defineProperty(exports, "validateLogicalCustomFieldName", { enumerable: true, get: function () { return validation_1.validateLogicalCustomFieldName; } });
|
|
70
|
+
Object.defineProperty(exports, "validateLogicalCustomObjectName", { enumerable: true, get: function () { return validation_1.validateLogicalCustomObjectName; } });
|
|
71
|
+
Object.defineProperty(exports, "validateUpdateInput", { enumerable: true, get: function () { return validation_1.validateUpdateInput; } });
|
|
72
|
+
/** Typed RQL helper factories for custom-object query authoring. */
|
|
73
|
+
var rql_1 = require("./custom-objects/rql.js");
|
|
74
|
+
Object.defineProperty(exports, "createRqlHelpers", { enumerable: true, get: function () { return rql_1.createRqlHelpers; } });
|
|
75
|
+
/** Parsed-string RQL compiler that validates logical field names and value types. */
|
|
76
|
+
var typed_rql_1 = require("./custom-objects/typed-rql.js");
|
|
77
|
+
Object.defineProperty(exports, "typedRql", { enumerable: true, get: function () { return typed_rql_1.typedRql; } });
|
|
78
|
+
/** Typed category-definition helpers for custom-object metadata. */
|
|
79
|
+
var category_1 = require("./custom-objects/category.js");
|
|
80
|
+
Object.defineProperty(exports, "buildObjectCategoryCreateParams", { enumerable: true, get: function () { return category_1.buildObjectCategoryCreateParams; } });
|
|
81
|
+
Object.defineProperty(exports, "buildObjectCategoryUpdateParams", { enumerable: true, get: function () { return category_1.buildObjectCategoryUpdateParams; } });
|
|
82
|
+
Object.defineProperty(exports, "defineCustomObjectCategory", { enumerable: true, get: function () { return category_1.defineCustomObjectCategory; } });
|
|
83
|
+
Object.defineProperty(exports, "deleteCustomObjectCategoryDefinition", { enumerable: true, get: function () { return category_1.deleteCustomObjectCategoryDefinition; } });
|
|
84
|
+
Object.defineProperty(exports, "provisionCustomObjectCategoryDefinition", { enumerable: true, get: function () { return category_1.provisionCustomObjectCategoryDefinition; } });
|
|
85
|
+
Object.defineProperty(exports, "provisionCustomObjectCategoryDefinitions", { enumerable: true, get: function () { return category_1.provisionCustomObjectCategoryDefinitions; } });
|
|
86
|
+
Object.defineProperty(exports, "reconcileCustomObjectCategoryDefinition", { enumerable: true, get: function () { return category_1.reconcileCustomObjectCategoryDefinition; } });
|
|
87
|
+
Object.defineProperty(exports, "reconcileCustomObjectCategoryDefinitions", { enumerable: true, get: function () { return category_1.reconcileCustomObjectCategoryDefinitions; } });
|
|
88
|
+
/** Helpers that compile typed schemas into low-level REST custom-object payloads. */
|
|
89
|
+
var provisioning_1 = require("./custom-objects/provisioning.js");
|
|
90
|
+
Object.defineProperty(exports, "buildCustomObjectCreateParams", { enumerable: true, get: function () { return provisioning_1.buildCustomObjectCreateParams; } });
|
|
91
|
+
Object.defineProperty(exports, "buildCustomObjectNameFieldDetails", { enumerable: true, get: function () { return provisioning_1.buildCustomObjectNameFieldDetails; } });
|
|
92
|
+
Object.defineProperty(exports, "buildCustomObjectUpdateParams", { enumerable: true, get: function () { return provisioning_1.buildCustomObjectUpdateParams; } });
|
|
93
|
+
Object.defineProperty(exports, "buildProvisionableFieldParams", { enumerable: true, get: function () { return provisioning_1.buildProvisionableFieldParams; } });
|
|
94
|
+
Object.defineProperty(exports, "provisionCustomObjectDefinition", { enumerable: true, get: function () { return provisioning_1.provisionCustomObjectDefinition; } });
|
|
95
|
+
Object.defineProperty(exports, "provisionCustomObjectDefinitions", { enumerable: true, get: function () { return provisioning_1.provisionCustomObjectDefinitions; } });
|
|
96
|
+
/** Schema-lifecycle helpers for reconciling typed definitions with remote metadata. */
|
|
97
|
+
var lifecycle_1 = require("./custom-objects/lifecycle.js");
|
|
98
|
+
Object.defineProperty(exports, "deleteCustomObjectDefinition", { enumerable: true, get: function () { return lifecycle_1.deleteCustomObjectDefinition; } });
|
|
99
|
+
Object.defineProperty(exports, "reconcileCustomObjectDefinition", { enumerable: true, get: function () { return lifecycle_1.reconcileCustomObjectDefinition; } });
|
|
100
|
+
Object.defineProperty(exports, "reconcileCustomObjectDefinitions", { enumerable: true, get: function () { return lifecycle_1.reconcileCustomObjectDefinitions; } });
|
|
101
|
+
/** Typed schema-manager classes that bind definitions to a specific SDK client. */
|
|
102
|
+
var schema_manager_1 = require("./custom-objects/schema-manager.js");
|
|
103
|
+
Object.defineProperty(exports, "COSchemaManager", { enumerable: true, get: function () { return schema_manager_1.COSchemaManager; } });
|
|
104
|
+
Object.defineProperty(exports, "CustomObjectSchemaManager", { enumerable: true, get: function () { return schema_manager_1.CustomObjectSchemaManager; } });
|
|
105
|
+
Object.defineProperty(exports, "TypedCustomObjectCategoryManager", { enumerable: true, get: function () { return schema_manager_1.TypedCustomObjectCategoryManager; } });
|
|
106
|
+
Object.defineProperty(exports, "TypedCustomObjectSchemaManager", { enumerable: true, get: function () { return schema_manager_1.TypedCustomObjectSchemaManager; } });
|
|
107
|
+
/** Typed record-manager utilities for CRUD, batch operations, and records-resource/in-memory adapters. */
|
|
108
|
+
var manager_1 = require("./custom-objects/manager.js");
|
|
109
|
+
Object.defineProperty(exports, "COManager", { enumerable: true, get: function () { return manager_1.COManager; } });
|
|
110
|
+
Object.defineProperty(exports, "CustomObjectManager", { enumerable: true, get: function () { return manager_1.CustomObjectManager; } });
|
|
111
|
+
Object.defineProperty(exports, "CustomObjectRecordValidationError", { enumerable: true, get: function () { return manager_1.CustomObjectRecordValidationError; } });
|
|
112
|
+
Object.defineProperty(exports, "InMemoryCustomObjectRecordAdapter", { enumerable: true, get: function () { return manager_1.InMemoryCustomObjectRecordAdapter; } });
|
|
113
|
+
Object.defineProperty(exports, "TypedCustomObjectRecordManager", { enumerable: true, get: function () { return manager_1.TypedCustomObjectRecordManager; } });
|
|
114
|
+
Object.defineProperty(exports, "createCustomObjectRecordAdapter", { enumerable: true, get: function () { return manager_1.createCustomObjectRecordAdapter; } });
|
|
115
|
+
/** Small bootstrap helper that creates one SDK client plus typed record managers for a function invocation. */
|
|
116
|
+
var function_runtime_1 = require("./custom-objects/function-runtime.js");
|
|
117
|
+
Object.defineProperty(exports, "createCustomObjectFunctionRuntime", { enumerable: true, get: function () { return function_runtime_1.createCustomObjectFunctionRuntime; } });
|
|
118
|
+
//# sourceMappingURL=custom-objects.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-objects.js","sourceRoot":"","sources":["../../src/core/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/C,uGAAA,gBAAgB,OAAA;AAEzB,qFAAqF;AACrF,2DAAsD;AAA7C,qGAAA,QAAQ,OAAA;AAWjB,oEAAoE;AACpE,yDASmC;AARjC,2HAAA,+BAA+B,OAAA;AAC/B,2HAAA,+BAA+B,OAAA;AAC/B,sHAAA,0BAA0B,OAAA;AAC1B,gIAAA,oCAAoC,OAAA;AACpC,mIAAA,uCAAuC,OAAA;AACvC,oIAAA,wCAAwC,OAAA;AACxC,mIAAA,uCAAuC,OAAA;AACvC,oIAAA,wCAAwC,OAAA;AAW1C,qFAAqF;AACrF,iEAOuC;AANrC,6HAAA,6BAA6B,OAAA;AAC7B,iIAAA,iCAAiC,OAAA;AACjC,6HAAA,6BAA6B,OAAA;AAC7B,6HAAA,6BAA6B,OAAA;AAC7B,+HAAA,+BAA+B,OAAA;AAC/B,gIAAA,gCAAgC,OAAA;AAYlC,uFAAuF;AACvF,2DAIoC;AAHlC,yHAAA,4BAA4B,OAAA;AAC5B,4HAAA,+BAA+B,OAAA;AAC/B,6HAAA,gCAAgC,OAAA;AAMlC,mFAAmF;AACnF,qEAKyC;AAJvC,iHAAA,eAAe,OAAA;AACf,2HAAA,yBAAyB,OAAA;AACzB,kIAAA,gCAAgC,OAAA;AAChC,gIAAA,8BAA8B,OAAA;AA+ChC,0GAA0G;AAC1G,uDAOkC;AANhC,oGAAA,SAAS,OAAA;AACT,8GAAA,mBAAmB,OAAA;AACnB,4HAAA,iCAAiC,OAAA;AACjC,4HAAA,iCAAiC,OAAA;AACjC,yHAAA,8BAA8B,OAAA;AAC9B,0HAAA,+BAA+B,OAAA;AAUjC,+GAA+G;AAC/G,yEAAsF;AAA7E,qIAAA,iCAAiC,OAAA"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public custom-object authoring surface for the Rippling TypeScript SDK.
|
|
3
|
+
*
|
|
4
|
+
* Import this module when you want a TypeScript-first, structural definition
|
|
5
|
+
* layer for custom objects that can be reused across manifests, functions,
|
|
6
|
+
* validators, tests, and agent-authored code.
|
|
7
|
+
*
|
|
8
|
+
* The implementation lives under `core/platform/custom-objects/`, but this file
|
|
9
|
+
* is the stable public entrypoint that consumers should import from:
|
|
10
|
+
*
|
|
11
|
+
* ```ts
|
|
12
|
+
* import { defineCustomObject, text } from '@rippling/rippling-sdk/core/platform/custom-objects';
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
* Manifest-specific adapters for typed custom objects live under:
|
|
16
|
+
*
|
|
17
|
+
* ```ts
|
|
18
|
+
* import { registerManifestCustomObject } from '@rippling/rippling-sdk/core/platform/manifest/custom-objects';
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
/** Section-definition helper and foundational schema types. */
|
|
22
|
+
export { section } from "./custom-objects/types.mjs";
|
|
23
|
+
/** Field factories and reusable schema fragments. */
|
|
24
|
+
export { boolean, currency, date, datetime, email, file, formula, longText, lookup, nativeModel, number, parentChild, percentage, phone, radio, sections, select, text, time, url, } from "./custom-objects/fields.mjs";
|
|
25
|
+
/** Immutable definition helpers for creating and extending schemas. */
|
|
26
|
+
export { defineCustomObject, extendCustomObject, fieldNames, getFieldDefinition, isWritableField, toCustomCategoryApiName, toCustomFieldApiName, toCustomObjectApiName, } from "./custom-objects/definition.mjs";
|
|
27
|
+
/** Runtime validation and typed-record helpers. */
|
|
28
|
+
export { asTypedRecord, assertValidCreateInput, assertValidUpdateInput, getRecordValue, validateCreateInput, validateCustomObjectDefinition, validateLogicalCategoryName, validateLogicalCustomFieldName, validateLogicalCustomObjectName, validateUpdateInput, } from "./custom-objects/validation.mjs";
|
|
29
|
+
/** Typed RQL helper factories for custom-object query authoring. */
|
|
30
|
+
export { createRqlHelpers } from "./custom-objects/rql.mjs";
|
|
31
|
+
/** Parsed-string RQL compiler that validates logical field names and value types. */
|
|
32
|
+
export { typedRql } from "./custom-objects/typed-rql.mjs";
|
|
33
|
+
/** Typed category-definition helpers for custom-object metadata. */
|
|
34
|
+
export { buildObjectCategoryCreateParams, buildObjectCategoryUpdateParams, defineCustomObjectCategory, deleteCustomObjectCategoryDefinition, provisionCustomObjectCategoryDefinition, provisionCustomObjectCategoryDefinitions, reconcileCustomObjectCategoryDefinition, reconcileCustomObjectCategoryDefinitions, } from "./custom-objects/category.mjs";
|
|
35
|
+
/** Helpers that compile typed schemas into low-level REST custom-object payloads. */
|
|
36
|
+
export { buildCustomObjectCreateParams, buildCustomObjectNameFieldDetails, buildCustomObjectUpdateParams, buildProvisionableFieldParams, provisionCustomObjectDefinition, provisionCustomObjectDefinitions, } from "./custom-objects/provisioning.mjs";
|
|
37
|
+
/** Schema-lifecycle helpers for reconciling typed definitions with remote metadata. */
|
|
38
|
+
export { deleteCustomObjectDefinition, reconcileCustomObjectDefinition, reconcileCustomObjectDefinitions, } from "./custom-objects/lifecycle.mjs";
|
|
39
|
+
/** Typed schema-manager classes that bind definitions to a specific SDK client. */
|
|
40
|
+
export { COSchemaManager, CustomObjectSchemaManager, TypedCustomObjectCategoryManager, TypedCustomObjectSchemaManager, } from "./custom-objects/schema-manager.mjs";
|
|
41
|
+
/** Typed record-manager utilities for CRUD, batch operations, and records-resource/in-memory adapters. */
|
|
42
|
+
export { COManager, CustomObjectManager, CustomObjectRecordValidationError, InMemoryCustomObjectRecordAdapter, TypedCustomObjectRecordManager, createCustomObjectRecordAdapter, } from "./custom-objects/manager.mjs";
|
|
43
|
+
/** Small bootstrap helper that creates one SDK client plus typed record managers for a function invocation. */
|
|
44
|
+
export { createCustomObjectFunctionRuntime } from "./custom-objects/function-runtime.mjs";
|
|
45
|
+
//# sourceMappingURL=custom-objects.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-objects.mjs","sourceRoot":"","sources":["../../src/core/platform/custom-objects.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,+DAA+D;AAC/D,OAAO,EAAE,OAAO,EAAE,mCAA+B;AA2CjD,qDAAqD;AACrD,OAAO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jC,iCAAiC,EACjC,8BAA8B,EAC9B,+BAA+B,GAChC,qCAAiC;AASlC,+GAA+G;AAC/G,OAAO,EAAE,iCAAiC,EAAE,8CAA0C"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type { AdvancedCapability, CompanyLeaveProgramDefinitionConfig, DurationExpression, FactRef, PolicyCondition, } from "./types.mjs";
|
|
2
|
+
export { defineCompanyLeaveProgram as defineAdvancedCompanyLeaveProgram } from "./define-company-leave-program.mjs";
|
|
3
|
+
export { percentOfPay, fixedAmount } from "./pay.mjs";
|
|
4
|
+
export { weeks, days, hours } from "./duration.mjs";
|
|
5
|
+
//# sourceMappingURL=advanced.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"advanced.d.mts","sourceRoot":"","sources":["../../src/lib/leave-programs/advanced.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,kBAAkB,EAClB,mCAAmC,EACnC,kBAAkB,EAClB,OAAO,EACP,eAAe,GAChB,oBAAgB;AAEjB,OAAO,EAAE,yBAAyB,IAAI,iCAAiC,EAAE,2CAAuC;AAChH,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,kBAAc;AAClD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,uBAAmB"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type { AdvancedCapability, CompanyLeaveProgramDefinitionConfig, DurationExpression, FactRef, PolicyCondition, } from "./types.js";
|
|
2
|
+
export { defineCompanyLeaveProgram as defineAdvancedCompanyLeaveProgram } from "./define-company-leave-program.js";
|
|
3
|
+
export { percentOfPay, fixedAmount } from "./pay.js";
|
|
4
|
+
export { weeks, days, hours } from "./duration.js";
|
|
5
|
+
//# sourceMappingURL=advanced.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"advanced.d.ts","sourceRoot":"","sources":["../../src/lib/leave-programs/advanced.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,kBAAkB,EAClB,mCAAmC,EACnC,kBAAkB,EAClB,OAAO,EACP,eAAe,GAChB,mBAAgB;AAEjB,OAAO,EAAE,yBAAyB,IAAI,iCAAiC,EAAE,0CAAuC;AAChH,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,iBAAc;AAClD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,sBAAmB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.hours = exports.days = exports.weeks = exports.fixedAmount = exports.percentOfPay = exports.defineAdvancedCompanyLeaveProgram = void 0;
|
|
4
|
+
var define_company_leave_program_1 = require("./define-company-leave-program.js");
|
|
5
|
+
Object.defineProperty(exports, "defineAdvancedCompanyLeaveProgram", { enumerable: true, get: function () { return define_company_leave_program_1.defineCompanyLeaveProgram; } });
|
|
6
|
+
var pay_1 = require("./pay.js");
|
|
7
|
+
Object.defineProperty(exports, "percentOfPay", { enumerable: true, get: function () { return pay_1.percentOfPay; } });
|
|
8
|
+
Object.defineProperty(exports, "fixedAmount", { enumerable: true, get: function () { return pay_1.fixedAmount; } });
|
|
9
|
+
var duration_1 = require("./duration.js");
|
|
10
|
+
Object.defineProperty(exports, "weeks", { enumerable: true, get: function () { return duration_1.weeks; } });
|
|
11
|
+
Object.defineProperty(exports, "days", { enumerable: true, get: function () { return duration_1.days; } });
|
|
12
|
+
Object.defineProperty(exports, "hours", { enumerable: true, get: function () { return duration_1.hours; } });
|
|
13
|
+
//# sourceMappingURL=advanced.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"advanced.js","sourceRoot":"","sources":["../../src/lib/leave-programs/advanced.ts"],"names":[],"mappings":";;;AAQA,kFAAgH;AAAvG,iJAAA,yBAAyB,OAAqC;AACvE,gCAAkD;AAAzC,mGAAA,YAAY,OAAA;AAAE,kGAAA,WAAW,OAAA;AAClC,0CAAgD;AAAvC,iGAAA,KAAK,OAAA;AAAE,gGAAA,IAAI,OAAA;AAAE,iGAAA,KAAK,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"advanced.mjs","sourceRoot":"","sources":["../../src/lib/leave-programs/advanced.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,yBAAyB,IAAI,iCAAiC,EAAE,2CAAuC;AAChH,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,kBAAc;AAClD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,uBAAmB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.mts","sourceRoot":"","sources":["../../src/lib/leave-programs/context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,0BAA0B,EAS3B,oBAAgB;AAUjB,wBAAgB,gCAAgC,IAAI,0BAA0B,CA+E7E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/lib/leave-programs/context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,0BAA0B,EAS3B,mBAAgB;AAUjB,wBAAgB,gCAAgC,IAAI,0BAA0B,CA+E7E"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createCompanyLeaveProgramContext = createCompanyLeaveProgramContext;
|
|
4
|
+
const policy_builder_1 = require("./policy-builder.js");
|
|
5
|
+
function fact(path) {
|
|
6
|
+
return { kind: 'fact_ref', path };
|
|
7
|
+
}
|
|
8
|
+
function isEvidenceRequirement(value) {
|
|
9
|
+
return 'key' in value;
|
|
10
|
+
}
|
|
11
|
+
function createCompanyLeaveProgramContext() {
|
|
12
|
+
return {
|
|
13
|
+
employee: {
|
|
14
|
+
country: {
|
|
15
|
+
is(country) {
|
|
16
|
+
return { type: 'employee_country_is', country };
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
tenure: {
|
|
20
|
+
monthsAt(asOf) {
|
|
21
|
+
return {
|
|
22
|
+
match(tiers) {
|
|
23
|
+
return {
|
|
24
|
+
type: 'tenure_months_duration',
|
|
25
|
+
tiers: tiers.map((tier) => ({ ...tier })),
|
|
26
|
+
};
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
leave: {
|
|
33
|
+
reason: {
|
|
34
|
+
isParental() {
|
|
35
|
+
return { type: 'leave_reason_is_parental' };
|
|
36
|
+
},
|
|
37
|
+
isOneOf(values) {
|
|
38
|
+
return { type: 'leave_reason_in', values: [...values] };
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
startDate: fact('leave.startDate'),
|
|
42
|
+
parentalRelationship: {
|
|
43
|
+
match(cases) {
|
|
44
|
+
const durationCases = {};
|
|
45
|
+
let unknown;
|
|
46
|
+
for (const [relationship, value] of Object.entries(cases)) {
|
|
47
|
+
if (value === undefined) {
|
|
48
|
+
continue;
|
|
49
|
+
}
|
|
50
|
+
if (relationship === 'unknown') {
|
|
51
|
+
if (isEvidenceRequirement(value)) {
|
|
52
|
+
unknown = value;
|
|
53
|
+
}
|
|
54
|
+
continue;
|
|
55
|
+
}
|
|
56
|
+
if (!isEvidenceRequirement(value)) {
|
|
57
|
+
durationCases[relationship] = value;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
type: 'parental_relationship_duration',
|
|
62
|
+
cases: durationCases,
|
|
63
|
+
...(unknown === undefined ? {} : { unknown }),
|
|
64
|
+
};
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
pay: {
|
|
69
|
+
contractualWeeklyPay: fact('pay.contractualWeeklyPay'),
|
|
70
|
+
},
|
|
71
|
+
programs: {
|
|
72
|
+
wageReplacement(programCodes) {
|
|
73
|
+
return { kind: 'wage_replacement_ref', programCodes: [...programCodes] };
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
evidence: {
|
|
77
|
+
require(key, message) {
|
|
78
|
+
return {
|
|
79
|
+
key,
|
|
80
|
+
...(message === undefined ? {} : { message }),
|
|
81
|
+
};
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
policy() {
|
|
85
|
+
return new policy_builder_1.CompanyPolicyBuilder();
|
|
86
|
+
},
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
//# sourceMappingURL=context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/lib/leave-programs/context.ts"],"names":[],"mappings":";;AAqBA,4EA+EC;AApGD,wDAAwD;AAaxD,SAAS,IAAI,CAAC,IAAY;IACxB,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;AACpC,CAAC;AAED,SAAS,qBAAqB,CAAC,KAAqC;IAClE,OAAO,KAAK,IAAI,KAAK,CAAC;AACxB,CAAC;AAED,SAAgB,gCAAgC;IAC9C,OAAO;QACL,QAAQ,EAAE;YACR,OAAO,EAAE;gBACP,EAAE,CAAC,OAAe;oBAChB,OAAO,EAAE,IAAI,EAAE,qBAAqB,EAAE,OAAO,EAAE,CAAC;gBAClD,CAAC;aACF;YACD,MAAM,EAAE;gBACN,QAAQ,CAAC,IAAa;oBACpB,OAAO;wBACL,KAAK,CAAC,KAAwB;4BAC5B,OAAO;gCACL,IAAI,EAAE,wBAAwB;gCAC9B,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,CAAC,CAAC;6BAC1C,CAAC;wBACJ,CAAC;qBACF,CAAC;gBACJ,CAAC;aACF;SACF;QACD,KAAK,EAAE;YACL,MAAM,EAAE;gBACN,UAAU;oBACR,OAAO,EAAE,IAAI,EAAE,0BAA0B,EAAE,CAAC;gBAC9C,CAAC;gBACD,OAAO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B;gBACnC,OAAO;oBACL,GAAG;oBACH,GAAG,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC;iBAC9C,CAAC;YACJ,CAAC;SACF;QACD,MAAM;YACJ,OAAO,IAAI,qCAAoB,EAAE,CAAC;QACpC,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { CompanyPolicyBuilder } from "./policy-builder.mjs";
|
|
2
|
+
function fact(path) {
|
|
3
|
+
return { kind: 'fact_ref', path };
|
|
4
|
+
}
|
|
5
|
+
function isEvidenceRequirement(value) {
|
|
6
|
+
return 'key' in value;
|
|
7
|
+
}
|
|
8
|
+
export function createCompanyLeaveProgramContext() {
|
|
9
|
+
return {
|
|
10
|
+
employee: {
|
|
11
|
+
country: {
|
|
12
|
+
is(country) {
|
|
13
|
+
return { type: 'employee_country_is', country };
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
tenure: {
|
|
17
|
+
monthsAt(asOf) {
|
|
18
|
+
return {
|
|
19
|
+
match(tiers) {
|
|
20
|
+
return {
|
|
21
|
+
type: 'tenure_months_duration',
|
|
22
|
+
tiers: tiers.map((tier) => ({ ...tier })),
|
|
23
|
+
};
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
leave: {
|
|
30
|
+
reason: {
|
|
31
|
+
isParental() {
|
|
32
|
+
return { type: 'leave_reason_is_parental' };
|
|
33
|
+
},
|
|
34
|
+
isOneOf(values) {
|
|
35
|
+
return { type: 'leave_reason_in', values: [...values] };
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
startDate: fact('leave.startDate'),
|
|
39
|
+
parentalRelationship: {
|
|
40
|
+
match(cases) {
|
|
41
|
+
const durationCases = {};
|
|
42
|
+
let unknown;
|
|
43
|
+
for (const [relationship, value] of Object.entries(cases)) {
|
|
44
|
+
if (value === undefined) {
|
|
45
|
+
continue;
|
|
46
|
+
}
|
|
47
|
+
if (relationship === 'unknown') {
|
|
48
|
+
if (isEvidenceRequirement(value)) {
|
|
49
|
+
unknown = value;
|
|
50
|
+
}
|
|
51
|
+
continue;
|
|
52
|
+
}
|
|
53
|
+
if (!isEvidenceRequirement(value)) {
|
|
54
|
+
durationCases[relationship] = value;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
type: 'parental_relationship_duration',
|
|
59
|
+
cases: durationCases,
|
|
60
|
+
...(unknown === undefined ? {} : { unknown }),
|
|
61
|
+
};
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
pay: {
|
|
66
|
+
contractualWeeklyPay: fact('pay.contractualWeeklyPay'),
|
|
67
|
+
},
|
|
68
|
+
programs: {
|
|
69
|
+
wageReplacement(programCodes) {
|
|
70
|
+
return { kind: 'wage_replacement_ref', programCodes: [...programCodes] };
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
evidence: {
|
|
74
|
+
require(key, message) {
|
|
75
|
+
return {
|
|
76
|
+
key,
|
|
77
|
+
...(message === undefined ? {} : { message }),
|
|
78
|
+
};
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
policy() {
|
|
82
|
+
return new CompanyPolicyBuilder();
|
|
83
|
+
},
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=context.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.mjs","sourceRoot":"","sources":["../../src/lib/leave-programs/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,6BAAyB;AAaxD,SAAS,IAAI,CAAC,IAAY;IACxB,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;AACpC,CAAC;AAED,SAAS,qBAAqB,CAAC,KAAqC;IAClE,OAAO,KAAK,IAAI,KAAK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X,CAAC;wBACD,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,CAAC;4BAClC,aAAa,CAAC,YAAoC,CAAC,GAAG,KAAK,CAAC;wBAC9D,CAAC;oBACH,CAAC;oBAED,OAAO;wBACL,IAAI,EAAE,gCAAgC;wBACtC,KAAK,EAAE,aAAa;wBACpB,GAAG,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC;qBAC9C,CAAC;gBACJ,CAAC;aACF;SACF;QACD,GAAG,EAAE;YACH,oBAAoB,EAAE,IAAI,CAAC,0BAA0B,CAAC;SACvD;QACD,QAAQ,EAAE;YACR,eAAe,CAAC,YAAsB;gBACpC,OAAO,EAAE,IAAI,EAAE,sBAAsB,EAAE,YAAY,EAAE,CAAC,GAAG,YAAY,CAAC,EAAE,CAAC;YAC3E,CAAC;SACF;QACD,QAAQ,EAAE;YACR,OAAO,CAAC,GAAW,EAAE,OAAgB;gBACnC,OAAO;oBACL,GAAG;oBACH,GAAG,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC;iBAC9C,CAAC;YACJ,CAAC;SACF;QACD,MAAM;YACJ,OAAO,IAAI,oBAAoB,EAAE,CAAC;QACpC,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { CompanyLeaveProgramDefinition, CompanyLeaveProgramDefinitionConfig } from "./types.mjs";
|
|
2
|
+
export declare function defineCompanyLeaveProgram(config: CompanyLeaveProgramDefinitionConfig): CompanyLeaveProgramDefinition;
|
|
3
|
+
//# sourceMappingURL=define-company-leave-program.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define-company-leave-program.d.mts","sourceRoot":"","sources":["../../src/lib/leave-programs/define-company-leave-program.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAGV,6BAA6B,EAC7B,mCAAmC,EAEpC,oBAAgB;AASjB,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,mCAAmC,GAC1C,6BAA6B,CAuC/B"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { CompanyLeaveProgramDefinition, CompanyLeaveProgramDefinitionConfig } from "./types.js";
|
|
2
|
+
export declare function defineCompanyLeaveProgram(config: CompanyLeaveProgramDefinitionConfig): CompanyLeaveProgramDefinition;
|
|
3
|
+
//# sourceMappingURL=define-company-leave-program.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define-company-leave-program.d.ts","sourceRoot":"","sources":["../../src/lib/leave-programs/define-company-leave-program.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAGV,6BAA6B,EAC7B,mCAAmC,EAEpC,mBAAgB;AASjB,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,mCAAmC,GAC1C,6BAA6B,CAuC/B"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defineCompanyLeaveProgram = defineCompanyLeaveProgram;
|
|
4
|
+
const context_1 = require("./context.js");
|
|
5
|
+
function asArray(value) {
|
|
6
|
+
if (value === undefined) {
|
|
7
|
+
return [];
|
|
8
|
+
}
|
|
9
|
+
return Array.isArray(value) ? value : [value];
|
|
10
|
+
}
|
|
11
|
+
function defineCompanyLeaveProgram(config) {
|
|
12
|
+
const dependsOn = config.dependsOn === undefined ? [] : [...config.dependsOn];
|
|
13
|
+
const capabilities = config.capabilities === undefined ? [] : [...config.capabilities];
|
|
14
|
+
return {
|
|
15
|
+
contractVersion: 'company_leave_program.v1',
|
|
16
|
+
code: config.code,
|
|
17
|
+
displayName: config.displayName,
|
|
18
|
+
jurisdiction: { ...config.jurisdiction },
|
|
19
|
+
dependsOn,
|
|
20
|
+
toResult(context = (0, context_1.createCompanyLeaveProgramContext)()) {
|
|
21
|
+
const result = config.evaluate(context);
|
|
22
|
+
return {
|
|
23
|
+
contractVersion: 'company_leave_program.v1',
|
|
24
|
+
program: {
|
|
25
|
+
code: config.code,
|
|
26
|
+
displayName: config.displayName,
|
|
27
|
+
...(config.description === undefined ? {} : { description: config.description }),
|
|
28
|
+
programKind: config.programKind ?? 'COMPANY_POLICY',
|
|
29
|
+
jurisdiction: { ...config.jurisdiction },
|
|
30
|
+
dependsOn,
|
|
31
|
+
capabilities,
|
|
32
|
+
},
|
|
33
|
+
appliesTo: asArray(config.appliesTo?.(context)),
|
|
34
|
+
eligibility: {
|
|
35
|
+
conditions: result.conditions,
|
|
36
|
+
requiredEvidence: result.requiredEvidence,
|
|
37
|
+
},
|
|
38
|
+
...(result.entitlement === undefined ? {} : { entitlement: result.entitlement }),
|
|
39
|
+
pay: result.pay,
|
|
40
|
+
requirements: result.requirements,
|
|
41
|
+
jobProtection: result.jobProtection,
|
|
42
|
+
diagnostics: result.diagnostics,
|
|
43
|
+
};
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=define-company-leave-program.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define-company-leave-program.js","sourceRoot":"","sources":["../../src/lib/leave-programs/define-company-leave-program.ts"],"names":[],"mappings":";;AAgBA,8DAyCC;AAzDD,0CAA6D;AAS7D,SAAS,OAAO,CAAC,KAAsD;IACrE,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,SAAgB,yBAAyB,CACvC,MAA2C;IAE3C,MAAM,SAAS,GAAG,MAAM,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CA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MAAM,CAAC,GAAG;gBACf,YAAY,EAAE,MAAM,CAAC,YAAY;gBACjC,aAAa,EAAE,MAAM,CAAC,aAAa;gBACnC,WAAW,EAAE,MAAM,CAAC,WAAW;aAChC,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { createCompanyLeaveProgramContext } from "./context.mjs";
|
|
2
|
+
function asArray(value) {
|
|
3
|
+
if (value === undefined) {
|
|
4
|
+
return [];
|
|
5
|
+
}
|
|
6
|
+
return Array.isArray(value) ? value : [value];
|
|
7
|
+
}
|
|
8
|
+
export function defineCompanyLeaveProgram(config) {
|
|
9
|
+
const dependsOn = config.dependsOn === undefined ? [] : [...config.dependsOn];
|
|
10
|
+
const capabilities = config.capabilities === undefined ? [] : [...config.capabilities];
|
|
11
|
+
return {
|
|
12
|
+
contractVersion: 'company_leave_program.v1',
|
|
13
|
+
code: config.code,
|
|
14
|
+
displayName: config.displayName,
|
|
15
|
+
jurisdiction: { ...config.jurisdiction },
|
|
16
|
+
dependsOn,
|
|
17
|
+
toResult(context = createCompanyLeaveProgramContext()) {
|
|
18
|
+
const result = config.evaluate(context);
|
|
19
|
+
return {
|
|
20
|
+
contractVersion: 'company_leave_program.v1',
|
|
21
|
+
program: {
|
|
22
|
+
code: config.code,
|
|
23
|
+
displayName: config.displayName,
|
|
24
|
+
...(config.description === undefined ? {} : { description: config.description }),
|
|
25
|
+
programKind: config.programKind ?? 'COMPANY_POLICY',
|
|
26
|
+
jurisdiction: { ...config.jurisdiction },
|
|
27
|
+
dependsOn,
|
|
28
|
+
capabilities,
|
|
29
|
+
},
|
|
30
|
+
appliesTo: asArray(config.appliesTo?.(context)),
|
|
31
|
+
eligibility: {
|
|
32
|
+
conditions: result.conditions,
|
|
33
|
+
requiredEvidence: result.requiredEvidence,
|
|
34
|
+
},
|
|
35
|
+
...(result.entitlement === undefined ? {} : { entitlement: result.entitlement }),
|
|
36
|
+
pay: result.pay,
|
|
37
|
+
requirements: result.requirements,
|
|
38
|
+
jobProtection: result.jobProtection,
|
|
39
|
+
diagnostics: result.diagnostics,
|
|
40
|
+
};
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=define-company-leave-program.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define-company-leave-program.mjs","sourceRoot":"","sources":["../../src/lib/leave-programs/define-company-leave-program.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,sBAAkB;AAS7D,SAAS,OAAO,CAAC,KAAsD;IACrE,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,MAAM,UAAU,yBAAyB,CACvC,MAA2C;IAE3C,MAAM,SAAS,GAAG,MAAM,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;IAC9E,MAAM,YAAY,GAAG,MAAM,CAAC,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC;IAEvF,OAAO;QACL,eAAe,EAAE,0BAA0B;QAC3C,IAAI,EAAE,MAAM,CAAC,IAAI;QACjB,WAAW,EAAE,MAAM,CAAC,WAAW;QAC/B,YAAY,EAAE,EAAE,GAAG,MAAM,CAAC,YAAY,EAAE;QACxC,SAAS;QAET,QAAQ,CACN,UAAsC,gCAAgC,EAAE;YAExE,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;YACxC,OAAO;gBACL,eAAe,EAAE,0BAA0B;gBAC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CAE9C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"duration.d.ts","sourceRoot":"","sources":["../../src/lib/leave-programs/duration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,mBAAgB;AASxC,wBAAgB,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,QAAQ,CAE9C;AAED,wBAAgB,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,QAAQ,CAE7C;AAED,wBAAgB,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,QAAQ,CAE9C"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.weeks = weeks;
|
|
4
|
+
exports.days = days;
|
|
5
|
+
exports.hours = hours;
|
|
6
|
+
function duration(amount, unit) {
|
|
7
|
+
if (!Number.isFinite(amount) || amount < 0) {
|
|
8
|
+
throw new Error('Duration amount must be a non-negative finite number.');
|
|
9
|
+
}
|
|
10
|
+
return { kind: 'duration', amount, unit };
|
|
11
|
+
}
|
|
12
|
+
function weeks(amount) {
|
|
13
|
+
return duration(amount, 'WEEKS');
|
|
14
|
+
}
|
|
15
|
+
function days(amount) {
|
|
16
|
+
return duration(amount, 'DAYS');
|
|
17
|
+
}
|
|
18
|
+
function hours(amount) {
|
|
19
|
+
return duration(amount, 'HOURS');
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=duration.js.map
|