@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,173 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.runDeploySourceControlDelete = exports.runDeploySourceControlGet = exports.runDeploySourceControlProviders = exports.runDeploySourceControlRepositoryCreateFromTemplate = exports.runDeploySourceControlRepositoryValidate = exports.runDeploySourceControlTemplates = exports.runDeploySourceControlRepositoryBranches = exports.runDeploySourceControlRepositoryGet = exports.runDeploySourceControlValidate = exports.runDeploySourceControlAccessToken = exports.runDeploySourceControlState = exports.runDeploySourceControlList = void 0;
|
|
4
|
+
const api_1 = require("../../deploy/api");
|
|
5
|
+
const shared_1 = require("./shared");
|
|
6
|
+
const runDeploySourceControlList = async (options) => {
|
|
7
|
+
const logger = (0, shared_1.toLogger)(options);
|
|
8
|
+
const context = await (0, shared_1.getDeployContext)(options);
|
|
9
|
+
const result = await (0, api_1.fetchSourceControlIntegrations)({
|
|
10
|
+
accessToken: context.token,
|
|
11
|
+
baseUrl: context.baseUrl,
|
|
12
|
+
});
|
|
13
|
+
(0, shared_1.printDeployResultWithContext)(logger, context, "deploy.source-control.list", result);
|
|
14
|
+
};
|
|
15
|
+
exports.runDeploySourceControlList = runDeploySourceControlList;
|
|
16
|
+
const runDeploySourceControlState = async (options) => {
|
|
17
|
+
const logger = (0, shared_1.toLogger)(options);
|
|
18
|
+
const context = await (0, shared_1.getDeployContext)(options);
|
|
19
|
+
const result = await (0, api_1.fetchSourceControlIntegrationState)({
|
|
20
|
+
accessToken: context.token,
|
|
21
|
+
baseUrl: context.baseUrl,
|
|
22
|
+
});
|
|
23
|
+
(0, shared_1.printDeployResultWithContext)(logger, context, "deploy.source-control.state", result);
|
|
24
|
+
};
|
|
25
|
+
exports.runDeploySourceControlState = runDeploySourceControlState;
|
|
26
|
+
const runDeploySourceControlAccessToken = async (options) => {
|
|
27
|
+
const logger = (0, shared_1.toLogger)(options);
|
|
28
|
+
const context = await (0, shared_1.getDeployContext)(options);
|
|
29
|
+
if (!options.id) {
|
|
30
|
+
throw (0, shared_1.inputError)("Source control integration ID is required. Use --id.");
|
|
31
|
+
}
|
|
32
|
+
const result = await (0, api_1.fetchSourceControlAccessToken)({ accessToken: context.token, baseUrl: context.baseUrl }, options.id);
|
|
33
|
+
(0, shared_1.printDeployResultWithContext)(logger, context, "deploy.source-control.access-token", result);
|
|
34
|
+
};
|
|
35
|
+
exports.runDeploySourceControlAccessToken = runDeploySourceControlAccessToken;
|
|
36
|
+
const runDeploySourceControlValidate = async (options) => {
|
|
37
|
+
const logger = (0, shared_1.toLogger)(options);
|
|
38
|
+
const context = await (0, shared_1.getDeployContext)(options);
|
|
39
|
+
const integrationId = options.integrationId ?? options.id;
|
|
40
|
+
if (!integrationId) {
|
|
41
|
+
throw (0, shared_1.inputError)("Source control integration ID is required. Use --id.");
|
|
42
|
+
}
|
|
43
|
+
const result = await (0, api_1.validateSourceControlIntegration)({ accessToken: context.token, baseUrl: context.baseUrl }, {
|
|
44
|
+
integrationId,
|
|
45
|
+
});
|
|
46
|
+
(0, shared_1.printDeployResultWithContext)(logger, context, "deploy.source-control.validate", result);
|
|
47
|
+
};
|
|
48
|
+
exports.runDeploySourceControlValidate = runDeploySourceControlValidate;
|
|
49
|
+
const runDeploySourceControlRepositoryGet = async (options) => {
|
|
50
|
+
const logger = (0, shared_1.toLogger)(options);
|
|
51
|
+
const context = await (0, shared_1.getDeployContext)(options);
|
|
52
|
+
if (!options.integrationId || !options.repositoryId) {
|
|
53
|
+
throw (0, shared_1.inputError)("Integration ID and repository ID are required.");
|
|
54
|
+
}
|
|
55
|
+
const result = await (0, api_1.fetchSourceControlRepository)({ accessToken: context.token, baseUrl: context.baseUrl }, {
|
|
56
|
+
IntegrationId: options.integrationId,
|
|
57
|
+
RepositoryId: options.repositoryId,
|
|
58
|
+
});
|
|
59
|
+
(0, shared_1.printDeployResultWithContext)(logger, context, "deploy.source-control.repository.get", result);
|
|
60
|
+
};
|
|
61
|
+
exports.runDeploySourceControlRepositoryGet = runDeploySourceControlRepositoryGet;
|
|
62
|
+
const runDeploySourceControlRepositoryBranches = async (options) => {
|
|
63
|
+
const logger = (0, shared_1.toLogger)(options);
|
|
64
|
+
const context = await (0, shared_1.getDeployContext)(options);
|
|
65
|
+
if (!options.integrationId || !options.repositoryName) {
|
|
66
|
+
throw (0, shared_1.inputError)("Integration ID and repository name are required.");
|
|
67
|
+
}
|
|
68
|
+
const result = await (0, api_1.fetchSourceControlRepositoryBranches)({ accessToken: context.token, baseUrl: context.baseUrl }, options.repositoryName, {
|
|
69
|
+
IntegrationId: options.integrationId,
|
|
70
|
+
});
|
|
71
|
+
(0, shared_1.printDeployResultWithContext)(logger, context, "deploy.source-control.repository.branches", result);
|
|
72
|
+
};
|
|
73
|
+
exports.runDeploySourceControlRepositoryBranches = runDeploySourceControlRepositoryBranches;
|
|
74
|
+
const runDeploySourceControlTemplates = async (options) => {
|
|
75
|
+
const logger = (0, shared_1.toLogger)(options);
|
|
76
|
+
const context = await (0, shared_1.getDeployContext)(options);
|
|
77
|
+
const query = options.provider ? { provider: options.provider } : undefined;
|
|
78
|
+
const result = await (0, api_1.fetchSourceControlTemplates)({ accessToken: context.token, baseUrl: context.baseUrl }, query);
|
|
79
|
+
(0, shared_1.printDeployResultWithContext)(logger, context, "deploy.source-control.templates", result);
|
|
80
|
+
};
|
|
81
|
+
exports.runDeploySourceControlTemplates = runDeploySourceControlTemplates;
|
|
82
|
+
const runDeploySourceControlRepositoryValidate = async (options) => {
|
|
83
|
+
const logger = (0, shared_1.toLogger)(options);
|
|
84
|
+
const context = await (0, shared_1.getDeployContext)(options);
|
|
85
|
+
if (!options.integrationId || !options.repositoryName) {
|
|
86
|
+
throw (0, shared_1.inputError)("Integration ID and repository name are required.");
|
|
87
|
+
}
|
|
88
|
+
const result = await (0, api_1.validateSourceControlRepository)({ accessToken: context.token, baseUrl: context.baseUrl }, {
|
|
89
|
+
integrationId: options.integrationId,
|
|
90
|
+
repositoryName: options.repositoryName,
|
|
91
|
+
});
|
|
92
|
+
(0, shared_1.printDeployResultWithContext)(logger, context, "deploy.source-control.repository.validate", result);
|
|
93
|
+
};
|
|
94
|
+
exports.runDeploySourceControlRepositoryValidate = runDeploySourceControlRepositoryValidate;
|
|
95
|
+
const runDeploySourceControlRepositoryCreateFromTemplate = async (options) => {
|
|
96
|
+
const logger = (0, shared_1.toLogger)(options);
|
|
97
|
+
const context = await (0, shared_1.getDeployContext)(options);
|
|
98
|
+
if (!options.provider) {
|
|
99
|
+
throw (0, shared_1.inputError)("Provider is required. Use --provider.");
|
|
100
|
+
}
|
|
101
|
+
if (!options.templateRepository || !options.templateOwner) {
|
|
102
|
+
throw (0, shared_1.inputError)("Template repository and owner are required.");
|
|
103
|
+
}
|
|
104
|
+
if (!options.repositoryName || !options.owner || !options.integrationId) {
|
|
105
|
+
throw (0, shared_1.inputError)("Repository name, owner, and integration ID are required.");
|
|
106
|
+
}
|
|
107
|
+
const input = {
|
|
108
|
+
provider: options.provider,
|
|
109
|
+
templateRepository: options.templateRepository,
|
|
110
|
+
templateOwner: options.templateOwner,
|
|
111
|
+
repositoryName: options.repositoryName,
|
|
112
|
+
owner: options.owner,
|
|
113
|
+
integrationId: options.integrationId,
|
|
114
|
+
description: options.description,
|
|
115
|
+
privateRepository: options.privateRepository,
|
|
116
|
+
includeAllBranches: options.includeAllBranches,
|
|
117
|
+
};
|
|
118
|
+
if (options.whatIf) {
|
|
119
|
+
const isGithub = options.provider.toLowerCase() === "github";
|
|
120
|
+
(0, shared_1.printDeployWhatIf)(logger, context, "deploy.source-control.repository.create", {
|
|
121
|
+
method: "POST",
|
|
122
|
+
path: isGithub
|
|
123
|
+
? "/api/sourcecontrol/v1/repository/github"
|
|
124
|
+
: "/api/sourcecontrol/v1/repository",
|
|
125
|
+
body: input,
|
|
126
|
+
});
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
const result = options.provider.toLowerCase() === "github"
|
|
130
|
+
? await (0, api_1.createSourceControlRepositoryGithub)({ accessToken: context.token, baseUrl: context.baseUrl }, input)
|
|
131
|
+
: await (0, api_1.createSourceControlRepository)({ accessToken: context.token, baseUrl: context.baseUrl }, input);
|
|
132
|
+
(0, shared_1.printDeployResultWithContext)(logger, context, "deploy.source-control.repository.create", result);
|
|
133
|
+
};
|
|
134
|
+
exports.runDeploySourceControlRepositoryCreateFromTemplate = runDeploySourceControlRepositoryCreateFromTemplate;
|
|
135
|
+
const runDeploySourceControlProviders = async (options) => {
|
|
136
|
+
const logger = (0, shared_1.toLogger)(options);
|
|
137
|
+
const context = await (0, shared_1.getDeployContext)(options);
|
|
138
|
+
const result = await (0, api_1.fetchSourceControlProviders)({
|
|
139
|
+
accessToken: context.token,
|
|
140
|
+
baseUrl: context.baseUrl,
|
|
141
|
+
});
|
|
142
|
+
(0, shared_1.printDeployResultWithContext)(logger, context, "deploy.source-control.providers", result);
|
|
143
|
+
};
|
|
144
|
+
exports.runDeploySourceControlProviders = runDeploySourceControlProviders;
|
|
145
|
+
const runDeploySourceControlGet = async (options) => {
|
|
146
|
+
const logger = (0, shared_1.toLogger)(options);
|
|
147
|
+
const context = await (0, shared_1.getDeployContext)(options);
|
|
148
|
+
const id = options.id ?? context.organizationId;
|
|
149
|
+
if (!id) {
|
|
150
|
+
throw (0, shared_1.inputError)("Source control integration ID is required. Use --id.");
|
|
151
|
+
}
|
|
152
|
+
const result = await (0, api_1.fetchSourceControlIntegration)({ accessToken: context.token, baseUrl: context.baseUrl }, id);
|
|
153
|
+
(0, shared_1.printDeployResultWithContext)(logger, context, "deploy.source-control.get", result);
|
|
154
|
+
};
|
|
155
|
+
exports.runDeploySourceControlGet = runDeploySourceControlGet;
|
|
156
|
+
const runDeploySourceControlDelete = async (options) => {
|
|
157
|
+
const logger = (0, shared_1.toLogger)(options);
|
|
158
|
+
const context = await (0, shared_1.getDeployContext)(options);
|
|
159
|
+
const id = options.id ?? context.organizationId;
|
|
160
|
+
if (!id) {
|
|
161
|
+
throw (0, shared_1.inputError)("Source control integration ID is required. Use --id.");
|
|
162
|
+
}
|
|
163
|
+
if (options.whatIf) {
|
|
164
|
+
(0, shared_1.printDeployWhatIf)(logger, context, "deploy.source-control.delete", {
|
|
165
|
+
method: "DELETE",
|
|
166
|
+
path: `/api/sourcecontrol/v1/integration/${id}`,
|
|
167
|
+
});
|
|
168
|
+
return;
|
|
169
|
+
}
|
|
170
|
+
const result = await (0, api_1.deleteSourceControlIntegration)({ accessToken: context.token, baseUrl: context.baseUrl }, id);
|
|
171
|
+
(0, shared_1.printDeployResultWithContext)(logger, context, "deploy.source-control.delete", result);
|
|
172
|
+
};
|
|
173
|
+
exports.runDeploySourceControlDelete = runDeploySourceControlDelete;
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Option types for `scai deploy` task runners. Every option type
|
|
3
|
+
* extends `CommonOptions` (from `@/shared/cli-options`) directly or
|
|
4
|
+
* via `DeployBaseOptions`.
|
|
5
|
+
*/
|
|
6
|
+
import type { CommonOptions } from "../../shared/cli-options";
|
|
7
|
+
export type DeployBaseOptions = CommonOptions & {
|
|
8
|
+
environmentName?: string;
|
|
9
|
+
whatIf?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export type DeploySiteListOptions = DeployBaseOptions & {
|
|
12
|
+
/** Walk each site's Site Grouping items to surface declared
|
|
13
|
+
* hostnames. Off by default — adds an N+1 round trip per site. */
|
|
14
|
+
hostnames?: boolean;
|
|
15
|
+
/** Override the content root walked. Default `/sitecore/content`.
|
|
16
|
+
* Useful for tests or non-standard installations. */
|
|
17
|
+
contentRoot?: string;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Options for `scai deploy site bind` — populate the SXA Site
|
|
21
|
+
* Grouping fields the Pages/Channels app requires (HostName,
|
|
22
|
+
* StartItem, RenderingHost) so a freshly-created site appears in
|
|
23
|
+
* the Cloud Portal.
|
|
24
|
+
*
|
|
25
|
+
* `RenderingHost` is a string-keyed lookup, so the bind has no
|
|
26
|
+
* dependency on the editing host deploy completing — it can run
|
|
27
|
+
* any time after the Site Grouping itself has been provisioned.
|
|
28
|
+
*/
|
|
29
|
+
export type DeploySiteBindOptions = DeployBaseOptions & {
|
|
30
|
+
/** SXA site name (e.g. `e2e`). Required. The Site Grouping item
|
|
31
|
+
* is at `/sitecore/content/<siteCollection>/<siteName>/Settings/Site Grouping/<siteName>`. */
|
|
32
|
+
siteName?: string;
|
|
33
|
+
/** SXA SiteCollection (XMC product surface) — the Headless Tenant
|
|
34
|
+
* the site lives under. Required. */
|
|
35
|
+
siteCollection?: string;
|
|
36
|
+
/** Editing host environment id from the Deploy API. Required —
|
|
37
|
+
* used to resolve the editing host URL via Deploy API GET. */
|
|
38
|
+
editingHostId?: string;
|
|
39
|
+
/** Override the RenderingHost field value. Defaults to `siteName`. */
|
|
40
|
+
renderingHostName?: string;
|
|
41
|
+
/** Override the StartItem name (relative to the site root).
|
|
42
|
+
* Default `Home`. */
|
|
43
|
+
startItemName?: string;
|
|
44
|
+
/** Override HostName field value. Default `*` (wildcard — the
|
|
45
|
+
* standard SXA Headless setting since routing is hostname-agnostic). */
|
|
46
|
+
hostNamePattern?: string;
|
|
47
|
+
/** Bypass scai's allowWrite safety. Required to actually mutate the
|
|
48
|
+
* Site Grouping; without it the command runs in plan-mode and
|
|
49
|
+
* prints what it would change. */
|
|
50
|
+
allowWrite?: boolean;
|
|
51
|
+
};
|
|
52
|
+
export type DeployLogsOptions = DeployEnvironmentOptions & {
|
|
53
|
+
latest?: boolean;
|
|
54
|
+
};
|
|
55
|
+
export type DeployLogViewOptions = DeployEnvironmentOptions & {
|
|
56
|
+
log?: string;
|
|
57
|
+
};
|
|
58
|
+
export type DeployLogDataOptions = DeployEnvironmentOptions & {
|
|
59
|
+
log?: string;
|
|
60
|
+
output?: string;
|
|
61
|
+
};
|
|
62
|
+
export type DeployTokenOptions = CommonOptions & {
|
|
63
|
+
environmentName?: string;
|
|
64
|
+
clientId?: string;
|
|
65
|
+
clientSecret?: string;
|
|
66
|
+
useClientCredentials?: boolean;
|
|
67
|
+
print?: boolean;
|
|
68
|
+
};
|
|
69
|
+
export type DeployOrganizationOptions = DeployBaseOptions;
|
|
70
|
+
export type DeployProjectOptions = DeployBaseOptions & {
|
|
71
|
+
id?: string;
|
|
72
|
+
name?: string;
|
|
73
|
+
};
|
|
74
|
+
export type DeployProjectDeleteOptions = DeployProjectOptions & {
|
|
75
|
+
force?: boolean;
|
|
76
|
+
};
|
|
77
|
+
export type DeployProjectNameValidationOptions = DeployBaseOptions & {
|
|
78
|
+
name?: string;
|
|
79
|
+
};
|
|
80
|
+
export type DeployProjectUpdateOptions = DeployProjectOptions & {
|
|
81
|
+
newName?: string;
|
|
82
|
+
repositoryName?: string;
|
|
83
|
+
repositoryId?: string;
|
|
84
|
+
sourceControlIntegrationId?: string;
|
|
85
|
+
};
|
|
86
|
+
export type DeployProjectRepositoryLinkOptions = DeployProjectOptions & {
|
|
87
|
+
id?: string;
|
|
88
|
+
repositoryName?: string;
|
|
89
|
+
repositoryId?: string;
|
|
90
|
+
integrationId?: string;
|
|
91
|
+
repositoryRelativePath?: string;
|
|
92
|
+
};
|
|
93
|
+
export type DeployProjectCreateOptions = DeployBaseOptions & {
|
|
94
|
+
name?: string;
|
|
95
|
+
repositoryName?: string;
|
|
96
|
+
repositoryId?: string;
|
|
97
|
+
sourceControlIntegrationId?: string;
|
|
98
|
+
};
|
|
99
|
+
export type DeploySourceControlOptions = DeployBaseOptions & {
|
|
100
|
+
id?: string;
|
|
101
|
+
};
|
|
102
|
+
export type DeploySourceControlValidateOptions = DeployBaseOptions & {
|
|
103
|
+
id?: string;
|
|
104
|
+
integrationId?: string;
|
|
105
|
+
repositoryName?: string;
|
|
106
|
+
};
|
|
107
|
+
export type DeploySourceControlRepositoryOptions = DeployBaseOptions & {
|
|
108
|
+
integrationId?: string;
|
|
109
|
+
repositoryId?: string;
|
|
110
|
+
repositoryName?: string;
|
|
111
|
+
};
|
|
112
|
+
export type DeploySourceControlRepositoryBranchesOptions = DeployBaseOptions & {
|
|
113
|
+
repositoryName?: string;
|
|
114
|
+
integrationId?: string;
|
|
115
|
+
};
|
|
116
|
+
export type DeploySourceControlRepositoryCreateTemplateOptions = DeployBaseOptions & {
|
|
117
|
+
provider?: string;
|
|
118
|
+
templateRepository?: string;
|
|
119
|
+
templateOwner?: string;
|
|
120
|
+
repositoryName?: string;
|
|
121
|
+
owner?: string;
|
|
122
|
+
integrationId?: string;
|
|
123
|
+
description?: string;
|
|
124
|
+
privateRepository?: boolean;
|
|
125
|
+
includeAllBranches?: boolean;
|
|
126
|
+
};
|
|
127
|
+
export type DeploySourceControlTemplatesOptions = DeployBaseOptions & {
|
|
128
|
+
provider?: string;
|
|
129
|
+
};
|
|
130
|
+
export type DeployDeploymentsOptions = DeployBaseOptions & {
|
|
131
|
+
id?: string;
|
|
132
|
+
status?: string;
|
|
133
|
+
};
|
|
134
|
+
export type DeployDeploymentActionOptions = DeployDeploymentsOptions & {
|
|
135
|
+
file?: string;
|
|
136
|
+
directory?: string;
|
|
137
|
+
};
|
|
138
|
+
export type DeployEnvironmentOptions = DeployBaseOptions & {
|
|
139
|
+
id?: string;
|
|
140
|
+
name?: string;
|
|
141
|
+
project?: string;
|
|
142
|
+
type?: string;
|
|
143
|
+
force?: boolean;
|
|
144
|
+
};
|
|
145
|
+
export type DeployEnvironmentDeleteOptions = DeployEnvironmentOptions & {
|
|
146
|
+
force?: boolean;
|
|
147
|
+
};
|
|
148
|
+
export type DeployEnvironmentRepositoryLinkOptions = DeployEnvironmentOptions & {
|
|
149
|
+
repositoryName?: string;
|
|
150
|
+
repositoryId?: string;
|
|
151
|
+
integrationId?: string;
|
|
152
|
+
repositoryRelativePath?: string;
|
|
153
|
+
repositoryBranch?: string;
|
|
154
|
+
};
|
|
155
|
+
export type DeployEnvironmentCreateOptions = DeployEnvironmentOptions & {
|
|
156
|
+
tenantType?: number;
|
|
157
|
+
cmOnly?: boolean;
|
|
158
|
+
};
|
|
159
|
+
export type DeployEnvironmentVariableOptions = DeployEnvironmentOptions & {
|
|
160
|
+
variable?: string;
|
|
161
|
+
value?: string;
|
|
162
|
+
target?: string;
|
|
163
|
+
secret?: boolean;
|
|
164
|
+
};
|
|
165
|
+
export type DeployEnvironmentDeploymentsOptions = DeployEnvironmentOptions & {
|
|
166
|
+
redeploy?: boolean;
|
|
167
|
+
};
|
|
168
|
+
export type DeployEnvironmentPromoteOptions = DeployEnvironmentOptions & {
|
|
169
|
+
sourceId?: string;
|
|
170
|
+
noStart?: boolean;
|
|
171
|
+
noWatch?: boolean;
|
|
172
|
+
waitForPostActions?: boolean;
|
|
173
|
+
timeout?: number;
|
|
174
|
+
};
|
|
175
|
+
export type DeployDeploymentWatchOptions = DeployDeploymentsOptions & {
|
|
176
|
+
waitForPostActions?: boolean;
|
|
177
|
+
timeout?: number;
|
|
178
|
+
};
|
|
179
|
+
export type DeployDeploymentLogsOptions = DeployDeploymentsOptions & {
|
|
180
|
+
output?: string;
|
|
181
|
+
};
|
|
182
|
+
export type DeployEditingHostCreateOptions = DeployBaseOptions & {
|
|
183
|
+
cmEnvironmentId?: string;
|
|
184
|
+
name?: string;
|
|
185
|
+
};
|
|
186
|
+
export type DeployEditingHostListOptions = DeployBaseOptions & {
|
|
187
|
+
project?: string;
|
|
188
|
+
};
|
|
189
|
+
export type DeployEditingHostDeleteOptions = DeployBaseOptions & {
|
|
190
|
+
id?: string;
|
|
191
|
+
force?: boolean;
|
|
192
|
+
};
|
|
193
|
+
export type DeployEditingHostUpdateOptions = DeployBaseOptions & {
|
|
194
|
+
id?: string;
|
|
195
|
+
name?: string;
|
|
196
|
+
};
|
|
197
|
+
export type DeployEditingHostDeployOptions = DeployBaseOptions & {
|
|
198
|
+
id?: string;
|
|
199
|
+
redeploy?: boolean;
|
|
200
|
+
noWatch?: boolean;
|
|
201
|
+
waitForPostActions?: boolean;
|
|
202
|
+
timeout?: number;
|
|
203
|
+
};
|
|
204
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/deploy/tasks/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG;IAC9C,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,iBAAiB,GAAG;IACtD;uEACmE;IACnE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;0DACsD;IACtD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF;;;;;;;;;GASG;AACH,MAAM,MAAM,qBAAqB,GAAG,iBAAiB,GAAG;IACtD;mGAC+F;IAC/F,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;0CACsC;IACtC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;mEAC+D;IAC/D,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,sEAAsE;IACtE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;0BACsB;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;6EACyE;IACzE,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;uCAEmC;IACnC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,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E,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tasks.d.ts","sourceRoot":"","sources":["../../src/deploy/tasks.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./tasks/index"), exports);
|
|
18
|
+
__exportStar(require("./tasks/types"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Recipe-side auth surface — re-export of scai's serialization OAuth/token
|
|
3
|
+
* plumbing. The recipe Authoring API uses the same Bearer token as the
|
|
4
|
+
* Management API, so there's nothing new here; this file exists so
|
|
5
|
+
* `src/recipe/api/*` is self-contained and can be mocked at one
|
|
6
|
+
* predictable seam in tests.
|
|
7
|
+
*/
|
|
8
|
+
export { getAccessToken } from "../../serialization/sitecore-api/auth";
|
|
9
|
+
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/recipe/api/auth.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getAccessToken = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Recipe-side auth surface — re-export of scai's serialization OAuth/token
|
|
6
|
+
* plumbing. The recipe Authoring API uses the same Bearer token as the
|
|
7
|
+
* Management API, so there's nothing new here; this file exists so
|
|
8
|
+
* `src/recipe/api/*` is self-contained and can be mocked at one
|
|
9
|
+
* predictable seam in tests.
|
|
10
|
+
*/
|
|
11
|
+
var auth_1 = require("../../serialization/sitecore-api/auth");
|
|
12
|
+
Object.defineProperty(exports, "getAccessToken", { enumerable: true, get: function () { return auth_1.getAccessToken; } });
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { EnvironmentConfiguration } from "../../config";
|
|
2
|
+
import { type AuthoringApiClient } from "./client";
|
|
3
|
+
import { type AuthoringRequestOptions } from "./graphql";
|
|
4
|
+
export interface AuthoringClientOptions {
|
|
5
|
+
environment: EnvironmentConfiguration;
|
|
6
|
+
request?: AuthoringRequestOptions;
|
|
7
|
+
/**
|
|
8
|
+
* Optional shared path → itemId cache. When provided, the client uses
|
|
9
|
+
* it as a read-through layer for `ensurePathExists` (skipping a wire
|
|
10
|
+
* call when the parent path was already resolved by an earlier
|
|
11
|
+
* createItem in the same push) and writes new entries as it
|
|
12
|
+
* auto-provisions folder ancestors.
|
|
13
|
+
*
|
|
14
|
+
* The recipe executor passes a map shared with its `capturedItemIds`
|
|
15
|
+
* so the workspace prefetch can pre-seed path resolutions and the
|
|
16
|
+
* client picks them up without re-fetching. Paths and recipe-internal
|
|
17
|
+
* refKey GUIDs share the same map but never collide (paths start
|
|
18
|
+
* with `/`).
|
|
19
|
+
*/
|
|
20
|
+
pathItemIdCache?: Map<string, string>;
|
|
21
|
+
/**
|
|
22
|
+
* Maximum number of paths bundled into one aliased `getItemsByPaths`
|
|
23
|
+
* GraphQL query. Defaults to 25 — picks a balance between request
|
|
24
|
+
* payload size and round-trip count. Tunable for tenants with
|
|
25
|
+
* unusually low or high request-size limits.
|
|
26
|
+
*/
|
|
27
|
+
batchedReadSize?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Number of batched-read queries dispatched in parallel. Defaults to 4.
|
|
30
|
+
* The shared GraphQL transport handles 429/503 backoff automatically,
|
|
31
|
+
* so safe to fan out — but kept conservative so a fresh push doesn't
|
|
32
|
+
* thunder-herd a cold tenant.
|
|
33
|
+
*/
|
|
34
|
+
batchedReadConcurrency?: number;
|
|
35
|
+
}
|
|
36
|
+
export declare const createAuthoringClient: (options: AuthoringClientOptions) => AuthoringApiClient;
|
|
37
|
+
//# sourceMappingURL=authoring-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authoring-client.d.ts","sourceRoot":"","sources":["../../../src/recipe/api/authoring-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAOzD,OAAO,EACL,KAAK,kBAAkB,EAOxB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAuB,KAAK,uBAAuB,EAAE,MAAM,WAAW,CAAC;AAyN9E,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,wBAAwB,CAAC;IACtC,OAAO,CAAC,EAAE,uBAAuB,CAAC;IAClC;;;;;;;;;;;;OAYG;IACH,eAAe,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC;;;;;OAKG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;;OAKG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAKD,eAAO,MAAM,qBAAqB,GAAI,SAAS,sBAAsB,KAAG,kBAwYvE,CAAC"}
|