@rippling/rippling-sdk 0.2.0-alpha.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/api-promise.d.mts +3 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +3 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +3 -0
- package/api-promise.mjs.map +1 -0
- package/client.d.mts +779 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +779 -0
- package/client.d.ts.map +1 -0
- package/client.js +1083 -0
- package/client.js.map +1 -0
- package/client.mjs +1079 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +46 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +46 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +74 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +70 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +46 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +46 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.mjs.map +1 -0
- package/core/pagination.d.mts +50 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +50 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +104 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +98 -0
- package/core/pagination.mjs.map +1 -0
- package/core/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/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +3 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +3 -0
- package/error.d.ts.map +1 -0
- package/error.js +6 -0
- package/error.js.map +1 -0
- package/error.mjs +3 -0
- package/error.mjs.map +1 -0
- package/examples/.keep +4 -0
- package/examples/functions/durable.ts +85 -0
- package/examples/manifest/acp-agent/acp-agent.ts +50 -0
- package/examples/manifest/acp-agent/agent/index.ts +9 -0
- package/examples/manifest/custom-object-creation-workflow/custom-object-creation-workflow.ts +75 -0
- package/examples/manifest/custom-skill/custom-skill.ts +45 -0
- package/examples/manifest/dental-practice-management/dental-practice-management.ts +797 -0
- package/examples/manifest/dental-practice-management/functions/chair-schedule.ts +28 -0
- package/examples/manifest/dental-practice-management/functions/complete-visit.ts +110 -0
- package/examples/manifest/dental-practice-management/functions/operatory-list.ts +28 -0
- package/examples/manifest/dental-practice-management/functions/patient-list.ts +28 -0
- package/examples/manifest/dental-practice-management/functions/treatment-plan-list.ts +28 -0
- package/examples/manifest/existing-manifest-mutations/existing-manifest-mutations.ts +247 -0
- package/examples/manifest/field-service-dispatch/field-service-dispatch.ts +530 -0
- package/examples/manifest/grant-program-management/grant-program-management.ts +594 -0
- package/examples/manifest/gym-membership-management/functions/check-in-desk.ts +28 -0
- package/examples/manifest/gym-membership-management/functions/member-list.ts +28 -0
- package/examples/manifest/gym-membership-management/functions/today-schedule.ts +28 -0
- package/examples/manifest/gym-membership-management/functions/trainer-list.ts +28 -0
- package/examples/manifest/gym-membership-management/gym-membership-management.ts +728 -0
- package/examples/manifest/procurement-approval-hub/procurement-approval-hub.ts +554 -0
- package/examples/manifest/simple-todo-app/functions/mark-done.ts +48 -0
- package/examples/manifest/simple-todo-app/functions/todo-list.ts +28 -0
- package/examples/manifest/simple-todo-app/simple-todo-app.ts +188 -0
- package/examples/manifest/todo-app-without-object-list-view/functions/todo-page.ts +497 -0
- package/examples/manifest/todo-app-without-object-list-view/todo-app-without-object-list-view.ts +111 -0
- package/functions.d.mts +166 -0
- package/functions.d.mts.map +1 -0
- package/functions.d.ts +166 -0
- package/functions.d.ts.map +1 -0
- package/functions.js +60 -0
- package/functions.js.map +1 -0
- package/functions.mjs +51 -0
- package/functions.mjs.map +1 -0
- package/index.d.mts +8 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +8 -0
- package/index.d.ts.map +1 -0
- package/index.js +34 -0
- package/index.js.map +1 -0
- package/index.mjs +9 -0
- package/index.mjs.map +1 -0
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +20 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +20 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +79 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +74 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +40 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +37 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/request-options.d.mts +75 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +75 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +17 -0
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +17 -0
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +26 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +26 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +92 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +85 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +69 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +69 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +38 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +33 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +87 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +81 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +79 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +74 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/query.d.mts +5 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +5 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +23 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +20 -0
- package/internal/utils/query.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +19 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +15 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +18 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +18 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +112 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +94 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +8 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +8 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +12 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +9 -0
- package/internal/utils.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/lib/manifest/_existing-component-fields.d.mts +11 -0
- package/lib/manifest/_existing-component-fields.d.mts.map +1 -0
- package/lib/manifest/_existing-component-fields.d.ts +11 -0
- package/lib/manifest/_existing-component-fields.d.ts.map +1 -0
- package/lib/manifest/_existing-component-fields.js +67 -0
- package/lib/manifest/_existing-component-fields.js.map +1 -0
- package/lib/manifest/_existing-component-fields.mjs +59 -0
- package/lib/manifest/_existing-component-fields.mjs.map +1 -0
- package/lib/manifest/_helpers.d.mts +95 -0
- package/lib/manifest/_helpers.d.mts.map +1 -0
- package/lib/manifest/_helpers.d.ts +95 -0
- package/lib/manifest/_helpers.d.ts.map +1 -0
- package/lib/manifest/_helpers.js +67 -0
- package/lib/manifest/_helpers.js.map +1 -0
- package/lib/manifest/_helpers.mjs +63 -0
- package/lib/manifest/_helpers.mjs.map +1 -0
- package/lib/manifest/acp-agent-source-files.d.mts +10 -0
- package/lib/manifest/acp-agent-source-files.d.mts.map +1 -0
- package/lib/manifest/acp-agent-source-files.d.ts +10 -0
- package/lib/manifest/acp-agent-source-files.d.ts.map +1 -0
- package/lib/manifest/acp-agent-source-files.js +42 -0
- package/lib/manifest/acp-agent-source-files.js.map +1 -0
- package/lib/manifest/acp-agent-source-files.mjs +38 -0
- package/lib/manifest/acp-agent-source-files.mjs.map +1 -0
- package/lib/manifest/acp-agent.d.mts +73 -0
- package/lib/manifest/acp-agent.d.mts.map +1 -0
- package/lib/manifest/acp-agent.d.ts +73 -0
- package/lib/manifest/acp-agent.d.ts.map +1 -0
- package/lib/manifest/acp-agent.js +131 -0
- package/lib/manifest/acp-agent.js.map +1 -0
- package/lib/manifest/acp-agent.mjs +127 -0
- package/lib/manifest/acp-agent.mjs.map +1 -0
- package/lib/manifest/agent.d.mts +60 -0
- package/lib/manifest/agent.d.mts.map +1 -0
- package/lib/manifest/agent.d.ts +60 -0
- package/lib/manifest/agent.d.ts.map +1 -0
- package/lib/manifest/agent.js +94 -0
- package/lib/manifest/agent.js.map +1 -0
- package/lib/manifest/agent.mjs +90 -0
- package/lib/manifest/agent.mjs.map +1 -0
- package/lib/manifest/app.d.mts +126 -0
- package/lib/manifest/app.d.mts.map +1 -0
- package/lib/manifest/app.d.ts +126 -0
- package/lib/manifest/app.d.ts.map +1 -0
- package/lib/manifest/app.js +143 -0
- package/lib/manifest/app.js.map +1 -0
- package/lib/manifest/app.mjs +139 -0
- package/lib/manifest/app.mjs.map +1 -0
- package/lib/manifest/business-event.d.mts +64 -0
- package/lib/manifest/business-event.d.mts.map +1 -0
- package/lib/manifest/business-event.d.ts +64 -0
- package/lib/manifest/business-event.d.ts.map +1 -0
- package/lib/manifest/business-event.js +64 -0
- package/lib/manifest/business-event.js.map +1 -0
- package/lib/manifest/business-event.mjs +60 -0
- package/lib/manifest/business-event.mjs.map +1 -0
- package/lib/manifest/category.d.mts +90 -0
- package/lib/manifest/category.d.mts.map +1 -0
- package/lib/manifest/category.d.ts +90 -0
- package/lib/manifest/category.d.ts.map +1 -0
- package/lib/manifest/category.js +95 -0
- package/lib/manifest/category.js.map +1 -0
- package/lib/manifest/category.mjs +91 -0
- package/lib/manifest/category.mjs.map +1 -0
- package/lib/manifest/custom-field-section.d.mts +30 -0
- package/lib/manifest/custom-field-section.d.mts.map +1 -0
- package/lib/manifest/custom-field-section.d.ts +30 -0
- package/lib/manifest/custom-field-section.d.ts.map +1 -0
- package/lib/manifest/custom-field-section.js +58 -0
- package/lib/manifest/custom-field-section.js.map +1 -0
- package/lib/manifest/custom-field-section.mjs +54 -0
- package/lib/manifest/custom-field-section.mjs.map +1 -0
- package/lib/manifest/custom-field.d.mts +123 -0
- package/lib/manifest/custom-field.d.mts.map +1 -0
- package/lib/manifest/custom-field.d.ts +123 -0
- package/lib/manifest/custom-field.d.ts.map +1 -0
- package/lib/manifest/custom-field.js +211 -0
- package/lib/manifest/custom-field.js.map +1 -0
- package/lib/manifest/custom-field.mjs +207 -0
- package/lib/manifest/custom-field.mjs.map +1 -0
- package/lib/manifest/custom-object-action.d.mts +45 -0
- package/lib/manifest/custom-object-action.d.mts.map +1 -0
- package/lib/manifest/custom-object-action.d.ts +45 -0
- package/lib/manifest/custom-object-action.d.ts.map +1 -0
- package/lib/manifest/custom-object-action.js +72 -0
- package/lib/manifest/custom-object-action.js.map +1 -0
- package/lib/manifest/custom-object-action.mjs +68 -0
- package/lib/manifest/custom-object-action.mjs.map +1 -0
- package/lib/manifest/custom-object-field-section.d.mts +88 -0
- package/lib/manifest/custom-object-field-section.d.mts.map +1 -0
- package/lib/manifest/custom-object-field-section.d.ts +88 -0
- package/lib/manifest/custom-object-field-section.d.ts.map +1 -0
- package/lib/manifest/custom-object-field-section.js +97 -0
- package/lib/manifest/custom-object-field-section.js.map +1 -0
- package/lib/manifest/custom-object-field-section.mjs +93 -0
- package/lib/manifest/custom-object-field-section.mjs.map +1 -0
- package/lib/manifest/custom-object-page-layout.d.mts +694 -0
- package/lib/manifest/custom-object-page-layout.d.mts.map +1 -0
- package/lib/manifest/custom-object-page-layout.d.ts +694 -0
- package/lib/manifest/custom-object-page-layout.d.ts.map +1 -0
- package/lib/manifest/custom-object-page-layout.js +1323 -0
- package/lib/manifest/custom-object-page-layout.js.map +1 -0
- package/lib/manifest/custom-object-page-layout.mjs +1319 -0
- package/lib/manifest/custom-object-page-layout.mjs.map +1 -0
- package/lib/manifest/custom-object.d.mts +329 -0
- package/lib/manifest/custom-object.d.mts.map +1 -0
- package/lib/manifest/custom-object.d.ts +329 -0
- package/lib/manifest/custom-object.d.ts.map +1 -0
- package/lib/manifest/custom-object.js +394 -0
- package/lib/manifest/custom-object.js.map +1 -0
- package/lib/manifest/custom-object.mjs +390 -0
- package/lib/manifest/custom-object.mjs.map +1 -0
- package/lib/manifest/custom-skill.d.mts +115 -0
- package/lib/manifest/custom-skill.d.mts.map +1 -0
- package/lib/manifest/custom-skill.d.ts +115 -0
- package/lib/manifest/custom-skill.d.ts.map +1 -0
- package/lib/manifest/custom-skill.js +127 -0
- package/lib/manifest/custom-skill.js.map +1 -0
- package/lib/manifest/custom-skill.mjs +123 -0
- package/lib/manifest/custom-skill.mjs.map +1 -0
- package/lib/manifest/existing-manifest-context.d.mts +109 -0
- package/lib/manifest/existing-manifest-context.d.mts.map +1 -0
- package/lib/manifest/existing-manifest-context.d.ts +109 -0
- package/lib/manifest/existing-manifest-context.d.ts.map +1 -0
- package/lib/manifest/existing-manifest-context.js +641 -0
- package/lib/manifest/existing-manifest-context.js.map +1 -0
- package/lib/manifest/existing-manifest-context.mjs +636 -0
- package/lib/manifest/existing-manifest-context.mjs.map +1 -0
- package/lib/manifest/field.d.mts +548 -0
- package/lib/manifest/field.d.mts.map +1 -0
- package/lib/manifest/field.d.ts +548 -0
- package/lib/manifest/field.d.ts.map +1 -0
- package/lib/manifest/field.js +645 -0
- package/lib/manifest/field.js.map +1 -0
- package/lib/manifest/field.mjs +622 -0
- package/lib/manifest/field.mjs.map +1 -0
- package/lib/manifest/index.d.mts +24 -0
- package/lib/manifest/index.d.mts.map +1 -0
- package/lib/manifest/index.d.ts +24 -0
- package/lib/manifest/index.d.ts.map +1 -0
- package/lib/manifest/index.js +74 -0
- package/lib/manifest/index.js.map +1 -0
- package/lib/manifest/index.mjs +27 -0
- package/lib/manifest/index.mjs.map +1 -0
- package/lib/manifest/list-view.d.mts +167 -0
- package/lib/manifest/list-view.d.mts.map +1 -0
- package/lib/manifest/list-view.d.ts +167 -0
- package/lib/manifest/list-view.d.ts.map +1 -0
- package/lib/manifest/list-view.js +145 -0
- package/lib/manifest/list-view.js.map +1 -0
- package/lib/manifest/list-view.mjs +141 -0
- package/lib/manifest/list-view.mjs.map +1 -0
- package/lib/manifest/manifest-builder.d.mts +163 -0
- package/lib/manifest/manifest-builder.d.mts.map +1 -0
- package/lib/manifest/manifest-builder.d.ts +163 -0
- package/lib/manifest/manifest-builder.d.ts.map +1 -0
- package/lib/manifest/manifest-builder.js +147 -0
- package/lib/manifest/manifest-builder.js.map +1 -0
- package/lib/manifest/manifest-builder.mjs +143 -0
- package/lib/manifest/manifest-builder.mjs.map +1 -0
- package/lib/manifest/manifest-function.d.mts +127 -0
- package/lib/manifest/manifest-function.d.mts.map +1 -0
- package/lib/manifest/manifest-function.d.ts +127 -0
- package/lib/manifest/manifest-function.d.ts.map +1 -0
- package/lib/manifest/manifest-function.js +127 -0
- package/lib/manifest/manifest-function.js.map +1 -0
- package/lib/manifest/manifest-function.mjs +123 -0
- package/lib/manifest/manifest-function.mjs.map +1 -0
- package/lib/manifest/node.d.mts +4 -0
- package/lib/manifest/node.d.mts.map +1 -0
- package/lib/manifest/node.d.ts +4 -0
- package/lib/manifest/node.d.ts.map +1 -0
- package/lib/manifest/node.js +9 -0
- package/lib/manifest/node.js.map +1 -0
- package/lib/manifest/node.mjs +4 -0
- package/lib/manifest/node.mjs.map +1 -0
- package/lib/manifest/rule.d.mts +147 -0
- package/lib/manifest/rule.d.mts.map +1 -0
- package/lib/manifest/rule.d.ts +147 -0
- package/lib/manifest/rule.d.ts.map +1 -0
- package/lib/manifest/rule.js +170 -0
- package/lib/manifest/rule.js.map +1 -0
- package/lib/manifest/rule.mjs +166 -0
- package/lib/manifest/rule.mjs.map +1 -0
- package/lib/manifest/sdui-page.d.mts +108 -0
- package/lib/manifest/sdui-page.d.mts.map +1 -0
- package/lib/manifest/sdui-page.d.ts +108 -0
- package/lib/manifest/sdui-page.d.ts.map +1 -0
- package/lib/manifest/sdui-page.js +123 -0
- package/lib/manifest/sdui-page.js.map +1 -0
- package/lib/manifest/sdui-page.mjs +119 -0
- package/lib/manifest/sdui-page.mjs.map +1 -0
- package/lib/manifest/validation.d.mts +133 -0
- package/lib/manifest/validation.d.mts.map +1 -0
- package/lib/manifest/validation.d.ts +133 -0
- package/lib/manifest/validation.d.ts.map +1 -0
- package/lib/manifest/validation.js +118 -0
- package/lib/manifest/validation.js.map +1 -0
- package/lib/manifest/validation.mjs +114 -0
- package/lib/manifest/validation.mjs.map +1 -0
- package/lib/manifest/workflow.d.mts +158 -0
- package/lib/manifest/workflow.d.mts.map +1 -0
- package/lib/manifest/workflow.d.ts +158 -0
- package/lib/manifest/workflow.d.ts.map +1 -0
- package/lib/manifest/workflow.js +51 -0
- package/lib/manifest/workflow.js.map +1 -0
- package/lib/manifest/workflow.mjs +47 -0
- package/lib/manifest/workflow.mjs.map +1 -0
- package/lib/manifest.d.mts +2 -0
- package/lib/manifest.d.mts.map +1 -0
- package/lib/manifest.d.ts +2 -0
- package/lib/manifest.d.ts.map +1 -0
- package/lib/manifest.js +5 -0
- package/lib/manifest.js.map +1 -0
- package/lib/manifest.mjs +2 -0
- package/lib/manifest.mjs.map +1 -0
- package/package.json +190 -0
- package/pagination.d.mts +3 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +3 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +3 -0
- package/pagination.mjs.map +1 -0
- package/resource.d.mts +3 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +3 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +6 -0
- package/resource.js.map +1 -0
- package/resource.mjs +3 -0
- package/resource.mjs.map +1 -0
- 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 +5 -0
- package/resources/agents/sessions/index.d.mts.map +1 -0
- package/resources/agents/sessions/index.d.ts +5 -0
- package/resources/agents/sessions/index.d.ts.map +1 -0
- package/resources/agents/sessions/index.js +13 -0
- package/resources/agents/sessions/index.js.map +1 -0
- package/resources/agents/sessions/index.mjs +6 -0
- package/resources/agents/sessions/index.mjs.map +1 -0
- package/resources/agents/sessions/messages.d.mts +84 -0
- package/resources/agents/sessions/messages.d.mts.map +1 -0
- package/resources/agents/sessions/messages.d.ts +84 -0
- package/resources/agents/sessions/messages.d.ts.map +1 -0
- package/resources/agents/sessions/messages.js +19 -0
- package/resources/agents/sessions/messages.js.map +1 -0
- package/resources/agents/sessions/messages.mjs +15 -0
- package/resources/agents/sessions/messages.mjs.map +1 -0
- package/resources/agents/sessions/resume-state.d.mts +25 -0
- package/resources/agents/sessions/resume-state.d.mts.map +1 -0
- package/resources/agents/sessions/resume-state.d.ts +25 -0
- package/resources/agents/sessions/resume-state.d.ts.map +1 -0
- package/resources/agents/sessions/resume-state.js +19 -0
- package/resources/agents/sessions/resume-state.js.map +1 -0
- package/resources/agents/sessions/resume-state.mjs +15 -0
- package/resources/agents/sessions/resume-state.mjs.map +1 -0
- package/resources/agents/sessions/sessions.d.mts +248 -0
- package/resources/agents/sessions/sessions.d.mts.map +1 -0
- package/resources/agents/sessions/sessions.d.ts +248 -0
- package/resources/agents/sessions/sessions.d.ts.map +1 -0
- package/resources/agents/sessions/sessions.js +52 -0
- package/resources/agents/sessions/sessions.js.map +1 -0
- package/resources/agents/sessions/sessions.mjs +47 -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/app-users.d.mts +190 -0
- package/resources/app-users.d.mts.map +1 -0
- package/resources/app-users.d.ts +190 -0
- package/resources/app-users.d.ts.map +1 -0
- package/resources/app-users.js +32 -0
- package/resources/app-users.js.map +1 -0
- package/resources/app-users.mjs +28 -0
- package/resources/app-users.mjs.map +1 -0
- package/resources/background-check-candidates.d.mts +337 -0
- package/resources/background-check-candidates.d.mts.map +1 -0
- package/resources/background-check-candidates.d.ts +337 -0
- package/resources/background-check-candidates.d.ts.map +1 -0
- package/resources/background-check-candidates.js +52 -0
- package/resources/background-check-candidates.js.map +1 -0
- package/resources/background-check-candidates.mjs +48 -0
- package/resources/background-check-candidates.mjs.map +1 -0
- package/resources/break-policies.d.mts +95 -0
- package/resources/break-policies.d.mts.map +1 -0
- package/resources/break-policies.d.ts +95 -0
- package/resources/break-policies.d.ts.map +1 -0
- package/resources/break-policies.js +32 -0
- package/resources/break-policies.js.map +1 -0
- package/resources/break-policies.mjs +28 -0
- package/resources/break-policies.mjs.map +1 -0
- package/resources/break-types.d.mts +192 -0
- package/resources/break-types.d.mts.map +1 -0
- package/resources/break-types.d.ts +192 -0
- package/resources/break-types.d.ts.map +1 -0
- package/resources/break-types.js +34 -0
- package/resources/break-types.js.map +1 -0
- package/resources/break-types.mjs +30 -0
- package/resources/break-types.mjs.map +1 -0
- package/resources/business-partner-groups.d.mts +102 -0
- package/resources/business-partner-groups.d.mts.map +1 -0
- package/resources/business-partner-groups.d.ts +102 -0
- package/resources/business-partner-groups.d.ts.map +1 -0
- package/resources/business-partner-groups.js +49 -0
- package/resources/business-partner-groups.js.map +1 -0
- package/resources/business-partner-groups.mjs +45 -0
- package/resources/business-partner-groups.mjs.map +1 -0
- package/resources/business-partners.d.mts +140 -0
- package/resources/business-partners.d.mts.map +1 -0
- package/resources/business-partners.d.ts +140 -0
- package/resources/business-partners.d.ts.map +1 -0
- package/resources/business-partners.js +50 -0
- package/resources/business-partners.js.map +1 -0
- package/resources/business-partners.mjs +46 -0
- package/resources/business-partners.mjs.map +1 -0
- package/resources/business-structure-paths.d.mts +166 -0
- package/resources/business-structure-paths.d.mts.map +1 -0
- package/resources/business-structure-paths.d.ts +166 -0
- package/resources/business-structure-paths.d.ts.map +1 -0
- package/resources/business-structure-paths.js +46 -0
- package/resources/business-structure-paths.js.map +1 -0
- package/resources/business-structure-paths.mjs +42 -0
- package/resources/business-structure-paths.mjs.map +1 -0
- package/resources/candidate-applications.d.mts +75 -0
- package/resources/candidate-applications.d.mts.map +1 -0
- package/resources/candidate-applications.d.ts +75 -0
- package/resources/candidate-applications.d.ts.map +1 -0
- package/resources/candidate-applications.js +23 -0
- package/resources/candidate-applications.js.map +1 -0
- package/resources/candidate-applications.mjs +19 -0
- package/resources/candidate-applications.mjs.map +1 -0
- package/resources/candidates.d.mts +62 -0
- package/resources/candidates.d.mts.map +1 -0
- package/resources/candidates.d.ts +62 -0
- package/resources/candidates.d.ts.map +1 -0
- package/resources/candidates.js +25 -0
- package/resources/candidates.js.map +1 -0
- package/resources/candidates.mjs +21 -0
- package/resources/candidates.mjs.map +1 -0
- package/resources/companies.d.mts +90 -0
- package/resources/companies.d.mts.map +1 -0
- package/resources/companies.d.ts +90 -0
- package/resources/companies.d.ts.map +1 -0
- package/resources/companies.js +23 -0
- package/resources/companies.js.map +1 -0
- package/resources/companies.mjs +19 -0
- package/resources/companies.mjs.map +1 -0
- package/resources/company-legal-entities.d.mts +184 -0
- package/resources/company-legal-entities.d.mts.map +1 -0
- package/resources/company-legal-entities.d.ts +184 -0
- package/resources/company-legal-entities.d.ts.map +1 -0
- package/resources/company-legal-entities.js +30 -0
- package/resources/company-legal-entities.js.map +1 -0
- package/resources/company-legal-entities.mjs +26 -0
- package/resources/company-legal-entities.mjs.map +1 -0
- package/resources/company-legal-entity-workers.d.mts +83 -0
- package/resources/company-legal-entity-workers.d.mts.map +1 -0
- package/resources/company-legal-entity-workers.d.ts +83 -0
- package/resources/company-legal-entity-workers.d.ts.map +1 -0
- package/resources/company-legal-entity-workers.js +30 -0
- package/resources/company-legal-entity-workers.js.map +1 -0
- package/resources/company-legal-entity-workers.mjs +26 -0
- package/resources/company-legal-entity-workers.mjs.map +1 -0
- package/resources/compensation-bands-details.d.mts +102 -0
- package/resources/compensation-bands-details.d.mts.map +1 -0
- package/resources/compensation-bands-details.d.ts +102 -0
- package/resources/compensation-bands-details.d.ts.map +1 -0
- package/resources/compensation-bands-details.js +32 -0
- package/resources/compensation-bands-details.js.map +1 -0
- package/resources/compensation-bands-details.mjs +28 -0
- package/resources/compensation-bands-details.mjs.map +1 -0
- package/resources/compensations.d.mts +258 -0
- package/resources/compensations.d.mts.map +1 -0
- package/resources/compensations.d.ts +258 -0
- package/resources/compensations.d.ts.map +1 -0
- package/resources/compensations.js +30 -0
- package/resources/compensations.js.map +1 -0
- package/resources/compensations.mjs +26 -0
- package/resources/compensations.mjs.map +1 -0
- package/resources/custom-apps.d.mts +341 -0
- package/resources/custom-apps.d.mts.map +1 -0
- package/resources/custom-apps.d.ts +341 -0
- package/resources/custom-apps.d.ts.map +1 -0
- package/resources/custom-apps.js +47 -0
- package/resources/custom-apps.js.map +1 -0
- package/resources/custom-apps.mjs +43 -0
- package/resources/custom-apps.mjs.map +1 -0
- package/resources/custom-fields.d.mts +63 -0
- package/resources/custom-fields.d.mts.map +1 -0
- package/resources/custom-fields.d.ts +63 -0
- package/resources/custom-fields.d.ts.map +1 -0
- package/resources/custom-fields.js +25 -0
- package/resources/custom-fields.js.map +1 -0
- package/resources/custom-fields.mjs +21 -0
- package/resources/custom-fields.mjs.map +1 -0
- package/resources/custom-objects/custom-objects.d.mts +144 -0
- package/resources/custom-objects/custom-objects.d.mts.map +1 -0
- package/resources/custom-objects/custom-objects.d.ts +144 -0
- package/resources/custom-objects/custom-objects.d.ts.map +1 -0
- package/resources/custom-objects/custom-objects.js +62 -0
- package/resources/custom-objects/custom-objects.js.map +1 -0
- package/resources/custom-objects/custom-objects.mjs +57 -0
- package/resources/custom-objects/custom-objects.mjs.map +1 -0
- package/resources/custom-objects/fields.d.mts +305 -0
- package/resources/custom-objects/fields.d.mts.map +1 -0
- package/resources/custom-objects/fields.d.ts +305 -0
- package/resources/custom-objects/fields.d.ts.map +1 -0
- package/resources/custom-objects/fields.js +53 -0
- package/resources/custom-objects/fields.js.map +1 -0
- package/resources/custom-objects/fields.mjs +49 -0
- package/resources/custom-objects/fields.mjs.map +1 -0
- package/resources/custom-objects/index.d.mts +4 -0
- package/resources/custom-objects/index.d.mts.map +1 -0
- package/resources/custom-objects/index.d.ts +4 -0
- package/resources/custom-objects/index.d.ts.map +1 -0
- package/resources/custom-objects/index.js +11 -0
- package/resources/custom-objects/index.js.map +1 -0
- package/resources/custom-objects/index.mjs +5 -0
- package/resources/custom-objects/index.mjs.map +1 -0
- package/resources/custom-objects/records.d.mts +210 -0
- package/resources/custom-objects/records.d.mts.map +1 -0
- package/resources/custom-objects/records.d.ts +210 -0
- package/resources/custom-objects/records.d.ts.map +1 -0
- package/resources/custom-objects/records.js +96 -0
- package/resources/custom-objects/records.js.map +1 -0
- package/resources/custom-objects/records.mjs +92 -0
- package/resources/custom-objects/records.mjs.map +1 -0
- package/resources/custom-objects.d.mts +2 -0
- package/resources/custom-objects.d.mts.map +1 -0
- package/resources/custom-objects.d.ts +2 -0
- package/resources/custom-objects.d.ts.map +1 -0
- package/resources/custom-objects.js +6 -0
- package/resources/custom-objects.js.map +1 -0
- package/resources/custom-objects.mjs +3 -0
- package/resources/custom-objects.mjs.map +1 -0
- package/resources/custom-pages.d.mts +177 -0
- package/resources/custom-pages.d.mts.map +1 -0
- package/resources/custom-pages.d.ts +177 -0
- package/resources/custom-pages.d.ts.map +1 -0
- package/resources/custom-pages.js +47 -0
- package/resources/custom-pages.js.map +1 -0
- package/resources/custom-pages.mjs +43 -0
- package/resources/custom-pages.mjs.map +1 -0
- package/resources/custom-settings.d.mts +274 -0
- package/resources/custom-settings.d.mts.map +1 -0
- package/resources/custom-settings.d.ts +274 -0
- package/resources/custom-settings.d.ts.map +1 -0
- package/resources/custom-settings.js +51 -0
- package/resources/custom-settings.js.map +1 -0
- package/resources/custom-settings.mjs +47 -0
- package/resources/custom-settings.mjs.map +1 -0
- package/resources/departments.d.mts +124 -0
- package/resources/departments.d.mts.map +1 -0
- package/resources/departments.d.ts +124 -0
- package/resources/departments.d.ts.map +1 -0
- package/resources/departments.js +42 -0
- package/resources/departments.js.map +1 -0
- package/resources/departments.mjs +38 -0
- package/resources/departments.mjs.map +1 -0
- package/resources/developer-program-application.d.mts +176 -0
- package/resources/developer-program-application.d.mts.map +1 -0
- package/resources/developer-program-application.d.ts +176 -0
- package/resources/developer-program-application.d.ts.map +1 -0
- package/resources/developer-program-application.js +27 -0
- package/resources/developer-program-application.js.map +1 -0
- package/resources/developer-program-application.mjs +23 -0
- package/resources/developer-program-application.mjs.map +1 -0
- package/resources/developer-users.d.mts +53 -0
- package/resources/developer-users.d.mts.map +1 -0
- package/resources/developer-users.d.ts +53 -0
- package/resources/developer-users.d.ts.map +1 -0
- package/resources/developer-users.js +25 -0
- package/resources/developer-users.js.map +1 -0
- package/resources/developer-users.mjs +21 -0
- package/resources/developer-users.mjs.map +1 -0
- package/resources/device-orders.d.mts +151 -0
- package/resources/device-orders.d.mts.map +1 -0
- package/resources/device-orders.d.ts +151 -0
- package/resources/device-orders.d.ts.map +1 -0
- package/resources/device-orders.js +34 -0
- package/resources/device-orders.js.map +1 -0
- package/resources/device-orders.mjs +30 -0
- package/resources/device-orders.mjs.map +1 -0
- package/resources/devices.d.mts +276 -0
- package/resources/devices.d.mts.map +1 -0
- package/resources/devices.d.ts +276 -0
- package/resources/devices.d.ts.map +1 -0
- package/resources/devices.js +32 -0
- package/resources/devices.js.map +1 -0
- package/resources/devices.mjs +28 -0
- package/resources/devices.mjs.map +1 -0
- package/resources/draft-hires.d.mts +496 -0
- package/resources/draft-hires.d.mts.map +1 -0
- package/resources/draft-hires.d.ts +496 -0
- package/resources/draft-hires.d.ts.map +1 -0
- package/resources/draft-hires.js +18 -0
- package/resources/draft-hires.js.map +1 -0
- package/resources/draft-hires.mjs +14 -0
- package/resources/draft-hires.mjs.map +1 -0
- package/resources/draft-transitions.d.mts +474 -0
- package/resources/draft-transitions.d.mts.map +1 -0
- package/resources/draft-transitions.d.ts +474 -0
- package/resources/draft-transitions.d.ts.map +1 -0
- package/resources/draft-transitions.js +25 -0
- package/resources/draft-transitions.js.map +1 -0
- package/resources/draft-transitions.mjs +21 -0
- package/resources/draft-transitions.mjs.map +1 -0
- package/resources/earning-types.d.mts +50 -0
- package/resources/earning-types.d.mts.map +1 -0
- package/resources/earning-types.d.ts +50 -0
- package/resources/earning-types.d.ts.map +1 -0
- package/resources/earning-types.js +24 -0
- package/resources/earning-types.js.map +1 -0
- package/resources/earning-types.mjs +20 -0
- package/resources/earning-types.mjs.map +1 -0
- package/resources/earnings-inputs.d.mts +244 -0
- package/resources/earnings-inputs.d.mts.map +1 -0
- package/resources/earnings-inputs.d.ts +244 -0
- package/resources/earnings-inputs.d.ts.map +1 -0
- package/resources/earnings-inputs.js +41 -0
- package/resources/earnings-inputs.js.map +1 -0
- package/resources/earnings-inputs.mjs +37 -0
- package/resources/earnings-inputs.mjs.map +1 -0
- package/resources/employee-documents.d.mts +153 -0
- package/resources/employee-documents.d.mts.map +1 -0
- package/resources/employee-documents.d.ts +153 -0
- package/resources/employee-documents.d.ts.map +1 -0
- package/resources/employee-documents.js +18 -0
- package/resources/employee-documents.js.map +1 -0
- package/resources/employee-documents.mjs +14 -0
- package/resources/employee-documents.mjs.map +1 -0
- package/resources/employment-types.d.mts +85 -0
- package/resources/employment-types.d.mts.map +1 -0
- package/resources/employment-types.d.ts +85 -0
- package/resources/employment-types.d.ts.map +1 -0
- package/resources/employment-types.js +32 -0
- package/resources/employment-types.js.map +1 -0
- package/resources/employment-types.mjs +28 -0
- package/resources/employment-types.mjs.map +1 -0
- package/resources/entitlements.d.mts +33 -0
- package/resources/entitlements.d.mts.map +1 -0
- package/resources/entitlements.d.ts +33 -0
- package/resources/entitlements.d.ts.map +1 -0
- package/resources/entitlements.js +21 -0
- package/resources/entitlements.js.map +1 -0
- package/resources/entitlements.mjs +17 -0
- package/resources/entitlements.mjs.map +1 -0
- package/resources/files.d.mts +164 -0
- package/resources/files.d.mts.map +1 -0
- package/resources/files.d.ts +164 -0
- package/resources/files.d.ts.map +1 -0
- package/resources/files.js +25 -0
- package/resources/files.js.map +1 -0
- package/resources/files.mjs +21 -0
- package/resources/files.mjs.map +1 -0
- package/resources/functions/deployments.d.mts +162 -0
- package/resources/functions/deployments.d.mts.map +1 -0
- package/resources/functions/deployments.d.ts +162 -0
- package/resources/functions/deployments.d.ts.map +1 -0
- package/resources/functions/deployments.js +43 -0
- package/resources/functions/deployments.js.map +1 -0
- package/resources/functions/deployments.mjs +39 -0
- package/resources/functions/deployments.mjs.map +1 -0
- package/resources/functions/executions.d.mts +126 -0
- package/resources/functions/executions.d.mts.map +1 -0
- package/resources/functions/executions.d.ts +126 -0
- package/resources/functions/executions.d.ts.map +1 -0
- package/resources/functions/executions.js +45 -0
- package/resources/functions/executions.js.map +1 -0
- package/resources/functions/executions.mjs +41 -0
- package/resources/functions/executions.mjs.map +1 -0
- package/resources/functions/functions.d.mts +143 -0
- package/resources/functions/functions.d.mts.map +1 -0
- package/resources/functions/functions.d.ts +143 -0
- package/resources/functions/functions.d.ts.map +1 -0
- package/resources/functions/functions.js +59 -0
- package/resources/functions/functions.js.map +1 -0
- package/resources/functions/functions.mjs +54 -0
- package/resources/functions/functions.mjs.map +1 -0
- package/resources/functions/index.d.mts +4 -0
- package/resources/functions/index.d.mts.map +1 -0
- package/resources/functions/index.d.ts +4 -0
- package/resources/functions/index.d.ts.map +1 -0
- package/resources/functions/index.js +11 -0
- package/resources/functions/index.js.map +1 -0
- package/resources/functions/index.mjs +5 -0
- package/resources/functions/index.mjs.map +1 -0
- package/resources/functions.d.mts +2 -0
- package/resources/functions.d.mts.map +1 -0
- package/resources/functions.d.ts +2 -0
- package/resources/functions.d.ts.map +1 -0
- package/resources/functions.js +6 -0
- package/resources/functions.js.map +1 -0
- package/resources/functions.mjs +3 -0
- package/resources/functions.mjs.map +1 -0
- package/resources/headcount-positions.d.mts +1097 -0
- package/resources/headcount-positions.d.mts.map +1 -0
- package/resources/headcount-positions.d.ts +1097 -0
- package/resources/headcount-positions.d.ts.map +1 -0
- package/resources/headcount-positions.js +44 -0
- package/resources/headcount-positions.js.map +1 -0
- package/resources/headcount-positions.mjs +40 -0
- package/resources/headcount-positions.mjs.map +1 -0
- package/resources/headcount-priorities.d.mts +73 -0
- package/resources/headcount-priorities.d.mts.map +1 -0
- package/resources/headcount-priorities.d.ts +73 -0
- package/resources/headcount-priorities.d.ts.map +1 -0
- package/resources/headcount-priorities.js +32 -0
- package/resources/headcount-priorities.js.map +1 -0
- package/resources/headcount-priorities.mjs +28 -0
- package/resources/headcount-priorities.mjs.map +1 -0
- package/resources/hire-requirements.d.mts +112 -0
- package/resources/hire-requirements.d.mts.map +1 -0
- package/resources/hire-requirements.d.ts +112 -0
- package/resources/hire-requirements.d.ts.map +1 -0
- package/resources/hire-requirements.js +19 -0
- package/resources/hire-requirements.js.map +1 -0
- package/resources/hire-requirements.mjs +15 -0
- package/resources/hire-requirements.mjs.map +1 -0
- package/resources/hires.d.mts +657 -0
- package/resources/hires.d.mts.map +1 -0
- package/resources/hires.d.ts +657 -0
- package/resources/hires.d.ts.map +1 -0
- package/resources/hires.js +25 -0
- package/resources/hires.js.map +1 -0
- package/resources/hires.mjs +21 -0
- package/resources/hires.mjs.map +1 -0
- package/resources/index.d.mts +102 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +102 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +208 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +103 -0
- package/resources/index.mjs.map +1 -0
- package/resources/job-assignments.d.mts +268 -0
- package/resources/job-assignments.d.mts.map +1 -0
- package/resources/job-assignments.d.ts +268 -0
- package/resources/job-assignments.d.ts.map +1 -0
- package/resources/job-assignments.js +64 -0
- package/resources/job-assignments.js.map +1 -0
- package/resources/job-assignments.mjs +60 -0
- package/resources/job-assignments.mjs.map +1 -0
- package/resources/job-codes.d.mts +437 -0
- package/resources/job-codes.d.mts.map +1 -0
- package/resources/job-codes.d.ts +437 -0
- package/resources/job-codes.d.ts.map +1 -0
- package/resources/job-codes.js +64 -0
- package/resources/job-codes.js.map +1 -0
- package/resources/job-codes.mjs +60 -0
- package/resources/job-codes.mjs.map +1 -0
- package/resources/job-dimensions.d.mts +173 -0
- package/resources/job-dimensions.d.mts.map +1 -0
- package/resources/job-dimensions.d.ts +173 -0
- package/resources/job-dimensions.d.ts.map +1 -0
- package/resources/job-dimensions.js +52 -0
- package/resources/job-dimensions.js.map +1 -0
- package/resources/job-dimensions.mjs +48 -0
- package/resources/job-dimensions.mjs.map +1 -0
- package/resources/job-functions.d.mts +73 -0
- package/resources/job-functions.d.mts.map +1 -0
- package/resources/job-functions.d.ts +73 -0
- package/resources/job-functions.d.ts.map +1 -0
- package/resources/job-functions.js +32 -0
- package/resources/job-functions.js.map +1 -0
- package/resources/job-functions.mjs +28 -0
- package/resources/job-functions.mjs.map +1 -0
- package/resources/job-pay-rate-exceptions.d.mts +104 -0
- package/resources/job-pay-rate-exceptions.d.mts.map +1 -0
- package/resources/job-pay-rate-exceptions.d.ts +104 -0
- package/resources/job-pay-rate-exceptions.d.ts.map +1 -0
- package/resources/job-pay-rate-exceptions.js +44 -0
- package/resources/job-pay-rate-exceptions.js.map +1 -0
- package/resources/job-pay-rate-exceptions.mjs +40 -0
- package/resources/job-pay-rate-exceptions.mjs.map +1 -0
- package/resources/job-requisitions-write.d.mts +260 -0
- package/resources/job-requisitions-write.d.mts.map +1 -0
- package/resources/job-requisitions-write.d.ts +260 -0
- package/resources/job-requisitions-write.d.ts.map +1 -0
- package/resources/job-requisitions-write.js +18 -0
- package/resources/job-requisitions-write.js.map +1 -0
- package/resources/job-requisitions-write.mjs +14 -0
- package/resources/job-requisitions-write.mjs.map +1 -0
- package/resources/job-requisitions.d.mts +50 -0
- package/resources/job-requisitions.d.mts.map +1 -0
- package/resources/job-requisitions.d.ts +50 -0
- package/resources/job-requisitions.d.ts.map +1 -0
- package/resources/job-requisitions.js +25 -0
- package/resources/job-requisitions.js.map +1 -0
- package/resources/job-requisitions.mjs +21 -0
- package/resources/job-requisitions.mjs.map +1 -0
- package/resources/kiosk-badges.d.mts +255 -0
- package/resources/kiosk-badges.d.mts.map +1 -0
- package/resources/kiosk-badges.d.ts +255 -0
- package/resources/kiosk-badges.d.ts.map +1 -0
- package/resources/kiosk-badges.js +56 -0
- package/resources/kiosk-badges.js.map +1 -0
- package/resources/kiosk-badges.mjs +52 -0
- package/resources/kiosk-badges.mjs.map +1 -0
- package/resources/leave-accruals.d.mts +318 -0
- package/resources/leave-accruals.d.mts.map +1 -0
- package/resources/leave-accruals.d.ts +318 -0
- package/resources/leave-accruals.d.ts.map +1 -0
- package/resources/leave-accruals.js +41 -0
- package/resources/leave-accruals.js.map +1 -0
- package/resources/leave-accruals.mjs +37 -0
- package/resources/leave-accruals.mjs.map +1 -0
- package/resources/leave-balances.d.mts +106 -0
- package/resources/leave-balances.d.mts.map +1 -0
- package/resources/leave-balances.d.ts +106 -0
- package/resources/leave-balances.d.ts.map +1 -0
- package/resources/leave-balances.js +31 -0
- package/resources/leave-balances.js.map +1 -0
- package/resources/leave-balances.mjs +27 -0
- package/resources/leave-balances.mjs.map +1 -0
- package/resources/leave-program-evaluations.d.mts +599 -0
- package/resources/leave-program-evaluations.d.mts.map +1 -0
- package/resources/leave-program-evaluations.d.ts +599 -0
- package/resources/leave-program-evaluations.d.ts.map +1 -0
- package/resources/leave-program-evaluations.js +18 -0
- package/resources/leave-program-evaluations.js.map +1 -0
- package/resources/leave-program-evaluations.mjs +14 -0
- package/resources/leave-program-evaluations.mjs.map +1 -0
- package/resources/leave-requests.d.mts +739 -0
- package/resources/leave-requests.d.mts.map +1 -0
- package/resources/leave-requests.d.ts +739 -0
- package/resources/leave-requests.d.ts.map +1 -0
- package/resources/leave-requests.js +47 -0
- package/resources/leave-requests.js.map +1 -0
- package/resources/leave-requests.mjs +43 -0
- package/resources/leave-requests.mjs.map +1 -0
- package/resources/leave-types.d.mts +75 -0
- package/resources/leave-types.d.mts.map +1 -0
- package/resources/leave-types.d.ts +75 -0
- package/resources/leave-types.d.ts.map +1 -0
- package/resources/leave-types.js +30 -0
- package/resources/leave-types.js.map +1 -0
- package/resources/leave-types.mjs +26 -0
- package/resources/leave-types.mjs.map +1 -0
- package/resources/legal-entities.d.mts +125 -0
- package/resources/legal-entities.d.mts.map +1 -0
- package/resources/legal-entities.d.ts +125 -0
- package/resources/legal-entities.d.ts.map +1 -0
- package/resources/legal-entities.js +30 -0
- package/resources/legal-entities.js.map +1 -0
- package/resources/legal-entities.mjs +26 -0
- package/resources/legal-entities.mjs.map +1 -0
- package/resources/levels.d.mts +182 -0
- package/resources/levels.d.mts.map +1 -0
- package/resources/levels.d.ts +182 -0
- package/resources/levels.d.ts.map +1 -0
- package/resources/levels.js +52 -0
- package/resources/levels.js.map +1 -0
- package/resources/levels.mjs +48 -0
- package/resources/levels.mjs.map +1 -0
- package/resources/listing-submissions.d.mts +86 -0
- package/resources/listing-submissions.d.mts.map +1 -0
- package/resources/listing-submissions.d.ts +86 -0
- package/resources/listing-submissions.d.ts.map +1 -0
- package/resources/listing-submissions.js +31 -0
- package/resources/listing-submissions.js.map +1 -0
- package/resources/listing-submissions.mjs +27 -0
- package/resources/listing-submissions.mjs.map +1 -0
- package/resources/listing-transitions.d.mts +59 -0
- package/resources/listing-transitions.d.mts.map +1 -0
- package/resources/listing-transitions.d.ts +59 -0
- package/resources/listing-transitions.d.ts.map +1 -0
- package/resources/listing-transitions.js +24 -0
- package/resources/listing-transitions.js.map +1 -0
- package/resources/listing-transitions.mjs +20 -0
- package/resources/listing-transitions.mjs.map +1 -0
- package/resources/listing.d.mts +1818 -0
- package/resources/listing.d.mts.map +1 -0
- package/resources/listing.d.ts +1818 -0
- package/resources/listing.d.ts.map +1 -0
- package/resources/listing.js +70 -0
- package/resources/listing.js.map +1 -0
- package/resources/listing.mjs +66 -0
- package/resources/listing.mjs.map +1 -0
- package/resources/location-factors.d.mts +119 -0
- package/resources/location-factors.d.mts.map +1 -0
- package/resources/location-factors.d.ts +119 -0
- package/resources/location-factors.d.ts.map +1 -0
- package/resources/location-factors.js +32 -0
- package/resources/location-factors.js.map +1 -0
- package/resources/location-factors.mjs +28 -0
- package/resources/location-factors.mjs.map +1 -0
- package/resources/metadata/components.d.mts +303 -0
- package/resources/metadata/components.d.mts.map +1 -0
- package/resources/metadata/components.d.ts +303 -0
- package/resources/metadata/components.d.ts.map +1 -0
- package/resources/metadata/components.js +83 -0
- package/resources/metadata/components.js.map +1 -0
- package/resources/metadata/components.mjs +79 -0
- package/resources/metadata/components.mjs.map +1 -0
- package/resources/metadata/deployment-runs.d.mts +143 -0
- package/resources/metadata/deployment-runs.d.mts.map +1 -0
- package/resources/metadata/deployment-runs.d.ts +143 -0
- package/resources/metadata/deployment-runs.d.ts.map +1 -0
- package/resources/metadata/deployment-runs.js +73 -0
- package/resources/metadata/deployment-runs.js.map +1 -0
- package/resources/metadata/deployment-runs.mjs +69 -0
- package/resources/metadata/deployment-runs.mjs.map +1 -0
- package/resources/metadata/index.d.mts +7 -0
- package/resources/metadata/index.d.mts.map +1 -0
- package/resources/metadata/index.d.ts +7 -0
- package/resources/metadata/index.d.ts.map +1 -0
- package/resources/metadata/index.js +17 -0
- package/resources/metadata/index.js.map +1 -0
- package/resources/metadata/index.mjs +8 -0
- package/resources/metadata/index.mjs.map +1 -0
- package/resources/metadata/metadata.d.mts +163 -0
- package/resources/metadata/metadata.d.mts.map +1 -0
- package/resources/metadata/metadata.d.ts +163 -0
- package/resources/metadata/metadata.d.ts.map +1 -0
- package/resources/metadata/metadata.js +65 -0
- package/resources/metadata/metadata.js.map +1 -0
- package/resources/metadata/metadata.mjs +60 -0
- package/resources/metadata/metadata.mjs.map +1 -0
- package/resources/metadata/schema.d.mts +92 -0
- package/resources/metadata/schema.d.mts.map +1 -0
- package/resources/metadata/schema.d.ts +92 -0
- package/resources/metadata/schema.d.ts.map +1 -0
- package/resources/metadata/schema.js +27 -0
- package/resources/metadata/schema.js.map +1 -0
- package/resources/metadata/schema.mjs +23 -0
- package/resources/metadata/schema.mjs.map +1 -0
- package/resources/metadata/types.d.mts +46 -0
- package/resources/metadata/types.d.mts.map +1 -0
- package/resources/metadata/types.d.ts +46 -0
- package/resources/metadata/types.d.ts.map +1 -0
- package/resources/metadata/types.js +26 -0
- package/resources/metadata/types.js.map +1 -0
- package/resources/metadata/types.mjs +22 -0
- package/resources/metadata/types.mjs.map +1 -0
- package/resources/metadata/validation-runs.d.mts +143 -0
- package/resources/metadata/validation-runs.d.mts.map +1 -0
- package/resources/metadata/validation-runs.d.ts +143 -0
- package/resources/metadata/validation-runs.d.ts.map +1 -0
- package/resources/metadata/validation-runs.js +73 -0
- package/resources/metadata/validation-runs.js.map +1 -0
- package/resources/metadata/validation-runs.mjs +69 -0
- package/resources/metadata/validation-runs.mjs.map +1 -0
- package/resources/metadata.d.mts +2 -0
- package/resources/metadata.d.mts.map +1 -0
- package/resources/metadata.d.ts +2 -0
- package/resources/metadata.d.ts.map +1 -0
- package/resources/metadata.js +6 -0
- package/resources/metadata.js.map +1 -0
- package/resources/metadata.mjs +3 -0
- package/resources/metadata.mjs.map +1 -0
- package/resources/object-categories.d.mts +85 -0
- package/resources/object-categories.d.mts.map +1 -0
- package/resources/object-categories.d.ts +85 -0
- package/resources/object-categories.d.ts.map +1 -0
- package/resources/object-categories.js +53 -0
- package/resources/object-categories.js.map +1 -0
- package/resources/object-categories.mjs +49 -0
- package/resources/object-categories.mjs.map +1 -0
- package/resources/package-installs.d.mts +108 -0
- package/resources/package-installs.d.mts.map +1 -0
- package/resources/package-installs.d.ts +108 -0
- package/resources/package-installs.d.ts.map +1 -0
- package/resources/package-installs.js +25 -0
- package/resources/package-installs.js.map +1 -0
- package/resources/package-installs.mjs +21 -0
- package/resources/package-installs.mjs.map +1 -0
- package/resources/package-managed-installs.d.mts +119 -0
- package/resources/package-managed-installs.d.mts.map +1 -0
- package/resources/package-managed-installs.d.ts +119 -0
- package/resources/package-managed-installs.d.ts.map +1 -0
- package/resources/package-managed-installs.js +26 -0
- package/resources/package-managed-installs.js.map +1 -0
- package/resources/package-managed-installs.mjs +22 -0
- package/resources/package-managed-installs.mjs.map +1 -0
- package/resources/package-sandbox-links.d.mts +150 -0
- package/resources/package-sandbox-links.d.mts.map +1 -0
- package/resources/package-sandbox-links.d.ts +150 -0
- package/resources/package-sandbox-links.d.ts.map +1 -0
- package/resources/package-sandbox-links.js +25 -0
- package/resources/package-sandbox-links.js.map +1 -0
- package/resources/package-sandbox-links.mjs +21 -0
- package/resources/package-sandbox-links.mjs.map +1 -0
- package/resources/package-uninstalls.d.mts +128 -0
- package/resources/package-uninstalls.d.mts.map +1 -0
- package/resources/package-uninstalls.d.ts +128 -0
- package/resources/package-uninstalls.d.ts.map +1 -0
- package/resources/package-uninstalls.js +25 -0
- package/resources/package-uninstalls.js.map +1 -0
- package/resources/package-uninstalls.mjs +21 -0
- package/resources/package-uninstalls.mjs.map +1 -0
- package/resources/package-upgrades.d.mts +140 -0
- package/resources/package-upgrades.d.mts.map +1 -0
- package/resources/package-upgrades.d.ts +140 -0
- package/resources/package-upgrades.d.ts.map +1 -0
- package/resources/package-upgrades.js +25 -0
- package/resources/package-upgrades.js.map +1 -0
- package/resources/package-upgrades.mjs +21 -0
- package/resources/package-upgrades.mjs.map +1 -0
- package/resources/package-version-component-updates.d.mts +117 -0
- package/resources/package-version-component-updates.d.mts.map +1 -0
- package/resources/package-version-component-updates.d.ts +117 -0
- package/resources/package-version-component-updates.d.ts.map +1 -0
- package/resources/package-version-component-updates.js +33 -0
- package/resources/package-version-component-updates.js.map +1 -0
- package/resources/package-version-component-updates.mjs +29 -0
- package/resources/package-version-component-updates.mjs.map +1 -0
- package/resources/package-versions/index.d.mts +3 -0
- package/resources/package-versions/index.d.mts.map +1 -0
- package/resources/package-versions/index.d.ts +3 -0
- package/resources/package-versions/index.d.ts.map +1 -0
- package/resources/package-versions/index.js +9 -0
- package/resources/package-versions/index.js.map +1 -0
- package/resources/package-versions/index.mjs +4 -0
- package/resources/package-versions/index.mjs.map +1 -0
- package/resources/package-versions/package-versions.d.mts +114 -0
- package/resources/package-versions/package-versions.d.mts.map +1 -0
- package/resources/package-versions/package-versions.d.ts +114 -0
- package/resources/package-versions/package-versions.d.ts.map +1 -0
- package/resources/package-versions/package-versions.js +33 -0
- package/resources/package-versions/package-versions.js.map +1 -0
- package/resources/package-versions/package-versions.mjs +28 -0
- package/resources/package-versions/package-versions.mjs.map +1 -0
- package/resources/package-versions/publish.d.mts +58 -0
- package/resources/package-versions/publish.d.mts.map +1 -0
- package/resources/package-versions/publish.d.ts +58 -0
- package/resources/package-versions/publish.d.ts.map +1 -0
- package/resources/package-versions/publish.js +19 -0
- package/resources/package-versions/publish.js.map +1 -0
- package/resources/package-versions/publish.mjs +15 -0
- package/resources/package-versions/publish.mjs.map +1 -0
- package/resources/package-versions.d.mts +2 -0
- package/resources/package-versions.d.mts.map +1 -0
- package/resources/package-versions.d.ts +2 -0
- package/resources/package-versions.d.ts.map +1 -0
- package/resources/package-versions.js +6 -0
- package/resources/package-versions.js.map +1 -0
- package/resources/package-versions.mjs +3 -0
- package/resources/package-versions.mjs.map +1 -0
- package/resources/packages/available-upgrades.d.mts +33 -0
- package/resources/packages/available-upgrades.d.mts.map +1 -0
- package/resources/packages/available-upgrades.d.ts +33 -0
- package/resources/packages/available-upgrades.d.ts.map +1 -0
- package/resources/packages/available-upgrades.js +20 -0
- package/resources/packages/available-upgrades.js.map +1 -0
- package/resources/packages/available-upgrades.mjs +16 -0
- package/resources/packages/available-upgrades.mjs.map +1 -0
- package/resources/packages/index.d.mts +5 -0
- package/resources/packages/index.d.mts.map +1 -0
- package/resources/packages/index.d.ts +5 -0
- package/resources/packages/index.d.ts.map +1 -0
- package/resources/packages/index.js +13 -0
- package/resources/packages/index.js.map +1 -0
- package/resources/packages/index.mjs +6 -0
- package/resources/packages/index.mjs.map +1 -0
- package/resources/packages/next-versions.d.mts +70 -0
- package/resources/packages/next-versions.d.mts.map +1 -0
- package/resources/packages/next-versions.d.ts +70 -0
- package/resources/packages/next-versions.d.ts.map +1 -0
- package/resources/packages/next-versions.js +21 -0
- package/resources/packages/next-versions.js.map +1 -0
- package/resources/packages/next-versions.mjs +17 -0
- package/resources/packages/next-versions.mjs.map +1 -0
- package/resources/packages/packages.d.mts +251 -0
- package/resources/packages/packages.d.mts.map +1 -0
- package/resources/packages/packages.d.ts +251 -0
- package/resources/packages/packages.d.ts.map +1 -0
- package/resources/packages/packages.js +68 -0
- package/resources/packages/packages.js.map +1 -0
- package/resources/packages/packages.mjs +63 -0
- package/resources/packages/packages.mjs.map +1 -0
- package/resources/packages/versions.d.mts +123 -0
- package/resources/packages/versions.d.mts.map +1 -0
- package/resources/packages/versions.d.ts +123 -0
- package/resources/packages/versions.d.ts.map +1 -0
- package/resources/packages/versions.js +26 -0
- package/resources/packages/versions.js.map +1 -0
- package/resources/packages/versions.mjs +22 -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/payroll-runs/index.d.mts +3 -0
- package/resources/payroll-runs/index.d.mts.map +1 -0
- package/resources/payroll-runs/index.d.ts +3 -0
- package/resources/payroll-runs/index.d.ts.map +1 -0
- package/resources/payroll-runs/index.js +9 -0
- package/resources/payroll-runs/index.js.map +1 -0
- package/resources/payroll-runs/index.mjs +4 -0
- package/resources/payroll-runs/index.mjs.map +1 -0
- package/resources/payroll-runs/payroll-runs.d.mts +204 -0
- package/resources/payroll-runs/payroll-runs.d.mts.map +1 -0
- package/resources/payroll-runs/payroll-runs.d.ts +204 -0
- package/resources/payroll-runs/payroll-runs.d.ts.map +1 -0
- package/resources/payroll-runs/payroll-runs.js +40 -0
- package/resources/payroll-runs/payroll-runs.js.map +1 -0
- package/resources/payroll-runs/payroll-runs.mjs +35 -0
- package/resources/payroll-runs/payroll-runs.mjs.map +1 -0
- package/resources/payroll-runs/worker-payroll-records.d.mts +204 -0
- package/resources/payroll-runs/worker-payroll-records.d.mts.map +1 -0
- package/resources/payroll-runs/worker-payroll-records.d.ts +204 -0
- package/resources/payroll-runs/worker-payroll-records.d.ts.map +1 -0
- package/resources/payroll-runs/worker-payroll-records.js +23 -0
- package/resources/payroll-runs/worker-payroll-records.js.map +1 -0
- package/resources/payroll-runs/worker-payroll-records.mjs +19 -0
- package/resources/payroll-runs/worker-payroll-records.mjs.map +1 -0
- package/resources/payroll-runs.d.mts +2 -0
- package/resources/payroll-runs.d.mts.map +1 -0
- package/resources/payroll-runs.d.ts +2 -0
- package/resources/payroll-runs.d.ts.map +1 -0
- package/resources/payroll-runs.js +6 -0
- package/resources/payroll-runs.js.map +1 -0
- package/resources/payroll-runs.mjs +3 -0
- package/resources/payroll-runs.mjs.map +1 -0
- package/resources/platform-capabilities.d.mts +25 -0
- package/resources/platform-capabilities.d.mts.map +1 -0
- package/resources/platform-capabilities.d.ts +25 -0
- package/resources/platform-capabilities.d.ts.map +1 -0
- package/resources/platform-capabilities.js +21 -0
- package/resources/platform-capabilities.js.map +1 -0
- package/resources/platform-capabilities.mjs +17 -0
- package/resources/platform-capabilities.mjs.map +1 -0
- package/resources/report-runs.d.mts +218 -0
- package/resources/report-runs.d.mts.map +1 -0
- package/resources/report-runs.d.ts +218 -0
- package/resources/report-runs.d.ts.map +1 -0
- package/resources/report-runs.js +25 -0
- package/resources/report-runs.js.map +1 -0
- package/resources/report-runs.mjs +21 -0
- package/resources/report-runs.mjs.map +1 -0
- package/resources/reports/available-filters.d.mts +49 -0
- package/resources/reports/available-filters.d.mts.map +1 -0
- package/resources/reports/available-filters.d.ts +49 -0
- package/resources/reports/available-filters.d.ts.map +1 -0
- package/resources/reports/available-filters.js +20 -0
- package/resources/reports/available-filters.js.map +1 -0
- package/resources/reports/available-filters.mjs +16 -0
- package/resources/reports/available-filters.mjs.map +1 -0
- package/resources/reports/index.d.mts +3 -0
- package/resources/reports/index.d.mts.map +1 -0
- package/resources/reports/index.d.ts +3 -0
- package/resources/reports/index.d.ts.map +1 -0
- package/resources/reports/index.js +9 -0
- package/resources/reports/index.js.map +1 -0
- package/resources/reports/index.mjs +4 -0
- package/resources/reports/index.mjs.map +1 -0
- package/resources/reports/reports.d.mts +85 -0
- package/resources/reports/reports.d.mts.map +1 -0
- package/resources/reports/reports.d.ts +85 -0
- package/resources/reports/reports.d.ts.map +1 -0
- package/resources/reports/reports.js +27 -0
- package/resources/reports/reports.js.map +1 -0
- package/resources/reports/reports.mjs +22 -0
- package/resources/reports/reports.mjs.map +1 -0
- package/resources/reports.d.mts +2 -0
- package/resources/reports.d.mts.map +1 -0
- package/resources/reports.d.ts +2 -0
- package/resources/reports.d.ts.map +1 -0
- package/resources/reports.js +6 -0
- package/resources/reports.js.map +1 -0
- package/resources/reports.mjs +3 -0
- package/resources/reports.mjs.map +1 -0
- package/resources/sandboxes.d.mts +904 -0
- package/resources/sandboxes.d.mts.map +1 -0
- package/resources/sandboxes.d.ts +904 -0
- package/resources/sandboxes.d.ts.map +1 -0
- package/resources/sandboxes.js +52 -0
- package/resources/sandboxes.js.map +1 -0
- package/resources/sandboxes.mjs +48 -0
- package/resources/sandboxes.mjs.map +1 -0
- package/resources/scheduled-job-assignments.d.mts +152 -0
- package/resources/scheduled-job-assignments.d.mts.map +1 -0
- package/resources/scheduled-job-assignments.d.ts +152 -0
- package/resources/scheduled-job-assignments.d.ts.map +1 -0
- package/resources/scheduled-job-assignments.js +39 -0
- package/resources/scheduled-job-assignments.js.map +1 -0
- package/resources/scheduled-job-assignments.mjs +35 -0
- package/resources/scheduled-job-assignments.mjs.map +1 -0
- package/resources/schedules.d.mts +397 -0
- package/resources/schedules.d.mts.map +1 -0
- package/resources/schedules.d.ts +397 -0
- package/resources/schedules.d.ts.map +1 -0
- package/resources/schedules.js +42 -0
- package/resources/schedules.js.map +1 -0
- package/resources/schedules.mjs +38 -0
- package/resources/schedules.mjs.map +1 -0
- package/resources/shared.d.mts +90 -0
- package/resources/shared.d.mts.map +1 -0
- package/resources/shared.d.ts +90 -0
- package/resources/shared.d.ts.map +1 -0
- package/resources/shared.js +4 -0
- package/resources/shared.js.map +1 -0
- package/resources/shared.mjs +3 -0
- package/resources/shared.mjs.map +1 -0
- package/resources/shift-assignments.d.mts +299 -0
- package/resources/shift-assignments.d.mts.map +1 -0
- package/resources/shift-assignments.d.ts +299 -0
- package/resources/shift-assignments.d.ts.map +1 -0
- package/resources/shift-assignments.js +28 -0
- package/resources/shift-assignments.js.map +1 -0
- package/resources/shift-assignments.mjs +24 -0
- package/resources/shift-assignments.mjs.map +1 -0
- package/resources/shift-inputs.d.mts +299 -0
- package/resources/shift-inputs.d.mts.map +1 -0
- package/resources/shift-inputs.d.ts +299 -0
- package/resources/shift-inputs.d.ts.map +1 -0
- package/resources/shift-inputs.js +56 -0
- package/resources/shift-inputs.js.map +1 -0
- package/resources/shift-inputs.mjs +52 -0
- package/resources/shift-inputs.mjs.map +1 -0
- package/resources/shiftassignments.d.mts +1252 -0
- package/resources/shiftassignments.d.mts.map +1 -0
- package/resources/shiftassignments.d.ts +1252 -0
- package/resources/shiftassignments.d.ts.map +1 -0
- package/resources/shiftassignments.js +47 -0
- package/resources/shiftassignments.js.map +1 -0
- package/resources/shiftassignments.mjs +43 -0
- package/resources/shiftassignments.mjs.map +1 -0
- package/resources/sites.d.mts +610 -0
- package/resources/sites.d.mts.map +1 -0
- package/resources/sites.d.ts +610 -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 +472 -0
- package/resources/software-deployments.d.mts.map +1 -0
- package/resources/software-deployments.d.ts +472 -0
- package/resources/software-deployments.d.ts.map +1 -0
- package/resources/software-deployments.js +56 -0
- package/resources/software-deployments.js.map +1 -0
- package/resources/software-deployments.mjs +52 -0
- package/resources/software-deployments.mjs.map +1 -0
- package/resources/sso-me.d.mts +56 -0
- package/resources/sso-me.d.mts.map +1 -0
- package/resources/sso-me.d.ts +56 -0
- package/resources/sso-me.d.ts.map +1 -0
- package/resources/sso-me.js +21 -0
- package/resources/sso-me.js.map +1 -0
- package/resources/sso-me.mjs +17 -0
- package/resources/sso-me.mjs.map +1 -0
- package/resources/supergroups/exclusion-members.d.mts +66 -0
- package/resources/supergroups/exclusion-members.d.mts.map +1 -0
- package/resources/supergroups/exclusion-members.d.ts +66 -0
- package/resources/supergroups/exclusion-members.d.ts.map +1 -0
- package/resources/supergroups/exclusion-members.js +30 -0
- package/resources/supergroups/exclusion-members.js.map +1 -0
- package/resources/supergroups/exclusion-members.mjs +26 -0
- package/resources/supergroups/exclusion-members.mjs.map +1 -0
- package/resources/supergroups/inclusion-members.d.mts +66 -0
- package/resources/supergroups/inclusion-members.d.mts.map +1 -0
- package/resources/supergroups/inclusion-members.d.ts +66 -0
- package/resources/supergroups/inclusion-members.d.ts.map +1 -0
- package/resources/supergroups/inclusion-members.js +30 -0
- package/resources/supergroups/inclusion-members.js.map +1 -0
- package/resources/supergroups/inclusion-members.mjs +26 -0
- package/resources/supergroups/inclusion-members.mjs.map +1 -0
- package/resources/supergroups/index.d.mts +5 -0
- package/resources/supergroups/index.d.mts.map +1 -0
- package/resources/supergroups/index.d.ts +5 -0
- package/resources/supergroups/index.d.ts.map +1 -0
- package/resources/supergroups/index.js +13 -0
- package/resources/supergroups/index.js.map +1 -0
- package/resources/supergroups/index.mjs +6 -0
- package/resources/supergroups/index.mjs.map +1 -0
- package/resources/supergroups/members.d.mts +32 -0
- package/resources/supergroups/members.d.mts.map +1 -0
- package/resources/supergroups/members.d.ts +32 -0
- package/resources/supergroups/members.d.ts.map +1 -0
- package/resources/supergroups/members.js +24 -0
- package/resources/supergroups/members.js.map +1 -0
- package/resources/supergroups/members.mjs +20 -0
- package/resources/supergroups/members.mjs.map +1 -0
- package/resources/supergroups/supergroups.d.mts +131 -0
- package/resources/supergroups/supergroups.d.mts.map +1 -0
- package/resources/supergroups/supergroups.d.ts +131 -0
- package/resources/supergroups/supergroups.d.ts.map +1 -0
- package/resources/supergroups/supergroups.js +46 -0
- package/resources/supergroups/supergroups.js.map +1 -0
- package/resources/supergroups/supergroups.mjs +41 -0
- package/resources/supergroups/supergroups.mjs.map +1 -0
- package/resources/supergroups.d.mts +2 -0
- package/resources/supergroups.d.mts.map +1 -0
- package/resources/supergroups.d.ts +2 -0
- package/resources/supergroups.d.ts.map +1 -0
- package/resources/supergroups.js +6 -0
- package/resources/supergroups.js.map +1 -0
- package/resources/supergroups.mjs +3 -0
- package/resources/supergroups.mjs.map +1 -0
- package/resources/teams.d.mts +104 -0
- package/resources/teams.d.mts.map +1 -0
- package/resources/teams.d.ts +104 -0
- package/resources/teams.d.ts.map +1 -0
- package/resources/teams.js +52 -0
- package/resources/teams.js.map +1 -0
- package/resources/teams.mjs +48 -0
- package/resources/teams.mjs.map +1 -0
- package/resources/time-cards.d.mts +164 -0
- package/resources/time-cards.d.mts.map +1 -0
- package/resources/time-cards.d.ts +164 -0
- package/resources/time-cards.d.ts.map +1 -0
- package/resources/time-cards.js +31 -0
- package/resources/time-cards.js.map +1 -0
- package/resources/time-cards.mjs +27 -0
- package/resources/time-cards.mjs.map +1 -0
- package/resources/time-entries.d.mts +1503 -0
- package/resources/time-entries.d.mts.map +1 -0
- package/resources/time-entries.d.ts +1503 -0
- package/resources/time-entries.d.ts.map +1 -0
- package/resources/time-entries.js +57 -0
- package/resources/time-entries.js.map +1 -0
- package/resources/time-entries.mjs +53 -0
- package/resources/time-entries.mjs.map +1 -0
- package/resources/titles.d.mts +133 -0
- package/resources/titles.d.mts.map +1 -0
- package/resources/titles.d.ts +133 -0
- package/resources/titles.d.ts.map +1 -0
- package/resources/titles.js +51 -0
- package/resources/titles.js.map +1 -0
- package/resources/titles.mjs +47 -0
- package/resources/titles.mjs.map +1 -0
- package/resources/tracks.d.mts +101 -0
- package/resources/tracks.d.mts.map +1 -0
- package/resources/tracks.d.ts +101 -0
- package/resources/tracks.d.ts.map +1 -0
- package/resources/tracks.js +51 -0
- package/resources/tracks.js.map +1 -0
- package/resources/tracks.mjs +47 -0
- package/resources/tracks.mjs.map +1 -0
- package/resources/unassigned-shifts.d.mts +337 -0
- package/resources/unassigned-shifts.d.mts.map +1 -0
- package/resources/unassigned-shifts.d.ts +337 -0
- package/resources/unassigned-shifts.d.ts.map +1 -0
- package/resources/unassigned-shifts.js +45 -0
- package/resources/unassigned-shifts.js.map +1 -0
- package/resources/unassigned-shifts.mjs +41 -0
- package/resources/unassigned-shifts.mjs.map +1 -0
- package/resources/unassignedshifts.d.mts +1254 -0
- package/resources/unassignedshifts.d.mts.map +1 -0
- package/resources/unassignedshifts.d.ts +1254 -0
- package/resources/unassignedshifts.d.ts.map +1 -0
- package/resources/unassignedshifts.js +47 -0
- package/resources/unassignedshifts.js.map +1 -0
- package/resources/unassignedshifts.mjs +43 -0
- package/resources/unassignedshifts.mjs.map +1 -0
- package/resources/users.d.mts +208 -0
- package/resources/users.d.mts.map +1 -0
- package/resources/users.d.ts +208 -0
- package/resources/users.d.ts.map +1 -0
- package/resources/users.js +29 -0
- package/resources/users.js.map +1 -0
- package/resources/users.mjs +25 -0
- package/resources/users.mjs.map +1 -0
- package/resources/variable-compensation-payout-labels.d.mts +155 -0
- package/resources/variable-compensation-payout-labels.d.mts.map +1 -0
- package/resources/variable-compensation-payout-labels.d.ts +155 -0
- package/resources/variable-compensation-payout-labels.d.ts.map +1 -0
- package/resources/variable-compensation-payout-labels.js +41 -0
- package/resources/variable-compensation-payout-labels.js.map +1 -0
- package/resources/variable-compensation-payout-labels.mjs +37 -0
- package/resources/variable-compensation-payout-labels.mjs.map +1 -0
- package/resources/variable-compensation-payout-types.d.mts +334 -0
- package/resources/variable-compensation-payout-types.d.mts.map +1 -0
- package/resources/variable-compensation-payout-types.d.ts +334 -0
- package/resources/variable-compensation-payout-types.d.ts.map +1 -0
- package/resources/variable-compensation-payout-types.js +52 -0
- package/resources/variable-compensation-payout-types.js.map +1 -0
- package/resources/variable-compensation-payout-types.mjs +48 -0
- package/resources/variable-compensation-payout-types.mjs.map +1 -0
- package/resources/variable-compensation-payout-writes.d.mts +115 -0
- package/resources/variable-compensation-payout-writes.d.mts.map +1 -0
- package/resources/variable-compensation-payout-writes.d.ts +115 -0
- package/resources/variable-compensation-payout-writes.d.ts.map +1 -0
- package/resources/variable-compensation-payout-writes.js +19 -0
- package/resources/variable-compensation-payout-writes.js.map +1 -0
- package/resources/variable-compensation-payout-writes.mjs +15 -0
- package/resources/variable-compensation-payout-writes.mjs.map +1 -0
- package/resources/variable-compensation-payouts.d.mts +501 -0
- package/resources/variable-compensation-payouts.d.mts.map +1 -0
- package/resources/variable-compensation-payouts.d.ts +501 -0
- package/resources/variable-compensation-payouts.d.ts.map +1 -0
- package/resources/variable-compensation-payouts.js +41 -0
- package/resources/variable-compensation-payouts.js.map +1 -0
- package/resources/variable-compensation-payouts.mjs +37 -0
- package/resources/variable-compensation-payouts.mjs.map +1 -0
- package/resources/work-locations.d.mts +160 -0
- package/resources/work-locations.d.mts.map +1 -0
- package/resources/work-locations.d.ts +160 -0
- package/resources/work-locations.d.ts.map +1 -0
- package/resources/work-locations.js +51 -0
- package/resources/work-locations.js.map +1 -0
- package/resources/work-locations.mjs +47 -0
- package/resources/work-locations.mjs.map +1 -0
- package/resources/worker-change-fields.d.mts +44 -0
- package/resources/worker-change-fields.d.mts.map +1 -0
- package/resources/worker-change-fields.d.ts +44 -0
- package/resources/worker-change-fields.d.ts.map +1 -0
- package/resources/worker-change-fields.js +21 -0
- package/resources/worker-change-fields.js.map +1 -0
- package/resources/worker-change-fields.mjs +17 -0
- package/resources/worker-change-fields.mjs.map +1 -0
- package/resources/worker-changes.d.mts +271 -0
- package/resources/worker-changes.d.mts.map +1 -0
- package/resources/worker-changes.d.ts +271 -0
- package/resources/worker-changes.d.ts.map +1 -0
- package/resources/worker-changes.js +36 -0
- package/resources/worker-changes.js.map +1 -0
- package/resources/worker-changes.mjs +32 -0
- package/resources/worker-changes.mjs.map +1 -0
- package/resources/worker-time-splits.d.mts +375 -0
- package/resources/worker-time-splits.d.mts.map +1 -0
- package/resources/worker-time-splits.d.ts +375 -0
- package/resources/worker-time-splits.d.ts.map +1 -0
- package/resources/worker-time-splits.js +56 -0
- package/resources/worker-time-splits.js.map +1 -0
- package/resources/worker-time-splits.mjs +52 -0
- package/resources/worker-time-splits.mjs.map +1 -0
- package/resources/workers.d.mts +399 -0
- package/resources/workers.d.mts.map +1 -0
- package/resources/workers.d.ts +399 -0
- package/resources/workers.d.ts.map +1 -0
- package/resources/workers.js +34 -0
- package/resources/workers.js.map +1 -0
- package/resources/workers.mjs +30 -0
- package/resources/workers.mjs.map +1 -0
- package/resources/workflow-action-executions.d.mts +33 -0
- package/resources/workflow-action-executions.d.mts.map +1 -0
- package/resources/workflow-action-executions.d.ts +33 -0
- package/resources/workflow-action-executions.d.ts.map +1 -0
- package/resources/workflow-action-executions.js +18 -0
- package/resources/workflow-action-executions.js.map +1 -0
- package/resources/workflow-action-executions.mjs +14 -0
- package/resources/workflow-action-executions.mjs.map +1 -0
- package/resources/workflows.d.mts +768 -0
- package/resources/workflows.d.mts.map +1 -0
- package/resources/workflows.d.ts +768 -0
- package/resources/workflows.d.ts.map +1 -0
- package/resources/workflows.js +48 -0
- package/resources/workflows.js.map +1 -0
- package/resources/workflows.mjs +44 -0
- package/resources/workflows.mjs.map +1 -0
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +5 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/api-promise.ts +2 -0
- package/src/client.ts +2996 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -0
- package/src/core/pagination.ts +155 -0
- package/src/core/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/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/functions.md +254 -0
- package/src/functions.ts +270 -0
- package/src/index.ts +25 -0
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +97 -0
- package/src/internal/parse.ts +56 -0
- package/src/internal/request-options.ts +91 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +93 -0
- package/src/internal/uploads.ts +187 -0
- package/src/internal/utils/base64.ts +40 -0
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +128 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/query.ts +23 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +17 -0
- package/src/internal/utils/values.ts +105 -0
- package/src/internal/utils.ts +9 -0
- package/src/lib/.keep +4 -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/lib/manifest/_existing-component-fields.ts +96 -0
- package/src/lib/manifest/_helpers.ts +168 -0
- package/src/lib/manifest/acp-agent-source-files.ts +42 -0
- package/src/lib/manifest/acp-agent.ts +215 -0
- package/src/lib/manifest/agent.ts +141 -0
- package/src/lib/manifest/app.ts +233 -0
- package/src/lib/manifest/business-event.ts +72 -0
- package/src/lib/manifest/category.ts +129 -0
- package/src/lib/manifest/custom-field-section.ts +86 -0
- package/src/lib/manifest/custom-field.ts +420 -0
- package/src/lib/manifest/custom-object-action.ts +119 -0
- package/src/lib/manifest/custom-object-field-section.ts +137 -0
- package/src/lib/manifest/custom-object-page-layout.ts +2378 -0
- package/src/lib/manifest/custom-object.ts +544 -0
- package/src/lib/manifest/custom-skill.ts +205 -0
- package/src/lib/manifest/existing-manifest-context.ts +923 -0
- package/src/lib/manifest/field.ts +1065 -0
- package/src/lib/manifest/index.ts +284 -0
- package/src/lib/manifest/list-view.ts +253 -0
- package/src/lib/manifest/manifest-builder.ts +255 -0
- package/src/lib/manifest/manifest-function.ts +186 -0
- package/src/lib/manifest/node.ts +4 -0
- package/src/lib/manifest/rule.ts +291 -0
- package/src/lib/manifest/sdui-page.ts +175 -0
- package/src/lib/manifest/validation.ts +202 -0
- package/src/lib/manifest/workflow.ts +248 -0
- package/src/lib/manifest.ts +1 -0
- package/src/pagination.ts +2 -0
- package/src/resource.ts +2 -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 +14 -0
- package/src/resources/agents/sessions/messages.ts +111 -0
- package/src/resources/agents/sessions/resume-state.ts +32 -0
- package/src/resources/agents/sessions/sessions.ts +333 -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/app-users.ts +275 -0
- package/src/resources/background-check-candidates.ts +434 -0
- package/src/resources/break-policies.ts +131 -0
- package/src/resources/break-types.ts +252 -0
- package/src/resources/business-partner-groups.ts +156 -0
- package/src/resources/business-partners.ts +200 -0
- package/src/resources/business-structure-paths.ts +240 -0
- package/src/resources/candidate-applications.ts +106 -0
- package/src/resources/candidates.ts +89 -0
- package/src/resources/companies.ts +120 -0
- package/src/resources/company-legal-entities.ts +242 -0
- package/src/resources/company-legal-entity-workers.ts +120 -0
- package/src/resources/compensation-bands-details.ts +148 -0
- package/src/resources/compensations.ts +323 -0
- package/src/resources/custom-apps.ts +442 -0
- package/src/resources/custom-fields.ts +109 -0
- package/src/resources/custom-objects/custom-objects.ts +258 -0
- package/src/resources/custom-objects/fields.ts +459 -0
- package/src/resources/custom-objects/index.ts +35 -0
- package/src/resources/custom-objects/records.ts +353 -0
- package/src/resources/custom-objects.ts +3 -0
- package/src/resources/custom-pages.ts +247 -0
- package/src/resources/custom-settings.ts +376 -0
- package/src/resources/departments.ts +175 -0
- package/src/resources/developer-program-application.ts +233 -0
- package/src/resources/developer-users.ts +77 -0
- package/src/resources/device-orders.ts +205 -0
- package/src/resources/devices.ts +501 -0
- package/src/resources/draft-hires.ts +599 -0
- package/src/resources/draft-transitions.ts +583 -0
- package/src/resources/earning-types.ts +72 -0
- package/src/resources/earnings-inputs.ts +322 -0
- package/src/resources/employee-documents.ts +183 -0
- package/src/resources/employment-types.ts +117 -0
- package/src/resources/entitlements.ts +47 -0
- package/src/resources/files.ts +203 -0
- package/src/resources/functions/deployments.ts +228 -0
- package/src/resources/functions/executions.ts +193 -0
- package/src/resources/functions/functions.ts +244 -0
- package/src/resources/functions/index.ts +31 -0
- package/src/resources/functions.ts +3 -0
- package/src/resources/headcount-positions.ts +1829 -0
- package/src/resources/headcount-priorities.ts +105 -0
- package/src/resources/hire-requirements.ts +140 -0
- package/src/resources/hires.ts +786 -0
- package/src/resources/index.ts +807 -0
- package/src/resources/job-assignments.ts +375 -0
- package/src/resources/job-codes.ts +562 -0
- package/src/resources/job-dimensions.ts +235 -0
- package/src/resources/job-functions.ts +105 -0
- package/src/resources/job-pay-rate-exceptions.ts +161 -0
- package/src/resources/job-requisitions-write.ts +330 -0
- package/src/resources/job-requisitions.ts +74 -0
- package/src/resources/kiosk-badges.ts +353 -0
- package/src/resources/leave-accruals.ts +490 -0
- package/src/resources/leave-balances.ts +147 -0
- package/src/resources/leave-program-evaluations.ts +737 -0
- package/src/resources/leave-requests.ts +938 -0
- package/src/resources/leave-types.ts +105 -0
- package/src/resources/legal-entities.ts +418 -0
- package/src/resources/levels.ts +254 -0
- package/src/resources/listing-submissions.ts +120 -0
- package/src/resources/listing-transitions.ts +84 -0
- package/src/resources/listing.ts +2297 -0
- package/src/resources/location-factors.ts +657 -0
- package/src/resources/metadata/components.ts +349 -0
- package/src/resources/metadata/deployment-runs.ts +186 -0
- package/src/resources/metadata/index.ts +30 -0
- package/src/resources/metadata/metadata.ts +237 -0
- package/src/resources/metadata/schema.ts +105 -0
- package/src/resources/metadata/types.ts +55 -0
- package/src/resources/metadata/validation-runs.ts +186 -0
- package/src/resources/metadata.ts +3 -0
- package/src/resources/object-categories.ts +138 -0
- package/src/resources/package-installs.ts +143 -0
- package/src/resources/package-managed-installs.ts +156 -0
- package/src/resources/package-sandbox-links.ts +195 -0
- package/src/resources/package-uninstalls.ts +168 -0
- package/src/resources/package-upgrades.ts +183 -0
- package/src/resources/package-version-component-updates.ts +154 -0
- package/src/resources/package-versions/index.ts +9 -0
- package/src/resources/package-versions/package-versions.ts +156 -0
- package/src/resources/package-versions/publish.ts +74 -0
- package/src/resources/package-versions.ts +3 -0
- package/src/resources/packages/available-upgrades.ts +51 -0
- package/src/resources/packages/index.ts +27 -0
- package/src/resources/packages/next-versions.ts +95 -0
- package/src/resources/packages/packages.ts +374 -0
- package/src/resources/packages/versions.ts +175 -0
- package/src/resources/packages.ts +3 -0
- package/src/resources/payroll-runs/index.ts +15 -0
- package/src/resources/payroll-runs/payroll-runs.ts +277 -0
- package/src/resources/payroll-runs/worker-payroll-records.ts +260 -0
- package/src/resources/payroll-runs.ts +3 -0
- package/src/resources/platform-capabilities.ts +41 -0
- package/src/resources/report-runs.ts +286 -0
- package/src/resources/reports/available-filters.ts +60 -0
- package/src/resources/reports/index.ts +4 -0
- package/src/resources/reports/reports.ts +112 -0
- package/src/resources/reports.ts +3 -0
- package/src/resources/sandboxes.ts +1094 -0
- package/src/resources/scheduled-job-assignments.ts +211 -0
- package/src/resources/schedules.ts +506 -0
- package/src/resources/shared.ts +359 -0
- package/src/resources/shift-assignments.ts +365 -0
- package/src/resources/shift-inputs.ts +408 -0
- package/src/resources/shiftassignments.ts +1534 -0
- package/src/resources/sites.ts +777 -0
- package/src/resources/software-deployments.ts +612 -0
- package/src/resources/sso-me.ts +70 -0
- package/src/resources/supergroups/exclusion-members.ts +101 -0
- package/src/resources/supergroups/inclusion-members.ts +101 -0
- package/src/resources/supergroups/index.ts +22 -0
- package/src/resources/supergroups/members.ts +51 -0
- package/src/resources/supergroups/supergroups.ts +204 -0
- package/src/resources/supergroups.ts +3 -0
- package/src/resources/teams.ts +161 -0
- package/src/resources/time-cards.ts +219 -0
- package/src/resources/time-entries.ts +1871 -0
- package/src/resources/titles.ts +189 -0
- package/src/resources/tracks.ts +152 -0
- package/src/resources/unassigned-shifts.ts +418 -0
- package/src/resources/unassignedshifts.ts +1542 -0
- package/src/resources/users.ts +265 -0
- package/src/resources/variable-compensation-payout-labels.ts +227 -0
- package/src/resources/variable-compensation-payout-types.ts +440 -0
- package/src/resources/variable-compensation-payout-writes.ts +146 -0
- package/src/resources/variable-compensation-payouts.ts +702 -0
- package/src/resources/work-locations.ts +217 -0
- package/src/resources/worker-change-fields.ts +63 -0
- package/src/resources/worker-changes.ts +359 -0
- package/src/resources/worker-time-splits.ts +485 -0
- package/src/resources/workers.ts +1028 -0
- package/src/resources/workflow-action-executions.ts +50 -0
- package/src/resources/workflows.ts +1434 -0
- package/src/resources.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +2 -0
- package/src/version.ts +1 -0
- package/uploads.d.mts +3 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +3 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +6 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +3 -0
- package/uploads.mjs.map +1 -0
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
|
@@ -0,0 +1,1319 @@
|
|
|
1
|
+
import { generateId } from "./_helpers.mjs";
|
|
2
|
+
import { CustomObjectFieldSection } from "./custom-object-field-section.mjs";
|
|
3
|
+
import { getExistingManifestContext } from "./existing-manifest-context.mjs";
|
|
4
|
+
import { requireStringComponentField } from "./_existing-component-fields.mjs";
|
|
5
|
+
function isField(value) {
|
|
6
|
+
const candidate = value;
|
|
7
|
+
return (candidate != null &&
|
|
8
|
+
typeof candidate.getApiName === 'function' &&
|
|
9
|
+
typeof candidate.getCustomObjectApiName === 'function' &&
|
|
10
|
+
typeof candidate.getSectionId === 'function' &&
|
|
11
|
+
typeof candidate._assignSection === 'function');
|
|
12
|
+
}
|
|
13
|
+
function isFieldRef(value) {
|
|
14
|
+
const candidate = value;
|
|
15
|
+
return (candidate != null &&
|
|
16
|
+
typeof candidate === 'object' &&
|
|
17
|
+
(isField(candidate.field) || typeof candidate.field === 'string'));
|
|
18
|
+
}
|
|
19
|
+
const LAYOUT_SECTION_KEY = Symbol('CustomObjectPageLayout.layoutSectionKey');
|
|
20
|
+
function isCustomObjectFieldSection(value) {
|
|
21
|
+
return value instanceof CustomObjectFieldSection;
|
|
22
|
+
}
|
|
23
|
+
function explicitLayoutSectionKey(section) {
|
|
24
|
+
const record = section;
|
|
25
|
+
const key = section.key ?? record['layout_section_key'] ?? record['layoutSectionKey'];
|
|
26
|
+
return typeof key === 'string' ? key : undefined;
|
|
27
|
+
}
|
|
28
|
+
function attachLayoutSectionKey(section, sectionKey) {
|
|
29
|
+
if (explicitLayoutSectionKey(section) == null)
|
|
30
|
+
section.key = sectionKey;
|
|
31
|
+
Object.defineProperty(section, LAYOUT_SECTION_KEY, {
|
|
32
|
+
value: sectionKey,
|
|
33
|
+
enumerable: false,
|
|
34
|
+
configurable: true,
|
|
35
|
+
});
|
|
36
|
+
return section;
|
|
37
|
+
}
|
|
38
|
+
function layoutSectionKey(section) {
|
|
39
|
+
return (explicitLayoutSectionKey(section) ??
|
|
40
|
+
section[LAYOUT_SECTION_KEY]);
|
|
41
|
+
}
|
|
42
|
+
function layoutSectionMatches(section, sectionKey) {
|
|
43
|
+
return layoutSectionKey(section) === sectionKey;
|
|
44
|
+
}
|
|
45
|
+
function isSerializedFieldsSection(section) {
|
|
46
|
+
return section.type === 'fields_section';
|
|
47
|
+
}
|
|
48
|
+
function assertSameObject(customObject, field, sectionKey) {
|
|
49
|
+
if (field.getCustomObjectApiName() !== customObject.getApiName()) {
|
|
50
|
+
throw new Error(`CustomObjectPageLayout fields_section "${sectionKey}" references field "${field.getApiName()}" ` +
|
|
51
|
+
`from "${field.getCustomObjectApiName()}", but the layout belongs to "${customObject.getApiName()}".`);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
function assignSectionForLayout(field, section) {
|
|
55
|
+
if (!field.isStandard())
|
|
56
|
+
field._assignSection(section);
|
|
57
|
+
}
|
|
58
|
+
function assertSectionBelongsTo(customObject, section) {
|
|
59
|
+
if (section.getModelApiName() !== customObject.getApiName()) {
|
|
60
|
+
throw new Error(`CustomObjectPageLayout section "${section.getSectionId()}" belongs to "${section.getModelApiName()}", ` +
|
|
61
|
+
`but the layout belongs to "${customObject.getApiName()}".`);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
function requireFieldSectionOption(value, label) {
|
|
65
|
+
if (isCustomObjectFieldSection(value))
|
|
66
|
+
return value;
|
|
67
|
+
if (typeof value === 'string') {
|
|
68
|
+
throw new TypeError(`${label} must be a CustomObjectFieldSection object; received raw section id "${value}". ` +
|
|
69
|
+
'Load/include the existing field section first.');
|
|
70
|
+
}
|
|
71
|
+
throw new TypeError(`${label} must be a CustomObjectFieldSection object.`);
|
|
72
|
+
}
|
|
73
|
+
function assertOptionAbsent(options, key, message) {
|
|
74
|
+
if (options == null || typeof options !== 'object')
|
|
75
|
+
return;
|
|
76
|
+
if (Object.prototype.hasOwnProperty.call(options, key))
|
|
77
|
+
throw new TypeError(message);
|
|
78
|
+
}
|
|
79
|
+
function toSerializedSectionField(fieldRqlName, options = {}) {
|
|
80
|
+
const normalized = { fieldRqlName };
|
|
81
|
+
if (options.hidden != null)
|
|
82
|
+
normalized.hidden = options.hidden;
|
|
83
|
+
if (options.editable != null)
|
|
84
|
+
normalized.editable = options.editable;
|
|
85
|
+
if (options.readOnly != null)
|
|
86
|
+
normalized.readOnly = options.readOnly;
|
|
87
|
+
if (options.defaultValue != null)
|
|
88
|
+
normalized.defaultValue = options.defaultValue;
|
|
89
|
+
if (options.height != null)
|
|
90
|
+
normalized.height = options.height;
|
|
91
|
+
if (options.canBeDeleted != null)
|
|
92
|
+
normalized.canBeDeleted = options.canBeDeleted;
|
|
93
|
+
return normalized;
|
|
94
|
+
}
|
|
95
|
+
function copySectionOptions(target, input) {
|
|
96
|
+
if (input.canBeDeleted != null)
|
|
97
|
+
target.canBeDeleted = input.canBeDeleted;
|
|
98
|
+
if (input.canBeRenamed != null)
|
|
99
|
+
target.canBeRenamed = input.canBeRenamed;
|
|
100
|
+
if (input.hideName != null)
|
|
101
|
+
target.hideName = input.hideName;
|
|
102
|
+
return target;
|
|
103
|
+
}
|
|
104
|
+
function normalizeSectionField(customObject, section, sectionKey, entry) {
|
|
105
|
+
if (isField(entry) || typeof entry === 'string') {
|
|
106
|
+
const field = customObject._resolveField(entry);
|
|
107
|
+
assertSameObject(customObject, field, sectionKey);
|
|
108
|
+
assignSectionForLayout(field, section);
|
|
109
|
+
return toSerializedSectionField(field.getApiName());
|
|
110
|
+
}
|
|
111
|
+
if (isFieldRef(entry)) {
|
|
112
|
+
const field = customObject._resolveField(entry.field);
|
|
113
|
+
assertSameObject(customObject, field, sectionKey);
|
|
114
|
+
assignSectionForLayout(field, section);
|
|
115
|
+
return toSerializedSectionField(field.getApiName(), entry);
|
|
116
|
+
}
|
|
117
|
+
throw new Error(`CustomObjectPageLayout fields_section "${sectionKey}" has an invalid field entry; ` +
|
|
118
|
+
'pass a Field instance or { field }.');
|
|
119
|
+
}
|
|
120
|
+
function normalizeFieldsSection(customObject, input) {
|
|
121
|
+
assertSectionBelongsTo(customObject, input.section);
|
|
122
|
+
const sectionKey = input.key ?? input.section.getSectionId();
|
|
123
|
+
const name = input.name ?? input.section.getName();
|
|
124
|
+
const normalized = copySectionOptions({
|
|
125
|
+
name,
|
|
126
|
+
type: 'fields_section',
|
|
127
|
+
fields: input.fields.map((field) => normalizeSectionField(customObject, input.section, sectionKey, field)),
|
|
128
|
+
}, input);
|
|
129
|
+
if (input.layout != null)
|
|
130
|
+
normalized.layout = input.layout;
|
|
131
|
+
return attachLayoutSectionKey(normalized, sectionKey);
|
|
132
|
+
}
|
|
133
|
+
function normalizeSection(customObject, section) {
|
|
134
|
+
if (section.type === 'fields_section')
|
|
135
|
+
return normalizeFieldsSection(customObject, section);
|
|
136
|
+
return { ...section };
|
|
137
|
+
}
|
|
138
|
+
function normalizeTab(customObject, tab) {
|
|
139
|
+
if (tab.type === 'custom_tab')
|
|
140
|
+
return tab;
|
|
141
|
+
return {
|
|
142
|
+
...tab,
|
|
143
|
+
sections: tab.sections.map((section) => normalizeSection(customObject, section)),
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
function normalizeSystemSectionEdit(customObject, tabKey, sectionKey, edit) {
|
|
147
|
+
const { newFields: _newFields, ...rest } = edit;
|
|
148
|
+
const normalized = { ...rest };
|
|
149
|
+
if (edit.newFields != null) {
|
|
150
|
+
normalized.newFields = edit.newFields.map((field) => normalizeSectionField(customObject, sectionKey, `${tabKey}.${sectionKey}`, field));
|
|
151
|
+
}
|
|
152
|
+
return normalized;
|
|
153
|
+
}
|
|
154
|
+
function normalizeSystemTabEdit(customObject, tabKey, edit) {
|
|
155
|
+
const { newSections: _newSections, systemSectionEdits: _systemSectionEdits, ...rest } = edit;
|
|
156
|
+
const normalized = { ...rest };
|
|
157
|
+
if (edit.newSections != null) {
|
|
158
|
+
normalized.newSections = edit.newSections.map((section) => normalizeSection(customObject, section));
|
|
159
|
+
}
|
|
160
|
+
if (edit.systemSectionEdits != null) {
|
|
161
|
+
const systemSectionEdits = {};
|
|
162
|
+
for (const [sectionKey, sectionEdit] of Object.entries(edit.systemSectionEdits)) {
|
|
163
|
+
systemSectionEdits[sectionKey] = normalizeSystemSectionEdit(customObject, tabKey, sectionKey, sectionEdit);
|
|
164
|
+
}
|
|
165
|
+
normalized.systemSectionEdits = systemSectionEdits;
|
|
166
|
+
}
|
|
167
|
+
return normalized;
|
|
168
|
+
}
|
|
169
|
+
function normalizeTabEdits(customObject, tabEdits) {
|
|
170
|
+
const { newTabs: _newTabs, systemTabEdits: _systemTabEdits, ...rest } = tabEdits;
|
|
171
|
+
const normalized = { ...rest };
|
|
172
|
+
if (tabEdits.newTabs != null) {
|
|
173
|
+
normalized.newTabs = tabEdits.newTabs.map((tab) => normalizeTab(customObject, tab));
|
|
174
|
+
}
|
|
175
|
+
if (tabEdits.systemTabEdits != null) {
|
|
176
|
+
const systemTabEdits = {};
|
|
177
|
+
for (const [tabKey, tabEdit] of Object.entries(tabEdits.systemTabEdits)) {
|
|
178
|
+
systemTabEdits[tabKey] = normalizeSystemTabEdit(customObject, tabKey, tabEdit);
|
|
179
|
+
}
|
|
180
|
+
normalized.systemTabEdits = systemTabEdits;
|
|
181
|
+
}
|
|
182
|
+
return normalized;
|
|
183
|
+
}
|
|
184
|
+
function cloneJson(value) {
|
|
185
|
+
if (value == null)
|
|
186
|
+
return value;
|
|
187
|
+
return JSON.parse(JSON.stringify(value));
|
|
188
|
+
}
|
|
189
|
+
function stripMovementOptions(value) {
|
|
190
|
+
if (Array.isArray(value)) {
|
|
191
|
+
for (const item of value)
|
|
192
|
+
stripMovementOptions(item);
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
195
|
+
if (value == null || typeof value !== 'object')
|
|
196
|
+
return;
|
|
197
|
+
const record = value;
|
|
198
|
+
delete record['movementOption'];
|
|
199
|
+
for (const item of Object.values(record))
|
|
200
|
+
stripMovementOptions(item);
|
|
201
|
+
}
|
|
202
|
+
const HEADER_EDIT_KEYS = new Set([
|
|
203
|
+
'newTitleField',
|
|
204
|
+
'titleFieldDeleted',
|
|
205
|
+
'newDescriptionField',
|
|
206
|
+
'descriptionFieldDeleted',
|
|
207
|
+
'systemFieldEdits',
|
|
208
|
+
'newFields',
|
|
209
|
+
'headerFieldsOrder',
|
|
210
|
+
]);
|
|
211
|
+
const SYSTEM_HEADER_FIELD_EDIT_KEYS = new Set(['newRqlField', 'deleted']);
|
|
212
|
+
const NEW_HEADER_FIELD_KEYS = new Set(['rqlName', 'key', 'canBeDeleted', 'canBeChanged', 'canBeMoved']);
|
|
213
|
+
function assertKnownKeys(record, allowedKeys, label, hint) {
|
|
214
|
+
for (const key of Object.keys(record)) {
|
|
215
|
+
if (!allowedKeys.has(key)) {
|
|
216
|
+
throw new Error(`${label} contains unsupported key "${key}". ${hint}`);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
function normalizeHeaderEdits(headerEdits) {
|
|
221
|
+
assertKnownKeys(headerEdits, HEADER_EDIT_KEYS, 'CustomObjectPageLayout headerEdits', 'Use addHeaderField(), setTitleField(), setDescriptionField(), or the HeaderEdits keys documented by the SDK.');
|
|
222
|
+
for (const [key, edit] of Object.entries(headerEdits.systemFieldEdits ?? {})) {
|
|
223
|
+
assertKnownKeys(edit, SYSTEM_HEADER_FIELD_EDIT_KEYS, `CustomObjectPageLayout headerEdits.systemFieldEdits.${key}`, 'Use newRqlField and deleted for system header field edits.');
|
|
224
|
+
}
|
|
225
|
+
for (const [index, field] of (headerEdits.newFields ?? []).entries()) {
|
|
226
|
+
assertKnownKeys(field, NEW_HEADER_FIELD_KEYS, `CustomObjectPageLayout headerEdits.newFields[${index}]`, 'Use { rqlName, key } entries, or call addHeaderField(field).');
|
|
227
|
+
}
|
|
228
|
+
if (headerEdits.newTitleField === '') {
|
|
229
|
+
throw new Error('CustomObjectPageLayout headerEdits.newTitleField cannot be empty. Use titleFieldDeleted.');
|
|
230
|
+
}
|
|
231
|
+
if (headerEdits.newDescriptionField === '') {
|
|
232
|
+
throw new Error('CustomObjectPageLayout headerEdits.newDescriptionField cannot be empty. Use descriptionFieldDeleted.');
|
|
233
|
+
}
|
|
234
|
+
if (headerEdits.newTitleField != null && headerEdits.titleFieldDeleted === true) {
|
|
235
|
+
throw new Error('CustomObjectPageLayout headerEdits cannot both set newTitleField and titleFieldDeleted.');
|
|
236
|
+
}
|
|
237
|
+
if (headerEdits.newDescriptionField != null && headerEdits.descriptionFieldDeleted === true) {
|
|
238
|
+
throw new Error('CustomObjectPageLayout headerEdits cannot both set newDescriptionField and descriptionFieldDeleted.');
|
|
239
|
+
}
|
|
240
|
+
const normalized = { ...headerEdits };
|
|
241
|
+
if (headerEdits.headerFieldsOrder == null)
|
|
242
|
+
return normalized;
|
|
243
|
+
return {
|
|
244
|
+
...normalized,
|
|
245
|
+
headerFieldsOrder: normalizeHeaderFieldsOrder(normalized),
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
function addUniqueHeaderOrderField(order, field) {
|
|
249
|
+
if (typeof field !== 'string' || field.length === 0)
|
|
250
|
+
return;
|
|
251
|
+
if (!order.includes(field))
|
|
252
|
+
order.push(field);
|
|
253
|
+
}
|
|
254
|
+
function normalizeHeaderFieldsOrder(headerEdits) {
|
|
255
|
+
const customFieldRqlByKey = new Map((headerEdits.newFields ?? []).map((field) => [field.key, field.rqlName]));
|
|
256
|
+
const systemFieldRqlByKey = new Map(Object.entries(headerEdits.systemFieldEdits ?? {})
|
|
257
|
+
.filter((entry) => {
|
|
258
|
+
const [, edit] = entry;
|
|
259
|
+
return typeof edit.newRqlField === 'string' && edit.newRqlField.length > 0;
|
|
260
|
+
})
|
|
261
|
+
.map(([key, edit]) => [key, edit.newRqlField]));
|
|
262
|
+
const order = [];
|
|
263
|
+
for (const entry of headerEdits.headerFieldsOrder ?? []) {
|
|
264
|
+
addUniqueHeaderOrderField(order, customFieldRqlByKey.get(entry) ?? systemFieldRqlByKey.get(entry) ?? entry);
|
|
265
|
+
}
|
|
266
|
+
addUniqueHeaderOrderField(order, headerEdits.newTitleField);
|
|
267
|
+
addUniqueHeaderOrderField(order, headerEdits.newDescriptionField);
|
|
268
|
+
for (const field of headerEdits.newFields ?? []) {
|
|
269
|
+
addUniqueHeaderOrderField(order, field.rqlName);
|
|
270
|
+
}
|
|
271
|
+
for (const systemEdit of Object.values(headerEdits.systemFieldEdits ?? {})) {
|
|
272
|
+
addUniqueHeaderOrderField(order, systemEdit.newRqlField);
|
|
273
|
+
}
|
|
274
|
+
return order;
|
|
275
|
+
}
|
|
276
|
+
function isTabWithSections(tab) {
|
|
277
|
+
return tab.type === 'tab_with_sections';
|
|
278
|
+
}
|
|
279
|
+
function insertionIndex(length, position) {
|
|
280
|
+
if (position == null || position === 'end')
|
|
281
|
+
return length;
|
|
282
|
+
if (position === 'start')
|
|
283
|
+
return 0;
|
|
284
|
+
if (!Number.isInteger(position) || position < 0 || position > length) {
|
|
285
|
+
throw new Error(`Invalid insertion position ${position}; expected 'start', 'end', or 0-${length}.`);
|
|
286
|
+
}
|
|
287
|
+
return position;
|
|
288
|
+
}
|
|
289
|
+
function insertAt(items, item, position) {
|
|
290
|
+
items.splice(insertionIndex(items.length, position), 0, item);
|
|
291
|
+
}
|
|
292
|
+
function insertUniqueAt(items, item, position) {
|
|
293
|
+
if (item == null || item.length === 0 || items.includes(item))
|
|
294
|
+
return;
|
|
295
|
+
insertAt(items, item, position);
|
|
296
|
+
}
|
|
297
|
+
function fieldRqlNameOf(entry) {
|
|
298
|
+
if (typeof entry === 'string')
|
|
299
|
+
return entry;
|
|
300
|
+
if (entry == null || typeof entry !== 'object')
|
|
301
|
+
return undefined;
|
|
302
|
+
const record = entry;
|
|
303
|
+
const fieldRqlName = record['fieldRqlName'] ?? record['field_rql_name'] ?? record['apiName'] ?? record['api_name'];
|
|
304
|
+
return typeof fieldRqlName === 'string' ? fieldRqlName : undefined;
|
|
305
|
+
}
|
|
306
|
+
function addFieldSectionLayoutSection(index, fieldSectionId, entry) {
|
|
307
|
+
const entries = index.get(fieldSectionId) ?? [];
|
|
308
|
+
if (!entries.some((existing) => existing.tabKey === entry.tabKey && existing.sectionKey === entry.sectionKey)) {
|
|
309
|
+
entries.push(entry);
|
|
310
|
+
}
|
|
311
|
+
index.set(fieldSectionId, entries);
|
|
312
|
+
}
|
|
313
|
+
function indexFieldsSectionInput(index, tabKey, section) {
|
|
314
|
+
addFieldSectionLayoutSection(index, section.section.getSectionId(), {
|
|
315
|
+
tabKey,
|
|
316
|
+
sectionKey: section.key ?? section.section.getSectionId(),
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
function indexPageLayoutSectionInput(index, tabKey, section) {
|
|
320
|
+
if (section.type === 'fields_section')
|
|
321
|
+
indexFieldsSectionInput(index, tabKey, section);
|
|
322
|
+
}
|
|
323
|
+
function buildFieldSectionLayoutIndexFromProps(tabEdits) {
|
|
324
|
+
const index = new Map();
|
|
325
|
+
if (tabEdits == null)
|
|
326
|
+
return index;
|
|
327
|
+
for (const tab of tabEdits.newTabs ?? []) {
|
|
328
|
+
if (tab.type !== 'tab_with_sections')
|
|
329
|
+
continue;
|
|
330
|
+
for (const section of tab.sections)
|
|
331
|
+
indexPageLayoutSectionInput(index, tab.key, section);
|
|
332
|
+
}
|
|
333
|
+
for (const [tabKey, tabEdit] of Object.entries(tabEdits.systemTabEdits ?? {})) {
|
|
334
|
+
for (const section of tabEdit.newSections ?? []) {
|
|
335
|
+
indexPageLayoutSectionInput(index, tabKey, section);
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
return index;
|
|
339
|
+
}
|
|
340
|
+
function indexLoadedFieldsSection(index, tabKey, section, resolveFieldSectionId) {
|
|
341
|
+
const sectionKey = layoutSectionKey(section);
|
|
342
|
+
if (sectionKey == null || resolveFieldSectionId == null)
|
|
343
|
+
return;
|
|
344
|
+
for (const field of section.fields ?? []) {
|
|
345
|
+
const fieldRqlName = fieldRqlNameOf(field);
|
|
346
|
+
if (fieldRqlName == null)
|
|
347
|
+
continue;
|
|
348
|
+
const fieldSectionId = resolveFieldSectionId(fieldRqlName);
|
|
349
|
+
if (fieldSectionId != null) {
|
|
350
|
+
addFieldSectionLayoutSection(index, fieldSectionId, { tabKey, sectionKey });
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
function buildFieldSectionLayoutIndexFromLoadedTabEdits(tabEdits, resolveFieldSectionId) {
|
|
355
|
+
const index = new Map();
|
|
356
|
+
for (const tab of tabEdits.newTabs ?? []) {
|
|
357
|
+
if (!isTabWithSections(tab))
|
|
358
|
+
continue;
|
|
359
|
+
for (const section of tab.sections) {
|
|
360
|
+
if (isSerializedFieldsSection(section)) {
|
|
361
|
+
indexLoadedFieldsSection(index, tab.key, section, resolveFieldSectionId);
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
for (const [tabKey, tabEdit] of Object.entries(tabEdits.systemTabEdits ?? {})) {
|
|
366
|
+
for (const section of tabEdit.newSections ?? []) {
|
|
367
|
+
if (isSerializedFieldsSection(section)) {
|
|
368
|
+
indexLoadedFieldsSection(index, tabKey, section, resolveFieldSectionId);
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
return index;
|
|
373
|
+
}
|
|
374
|
+
function annotateLoadedFieldsSection(section) {
|
|
375
|
+
const sectionKey = layoutSectionKey(section);
|
|
376
|
+
return sectionKey == null ? section : attachLayoutSectionKey(section, sectionKey);
|
|
377
|
+
}
|
|
378
|
+
function annotateLoadedTabEdits(tabEdits) {
|
|
379
|
+
for (const tab of tabEdits.newTabs ?? []) {
|
|
380
|
+
if (!isTabWithSections(tab))
|
|
381
|
+
continue;
|
|
382
|
+
tab.sections = tab.sections.map((section) => isSerializedFieldsSection(section) ? annotateLoadedFieldsSection(section) : section);
|
|
383
|
+
}
|
|
384
|
+
for (const tabEdit of Object.values(tabEdits.systemTabEdits ?? {})) {
|
|
385
|
+
if (tabEdit.newSections != null) {
|
|
386
|
+
tabEdit.newSections = tabEdit.newSections.map((section) => isSerializedFieldsSection(section) ? annotateLoadedFieldsSection(section) : section);
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
return tabEdits;
|
|
390
|
+
}
|
|
391
|
+
function removeIndexes(items, indexes) {
|
|
392
|
+
for (const index of [...indexes].sort((a, b) => b - a)) {
|
|
393
|
+
items.splice(index, 1);
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
function removeFromArray(items, predicate, label, removeAll = true) {
|
|
397
|
+
const indexes = [];
|
|
398
|
+
items.forEach((item, index) => {
|
|
399
|
+
if (predicate(item))
|
|
400
|
+
indexes.push(index);
|
|
401
|
+
});
|
|
402
|
+
if (indexes.length > 1 && !removeAll) {
|
|
403
|
+
throw new Error(`${label} matched ${indexes.length} entries; pass removeAll: true to remove them all.`);
|
|
404
|
+
}
|
|
405
|
+
removeIndexes(items, removeAll ? indexes : indexes.slice(0, 1));
|
|
406
|
+
return removeAll ? indexes.length : Math.min(indexes.length, 1);
|
|
407
|
+
}
|
|
408
|
+
function removeKeyFromOrder(order, key) {
|
|
409
|
+
if (order == null)
|
|
410
|
+
return;
|
|
411
|
+
removeFromArray(order, (entry) => entry === key, `order key "${key}"`);
|
|
412
|
+
}
|
|
413
|
+
function ensureRecordProperty(record, key, label) {
|
|
414
|
+
const existing = record[key];
|
|
415
|
+
if (existing == null) {
|
|
416
|
+
const next = {};
|
|
417
|
+
record[key] = next;
|
|
418
|
+
return next;
|
|
419
|
+
}
|
|
420
|
+
if (typeof existing !== 'object' || Array.isArray(existing)) {
|
|
421
|
+
throw new Error(`${label} must be an object.`);
|
|
422
|
+
}
|
|
423
|
+
return existing;
|
|
424
|
+
}
|
|
425
|
+
function ensureArrayProperty(record, key, label) {
|
|
426
|
+
const existing = record[key];
|
|
427
|
+
if (existing == null) {
|
|
428
|
+
const next = [];
|
|
429
|
+
record[key] = next;
|
|
430
|
+
return next;
|
|
431
|
+
}
|
|
432
|
+
if (!Array.isArray(existing)) {
|
|
433
|
+
throw new Error(`${label} must be an array.`);
|
|
434
|
+
}
|
|
435
|
+
return existing;
|
|
436
|
+
}
|
|
437
|
+
// ---------------------------------------------------------------------------
|
|
438
|
+
// Class
|
|
439
|
+
// ---------------------------------------------------------------------------
|
|
440
|
+
/**
|
|
441
|
+
* Defines a page layout and registers it with the manifest.
|
|
442
|
+
*
|
|
443
|
+
* A page layout controls the tab structure, section groupings, header fields,
|
|
444
|
+
* and visibility conditions on a custom object's record detail page. You would
|
|
445
|
+
* normally define one layout per custom object using `apiName: 'default'`.
|
|
446
|
+
*
|
|
447
|
+
* For simple single-tab layouts, use the {@link CustomObjectPageLayout.basic}
|
|
448
|
+
* factory instead of constructing the full props manually.
|
|
449
|
+
*
|
|
450
|
+
* > **Caution:** all keys inside `tabEdits` and `headerEdits` must be camelCase.
|
|
451
|
+
* > Snake_case keys are silently dropped on the wire and produce an empty layout.
|
|
452
|
+
*
|
|
453
|
+
* @example
|
|
454
|
+
* ```ts
|
|
455
|
+
* new CustomObjectPageLayout(memberObj, {
|
|
456
|
+
* apiName: 'default',
|
|
457
|
+
* name: 'Member',
|
|
458
|
+
* layoutId: 'layout_gym_member',
|
|
459
|
+
* tabEdits: {
|
|
460
|
+
* newTabs: [{
|
|
461
|
+
* key: 'member', name: 'Member', type: 'tab_with_sections',
|
|
462
|
+
* sections: [{
|
|
463
|
+
* name: 'Profile',
|
|
464
|
+
* type: 'fields_section',
|
|
465
|
+
* section: profileSection,
|
|
466
|
+
* fields: [{ field: 'name', editable: true }, memberEmail],
|
|
467
|
+
* }],
|
|
468
|
+
* }],
|
|
469
|
+
* systemTabEdits: {},
|
|
470
|
+
* tabsOrder: ['member'],
|
|
471
|
+
* },
|
|
472
|
+
* visibilityConditions: {},
|
|
473
|
+
* });
|
|
474
|
+
* ```
|
|
475
|
+
*
|
|
476
|
+
* @see {@link CustomObjectPageLayout.basic} — factory for simple single-tab layouts.
|
|
477
|
+
*/
|
|
478
|
+
export class CustomObjectPageLayout {
|
|
479
|
+
static toDeletionIdentifier(identifier) {
|
|
480
|
+
return {
|
|
481
|
+
type: CustomObjectPageLayout.componentType,
|
|
482
|
+
layout_id: identifier.layoutId,
|
|
483
|
+
object_rql_name: identifier.objectRqlName,
|
|
484
|
+
};
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
* @param customObject - The custom object this layout belongs to.
|
|
488
|
+
* @param props - Initialization properties.
|
|
489
|
+
* @throws {Error} If `apiName` or `name` is empty.
|
|
490
|
+
*/
|
|
491
|
+
constructor(customObject, props) {
|
|
492
|
+
if (!props.apiName)
|
|
493
|
+
throw new Error('CustomObjectPageLayout: apiName cannot be empty');
|
|
494
|
+
if (!props.name)
|
|
495
|
+
throw new Error('CustomObjectPageLayout: name cannot be empty');
|
|
496
|
+
this._layoutId = props.layoutId ?? generateId('layout');
|
|
497
|
+
this._apiName = props.apiName;
|
|
498
|
+
this._customObjectApiName = customObject.getApiName();
|
|
499
|
+
this._customObject = customObject;
|
|
500
|
+
this._name = props.name;
|
|
501
|
+
this._tabEdits = normalizeTabEdits(customObject, props.tabEdits ?? {});
|
|
502
|
+
this._fieldSectionLayoutSections = buildFieldSectionLayoutIndexFromProps(props.tabEdits);
|
|
503
|
+
this._headerEdits = normalizeHeaderEdits(props.headerEdits ?? {});
|
|
504
|
+
this._visibilityConditions = props.visibilityConditions ?? {};
|
|
505
|
+
this._blueprintKey = props.blueprintKey;
|
|
506
|
+
customObject._register(this);
|
|
507
|
+
}
|
|
508
|
+
/**
|
|
509
|
+
* Loads this page layout from the active existing-manifest JSON context.
|
|
510
|
+
*
|
|
511
|
+
* `id` resolves against `layout_id` first, then `api_name`. When loading by
|
|
512
|
+
* api_name such as `'default'`, pass `customObjectApiName` if multiple objects
|
|
513
|
+
* have a layout with the same api_name.
|
|
514
|
+
*/
|
|
515
|
+
static loadFromExisting(layoutIdOrApiName, options = {}) {
|
|
516
|
+
return getExistingManifestContext(options).loadPageLayout(layoutIdOrApiName, options);
|
|
517
|
+
}
|
|
518
|
+
/** @internal Hydrates a page layout from existing manifest wire JSON. */
|
|
519
|
+
static _fromExistingComponent(customObject, component, resolveFieldSectionId) {
|
|
520
|
+
const layout = Object.create(CustomObjectPageLayout.prototype);
|
|
521
|
+
const tabEdits = annotateLoadedTabEdits(cloneJson(component['tab_edits'] ?? {}));
|
|
522
|
+
Object.assign(layout, {
|
|
523
|
+
_layoutId: requireStringComponentField(component, 'layout_id', CustomObjectPageLayout.componentType),
|
|
524
|
+
_apiName: requireStringComponentField(component, 'api_name', CustomObjectPageLayout.componentType),
|
|
525
|
+
_customObjectApiName: requireStringComponentField(component, 'object_rql_name', CustomObjectPageLayout.componentType),
|
|
526
|
+
_customObject: customObject,
|
|
527
|
+
_name: requireStringComponentField(component, 'name', CustomObjectPageLayout.componentType),
|
|
528
|
+
_tabEdits: tabEdits,
|
|
529
|
+
_headerEdits: cloneJson(component['header_edits'] ?? {}),
|
|
530
|
+
_visibilityConditions: cloneJson(component['visibility_conditions'] ?? {}),
|
|
531
|
+
_blueprintKey: component['blueprint_key'],
|
|
532
|
+
_fieldSectionLayoutSections: buildFieldSectionLayoutIndexFromLoadedTabEdits(tabEdits, resolveFieldSectionId),
|
|
533
|
+
});
|
|
534
|
+
customObject._register(layout);
|
|
535
|
+
return layout;
|
|
536
|
+
}
|
|
537
|
+
/**
|
|
538
|
+
* Returns the stable identifier for this layout record (e.g. `'layout_gym_member'`).
|
|
539
|
+
*/
|
|
540
|
+
getLayoutId() {
|
|
541
|
+
return this._layoutId;
|
|
542
|
+
}
|
|
543
|
+
/**
|
|
544
|
+
* Returns the api_name of this layout (e.g. `'default'`).
|
|
545
|
+
*/
|
|
546
|
+
getApiName() {
|
|
547
|
+
return this._apiName;
|
|
548
|
+
}
|
|
549
|
+
/**
|
|
550
|
+
* Returns the api_name of the custom object this layout belongs to.
|
|
551
|
+
*/
|
|
552
|
+
getCustomObjectApiName() {
|
|
553
|
+
return this._customObjectApiName;
|
|
554
|
+
}
|
|
555
|
+
/**
|
|
556
|
+
* Adds one field to an existing layout section.
|
|
557
|
+
*
|
|
558
|
+
* For loaded layouts, this mutates the preserved `tab_edits` JSON in place
|
|
559
|
+
* and normalizes only the inserted field entry.
|
|
560
|
+
*/
|
|
561
|
+
addField(field, options) {
|
|
562
|
+
return this.addFields([field], options);
|
|
563
|
+
}
|
|
564
|
+
/**
|
|
565
|
+
* Adds multiple fields to an existing layout section.
|
|
566
|
+
*
|
|
567
|
+
* Fields are inserted in the order provided. For custom layout sections,
|
|
568
|
+
* pass `section` to choose the typed field section. Use `sectionKey` only
|
|
569
|
+
* when a field section maps to multiple layout sections.
|
|
570
|
+
*/
|
|
571
|
+
addFields(fields, options) {
|
|
572
|
+
if (fields.length === 0)
|
|
573
|
+
return this;
|
|
574
|
+
let fieldSectionForMutation;
|
|
575
|
+
const container = options.systemSection === true ?
|
|
576
|
+
(() => {
|
|
577
|
+
assertOptionAbsent(options, 'section', 'CustomObjectPageLayout addField section is only supported for custom layout sections.');
|
|
578
|
+
assertOptionAbsent(options, 'fieldSection', 'CustomObjectPageLayout addField fieldSection is no longer supported. ' +
|
|
579
|
+
'Use sectionKey only for systemSection: true.');
|
|
580
|
+
return this.ensureSystemSectionFieldContainer(options.tabKey, options.sectionKey);
|
|
581
|
+
})()
|
|
582
|
+
: (() => {
|
|
583
|
+
assertOptionAbsent(options, 'fieldSection', 'CustomObjectPageLayout addField fieldSection is no longer supported. ' +
|
|
584
|
+
'Pass section: CustomObjectFieldSection instead.');
|
|
585
|
+
const section = options.section == null ?
|
|
586
|
+
undefined
|
|
587
|
+
: requireFieldSectionOption(options.section, 'CustomObjectPageLayout addField section');
|
|
588
|
+
if (section != null) {
|
|
589
|
+
this.assertFieldSectionBelongsToLayout(section);
|
|
590
|
+
fieldSectionForMutation = section;
|
|
591
|
+
}
|
|
592
|
+
const sectionKey = options.sectionKey ??
|
|
593
|
+
(section == null ? undefined : this.layoutSectionKeyForFieldSection(options.tabKey, section)) ??
|
|
594
|
+
section?.getSectionId();
|
|
595
|
+
return this.requireOneFieldContainer(options.tabKey, sectionKey, section);
|
|
596
|
+
})();
|
|
597
|
+
const entries = fields.map((field) => this.serializeFieldForMutation(field, container.sectionKey ?? container.label, options, fieldSectionForMutation));
|
|
598
|
+
if (options.allowDuplicate !== true) {
|
|
599
|
+
const existing = new Set(container.fields.map((entry) => fieldRqlNameOf(entry)).filter(Boolean));
|
|
600
|
+
const seen = new Set();
|
|
601
|
+
for (const entry of entries) {
|
|
602
|
+
const fieldRqlName = entry.fieldRqlName;
|
|
603
|
+
if (existing.has(fieldRqlName) || seen.has(fieldRqlName)) {
|
|
604
|
+
throw new Error(`CustomObjectPageLayout section "${container.label}" already contains field "${fieldRqlName}".`);
|
|
605
|
+
}
|
|
606
|
+
seen.add(fieldRqlName);
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
const index = insertionIndex(container.fields.length, options.position);
|
|
610
|
+
container.fields.splice(index, 0, ...entries);
|
|
611
|
+
return this;
|
|
612
|
+
}
|
|
613
|
+
/**
|
|
614
|
+
* Removes a field from the layout's field sections.
|
|
615
|
+
*
|
|
616
|
+
* This only removes the field from the page layout. It does not delete the
|
|
617
|
+
* `CUSTOM_OBJECT_FIELD` component from the manifest.
|
|
618
|
+
*/
|
|
619
|
+
removeField(field, options = {}) {
|
|
620
|
+
const fieldApiName = this.fieldApiName(field);
|
|
621
|
+
if (isField(field))
|
|
622
|
+
this.assertFieldBelongsToLayout(field);
|
|
623
|
+
let sectionKey;
|
|
624
|
+
if (options.systemSection === true) {
|
|
625
|
+
assertOptionAbsent(options, 'section', 'CustomObjectPageLayout removeField section is only supported for custom layout sections.');
|
|
626
|
+
sectionKey = options.sectionKey;
|
|
627
|
+
}
|
|
628
|
+
else {
|
|
629
|
+
sectionKey = options.sectionKey;
|
|
630
|
+
if (options.section != null) {
|
|
631
|
+
const section = requireFieldSectionOption(options.section, 'CustomObjectPageLayout removeField section');
|
|
632
|
+
this.assertFieldSectionBelongsToLayout(section);
|
|
633
|
+
sectionKey ?? (sectionKey = this.layoutSectionKeyForFieldSection(options.tabKey, section));
|
|
634
|
+
sectionKey ?? (sectionKey = section.getSectionId());
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
const containers = this.findFieldContainers({
|
|
638
|
+
tabKey: options.tabKey,
|
|
639
|
+
sectionKey,
|
|
640
|
+
systemSectionOnly: options.systemSection === true,
|
|
641
|
+
});
|
|
642
|
+
const matches = [];
|
|
643
|
+
for (const container of containers) {
|
|
644
|
+
container.fields.forEach((entry, index) => {
|
|
645
|
+
if (fieldRqlNameOf(entry) === fieldApiName) {
|
|
646
|
+
matches.push({ container, index });
|
|
647
|
+
}
|
|
648
|
+
});
|
|
649
|
+
}
|
|
650
|
+
if (matches.length === 0) {
|
|
651
|
+
throw new Error(`CustomObjectPageLayout does not contain field "${fieldApiName}".`);
|
|
652
|
+
}
|
|
653
|
+
const removeAll = options.removeAll !== false;
|
|
654
|
+
if (matches.length > 1 && !removeAll) {
|
|
655
|
+
throw new Error(`CustomObjectPageLayout field "${fieldApiName}" matched ${matches.length} entries; ` +
|
|
656
|
+
'pass removeAll: true to remove them all.');
|
|
657
|
+
}
|
|
658
|
+
const removals = removeAll ? matches : matches.slice(0, 1);
|
|
659
|
+
const byContainer = new Map();
|
|
660
|
+
for (const match of removals) {
|
|
661
|
+
const indexes = byContainer.get(match.container) ?? [];
|
|
662
|
+
indexes.push(match.index);
|
|
663
|
+
byContainer.set(match.container, indexes);
|
|
664
|
+
}
|
|
665
|
+
for (const [container, indexes] of byContainer.entries()) {
|
|
666
|
+
removeIndexes(container.fields, indexes);
|
|
667
|
+
}
|
|
668
|
+
return this;
|
|
669
|
+
}
|
|
670
|
+
/** Removes multiple fields from the layout's field sections. */
|
|
671
|
+
removeFields(fields, options = {}) {
|
|
672
|
+
for (const field of fields) {
|
|
673
|
+
this.removeField(field, options);
|
|
674
|
+
}
|
|
675
|
+
return this;
|
|
676
|
+
}
|
|
677
|
+
/**
|
|
678
|
+
* Adds a section to an existing tab.
|
|
679
|
+
*
|
|
680
|
+
* Pass `systemTab: true` to add a new section to a built-in tab via
|
|
681
|
+
* `systemTabEdits.newSections`.
|
|
682
|
+
*/
|
|
683
|
+
addSection(section, options) {
|
|
684
|
+
const normalized = this.normalizeSectionForMutation(section);
|
|
685
|
+
if (options.systemTab === true) {
|
|
686
|
+
const tabEdit = this.ensureSystemTabEdit(options.tabKey);
|
|
687
|
+
const sections = ensureArrayProperty(tabEdit, 'newSections', `systemTabEdits.${options.tabKey}.newSections`);
|
|
688
|
+
this.assertSectionKeyAvailable(sections, layoutSectionKey(normalized), options.tabKey, options.allowDuplicate);
|
|
689
|
+
const sectionsOrder = this.ensureSystemSectionsOrder(tabEdit);
|
|
690
|
+
insertAt(sections, normalized, options.position);
|
|
691
|
+
insertUniqueAt(sectionsOrder, layoutSectionKey(normalized), options.position);
|
|
692
|
+
if (section.type === 'fields_section') {
|
|
693
|
+
this.rememberFieldSectionLayoutSection(section.section, options.tabKey, layoutSectionKey(normalized));
|
|
694
|
+
}
|
|
695
|
+
return this;
|
|
696
|
+
}
|
|
697
|
+
const tab = this.findNewTabWithSections(options.tabKey);
|
|
698
|
+
if (tab == null) {
|
|
699
|
+
throw new Error(`CustomObjectPageLayout could not find new tab "${options.tabKey}". ` +
|
|
700
|
+
'Pass systemTab: true to add a section to a built-in system tab.');
|
|
701
|
+
}
|
|
702
|
+
this.assertSectionKeyAvailable(tab.sections, layoutSectionKey(normalized), options.tabKey, options.allowDuplicate);
|
|
703
|
+
insertAt(tab.sections, normalized, options.position);
|
|
704
|
+
if (section.type === 'fields_section') {
|
|
705
|
+
this.rememberFieldSectionLayoutSection(section.section, tab.key, layoutSectionKey(normalized));
|
|
706
|
+
}
|
|
707
|
+
return this;
|
|
708
|
+
}
|
|
709
|
+
removeSection(sectionOrKey, options = {}) {
|
|
710
|
+
if (options.systemSection === true) {
|
|
711
|
+
if (typeof sectionOrKey !== 'string') {
|
|
712
|
+
throw new TypeError('CustomObjectPageLayout removeSection with systemSection: true requires a system section key.');
|
|
713
|
+
}
|
|
714
|
+
if (options.tabKey == null) {
|
|
715
|
+
throw new Error('CustomObjectPageLayout removeSection with systemSection: true requires tabKey.');
|
|
716
|
+
}
|
|
717
|
+
const sectionEdit = this.ensureSystemSectionEdit(options.tabKey, sectionOrKey);
|
|
718
|
+
sectionEdit.deleted = true;
|
|
719
|
+
removeKeyFromOrder(this._tabEdits.systemTabEdits?.[options.tabKey]?.sectionsOrder, sectionOrKey);
|
|
720
|
+
this.removeSectionVisibility(sectionOrKey);
|
|
721
|
+
return this;
|
|
722
|
+
}
|
|
723
|
+
let sectionKey;
|
|
724
|
+
if (typeof sectionOrKey === 'string') {
|
|
725
|
+
sectionKey = sectionOrKey;
|
|
726
|
+
}
|
|
727
|
+
else {
|
|
728
|
+
const section = requireFieldSectionOption(sectionOrKey, 'CustomObjectPageLayout removeSection section');
|
|
729
|
+
this.assertFieldSectionBelongsToLayout(section);
|
|
730
|
+
sectionKey = this.layoutSectionKeyForFieldSection(options.tabKey, section) ?? section.getSectionId();
|
|
731
|
+
}
|
|
732
|
+
const matches = [];
|
|
733
|
+
for (const tab of this._tabEdits.newTabs ?? []) {
|
|
734
|
+
if (!isTabWithSections(tab))
|
|
735
|
+
continue;
|
|
736
|
+
if (options.tabKey != null && tab.key !== options.tabKey)
|
|
737
|
+
continue;
|
|
738
|
+
tab.sections.forEach((section, index) => {
|
|
739
|
+
if (isSerializedFieldsSection(section) && layoutSectionMatches(section, sectionKey))
|
|
740
|
+
matches.push({ sections: tab.sections, section, index, tabKey: tab.key });
|
|
741
|
+
});
|
|
742
|
+
}
|
|
743
|
+
for (const [tabKey, tabEdit] of Object.entries(this._tabEdits.systemTabEdits ?? {})) {
|
|
744
|
+
if (options.tabKey != null && tabKey !== options.tabKey)
|
|
745
|
+
continue;
|
|
746
|
+
(tabEdit.newSections ?? []).forEach((section, index) => {
|
|
747
|
+
if (isSerializedFieldsSection(section) && layoutSectionMatches(section, sectionKey))
|
|
748
|
+
matches.push({ sections: tabEdit.newSections, section, index, tabEdit, tabKey });
|
|
749
|
+
});
|
|
750
|
+
}
|
|
751
|
+
if (matches.length === 0) {
|
|
752
|
+
throw new Error(`CustomObjectPageLayout does not contain section "${sectionKey}".`);
|
|
753
|
+
}
|
|
754
|
+
const removeAll = options.removeAll !== false;
|
|
755
|
+
if (matches.length > 1 && !removeAll) {
|
|
756
|
+
throw new Error(`CustomObjectPageLayout section "${sectionKey}" matched ${matches.length} entries; ` +
|
|
757
|
+
'pass removeAll: true to remove them all.');
|
|
758
|
+
}
|
|
759
|
+
const removals = removeAll ? matches : matches.slice(0, 1);
|
|
760
|
+
const byArray = new Map();
|
|
761
|
+
for (const match of removals) {
|
|
762
|
+
const indexes = byArray.get(match.sections) ?? [];
|
|
763
|
+
indexes.push(match.index);
|
|
764
|
+
byArray.set(match.sections, indexes);
|
|
765
|
+
if (match.tabEdit != null)
|
|
766
|
+
removeKeyFromOrder(match.tabEdit.sectionsOrder, sectionKey);
|
|
767
|
+
this.removeSectionVisibility(sectionKey);
|
|
768
|
+
}
|
|
769
|
+
for (const [sections, indexes] of byArray.entries()) {
|
|
770
|
+
removeIndexes(sections, indexes);
|
|
771
|
+
}
|
|
772
|
+
return this;
|
|
773
|
+
}
|
|
774
|
+
/** Adds a new tab to `tab_edits.newTabs`. */
|
|
775
|
+
addTab(tab, options = {}) {
|
|
776
|
+
var _a;
|
|
777
|
+
const normalized = this.normalizeTabForMutation(tab);
|
|
778
|
+
const newTabs = ((_a = this._tabEdits).newTabs ?? (_a.newTabs = []));
|
|
779
|
+
if (options.allowDuplicate !== true && newTabs.some((existing) => existing.key === normalized.key)) {
|
|
780
|
+
throw new Error(`CustomObjectPageLayout already contains tab "${normalized.key}".`);
|
|
781
|
+
}
|
|
782
|
+
const tabsOrder = this.ensureTabsOrder();
|
|
783
|
+
insertAt(newTabs, normalized, options.position);
|
|
784
|
+
insertUniqueAt(tabsOrder, normalized.key, options.position);
|
|
785
|
+
if (tab.type === 'tab_with_sections') {
|
|
786
|
+
for (const section of tab.sections)
|
|
787
|
+
indexPageLayoutSectionInput(this._fieldSectionLayoutSections, tab.key, section);
|
|
788
|
+
}
|
|
789
|
+
return this;
|
|
790
|
+
}
|
|
791
|
+
/**
|
|
792
|
+
* Removes a tab from `newTabs`.
|
|
793
|
+
*
|
|
794
|
+
* Pass `systemTab: true` to delete a built-in tab via `systemTabEdits[tabKey].deleted`.
|
|
795
|
+
*/
|
|
796
|
+
removeTab(tabKey, options = {}) {
|
|
797
|
+
if (options.systemTab === true) {
|
|
798
|
+
const tabEdit = this.ensureSystemTabEdit(tabKey);
|
|
799
|
+
tabEdit.deleted = true;
|
|
800
|
+
removeKeyFromOrder(this._tabEdits.tabsOrder, tabKey);
|
|
801
|
+
this.removeTabVisibility(tabKey);
|
|
802
|
+
return this;
|
|
803
|
+
}
|
|
804
|
+
const newTabs = this._tabEdits.newTabs ?? [];
|
|
805
|
+
const removed = removeFromArray(newTabs, (tab) => tab.key === tabKey, `CustomObjectPageLayout tab "${tabKey}"`, options.removeAll !== false);
|
|
806
|
+
if (removed === 0) {
|
|
807
|
+
throw new Error(`CustomObjectPageLayout does not contain tab "${tabKey}".`);
|
|
808
|
+
}
|
|
809
|
+
removeKeyFromOrder(this._tabEdits.tabsOrder, tabKey);
|
|
810
|
+
this.removeTabVisibility(tabKey);
|
|
811
|
+
return this;
|
|
812
|
+
}
|
|
813
|
+
/** Adds a custom header field to `header_edits.newFields`. */
|
|
814
|
+
addHeaderField(field, options = {}) {
|
|
815
|
+
var _a;
|
|
816
|
+
const headerField = this.normalizeHeaderFieldForMutation(field, options);
|
|
817
|
+
const newFields = ((_a = this._headerEdits).newFields ?? (_a.newFields = []));
|
|
818
|
+
if (options.allowDuplicate !== true && newFields.some((existing) => existing.key === headerField.key)) {
|
|
819
|
+
throw new Error(`CustomObjectPageLayout header already contains field key "${headerField.key}".`);
|
|
820
|
+
}
|
|
821
|
+
const headerFieldsOrder = this.ensureHeaderFieldsOrder();
|
|
822
|
+
insertAt(newFields, headerField, options.position);
|
|
823
|
+
insertUniqueAt(headerFieldsOrder, headerField.rqlName, options.position);
|
|
824
|
+
return this;
|
|
825
|
+
}
|
|
826
|
+
/** Removes custom header fields from `header_edits.newFields`. */
|
|
827
|
+
removeHeaderField(fieldOrKey, options = {}) {
|
|
828
|
+
const fieldApiName = typeof fieldOrKey === 'string' ? undefined : fieldOrKey.getApiName();
|
|
829
|
+
if (isField(fieldOrKey))
|
|
830
|
+
this.assertFieldBelongsToLayout(fieldOrKey);
|
|
831
|
+
const key = typeof fieldOrKey === 'string' ? fieldOrKey : fieldApiName;
|
|
832
|
+
const newFields = this._headerEdits.newFields ?? [];
|
|
833
|
+
const removedFields = [];
|
|
834
|
+
const removed = removeFromArray(newFields, (field) => {
|
|
835
|
+
const matched = field.key === key || (fieldApiName != null && field.rqlName === fieldApiName);
|
|
836
|
+
if (matched)
|
|
837
|
+
removedFields.push(field);
|
|
838
|
+
return matched;
|
|
839
|
+
}, `CustomObjectPageLayout header field "${key}"`, options.removeAll !== false);
|
|
840
|
+
if (removed === 0) {
|
|
841
|
+
throw new Error(`CustomObjectPageLayout header does not contain field "${key}".`);
|
|
842
|
+
}
|
|
843
|
+
for (const removedField of removedFields)
|
|
844
|
+
this.removeHeaderOrderFieldIfUnused(removedField);
|
|
845
|
+
return this;
|
|
846
|
+
}
|
|
847
|
+
setTitleField(field) {
|
|
848
|
+
const previousTitleField = this._headerEdits.newTitleField;
|
|
849
|
+
const nextTitleField = this.headerFieldApiName(field);
|
|
850
|
+
this._headerEdits.newTitleField = nextTitleField;
|
|
851
|
+
this._headerEdits.titleFieldDeleted = false;
|
|
852
|
+
insertUniqueAt(this.ensureHeaderFieldsOrder(), nextTitleField, 'end');
|
|
853
|
+
this.removeHeaderOrderFieldIfUnused(previousTitleField);
|
|
854
|
+
return this;
|
|
855
|
+
}
|
|
856
|
+
/** Removes the record title field from the header. */
|
|
857
|
+
removeTitleField() {
|
|
858
|
+
const previousTitleField = this._headerEdits.newTitleField;
|
|
859
|
+
this._headerEdits.newTitleField = null;
|
|
860
|
+
this._headerEdits.titleFieldDeleted = true;
|
|
861
|
+
this.removeHeaderOrderFieldIfUnused(previousTitleField);
|
|
862
|
+
return this;
|
|
863
|
+
}
|
|
864
|
+
setDescriptionField(field) {
|
|
865
|
+
const previousDescriptionField = this._headerEdits.newDescriptionField;
|
|
866
|
+
const nextDescriptionField = this.headerFieldApiName(field);
|
|
867
|
+
this._headerEdits.newDescriptionField = nextDescriptionField;
|
|
868
|
+
this._headerEdits.descriptionFieldDeleted = false;
|
|
869
|
+
insertUniqueAt(this.ensureHeaderFieldsOrder(), nextDescriptionField, 'end');
|
|
870
|
+
this.removeHeaderOrderFieldIfUnused(previousDescriptionField);
|
|
871
|
+
return this;
|
|
872
|
+
}
|
|
873
|
+
/** Removes the record description field from the header. */
|
|
874
|
+
removeDescriptionField() {
|
|
875
|
+
const previousDescriptionField = this._headerEdits.newDescriptionField;
|
|
876
|
+
this._headerEdits.newDescriptionField = null;
|
|
877
|
+
this._headerEdits.descriptionFieldDeleted = true;
|
|
878
|
+
this.removeHeaderOrderFieldIfUnused(previousDescriptionField);
|
|
879
|
+
return this;
|
|
880
|
+
}
|
|
881
|
+
ensureTabsOrder() {
|
|
882
|
+
var _a;
|
|
883
|
+
const order = ((_a = this._tabEdits).tabsOrder ?? (_a.tabsOrder = []));
|
|
884
|
+
for (const tab of this._tabEdits.newTabs ?? [])
|
|
885
|
+
insertUniqueAt(order, tab.key, 'end');
|
|
886
|
+
for (const [tabKey, tabEdit] of Object.entries(this._tabEdits.systemTabEdits ?? {})) {
|
|
887
|
+
if (tabEdit.deleted !== true)
|
|
888
|
+
insertUniqueAt(order, tabKey, 'end');
|
|
889
|
+
}
|
|
890
|
+
return order;
|
|
891
|
+
}
|
|
892
|
+
ensureSystemSectionsOrder(tabEdit) {
|
|
893
|
+
const order = (tabEdit.sectionsOrder ?? (tabEdit.sectionsOrder = []));
|
|
894
|
+
for (const section of tabEdit.newSections ?? [])
|
|
895
|
+
insertUniqueAt(order, layoutSectionKey(section), 'end');
|
|
896
|
+
for (const [sectionKey, sectionEdit] of Object.entries(tabEdit.systemSectionEdits ?? {})) {
|
|
897
|
+
if (sectionEdit.deleted !== true)
|
|
898
|
+
insertUniqueAt(order, sectionKey, 'end');
|
|
899
|
+
}
|
|
900
|
+
return order;
|
|
901
|
+
}
|
|
902
|
+
ensureHeaderFieldsOrder() {
|
|
903
|
+
this._headerEdits.headerFieldsOrder = normalizeHeaderFieldsOrder({
|
|
904
|
+
...this._headerEdits,
|
|
905
|
+
headerFieldsOrder: this._headerEdits.headerFieldsOrder ?? [],
|
|
906
|
+
});
|
|
907
|
+
return this._headerEdits.headerFieldsOrder;
|
|
908
|
+
}
|
|
909
|
+
headerOrderFieldIsUsed(rqlName) {
|
|
910
|
+
return (this._headerEdits.newTitleField === rqlName ||
|
|
911
|
+
this._headerEdits.newDescriptionField === rqlName ||
|
|
912
|
+
(this._headerEdits.newFields ?? []).some((field) => field.rqlName === rqlName) ||
|
|
913
|
+
Object.values(this._headerEdits.systemFieldEdits ?? {}).some((edit) => edit.newRqlField === rqlName));
|
|
914
|
+
}
|
|
915
|
+
removeHeaderOrderFieldIfUnused(field) {
|
|
916
|
+
const rqlName = typeof field === 'string' ? field : field?.rqlName;
|
|
917
|
+
if (field != null && typeof field !== 'string' && field.key !== rqlName) {
|
|
918
|
+
removeKeyFromOrder(this._headerEdits.headerFieldsOrder, field.key);
|
|
919
|
+
}
|
|
920
|
+
if (rqlName == null || this.headerOrderFieldIsUsed(rqlName))
|
|
921
|
+
return;
|
|
922
|
+
removeKeyFromOrder(this._headerEdits.headerFieldsOrder, rqlName);
|
|
923
|
+
}
|
|
924
|
+
serializeFieldForMutation(field, fallbackSectionKey, options, fieldSection) {
|
|
925
|
+
const resolved = this._resolveField(field);
|
|
926
|
+
this.assertFieldBelongsToLayout(resolved);
|
|
927
|
+
this.assignFieldSectionForMutation(resolved, fallbackSectionKey, fieldSection);
|
|
928
|
+
return toSerializedSectionField(resolved.getApiName(), options);
|
|
929
|
+
}
|
|
930
|
+
normalizeSectionFieldForMutation(section, sectionKey, entry) {
|
|
931
|
+
if (isField(entry) || typeof entry === 'string') {
|
|
932
|
+
const field = this._resolveField(entry);
|
|
933
|
+
this.assertFieldBelongsToLayout(field);
|
|
934
|
+
assignSectionForLayout(field, section);
|
|
935
|
+
return toSerializedSectionField(field.getApiName());
|
|
936
|
+
}
|
|
937
|
+
if (isFieldRef(entry)) {
|
|
938
|
+
const field = this._resolveField(entry.field);
|
|
939
|
+
this.assertFieldBelongsToLayout(field);
|
|
940
|
+
assignSectionForLayout(field, section);
|
|
941
|
+
return toSerializedSectionField(field.getApiName(), entry);
|
|
942
|
+
}
|
|
943
|
+
throw new Error(`CustomObjectPageLayout fields_section "${sectionKey}" has an invalid field entry; ` +
|
|
944
|
+
'pass a Field instance or { field }.');
|
|
945
|
+
}
|
|
946
|
+
normalizeSectionForMutation(input) {
|
|
947
|
+
if (input.type !== 'fields_section')
|
|
948
|
+
return { ...input };
|
|
949
|
+
this.assertFieldSectionBelongsToLayout(input.section);
|
|
950
|
+
const sectionKey = input.key ?? input.section.getSectionId();
|
|
951
|
+
const name = input.name ?? input.section.getName();
|
|
952
|
+
const normalized = copySectionOptions({
|
|
953
|
+
name,
|
|
954
|
+
type: 'fields_section',
|
|
955
|
+
fields: input.fields.map((field) => this.normalizeSectionFieldForMutation(input.section, sectionKey, field)),
|
|
956
|
+
}, input);
|
|
957
|
+
if (input.layout != null)
|
|
958
|
+
normalized.layout = input.layout;
|
|
959
|
+
return attachLayoutSectionKey(normalized, sectionKey);
|
|
960
|
+
}
|
|
961
|
+
normalizeTabForMutation(tab) {
|
|
962
|
+
if (tab.type === 'custom_tab')
|
|
963
|
+
return { ...tab };
|
|
964
|
+
return {
|
|
965
|
+
...tab,
|
|
966
|
+
sections: tab.sections.map((section) => this.normalizeSectionForMutation(section)),
|
|
967
|
+
};
|
|
968
|
+
}
|
|
969
|
+
assignFieldSectionForMutation(field, fallbackSectionKey, fieldSection) {
|
|
970
|
+
if (field.isStandard())
|
|
971
|
+
return;
|
|
972
|
+
const rawFieldSection = fieldSection;
|
|
973
|
+
if (rawFieldSection != null) {
|
|
974
|
+
if (typeof rawFieldSection === 'string') {
|
|
975
|
+
throw new TypeError(`CustomObjectPageLayout section must be a CustomObjectFieldSection object; ` +
|
|
976
|
+
`received raw section id "${rawFieldSection}". Load/include the existing field section first.`);
|
|
977
|
+
}
|
|
978
|
+
if (rawFieldSection.getModelApiName() !== this._customObjectApiName) {
|
|
979
|
+
throw new Error(`CustomObjectPageLayout field section "${rawFieldSection.getSectionId()}" belongs to ` +
|
|
980
|
+
`"${rawFieldSection.getModelApiName()}", but the layout belongs to "${this._customObjectApiName}".`);
|
|
981
|
+
}
|
|
982
|
+
field._assignSection(rawFieldSection);
|
|
983
|
+
return;
|
|
984
|
+
}
|
|
985
|
+
if (field.getSectionId() == null) {
|
|
986
|
+
throw new Error(`CustomObjectPageLayout field "${field.getApiName()}" is missing field-section metadata. ` +
|
|
987
|
+
`Construct the field with a CustomObjectFieldSection or pass section when adding it to ` +
|
|
988
|
+
`section "${fallbackSectionKey}".`);
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
assertFieldBelongsToLayout(field) {
|
|
992
|
+
if (field.getCustomObjectApiName() !== this._customObjectApiName) {
|
|
993
|
+
throw new Error(`CustomObjectPageLayout references field "${field.getApiName()}" from ` +
|
|
994
|
+
`"${field.getCustomObjectApiName()}", but the layout belongs to "${this._customObjectApiName}".`);
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
_resolveField(field) {
|
|
998
|
+
return this._customObject._resolveField(field);
|
|
999
|
+
}
|
|
1000
|
+
fieldApiName(field) {
|
|
1001
|
+
if (typeof field !== 'string')
|
|
1002
|
+
return field.getApiName();
|
|
1003
|
+
if (field.endsWith('__c'))
|
|
1004
|
+
return field;
|
|
1005
|
+
return this._customObject.standardField(field).getApiName();
|
|
1006
|
+
}
|
|
1007
|
+
assertFieldSectionBelongsToLayout(section) {
|
|
1008
|
+
if (section.getModelApiName() !== this._customObjectApiName) {
|
|
1009
|
+
throw new Error(`CustomObjectPageLayout field section "${section.getSectionId()}" belongs to ` +
|
|
1010
|
+
`"${section.getModelApiName()}", but the layout belongs to "${this._customObjectApiName}".`);
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
rememberFieldSectionLayoutSection(section, tabKey, sectionKey) {
|
|
1014
|
+
if (sectionKey == null)
|
|
1015
|
+
return;
|
|
1016
|
+
addFieldSectionLayoutSection(this._fieldSectionLayoutSections, section.getSectionId(), {
|
|
1017
|
+
tabKey,
|
|
1018
|
+
sectionKey,
|
|
1019
|
+
});
|
|
1020
|
+
}
|
|
1021
|
+
layoutSectionKeyForFieldSection(tabKey, section) {
|
|
1022
|
+
const entries = this._fieldSectionLayoutSections.get(section.getSectionId()) ?? [];
|
|
1023
|
+
const matches = tabKey == null ? entries : entries.filter((entry) => entry.tabKey === tabKey);
|
|
1024
|
+
const sectionKeys = [...new Set(matches.map((entry) => entry.sectionKey))];
|
|
1025
|
+
if (sectionKeys.length === 0)
|
|
1026
|
+
return undefined;
|
|
1027
|
+
if (sectionKeys.length === 1)
|
|
1028
|
+
return sectionKeys[0];
|
|
1029
|
+
const scope = tabKey == null ? '' : ` in tab "${tabKey}"`;
|
|
1030
|
+
throw new Error(`CustomObjectPageLayout field section "${section.getSectionId()}" maps to multiple layout sections${scope}: ` +
|
|
1031
|
+
`${sectionKeys.join(', ')}. Pass sectionKey to choose one.`);
|
|
1032
|
+
}
|
|
1033
|
+
requireOneFieldContainer(tabKey, sectionKey, fallbackFieldSection) {
|
|
1034
|
+
const containers = this.findFieldContainers({
|
|
1035
|
+
tabKey,
|
|
1036
|
+
sectionKey,
|
|
1037
|
+
systemSectionOnly: false,
|
|
1038
|
+
});
|
|
1039
|
+
if (containers.length === 0) {
|
|
1040
|
+
if (sectionKey != null && fallbackFieldSection != null) {
|
|
1041
|
+
const unkeyedContainers = this.findFieldContainers({
|
|
1042
|
+
tabKey,
|
|
1043
|
+
sectionKey: undefined,
|
|
1044
|
+
systemSectionOnly: false,
|
|
1045
|
+
}).filter((container) => container.section != null && container.sectionKey == null);
|
|
1046
|
+
if (unkeyedContainers.length === 1) {
|
|
1047
|
+
if (fallbackFieldSection.getModelApiName() !== this._customObjectApiName) {
|
|
1048
|
+
throw new Error(`CustomObjectPageLayout field section "${fallbackFieldSection.getSectionId()}" belongs to ` +
|
|
1049
|
+
`"${fallbackFieldSection.getModelApiName()}", but the layout belongs to "${this._customObjectApiName}".`);
|
|
1050
|
+
}
|
|
1051
|
+
const container = unkeyedContainers[0];
|
|
1052
|
+
attachLayoutSectionKey(container.section, sectionKey);
|
|
1053
|
+
container.sectionKey = sectionKey;
|
|
1054
|
+
container.label = `${container.tabKey}.${container.sectionKey}`;
|
|
1055
|
+
return container;
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1058
|
+
const scope = sectionKey == null ? 'a field section' : (`section "${tabKey != null ? `${tabKey}.` : ''}${sectionKey}"`);
|
|
1059
|
+
throw new Error(`CustomObjectPageLayout could not find ${scope}.`);
|
|
1060
|
+
}
|
|
1061
|
+
if (containers.length > 1) {
|
|
1062
|
+
if (sectionKey == null) {
|
|
1063
|
+
throw new Error(`CustomObjectPageLayout matched multiple sections: ` +
|
|
1064
|
+
`${containers.map((container) => container.label).join(', ')}. Pass section to choose one.`);
|
|
1065
|
+
}
|
|
1066
|
+
throw new Error(`CustomObjectPageLayout section "${sectionKey}" matched multiple sections: ` +
|
|
1067
|
+
`${containers.map((container) => container.label).join(', ')}. Pass tabKey to choose one.`);
|
|
1068
|
+
}
|
|
1069
|
+
return containers[0];
|
|
1070
|
+
}
|
|
1071
|
+
findFieldContainers(filter) {
|
|
1072
|
+
const containers = [];
|
|
1073
|
+
if (!filter.systemSectionOnly) {
|
|
1074
|
+
for (const tab of this._tabEdits.newTabs ?? []) {
|
|
1075
|
+
if (!isTabWithSections(tab))
|
|
1076
|
+
continue;
|
|
1077
|
+
if (filter.tabKey != null && tab.key !== filter.tabKey)
|
|
1078
|
+
continue;
|
|
1079
|
+
for (const [index, section] of tab.sections.entries()) {
|
|
1080
|
+
if (!isSerializedFieldsSection(section))
|
|
1081
|
+
continue;
|
|
1082
|
+
const sectionKey = layoutSectionKey(section);
|
|
1083
|
+
if (filter.sectionKey != null && !layoutSectionMatches(section, filter.sectionKey))
|
|
1084
|
+
continue;
|
|
1085
|
+
const label = sectionKey == null ? `${tab.key}.sections[${index}]` : `${tab.key}.${sectionKey}`;
|
|
1086
|
+
containers.push({
|
|
1087
|
+
tabKey: tab.key,
|
|
1088
|
+
sectionKey,
|
|
1089
|
+
section,
|
|
1090
|
+
fields: ensureArrayProperty(section, 'fields', `newTabs.${label}.fields`),
|
|
1091
|
+
label,
|
|
1092
|
+
});
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
for (const [tabKey, tabEdit] of Object.entries(this._tabEdits.systemTabEdits ?? {})) {
|
|
1096
|
+
if (filter.tabKey != null && tabKey !== filter.tabKey)
|
|
1097
|
+
continue;
|
|
1098
|
+
for (const [index, section] of (tabEdit.newSections ?? []).entries()) {
|
|
1099
|
+
if (!isSerializedFieldsSection(section))
|
|
1100
|
+
continue;
|
|
1101
|
+
const sectionKey = layoutSectionKey(section);
|
|
1102
|
+
if (filter.sectionKey != null && !layoutSectionMatches(section, filter.sectionKey))
|
|
1103
|
+
continue;
|
|
1104
|
+
const label = sectionKey == null ? `${tabKey}.newSections[${index}]` : `${tabKey}.${sectionKey}`;
|
|
1105
|
+
containers.push({
|
|
1106
|
+
tabKey,
|
|
1107
|
+
sectionKey,
|
|
1108
|
+
section,
|
|
1109
|
+
fields: ensureArrayProperty(section, 'fields', `systemTabEdits.${label}.fields`),
|
|
1110
|
+
label,
|
|
1111
|
+
});
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
}
|
|
1115
|
+
for (const [tabKey, tabEdit] of Object.entries(this._tabEdits.systemTabEdits ?? {})) {
|
|
1116
|
+
if (filter.tabKey != null && tabKey !== filter.tabKey)
|
|
1117
|
+
continue;
|
|
1118
|
+
for (const [sectionKey, sectionEdit] of Object.entries(tabEdit.systemSectionEdits ?? {})) {
|
|
1119
|
+
if (filter.sectionKey != null && sectionKey !== filter.sectionKey)
|
|
1120
|
+
continue;
|
|
1121
|
+
const fields = sectionEdit['newFields'];
|
|
1122
|
+
if (fields == null)
|
|
1123
|
+
continue;
|
|
1124
|
+
if (!Array.isArray(fields)) {
|
|
1125
|
+
throw new Error(`systemTabEdits.${tabKey}.systemSectionEdits.${sectionKey}.newFields must be an array.`);
|
|
1126
|
+
}
|
|
1127
|
+
containers.push({
|
|
1128
|
+
tabKey,
|
|
1129
|
+
sectionKey,
|
|
1130
|
+
fields: fields,
|
|
1131
|
+
label: `${tabKey}.${sectionKey}`,
|
|
1132
|
+
});
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
return containers;
|
|
1136
|
+
}
|
|
1137
|
+
ensureSystemSectionFieldContainer(tabKey, sectionKey) {
|
|
1138
|
+
if (tabKey == null) {
|
|
1139
|
+
throw new Error('CustomObjectPageLayout addField with systemSection: true requires tabKey.');
|
|
1140
|
+
}
|
|
1141
|
+
if (sectionKey == null) {
|
|
1142
|
+
throw new Error('CustomObjectPageLayout addField with systemSection: true requires sectionKey.');
|
|
1143
|
+
}
|
|
1144
|
+
const sectionEdit = this.ensureSystemSectionEdit(tabKey, sectionKey);
|
|
1145
|
+
if (sectionEdit.deleted === true) {
|
|
1146
|
+
throw new Error(`CustomObjectPageLayout system section "${tabKey}.${sectionKey}" is marked deleted.`);
|
|
1147
|
+
}
|
|
1148
|
+
return {
|
|
1149
|
+
tabKey,
|
|
1150
|
+
sectionKey,
|
|
1151
|
+
fields: ensureArrayProperty(sectionEdit, 'newFields', `systemTabEdits.${tabKey}.systemSectionEdits.${sectionKey}.newFields`),
|
|
1152
|
+
label: `${tabKey}.${sectionKey}`,
|
|
1153
|
+
};
|
|
1154
|
+
}
|
|
1155
|
+
ensureSystemTabEdit(tabKey) {
|
|
1156
|
+
const systemTabEdits = ensureRecordProperty(this._tabEdits, 'systemTabEdits', 'tab_edits.systemTabEdits');
|
|
1157
|
+
return ensureRecordProperty(systemTabEdits, tabKey, `systemTabEdits.${tabKey}`);
|
|
1158
|
+
}
|
|
1159
|
+
ensureSystemSectionEdit(tabKey, sectionKey) {
|
|
1160
|
+
const tabEdit = this.ensureSystemTabEdit(tabKey);
|
|
1161
|
+
const systemSectionEdits = ensureRecordProperty(tabEdit, 'systemSectionEdits', `systemTabEdits.${tabKey}.systemSectionEdits`);
|
|
1162
|
+
return ensureRecordProperty(systemSectionEdits, sectionKey, `systemTabEdits.${tabKey}.systemSectionEdits.${sectionKey}`);
|
|
1163
|
+
}
|
|
1164
|
+
findNewTabWithSections(tabKey) {
|
|
1165
|
+
let found;
|
|
1166
|
+
for (const tab of this._tabEdits.newTabs ?? []) {
|
|
1167
|
+
if (tab.key !== tabKey)
|
|
1168
|
+
continue;
|
|
1169
|
+
if (!isTabWithSections(tab)) {
|
|
1170
|
+
throw new Error(`CustomObjectPageLayout tab "${tabKey}" is a custom_tab and cannot contain sections.`);
|
|
1171
|
+
}
|
|
1172
|
+
if (found != null) {
|
|
1173
|
+
throw new Error(`CustomObjectPageLayout contains multiple new tabs with key "${tabKey}".`);
|
|
1174
|
+
}
|
|
1175
|
+
found = tab;
|
|
1176
|
+
}
|
|
1177
|
+
return found;
|
|
1178
|
+
}
|
|
1179
|
+
assertSectionKeyAvailable(sections, sectionKey, tabKey, allowDuplicate) {
|
|
1180
|
+
if (allowDuplicate === true)
|
|
1181
|
+
return;
|
|
1182
|
+
if (sectionKey != null && sections.some((section) => layoutSectionMatches(section, sectionKey))) {
|
|
1183
|
+
throw new Error(`CustomObjectPageLayout tab "${tabKey}" already contains section "${sectionKey}".`);
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1186
|
+
normalizeHeaderFieldForMutation(field, options) {
|
|
1187
|
+
const source = isField(field) ? undefined : field;
|
|
1188
|
+
const rqlName = isField(field) ? field.getApiName() : field.rqlName;
|
|
1189
|
+
if (isField(field))
|
|
1190
|
+
this.assertFieldBelongsToLayout(field);
|
|
1191
|
+
if (!rqlName)
|
|
1192
|
+
throw new Error('CustomObjectPageLayout header field rqlName cannot be empty.');
|
|
1193
|
+
const key = options.key ?? source?.key ?? (isField(field) ? field.getApiName() : undefined);
|
|
1194
|
+
if (!key)
|
|
1195
|
+
throw new Error('CustomObjectPageLayout header field key cannot be empty.');
|
|
1196
|
+
const normalized = { rqlName, key };
|
|
1197
|
+
const canBeDeleted = options.canBeDeleted ?? source?.canBeDeleted;
|
|
1198
|
+
const canBeChanged = options.canBeChanged ?? source?.canBeChanged;
|
|
1199
|
+
const canBeMoved = options.canBeMoved ?? source?.canBeMoved;
|
|
1200
|
+
if (canBeDeleted != null)
|
|
1201
|
+
normalized.canBeDeleted = canBeDeleted;
|
|
1202
|
+
if (canBeChanged != null)
|
|
1203
|
+
normalized.canBeChanged = canBeChanged;
|
|
1204
|
+
if (canBeMoved != null)
|
|
1205
|
+
normalized.canBeMoved = canBeMoved;
|
|
1206
|
+
return normalized;
|
|
1207
|
+
}
|
|
1208
|
+
headerFieldApiName(field) {
|
|
1209
|
+
if (typeof field === 'string')
|
|
1210
|
+
return this.fieldApiName(field);
|
|
1211
|
+
this.assertFieldBelongsToLayout(field);
|
|
1212
|
+
return field.getApiName();
|
|
1213
|
+
}
|
|
1214
|
+
removeSectionVisibility(sectionKey) {
|
|
1215
|
+
if (this._visibilityConditions.sections != null) {
|
|
1216
|
+
delete this._visibilityConditions.sections[sectionKey];
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
removeTabVisibility(tabKey) {
|
|
1220
|
+
if (this._visibilityConditions.tabs != null) {
|
|
1221
|
+
delete this._visibilityConditions.tabs[tabKey];
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
/**
|
|
1225
|
+
* Serializes this layout to the wire format consumed by the manifest install endpoint.
|
|
1226
|
+
*
|
|
1227
|
+
* @returns A plain object with `type: 'CUSTOM_OBJECT_PAGE_LAYOUT'`.
|
|
1228
|
+
*/
|
|
1229
|
+
toDict() {
|
|
1230
|
+
const tabEdits = cloneJson(this._tabEdits);
|
|
1231
|
+
stripMovementOptions(tabEdits);
|
|
1232
|
+
const d = {
|
|
1233
|
+
type: CustomObjectPageLayout.componentType,
|
|
1234
|
+
layout_id: this._layoutId,
|
|
1235
|
+
api_name: this._apiName,
|
|
1236
|
+
object_rql_name: this._customObjectApiName,
|
|
1237
|
+
name: this._name,
|
|
1238
|
+
// Packaged layouts are never system-created (backend invariant).
|
|
1239
|
+
system_created: false,
|
|
1240
|
+
tab_edits: tabEdits,
|
|
1241
|
+
header_edits: this._headerEdits,
|
|
1242
|
+
visibility_conditions: this._visibilityConditions,
|
|
1243
|
+
blueprint_key: this._blueprintKey ?? this._customObjectApiName,
|
|
1244
|
+
};
|
|
1245
|
+
return d;
|
|
1246
|
+
}
|
|
1247
|
+
/**
|
|
1248
|
+
* Creates a simple single-tab "Details" layout with a single "General" section.
|
|
1249
|
+
*
|
|
1250
|
+
* Use this factory when you want a straightforward layout without customizing
|
|
1251
|
+
* tabs or sections. Always uses `apiName: 'default'`.
|
|
1252
|
+
*
|
|
1253
|
+
* @param customObject - The custom object to create the layout for.
|
|
1254
|
+
* @param props - Optional. Pass `section` and `fields` to populate the General section.
|
|
1255
|
+
* @returns A new `CustomObjectPageLayout` registered with the manifest.
|
|
1256
|
+
*
|
|
1257
|
+
* @example
|
|
1258
|
+
* ```ts
|
|
1259
|
+
* CustomObjectPageLayout.basic(memberObj, {
|
|
1260
|
+
* section: profileSection,
|
|
1261
|
+
* fields: [memberFirstName, memberEmail, memberStatusField],
|
|
1262
|
+
* });
|
|
1263
|
+
* ```
|
|
1264
|
+
*/
|
|
1265
|
+
static basic(customObject, props = {}) {
|
|
1266
|
+
const coApiName = customObject.getApiName();
|
|
1267
|
+
const coName = customObject.getName();
|
|
1268
|
+
const fields = (props.fields ?? []).map((field) => customObject._resolveField(field));
|
|
1269
|
+
const generalSection = props.section ??
|
|
1270
|
+
(() => {
|
|
1271
|
+
const alreadySectionedField = fields.find((field) => field.getSectionId() != null);
|
|
1272
|
+
if (alreadySectionedField != null) {
|
|
1273
|
+
throw new Error(`CustomObjectPageLayout.basic field "${alreadySectionedField.getApiName()}" already belongs to ` +
|
|
1274
|
+
`field section "${alreadySectionedField.getSectionId()}". Pass that CustomObjectFieldSection ` +
|
|
1275
|
+
'as section so basic() does not reassign the field.');
|
|
1276
|
+
}
|
|
1277
|
+
const sectionPrefix = coApiName.replace(/__c$/, '').replace(/[^a-zA-Z0-9]+/g, '_');
|
|
1278
|
+
return new CustomObjectFieldSection(customObject, {
|
|
1279
|
+
sectionId: `sec_${sectionPrefix}_general`,
|
|
1280
|
+
name: 'General',
|
|
1281
|
+
});
|
|
1282
|
+
})();
|
|
1283
|
+
assertSectionBelongsTo(customObject, generalSection);
|
|
1284
|
+
for (const field of fields) {
|
|
1285
|
+
const fieldSectionId = field.getSectionId();
|
|
1286
|
+
if (fieldSectionId != null && fieldSectionId !== generalSection.getSectionId()) {
|
|
1287
|
+
throw new Error(`CustomObjectPageLayout.basic field "${field.getApiName()}" belongs to field section ` +
|
|
1288
|
+
`"${fieldSectionId}", but basic() was given section "${generalSection.getSectionId()}".`);
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
return new CustomObjectPageLayout(customObject, {
|
|
1292
|
+
apiName: 'default',
|
|
1293
|
+
name: `${coName} Layout`,
|
|
1294
|
+
tabEdits: {
|
|
1295
|
+
newTabs: [
|
|
1296
|
+
{
|
|
1297
|
+
key: 'details',
|
|
1298
|
+
name: 'Details',
|
|
1299
|
+
type: 'tab_with_sections',
|
|
1300
|
+
sections: [
|
|
1301
|
+
{
|
|
1302
|
+
name: 'General',
|
|
1303
|
+
type: 'fields_section',
|
|
1304
|
+
section: generalSection,
|
|
1305
|
+
fields,
|
|
1306
|
+
},
|
|
1307
|
+
],
|
|
1308
|
+
},
|
|
1309
|
+
],
|
|
1310
|
+
systemTabEdits: {},
|
|
1311
|
+
tabsOrder: ['details'],
|
|
1312
|
+
},
|
|
1313
|
+
headerEdits: {},
|
|
1314
|
+
visibilityConditions: {},
|
|
1315
|
+
});
|
|
1316
|
+
}
|
|
1317
|
+
}
|
|
1318
|
+
CustomObjectPageLayout.componentType = 'CUSTOM_OBJECT_PAGE_LAYOUT';
|
|
1319
|
+
//# sourceMappingURL=custom-object-page-layout.mjs.map
|