@riverbankcms/sdk 0.62.4 → 0.67.0
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 +11 -0
- package/dist/_dts/api/src/accessAdmin.d.ts +64 -2
- package/dist/_dts/api/src/aiEndpoints.d.ts +2 -2
- package/dist/_dts/api/src/aiPlayground.d.ts +18 -11
- package/dist/_dts/api/src/apiEndpointTypes.d.ts +12 -0
- package/dist/_dts/api/src/billing.d.ts +46 -10
- package/dist/_dts/api/src/bookingConfig.d.ts +2 -0
- package/dist/_dts/api/src/bookingOperations.d.ts +1 -1
- package/dist/_dts/api/src/bookingRecords.d.ts +26 -0
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +12 -1
- package/dist/_dts/api/src/contentRuntime.d.ts +1 -0
- package/dist/_dts/api/src/courses.d.ts +3 -0
- package/dist/_dts/api/src/endpoints.d.ts +48 -0
- package/dist/_dts/api/src/index.d.ts +8 -5
- package/dist/_dts/api/src/sdkConfig/contracts.d.ts +29 -40
- package/dist/_dts/api/src/sdkContracts.d.ts +14 -2
- package/dist/_dts/api/src/siteMembers.d.ts +1 -1
- package/dist/_dts/api/src/siteOnboarding.d.ts +4 -0
- package/dist/_dts/api/src/siteOperations.d.ts +11 -1
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +29 -0
- package/dist/_dts/api/src/types.d.ts +2 -1
- package/dist/_dts/billing/src/plans/registry.d.ts +1 -0
- package/dist/_dts/billing/src/plans/types.d.ts +10 -1
- package/dist/_dts/block-form/src/FormRenderer.d.ts +38 -0
- package/dist/_dts/block-form/src/backend/adapter.d.ts +7 -0
- package/dist/_dts/block-form/src/backend/hooks/useRepeaterBackend.d.ts +34 -0
- package/dist/_dts/block-form/src/backend/hooks.d.ts +66 -0
- package/dist/_dts/block-form/src/backend/index.d.ts +12 -0
- package/dist/_dts/block-form/src/backend/rhf-backend.d.ts +34 -0
- package/dist/_dts/block-form/src/backend/store-backend.d.ts +60 -0
- package/dist/_dts/block-form/src/backend/types.d.ts +137 -0
- package/dist/_dts/block-form/src/backend/useBackendWatch.d.ts +22 -0
- package/dist/_dts/block-form/src/backend/utils/getErrorMessage.d.ts +1 -0
- package/dist/_dts/block-form/src/blockDraftSaveability.d.ts +70 -0
- package/dist/_dts/block-form/src/client/blockDraftSaveability.d.ts +1 -0
- package/dist/_dts/block-form/src/client/index.d.ts +30 -0
- package/dist/_dts/block-form/src/context/BlockContext.d.ts +29 -0
- package/dist/_dts/block-form/src/context/DisplayLabelResolverContext.d.ts +33 -0
- package/dist/_dts/block-form/src/context/FieldPreviewResolverContext.d.ts +30 -0
- package/dist/_dts/block-form/src/context/ImageResolveContext.d.ts +1 -0
- package/dist/_dts/block-form/src/context/index.d.ts +4 -0
- package/dist/_dts/block-form/src/fields/props.d.ts +48 -0
- package/dist/_dts/block-form/src/fields/types.d.ts +223 -0
- package/dist/_dts/block-form/src/index.d.ts +22 -0
- package/dist/_dts/block-form/src/manifest/ManifestForm.d.ts +37 -0
- package/dist/_dts/block-form/src/manifest/canonicalValidation.d.ts +5 -0
- package/dist/_dts/block-form/src/manifest/filterSdkTabs.d.ts +44 -0
- package/dist/_dts/block-form/src/manifest/manifestFormAdapter.d.ts +61 -0
- package/dist/_dts/block-form/src/manifest/mergeManifestWithSdkOptions.d.ts +24 -0
- package/dist/_dts/block-form/src/palette/PaletteContext.d.ts +11 -0
- package/dist/_dts/block-form/src/registry/schemas.d.ts +105 -0
- package/dist/_dts/block-form/src/registry/widgets.d.ts +59 -0
- package/dist/_dts/block-form/src/sdk-config/SdkConfigContext.d.ts +110 -0
- package/dist/_dts/block-form/src/sdk-config/hooks.d.ts +21 -0
- package/dist/_dts/block-form/src/sdk-config/index.d.ts +2 -0
- package/dist/_dts/block-form/src/shared/disclosure.d.ts +1 -0
- package/dist/_dts/block-form/src/shared/hooks/index.d.ts +2 -0
- package/dist/_dts/block-form/src/shared/hooks/useCoarsePointer.d.ts +5 -0
- package/dist/_dts/block-form/src/shared/hooks/useContainerWidth.d.ts +6 -0
- package/dist/_dts/block-form/src/utils/VisibilityWrapper.d.ts +25 -0
- package/dist/_dts/block-form/src/utils/computeWatchedPath.d.ts +18 -0
- package/dist/_dts/block-form/src/utils/evaluateVisibility.d.ts +9 -0
- package/dist/_dts/block-form/src/utils/fieldHelpers.d.ts +94 -0
- package/dist/_dts/block-form/src/utils/resolvePromotedFields.d.ts +22 -0
- package/dist/_dts/block-form/src/utils/slug.d.ts +3 -0
- package/dist/_dts/block-form/src/utils/typeGuards.d.ts +3 -0
- package/dist/_dts/block-form/src/widgets/BackgroundColorWidget/BackgroundColorField.d.ts +10 -0
- package/dist/_dts/block-form/src/widgets/BackgroundColorWidget/BackgroundColorWidget.d.ts +23 -0
- package/dist/_dts/block-form/src/widgets/BackgroundColorWidget/index.d.ts +2 -0
- package/dist/_dts/block-form/src/widgets/BackgroundGradientWidget/BackgroundGradientField.d.ts +13 -0
- package/dist/_dts/block-form/src/widgets/BackgroundGradientWidget/BackgroundGradientWidget.d.ts +17 -0
- package/dist/_dts/block-form/src/widgets/BackgroundGradientWidget/index.d.ts +2 -0
- package/dist/_dts/block-form/src/widgets/BooleanField/BooleanField.d.ts +6 -0
- package/dist/_dts/block-form/src/widgets/BooleanField/booleanFieldDefaults.d.ts +6 -0
- package/dist/_dts/block-form/src/widgets/BooleanField/booleanFieldSchema.d.ts +7 -0
- package/dist/_dts/block-form/src/widgets/BooleanField/index.d.ts +3 -0
- package/dist/_dts/block-form/src/widgets/BoxStyleWidget/BoxStyleWidget.d.ts +17 -0
- package/dist/_dts/block-form/src/widgets/BoxStyleWidget/index.d.ts +1 -0
- package/dist/_dts/block-form/src/widgets/ContentTypeSelectField/contentTypeSelectFieldDefaults.d.ts +3 -0
- package/dist/_dts/block-form/src/widgets/ContentTypeSelectField/contentTypeSelectFieldSchema.d.ts +4 -0
- package/dist/_dts/block-form/src/widgets/DateField/DateField.d.ts +23 -0
- package/dist/_dts/block-form/src/widgets/DateField/dateFieldDefaults.d.ts +8 -0
- package/dist/_dts/block-form/src/widgets/DateField/dateFieldSchema.d.ts +9 -0
- package/dist/_dts/block-form/src/widgets/DateField/datePickerPopover.d.ts +32 -0
- package/dist/_dts/block-form/src/widgets/DateField/index.d.ts +4 -0
- package/dist/_dts/block-form/src/widgets/DateTimeField/DateTimeField.d.ts +30 -0
- package/dist/_dts/block-form/src/widgets/DateTimeField/dateTimeFieldDefaults.d.ts +8 -0
- package/dist/_dts/block-form/src/widgets/DateTimeField/dateTimeFieldSchema.d.ts +11 -0
- package/dist/_dts/block-form/src/widgets/DateTimeField/index.d.ts +4 -0
- package/dist/_dts/block-form/src/widgets/DateTimeField/utils/dateTimeUtils.d.ts +22 -0
- package/dist/_dts/block-form/src/widgets/DateTimeField/utils/index.d.ts +1 -0
- package/dist/_dts/block-form/src/widgets/EntryPickerField/entryPickerFieldDefaults.d.ts +3 -0
- package/dist/_dts/block-form/src/widgets/EntryPickerField/entryPickerFieldSchema.d.ts +4 -0
- package/dist/_dts/block-form/src/widgets/Field.d.ts +21 -0
- package/dist/_dts/block-form/src/widgets/FieldFrame.d.ts +32 -0
- package/dist/_dts/block-form/src/widgets/FieldSettingsModal/FieldSettingsModal.d.ts +34 -0
- package/dist/_dts/block-form/src/widgets/FieldSettingsModal/index.d.ts +2 -0
- package/dist/_dts/block-form/src/widgets/GroupField/GroupField.d.ts +23 -0
- package/dist/_dts/block-form/src/widgets/GroupField/groupFieldDefaults.d.ts +9 -0
- package/dist/_dts/block-form/src/widgets/GroupField/groupFieldSchema.d.ts +10 -0
- package/dist/_dts/block-form/src/widgets/GroupField/index.d.ts +3 -0
- package/dist/_dts/block-form/src/widgets/LinkField/linkFieldDefaults.d.ts +10 -0
- package/dist/_dts/block-form/src/widgets/LinkField/linkFieldSchema.d.ts +3 -0
- package/dist/_dts/block-form/src/widgets/MediaField/mediaFieldDefaults.d.ts +6 -0
- package/dist/_dts/block-form/src/widgets/MediaField/mediaFieldSchema.d.ts +6 -0
- package/dist/_dts/block-form/src/widgets/ModalGroupField/ModalGroupField.d.ts +17 -0
- package/dist/_dts/block-form/src/widgets/ModalGroupField/index.d.ts +3 -0
- package/dist/_dts/block-form/src/widgets/ModalGroupField/modalFieldDefaults.d.ts +18 -0
- package/dist/_dts/block-form/src/widgets/ModalGroupField/modalFieldSchema.d.ts +14 -0
- package/dist/_dts/block-form/src/widgets/NumberField/NumberField.d.ts +7 -0
- package/dist/_dts/block-form/src/widgets/NumberField/index.d.ts +3 -0
- package/dist/_dts/block-form/src/widgets/NumberField/numberFieldDefaults.d.ts +6 -0
- package/dist/_dts/block-form/src/widgets/NumberField/numberFieldSchema.d.ts +7 -0
- package/dist/_dts/block-form/src/widgets/PresetOrCustomField/PresetOrCustomField.d.ts +11 -0
- package/dist/_dts/block-form/src/widgets/PresetOrCustomField/index.d.ts +4 -0
- package/dist/_dts/block-form/src/widgets/PresetOrCustomField/presetOrCustomFieldDefaults.d.ts +3 -0
- package/dist/_dts/block-form/src/widgets/PresetOrCustomField/presetOrCustomFieldSchema.d.ts +4 -0
- package/dist/_dts/block-form/src/widgets/PresetOrCustomField/types.d.ts +37 -0
- package/dist/_dts/block-form/src/widgets/ReferenceField/referenceFieldDefaults.d.ts +3 -0
- package/dist/_dts/block-form/src/widgets/ReferenceField/referenceFieldSchema.d.ts +4 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/RepeaterField.d.ts +26 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterDragHandle.d.ts +8 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterError.d.ts +11 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterHeader.d.ts +10 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterLayoutGrid.d.ts +27 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterList.d.ts +19 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterRow.d.ts +23 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterRowActions.d.ts +16 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterRowContent.d.ts +19 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterTabbedEditDialog.d.ts +16 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterThumbnailCard.d.ts +26 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterThumbnailGrid.d.ts +20 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/index.d.ts +11 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/layoutGridDomain.d.ts +34 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/index.d.ts +6 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/layoutGridCapacityDecision.d.ts +22 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/useLayoutGridCapacity.d.ts +20 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/useLinearRepeaterDnd.d.ts +23 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/useRepeaterPointerDragCapability.d.ts +10 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/useRepeaterRowErrors.d.ts +12 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/useRepeaterVisibility.d.ts +6 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/useResolvedItemLabel.d.ts +12 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/index.d.ts +3 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/repeaterFieldDefaults.d.ts +7 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/repeaterFieldSchema.d.ts +8 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/buildItemLabel.d.ts +7 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/buildSummary.d.ts +7 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/createDefaultItem.d.ts +6 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/getRepeaterItemFieldGroups.d.ts +8 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/getRepeaterItemFields.d.ts +22 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/index.d.ts +10 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/layoutGridCapacityContext.d.ts +2 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/repeaterDndDomain.d.ts +43 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/repeaterPresentation.d.ts +24 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/resolveThumbnail.d.ts +12 -0
- package/dist/_dts/block-form/src/widgets/RichTextField/richTextFieldDefaults.d.ts +20 -0
- package/dist/_dts/block-form/src/widgets/RichTextField/richTextFieldSchema.d.ts +16 -0
- package/dist/_dts/block-form/src/widgets/SdkSelectField/SdkSelectField.d.ts +11 -0
- package/dist/_dts/block-form/src/widgets/SdkSelectField/index.d.ts +1 -0
- package/dist/_dts/block-form/src/widgets/SelectField/SelectField.d.ts +7 -0
- package/dist/_dts/block-form/src/widgets/SelectField/index.d.ts +3 -0
- package/dist/_dts/block-form/src/widgets/SelectField/selectFieldDefaults.d.ts +6 -0
- package/dist/_dts/block-form/src/widgets/SelectField/selectFieldSchema.d.ts +7 -0
- package/dist/_dts/block-form/src/widgets/SelectWidget.d.ts +34 -0
- package/dist/_dts/block-form/src/widgets/SettingsModal/SettingsModal.d.ts +17 -0
- package/dist/_dts/block-form/src/widgets/SettingsModal/index.d.ts +2 -0
- package/dist/_dts/block-form/src/widgets/SliderField/SliderField.d.ts +16 -0
- package/dist/_dts/block-form/src/widgets/SliderField/index.d.ts +1 -0
- package/dist/_dts/block-form/src/widgets/SlugField/SlugField.d.ts +39 -0
- package/dist/_dts/block-form/src/widgets/SlugField/hooks/index.d.ts +1 -0
- package/dist/_dts/block-form/src/widgets/SlugField/hooks/useSlugAutoGeneration.d.ts +29 -0
- package/dist/_dts/block-form/src/widgets/SlugField/index.d.ts +5 -0
- package/dist/_dts/block-form/src/widgets/SlugField/slugFieldDefaults.d.ts +8 -0
- package/dist/_dts/block-form/src/widgets/SlugField/slugFieldSchema.d.ts +14 -0
- package/dist/_dts/block-form/src/widgets/SlugField/utils/index.d.ts +2 -0
- package/dist/_dts/block-form/src/widgets/SlugField/utils/pathUtils.d.ts +30 -0
- package/dist/_dts/block-form/src/widgets/SlugField/utils/slugUtils.d.ts +17 -0
- package/dist/_dts/block-form/src/widgets/TabGroupField/TabGroupField.d.ts +13 -0
- package/dist/_dts/block-form/src/widgets/TabGroupField/index.d.ts +3 -0
- package/dist/_dts/block-form/src/widgets/TabGroupField/tabGroupFieldSchema.d.ts +25 -0
- package/dist/_dts/block-form/src/widgets/TabGroupField/types.d.ts +46 -0
- package/dist/_dts/block-form/src/widgets/TextField/TextField.d.ts +7 -0
- package/dist/_dts/block-form/src/widgets/TextField/index.d.ts +3 -0
- package/dist/_dts/block-form/src/widgets/TextField/textFieldDefaults.d.ts +6 -0
- package/dist/_dts/block-form/src/widgets/TextField/textFieldSchema.d.ts +7 -0
- package/dist/_dts/block-form/src/widgets/TextInputWidget.d.ts +20 -0
- package/dist/_dts/block-form/src/widgets/TimeField/TimeField.d.ts +23 -0
- package/dist/_dts/block-form/src/widgets/TimeField/index.d.ts +3 -0
- package/dist/_dts/block-form/src/widgets/TimeField/timeFieldDefaults.d.ts +8 -0
- package/dist/_dts/block-form/src/widgets/TimeField/timeFieldSchema.d.ts +9 -0
- package/dist/_dts/block-form/src/widgets/ToggleWidget.d.ts +16 -0
- package/dist/_dts/block-form/src/widgets/UrlField/UrlField.d.ts +23 -0
- package/dist/_dts/block-form/src/widgets/UrlField/index.d.ts +3 -0
- package/dist/_dts/block-form/src/widgets/UrlField/urlFieldDefaults.d.ts +8 -0
- package/dist/_dts/block-form/src/widgets/UrlField/urlFieldSchema.d.ts +9 -0
- package/dist/_dts/block-form/src/widgets/constants.d.ts +58 -0
- package/dist/_dts/block-form/src/widgets/groupFieldHelpers.d.ts +61 -0
- package/dist/_dts/block-form/src/widgets/index.d.ts +20 -0
- package/dist/_dts/block-form/src/widgets/selectValueMapping.d.ts +9 -0
- package/dist/_dts/block-form/src/widgets/types/modalConfig.d.ts +18 -0
- package/dist/_dts/block-form/src/widgets/utils/readNumericUiConfig.d.ts +10 -0
- package/dist/_dts/blocks/src/bindings/index.d.ts +1 -1
- package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +4 -0
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +2 -0
- package/dist/_dts/blocks/src/system/blocks/appointment-booking.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/blog-listing.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/blog-post.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/cart.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/checkout.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/collection.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/columns.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/courses/shared/schemas.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/cta-full.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/event-details.d.ts +25 -0
- package/dist/_dts/blocks/src/system/blocks/events/event-spotlight.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/faq.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/file-download.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/gifting.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/image-gallery.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +6 -6
- package/dist/_dts/blocks/src/system/blocks/product-detail.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/product-list.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/products/shared.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/team-members.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/testimonials.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/video-grid.d.ts +1 -1
- package/dist/_dts/blocks/src/system/fragments/library/card.d.ts +1 -1
- package/dist/_dts/blocks/src/system/fragments/library/ctaRow.d.ts +1 -1
- package/dist/_dts/blocks/src/system/fragments/library/feedbackCallout.d.ts +1 -1
- package/dist/_dts/blocks/src/system/fragments/library/heroCtaRow.d.ts +1 -1
- package/dist/_dts/blocks/src/system/fragments/library/sectionState.d.ts +1 -1
- package/dist/_dts/blocks/src/system/node/validation-constants.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/view.d.ts +4 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details.client.d.ts +4 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details.server.d.ts +4 -1
- package/dist/_dts/blocks/src/system/transforms/registry/formatting.d.ts +1 -0
- package/dist/_dts/blocks/src/system/transforms/typed.d.ts +2 -1
- package/dist/_dts/calendar/src/grid.d.ts +60 -0
- package/dist/_dts/calendar/src/group.d.ts +14 -0
- package/dist/_dts/calendar/src/index.d.ts +6 -0
- package/dist/_dts/calendar/src/lane-packing.d.ts +28 -0
- package/dist/_dts/calendar/src/timetable.d.ts +90 -0
- package/dist/_dts/calendar/src/timezone.d.ts +19 -0
- package/dist/_dts/content-editor/src/index.d.ts +1 -4
- package/dist/_dts/core/src/booking-date-time.d.ts +1 -0
- package/dist/_dts/core/src/branded.d.ts +18 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +900 -69
- package/dist/_dts/editor-blocks/src/index.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/index.d.ts +7 -7
- package/dist/_dts/editor-blocks/src/widgets/link/LinkWidget.d.ts +1 -2
- package/dist/_dts/editor-blocks/src/widgets/link/index.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/blocks/pageDesignRuntimePreview.d.ts +7 -3
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/runtimeContentDecoration.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeButton.d.ts +4 -0
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +49 -0
- package/dist/_dts/preview-next/src/client/preview/SiteChromeEditableSurface.d.ts +6 -0
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +3 -1
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorSnapshot.d.ts +18 -0
- package/dist/_dts/sdk/src/cli/commands/pull.d.ts +5 -0
- package/dist/_dts/sdk/src/cli/commands/push/execute/footer.d.ts +33 -0
- package/dist/_dts/sdk/src/cli/commands/push/options.d.ts +2 -0
- package/dist/_dts/sdk/src/cli/commands/push-execute.d.ts +18 -0
- package/dist/_dts/sdk/src/cli/content/entryPaths.d.ts +6 -0
- package/dist/_dts/sdk/src/cli/content/writer.d.ts +2 -0
- package/dist/_dts/sdk/src/cli/env.d.ts +2 -1
- package/dist/_dts/sdk/src/cli/merge-remote/entryLocal.d.ts +3 -0
- package/dist/_dts/sdk/src/cli/merge-remote/entryMerge.d.ts +77 -0
- package/dist/_dts/sdk/src/cli/merge-remote/entryMergePlan.d.ts +45 -0
- package/dist/_dts/sdk/src/cli/merge-remote/entryMergePush.d.ts +22 -0
- package/dist/_dts/sdk/src/cli/merge-remote/entryMergeReport.d.ts +30 -0
- package/dist/_dts/sdk/src/cli/merge-remote/entryRemote.d.ts +9 -0
- package/dist/_dts/sdk/src/cli/merge-remote/entrySnapshots.d.ts +50 -0
- package/dist/_dts/sdk/src/cli/merge-remote/stableJson.d.ts +3 -0
- package/dist/_dts/sdk/src/cli/site-commands/commandKeys.d.ts +13 -0
- package/dist/_dts/sdk/src/cli/site-commands/commandRuntime.d.ts +114 -0
- package/dist/_dts/sdk/src/cli/site-commands/entryCommands.d.ts +63 -0
- package/dist/_dts/sdk/src/cli/site-commands/footerCommands.d.ts +50 -0
- package/dist/_dts/sdk/src/cli/site-commands/formCommands.d.ts +57 -0
- package/dist/_dts/sdk/src/cli/site-commands/index.d.ts +7 -0
- package/dist/_dts/sdk/src/cli/site-commands/navigationCommands.d.ts +57 -0
- package/dist/_dts/sdk/src/cli/site-commands/pageCommands.d.ts +83 -0
- package/dist/_dts/sdk/src/cli/site-commands/pushExecution.d.ts +83 -0
- package/dist/_dts/sdk/src/cli/sync/executor.d.ts +11 -28
- package/dist/_dts/sdk/src/cli/sync/index.d.ts +1 -1
- package/dist/_dts/sdk/src/config/dashboard-validation.d.ts +0 -48
- package/dist/_dts/sdk/src/config/types.d.ts +1 -1
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +1 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/site-commands/src/adapter.d.ts +23 -0
- package/dist/_dts/site-commands/src/capabilityGaps.d.ts +8 -0
- package/dist/_dts/site-commands/src/commands.d.ts +2341 -0
- package/dist/_dts/site-commands/src/domain.d.ts +104 -0
- package/dist/_dts/site-commands/src/exposure.d.ts +41 -0
- package/dist/_dts/site-commands/src/guards.d.ts +1 -0
- package/dist/_dts/site-commands/src/index.d.ts +10 -0
- package/dist/_dts/site-commands/src/metadata.d.ts +503 -0
- package/dist/_dts/site-commands/src/planner.d.ts +58 -0
- package/dist/_dts/site-commands/src/refContributions.d.ts +10 -0
- package/dist/_dts/site-commands/src/refs.d.ts +87 -0
- package/dist/_dts/site-commands/src/staticExecutionGaps.d.ts +10 -0
- package/dist/_dts/theme-core/src/palette/utils/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/palette/utils/onColor.d.ts +2 -0
- package/dist/_dts/theme-core/src/site-styles/accessibleSurfaces.d.ts +83 -0
- package/dist/_dts/theme-core/src/site-styles/contentTemplateRuntimeCompiler.d.ts +2 -1
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +89 -12
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +8 -2
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +3 -2
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +9 -6
- package/dist/_dts/ui/src/callout.d.ts +1 -1
- package/dist/cli/index.mjs +6446 -1220
- package/dist/cli/init-docs/content/cli-reference.md +18 -0
- package/dist/client/bookings.mjs +25 -25
- package/dist/client/client.mjs +3157 -2858
- package/dist/client/hooks.mjs +2608 -2326
- package/dist/client/rendering/client.mjs +505 -176
- package/dist/client/rendering/islands.mjs +18329 -13012
- package/dist/client/rendering.mjs +1204 -903
- package/dist/preview-next/before-render.mjs +84 -13
- package/dist/preview-next/client/runtime.mjs +3149 -2452
- package/dist/preview-next/middleware.mjs +84 -13
- package/dist/server/components.mjs +936 -631
- package/dist/server/config-validation.mjs +2838 -2556
- package/dist/server/config.mjs +2838 -2556
- package/dist/server/data.mjs +2608 -2326
- package/dist/server/index.mjs +676 -552
- package/dist/server/next.mjs +3043 -2738
- package/dist/server/page-converter.mjs +201 -51
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +936 -631
- package/dist/server/rendering.mjs +936 -631
- package/dist/server/routing.mjs +2701 -2426
- package/dist/server/server.mjs +2626 -2344
- package/dist/server/theme-bridge.mjs +169 -52
- package/package.json +2 -1
- package/dist/_dts/content-editor/src/ai/patch/allowed.d.ts +0 -2
- package/dist/_dts/content-editor/src/ai/patch/diff.d.ts +0 -17
- package/dist/_dts/content-editor/src/ai/patch/schema.d.ts +0 -49
- package/dist/_dts/path-utils/src/index.d.ts +0 -8
- package/dist/_dts/path-utils/src/redirectPaths.d.ts +0 -26
- package/dist/_dts/path-utils/src/safeAppPath.d.ts +0 -26
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { type Result, type SiteId } from '@riverbankcms/core';
|
|
2
|
+
import { type DryRunReport, type SiteCommandBatch, type SiteCommandExecutionSuccess, type SiteCommandOf, type SiteCommandPlanFor, type SiteCommandRef, type SiteCommandType, type SiteCommandValidationError } from '@riverbankcms/site-commands';
|
|
3
|
+
import type { EnvTarget } from '../helpers';
|
|
4
|
+
import { type SyncResult } from '../sync';
|
|
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
|
+
}>;
|
|
16
|
+
export type CliCommandExecutionResult<TCommandType extends SiteCommandType> = Readonly<{
|
|
17
|
+
status: 'applied';
|
|
18
|
+
applied: readonly SiteCommandExecutionSuccess[];
|
|
19
|
+
}> | Readonly<{
|
|
20
|
+
status: 'failed';
|
|
21
|
+
applied: readonly SiteCommandExecutionSuccess[];
|
|
22
|
+
failed: CliCommandExecutionError<TCommandType>;
|
|
23
|
+
}>;
|
|
24
|
+
export type PlannedCliCommand<TCommand extends Readonly<{
|
|
25
|
+
ref: SiteCommandRef;
|
|
26
|
+
type: SiteCommandType;
|
|
27
|
+
}>> = Readonly<{
|
|
28
|
+
command: TCommand;
|
|
29
|
+
}>;
|
|
30
|
+
export type CliCommandReportBinding<TCommand extends Readonly<{
|
|
31
|
+
ref: SiteCommandRef;
|
|
32
|
+
type: SiteCommandType;
|
|
33
|
+
}>, TSubject> = Readonly<{
|
|
34
|
+
command: TCommand;
|
|
35
|
+
reportSubject: TSubject;
|
|
36
|
+
}>;
|
|
37
|
+
export type CliCommandReportedPlannedCommand<TCommand extends Readonly<{
|
|
38
|
+
ref: SiteCommandRef;
|
|
39
|
+
type: SiteCommandType;
|
|
40
|
+
}>, TSubject> = Readonly<{
|
|
41
|
+
plannedCommand: PlannedCliCommand<TCommand>;
|
|
42
|
+
reportSubject: TSubject;
|
|
43
|
+
}>;
|
|
44
|
+
export type CliCommandExecutionReportFailure<TSubject> = Readonly<{
|
|
45
|
+
identifier: string;
|
|
46
|
+
message: string;
|
|
47
|
+
subject?: TSubject;
|
|
48
|
+
}>;
|
|
49
|
+
export type CliCommandExecutionReport<TSubject> = Readonly<{
|
|
50
|
+
appliedSubjects: readonly TSubject[];
|
|
51
|
+
failure: CliCommandExecutionReportFailure<TSubject> | null;
|
|
52
|
+
warnings: readonly string[];
|
|
53
|
+
}>;
|
|
54
|
+
export type CliCommandValidationCompileError = Readonly<{
|
|
55
|
+
code: 'command_validation_failed';
|
|
56
|
+
errors: readonly SiteCommandValidationError[];
|
|
57
|
+
message: string;
|
|
58
|
+
}>;
|
|
59
|
+
export type CliCommandCompileBatchSuccess<TCommandType extends SiteCommandType> = Readonly<{
|
|
60
|
+
batch: SiteCommandBatch;
|
|
61
|
+
plan: SiteCommandPlanFor<TCommandType>;
|
|
62
|
+
dryRunReport: DryRunReport;
|
|
63
|
+
}>;
|
|
64
|
+
export type CliCommandCompileBatchSuccessWithReports<TCommandType extends SiteCommandType, TSubject> = Readonly<{
|
|
65
|
+
reportedCommands: readonly CliCommandReportedPlannedCommand<SiteCommandOf<TCommandType>, TSubject>[];
|
|
66
|
+
}> & CliCommandCompileBatchSuccess<TCommandType>;
|
|
67
|
+
export declare function createCliCommandBatchRef(input: CliCommandBatchRefInput): string;
|
|
68
|
+
export declare function formatSiteCommandValidationErrors(errors: readonly {
|
|
69
|
+
message: string;
|
|
70
|
+
}[]): string;
|
|
71
|
+
export declare function formatManagementError(error: unknown): string;
|
|
72
|
+
export declare function planCliCommandBatchForTypes<TCommandType extends SiteCommandType>(input: CliCommandBatchRefInput & Readonly<{
|
|
73
|
+
commands: readonly SiteCommandOf<TCommandType>[];
|
|
74
|
+
commandTypes: readonly TCommandType[];
|
|
75
|
+
}>): Result<CliCommandCompileBatchSuccess<TCommandType>, CliCommandValidationCompileError>;
|
|
76
|
+
export declare function planCliCommandBatchForBindings<TCommandType extends SiteCommandType, TSubject>(input: CliCommandBatchRefInput & Readonly<{
|
|
77
|
+
commandBindings: readonly CliCommandReportBinding<SiteCommandOf<TCommandType>, TSubject>[];
|
|
78
|
+
commandTypes: readonly TCommandType[];
|
|
79
|
+
}>): Result<CliCommandCompileBatchSuccessWithReports<TCommandType, TSubject>, CliCommandValidationCompileError>;
|
|
80
|
+
export declare function executeCliCommandPlan<TCommand extends Readonly<{
|
|
81
|
+
ref: SiteCommandRef;
|
|
82
|
+
type: TCommandType;
|
|
83
|
+
}>, TCommandType extends SiteCommandType>(input: Readonly<{
|
|
84
|
+
commands: readonly PlannedCliCommand<TCommand>[];
|
|
85
|
+
applyCommand: (command: TCommand) => Promise<void>;
|
|
86
|
+
}>): Promise<CliCommandExecutionResult<TCommandType>>;
|
|
87
|
+
export declare function commandExecutionToReport<TCommand extends Readonly<{
|
|
88
|
+
ref: SiteCommandRef;
|
|
89
|
+
type: TCommandType;
|
|
90
|
+
}>, TCommandType extends SiteCommandType, TSubject>(input: Readonly<{
|
|
91
|
+
execution: CliCommandExecutionResult<TCommandType>;
|
|
92
|
+
reportedCommands: readonly CliCommandReportedPlannedCommand<TCommand, TSubject>[];
|
|
93
|
+
resourceLabel: string;
|
|
94
|
+
commandDisplayIdentifier: (command: TCommand) => string;
|
|
95
|
+
includeFailureSubject?: boolean;
|
|
96
|
+
}>): CliCommandExecutionReport<TSubject>;
|
|
97
|
+
export declare function commandReportToSyncResult<TSubject>(input: Readonly<{
|
|
98
|
+
report: CliCommandExecutionReport<TSubject>;
|
|
99
|
+
incrementSuccess: (result: SyncResult, subject: TSubject) => void;
|
|
100
|
+
recordFailure: (result: SyncResult, identifier: string, message: string, subject: TSubject | undefined) => void;
|
|
101
|
+
}>): SyncResult;
|
|
102
|
+
export declare function executeCompiledCliCommandPlanAsSyncResult<TCompiledPlan extends Readonly<{
|
|
103
|
+
plan: Readonly<{
|
|
104
|
+
commands: readonly unknown[];
|
|
105
|
+
}>;
|
|
106
|
+
}>, TExecutionResult>(input: Readonly<{
|
|
107
|
+
compiledPlan: TCompiledPlan;
|
|
108
|
+
onBeforeExecute?: (commandCount: number) => void;
|
|
109
|
+
executePlan: (plan: TCompiledPlan['plan']) => Promise<TExecutionResult>;
|
|
110
|
+
executionToSyncResult: (input: Readonly<{
|
|
111
|
+
execution: TExecutionResult;
|
|
112
|
+
compiledPlan: TCompiledPlan;
|
|
113
|
+
}>) => SyncResult;
|
|
114
|
+
}>): Promise<SyncResult>;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { type Result, type SiteId } from '@riverbankcms/core';
|
|
2
|
+
import { type AllowedRuntime, type SiteCommandOf } from '@riverbankcms/site-commands';
|
|
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 syncResultForEntryCommandCompileError(error: CliCommandCompileError): SyncResult;
|
|
53
|
+
export declare function entryCommandExecutionToSyncResult(input: Readonly<{
|
|
54
|
+
execution: CliEntryCommandExecutionResult;
|
|
55
|
+
compiledPlan: EntryCommandCompiledPlan;
|
|
56
|
+
}>): SyncResult;
|
|
57
|
+
export declare function entryCommandExecutionToReport(input: Readonly<{
|
|
58
|
+
execution: CliEntryCommandExecutionResult;
|
|
59
|
+
compiledPlan: EntryCommandCompiledPlan;
|
|
60
|
+
}>): EntryCommandExecutionReport;
|
|
61
|
+
export declare function entryCommandReportToSyncResult(report: EntryCommandExecutionReport): SyncResult;
|
|
62
|
+
export declare function titleFromEntryData(data: Record<string, unknown>): string | undefined;
|
|
63
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { type Result, type SiteId } from '@riverbankcms/core';
|
|
2
|
+
import { type SiteCommandOf } from '@riverbankcms/site-commands';
|
|
3
|
+
import type { ManagementClient } 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 CliFooterCommandExecutionResult = CliCommandExecutionResult<FooterSiteCommandType>;
|
|
24
|
+
export declare const footerSiteCommandTypes: readonly ["upsertFooterContent"];
|
|
25
|
+
export type FooterCommandReportSubject = Readonly<{
|
|
26
|
+
identifier: 'footer';
|
|
27
|
+
}>;
|
|
28
|
+
export type FooterCommandExecutionReport = CliCommandExecutionReport<FooterCommandReportSubject>;
|
|
29
|
+
type FooterCommandCompiledPlan = Pick<CliFooterCommandCompileSuccess, 'plan' | 'reportedCommands'>;
|
|
30
|
+
export declare function compileFooterPushCommands(input: CliFooterCommandCompileInput): Result<CliFooterCommandCompileSuccess, CliFooterCommandCompileError>;
|
|
31
|
+
export declare function executeFooterCommandPlan(input: Readonly<{
|
|
32
|
+
client: Pick<ManagementClient, 'footer'>;
|
|
33
|
+
plan: Pick<FooterSiteCommandPlan, 'commands'>;
|
|
34
|
+
}>): Promise<CliFooterCommandExecutionResult>;
|
|
35
|
+
export declare function executeFooterCommandPlanAsSyncResult(input: Readonly<{
|
|
36
|
+
client: Pick<ManagementClient, 'footer'>;
|
|
37
|
+
compiledPlan: FooterCommandCompiledPlan;
|
|
38
|
+
onBeforeExecute?: (commandCount: number) => void;
|
|
39
|
+
}>): Promise<SyncResult>;
|
|
40
|
+
export declare function syncResultForFooterCommandCompileError(error: CliFooterCommandCompileError): SyncResult;
|
|
41
|
+
export declare function footerCommandExecutionToSyncResult(input: Readonly<{
|
|
42
|
+
execution: CliFooterCommandExecutionResult;
|
|
43
|
+
compiledPlan: FooterCommandCompiledPlan;
|
|
44
|
+
}>): SyncResult;
|
|
45
|
+
export declare function footerCommandExecutionToReport(input: Readonly<{
|
|
46
|
+
execution: CliFooterCommandExecutionResult;
|
|
47
|
+
compiledPlan: FooterCommandCompiledPlan;
|
|
48
|
+
}>): FooterCommandExecutionReport;
|
|
49
|
+
export declare function footerCommandReportToSyncResult(report: FooterCommandExecutionReport): SyncResult;
|
|
50
|
+
export {};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { type Result, type SiteId } from '@riverbankcms/core';
|
|
2
|
+
import { type SiteCommandOf } from '@riverbankcms/site-commands';
|
|
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 executeFormCommandPlanAsSyncResult(input: Readonly<{
|
|
43
|
+
client: Pick<ManagementClient, 'forms'>;
|
|
44
|
+
compiledPlan: FormCommandCompiledPlan;
|
|
45
|
+
onBeforeExecute?: (commandCount: number) => void;
|
|
46
|
+
}>): Promise<SyncResult>;
|
|
47
|
+
export declare function syncResultForFormCommandCompileError(error: CliFormCommandCompileError): SyncResult;
|
|
48
|
+
export declare function formCommandExecutionToSyncResult(input: Readonly<{
|
|
49
|
+
execution: CliFormCommandExecutionResult;
|
|
50
|
+
compiledPlan: FormCommandCompiledPlan;
|
|
51
|
+
}>): SyncResult;
|
|
52
|
+
export declare function formCommandExecutionToReport(input: Readonly<{
|
|
53
|
+
execution: CliFormCommandExecutionResult;
|
|
54
|
+
compiledPlan: FormCommandCompiledPlan;
|
|
55
|
+
}>): FormCommandExecutionReport;
|
|
56
|
+
export declare function formCommandReportToSyncResult(report: FormCommandExecutionReport): SyncResult;
|
|
57
|
+
export {};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { type Result, type SiteId } from '@riverbankcms/core';
|
|
2
|
+
import { type SiteCommandOf } from '@riverbankcms/site-commands';
|
|
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
|
+
}> | CliCommandValidationCompileError;
|
|
16
|
+
export type CliNavigationCommandCompileInput = Readonly<{
|
|
17
|
+
source: CliNavigationCommandBatchSource;
|
|
18
|
+
siteId: SiteId;
|
|
19
|
+
targetEnv: EnvTarget;
|
|
20
|
+
diff: readonly NavigationDiff[];
|
|
21
|
+
local: Pick<LocalContent, 'navigation'>;
|
|
22
|
+
}>;
|
|
23
|
+
export type CliNavigationCommandCompileSuccess = CliCommandCompileBatchSuccessWithReports<NavigationSiteCommandType, NavigationCommandReportSubject>;
|
|
24
|
+
export type CliNavigationCommandExecutionError = CliCommandExecutionError<NavigationSiteCommandType>;
|
|
25
|
+
export type CliNavigationCommandExecutionResult = CliCommandExecutionResult<NavigationSiteCommandType>;
|
|
26
|
+
export type NavigationSiteCommandType = 'upsertNavigationMenu';
|
|
27
|
+
export type NavigationSiteCommand = SiteCommandOf<NavigationSiteCommandType>;
|
|
28
|
+
export type NavigationSiteCommandPlan = CliNavigationCommandCompileSuccess['plan'];
|
|
29
|
+
export declare const navigationSiteCommandTypes: readonly ["upsertNavigationMenu"];
|
|
30
|
+
export type NavigationCommandSyncCounter = 'created' | 'updated';
|
|
31
|
+
export type NavigationCommandReportSubject = Readonly<{
|
|
32
|
+
name: CliNavigationMenuName;
|
|
33
|
+
counter: NavigationCommandSyncCounter;
|
|
34
|
+
}>;
|
|
35
|
+
export type NavigationCommandExecutionReport = CliCommandExecutionReport<NavigationCommandReportSubject>;
|
|
36
|
+
type NavigationCommandCompiledPlan = Pick<CliNavigationCommandCompileSuccess, 'plan' | 'reportedCommands'>;
|
|
37
|
+
export declare function compileNavigationPushCommands(input: CliNavigationCommandCompileInput): Result<CliNavigationCommandCompileSuccess, CliNavigationCommandCompileError>;
|
|
38
|
+
export declare function executeNavigationCommandPlan(input: Readonly<{
|
|
39
|
+
client: Pick<ManagementClient, 'navigation'>;
|
|
40
|
+
plan: Pick<NavigationSiteCommandPlan, 'commands'>;
|
|
41
|
+
}>): Promise<CliNavigationCommandExecutionResult>;
|
|
42
|
+
export declare function executeNavigationCommandPlanAsSyncResult(input: Readonly<{
|
|
43
|
+
client: Pick<ManagementClient, 'navigation'>;
|
|
44
|
+
compiledPlan: NavigationCommandCompiledPlan;
|
|
45
|
+
onBeforeExecute?: (commandCount: number) => void;
|
|
46
|
+
}>): Promise<SyncResult>;
|
|
47
|
+
export declare function syncResultForNavigationCommandCompileError(error: CliNavigationCommandCompileError): SyncResult;
|
|
48
|
+
export declare function navigationCommandExecutionToSyncResult(input: Readonly<{
|
|
49
|
+
execution: CliNavigationCommandExecutionResult;
|
|
50
|
+
compiledPlan: NavigationCommandCompiledPlan;
|
|
51
|
+
}>): SyncResult;
|
|
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 {};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { type Result, type SiteId } from '@riverbankcms/core';
|
|
2
|
+
import { type SiteCommandOf } from '@riverbankcms/site-commands';
|
|
3
|
+
import type { ManagementClient } from '../../client/management/types';
|
|
4
|
+
import type { LocalContent } from '../content/reader';
|
|
5
|
+
import type { EnvTarget } from '../helpers';
|
|
6
|
+
import type { BlockFieldExtensionsMap } from '../../config/types';
|
|
7
|
+
import type { ContentDiff } from '../sync/diff';
|
|
8
|
+
import { type SyncResult } from '../sync';
|
|
9
|
+
import { type CliBlockIdentifier, type CliPageIdentifier } from './commandKeys';
|
|
10
|
+
import { type CliCommandCompileBatchSuccessWithReports, type CliCommandExecutionError, type CliCommandExecutionReport, type CliCommandExecutionResult, type CliCommandValidationCompileError } from './commandRuntime';
|
|
11
|
+
export type CliPageCommandBatchSource = 'push_pages';
|
|
12
|
+
export type CliPageCommandCompileError = Readonly<{
|
|
13
|
+
code: 'missing_local_page';
|
|
14
|
+
identifier: CliPageIdentifier;
|
|
15
|
+
message: string;
|
|
16
|
+
}> | Readonly<{
|
|
17
|
+
code: 'missing_local_block';
|
|
18
|
+
identifier: `${CliPageIdentifier}/${CliBlockIdentifier}`;
|
|
19
|
+
message: string;
|
|
20
|
+
}> | Readonly<{
|
|
21
|
+
code: 'invalid_page_block';
|
|
22
|
+
identifier: `${CliPageIdentifier}/${CliBlockIdentifier}`;
|
|
23
|
+
warnings: readonly string[];
|
|
24
|
+
message: string;
|
|
25
|
+
}> | CliCommandValidationCompileError;
|
|
26
|
+
export type CliPageCommandCompileInput = Readonly<{
|
|
27
|
+
source: CliPageCommandBatchSource;
|
|
28
|
+
siteId: SiteId;
|
|
29
|
+
targetEnv: EnvTarget;
|
|
30
|
+
diff: Pick<ContentDiff, 'pages'>;
|
|
31
|
+
local: Pick<LocalContent, 'pages'>;
|
|
32
|
+
blockFieldExtensions?: BlockFieldExtensionsMap;
|
|
33
|
+
}>;
|
|
34
|
+
export type CliPageCommandCompileSuccess = CliCommandCompileBatchSuccessWithReports<PageSiteCommandType, PageCommandReportSubject> & Readonly<{
|
|
35
|
+
warnings: readonly string[];
|
|
36
|
+
}>;
|
|
37
|
+
export type PageSiteCommandType = 'upsertPage' | 'upsertPageBlock' | 'deletePageBlock' | 'reorderPageBlocks' | 'publishPage' | 'unpublishPage';
|
|
38
|
+
export type PageSiteCommand = SiteCommandOf<PageSiteCommandType>;
|
|
39
|
+
export type PageSiteCommandPlan = CliPageCommandCompileSuccess['plan'];
|
|
40
|
+
export type CliPageCommandExecutionError = CliCommandExecutionError<PageSiteCommandType>;
|
|
41
|
+
export type CliPageCommandExecutionResult = CliCommandExecutionResult<PageSiteCommandType>;
|
|
42
|
+
export declare const pageSiteCommandTypes: readonly ["upsertPage", "upsertPageBlock", "deletePageBlock", "reorderPageBlocks", "publishPage", "unpublishPage"];
|
|
43
|
+
export type PageCommandSyncCounter = 'created' | 'updated' | 'published' | 'unpublished';
|
|
44
|
+
export type BlockCommandSyncCounter = 'created' | 'updated' | 'deleted' | 'reordered';
|
|
45
|
+
export type PageCommandReportSubject = Readonly<{
|
|
46
|
+
resource: 'page';
|
|
47
|
+
identifier: CliPageIdentifier;
|
|
48
|
+
counter: PageCommandSyncCounter;
|
|
49
|
+
}> | Readonly<{
|
|
50
|
+
resource: 'block';
|
|
51
|
+
pageIdentifier: CliPageIdentifier;
|
|
52
|
+
identifier: CliBlockIdentifier | CliPageIdentifier;
|
|
53
|
+
counter: BlockCommandSyncCounter;
|
|
54
|
+
}>;
|
|
55
|
+
export type PageCommandExecutionReport = CliCommandExecutionReport<PageCommandReportSubject>;
|
|
56
|
+
type PageCommandCompiledPlan = Pick<CliPageCommandCompileSuccess, 'plan' | 'reportedCommands' | 'warnings'>;
|
|
57
|
+
export declare function compilePagePushCommands(input: CliPageCommandCompileInput): Result<CliPageCommandCompileSuccess, CliPageCommandCompileError>;
|
|
58
|
+
export type PageCommandRoutingDecision = Readonly<{
|
|
59
|
+
kind: 'no_page_changes';
|
|
60
|
+
}> | Readonly<{
|
|
61
|
+
kind: 'command_backed';
|
|
62
|
+
}>;
|
|
63
|
+
export declare function pageCommandRouting(diff: Pick<ContentDiff, 'pages'>): PageCommandRoutingDecision;
|
|
64
|
+
export declare function executePageCommandPlan(input: Readonly<{
|
|
65
|
+
client: Pick<ManagementClient, 'pages' | 'blocks'>;
|
|
66
|
+
plan: Pick<PageSiteCommandPlan, 'commands'>;
|
|
67
|
+
}>): Promise<CliPageCommandExecutionResult>;
|
|
68
|
+
export declare function executePageCommandPlanAsSyncResult(input: Readonly<{
|
|
69
|
+
client: Pick<ManagementClient, 'pages' | 'blocks'>;
|
|
70
|
+
compiledPlan: PageCommandCompiledPlan;
|
|
71
|
+
onBeforeExecute?: (commandCount: number) => void;
|
|
72
|
+
}>): Promise<SyncResult>;
|
|
73
|
+
export declare function syncResultForPageCommandCompileError(error: CliPageCommandCompileError): SyncResult;
|
|
74
|
+
export declare function pageCommandExecutionToSyncResult(input: Readonly<{
|
|
75
|
+
execution: CliPageCommandExecutionResult;
|
|
76
|
+
compiledPlan: PageCommandCompiledPlan;
|
|
77
|
+
}>): SyncResult;
|
|
78
|
+
export declare function pageCommandExecutionToReport(input: Readonly<{
|
|
79
|
+
execution: CliPageCommandExecutionResult;
|
|
80
|
+
compiledPlan: PageCommandCompiledPlan;
|
|
81
|
+
}>): PageCommandExecutionReport;
|
|
82
|
+
export declare function pageCommandReportToSyncResult(report: PageCommandExecutionReport): SyncResult;
|
|
83
|
+
export {};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { type Result, type SiteId } from '@riverbankcms/core';
|
|
2
|
+
import { compileEntryPushCommands } from './entryCommands';
|
|
3
|
+
import { compileFormPushCommands } from './formCommands';
|
|
4
|
+
import { compileNavigationPushCommands } from './navigationCommands';
|
|
5
|
+
import { compilePagePushCommands } from './pageCommands';
|
|
6
|
+
import type { ManagementClient } from '../../client/management/types';
|
|
7
|
+
import type { PushScope } from '../commands/push/consts';
|
|
8
|
+
import type { LocalContent } from '../content/reader';
|
|
9
|
+
import type { EnvTarget } from '../helpers';
|
|
10
|
+
import type { OutputContext } from '../output';
|
|
11
|
+
import { type ContentDiff, type ResidualSettingsDiff, type ResidualSettingsLocalContent, type SyncResult } from '../sync';
|
|
12
|
+
export type CommandSurface = 'entry' | 'page' | 'form' | 'navigation';
|
|
13
|
+
type ResidualSettingsPushPlan = Readonly<{
|
|
14
|
+
diff: ResidualSettingsDiff;
|
|
15
|
+
local: ResidualSettingsLocalContent;
|
|
16
|
+
}>;
|
|
17
|
+
type CommandSurfaceFailurePolicy = 'continue' | 'stop';
|
|
18
|
+
export type CommandSurfaceCompileResult = Readonly<{
|
|
19
|
+
surface: 'entry';
|
|
20
|
+
compileResult: ReturnType<typeof compileEntryPushCommands>;
|
|
21
|
+
}> | Readonly<{
|
|
22
|
+
surface: 'page';
|
|
23
|
+
compileResult: ReturnType<typeof compilePagePushCommands>;
|
|
24
|
+
}> | Readonly<{
|
|
25
|
+
surface: 'form';
|
|
26
|
+
compileResult: ReturnType<typeof compileFormPushCommands>;
|
|
27
|
+
}> | Readonly<{
|
|
28
|
+
surface: 'navigation';
|
|
29
|
+
compileResult: ReturnType<typeof compileNavigationPushCommands>;
|
|
30
|
+
}>;
|
|
31
|
+
export type CommandSurfaceCompileSuccess = Readonly<{
|
|
32
|
+
surface: 'entry';
|
|
33
|
+
compileValue: OkValue<ReturnType<typeof compileEntryPushCommands>>;
|
|
34
|
+
}> | Readonly<{
|
|
35
|
+
surface: 'page';
|
|
36
|
+
compileValue: OkValue<ReturnType<typeof compilePagePushCommands>>;
|
|
37
|
+
}> | Readonly<{
|
|
38
|
+
surface: 'form';
|
|
39
|
+
compileValue: OkValue<ReturnType<typeof compileFormPushCommands>>;
|
|
40
|
+
}> | Readonly<{
|
|
41
|
+
surface: 'navigation';
|
|
42
|
+
compileValue: OkValue<ReturnType<typeof compileNavigationPushCommands>>;
|
|
43
|
+
}>;
|
|
44
|
+
type OkValue<T> = T extends Readonly<{
|
|
45
|
+
ok: true;
|
|
46
|
+
value: infer TValue;
|
|
47
|
+
}> ? TValue : never;
|
|
48
|
+
export type ContentPushExecutionStep = Readonly<{
|
|
49
|
+
kind: 'residual-settings-sync';
|
|
50
|
+
residual: ResidualSettingsPushPlan;
|
|
51
|
+
onFailure: CommandSurfaceFailurePolicy;
|
|
52
|
+
}> | Readonly<{
|
|
53
|
+
kind: 'command-surface';
|
|
54
|
+
surface: CommandSurfaceCompileSuccess;
|
|
55
|
+
onFailure: CommandSurfaceFailurePolicy;
|
|
56
|
+
}>;
|
|
57
|
+
export type ContentPushExecutionPlan = Readonly<{
|
|
58
|
+
kind: 'sync-steps';
|
|
59
|
+
steps: readonly ContentPushExecutionStep[];
|
|
60
|
+
}>;
|
|
61
|
+
export declare function executeContentPushPlan(input: Readonly<{
|
|
62
|
+
pushScope: PushScope;
|
|
63
|
+
siteId: SiteId;
|
|
64
|
+
target: EnvTarget;
|
|
65
|
+
diff: ContentDiff;
|
|
66
|
+
local: LocalContent;
|
|
67
|
+
client: ManagementClient;
|
|
68
|
+
blockFieldExtensions: Parameters<typeof compilePagePushCommands>[0]['blockFieldExtensions'];
|
|
69
|
+
output: OutputContext;
|
|
70
|
+
onEntryCommandCount?: (commandCount: number) => void;
|
|
71
|
+
onFormCommandCount?: (commandCount: number) => void;
|
|
72
|
+
onNavigationCommandCount?: (commandCount: number) => void;
|
|
73
|
+
onPageCommandCount?: (commandCount: number) => void;
|
|
74
|
+
}>): Promise<SyncResult>;
|
|
75
|
+
export declare function planContentPushExecution(input: Readonly<{
|
|
76
|
+
pushScope: PushScope;
|
|
77
|
+
siteId: SiteId;
|
|
78
|
+
target: EnvTarget;
|
|
79
|
+
diff: ContentDiff;
|
|
80
|
+
local: LocalContent;
|
|
81
|
+
blockFieldExtensions?: Parameters<typeof compilePagePushCommands>[0]['blockFieldExtensions'];
|
|
82
|
+
}>): Result<ContentPushExecutionPlan, SyncResult>;
|
|
83
|
+
export {};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Sync Executor
|
|
2
|
+
* Residual Sync Executor
|
|
3
3
|
*
|
|
4
|
-
* Applies
|
|
5
|
-
*
|
|
4
|
+
* Applies the small set of SDK CLI writes that have not yet moved onto the
|
|
5
|
+
* shared site-command IR. Command-backed surfaces fail closed here so direct
|
|
6
|
+
* writes cannot silently come back through this path.
|
|
6
7
|
*/
|
|
7
8
|
import type { ManagementClient } from '../../client/management/types';
|
|
8
|
-
import type { LocalContent
|
|
9
|
+
import type { LocalContent } from '../content/reader';
|
|
9
10
|
import type { OutputContext } from '../output';
|
|
10
|
-
import type { ContentDiff
|
|
11
|
-
import type { BlockFieldExtensionsMap } from '../../config/types';
|
|
11
|
+
import type { ContentDiff } from './diff';
|
|
12
12
|
/**
|
|
13
13
|
* Format API errors with detailed field validation info when available.
|
|
14
14
|
*/
|
|
@@ -16,8 +16,6 @@ export declare function formatApiError(error: unknown): string;
|
|
|
16
16
|
export interface SyncOptions {
|
|
17
17
|
/** If true, don't actually make changes */
|
|
18
18
|
dryRun: boolean;
|
|
19
|
-
/** Custom block field extensions from config (for validation) */
|
|
20
|
-
blockFieldExtensions?: BlockFieldExtensionsMap;
|
|
21
19
|
}
|
|
22
20
|
export interface SyncResult {
|
|
23
21
|
entries: {
|
|
@@ -66,26 +64,11 @@ export interface SyncResult {
|
|
|
66
64
|
}>;
|
|
67
65
|
warnings: string[];
|
|
68
66
|
}
|
|
69
|
-
export
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
error?: string;
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Sync footer content from local to CMS.
|
|
76
|
-
*
|
|
77
|
-
* Footer is synced separately from other content because:
|
|
78
|
-
* - It's a single entity (not a collection)
|
|
79
|
-
* - It requires pulling remote state first for comparison
|
|
80
|
-
*
|
|
81
|
-
* @param client - Management client
|
|
82
|
-
* @param localFooter - Local footer content from footer.json
|
|
83
|
-
* @param options - Sync options (dryRun)
|
|
84
|
-
* @returns Footer sync result with diff and status
|
|
85
|
-
*/
|
|
86
|
-
export declare function syncFooter(client: ManagementClient, localFooter: LocalFooterContent, options: SyncOptions): Promise<FooterSyncResult>;
|
|
67
|
+
export type ResidualSettingsDiff = Readonly<Pick<ContentDiff, 'settings' | 'summary'>>;
|
|
68
|
+
export type ResidualSettingsLocalContent = Readonly<Pick<LocalContent, 'settings'>>;
|
|
69
|
+
export declare function createEmptySyncResult(): SyncResult;
|
|
87
70
|
/**
|
|
88
|
-
* Execute
|
|
71
|
+
* Execute the remaining settings-only sync plan.
|
|
89
72
|
*
|
|
90
73
|
* @param client - Management client
|
|
91
74
|
* @param diff - Calculated content diff
|
|
@@ -94,7 +77,7 @@ export declare function syncFooter(client: ManagementClient, localFooter: LocalF
|
|
|
94
77
|
* @param output - Output context for progress reporting
|
|
95
78
|
* @returns Sync result with counts and errors
|
|
96
79
|
*/
|
|
97
|
-
export declare function
|
|
80
|
+
export declare function executeResidualSettingsSyncPlan(client: ManagementClient, diff: ResidualSettingsDiff, local: ResidualSettingsLocalContent, options: SyncOptions, output: OutputContext): Promise<SyncResult>;
|
|
98
81
|
/**
|
|
99
82
|
* Format sync result for display.
|
|
100
83
|
*/
|
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
* Provides content synchronization between local files and CMS.
|
|
5
5
|
*/
|
|
6
6
|
export { calculateDiff, calculatePullDiff, hasPendingChanges, formatDiffSummary, formatDiffDetail, buildJsonDiff, type ContentDiff, type EntryDiff, type PageDiff, type BlockDiff, type NavigationDiff, type DiffType, type DiffOptions, type JsonDiff, type JsonDiffMode, type JsonDiffChange, type JsonDiffChangeType, type JsonDiffOperation, type PullJsonDiff, type PullJsonDiffChange, type FieldChange, findChangedFieldsWithValues, formatValue, formatHumanDiff, } from './diff';
|
|
7
|
-
export {
|
|
7
|
+
export { executeResidualSettingsSyncPlan, createEmptySyncResult, formatSyncResult, type SyncOptions, type SyncResult, type ResidualSettingsDiff, type ResidualSettingsLocalContent, } from './executor';
|
|
8
8
|
export { extractMediaPaths, buildStorageUrl, downloadMedia, syncMedia, type MediaSyncResult, type MediaSyncSummary, type MediaSyncOptions, type MediaUploadClient, } from './media';
|