@riverbankcms/sdk 0.129.0 → 0.129.1
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/README.md +19 -256
- package/dist/{PreviewEditorSidebar-B43CJ0g_.mjs → PreviewEditorSidebar-DceRseRV.mjs} +3 -3
- package/dist/{PreviewEditorUI-DHirVkeM.mjs → PreviewEditorUI-BNunq3kk.mjs} +2 -2
- package/dist/{SdkPreviewModeRuntime-BJumZy1B.mjs → SdkPreviewModeRuntime-Bt87-62u.mjs} +3 -3
- package/dist/{SiteChromeCustomizeContext-D9SlpwEj.mjs → SiteChromeCustomizeContext-BLl-OlL4.mjs} +460 -393
- package/dist/_dts/ai/src/contracts/commandExposure.d.ts +1 -1
- package/dist/_dts/ai/src/contracts/proposals.d.ts +4897 -4897
- package/dist/_dts/api/src/index.d.ts +2 -1
- package/dist/_dts/api/src/sdk-event-management.d.ts +53 -0
- package/dist/_dts/api/src/sdk-event-schedule.d.ts +3 -6
- package/dist/_dts/api/src/sdkContracts.d.ts +37 -50
- package/dist/_dts/api/src/sdkThemeWire.d.ts +2595 -0
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +13 -29
- package/dist/_dts/media-core/src/index.d.ts +1 -0
- package/dist/_dts/sdk/src/config/types.d.ts +4 -4
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/palette/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/site-styles/headerLayoutStyleCatalog.d.ts +254 -0
- package/dist/_dts/theme-core/src/site-styles/headerLegacyLooks.d.ts +372 -0
- package/dist/_dts/theme-core/src/site-styles/headerLookBranding.d.ts +106 -0
- package/dist/_dts/theme-core/src/site-styles/headerLookSelection.d.ts +2 -0
- package/dist/_dts/theme-core/src/site-styles/headerLookTypes.d.ts +212 -0
- package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +7 -841
- package/dist/_dts/theme-core/src/site-styles/headerStyleCompiler.d.ts +3 -0
- package/dist/_dts/theme-core/src/site-styles/headerStyleCompilerPrimitives.d.ts +23 -0
- package/dist/client/client.mjs +492 -426
- package/dist/client/hooks.mjs +59 -36
- package/dist/client/rendering/client.mjs +593 -547
- package/dist/client/rendering.mjs +491 -425
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/{sdk-runtime-CfZd5pAm.mjs → sdk-runtime-C20CVWbb.mjs} +1 -1
- package/dist/{separator-DkTe68HE.mjs → separator-BE3NCquy.mjs} +1 -1
- package/dist/server/components.mjs +72 -49
- package/dist/server/config-validation.mjs +59 -36
- package/dist/server/config.mjs +59 -36
- package/dist/server/data.mjs +59 -36
- package/dist/server/index.mjs +1 -1
- package/dist/server/manifest.mjs +4966 -0
- package/dist/server/next.mjs +73 -50
- package/dist/server/page-converter.mjs +40 -36
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +72 -49
- package/dist/server/rendering.mjs +72 -49
- package/dist/server/routing.mjs +472 -402
- package/dist/server/server.mjs +60 -37
- package/dist/server/theme-bridge.mjs +70 -66
- package/package.json +9 -12
- package/dist/_dts/api/src/event-presentation.d.ts +0 -14
- package/dist/_dts/blocks/src/definitions.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/canonical-entry-policy.d.ts +0 -53
- package/dist/_dts/sdk/src/cli/commands/audit.d.ts +0 -101
- package/dist/_dts/sdk/src/cli/commands/block.d.ts +0 -24
- package/dist/_dts/sdk/src/cli/commands/compare.d.ts +0 -62
- package/dist/_dts/sdk/src/cli/commands/content-type.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/commands/content.d.ts +0 -56
- package/dist/_dts/sdk/src/cli/commands/delete.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/commands/deploy.d.ts +0 -43
- package/dist/_dts/sdk/src/cli/commands/drafts.d.ts +0 -18
- package/dist/_dts/sdk/src/cli/commands/entry.d.ts +0 -55
- package/dist/_dts/sdk/src/cli/commands/env.d.ts +0 -31
- package/dist/_dts/sdk/src/cli/commands/event.d.ts +0 -23
- package/dist/_dts/sdk/src/cli/commands/eventOccurrenceSchedule.d.ts +0 -12
- package/dist/_dts/sdk/src/cli/commands/identifiers.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/commands/init-docs.d.ts +0 -13
- package/dist/_dts/sdk/src/cli/commands/manifest.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/commands/media-validation.d.ts +0 -3
- package/dist/_dts/sdk/src/cli/commands/migrate.d.ts +0 -11
- package/dist/_dts/sdk/src/cli/commands/navigation.d.ts +0 -12
- package/dist/_dts/sdk/src/cli/commands/page.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/commands/publish-all.d.ts +0 -50
- package/dist/_dts/sdk/src/cli/commands/pull-dated-offering-scope.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/commands/pull-dry-run.d.ts +0 -70
- package/dist/_dts/sdk/src/cli/commands/pull-scope-diff.d.ts +0 -8
- package/dist/_dts/sdk/src/cli/commands/pull.d.ts +0 -43
- package/dist/_dts/sdk/src/cli/commands/push/consts.d.ts +0 -3
- package/dist/_dts/sdk/src/cli/commands/push/execute/diff.d.ts +0 -19
- package/dist/_dts/sdk/src/cli/commands/push/execute/footer.d.ts +0 -42
- package/dist/_dts/sdk/src/cli/commands/push/execute/localMediaReporting.d.ts +0 -23
- package/dist/_dts/sdk/src/cli/commands/push/execute/media.d.ts +0 -22
- package/dist/_dts/sdk/src/cli/commands/push/execute/metadata.d.ts +0 -1
- package/dist/_dts/sdk/src/cli/commands/push/execute/reporting.d.ts +0 -7
- package/dist/_dts/sdk/src/cli/commands/push/execute/theme.d.ts +0 -63
- package/dist/_dts/sdk/src/cli/commands/push/filter.d.ts +0 -15
- package/dist/_dts/sdk/src/cli/commands/push/metadata.d.ts +0 -29
- package/dist/_dts/sdk/src/cli/commands/push/normalizeLocalContent.d.ts +0 -2
- package/dist/_dts/sdk/src/cli/commands/push/options.d.ts +0 -32
- package/dist/_dts/sdk/src/cli/commands/push/publishGuidance.d.ts +0 -15
- package/dist/_dts/sdk/src/cli/commands/push/pushAllExtras.d.ts +0 -25
- package/dist/_dts/sdk/src/cli/commands/push/scopes/commandBackedDatedOfferingScope.d.ts +0 -83
- package/dist/_dts/sdk/src/cli/commands/push/scopes/eventCategories.d.ts +0 -4
- package/dist/_dts/sdk/src/cli/commands/push/scopes/events.d.ts +0 -4
- package/dist/_dts/sdk/src/cli/commands/push/scopes/mediaPrep.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/commands/push/scopes/pushScopeGeneric.d.ts +0 -6
- package/dist/_dts/sdk/src/cli/commands/push/scopes/types.d.ts +0 -87
- package/dist/_dts/sdk/src/cli/commands/push/scopes/venues.d.ts +0 -4
- package/dist/_dts/sdk/src/cli/commands/push/stale-resolution.d.ts +0 -48
- package/dist/_dts/sdk/src/cli/commands/push/stale.d.ts +0 -17
- package/dist/_dts/sdk/src/cli/commands/push/verification.d.ts +0 -56
- package/dist/_dts/sdk/src/cli/commands/push/workflowPlan.d.ts +0 -34
- package/dist/_dts/sdk/src/cli/commands/push-execute.d.ts +0 -54
- package/dist/_dts/sdk/src/cli/commands/push.d.ts +0 -40
- package/dist/_dts/sdk/src/cli/commands/setup.d.ts +0 -3
- package/dist/_dts/sdk/src/cli/commands/style.d.ts +0 -60
- package/dist/_dts/sdk/src/cli/commands/verify.d.ts +0 -11
- package/dist/_dts/sdk/src/cli/commands/webhooks.d.ts +0 -44
- package/dist/_dts/sdk/src/cli/config-loader.d.ts +0 -47
- package/dist/_dts/sdk/src/cli/content/collectionWriters.d.ts +0 -23
- package/dist/_dts/sdk/src/cli/content/edit/format.d.ts +0 -2
- package/dist/_dts/sdk/src/cli/content/edit/path.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/content/edit/planner.d.ts +0 -46
- package/dist/_dts/sdk/src/cli/content/entryPaths.d.ts +0 -6
- package/dist/_dts/sdk/src/cli/content/footerFile.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/content/fs-utils.d.ts +0 -39
- package/dist/_dts/sdk/src/cli/content/legacyEventScheduleShapeError.d.ts +0 -5
- package/dist/_dts/sdk/src/cli/content/localEventSchedule.d.ts +0 -17
- package/dist/_dts/sdk/src/cli/content/media-manifest.d.ts +0 -13
- package/dist/_dts/sdk/src/cli/content/metadataAfterPush.d.ts +0 -25
- package/dist/_dts/sdk/src/cli/content/metadataStore.d.ts +0 -29
- package/dist/_dts/sdk/src/cli/content/reader.d.ts +0 -488
- package/dist/_dts/sdk/src/cli/content/writer.d.ts +0 -142
- package/dist/_dts/sdk/src/cli/env-scope.d.ts +0 -2
- package/dist/_dts/sdk/src/cli/env.d.ts +0 -71
- package/dist/_dts/sdk/src/cli/errors.d.ts +0 -62
- package/dist/_dts/sdk/src/cli/helpers/ai-runtime.d.ts +0 -2
- package/dist/_dts/sdk/src/cli/helpers.d.ts +0 -399
- package/dist/_dts/sdk/src/cli/index.d.ts +0 -11
- package/dist/_dts/sdk/src/cli/init-docs/constants.d.ts +0 -16
- package/dist/_dts/sdk/src/cli/init-docs/index.d.ts +0 -12
- package/dist/_dts/sdk/src/cli/init-docs/templates.d.ts +0 -18
- package/dist/_dts/sdk/src/cli/init-docs/zod-to-markdown.d.ts +0 -28
- package/dist/_dts/sdk/src/cli/load-config.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/media/identifiers.d.ts +0 -18
- package/dist/_dts/sdk/src/cli/media/local-media.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/media/local-sync.d.ts +0 -91
- package/dist/_dts/sdk/src/cli/media/portable.d.ts +0 -11
- package/dist/_dts/sdk/src/cli/media/rich-text.d.ts +0 -12
- package/dist/_dts/sdk/src/cli/media/value-utils.d.ts +0 -15
- package/dist/_dts/sdk/src/cli/media/write-guard.d.ts +0 -52
- package/dist/_dts/sdk/src/cli/merge-remote/entryLocal.d.ts +0 -3
- package/dist/_dts/sdk/src/cli/merge-remote/entryMerge.d.ts +0 -78
- package/dist/_dts/sdk/src/cli/merge-remote/entryMergePlan.d.ts +0 -45
- package/dist/_dts/sdk/src/cli/merge-remote/entryMergePush.d.ts +0 -24
- package/dist/_dts/sdk/src/cli/merge-remote/entryMergeReport.d.ts +0 -18
- package/dist/_dts/sdk/src/cli/merge-remote/entryRemote.d.ts +0 -9
- package/dist/_dts/sdk/src/cli/merge-remote/entrySnapshots.d.ts +0 -48
- package/dist/_dts/sdk/src/cli/merge-remote/mergeFieldChanges.d.ts +0 -22
- package/dist/_dts/sdk/src/cli/merge-remote/pageLocal.d.ts +0 -3
- package/dist/_dts/sdk/src/cli/merge-remote/pageMerge.d.ts +0 -78
- package/dist/_dts/sdk/src/cli/merge-remote/pageMergePlan.d.ts +0 -36
- package/dist/_dts/sdk/src/cli/merge-remote/pageMergePush.d.ts +0 -23
- package/dist/_dts/sdk/src/cli/merge-remote/pageMergeReport.d.ts +0 -17
- package/dist/_dts/sdk/src/cli/merge-remote/pageSnapshots.d.ts +0 -46
- package/dist/_dts/sdk/src/cli/merge-remote/sharedBaseSnapshots.d.ts +0 -32
- package/dist/_dts/sdk/src/cli/merge-remote/sharedMergePlan.d.ts +0 -27
- package/dist/_dts/sdk/src/cli/merge-remote/sharedMergeReport.d.ts +0 -63
- package/dist/_dts/sdk/src/cli/migrations/entries.d.ts +0 -28
- package/dist/_dts/sdk/src/cli/migrations/events.d.ts +0 -73
- package/dist/_dts/sdk/src/cli/navigationIdentity.d.ts +0 -11
- package/dist/_dts/sdk/src/cli/output.d.ts +0 -133
- package/dist/_dts/sdk/src/cli/program.d.ts +0 -29
- package/dist/_dts/sdk/src/cli/push-config.d.ts +0 -49
- package/dist/_dts/sdk/src/cli/setup/setupPlan.d.ts +0 -51
- package/dist/_dts/sdk/src/cli/site-commands/commandKeys.d.ts +0 -13
- package/dist/_dts/sdk/src/cli/site-commands/commandRuntime.d.ts +0 -170
- package/dist/_dts/sdk/src/cli/site-commands/commandRuntimeCompat.d.ts +0 -21
- package/dist/_dts/sdk/src/cli/site-commands/commandSurfaceDispatch.d.ts +0 -32
- package/dist/_dts/sdk/src/cli/site-commands/datedOfferingCommands.d.ts +0 -53
- package/dist/_dts/sdk/src/cli/site-commands/entryCommands.d.ts +0 -65
- package/dist/_dts/sdk/src/cli/site-commands/eventScheduleCompiler.d.ts +0 -24
- package/dist/_dts/sdk/src/cli/site-commands/footerCommands.d.ts +0 -68
- package/dist/_dts/sdk/src/cli/site-commands/formCommands.d.ts +0 -53
- package/dist/_dts/sdk/src/cli/site-commands/index.d.ts +0 -8
- package/dist/_dts/sdk/src/cli/site-commands/localBlockManifestResolver.d.ts +0 -31
- package/dist/_dts/sdk/src/cli/site-commands/navigationCommands.d.ts +0 -57
- package/dist/_dts/sdk/src/cli/site-commands/oneOffCommands.d.ts +0 -82
- package/dist/_dts/sdk/src/cli/site-commands/pageCommands.d.ts +0 -84
- package/dist/_dts/sdk/src/cli/site-commands/pushExecution.d.ts +0 -39
- package/dist/_dts/sdk/src/cli/site-commands/pushExecutionPlan.d.ts +0 -8
- package/dist/_dts/sdk/src/cli/site-commands/pushExecutionTypes.d.ts +0 -97
- package/dist/_dts/sdk/src/cli/site-commands/residualSettingsTrimming.d.ts +0 -15
- package/dist/_dts/sdk/src/cli/sync/diff.d.ts +0 -222
- package/dist/_dts/sdk/src/cli/sync/executor.d.ts +0 -84
- package/dist/_dts/sdk/src/cli/sync/field-diff.d.ts +0 -39
- package/dist/_dts/sdk/src/cli/sync/index.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/sync/mapper.d.ts +0 -41
- package/dist/_dts/sdk/src/cli/sync/media-sync.d.ts +0 -15
- package/dist/_dts/sdk/src/cli/sync/media.d.ts +0 -158
- package/dist/_dts/sdk/src/cli/sync/syncResultAggregation.d.ts +0 -4
- package/dist/_dts/sdk/src/cli/sync/validation.d.ts +0 -68
- package/dist/_dts/sdk/src/cli/utils/checksum.d.ts +0 -1
- package/dist/_dts/sdk/src/client/management/blocks.d.ts +0 -19
- package/dist/_dts/sdk/src/client/management/catalog.d.ts +0 -10
- package/dist/_dts/sdk/src/client/management/entries.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/eventCategories.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/events.d.ts +0 -7
- package/dist/_dts/sdk/src/client/management/footer.d.ts +0 -9
- package/dist/_dts/sdk/src/client/management/forms.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/http.d.ts +0 -79
- package/dist/_dts/sdk/src/client/management/identifiers.d.ts +0 -11
- package/dist/_dts/sdk/src/client/management/index.d.ts +0 -41
- package/dist/_dts/sdk/src/client/management/media.d.ts +0 -72
- package/dist/_dts/sdk/src/client/management/navigation.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/pages.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/pull.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/settings-branding.d.ts +0 -32
- package/dist/_dts/sdk/src/client/management/settings.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/theme.d.ts +0 -8
- package/dist/_dts/sdk/src/client/management/types.d.ts +0 -1069
- package/dist/_dts/sdk/src/client/management/venues.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/webhooks.d.ts +0 -3
- package/dist/_dts/sdk/src/test/env.d.ts +0 -4
- package/dist/_dts/site-commands/src/adapter.d.ts +0 -23
- package/dist/_dts/site-commands/src/appointmentCommandSchemas.d.ts +0 -100
- package/dist/_dts/site-commands/src/capabilityGaps.d.ts +0 -8
- package/dist/_dts/site-commands/src/commandContract.d.ts +0 -1277
- package/dist/_dts/site-commands/src/commandDomain.d.ts +0 -20
- package/dist/_dts/site-commands/src/commandIdentifiers.d.ts +0 -7
- package/dist/_dts/site-commands/src/commandValidation.d.ts +0 -10
- package/dist/_dts/site-commands/src/commands.d.ts +0 -1983
- package/dist/_dts/site-commands/src/domain.d.ts +0 -104
- package/dist/_dts/site-commands/src/eventCommandContent.d.ts +0 -11
- package/dist/_dts/site-commands/src/exposure.d.ts +0 -41
- package/dist/_dts/site-commands/src/guards.d.ts +0 -1
- package/dist/_dts/site-commands/src/index.d.ts +0 -18
- package/dist/_dts/site-commands/src/metadata.d.ts +0 -555
- package/dist/_dts/site-commands/src/pagePaths.d.ts +0 -6
- package/dist/_dts/site-commands/src/planner.d.ts +0 -58
- package/dist/_dts/site-commands/src/refContributions.d.ts +0 -11
- package/dist/_dts/site-commands/src/refs.d.ts +0 -90
- package/dist/_dts/site-commands/src/siteStyleCommandSchema.d.ts +0 -405
- package/dist/_dts/site-commands/src/siteStyleSelectionSchemaBuilder.d.ts +0 -46
- package/dist/_dts/site-commands/src/stableJson.d.ts +0 -5
- package/dist/_dts/site-commands/src/staticExecutionGaps.d.ts +0 -10
- package/dist/_dts/site-commands/src/venueCommandMapping.d.ts +0 -21
- package/dist/_dts/theme-core/src/data.d.ts +0 -12
- package/dist/_dts/theme-core/src/site-styles/headerStyleParts.d.ts +0 -4
- package/dist/cli/index.mjs +0 -162988
- package/dist/cli/init-docs/content/agents-section.md +0 -67
- package/dist/cli/init-docs/content/cli-reference.md +0 -1238
- package/dist/cli/init-docs/content/content-management.md +0 -792
- package/dist/cli/init-docs/content/context-brand.md +0 -125
- package/dist/cli/init-docs/content/context-brief.md +0 -77
- package/dist/cli/init-docs/content/context-knowledge.md +0 -111
- package/dist/cli/init-docs/content/getting-started.md +0 -171
- package/dist/cli/init-docs/content/site-workflows-readme.md +0 -96
- package/dist/cli/init-docs/content/workflow-add-block.md +0 -299
- package/dist/cli/init-docs/content/workflow-agent-safe-sync.md +0 -83
- package/dist/cli/init-docs/content/workflow-block-extensions.md +0 -370
- package/dist/cli/init-docs/content/workflow-cmsify-page.md +0 -357
- package/dist/cli/init-docs/content/workflow-content-types.md +0 -330
- package/dist/cli/init-docs/content/workflow-create-page.md +0 -212
- package/dist/cli/init-docs/content/workflow-custom-block.md +0 -470
- package/dist/cli/init-docs/content/workflow-editor-workflows.md +0 -130
- package/dist/cli/init-docs/content/workflow-isr-revalidation.md +0 -158
- package/dist/cli/init-docs/content/workflow-preview-mode.md +0 -252
- package/dist/cli/init-docs/content/workflow-publish.md +0 -285
- package/dist/cli/init-docs/content/workflow-remote-setup.md +0 -51
- package/dist/cli/init-docs/content/workflow-templates.md +0 -381
- /package/dist/_dts/{sdk/src/cli/utils/mime.d.ts → media-core/src/mimeType.d.ts} +0 -0
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
import { type Result, type SiteId } from '../../../../core/src/index';
|
|
2
|
-
import { type DryRunReport, type SiteCommandBatch, type SiteCommandExecutionSuccess, type SiteCommandOf, type SiteCommandPlanFor, type SiteCommandRef, type SiteCommandType, type SiteCommandValidationError } from '../../../../site-commands/src/index';
|
|
3
|
-
import { type ManagementApiErrorRequest } from '../../client/management';
|
|
4
|
-
import type { EnvTarget } from '../helpers';
|
|
5
|
-
export type CliCommandBatchRefInput<TSource extends string = string> = Readonly<{
|
|
6
|
-
source: TSource;
|
|
7
|
-
siteId: SiteId;
|
|
8
|
-
targetEnv: EnvTarget;
|
|
9
|
-
}>;
|
|
10
|
-
export type CliCommandExecutionError<TCommandType extends SiteCommandType> = Readonly<{
|
|
11
|
-
code: 'management_api_failed';
|
|
12
|
-
commandRef: SiteCommandRef;
|
|
13
|
-
commandType: TCommandType;
|
|
14
|
-
message: string;
|
|
15
|
-
detail?: CliCommandFailureDetail;
|
|
16
|
-
}>;
|
|
17
|
-
export type CliCommandFailureFieldError = Readonly<{
|
|
18
|
-
field: string;
|
|
19
|
-
message: string;
|
|
20
|
-
code?: string;
|
|
21
|
-
}>;
|
|
22
|
-
export type CliCommandFailureDetail = Readonly<{
|
|
23
|
-
tag: 'management_api';
|
|
24
|
-
code: string;
|
|
25
|
-
statusCode?: number;
|
|
26
|
-
request?: ManagementApiErrorRequest;
|
|
27
|
-
fieldErrors: readonly CliCommandFailureFieldError[];
|
|
28
|
-
details?: unknown;
|
|
29
|
-
}> | Readonly<{
|
|
30
|
-
tag: 'unknown';
|
|
31
|
-
}>;
|
|
32
|
-
export type CliCommandExecutionResult<TCommandType extends SiteCommandType> = Readonly<{
|
|
33
|
-
status: 'applied';
|
|
34
|
-
applied: readonly SiteCommandExecutionSuccess[];
|
|
35
|
-
}> | Readonly<{
|
|
36
|
-
status: 'failed';
|
|
37
|
-
applied: readonly SiteCommandExecutionSuccess[];
|
|
38
|
-
failed: CliCommandExecutionError<TCommandType>;
|
|
39
|
-
}>;
|
|
40
|
-
export type PlannedCliCommand<TCommand extends Readonly<{
|
|
41
|
-
ref: SiteCommandRef;
|
|
42
|
-
type: SiteCommandType;
|
|
43
|
-
}>> = Readonly<{
|
|
44
|
-
command: TCommand;
|
|
45
|
-
}>;
|
|
46
|
-
export type CliCommandReportBinding<TCommand extends Readonly<{
|
|
47
|
-
ref: SiteCommandRef;
|
|
48
|
-
type: SiteCommandType;
|
|
49
|
-
}>, TSubject> = Readonly<{
|
|
50
|
-
command: TCommand;
|
|
51
|
-
reportSubject: TSubject;
|
|
52
|
-
}>;
|
|
53
|
-
export type CliCommandReportedPlannedCommand<TCommand extends Readonly<{
|
|
54
|
-
ref: SiteCommandRef;
|
|
55
|
-
type: SiteCommandType;
|
|
56
|
-
}>, TSubject> = Readonly<{
|
|
57
|
-
plannedCommand: PlannedCliCommand<TCommand>;
|
|
58
|
-
reportSubject: TSubject;
|
|
59
|
-
}>;
|
|
60
|
-
export type CliCommandExecutionReportFailure<TSubject> = Readonly<{
|
|
61
|
-
identifier: string;
|
|
62
|
-
message: string;
|
|
63
|
-
detail?: CliCommandFailureDetail;
|
|
64
|
-
subject?: TSubject;
|
|
65
|
-
}>;
|
|
66
|
-
export type CliCommandOutcome<TSubject> = Readonly<{
|
|
67
|
-
status: 'applied';
|
|
68
|
-
commandRef: SiteCommandRef;
|
|
69
|
-
commandType: SiteCommandType;
|
|
70
|
-
subject: TSubject;
|
|
71
|
-
}> | Readonly<{
|
|
72
|
-
status: 'failed';
|
|
73
|
-
commandRef: SiteCommandRef;
|
|
74
|
-
commandType: SiteCommandType;
|
|
75
|
-
identifier: string;
|
|
76
|
-
message: string;
|
|
77
|
-
detail?: CliCommandFailureDetail;
|
|
78
|
-
subject?: TSubject;
|
|
79
|
-
}> | Readonly<{
|
|
80
|
-
status: 'skipped_by_stop_policy';
|
|
81
|
-
commandRef: SiteCommandRef;
|
|
82
|
-
commandType: SiteCommandType;
|
|
83
|
-
identifier: string;
|
|
84
|
-
subject: TSubject;
|
|
85
|
-
}> | Readonly<{
|
|
86
|
-
status: 'compile_failed';
|
|
87
|
-
identifier: string;
|
|
88
|
-
message: string;
|
|
89
|
-
subject?: TSubject;
|
|
90
|
-
}> | Readonly<{
|
|
91
|
-
status: 'preflight_failed';
|
|
92
|
-
identifier: string;
|
|
93
|
-
message: string;
|
|
94
|
-
subject?: TSubject;
|
|
95
|
-
}>;
|
|
96
|
-
export type CliCommandExecutionReport<TSubject> = Readonly<{
|
|
97
|
-
outcomes: readonly CliCommandOutcome<TSubject>[];
|
|
98
|
-
appliedSubjects: readonly TSubject[];
|
|
99
|
-
failure: CliCommandExecutionReportFailure<TSubject> | null;
|
|
100
|
-
warnings: readonly string[];
|
|
101
|
-
}>;
|
|
102
|
-
export type CliCommandValidationCompileError = Readonly<{
|
|
103
|
-
code: 'command_validation_failed';
|
|
104
|
-
errors: readonly SiteCommandValidationError[];
|
|
105
|
-
message: string;
|
|
106
|
-
}>;
|
|
107
|
-
export type CliCommandCompileBatchSuccess<TCommandType extends SiteCommandType> = Readonly<{
|
|
108
|
-
batch: SiteCommandBatch;
|
|
109
|
-
plan: SiteCommandPlanFor<TCommandType>;
|
|
110
|
-
dryRunReport: DryRunReport;
|
|
111
|
-
}>;
|
|
112
|
-
export type CliCommandCompileBatchSuccessWithReports<TCommandType extends SiteCommandType, TSubject> = Readonly<{
|
|
113
|
-
reportedCommands: readonly CliCommandReportedPlannedCommand<SiteCommandOf<TCommandType>, TSubject>[];
|
|
114
|
-
}> & CliCommandCompileBatchSuccess<TCommandType>;
|
|
115
|
-
export declare function createCliCommandBatchRef(input: CliCommandBatchRefInput): string;
|
|
116
|
-
export declare function formatSiteCommandValidationErrors(errors: readonly {
|
|
117
|
-
message: string;
|
|
118
|
-
}[]): string;
|
|
119
|
-
export declare function managementErrorDetail(error: unknown): CliCommandFailureDetail;
|
|
120
|
-
export declare function formatManagementError(error: unknown): string;
|
|
121
|
-
export declare function planCliCommandBatchForTypes<TCommandType extends SiteCommandType>(input: CliCommandBatchRefInput & Readonly<{
|
|
122
|
-
commands: readonly SiteCommandOf<TCommandType>[];
|
|
123
|
-
commandTypes: readonly TCommandType[];
|
|
124
|
-
}>): Result<CliCommandCompileBatchSuccess<TCommandType>, CliCommandValidationCompileError>;
|
|
125
|
-
export declare function planCliCommandBatchForBindings<TCommandType extends SiteCommandType, TSubject>(input: CliCommandBatchRefInput & Readonly<{
|
|
126
|
-
commandBindings: readonly CliCommandReportBinding<SiteCommandOf<TCommandType>, TSubject>[];
|
|
127
|
-
commandTypes: readonly TCommandType[];
|
|
128
|
-
}>): Result<CliCommandCompileBatchSuccessWithReports<TCommandType, TSubject>, CliCommandValidationCompileError>;
|
|
129
|
-
export declare function executeCliCommandPlan<TCommand extends Readonly<{
|
|
130
|
-
ref: SiteCommandRef;
|
|
131
|
-
type: TCommandType;
|
|
132
|
-
}>, TCommandType extends SiteCommandType>(input: Readonly<{
|
|
133
|
-
commands: readonly PlannedCliCommand<TCommand>[];
|
|
134
|
-
applyCommand: (command: TCommand) => Promise<void>;
|
|
135
|
-
}>): Promise<CliCommandExecutionResult<TCommandType>>;
|
|
136
|
-
export declare function commandExecutionToReport<TCommand extends Readonly<{
|
|
137
|
-
ref: SiteCommandRef;
|
|
138
|
-
type: TCommandType;
|
|
139
|
-
}>, TCommandType extends SiteCommandType, TSubject>(input: Readonly<{
|
|
140
|
-
execution: CliCommandExecutionResult<TCommandType>;
|
|
141
|
-
reportedCommands: readonly CliCommandReportedPlannedCommand<TCommand, TSubject>[];
|
|
142
|
-
resourceLabel: string;
|
|
143
|
-
commandDisplayIdentifier: (command: TCommand) => string;
|
|
144
|
-
includeFailureSubject?: boolean;
|
|
145
|
-
}>): CliCommandExecutionReport<TSubject>;
|
|
146
|
-
export declare function commandCompileFailureToReport<TSubject>(input: Readonly<{
|
|
147
|
-
identifier: string;
|
|
148
|
-
message: string;
|
|
149
|
-
detail?: CliCommandFailureDetail;
|
|
150
|
-
subject?: TSubject;
|
|
151
|
-
warnings?: readonly string[];
|
|
152
|
-
}>): CliCommandExecutionReport<TSubject>;
|
|
153
|
-
export declare function executeCompiledCliCommandPlanAsReport<TCompiledPlan extends Readonly<{
|
|
154
|
-
plan: Readonly<{
|
|
155
|
-
commands: readonly unknown[];
|
|
156
|
-
}>;
|
|
157
|
-
}>, TExecutionResult, TSubject>(input: Readonly<{
|
|
158
|
-
compiledPlan: TCompiledPlan;
|
|
159
|
-
onBeforeExecute?: (commandCount: number) => void;
|
|
160
|
-
executePlan: (plan: TCompiledPlan['plan']) => Promise<TExecutionResult>;
|
|
161
|
-
executionToReport: (input: Readonly<{
|
|
162
|
-
execution: TExecutionResult;
|
|
163
|
-
compiledPlan: TCompiledPlan;
|
|
164
|
-
}>) => CliCommandExecutionReport<TSubject>;
|
|
165
|
-
}>): Promise<CliCommandExecutionReport<TSubject>>;
|
|
166
|
-
export declare function reportFromOutcomes<TSubject>(input: Readonly<{
|
|
167
|
-
outcomes: readonly CliCommandOutcome<TSubject>[];
|
|
168
|
-
warnings?: readonly string[];
|
|
169
|
-
}>): CliCommandExecutionReport<TSubject>;
|
|
170
|
-
export declare function commandReportHasFailures(report: CliCommandExecutionReport<unknown>): boolean;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { type SyncResult } from '../sync';
|
|
2
|
-
import { type CliCommandExecutionReport } from './commandRuntime';
|
|
3
|
-
export declare function commandReportToSyncResult<TSubject>(input: Readonly<{
|
|
4
|
-
report: CliCommandExecutionReport<TSubject>;
|
|
5
|
-
incrementSuccess: (result: SyncResult, subject: TSubject) => void;
|
|
6
|
-
recordFailure: (result: SyncResult, identifier: string, message: string, subject: TSubject | undefined) => void;
|
|
7
|
-
}>): SyncResult;
|
|
8
|
-
export declare function executeCompiledCliCommandPlanAsSyncResult<TCompiledPlan extends Readonly<{
|
|
9
|
-
plan: Readonly<{
|
|
10
|
-
commands: readonly unknown[];
|
|
11
|
-
}>;
|
|
12
|
-
}>, TExecutionResult, TSubject>(input: Readonly<{
|
|
13
|
-
compiledPlan: TCompiledPlan;
|
|
14
|
-
onBeforeExecute?: (commandCount: number) => void;
|
|
15
|
-
executePlan: (plan: TCompiledPlan['plan']) => Promise<TExecutionResult>;
|
|
16
|
-
executionToReport: (input: Readonly<{
|
|
17
|
-
execution: TExecutionResult;
|
|
18
|
-
compiledPlan: TCompiledPlan;
|
|
19
|
-
}>) => CliCommandExecutionReport<TSubject>;
|
|
20
|
-
reportToSyncResult: (report: CliCommandExecutionReport<TSubject>) => SyncResult;
|
|
21
|
-
}>): Promise<SyncResult>;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { type Result, type SiteId } from '../../../../core/src/index';
|
|
2
|
-
import type { ManagementClient } from '../../client/management/types';
|
|
3
|
-
import type { LocalContent } from '../content/reader';
|
|
4
|
-
import type { EnvTarget } from '../helpers';
|
|
5
|
-
import type { ContentDiff, SyncResult } from '../sync';
|
|
6
|
-
import { compilePagePushCommands } from './pageCommands';
|
|
7
|
-
import type { CommandSurface, CommandSurfaceCompileResult, CommandSurfaceCompileSuccess, CommandSurfaceExecutionReport, CompiledContentPushExecutionPlan, CompiledContentPushExecutionStep, ContentPushExecutionPlan, ContentPushExecutionReport } from './pushExecutionTypes';
|
|
8
|
-
export type CommandSurfaceDispatchInput = Readonly<{
|
|
9
|
-
siteId: SiteId;
|
|
10
|
-
target: EnvTarget;
|
|
11
|
-
diff: ContentDiff;
|
|
12
|
-
local: LocalContent;
|
|
13
|
-
client: ManagementClient;
|
|
14
|
-
customBlocks?: Parameters<typeof compilePagePushCommands>[0]['customBlocks'];
|
|
15
|
-
blockFieldExtensions: Parameters<typeof compilePagePushCommands>[0]['blockFieldExtensions'];
|
|
16
|
-
onEntryCommandCount?: (commandCount: number) => void;
|
|
17
|
-
onFormCommandCount?: (commandCount: number) => void;
|
|
18
|
-
onNavigationCommandCount?: (commandCount: number) => void;
|
|
19
|
-
onPageCommandCount?: (commandCount: number) => void;
|
|
20
|
-
}>;
|
|
21
|
-
export type CommandSurfaceDispatchDependencies = Readonly<{
|
|
22
|
-
compileCommandSurface?: (surface: CommandSurface, input: CommandSurfaceDispatchInput) => CommandSurfaceCompileResult;
|
|
23
|
-
preflightCommandSurfaceAsReport?: (surface: CommandSurfaceCompileSuccess, input: CommandSurfaceDispatchInput) => CommandSurfaceExecutionReport;
|
|
24
|
-
executeCommandSurfaceAsReport?: (surface: CommandSurfaceCompileSuccess, input: CommandSurfaceDispatchInput) => Promise<CommandSurfaceExecutionReport>;
|
|
25
|
-
}>;
|
|
26
|
-
export declare function compileContentPushExecutionPlan(plan: ContentPushExecutionPlan, input: CommandSurfaceDispatchInput, dependencies?: CommandSurfaceDispatchDependencies): Result<CompiledContentPushExecutionPlan, ContentPushExecutionReport>;
|
|
27
|
-
export declare function preflightContentPushExecutionPlan(steps: readonly CompiledContentPushExecutionStep[], input: CommandSurfaceDispatchInput, dependencies?: CommandSurfaceDispatchDependencies): ContentPushExecutionReport;
|
|
28
|
-
export declare function contentPushExecutionReportHasFailures(report: ContentPushExecutionReport): boolean;
|
|
29
|
-
export declare function executeCommandSurfaceAsReport(surface: CommandSurfaceCompileSuccess, input: CommandSurfaceDispatchInput): Promise<CommandSurfaceExecutionReport>;
|
|
30
|
-
export declare function preflightCommandSurfaceAsReport(surface: CommandSurfaceCompileSuccess, input: CommandSurfaceDispatchInput): CommandSurfaceExecutionReport;
|
|
31
|
-
export declare function skippedRemainingCommandReports(steps: readonly CompiledContentPushExecutionStep[]): CommandSurfaceExecutionReport[];
|
|
32
|
-
export declare function commandSurfaceReportToSyncResult(report: CommandSurfaceExecutionReport): SyncResult;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { type Result, type SiteId } from '../../../../core/src/index';
|
|
2
|
-
import type { ManagementClient } from '../../client/management/types';
|
|
3
|
-
import type { LocalEvent, LocalEventCategory, LocalVenue } from '../content/reader';
|
|
4
|
-
import type { EnvTarget } from '../helpers';
|
|
5
|
-
import type { PushScopeResult } from '../commands/push/scopes/types';
|
|
6
|
-
import { type CliCommandCompileBatchSuccessWithReports, type CliCommandValidationCompileError } from './commandRuntime';
|
|
7
|
-
export type CliDatedOfferingCommandBatchSource = 'push_venues' | 'push_event_categories' | 'push_events' | 'push_all_dated_offerings';
|
|
8
|
-
export type DatedOfferingSiteCommandType = 'upsertVenue' | 'deleteVenue' | 'upsertEventCategory' | 'deleteEventCategory' | 'upsertEventSeries' | 'deleteEventSeries';
|
|
9
|
-
type DatedOfferingCounter = 'created' | 'updated' | 'deleted';
|
|
10
|
-
export type DatedOfferingReportSubject = Readonly<{
|
|
11
|
-
scopeCommand: 'venues' | 'event-categories' | 'events';
|
|
12
|
-
scopeName: string;
|
|
13
|
-
itemLabelSingular: string;
|
|
14
|
-
identifier: string;
|
|
15
|
-
counter: DatedOfferingCounter;
|
|
16
|
-
}>;
|
|
17
|
-
export type CliDatedOfferingCommandCompileError = Readonly<{
|
|
18
|
-
code: 'unsupported_local_shape';
|
|
19
|
-
identifier: string;
|
|
20
|
-
message: string;
|
|
21
|
-
}> | CliCommandValidationCompileError;
|
|
22
|
-
export type CliDatedOfferingCommandCompileInput = Readonly<{
|
|
23
|
-
source: CliDatedOfferingCommandBatchSource;
|
|
24
|
-
siteId: SiteId;
|
|
25
|
-
targetEnv: EnvTarget;
|
|
26
|
-
venues?: DatedOfferingUpsertInput<LocalVenue>;
|
|
27
|
-
eventCategories?: DatedOfferingUpsertInput<LocalEventCategory>;
|
|
28
|
-
events?: DatedOfferingUpsertInput<LocalEvent>;
|
|
29
|
-
delete?: DatedOfferingDeleteInput;
|
|
30
|
-
}>;
|
|
31
|
-
export type DatedOfferingUpsertInput<TItem> = Readonly<{
|
|
32
|
-
items: readonly DatedOfferingUpsertItem<TItem>[];
|
|
33
|
-
}>;
|
|
34
|
-
export type DatedOfferingUpsertItem<TItem> = Readonly<{
|
|
35
|
-
item: TItem;
|
|
36
|
-
exists: boolean;
|
|
37
|
-
}>;
|
|
38
|
-
export type DatedOfferingDeleteInput = Readonly<{
|
|
39
|
-
venues?: readonly string[];
|
|
40
|
-
eventCategories?: readonly string[];
|
|
41
|
-
events?: readonly string[];
|
|
42
|
-
}>;
|
|
43
|
-
export type CliDatedOfferingCommandCompileSuccess = CliCommandCompileBatchSuccessWithReports<DatedOfferingSiteCommandType, DatedOfferingReportSubject>;
|
|
44
|
-
export declare const datedOfferingSiteCommandTypes: readonly ["upsertVenue", "deleteVenue", "upsertEventCategory", "deleteEventCategory", "upsertEventSeries", "deleteEventSeries"];
|
|
45
|
-
export declare function compileDatedOfferingPushCommands(input: CliDatedOfferingCommandCompileInput): Result<CliDatedOfferingCommandCompileSuccess, CliDatedOfferingCommandCompileError>;
|
|
46
|
-
export declare function executeDatedOfferingCommandPlanAsPushScopeResult(input: Readonly<{
|
|
47
|
-
client: Pick<ManagementClient, 'venues' | 'eventCategories' | 'events'>;
|
|
48
|
-
compiledPlan: CliDatedOfferingCommandCompileSuccess;
|
|
49
|
-
scopeCommand: DatedOfferingReportSubject['scopeCommand'];
|
|
50
|
-
scopeName: string;
|
|
51
|
-
}>): Promise<PushScopeResult>;
|
|
52
|
-
export declare function syncResultForDatedOfferingCommandCompileError(error: CliDatedOfferingCommandCompileError, scopeCommand: DatedOfferingReportSubject['scopeCommand'], scopeName: string): PushScopeResult;
|
|
53
|
-
export {};
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { type Result, type SiteId } from '../../../../core/src/index';
|
|
2
|
-
import { type AllowedRuntime, type SiteCommandOf } from '../../../../site-commands/src/index';
|
|
3
|
-
import type { ManagementClient } from '../../client/management/types';
|
|
4
|
-
import type { LocalContent } from '../content/reader';
|
|
5
|
-
import type { EnvTarget } from '../helpers';
|
|
6
|
-
import type { ContentDiff } from '../sync/diff';
|
|
7
|
-
import type { SyncResult } from '../sync';
|
|
8
|
-
import { type CliContentTypeKey, type CliEntryIdentifier } from './commandKeys';
|
|
9
|
-
import { type CliCommandCompileBatchSuccessWithReports, type CliCommandValidationCompileError, type CliCommandExecutionError, type CliCommandExecutionReport, type CliCommandExecutionResult } from './commandRuntime';
|
|
10
|
-
export type CliEntryCommandBatchSource = 'push_entries' | 'merge_remote_entries';
|
|
11
|
-
export type CliCommandCompileError = Readonly<{
|
|
12
|
-
code: 'missing_local_entry';
|
|
13
|
-
contentType: CliContentTypeKey;
|
|
14
|
-
identifier: CliEntryIdentifier;
|
|
15
|
-
message: string;
|
|
16
|
-
}> | CliCommandValidationCompileError;
|
|
17
|
-
export type CliEntryCommandCompileInput = Readonly<{
|
|
18
|
-
source: CliEntryCommandBatchSource;
|
|
19
|
-
siteId: SiteId;
|
|
20
|
-
targetEnv: EnvTarget;
|
|
21
|
-
diff: Pick<ContentDiff, 'entries'>;
|
|
22
|
-
local: Pick<LocalContent, 'entries'>;
|
|
23
|
-
}>;
|
|
24
|
-
export type CliEntryCommandCompileSuccess = CliCommandCompileBatchSuccessWithReports<EntrySiteCommandType, EntryCommandReportSubject>;
|
|
25
|
-
export type CliEntryCommandExecutionError = CliCommandExecutionError<EntrySiteCommandType>;
|
|
26
|
-
export type CliEntryCommandExecutionResult = CliCommandExecutionResult<EntrySiteCommandType>;
|
|
27
|
-
export type CliEntryCommandSyncInput = Readonly<{
|
|
28
|
-
client: Pick<ManagementClient, 'entries'>;
|
|
29
|
-
compiledPlan: EntryCommandCompiledPlan;
|
|
30
|
-
onBeforeExecute?: (commandCount: number) => void;
|
|
31
|
-
}>;
|
|
32
|
-
export type EntrySiteCommandType = 'upsertContentEntry' | 'publishContentEntry' | 'unpublishContentEntry' | 'deleteContentEntry';
|
|
33
|
-
export type EntrySiteCommand = SiteCommandOf<EntrySiteCommandType>;
|
|
34
|
-
export type EntrySiteCommandPlan = CliEntryCommandCompileSuccess['plan'];
|
|
35
|
-
export declare const entrySiteCommandTypes: readonly ["upsertContentEntry", "publishContentEntry", "unpublishContentEntry", "deleteContentEntry"];
|
|
36
|
-
export type EntryCommandSyncCounter = 'created' | 'updated' | 'deleted' | 'published' | 'unpublished';
|
|
37
|
-
export type EntryCommandReportSubject = Readonly<{
|
|
38
|
-
contentType: CliContentTypeKey;
|
|
39
|
-
identifier: CliEntryIdentifier;
|
|
40
|
-
counter: EntryCommandSyncCounter;
|
|
41
|
-
}>;
|
|
42
|
-
export type EntryCommandExecutionReport = CliCommandExecutionReport<EntryCommandReportSubject>;
|
|
43
|
-
type EntryCommandCompiledPlan = Pick<CliEntryCommandCompileSuccess, 'plan' | 'reportedCommands'>;
|
|
44
|
-
export declare function compileEntryPushCommands(input: CliEntryCommandCompileInput): Result<CliEntryCommandCompileSuccess, CliCommandCompileError>;
|
|
45
|
-
/** SDK push only distinguishes local development and remote production targets today. */
|
|
46
|
-
export declare function runtimeForCliTarget(targetEnv: EnvTarget): AllowedRuntime;
|
|
47
|
-
export declare function executeEntryCommandPlan(input: Readonly<{
|
|
48
|
-
client: Pick<ManagementClient, 'entries'>;
|
|
49
|
-
plan: Pick<EntrySiteCommandPlan, 'commands'>;
|
|
50
|
-
}>): Promise<CliEntryCommandExecutionResult>;
|
|
51
|
-
export declare function executeEntryCommandPlanAsSyncResult(input: CliEntryCommandSyncInput): Promise<SyncResult>;
|
|
52
|
-
export declare function executeEntryCommandPlanAsReport(input: CliEntryCommandSyncInput): Promise<EntryCommandExecutionReport>;
|
|
53
|
-
export declare function syncResultForEntryCommandCompileError(error: CliCommandCompileError): SyncResult;
|
|
54
|
-
export declare function entryCommandCompileErrorToReport(error: CliCommandCompileError): EntryCommandExecutionReport;
|
|
55
|
-
export declare function entryCommandExecutionToSyncResult(input: Readonly<{
|
|
56
|
-
execution: CliEntryCommandExecutionResult;
|
|
57
|
-
compiledPlan: EntryCommandCompiledPlan;
|
|
58
|
-
}>): SyncResult;
|
|
59
|
-
export declare function entryCommandExecutionToReport(input: Readonly<{
|
|
60
|
-
execution: CliEntryCommandExecutionResult;
|
|
61
|
-
compiledPlan: EntryCommandCompiledPlan;
|
|
62
|
-
}>): EntryCommandExecutionReport;
|
|
63
|
-
export declare function entryCommandReportToSyncResult(report: EntryCommandExecutionReport): SyncResult;
|
|
64
|
-
export declare function titleFromEntryData(data: Record<string, unknown>): string | undefined;
|
|
65
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { type Result } from '../../../../core/src/index';
|
|
2
|
-
import type { SiteCommandOf } from '../../../../site-commands/src/index';
|
|
3
|
-
import type { EventSeriesUpsertInput } from '../../client/management/types';
|
|
4
|
-
type EventOccurrenceCompileInput = Readonly<{
|
|
5
|
-
startsAt: string;
|
|
6
|
-
endsAt: string;
|
|
7
|
-
timeZone: string;
|
|
8
|
-
}>;
|
|
9
|
-
type EventScheduleCompileInput = Readonly<{
|
|
10
|
-
identifier: string;
|
|
11
|
-
occurrences: ReadonlyArray<EventOccurrenceCompileInput>;
|
|
12
|
-
}>;
|
|
13
|
-
type ScheduleCompileError = Readonly<{
|
|
14
|
-
code: 'unsupported_local_shape';
|
|
15
|
-
identifier: string;
|
|
16
|
-
message: string;
|
|
17
|
-
}>;
|
|
18
|
-
export declare function compileExplicitEventSchedule(event: EventScheduleCompileInput): Result<Readonly<{
|
|
19
|
-
timeZone: string;
|
|
20
|
-
occurrences: SiteCommandOf<'upsertEventSeries'>['input']['occurrences'];
|
|
21
|
-
}>, ScheduleCompileError>;
|
|
22
|
-
export declare function scheduleFromExplicitEventOccurrence(occurrence: EventOccurrenceCompileInput): EventSeriesUpsertInput['schedule'];
|
|
23
|
-
export declare function scheduleFromCommandOccurrence(occurrence: SiteCommandOf<'upsertEventSeries'>['input']['occurrences'][number], timeZone: SiteCommandOf<'upsertEventSeries'>['input']['timezone']): EventSeriesUpsertInput['schedule'];
|
|
24
|
-
export {};
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { type Result, type SiteId } from '../../../../core/src/index';
|
|
2
|
-
import { type SiteCommandOf } from '../../../../site-commands/src/index';
|
|
3
|
-
import type { ManagementClient, ManagementFooterContent } from '../../client/management/types';
|
|
4
|
-
import type { LocalFooterContent } from '../content/reader';
|
|
5
|
-
import type { EnvTarget } from '../helpers';
|
|
6
|
-
import type { FooterDiff } from '../sync/diff';
|
|
7
|
-
import type { SyncResult } from '../sync';
|
|
8
|
-
import { type CliCommandCompileBatchSuccessWithReports, type CliCommandExecutionError, type CliCommandExecutionReport, type CliCommandExecutionResult, type CliCommandValidationCompileError } from './commandRuntime';
|
|
9
|
-
export type CliFooterCommandBatchSource = 'push_footer';
|
|
10
|
-
export type CliFooterCommandCompileError = CliCommandValidationCompileError;
|
|
11
|
-
export type CliFooterCommandCompileInput = Readonly<{
|
|
12
|
-
source: CliFooterCommandBatchSource;
|
|
13
|
-
siteId: SiteId;
|
|
14
|
-
targetEnv: EnvTarget;
|
|
15
|
-
diff: FooterDiff;
|
|
16
|
-
local: LocalFooterContent;
|
|
17
|
-
}>;
|
|
18
|
-
export type CliFooterCommandCompileSuccess = CliCommandCompileBatchSuccessWithReports<FooterSiteCommandType, FooterCommandReportSubject>;
|
|
19
|
-
export type FooterSiteCommandType = 'upsertFooterContent';
|
|
20
|
-
export type FooterSiteCommand = SiteCommandOf<FooterSiteCommandType>;
|
|
21
|
-
export type FooterSiteCommandPlan = CliFooterCommandCompileSuccess['plan'];
|
|
22
|
-
export type CliFooterCommandExecutionError = CliCommandExecutionError<FooterSiteCommandType>;
|
|
23
|
-
export type CliFooterCommandApplication = Readonly<{
|
|
24
|
-
kind: 'not-applied';
|
|
25
|
-
}> | Readonly<{
|
|
26
|
-
kind: 'applied';
|
|
27
|
-
authoritativeFooter: ManagementFooterContent | null;
|
|
28
|
-
}>;
|
|
29
|
-
export type CliFooterCommandExecutionResult = Readonly<{
|
|
30
|
-
execution: CliCommandExecutionResult<FooterSiteCommandType>;
|
|
31
|
-
application: CliFooterCommandApplication;
|
|
32
|
-
}>;
|
|
33
|
-
export declare const footerSiteCommandTypes: readonly ["upsertFooterContent"];
|
|
34
|
-
export type FooterCommandReportSubject = Readonly<{
|
|
35
|
-
identifier: 'footer';
|
|
36
|
-
}>;
|
|
37
|
-
export type FooterCommandExecutionReport = CliCommandExecutionReport<FooterCommandReportSubject>;
|
|
38
|
-
type FooterCommandCompiledPlan = Pick<CliFooterCommandCompileSuccess, 'plan' | 'reportedCommands'>;
|
|
39
|
-
export declare function compileFooterPushCommands(input: CliFooterCommandCompileInput): Result<CliFooterCommandCompileSuccess, CliFooterCommandCompileError>;
|
|
40
|
-
export declare function executeFooterCommandPlan(input: Readonly<{
|
|
41
|
-
client: Pick<ManagementClient, 'footer'>;
|
|
42
|
-
plan: Pick<FooterSiteCommandPlan, 'commands'>;
|
|
43
|
-
}>): Promise<CliFooterCommandExecutionResult>;
|
|
44
|
-
export declare function executeFooterCommandPlanAsSyncResult(input: Readonly<{
|
|
45
|
-
client: Pick<ManagementClient, 'footer'>;
|
|
46
|
-
compiledPlan: FooterCommandCompiledPlan;
|
|
47
|
-
onBeforeExecute?: (commandCount: number) => void;
|
|
48
|
-
}>): Promise<Readonly<{
|
|
49
|
-
syncResult: SyncResult;
|
|
50
|
-
application: CliFooterCommandApplication;
|
|
51
|
-
}>>;
|
|
52
|
-
export declare function executeFooterCommandPlanAsReport(input: Readonly<{
|
|
53
|
-
client: Pick<ManagementClient, 'footer'>;
|
|
54
|
-
compiledPlan: FooterCommandCompiledPlan;
|
|
55
|
-
onBeforeExecute?: (commandCount: number) => void;
|
|
56
|
-
}>): Promise<FooterCommandExecutionReport>;
|
|
57
|
-
export declare function syncResultForFooterCommandCompileError(error: CliFooterCommandCompileError): SyncResult;
|
|
58
|
-
export declare function footerCommandCompileErrorToReport(error: CliFooterCommandCompileError): FooterCommandExecutionReport;
|
|
59
|
-
export declare function footerCommandExecutionToSyncResult(input: Readonly<{
|
|
60
|
-
execution: CliFooterCommandExecutionResult;
|
|
61
|
-
compiledPlan: FooterCommandCompiledPlan;
|
|
62
|
-
}>): SyncResult;
|
|
63
|
-
export declare function footerCommandExecutionToReport(input: Readonly<{
|
|
64
|
-
execution: CliFooterCommandExecutionResult;
|
|
65
|
-
compiledPlan: FooterCommandCompiledPlan;
|
|
66
|
-
}>): FooterCommandExecutionReport;
|
|
67
|
-
export declare function footerCommandReportToSyncResult(report: FooterCommandExecutionReport): SyncResult;
|
|
68
|
-
export {};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { type Result, type SiteId } from '../../../../core/src/index';
|
|
2
|
-
import { type SiteCommandOf } from '../../../../site-commands/src/index';
|
|
3
|
-
import type { ManagementClient } from '../../client/management/types';
|
|
4
|
-
import type { LocalContent } from '../content/reader';
|
|
5
|
-
import type { EnvTarget } from '../helpers';
|
|
6
|
-
import type { ContentDiff } from '../sync/diff';
|
|
7
|
-
import type { SyncResult } from '../sync';
|
|
8
|
-
import { type CliFormSlug } from './commandKeys';
|
|
9
|
-
import { type CliCommandCompileBatchSuccessWithReports, type CliCommandExecutionError, type CliCommandExecutionReport, type CliCommandExecutionResult, type CliCommandValidationCompileError } from './commandRuntime';
|
|
10
|
-
export type CliFormCommandBatchSource = 'push_forms';
|
|
11
|
-
export type CliFormCommandCompileError = Readonly<{
|
|
12
|
-
code: 'missing_local_form';
|
|
13
|
-
slug: CliFormSlug;
|
|
14
|
-
message: string;
|
|
15
|
-
}> | CliCommandValidationCompileError;
|
|
16
|
-
export type CliFormCommandCompileInput = Readonly<{
|
|
17
|
-
source: CliFormCommandBatchSource;
|
|
18
|
-
siteId: SiteId;
|
|
19
|
-
targetEnv: EnvTarget;
|
|
20
|
-
diff: Pick<ContentDiff, 'forms'>;
|
|
21
|
-
local: Pick<LocalContent, 'forms'>;
|
|
22
|
-
}>;
|
|
23
|
-
export type CliFormCommandCompileSuccess = CliCommandCompileBatchSuccessWithReports<FormSiteCommandType, FormCommandReportSubject>;
|
|
24
|
-
export type FormSiteCommandType = 'upsertForm';
|
|
25
|
-
export type FormSiteCommand = SiteCommandOf<FormSiteCommandType>;
|
|
26
|
-
export type FormSiteCommandPlan = CliFormCommandCompileSuccess['plan'];
|
|
27
|
-
export type CliFormCommandExecutionError = CliCommandExecutionError<FormSiteCommandType>;
|
|
28
|
-
export type CliFormCommandExecutionResult = CliCommandExecutionResult<FormSiteCommandType>;
|
|
29
|
-
export declare const formSiteCommandTypes: readonly ["upsertForm"];
|
|
30
|
-
export type FormCommandSyncCounter = 'created' | 'updated';
|
|
31
|
-
export type FormCommandReportSubject = Readonly<{
|
|
32
|
-
slug: CliFormSlug;
|
|
33
|
-
counter: FormCommandSyncCounter;
|
|
34
|
-
}>;
|
|
35
|
-
export type FormCommandExecutionReport = CliCommandExecutionReport<FormCommandReportSubject>;
|
|
36
|
-
type FormCommandCompiledPlan = Pick<CliFormCommandCompileSuccess, 'plan' | 'reportedCommands'>;
|
|
37
|
-
export declare function compileFormPushCommands(input: CliFormCommandCompileInput): Result<CliFormCommandCompileSuccess, CliFormCommandCompileError>;
|
|
38
|
-
export declare function executeFormCommandPlan(input: Readonly<{
|
|
39
|
-
client: Pick<ManagementClient, 'forms'>;
|
|
40
|
-
plan: Pick<FormSiteCommandPlan, 'commands'>;
|
|
41
|
-
}>): Promise<CliFormCommandExecutionResult>;
|
|
42
|
-
export declare function executeFormCommandPlanAsReport(input: Readonly<{
|
|
43
|
-
client: Pick<ManagementClient, 'forms'>;
|
|
44
|
-
compiledPlan: FormCommandCompiledPlan;
|
|
45
|
-
onBeforeExecute?: (commandCount: number) => void;
|
|
46
|
-
}>): Promise<FormCommandExecutionReport>;
|
|
47
|
-
export declare function formCommandCompileErrorToReport(error: CliFormCommandCompileError): FormCommandExecutionReport;
|
|
48
|
-
export declare function formCommandExecutionToReport(input: Readonly<{
|
|
49
|
-
execution: CliFormCommandExecutionResult;
|
|
50
|
-
compiledPlan: FormCommandCompiledPlan;
|
|
51
|
-
}>): FormCommandExecutionReport;
|
|
52
|
-
export declare function formCommandReportToSyncResult(report: FormCommandExecutionReport): SyncResult;
|
|
53
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from './commandRuntime';
|
|
2
|
-
export * from './datedOfferingCommands';
|
|
3
|
-
export * from './entryCommands';
|
|
4
|
-
export * from './formCommands';
|
|
5
|
-
export * from './footerCommands';
|
|
6
|
-
export * from './navigationCommands';
|
|
7
|
-
export * from './pageCommands';
|
|
8
|
-
export * from './pushExecution';
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { BlockFieldExtensionsMap, FieldDefinition, SdkCustomBlock } from '../../config/types';
|
|
2
|
-
export type LocalBlockManifest = Readonly<{
|
|
3
|
-
name: string;
|
|
4
|
-
fields: readonly FieldDefinition[];
|
|
5
|
-
}> & Record<string, unknown>;
|
|
6
|
-
export type LocalBlockManifestResolution = Readonly<{
|
|
7
|
-
kind: 'builtin_found';
|
|
8
|
-
manifest: LocalBlockManifest;
|
|
9
|
-
extensionFields: readonly FieldDefinition[];
|
|
10
|
-
}> | Readonly<{
|
|
11
|
-
kind: 'custom_found';
|
|
12
|
-
manifest: LocalBlockManifest;
|
|
13
|
-
extensionFields: readonly FieldDefinition[];
|
|
14
|
-
}> | Readonly<{
|
|
15
|
-
kind: 'extension_only_custom_found';
|
|
16
|
-
manifest: LocalBlockManifest;
|
|
17
|
-
}> | Readonly<{
|
|
18
|
-
kind: 'unknown_builtin';
|
|
19
|
-
}> | Readonly<{
|
|
20
|
-
kind: 'unknown_custom';
|
|
21
|
-
}>;
|
|
22
|
-
export type ResolveLocalBlockManifestInput = Readonly<{
|
|
23
|
-
kind: string;
|
|
24
|
-
customBlocks?: readonly SdkCustomBlock[];
|
|
25
|
-
blockFieldExtensions?: BlockFieldExtensionsMap;
|
|
26
|
-
}>;
|
|
27
|
-
export type ResolveLocalBlockManifestFromSourcesInput = ResolveLocalBlockManifestInput & Readonly<{
|
|
28
|
-
builtInManifest?: LocalBlockManifest;
|
|
29
|
-
}>;
|
|
30
|
-
export declare function resolveLocalBlockManifest(input: ResolveLocalBlockManifestInput): LocalBlockManifestResolution;
|
|
31
|
-
export declare function resolveLocalBlockManifestFromSources(input: ResolveLocalBlockManifestFromSourcesInput): LocalBlockManifestResolution;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { type Result, type SiteId } from '../../../../core/src/index';
|
|
2
|
-
import { type SiteCommandOf } from '../../../../site-commands/src/index';
|
|
3
|
-
import type { ManagementClient } from '../../client/management/types';
|
|
4
|
-
import type { LocalContent } from '../content/reader';
|
|
5
|
-
import type { EnvTarget } from '../helpers';
|
|
6
|
-
import type { NavigationDiff } from '../sync/diff';
|
|
7
|
-
import type { SyncResult } from '../sync';
|
|
8
|
-
import { type CliNavigationMenuName } from './commandKeys';
|
|
9
|
-
import { type CliCommandCompileBatchSuccessWithReports, type CliCommandExecutionError, type CliCommandExecutionReport, type CliCommandExecutionResult, type CliCommandValidationCompileError } from './commandRuntime';
|
|
10
|
-
export type CliNavigationCommandBatchSource = 'push_navigation';
|
|
11
|
-
export type CliNavigationCommandCompileError = Readonly<{
|
|
12
|
-
code: 'missing_local_navigation_menu';
|
|
13
|
-
name: CliNavigationMenuName;
|
|
14
|
-
message: string;
|
|
15
|
-
}> | Readonly<{
|
|
16
|
-
code: 'duplicate_navigation_identity';
|
|
17
|
-
identity: string;
|
|
18
|
-
message: string;
|
|
19
|
-
}> | CliCommandValidationCompileError;
|
|
20
|
-
export type CliNavigationCommandCompileInput = Readonly<{
|
|
21
|
-
source: CliNavigationCommandBatchSource;
|
|
22
|
-
siteId: SiteId;
|
|
23
|
-
targetEnv: EnvTarget;
|
|
24
|
-
diff: readonly NavigationDiff[];
|
|
25
|
-
local: Pick<LocalContent, 'navigation'>;
|
|
26
|
-
}>;
|
|
27
|
-
export type CliNavigationCommandCompileSuccess = CliCommandCompileBatchSuccessWithReports<NavigationSiteCommandType, NavigationCommandReportSubject>;
|
|
28
|
-
export type CliNavigationCommandExecutionError = CliCommandExecutionError<NavigationSiteCommandType>;
|
|
29
|
-
export type CliNavigationCommandExecutionResult = CliCommandExecutionResult<NavigationSiteCommandType>;
|
|
30
|
-
export type NavigationSiteCommandType = 'upsertNavigationMenu';
|
|
31
|
-
export type NavigationSiteCommand = SiteCommandOf<NavigationSiteCommandType>;
|
|
32
|
-
export type NavigationSiteCommandPlan = CliNavigationCommandCompileSuccess['plan'];
|
|
33
|
-
export declare const navigationSiteCommandTypes: readonly ["upsertNavigationMenu"];
|
|
34
|
-
export type NavigationCommandSyncCounter = 'created' | 'updated';
|
|
35
|
-
export type NavigationCommandReportSubject = Readonly<{
|
|
36
|
-
name: CliNavigationMenuName;
|
|
37
|
-
counter: NavigationCommandSyncCounter;
|
|
38
|
-
}>;
|
|
39
|
-
export type NavigationCommandExecutionReport = CliCommandExecutionReport<NavigationCommandReportSubject>;
|
|
40
|
-
type NavigationCommandCompiledPlan = Pick<CliNavigationCommandCompileSuccess, 'plan' | 'reportedCommands'>;
|
|
41
|
-
export declare function compileNavigationPushCommands(input: CliNavigationCommandCompileInput): Result<CliNavigationCommandCompileSuccess, CliNavigationCommandCompileError>;
|
|
42
|
-
export declare function executeNavigationCommandPlan(input: Readonly<{
|
|
43
|
-
client: Pick<ManagementClient, 'navigation'>;
|
|
44
|
-
plan: Pick<NavigationSiteCommandPlan, 'commands'>;
|
|
45
|
-
}>): Promise<CliNavigationCommandExecutionResult>;
|
|
46
|
-
export declare function executeNavigationCommandPlanAsReport(input: Readonly<{
|
|
47
|
-
client: Pick<ManagementClient, 'navigation'>;
|
|
48
|
-
compiledPlan: NavigationCommandCompiledPlan;
|
|
49
|
-
onBeforeExecute?: (commandCount: number) => void;
|
|
50
|
-
}>): Promise<NavigationCommandExecutionReport>;
|
|
51
|
-
export declare function navigationCommandCompileErrorToReport(error: CliNavigationCommandCompileError): NavigationCommandExecutionReport;
|
|
52
|
-
export declare function navigationCommandExecutionToReport(input: Readonly<{
|
|
53
|
-
execution: CliNavigationCommandExecutionResult;
|
|
54
|
-
compiledPlan: NavigationCommandCompiledPlan;
|
|
55
|
-
}>): NavigationCommandExecutionReport;
|
|
56
|
-
export declare function navigationCommandReportToSyncResult(report: NavigationCommandExecutionReport): SyncResult;
|
|
57
|
-
export {};
|