@sitecoreai-labs/sitecoreai-cli 0.0.4
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/AGENTS.md +67 -0
- package/LICENSE +21 -0
- package/README.md +357 -0
- package/bin/sitecoreai-cli +3 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +358 -0
- package/dist/commands/config.d.ts +3 -0
- package/dist/commands/config.d.ts.map +1 -0
- package/dist/commands/config.js +27 -0
- package/dist/commands/deploy/deployments.d.ts +3 -0
- package/dist/commands/deploy/deployments.d.ts.map +1 -0
- package/dist/commands/deploy/deployments.js +58 -0
- package/dist/commands/deploy/editing-host.d.ts +3 -0
- package/dist/commands/deploy/editing-host.d.ts.map +1 -0
- package/dist/commands/deploy/editing-host.js +49 -0
- package/dist/commands/deploy/environments/deployments.d.ts +3 -0
- package/dist/commands/deploy/environments/deployments.d.ts.map +1 -0
- package/dist/commands/deploy/environments/deployments.js +28 -0
- package/dist/commands/deploy/environments/index.d.ts +3 -0
- package/dist/commands/deploy/environments/index.d.ts.map +1 -0
- package/dist/commands/deploy/environments/index.js +29 -0
- package/dist/commands/deploy/environments/mutations.d.ts +9 -0
- package/dist/commands/deploy/environments/mutations.d.ts.map +1 -0
- package/dist/commands/deploy/environments/mutations.js +103 -0
- package/dist/commands/deploy/environments/queries.d.ts +7 -0
- package/dist/commands/deploy/environments/queries.d.ts.map +1 -0
- package/dist/commands/deploy/environments/queries.js +56 -0
- package/dist/commands/deploy/environments/variables.d.ts +3 -0
- package/dist/commands/deploy/environments/variables.d.ts.map +1 -0
- package/dist/commands/deploy/environments/variables.js +40 -0
- package/dist/commands/deploy/environments.d.ts +2 -0
- package/dist/commands/deploy/environments.d.ts.map +1 -0
- package/dist/commands/deploy/environments.js +17 -0
- package/dist/commands/deploy/index.d.ts +3 -0
- package/dist/commands/deploy/index.d.ts.map +1 -0
- package/dist/commands/deploy/index.js +26 -0
- package/dist/commands/deploy/logs.d.ts +3 -0
- package/dist/commands/deploy/logs.d.ts.map +1 -0
- package/dist/commands/deploy/logs.js +39 -0
- package/dist/commands/deploy/organizations.d.ts +3 -0
- package/dist/commands/deploy/organizations.d.ts.map +1 -0
- package/dist/commands/deploy/organizations.js +29 -0
- package/dist/commands/deploy/projects.d.ts +3 -0
- package/dist/commands/deploy/projects.d.ts.map +1 -0
- package/dist/commands/deploy/projects.js +74 -0
- package/dist/commands/deploy/shared.d.ts +3 -0
- package/dist/commands/deploy/shared.d.ts.map +1 -0
- package/dist/commands/deploy/shared.js +12 -0
- package/dist/commands/deploy/site.d.ts +10 -0
- package/dist/commands/deploy/site.d.ts.map +1 -0
- package/dist/commands/deploy/site.js +36 -0
- package/dist/commands/deploy/source-control.d.ts +3 -0
- package/dist/commands/deploy/source-control.d.ts.map +1 -0
- package/dist/commands/deploy/source-control.js +89 -0
- package/dist/commands/deploy.d.ts +2 -0
- package/dist/commands/deploy.d.ts.map +1 -0
- package/dist/commands/deploy.js +5 -0
- package/dist/commands/history.d.ts +3 -0
- package/dist/commands/history.d.ts.map +1 -0
- package/dist/commands/history.js +88 -0
- package/dist/commands/init.d.ts +3 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +32 -0
- package/dist/commands/login.d.ts +3 -0
- package/dist/commands/login.d.ts.map +1 -0
- package/dist/commands/login.js +21 -0
- package/dist/commands/logout.d.ts +3 -0
- package/dist/commands/logout.d.ts.map +1 -0
- package/dist/commands/logout.js +18 -0
- package/dist/commands/recipe/index.d.ts +3 -0
- package/dist/commands/recipe/index.d.ts.map +1 -0
- package/dist/commands/recipe/index.js +158 -0
- package/dist/commands/serialization/index.d.ts +3 -0
- package/dist/commands/serialization/index.d.ts.map +1 -0
- package/dist/commands/serialization/index.js +89 -0
- package/dist/commands/serialization/package.d.ts +3 -0
- package/dist/commands/serialization/package.d.ts.map +1 -0
- package/dist/commands/serialization/package.js +36 -0
- package/dist/commands/shared.d.ts +21 -0
- package/dist/commands/shared.d.ts.map +1 -0
- package/dist/commands/shared.js +82 -0
- package/dist/commands/shell.d.ts +10 -0
- package/dist/commands/shell.d.ts.map +1 -0
- package/dist/commands/shell.js +155 -0
- package/dist/commands/status.d.ts +3 -0
- package/dist/commands/status.d.ts.map +1 -0
- package/dist/commands/status.js +15 -0
- package/dist/commands/telemetry.d.ts +3 -0
- package/dist/commands/telemetry.d.ts.map +1 -0
- package/dist/commands/telemetry.js +28 -0
- package/dist/config/env-overrides.d.ts +4 -0
- package/dist/config/env-overrides.d.ts.map +1 -0
- package/dist/config/env-overrides.js +199 -0
- package/dist/config/index.d.ts +5 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +13 -0
- package/dist/config/modules.d.ts +4 -0
- package/dist/config/modules.d.ts.map +1 -0
- package/dist/config/modules.js +152 -0
- package/dist/config/paths.d.ts +2 -0
- package/dist/config/paths.d.ts.map +1 -0
- package/dist/config/paths.js +39 -0
- package/dist/config/root-config.d.ts +10 -0
- package/dist/config/root-config.d.ts.map +1 -0
- package/dist/config/root-config.js +159 -0
- package/dist/config/schema.json +278 -0
- package/dist/config/serialization-module.schema.json +127 -0
- package/dist/config/telemetry.schema.json +21 -0
- package/dist/config/types.d.ts +245 -0
- package/dist/config/types.d.ts.map +1 -0
- package/dist/config/types.js +19 -0
- package/dist/config/validation.d.ts +10 -0
- package/dist/config/validation.d.ts.map +1 -0
- package/dist/config/validation.js +43 -0
- package/dist/deploy/api/common/headers.d.ts +2 -0
- package/dist/deploy/api/common/headers.d.ts.map +1 -0
- package/dist/deploy/api/common/headers.js +10 -0
- package/dist/deploy/api/common/index.d.ts +4 -0
- package/dist/deploy/api/common/index.d.ts.map +1 -0
- package/dist/deploy/api/common/index.js +19 -0
- package/dist/deploy/api/common/request.d.ts +9 -0
- package/dist/deploy/api/common/request.d.ts.map +1 -0
- package/dist/deploy/api/common/request.js +253 -0
- package/dist/deploy/api/common/types.d.ts +44 -0
- package/dist/deploy/api/common/types.d.ts.map +1 -0
- package/dist/deploy/api/common/types.js +5 -0
- package/dist/deploy/api/common.d.ts +2 -0
- package/dist/deploy/api/common.d.ts.map +1 -0
- package/dist/deploy/api/common.js +17 -0
- package/dist/deploy/api/deployment-logs.d.ts +2 -0
- package/dist/deploy/api/deployment-logs.d.ts.map +1 -0
- package/dist/deploy/api/deployment-logs.js +23 -0
- package/dist/deploy/api/deployments.d.ts +9 -0
- package/dist/deploy/api/deployments.d.ts.map +1 -0
- package/dist/deploy/api/deployments.js +61 -0
- package/dist/deploy/api/environments.d.ts +21 -0
- package/dist/deploy/api/environments.d.ts.map +1 -0
- package/dist/deploy/api/environments.js +67 -0
- package/dist/deploy/api/index.d.ts +9 -0
- package/dist/deploy/api/index.d.ts.map +1 -0
- package/dist/deploy/api/index.js +24 -0
- package/dist/deploy/api/logs.d.ts +8 -0
- package/dist/deploy/api/logs.d.ts.map +1 -0
- package/dist/deploy/api/logs.js +29 -0
- package/dist/deploy/api/organizations.d.ts +6 -0
- package/dist/deploy/api/organizations.d.ts.map +1 -0
- package/dist/deploy/api/organizations.js +18 -0
- package/dist/deploy/api/projects.d.ts +13 -0
- package/dist/deploy/api/projects.d.ts.map +1 -0
- package/dist/deploy/api/projects.js +42 -0
- package/dist/deploy/api/source-control.d.ts +15 -0
- package/dist/deploy/api/source-control.d.ts.map +1 -0
- package/dist/deploy/api/source-control.js +71 -0
- package/dist/deploy/api.d.ts +2 -0
- package/dist/deploy/api.d.ts.map +1 -0
- package/dist/deploy/api.js +17 -0
- package/dist/deploy/tasks/deployment-result.d.ts +6 -0
- package/dist/deploy/tasks/deployment-result.d.ts.map +1 -0
- package/dist/deploy/tasks/deployment-result.js +36 -0
- package/dist/deploy/tasks/deployments.d.ts +10 -0
- package/dist/deploy/tasks/deployments.d.ts.map +1 -0
- package/dist/deploy/tasks/deployments.js +201 -0
- package/dist/deploy/tasks/editing-host.d.ts +28 -0
- package/dist/deploy/tasks/editing-host.d.ts.map +1 -0
- package/dist/deploy/tasks/editing-host.js +216 -0
- package/dist/deploy/tasks/environments.d.ts +20 -0
- package/dist/deploy/tasks/environments.d.ts.map +1 -0
- package/dist/deploy/tasks/environments.js +364 -0
- package/dist/deploy/tasks/index.d.ts +10 -0
- package/dist/deploy/tasks/index.d.ts.map +1 -0
- package/dist/deploy/tasks/index.js +25 -0
- package/dist/deploy/tasks/logs.d.ts +5 -0
- package/dist/deploy/tasks/logs.d.ts.map +1 -0
- package/dist/deploy/tasks/logs.js +56 -0
- package/dist/deploy/tasks/organizations.d.ts +6 -0
- package/dist/deploy/tasks/organizations.d.ts.map +1 -0
- package/dist/deploy/tasks/organizations.js +51 -0
- package/dist/deploy/tasks/projects.d.ts +11 -0
- package/dist/deploy/tasks/projects.d.ts.map +1 -0
- package/dist/deploy/tasks/projects.js +246 -0
- package/dist/deploy/tasks/shared.d.ts +63 -0
- package/dist/deploy/tasks/shared.d.ts.map +1 -0
- package/dist/deploy/tasks/shared.js +261 -0
- package/dist/deploy/tasks/site-bind.d.ts +21 -0
- package/dist/deploy/tasks/site-bind.d.ts.map +1 -0
- package/dist/deploy/tasks/site-bind.js +142 -0
- package/dist/deploy/tasks/site.d.ts +14 -0
- package/dist/deploy/tasks/site.d.ts.map +1 -0
- package/dist/deploy/tasks/site.js +29 -0
- package/dist/deploy/tasks/source-control.d.ts +14 -0
- package/dist/deploy/tasks/source-control.d.ts.map +1 -0
- package/dist/deploy/tasks/source-control.js +173 -0
- package/dist/deploy/tasks/types.d.ts +204 -0
- package/dist/deploy/tasks/types.d.ts.map +1 -0
- package/dist/deploy/tasks/types.js +7 -0
- package/dist/deploy/tasks.d.ts +3 -0
- package/dist/deploy/tasks.d.ts.map +1 -0
- package/dist/deploy/tasks.js +18 -0
- package/dist/recipe/api/auth.d.ts +9 -0
- package/dist/recipe/api/auth.d.ts.map +1 -0
- package/dist/recipe/api/auth.js +12 -0
- package/dist/recipe/api/authoring-client.d.ts +37 -0
- package/dist/recipe/api/authoring-client.d.ts.map +1 -0
- package/dist/recipe/api/authoring-client.js +495 -0
- package/dist/recipe/api/client.d.ts +99 -0
- package/dist/recipe/api/client.d.ts.map +1 -0
- package/dist/recipe/api/client.js +17 -0
- package/dist/recipe/api/graphql.d.ts +15 -0
- package/dist/recipe/api/graphql.d.ts.map +1 -0
- package/dist/recipe/api/graphql.js +38 -0
- package/dist/recipe/api/ref-encoding.d.ts +38 -0
- package/dist/recipe/api/ref-encoding.d.ts.map +1 -0
- package/dist/recipe/api/ref-encoding.js +160 -0
- package/dist/recipe/api/site-discovery.d.ts +49 -0
- package/dist/recipe/api/site-discovery.d.ts.map +1 -0
- package/dist/recipe/api/site-discovery.js +127 -0
- package/dist/recipe/api/sites-client.d.ts +48 -0
- package/dist/recipe/api/sites-client.d.ts.map +1 -0
- package/dist/recipe/api/sites-client.js +19 -0
- package/dist/recipe/cache.d.ts +36 -0
- package/dist/recipe/cache.d.ts.map +1 -0
- package/dist/recipe/cache.js +114 -0
- package/dist/recipe/compile/component-section.d.ts +46 -0
- package/dist/recipe/compile/component-section.d.ts.map +1 -0
- package/dist/recipe/compile/component-section.js +143 -0
- package/dist/recipe/compile/component-template.d.ts +34 -0
- package/dist/recipe/compile/component-template.d.ts.map +1 -0
- package/dist/recipe/compile/component-template.js +709 -0
- package/dist/recipe/compile/content-item.d.ts +31 -0
- package/dist/recipe/compile/content-item.d.ts.map +1 -0
- package/dist/recipe/compile/content-item.js +189 -0
- package/dist/recipe/compile/content-template.d.ts +18 -0
- package/dist/recipe/compile/content-template.d.ts.map +1 -0
- package/dist/recipe/compile/content-template.js +52 -0
- package/dist/recipe/compile/enumeration.d.ts +59 -0
- package/dist/recipe/compile/enumeration.d.ts.map +1 -0
- package/dist/recipe/compile/enumeration.js +236 -0
- package/dist/recipe/compile/page-design.d.ts +22 -0
- package/dist/recipe/compile/page-design.d.ts.map +1 -0
- package/dist/recipe/compile/page-design.js +93 -0
- package/dist/recipe/compile/parameters-template.d.ts +14 -0
- package/dist/recipe/compile/parameters-template.d.ts.map +1 -0
- package/dist/recipe/compile/parameters-template.js +92 -0
- package/dist/recipe/compile/partial-design.d.ts +18 -0
- package/dist/recipe/compile/partial-design.d.ts.map +1 -0
- package/dist/recipe/compile/partial-design.js +76 -0
- package/dist/recipe/compile/section-definition.d.ts +18 -0
- package/dist/recipe/compile/section-definition.d.ts.map +1 -0
- package/dist/recipe/compile/section-definition.js +26 -0
- package/dist/recipe/compile/shared.d.ts +442 -0
- package/dist/recipe/compile/shared.d.ts.map +1 -0
- package/dist/recipe/compile/shared.js +843 -0
- package/dist/recipe/compile/site-template.d.ts +52 -0
- package/dist/recipe/compile/site-template.d.ts.map +1 -0
- package/dist/recipe/compile/site-template.js +140 -0
- package/dist/recipe/compile/site.d.ts +44 -0
- package/dist/recipe/compile/site.d.ts.map +1 -0
- package/dist/recipe/compile/site.js +127 -0
- package/dist/recipe/compile.d.ts +93 -0
- package/dist/recipe/compile.d.ts.map +1 -0
- package/dist/recipe/compile.js +741 -0
- package/dist/recipe/execute.d.ts +119 -0
- package/dist/recipe/execute.d.ts.map +1 -0
- package/dist/recipe/execute.js +273 -0
- package/dist/recipe/guids.d.ts +400 -0
- package/dist/recipe/guids.d.ts.map +1 -0
- package/dist/recipe/guids.js +488 -0
- package/dist/recipe/index.d.ts +32 -0
- package/dist/recipe/index.d.ts.map +1 -0
- package/dist/recipe/index.js +156 -0
- package/dist/recipe/io.d.ts +21 -0
- package/dist/recipe/io.d.ts.map +1 -0
- package/dist/recipe/io.js +147 -0
- package/dist/recipe/ir/operations.d.ts +692 -0
- package/dist/recipe/ir/operations.d.ts.map +1 -0
- package/dist/recipe/ir/operations.js +347 -0
- package/dist/recipe/ir/sitecore-templates.d.ts +455 -0
- package/dist/recipe/ir/sitecore-templates.d.ts.map +1 -0
- package/dist/recipe/ir/sitecore-templates.js +465 -0
- package/dist/recipe/layout/emit.d.ts +101 -0
- package/dist/recipe/layout/emit.d.ts.map +1 -0
- package/dist/recipe/layout/emit.js +127 -0
- package/dist/recipe/layout/templates-mapping.d.ts +28 -0
- package/dist/recipe/layout/templates-mapping.d.ts.map +1 -0
- package/dist/recipe/layout/templates-mapping.js +29 -0
- package/dist/recipe/plan.d.ts +134 -0
- package/dist/recipe/plan.d.ts.map +1 -0
- package/dist/recipe/plan.js +565 -0
- package/dist/recipe/policy.d.ts +43 -0
- package/dist/recipe/policy.d.ts.map +1 -0
- package/dist/recipe/policy.js +75 -0
- package/dist/recipe/rollback.d.ts +72 -0
- package/dist/recipe/rollback.d.ts.map +1 -0
- package/dist/recipe/rollback.js +130 -0
- package/dist/recipe/schema/field-types.d.ts +72 -0
- package/dist/recipe/schema/field-types.d.ts.map +1 -0
- package/dist/recipe/schema/field-types.js +118 -0
- package/dist/recipe/schema/recipe.d.ts +1545 -0
- package/dist/recipe/schema/recipe.d.ts.map +1 -0
- package/dist/recipe/schema/recipe.js +1175 -0
- package/dist/recipe/schema/source-fields.d.ts +48 -0
- package/dist/recipe/schema/source-fields.d.ts.map +1 -0
- package/dist/recipe/schema/source-fields.js +79 -0
- package/dist/recipe/tasks/compile.d.ts +14 -0
- package/dist/recipe/tasks/compile.d.ts.map +1 -0
- package/dist/recipe/tasks/compile.js +89 -0
- package/dist/recipe/tasks/diff.d.ts +17 -0
- package/dist/recipe/tasks/diff.d.ts.map +1 -0
- package/dist/recipe/tasks/diff.js +6 -0
- package/dist/recipe/tasks/index.d.ts +9 -0
- package/dist/recipe/tasks/index.d.ts.map +1 -0
- package/dist/recipe/tasks/index.js +13 -0
- package/dist/recipe/tasks/placeholder-allow.d.ts +53 -0
- package/dist/recipe/tasks/placeholder-allow.d.ts.map +1 -0
- package/dist/recipe/tasks/placeholder-allow.js +218 -0
- package/dist/recipe/tasks/plan.d.ts +11 -0
- package/dist/recipe/tasks/plan.d.ts.map +1 -0
- package/dist/recipe/tasks/plan.js +72 -0
- package/dist/recipe/tasks/prune-defaults.d.ts +90 -0
- package/dist/recipe/tasks/prune-defaults.d.ts.map +1 -0
- package/dist/recipe/tasks/prune-defaults.js +184 -0
- package/dist/recipe/tasks/push.d.ts +18 -0
- package/dist/recipe/tasks/push.d.ts.map +1 -0
- package/dist/recipe/tasks/push.js +417 -0
- package/dist/recipe/tasks/shared.d.ts +152 -0
- package/dist/recipe/tasks/shared.d.ts.map +1 -0
- package/dist/recipe/tasks/shared.js +94 -0
- package/dist/recipe/validate.d.ts +103 -0
- package/dist/recipe/validate.d.ts.map +1 -0
- package/dist/recipe/validate.js +297 -0
- package/dist/serialization/commands.d.ts +48 -0
- package/dist/serialization/commands.d.ts.map +1 -0
- package/dist/serialization/commands.js +175 -0
- package/dist/serialization/compare.d.ts +29 -0
- package/dist/serialization/compare.d.ts.map +1 -0
- package/dist/serialization/compare.js +124 -0
- package/dist/serialization/field-filter.d.ts +7 -0
- package/dist/serialization/field-filter.d.ts.map +1 -0
- package/dist/serialization/field-filter.js +20 -0
- package/dist/serialization/filesystem-store/constants.d.ts +3 -0
- package/dist/serialization/filesystem-store/constants.d.ts.map +1 -0
- package/dist/serialization/filesystem-store/constants.js +5 -0
- package/dist/serialization/filesystem-store/index.d.ts +4 -0
- package/dist/serialization/filesystem-store/index.d.ts.map +1 -0
- package/dist/serialization/filesystem-store/index.js +15 -0
- package/dist/serialization/filesystem-store/items.d.ts +10 -0
- package/dist/serialization/filesystem-store/items.d.ts.map +1 -0
- package/dist/serialization/filesystem-store/items.js +64 -0
- package/dist/serialization/filesystem-store/roles.d.ts +6 -0
- package/dist/serialization/filesystem-store/roles.d.ts.map +1 -0
- package/dist/serialization/filesystem-store/roles.js +46 -0
- package/dist/serialization/filesystem-store/users.d.ts +6 -0
- package/dist/serialization/filesystem-store/users.d.ts.map +1 -0
- package/dist/serialization/filesystem-store/users.js +46 -0
- package/dist/serialization/filesystem-store/utils.d.ts +2 -0
- package/dist/serialization/filesystem-store/utils.d.ts.map +1 -0
- package/dist/serialization/filesystem-store/utils.js +17 -0
- package/dist/serialization/filesystem-store.d.ts +2 -0
- package/dist/serialization/filesystem-store.d.ts.map +1 -0
- package/dist/serialization/filesystem-store.js +17 -0
- package/dist/serialization/item-path.d.ts +32 -0
- package/dist/serialization/item-path.d.ts.map +1 -0
- package/dist/serialization/item-path.js +123 -0
- package/dist/serialization/path-provider.d.ts +12 -0
- package/dist/serialization/path-provider.d.ts.map +1 -0
- package/dist/serialization/path-provider.js +271 -0
- package/dist/serialization/signature.d.ts +4 -0
- package/dist/serialization/signature.d.ts.map +1 -0
- package/dist/serialization/signature.js +71 -0
- package/dist/serialization/sitecore-api/auth.d.ts +31 -0
- package/dist/serialization/sitecore-api/auth.d.ts.map +1 -0
- package/dist/serialization/sitecore-api/auth.js +319 -0
- package/dist/serialization/sitecore-api/graphql.d.ts +12 -0
- package/dist/serialization/sitecore-api/graphql.d.ts.map +1 -0
- package/dist/serialization/sitecore-api/graphql.js +20 -0
- package/dist/serialization/sitecore-api/history.d.ts +9 -0
- package/dist/serialization/sitecore-api/history.d.ts.map +1 -0
- package/dist/serialization/sitecore-api/history.js +36 -0
- package/dist/serialization/sitecore-api/index.d.ts +7 -0
- package/dist/serialization/sitecore-api/index.d.ts.map +1 -0
- package/dist/serialization/sitecore-api/index.js +22 -0
- package/dist/serialization/sitecore-api/items.d.ts +8 -0
- package/dist/serialization/sitecore-api/items.d.ts.map +1 -0
- package/dist/serialization/sitecore-api/items.js +132 -0
- package/dist/serialization/sitecore-api/publish.d.ts +14 -0
- package/dist/serialization/sitecore-api/publish.d.ts.map +1 -0
- package/dist/serialization/sitecore-api/publish.js +43 -0
- package/dist/serialization/sitecore-api/roles.d.ts +9 -0
- package/dist/serialization/sitecore-api/roles.d.ts.map +1 -0
- package/dist/serialization/sitecore-api/roles.js +42 -0
- package/dist/serialization/sitecore-api/users.d.ts +9 -0
- package/dist/serialization/sitecore-api/users.d.ts.map +1 -0
- package/dist/serialization/sitecore-api/users.js +62 -0
- package/dist/serialization/sitecore-api.d.ts +2 -0
- package/dist/serialization/sitecore-api.d.ts.map +1 -0
- package/dist/serialization/sitecore-api.js +17 -0
- package/dist/serialization/tasks/diff.d.ts +3 -0
- package/dist/serialization/tasks/diff.d.ts.map +1 -0
- package/dist/serialization/tasks/diff.js +109 -0
- package/dist/serialization/tasks/env/constants.d.ts +2 -0
- package/dist/serialization/tasks/env/constants.d.ts.map +1 -0
- package/dist/serialization/tasks/env/constants.js +4 -0
- package/dist/serialization/tasks/env/deploy-token.d.ts +3 -0
- package/dist/serialization/tasks/env/deploy-token.d.ts.map +1 -0
- package/dist/serialization/tasks/env/deploy-token.js +128 -0
- package/dist/serialization/tasks/env/index.d.ts +5 -0
- package/dist/serialization/tasks/env/index.d.ts.map +1 -0
- package/dist/serialization/tasks/env/index.js +11 -0
- package/dist/serialization/tasks/env/init/auth.d.ts +24 -0
- package/dist/serialization/tasks/env/init/auth.d.ts.map +1 -0
- package/dist/serialization/tasks/env/init/auth.js +122 -0
- package/dist/serialization/tasks/env/init/deploy-lookup.d.ts +22 -0
- package/dist/serialization/tasks/env/init/deploy-lookup.d.ts.map +1 -0
- package/dist/serialization/tasks/env/init/deploy-lookup.js +244 -0
- package/dist/serialization/tasks/env/init.d.ts +3 -0
- package/dist/serialization/tasks/env/init.d.ts.map +1 -0
- package/dist/serialization/tasks/env/init.js +253 -0
- package/dist/serialization/tasks/env/logout.d.ts +3 -0
- package/dist/serialization/tasks/env/logout.d.ts.map +1 -0
- package/dist/serialization/tasks/env/logout.js +61 -0
- package/dist/serialization/tasks/env/status.d.ts +3 -0
- package/dist/serialization/tasks/env/status.d.ts.map +1 -0
- package/dist/serialization/tasks/env/status.js +149 -0
- package/dist/serialization/tasks/env.d.ts +2 -0
- package/dist/serialization/tasks/env.d.ts.map +1 -0
- package/dist/serialization/tasks/env.js +17 -0
- package/dist/serialization/tasks/helpers/collect.d.ts +8 -0
- package/dist/serialization/tasks/helpers/collect.d.ts.map +1 -0
- package/dist/serialization/tasks/helpers/collect.js +29 -0
- package/dist/serialization/tasks/helpers/commands.d.ts +5 -0
- package/dist/serialization/tasks/helpers/commands.d.ts.map +1 -0
- package/dist/serialization/tasks/helpers/commands.js +14 -0
- package/dist/serialization/tasks/helpers/filesystem.d.ts +6 -0
- package/dist/serialization/tasks/helpers/filesystem.d.ts.map +1 -0
- package/dist/serialization/tasks/helpers/filesystem.js +27 -0
- package/dist/serialization/tasks/helpers/index.d.ts +6 -0
- package/dist/serialization/tasks/helpers/index.d.ts.map +1 -0
- package/dist/serialization/tasks/helpers/index.js +13 -0
- package/dist/serialization/tasks/helpers/items.d.ts +3 -0
- package/dist/serialization/tasks/helpers/items.d.ts.map +1 -0
- package/dist/serialization/tasks/helpers/items.js +5 -0
- package/dist/serialization/tasks/helpers/sitecore.d.ts +5 -0
- package/dist/serialization/tasks/helpers/sitecore.d.ts.map +1 -0
- package/dist/serialization/tasks/helpers/sitecore.js +109 -0
- package/dist/serialization/tasks/helpers.d.ts +2 -0
- package/dist/serialization/tasks/helpers.d.ts.map +1 -0
- package/dist/serialization/tasks/helpers.js +17 -0
- package/dist/serialization/tasks/index.d.ts +8 -0
- package/dist/serialization/tasks/index.d.ts.map +1 -0
- package/dist/serialization/tasks/index.js +19 -0
- package/dist/serialization/tasks/info.d.ts +4 -0
- package/dist/serialization/tasks/info.d.ts.map +1 -0
- package/dist/serialization/tasks/info.js +82 -0
- package/dist/serialization/tasks/package.d.ts +4 -0
- package/dist/serialization/tasks/package.d.ts.map +1 -0
- package/dist/serialization/tasks/package.js +171 -0
- package/dist/serialization/tasks/pull.d.ts +3 -0
- package/dist/serialization/tasks/pull.d.ts.map +1 -0
- package/dist/serialization/tasks/pull.js +82 -0
- package/dist/serialization/tasks/push.d.ts +3 -0
- package/dist/serialization/tasks/push.d.ts.map +1 -0
- package/dist/serialization/tasks/push.js +101 -0
- package/dist/serialization/tasks/roles.d.ts +6 -0
- package/dist/serialization/tasks/roles.d.ts.map +1 -0
- package/dist/serialization/tasks/roles.js +103 -0
- package/dist/serialization/tasks/shared.d.ts +19 -0
- package/dist/serialization/tasks/shared.d.ts.map +1 -0
- package/dist/serialization/tasks/shared.js +59 -0
- package/dist/serialization/tasks/types.d.ts +73 -0
- package/dist/serialization/tasks/types.d.ts.map +1 -0
- package/dist/serialization/tasks/types.js +8 -0
- package/dist/serialization/tasks/users.d.ts +5 -0
- package/dist/serialization/tasks/users.d.ts.map +1 -0
- package/dist/serialization/tasks/users.js +90 -0
- package/dist/serialization/tasks/validate.d.ts +5 -0
- package/dist/serialization/tasks/validate.d.ts.map +1 -0
- package/dist/serialization/tasks/validate.js +50 -0
- package/dist/serialization/tasks/watch.d.ts +3 -0
- package/dist/serialization/tasks/watch.d.ts.map +1 -0
- package/dist/serialization/tasks/watch.js +75 -0
- package/dist/serialization/tasks.d.ts +4 -0
- package/dist/serialization/tasks.d.ts.map +1 -0
- package/dist/serialization/tasks.js +19 -0
- package/dist/serialization/tree-spec.d.ts +51 -0
- package/dist/serialization/tree-spec.d.ts.map +1 -0
- package/dist/serialization/tree-spec.js +241 -0
- package/dist/serialization/types.d.ts +75 -0
- package/dist/serialization/types.d.ts.map +1 -0
- package/dist/serialization/types.js +2 -0
- package/dist/serialization/wildcard.d.ts +3 -0
- package/dist/serialization/wildcard.d.ts.map +1 -0
- package/dist/serialization/wildcard.js +24 -0
- package/dist/serialization/yaml.d.ts +9 -0
- package/dist/serialization/yaml.d.ts.map +1 -0
- package/dist/serialization/yaml.js +307 -0
- package/dist/shared/browser.d.ts +2 -0
- package/dist/shared/browser.d.ts.map +1 -0
- package/dist/shared/browser.js +36 -0
- package/dist/shared/cli-options.d.ts +17 -0
- package/dist/shared/cli-options.d.ts.map +1 -0
- package/dist/shared/cli-options.js +8 -0
- package/dist/shared/cli-tasks.d.ts +38 -0
- package/dist/shared/cli-tasks.d.ts.map +1 -0
- package/dist/shared/cli-tasks.js +108 -0
- package/dist/shared/config-template.d.ts +23 -0
- package/dist/shared/config-template.d.ts.map +1 -0
- package/dist/shared/config-template.js +38 -0
- package/dist/shared/env.d.ts +28 -0
- package/dist/shared/env.d.ts.map +1 -0
- package/dist/shared/env.js +38 -0
- package/dist/shared/errors.d.ts +21 -0
- package/dist/shared/errors.d.ts.map +1 -0
- package/dist/shared/errors.js +59 -0
- package/dist/shared/graphql.d.ts +76 -0
- package/dist/shared/graphql.d.ts.map +1 -0
- package/dist/shared/graphql.js +222 -0
- package/dist/shared/history.d.ts +12 -0
- package/dist/shared/history.d.ts.map +1 -0
- package/dist/shared/history.js +62 -0
- package/dist/shared/keychain.d.ts +15 -0
- package/dist/shared/keychain.d.ts.map +1 -0
- package/dist/shared/keychain.js +177 -0
- package/dist/shared/logger.d.ts +24 -0
- package/dist/shared/logger.d.ts.map +1 -0
- package/dist/shared/logger.js +157 -0
- package/dist/shared/output.d.ts +7 -0
- package/dist/shared/output.d.ts.map +1 -0
- package/dist/shared/output.js +21 -0
- package/dist/shared/prompt.d.ts +5 -0
- package/dist/shared/prompt.d.ts.map +1 -0
- package/dist/shared/prompt.js +87 -0
- package/dist/shared/redact.d.ts +3 -0
- package/dist/shared/redact.d.ts.map +1 -0
- package/dist/shared/redact.js +47 -0
- package/dist/shared/spinner.d.ts +5 -0
- package/dist/shared/spinner.d.ts.map +1 -0
- package/dist/shared/spinner.js +89 -0
- package/dist/shared/style.d.ts +2 -0
- package/dist/shared/style.d.ts.map +1 -0
- package/dist/shared/style.js +61 -0
- package/dist/shared/telemetry.d.ts +21 -0
- package/dist/shared/telemetry.d.ts.map +1 -0
- package/dist/shared/telemetry.js +226 -0
- package/dist/shared/validate.d.ts +3 -0
- package/dist/shared/validate.d.ts.map +1 -0
- package/dist/shared/validate.js +32 -0
- package/dist/sites/api/collections.d.ts +25 -0
- package/dist/sites/api/collections.d.ts.map +1 -0
- package/dist/sites/api/collections.js +21 -0
- package/dist/sites/api/index.d.ts +26 -0
- package/dist/sites/api/index.d.ts.map +1 -0
- package/dist/sites/api/index.js +55 -0
- package/dist/sites/api/jobs.d.ts +31 -0
- package/dist/sites/api/jobs.d.ts.map +1 -0
- package/dist/sites/api/jobs.js +10 -0
- package/dist/sites/api/languages.d.ts +22 -0
- package/dist/sites/api/languages.d.ts.map +1 -0
- package/dist/sites/api/languages.js +18 -0
- package/dist/sites/api/request.d.ts +24 -0
- package/dist/sites/api/request.d.ts.map +1 -0
- package/dist/sites/api/request.js +99 -0
- package/dist/sites/api/sites.d.ts +53 -0
- package/dist/sites/api/sites.d.ts.map +1 -0
- package/dist/sites/api/sites.js +41 -0
- package/dist/sites/api/types.d.ts +29 -0
- package/dist/sites/api/types.d.ts.map +1 -0
- package/dist/sites/api/types.js +4 -0
- package/package.json +109 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/recipe/ir/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkBxB,eAAO,MAAM,gBAAgB;;;;EAAqE,CAAC;AAEnG,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA8CzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwB3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAQ1D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA6B7B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA6B3B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;iBAMnC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;iBAOpC,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;iBA8CzC,CAAC;AAEH;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;iBA6DpC,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAO1B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC1D,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAK5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OperationIrSchema = exports.OperationSchema = exports.AppendToMultiListOpSchema = exports.CreateSiteFromTemplateOpSchema = exports.SetStandardValuesOpSchema = exports.SetBaseTemplatesOpSchema = exports.SetFieldOpSchema = exports.CreateItemOpSchema = exports.FieldValueSchema = exports.RefValueSchema = exports.PushPolicySchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
/**
|
|
6
|
+
* Operation IR — the only artifact the recipe compiler emits.
|
|
7
|
+
*
|
|
8
|
+
* Each operation carries a deterministic GUID (resolved via uuidv5 from the
|
|
9
|
+
* recipe handle) so re-running the compiler against the same inputs yields
|
|
10
|
+
* the same IR, and re-applying it against a tenant is a no-op once the
|
|
11
|
+
* items exist (the executor reads remote state by GUID, diffs, then mutates).
|
|
12
|
+
*
|
|
13
|
+
* `policy` is the per-operation push policy: `CreateOnly` is how author
|
|
14
|
+
* edits in the CMS are protected; `CreateAndUpdate` is the default for
|
|
15
|
+
* registry-owned templates and renderings.
|
|
16
|
+
*/
|
|
17
|
+
const GUID = zod_1.z.string().uuid();
|
|
18
|
+
const NON_EMPTY = zod_1.z.string().min(1);
|
|
19
|
+
exports.PushPolicySchema = zod_1.z.enum(["CreateAndUpdate", "CreateOnly", "CreateUpdateAndDelete"]);
|
|
20
|
+
/**
|
|
21
|
+
* Reference encodings the IR must distinguish — Sitecore stores cross-item
|
|
22
|
+
* references in many shapes (see `plans/sitecore-relationships.md`,
|
|
23
|
+
* "Reference encoding patterns"). The executor decides per-field which form
|
|
24
|
+
* to serialize.
|
|
25
|
+
*
|
|
26
|
+
* Two flavors of GUID reference:
|
|
27
|
+
*
|
|
28
|
+
* - `ref-guid` / `ref-guid-list` — known-at-compile-time GUIDs (Sitecore
|
|
29
|
+
* built-ins like the Standard Template, Folder, View Rendering). Inline
|
|
30
|
+
* constants; no runtime resolution needed.
|
|
31
|
+
* - `ref-recipe` / `ref-recipe-list` — references to items the executor
|
|
32
|
+
* creates during this push. The Authoring API server-assigns itemIds
|
|
33
|
+
* on create, so the IR carries a recipe-internal `refKey` (uuidv5
|
|
34
|
+
* derived from the recipe handle) and the executor substitutes the
|
|
35
|
+
* captured Sitecore itemId before dispatching the field write.
|
|
36
|
+
*/
|
|
37
|
+
exports.RefValueSchema = zod_1.z.discriminatedUnion("kind", [
|
|
38
|
+
zod_1.z.object({ kind: zod_1.z.literal("string"), value: zod_1.z.string() }),
|
|
39
|
+
zod_1.z.object({ kind: zod_1.z.literal("bool"), value: zod_1.z.boolean() }),
|
|
40
|
+
zod_1.z.object({ kind: zod_1.z.literal("number"), value: zod_1.z.number() }),
|
|
41
|
+
zod_1.z.object({ kind: zod_1.z.literal("ref-guid"), value: GUID }),
|
|
42
|
+
zod_1.z.object({ kind: zod_1.z.literal("ref-guid-list"), values: zod_1.z.array(GUID) }),
|
|
43
|
+
zod_1.z.object({ kind: zod_1.z.literal("ref-recipe"), refKey: GUID }),
|
|
44
|
+
zod_1.z.object({
|
|
45
|
+
kind: zod_1.z.literal("ref-recipe-list"),
|
|
46
|
+
refKeys: zod_1.z.array(GUID),
|
|
47
|
+
/**
|
|
48
|
+
* When `true`, the resolver silently drops refKeys it can't find
|
|
49
|
+
* in the captured-itemId map instead of throwing. Default false
|
|
50
|
+
* (existing strict behavior — used by per-recipe SetField ops
|
|
51
|
+
* where a missing ref means a real bug). Set true on cross-recipe
|
|
52
|
+
* aggregate ops (e.g. `__available-renderings__`) where some
|
|
53
|
+
* sibling recipe IRs may have aborted and the aggregate should
|
|
54
|
+
* still write whichever items DID get created.
|
|
55
|
+
*/
|
|
56
|
+
tolerateMissing: zod_1.z.boolean().optional(),
|
|
57
|
+
}),
|
|
58
|
+
zod_1.z.object({ kind: zod_1.z.literal("ref-path"), value: NON_EMPTY }),
|
|
59
|
+
zod_1.z.object({ kind: zod_1.z.literal("query"), value: NON_EMPTY }),
|
|
60
|
+
/**
|
|
61
|
+
* Structured source fields whose `sourceTypes` reference one or more
|
|
62
|
+
* recipe handles. Resolution requires the captured-itemId map; rendered
|
|
63
|
+
* by the executor (via `renderSourceFields`) just before dispatching
|
|
64
|
+
* the field write. Mirrors the `SitecoreFieldAugment` source surface
|
|
65
|
+
* minus `sourceRaw` (raw is always rendered at compile time).
|
|
66
|
+
*
|
|
67
|
+
* `site` is the site name the compiler emitted under — required so the
|
|
68
|
+
* executor can resolve handle refKeys via the (site, handle)-scoped
|
|
69
|
+
* `templateId(site, handle)` derivation. Defaults to `default` when the
|
|
70
|
+
* compiler ran without `context.site`.
|
|
71
|
+
*/
|
|
72
|
+
zod_1.z.object({
|
|
73
|
+
kind: zod_1.z.literal("ref-source-fields"),
|
|
74
|
+
site: NON_EMPTY,
|
|
75
|
+
sourceTypes: zod_1.z.array(NON_EMPTY).min(1),
|
|
76
|
+
sourceQuery: zod_1.z.string().optional(),
|
|
77
|
+
sourceScope: zod_1.z.string().optional(),
|
|
78
|
+
}),
|
|
79
|
+
zod_1.z.object({
|
|
80
|
+
kind: zod_1.z.literal("url-string-map"),
|
|
81
|
+
entries: zod_1.z.record(zod_1.z.string(), zod_1.z.string()),
|
|
82
|
+
}),
|
|
83
|
+
]);
|
|
84
|
+
exports.FieldValueSchema = zod_1.z.object({
|
|
85
|
+
fieldId: GUID,
|
|
86
|
+
/**
|
|
87
|
+
* Optional human-readable field name (e.g. "Body"). When present, the
|
|
88
|
+
* authoring client uses this as the mutation's field selector and the
|
|
89
|
+
* planner uses it for diff matching against `RemoteFieldValue.name`.
|
|
90
|
+
*
|
|
91
|
+
* Required for fields on RECIPE-CREATED templates: Sitecore assigns
|
|
92
|
+
* server-side itemIds to Template Field items, so the recipe-derived
|
|
93
|
+
* `fieldId(handle, name)` is just an internal refKey — the tenant has
|
|
94
|
+
* a different GUID for the same field. Sitecore's `FieldValueInput.name`
|
|
95
|
+
* accepts either a name or an ID, but only IDs that exist on the tenant
|
|
96
|
+
* resolve. Field names always resolve against the item's template.
|
|
97
|
+
*
|
|
98
|
+
* Omit for SYSTEM fields (e.g. `__Display Name`, `__Renderings`,
|
|
99
|
+
* `TemplatesMapping`) — those GUIDs are real Sitecore built-ins and
|
|
100
|
+
* resolve directly.
|
|
101
|
+
*/
|
|
102
|
+
fieldName: zod_1.z.string().min(1).optional(),
|
|
103
|
+
/** Omit for shared fields; default `en` for versioned fields. */
|
|
104
|
+
language: zod_1.z.string().optional(),
|
|
105
|
+
/** Omit for shared fields; default `1` for versioned fields. */
|
|
106
|
+
version: zod_1.z.number().int().positive().optional(),
|
|
107
|
+
value: exports.RefValueSchema,
|
|
108
|
+
});
|
|
109
|
+
const BaseOpFields = {
|
|
110
|
+
policy: exports.PushPolicySchema,
|
|
111
|
+
/** Stable, recipe-derived label used in plan/push progress events. */
|
|
112
|
+
label: NON_EMPTY,
|
|
113
|
+
};
|
|
114
|
+
exports.CreateItemOpSchema = zod_1.z.object({
|
|
115
|
+
op: zod_1.z.literal("CreateItem"),
|
|
116
|
+
...BaseOpFields,
|
|
117
|
+
/**
|
|
118
|
+
* Recipe-internal uuidv5. Stable across compiles. Used as the refKey for
|
|
119
|
+
* `ref-recipe` substitutions in subsequent ops. NOT a Sitecore item ID —
|
|
120
|
+
* Sitecore assigns those server-side on `createItem`.
|
|
121
|
+
*/
|
|
122
|
+
id: GUID,
|
|
123
|
+
/**
|
|
124
|
+
* Sitecore content-tree path where the item lives (parent + name). The
|
|
125
|
+
* runtime authority for "does this item exist?" — the planner reads
|
|
126
|
+
* by path, the executor creates at this path. Examples:
|
|
127
|
+
* /sitecore/templates/Project/CtaButton
|
|
128
|
+
* /sitecore/templates/Project/CtaButton/Content/Link
|
|
129
|
+
*/
|
|
130
|
+
path: NON_EMPTY,
|
|
131
|
+
/**
|
|
132
|
+
* Parent ref. `ref-recipe` resolves to the captured Sitecore itemId for
|
|
133
|
+
* a previously-created item in this push; `ref-path` is a Sitecore path
|
|
134
|
+
* (typically the configured templatesRoot for top-level items).
|
|
135
|
+
*/
|
|
136
|
+
parent: zod_1.z.discriminatedUnion("kind", [
|
|
137
|
+
zod_1.z.object({ kind: zod_1.z.literal("ref-recipe"), refKey: GUID }),
|
|
138
|
+
zod_1.z.object({ kind: zod_1.z.literal("ref-path"), value: NON_EMPTY }),
|
|
139
|
+
]),
|
|
140
|
+
templateOf: GUID,
|
|
141
|
+
name: NON_EMPTY,
|
|
142
|
+
fields: zod_1.z.array(exports.FieldValueSchema),
|
|
143
|
+
});
|
|
144
|
+
exports.SetFieldOpSchema = zod_1.z.object({
|
|
145
|
+
op: zod_1.z.literal("SetField"),
|
|
146
|
+
...BaseOpFields,
|
|
147
|
+
/** RefKey of the target item — resolves to Sitecore itemId at execute time. */
|
|
148
|
+
itemRefKey: GUID,
|
|
149
|
+
fieldId: GUID,
|
|
150
|
+
/**
|
|
151
|
+
* Optional human-readable field name. See `FieldValueSchema.fieldName`
|
|
152
|
+
* — required for fields on recipe-created templates, omit for system
|
|
153
|
+
* fields whose GUIDs are Sitecore built-ins.
|
|
154
|
+
*/
|
|
155
|
+
fieldName: zod_1.z.string().min(1).optional(),
|
|
156
|
+
language: zod_1.z.string().optional(),
|
|
157
|
+
version: zod_1.z.number().int().positive().optional(),
|
|
158
|
+
value: exports.RefValueSchema,
|
|
159
|
+
/**
|
|
160
|
+
* Optional content-tree path for late ref seeding. Used by SiteRecipe
|
|
161
|
+
* dictionary overrides where the target item (`<site>/Dictionary/<phrase>`)
|
|
162
|
+
* is materialised by SXA's Site Wizard during a `CreateSiteFromTemplate`
|
|
163
|
+
* apply, AFTER initial `crossRecipeRefs` seeding. The executor checks
|
|
164
|
+
* if `itemRefKey` is in the captured map; if not AND `latePath` is
|
|
165
|
+
* present, it runs `getItem({ path: latePath })` on demand to seed
|
|
166
|
+
* before planning the SetField.
|
|
167
|
+
*
|
|
168
|
+
* Compiler emits this only when the target item is created indirectly
|
|
169
|
+
* (Sites API / SXA scaffolding); regular SetField ops on items the
|
|
170
|
+
* recipe itself creates leave this undefined.
|
|
171
|
+
*/
|
|
172
|
+
latePath: zod_1.z.string().min(1).optional(),
|
|
173
|
+
});
|
|
174
|
+
exports.SetBaseTemplatesOpSchema = zod_1.z.object({
|
|
175
|
+
op: zod_1.z.literal("SetBaseTemplates"),
|
|
176
|
+
...BaseOpFields,
|
|
177
|
+
/** RefKey of the target item. */
|
|
178
|
+
itemRefKey: GUID,
|
|
179
|
+
baseTemplates: zod_1.z.array(GUID).min(1),
|
|
180
|
+
});
|
|
181
|
+
exports.SetStandardValuesOpSchema = zod_1.z.object({
|
|
182
|
+
op: zod_1.z.literal("SetStandardValues"),
|
|
183
|
+
...BaseOpFields,
|
|
184
|
+
/** RefKey of the template item. */
|
|
185
|
+
templateRefKey: GUID,
|
|
186
|
+
/** RefKey of the standard-values item. */
|
|
187
|
+
standardValuesRefKey: GUID,
|
|
188
|
+
});
|
|
189
|
+
/**
|
|
190
|
+
* Site instantiation via Sitecore's Sites API. Unlike CreateItem (which
|
|
191
|
+
* dispatches to Authoring GraphQL), CreateSiteFromTemplate dispatches
|
|
192
|
+
* to the Sites API's `createSite` operation — the only way to spin up
|
|
193
|
+
* a site instance with all the SXA initialization (content tree
|
|
194
|
+
* skeleton, settings, dictionary structure, etc.) that Authoring API
|
|
195
|
+
* `createItem` can't reproduce.
|
|
196
|
+
*
|
|
197
|
+
* Async semantics: the Sites API's `createSite` returns a JobResponse
|
|
198
|
+
* (a job handle); the executor polls until completion, then looks up
|
|
199
|
+
* the created site by name to capture its assigned itemId. The
|
|
200
|
+
* captured itemId becomes the resolution target for subsequent ops
|
|
201
|
+
* keyed on `siteRefKey`.
|
|
202
|
+
*
|
|
203
|
+
* Idempotency: planner checks if a site with this `siteName` already
|
|
204
|
+
* exists in the environment via Sites API `listSites`. If yes →
|
|
205
|
+
* status: skip (mutation: undefined). If no → status: create, mutation
|
|
206
|
+
* dispatches `createSite`. There is no "update site template"
|
|
207
|
+
* operation on the Sites API; mismatched-template sites are reported
|
|
208
|
+
* as planning errors rather than silently re-instantiated.
|
|
209
|
+
*/
|
|
210
|
+
exports.CreateSiteFromTemplateOpSchema = zod_1.z.object({
|
|
211
|
+
op: zod_1.z.literal("CreateSiteFromTemplate"),
|
|
212
|
+
...BaseOpFields,
|
|
213
|
+
/**
|
|
214
|
+
* Recipe-internal uuidv5 for this site (`siteId(handle)`). Subsequent
|
|
215
|
+
* SetField ops on the site's content tree (dictionary overrides,
|
|
216
|
+
* taxonomy overrides) reference items the Sites API materialises
|
|
217
|
+
* under this site; the executor seeds those itemIds via a post-apply
|
|
218
|
+
* re-walk of the cross-recipe ref map.
|
|
219
|
+
*/
|
|
220
|
+
siteRefKey: GUID,
|
|
221
|
+
/**
|
|
222
|
+
* The Sitecore site Name (becomes Sites API `NewSiteInput.siteName`).
|
|
223
|
+
* Distinct from the recipe handle.
|
|
224
|
+
*/
|
|
225
|
+
siteName: NON_EMPTY,
|
|
226
|
+
displayName: zod_1.z.string().optional(),
|
|
227
|
+
description: zod_1.z.string().optional(),
|
|
228
|
+
/** Primary site language ISO code (Sites API `NewSiteInput.language`). */
|
|
229
|
+
language: NON_EMPTY,
|
|
230
|
+
/** Additional supported languages on this site (added via `addLanguage`). */
|
|
231
|
+
additionalLanguages: zod_1.z.array(zod_1.z.string().min(2)).optional(),
|
|
232
|
+
/**
|
|
233
|
+
* Optional primary hostname (Sites API `NewSiteInput.hostName`). When
|
|
234
|
+
* unset, the site is created without an explicit primary host (the
|
|
235
|
+
* customer can configure hosts via the Site Hosts surface).
|
|
236
|
+
*/
|
|
237
|
+
hostName: zod_1.z.string().optional(),
|
|
238
|
+
/**
|
|
239
|
+
* RefKey of the `SiteTemplateRecipe` this site instances. Resolves at
|
|
240
|
+
* execute time to the template's Sitecore itemId via the captured
|
|
241
|
+
* map; that itemId becomes Sites API `NewSiteInput.templateId`.
|
|
242
|
+
*/
|
|
243
|
+
templateRefKey: GUID,
|
|
244
|
+
/**
|
|
245
|
+
* Existing collection ID. Mutually exclusive with `collectionName` —
|
|
246
|
+
* compiler validates that exactly one is present.
|
|
247
|
+
*/
|
|
248
|
+
collectionId: zod_1.z.string().optional(),
|
|
249
|
+
/**
|
|
250
|
+
* Name of a NEW collection to create alongside the site. Mutually
|
|
251
|
+
* exclusive with `collectionId`.
|
|
252
|
+
*/
|
|
253
|
+
collectionName: zod_1.z.string().optional(),
|
|
254
|
+
collectionDisplayName: zod_1.z.string().optional(),
|
|
255
|
+
collectionDescription: zod_1.z.string().optional(),
|
|
256
|
+
});
|
|
257
|
+
/**
|
|
258
|
+
* Append GUIDs to an existing item's multi-list field without disturbing
|
|
259
|
+
* existing values. Used by registry-driven recipes to register their
|
|
260
|
+
* renderings against pre-existing SXA Available Rendering Section
|
|
261
|
+
* Definition items (`availableIn` on `ComponentTemplateRecipe`).
|
|
262
|
+
*
|
|
263
|
+
* Idempotent under `policy: "merge-unique"` — the executor reads the
|
|
264
|
+
* current field value, parses it as a pipe-separated GUID list,
|
|
265
|
+
* unions the desired values into the existing set, and writes back
|
|
266
|
+
* only if the set changed. Re-pushing a recipe with the same
|
|
267
|
+
* `values` is a no-op once the values are present.
|
|
268
|
+
*
|
|
269
|
+
* Removal is intentionally NOT modelled here — uninstalling a
|
|
270
|
+
* component does not auto-remove it from a section's Available
|
|
271
|
+
* Renderings; that's an explicit operator action with a different
|
|
272
|
+
* policy.
|
|
273
|
+
*/
|
|
274
|
+
exports.AppendToMultiListOpSchema = zod_1.z.object({
|
|
275
|
+
op: zod_1.z.literal("AppendToMultiList"),
|
|
276
|
+
...BaseOpFields,
|
|
277
|
+
/**
|
|
278
|
+
* RefKey of the target item — typically a SectionDefinitionRecipe's
|
|
279
|
+
* `sectionDefinitionId(handle)`. The executor resolves it to a
|
|
280
|
+
* Sitecore itemId via the captured map; cross-recipe pre-seeding
|
|
281
|
+
* (path lookup) populates the map for items the current recipe
|
|
282
|
+
* doesn't itself create.
|
|
283
|
+
*/
|
|
284
|
+
itemRefKey: GUID,
|
|
285
|
+
/**
|
|
286
|
+
* Optional content-tree path for late-path seeding — same semantics
|
|
287
|
+
* as `SetFieldOpSchema.latePath`. Section definition items are
|
|
288
|
+
* typically pre-existing tenant scaffolding (not created by the
|
|
289
|
+
* recipe set), so the compiler emits this so the executor can
|
|
290
|
+
* resolve the itemId on demand if it's not in the captured map.
|
|
291
|
+
*/
|
|
292
|
+
latePath: zod_1.z.string().min(1).optional(),
|
|
293
|
+
/**
|
|
294
|
+
* Field GUID — the multi-list field to append into (e.g.
|
|
295
|
+
* Available Renderings). System fields use real Sitecore GUIDs;
|
|
296
|
+
* recipe-defined multi-list fields would carry the recipe-internal
|
|
297
|
+
* refKey (this case isn't used today but is forward-compatible).
|
|
298
|
+
*/
|
|
299
|
+
fieldId: GUID,
|
|
300
|
+
/**
|
|
301
|
+
* Optional human-readable field name. See `FieldValueSchema.fieldName`
|
|
302
|
+
* — required for fields on recipe-created templates, omit for
|
|
303
|
+
* system fields whose GUIDs are real Sitecore built-ins.
|
|
304
|
+
*/
|
|
305
|
+
fieldName: zod_1.z.string().min(1).optional(),
|
|
306
|
+
/**
|
|
307
|
+
* GUIDs to append. Same value can be specified twice (the executor
|
|
308
|
+
* de-duplicates after the merge) but compilers should normalise.
|
|
309
|
+
* Each entry is either:
|
|
310
|
+
* - a real Sitecore GUID (`ref-guid` style — already resolved)
|
|
311
|
+
* - a recipe-internal refKey (`ref-recipe` style — resolved via
|
|
312
|
+
* captured map at execute time)
|
|
313
|
+
*
|
|
314
|
+
* The compiler emits a discriminated `RefValue` per entry so the
|
|
315
|
+
* executor can resolve recipe-handle refs (rendering GUIDs derived
|
|
316
|
+
* from `renderingId(handle)`) without compile-time knowledge of
|
|
317
|
+
* the tenant's assigned itemIds.
|
|
318
|
+
*/
|
|
319
|
+
values: zod_1.z
|
|
320
|
+
.array(zod_1.z.discriminatedUnion("kind", [
|
|
321
|
+
zod_1.z.object({ kind: zod_1.z.literal("ref-guid"), value: GUID }),
|
|
322
|
+
zod_1.z.object({ kind: zod_1.z.literal("ref-recipe"), refKey: GUID }),
|
|
323
|
+
]))
|
|
324
|
+
.min(1),
|
|
325
|
+
/**
|
|
326
|
+
* Append policy. `merge-unique` is the only supported value today
|
|
327
|
+
* (preserve existing, add missing). The discriminator is reserved so
|
|
328
|
+
* future policies — `replace` (full overwrite) or `replace-prefix`
|
|
329
|
+
* (atomic swap of a recipe-owned subset) — can land without changing
|
|
330
|
+
* the op shape. Existing IRs continue to round-trip unchanged.
|
|
331
|
+
*/
|
|
332
|
+
appendPolicy: zod_1.z.literal("merge-unique"),
|
|
333
|
+
});
|
|
334
|
+
exports.OperationSchema = zod_1.z.discriminatedUnion("op", [
|
|
335
|
+
exports.CreateItemOpSchema,
|
|
336
|
+
exports.SetFieldOpSchema,
|
|
337
|
+
exports.SetBaseTemplatesOpSchema,
|
|
338
|
+
exports.SetStandardValuesOpSchema,
|
|
339
|
+
exports.CreateSiteFromTemplateOpSchema,
|
|
340
|
+
exports.AppendToMultiListOpSchema,
|
|
341
|
+
]);
|
|
342
|
+
exports.OperationIrSchema = zod_1.z.object({
|
|
343
|
+
schemaVersion: zod_1.z.literal("1"),
|
|
344
|
+
/** Source recipe handle, e.g. `cta-button@1`. */
|
|
345
|
+
recipeHandle: NON_EMPTY,
|
|
346
|
+
operations: zod_1.z.array(exports.OperationSchema),
|
|
347
|
+
});
|