@riverbankcms/sdk 0.67.0 → 0.70.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 +21 -11
- package/dist/_dts/api/src/accessAdmin.d.ts +3 -3
- package/dist/_dts/api/src/admin/types.d.ts +1 -1
- package/dist/_dts/api/src/aiPlayground.d.ts +13 -39
- package/dist/_dts/api/src/appointmentSetup.d.ts +4 -0
- package/dist/_dts/api/src/billing.d.ts +7 -40
- package/dist/_dts/api/src/bookingConfig.d.ts +2 -2
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +4 -1
- package/dist/_dts/api/src/bookingOperations.d.ts +32 -1
- package/dist/_dts/api/src/bookingRecords.d.ts +1 -1
- package/dist/_dts/api/src/bookings.d.ts +1 -1
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +1 -1
- package/dist/_dts/api/src/communications.d.ts +1 -1
- package/dist/_dts/api/src/contentRuntime.d.ts +2 -2
- package/dist/_dts/api/src/contentTypes.d.ts +1 -1
- package/dist/_dts/api/src/endpoints.d.ts +7 -0
- package/dist/_dts/api/src/navigation/contracts.d.ts +9 -9
- package/dist/_dts/api/src/navigation/linkValue.d.ts +1 -1
- package/dist/_dts/api/src/navigation/types.d.ts +1 -1
- package/dist/_dts/api/src/public/index.d.ts +2 -2
- package/dist/_dts/api/src/public/types.d.ts +3 -3
- package/dist/_dts/api/src/sdkConfig/contracts.d.ts +1 -2
- package/dist/_dts/api/src/sdkContracts.d.ts +1 -1
- package/dist/_dts/api/src/siteBanner.d.ts +9 -9
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +2 -2
- package/dist/_dts/api/src/siteOnboarding.d.ts +1 -1
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +1 -1
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +5 -5
- package/dist/_dts/api/src/siteSettings.d.ts +3 -3
- package/dist/_dts/api/src/teamMembers.d.ts +1 -1
- package/dist/_dts/api/src/types.d.ts +1 -1
- package/dist/_dts/api/src/url.d.ts +1 -1
- package/dist/_dts/billing/src/components/index.d.ts +484 -0
- package/dist/_dts/block-form/src/backend/store-backend.d.ts +1 -1
- package/dist/_dts/block-form/src/backend/types.d.ts +2 -2
- package/dist/_dts/block-form/src/blockDraftSaveability.d.ts +2 -2
- package/dist/_dts/block-form/src/context/ImageResolveContext.d.ts +1 -1
- package/dist/_dts/block-form/src/fields/types.d.ts +1 -1
- package/dist/_dts/block-form/src/manifest/ManifestForm.d.ts +1 -1
- package/dist/_dts/block-form/src/manifest/canonicalValidation.d.ts +1 -1
- package/dist/_dts/block-form/src/manifest/manifestFormAdapter.d.ts +1 -1
- package/dist/_dts/block-form/src/manifest/mergeManifestWithSdkOptions.d.ts +1 -1
- package/dist/_dts/block-form/src/sdk-config/SdkConfigContext.d.ts +1 -1
- package/dist/_dts/block-form/src/shared/disclosure.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/BackgroundGradientWidget/BackgroundGradientWidget.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/DateField/datePickerPopover.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterLayoutGrid.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/layoutGridDomain.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/useRepeaterPointerDragCapability.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/repeaterDndDomain.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/repeaterPresentation.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/resolveThumbnail.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/RichTextField/richTextFieldSchema.d.ts +4 -4
- package/dist/_dts/block-form/src/widgets/constants.d.ts +1 -1
- package/dist/_dts/blocks/src/PageRenderer.d.ts +5 -1
- package/dist/_dts/blocks/src/bindings/index.d.ts +2 -2
- package/dist/_dts/blocks/src/client.d.ts +11 -3
- package/dist/_dts/blocks/src/index.d.ts +28 -27
- package/dist/_dts/blocks/src/portal/types.d.ts +1 -1
- package/dist/_dts/blocks/src/primitives/content/components/Button.d.ts +1 -1
- package/dist/_dts/blocks/src/rendering/server.d.ts +1 -1
- package/dist/_dts/blocks/src/server.d.ts +1 -1
- package/dist/_dts/blocks/src/structure/schema.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/appointment-booking.d.ts +1665 -1665
- package/dist/_dts/blocks/src/system/blocks/blog-listing.d.ts +1666 -1666
- package/dist/_dts/blocks/src/system/blocks/blog-post.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/cart.d.ts +1665 -1665
- package/dist/_dts/blocks/src/system/blocks/checkout.d.ts +1665 -1665
- package/dist/_dts/blocks/src/system/blocks/collection.d.ts +1666 -1666
- package/dist/_dts/blocks/src/system/blocks/columns.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/courses/shared/pricing.d.ts +3 -2
- package/dist/_dts/blocks/src/system/blocks/courses/shared/schemas.d.ts +42 -42
- package/dist/_dts/blocks/src/system/blocks/cta-full.d.ts +1761 -1761
- package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/events/event-spotlight.d.ts +1764 -1764
- package/dist/_dts/blocks/src/system/blocks/events/shared/filtering.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +44 -44
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/faq.d.ts +1665 -1665
- package/dist/_dts/blocks/src/system/blocks/file-download.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/gifting.d.ts +1665 -1665
- package/dist/_dts/blocks/src/system/blocks/image-gallery.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +9 -9
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +139 -139
- package/dist/_dts/blocks/src/system/blocks/product-detail.d.ts +1665 -1665
- package/dist/_dts/blocks/src/system/blocks/product-list.d.ts +1665 -1665
- package/dist/_dts/blocks/src/system/blocks/shared/bookingPaymentTerms.d.ts +19 -19
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +1665 -1665
- package/dist/_dts/blocks/src/system/blocks/team-members.d.ts +3 -3
- 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/componentFactory.d.ts +1 -1
- package/dist/_dts/blocks/src/system/constants/background.d.ts +1 -1
- package/dist/_dts/blocks/src/system/customize/facets.d.ts +5 -5
- package/dist/_dts/blocks/src/system/designCapabilities.d.ts +1 -1
- package/dist/_dts/blocks/src/system/fields/boxStyles.d.ts +1 -1
- package/dist/_dts/blocks/src/system/fragments/library/card.d.ts +1761 -1761
- package/dist/_dts/blocks/src/system/fragments/library/ctaRow.d.ts +1761 -1761
- package/dist/_dts/blocks/src/system/fragments/library/feedbackCallout.d.ts +1761 -1761
- package/dist/_dts/blocks/src/system/fragments/library/heroCtaRow.d.ts +1761 -1761
- package/dist/_dts/blocks/src/system/fragments/library/sectionState.d.ts +1761 -1761
- package/dist/_dts/blocks/src/system/frame/frameStyles.d.ts +3 -3
- package/dist/_dts/blocks/src/system/helpers/resolveBackground.d.ts +2 -2
- package/dist/_dts/blocks/src/system/manifest/augmentManifest.d.ts +1 -1
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +201 -201
- package/dist/_dts/blocks/src/system/media/constrainedVideoMedia.d.ts +1 -1
- package/dist/_dts/blocks/src/system/media/slotContracts.d.ts +1 -1
- package/dist/_dts/blocks/src/system/node/fragments/ctaButton.d.ts +1 -1
- package/dist/_dts/blocks/src/system/node/fragments/typography.d.ts +1 -1
- package/dist/_dts/blocks/src/system/node/schema.d.ts +5 -5
- package/dist/_dts/blocks/src/system/registry.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/api/types.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/header/shared.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/hooks/useAvailableDates.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useAvailableSlots.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.d.ts +140 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.state.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useVisibleTabPolling.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/accordion.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/accordion.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/basic.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.default-ui.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +500 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.reserved-fields.d.ts +27 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +15 -8
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/timetableModel.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/utils.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/location-map.shared.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/media.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/LeafletStaticMap.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +6 -6
- package/dist/_dts/blocks/src/system/runtime/shared/bookingPaymentOptionCopy.d.ts +1 -1
- package/dist/_dts/blocks/src/system/theme/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/transforms/registry/layout.d.ts +1 -1
- package/dist/_dts/blocks/src/system/transforms/registry/ui.d.ts +1 -1
- package/dist/_dts/blocks/src/system/transforms/typed.d.ts +3 -3
- package/dist/_dts/blocks/src/system/types/link.d.ts +3 -3
- package/dist/_dts/content-editor/src/components/ContentFieldsForm.d.ts +3 -3
- package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +3 -3
- package/dist/_dts/content-editor/src/controller/buildBlockPublishedBaselines.d.ts +2 -2
- package/dist/_dts/content-editor/src/controller/buildPublishSuccessTransition.d.ts +2 -2
- package/dist/_dts/content-editor/src/controller/deriveRecoveryConflict.d.ts +1 -1
- package/dist/_dts/content-editor/src/controller/invalidBlockRecovery.d.ts +1 -1
- package/dist/_dts/content-editor/src/controller/seedDraftBaselinesFromBlocks.d.ts +1 -1
- package/dist/_dts/content-editor/src/controller/useBlocksList.d.ts +1 -1
- package/dist/_dts/content-editor/src/controller/useEntrySyncHelpers.d.ts +3 -3
- package/dist/_dts/content-editor/src/controller/useInvalidBlockRecovery.d.ts +1 -1
- package/dist/_dts/content-editor/src/hooks/blockedPublishPlan.d.ts +1 -1
- package/dist/_dts/content-editor/src/hooks/useEntryActions.d.ts +1 -1
- package/dist/_dts/content-editor/src/hooks/useEntryMutations.d.ts +2 -2
- package/dist/_dts/content-editor/src/hooks/useStoreAutosave.d.ts +1 -1
- package/dist/_dts/content-editor/src/hooks/validateBlocksForPublish.d.ts +1 -1
- package/dist/_dts/content-editor/src/primitives/PreviewRichTextEditor.d.ts +1 -1
- package/dist/_dts/content-editor/src/primitives/PreviewTextEditor.d.ts +1 -1
- package/dist/_dts/content-editor/src/registry.d.ts +1 -1
- package/dist/_dts/content-editor/src/services/contentEntryServices.d.ts +2 -2
- package/dist/_dts/content-editor/src/types.d.ts +2 -2
- package/dist/_dts/content-editor/src/ui/blockValidationView.d.ts +3 -3
- package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +1 -1
- package/dist/_dts/content-editor/src/ui/stores/types.d.ts +1 -1
- package/dist/_dts/content-editor/src/ui/stores/utils.d.ts +1 -1
- package/dist/_dts/content-model/src/content-types/schema.d.ts +8 -8
- package/dist/_dts/core/src/branded.d.ts +2 -0
- package/dist/_dts/core/src/index.d.ts +2 -0
- package/dist/_dts/core/src/planner.d.ts +64 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +17 -18
- package/dist/_dts/db/src/schemas/forms.d.ts +62 -62
- package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +5 -5
- package/dist/_dts/editor-blocks/src/BlockForm.d.ts +5 -5
- package/dist/_dts/editor-blocks/src/FormProvider.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/BlockCard.d.ts +6 -6
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardBody.d.ts +3 -3
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardHeader.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/BlockListContext.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/BlockPickerDialog.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockSettingsModal.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/BlockThumbnail.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockTile.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/EnhancedBlockPickerDialog.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/SortableBlockItem.d.ts +3 -3
- package/dist/_dts/editor-blocks/src/block-editor/blockDiscovery.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/hooks/buildInsertBlockHistoryCommand.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockBaselineSync.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockCreation.d.ts +3 -3
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockDuplication.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockReorder.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useDraftContent.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/preparedManifest.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/sdkBlockMerger.d.ts +3 -3
- package/dist/_dts/editor-blocks/src/block-editor/settingsIntent.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/types.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-form/debug.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/blockPayload.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/index.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/media/MediaField.d.ts +6 -6
- package/dist/_dts/editor-blocks/src/widgets/button/ButtonField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/button/ButtonVariantField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/button/context.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/button/index.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/content-type-select/ContentTypeSelectField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/entry-picker/EntryPickerField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/entry-picker/EntryPickerWidgetProvider.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/entry-picker/index.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/entry-picker/loaders.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/entry-picker/types.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/icon-picker/IconPickerField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/link/LinkField.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/link/LinkPicker.d.ts +3 -3
- package/dist/_dts/editor-blocks/src/widgets/link/LinkPickerDialog.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/link/LinkSummary.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/link/LinkWidget.d.ts +3 -3
- package/dist/_dts/editor-blocks/src/widgets/link/LinkWidgetContext.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/link/loaders.d.ts +3 -3
- package/dist/_dts/editor-blocks/src/widgets/link/types.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/link/utils.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/reference/ReferenceField.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/reference/ReferenceWidgetProvider.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/reference/dynamicAdapters.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/reference/loaders.d.ts +3 -3
- package/dist/_dts/editor-blocks/src/widgets/reference/types.d.ts +3 -3
- package/dist/_dts/editor-blocks/src/widgets/rich-text/RichTextField.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/rich-text/RichTextWidgetProvider.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/rich-text/ensureRichTextImageAssetIdentifier.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/rich-text/richTextImageHydration.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/shared/Combobox.d.ts +1 -1
- package/dist/_dts/media-core/src/fileAssetCompatibility.d.ts +1 -1
- package/dist/_dts/media-core/src/fileAssetDeletion.d.ts +1 -1
- package/dist/_dts/media-core/src/fileDomain.d.ts +1 -1
- package/dist/_dts/media-core/src/fileDownloadResolution.d.ts +1 -1
- package/dist/_dts/media-core/src/filePersistence.d.ts +1 -1
- package/dist/_dts/media-core/src/fileStorage.d.ts +1 -1
- package/dist/_dts/media-core/src/fileUploadAssetBuilder.d.ts +1 -1
- package/dist/_dts/media-core/src/fileUploadCleanup.d.ts +1 -1
- package/dist/_dts/media-core/src/fileUploadCompletion.d.ts +1 -1
- package/dist/_dts/media-core/src/fileUploadDurableFinalization.d.ts +1 -1
- package/dist/_dts/media-core/src/fileUploadFinalization.d.ts +1 -1
- package/dist/_dts/media-core/src/fileUploadSessionCreation.d.ts +1 -1
- package/dist/_dts/media-core/src/types.d.ts +2 -2
- package/dist/_dts/media-core/src/url.d.ts +1 -1
- package/dist/_dts/media-core/src/videoPrep.d.ts +1 -1
- package/dist/_dts/media-editor/src/CropDialog.d.ts +1 -1
- package/dist/_dts/media-editor/src/MediaEditor.d.ts +2 -2
- package/dist/_dts/media-editor/src/MediaPickerDialog.d.ts +1 -1
- package/dist/_dts/media-editor/src/context.d.ts +3 -3
- package/dist/_dts/media-editor/src/createMediaEditorProvider.d.ts +1 -1
- package/dist/_dts/media-editor/src/cropEditorSource.d.ts +1 -1
- package/dist/_dts/media-editor/src/debug.d.ts +1 -1
- package/dist/_dts/media-editor/src/provider.d.ts +3 -3
- package/dist/_dts/media-editor/src/runtimeMediaAssetState.d.ts +1 -1
- package/dist/_dts/media-editor/src/transformModel.d.ts +1 -1
- package/dist/_dts/media-editor/src/types.d.ts +2 -2
- package/dist/_dts/media-editor/src/utils.d.ts +1 -1
- package/dist/_dts/media-react/src/components/ImageCropper.d.ts +1 -1
- package/dist/_dts/media-react/src/components/cropDraftModel.d.ts +1 -1
- package/dist/_dts/media-react/src/components/cropGeometry.d.ts +1 -1
- package/dist/_dts/media-react/src/components/cropSessionState.d.ts +1 -1
- package/dist/_dts/media-react/src/components/useImageCropperController.d.ts +1 -1
- package/dist/_dts/media-react/src/ffmpegLoader.d.ts +1 -1
- package/dist/_dts/media-react/src/hooks/internal/classification.d.ts +1 -1
- package/dist/_dts/media-react/src/hooks/mediaAssetResponseMapper.d.ts +1 -1
- package/dist/_dts/media-react/src/hooks/useApiMediaUploader.d.ts +4 -4
- package/dist/_dts/media-react/src/utils/rotation.d.ts +1 -1
- package/dist/_dts/media-react/src/videoFrameExtraction.d.ts +1 -1
- package/dist/_dts/media-react/src/videoPrepBrowser.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/blocks/BoundaryControl.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/blocks/EditablePageRenderer.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/blocks/composer/composePageFromBlocks.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/blocks/composer/mergeDrafts.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/blocks/composer/types.d.ts +3 -3
- package/dist/_dts/preview-next/src/client/blocks/customizeFacetControls.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/blocks/editorRegistry.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/blocks/pageDesignRuntimePreview.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/blocks/previewCustomizeActions.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/aiProposalProjection.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/applyPreviewProjections.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/runtimeContentDecoration.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/types.d.ts +3 -3
- package/dist/_dts/preview-next/src/client/preview/EntryEditorPanel.d.ts +5 -5
- package/dist/_dts/preview-next/src/client/preview/OnboardingThemeSwitcher.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/PageBlockEditorPanel.d.ts +5 -5
- package/dist/_dts/preview-next/src/client/preview/PageDesignEditorStateContext.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewAuthBanner.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +9 -9
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorUI.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +8 -8
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +8 -8
- package/dist/_dts/preview-next/src/client/preview/PreviewViewportControls.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewZoomControls.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +5 -5
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +5 -5
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +4 -4
- package/dist/_dts/preview-next/src/client/preview/pageSchema.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/previewChromeSurface.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/previewChromeSurfacePolicy.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeHistory.d.ts +3 -3
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeRuntimePatch.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeWorkflowState.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/previewSurface.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/sidebarTabPreference.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/siteChromeLookRows.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorSnapshot.d.ts +4 -4
- package/dist/_dts/preview-next/src/client/preview/subrouteNotice.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/themeOverlay.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/sdk/SdkPreviewMode.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/widgets/PreviewMediaField.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/widgets/widgetAdapters.d.ts +3 -3
- package/dist/_dts/preview-next/src/client/widgets/widgetOverrides.d.ts +3 -3
- package/dist/_dts/sdk/src/bookings/index.d.ts +6 -2
- package/dist/_dts/sdk/src/bookings/types.d.ts +16 -8
- package/dist/_dts/sdk/src/cli/commands/push/scopes/commandBackedDatedOfferingScope.d.ts +32 -0
- package/dist/_dts/sdk/src/cli/commands/push/scopes/types.d.ts +5 -1
- package/dist/_dts/sdk/src/cli/content/reader.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/env.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/merge-remote/entryMergePush.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/push-config.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/site-commands/commandKeys.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/site-commands/commandRuntime.d.ts +43 -13
- package/dist/_dts/sdk/src/cli/site-commands/commandRuntimeCompat.d.ts +21 -0
- package/dist/_dts/sdk/src/cli/site-commands/commandSurfaceDispatch.d.ts +27 -0
- package/dist/_dts/sdk/src/cli/site-commands/datedOfferingCommands.d.ts +56 -0
- package/dist/_dts/sdk/src/cli/site-commands/entryCommands.d.ts +5 -3
- package/dist/_dts/sdk/src/cli/site-commands/footerCommands.d.ts +9 -3
- package/dist/_dts/sdk/src/cli/site-commands/formCommands.d.ts +6 -10
- package/dist/_dts/sdk/src/cli/site-commands/index.d.ts +1 -0
- package/dist/_dts/sdk/src/cli/site-commands/navigationCommands.d.ts +6 -10
- package/dist/_dts/sdk/src/cli/site-commands/pageCommands.d.ts +6 -10
- package/dist/_dts/sdk/src/cli/site-commands/pushExecution.d.ts +14 -68
- package/dist/_dts/sdk/src/cli/site-commands/pushExecutionPlan.d.ts +8 -0
- package/dist/_dts/sdk/src/cli/site-commands/pushExecutionTypes.d.ts +97 -0
- package/dist/_dts/sdk/src/cli/site-commands/residualSettingsTrimming.d.ts +15 -0
- package/dist/_dts/sdk/src/cli/sync/index.d.ts +1 -0
- package/dist/_dts/sdk/src/cli/sync/syncResultAggregation.d.ts +4 -0
- package/dist/_dts/sdk/src/config/validation.d.ts +37 -43
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +1 -1
- package/dist/_dts/sdk/src/manifest/passes/pass1-fields.d.ts +19 -19
- package/dist/_dts/sdk/src/portal/config.d.ts +1 -1
- package/dist/_dts/sdk/src/portal/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/constants.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/cookies.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/middleware.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/session.d.ts +1 -1
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +18 -4
- package/dist/_dts/sdk/src/rendering/islands/blocksContracts.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +3 -3
- package/dist/_dts/sdk/src/rendering/overrides.d.ts +2 -0
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +3 -3
- package/dist/_dts/sdk/src/theme-bridge/ThemeBridgeProvider.d.ts +6 -6
- package/dist/_dts/sdk/src/theme-bridge/generateCssVars.d.ts +4 -12
- package/dist/_dts/sdk/src/theme-bridge/index.d.ts +1 -1
- package/dist/_dts/sdk/src/theme-bridge/types.d.ts +17 -9
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/site-commands/src/adapter.d.ts +1 -1
- package/dist/_dts/site-commands/src/commands.d.ts +292 -34
- package/dist/_dts/site-commands/src/domain.d.ts +3 -3
- package/dist/_dts/site-commands/src/exposure.d.ts +3 -3
- package/dist/_dts/site-commands/src/index.d.ts +1 -0
- package/dist/_dts/site-commands/src/metadata.d.ts +79 -1
- package/dist/_dts/site-commands/src/planner.d.ts +1 -1
- package/dist/_dts/site-commands/src/refContributions.d.ts +1 -0
- package/dist/_dts/site-commands/src/refs.d.ts +8 -2
- package/dist/_dts/{sdk/src/cli/merge-remote → site-commands/src}/stableJson.d.ts +2 -0
- package/dist/_dts/theme-core/src/accordions/types.d.ts +9 -9
- package/dist/_dts/theme-core/src/blocks/index.d.ts +2 -2
- package/dist/_dts/theme-core/src/blocks/types.d.ts +3 -2
- package/dist/_dts/theme-core/src/buttons/personalities/brushed-wash.d.ts +5 -5
- package/dist/_dts/theme-core/src/buttons/personalities/confident-chip.d.ts +5 -5
- package/dist/_dts/theme-core/src/buttons/personalities/editorial-link.d.ts +5 -5
- package/dist/_dts/theme-core/src/buttons/personalities/index.d.ts +35 -35
- package/dist/_dts/theme-core/src/buttons/personalities/ink-stamp.d.ts +5 -5
- package/dist/_dts/theme-core/src/buttons/personalities/pebble.d.ts +5 -5
- package/dist/_dts/theme-core/src/buttons/personalities/showtime-pill.d.ts +5 -5
- package/dist/_dts/theme-core/src/buttons/personalities/soft-pill.d.ts +5 -5
- package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +7 -7
- package/dist/_dts/theme-core/src/buttons/types.d.ts +18 -18
- package/dist/_dts/theme-core/src/cards/types.d.ts +17 -17
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/index.d.ts +1 -1
- package/dist/_dts/theme-core/src/inputs/types.d.ts +13 -13
- package/dist/_dts/theme-core/src/interactive/baseSchema.d.ts +1 -1
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +351 -351
- package/dist/_dts/theme-core/src/navigation/types.d.ts +15 -15
- package/dist/_dts/theme-core/src/palette/recipes/allRecipes.d.ts +1 -1
- package/dist/_dts/theme-core/src/palette/variants/brand-led.d.ts +24 -24
- package/dist/_dts/theme-core/src/palette/variants/high-contrast.d.ts +18 -18
- package/dist/_dts/theme-core/src/palette/variants/index.d.ts +65 -65
- package/dist/_dts/theme-core/src/palette/variants/soft-natural.d.ts +18 -18
- package/dist/_dts/theme-core/src/palette/variants/types.d.ts +7 -7
- package/dist/_dts/theme-core/src/palette/variants/warm-neutral.d.ts +18 -18
- package/dist/_dts/theme-core/src/progress/generateProgressCss.d.ts +2 -1
- package/dist/_dts/theme-core/src/recommend/generateThemes.d.ts +1 -1
- package/dist/_dts/theme-core/src/runtime/buildThemeRuntimeFromBridge.d.ts +32 -21
- package/dist/_dts/theme-core/src/schema.d.ts +568 -568
- package/dist/_dts/theme-core/src/shared/componentStyles.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +34 -34
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +4 -4
- package/dist/_dts/theme-core/src/site-styles/pageDesignAuthority.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/siteStyleBlockPolicies.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/sourceCatalogs.d.ts +14 -14
- package/dist/_dts/theme-core/src/site-styles/styleTags.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/tokenRecipes.d.ts +4 -4
- package/dist/_dts/theme-core/src/status/generateStatusCss.d.ts +2 -1
- package/dist/_dts/theme-core/src/tokens/themeColorTokens.d.ts +5 -5
- package/dist/_dts/ui/src/badge.d.ts +1 -1
- package/dist/_dts/ui/src/button.d.ts +2 -2
- package/dist/_dts/ui/src/card.d.ts +1 -1
- package/dist/_dts/ui/src/color-picker.d.ts +1 -1
- package/dist/_dts/ui/src/surface.d.ts +2 -2
- package/dist/_dts/ui/src/toggle.d.ts +4 -4
- package/dist/cli/index.mjs +5910 -4824
- package/dist/client/bookings.mjs +5149 -3320
- package/dist/client/client.mjs +11643 -11031
- package/dist/client/hooks.mjs +5764 -3868
- package/dist/client/rendering/client.mjs +4317 -3724
- package/dist/client/rendering/islands.mjs +4087 -3494
- package/dist/client/rendering.mjs +4499 -3885
- package/dist/preview-next/before-render.mjs +14 -0
- package/dist/preview-next/client/runtime.mjs +2927 -2292
- package/dist/preview-next/middleware.mjs +14 -0
- package/dist/server/components.mjs +536 -368
- package/dist/server/config-validation.mjs +6886 -4910
- package/dist/server/config.mjs +6876 -4909
- package/dist/server/data.mjs +5764 -3868
- package/dist/server/index.mjs +174 -1762
- package/dist/server/next.mjs +6393 -5024
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +540 -370
- package/dist/server/rendering.mjs +540 -370
- package/dist/server/routing.mjs +10389 -6835
- package/dist/server/server.mjs +5701 -3805
- package/dist/server/theme-bridge.mjs +1558 -4902
- package/dist/styles/index.css +38 -38
- package/package.json +1 -3
- package/dist/_dts/blocks/src/system/runtime/components/booking/DateTimeSelectionStep.d.ts +0 -18
- package/dist/_dts/blocks/src/system/runtime/components/booking/PaymentOptionSelectionStep.d.ts +0 -9
- package/dist/_dts/blocks/src/system/runtime/components/booking/ServiceResourceSelector.d.ts +0 -44
- package/dist/_dts/blocks/src/system/runtime/components/booking/ServiceResourceSelector.state.d.ts +0 -23
- package/dist/_dts/blocks/src/system/runtime/components/booking/ServiceSelectionStep.d.ts +0 -18
- package/dist/_dts/blocks/src/system/runtime/components/booking/slotDisplay.d.ts +0 -2
- package/dist/_dts/blocks/src/system/runtime/components/multi-step/MultiStepForm.d.ts +0 -21
- package/dist/_dts/blocks/src/system/runtime/components/multi-step/useMultiStep.d.ts +0 -15
- package/dist/_dts/blocks/src/system/runtime/components/multi-step/useMultiStep.state.d.ts +0 -51
- package/dist/_dts/blocks/src/system/runtime/hooks/useBookingSteps.d.ts +0 -22
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { SiteId } from '../../../../../../core/src/index';
|
|
2
|
+
import { type CliDatedOfferingCommandBatchSource, type CliDatedOfferingCommandCompileInput, type DatedOfferingReportSubject, type DatedOfferingUpsertItem } from '../../../site-commands';
|
|
3
|
+
import type { WriterOptions } from '../../../content/writer';
|
|
4
|
+
import type { PushScopeResult, ScopePushContext } from './types';
|
|
5
|
+
type CommandBackedDatedOfferingScopeConfig<TLocal, TRemote> = Readonly<{
|
|
6
|
+
source: CliDatedOfferingCommandBatchSource;
|
|
7
|
+
scopeName: string;
|
|
8
|
+
itemLabelSingular: string;
|
|
9
|
+
scopeCommand: DatedOfferingReportSubject['scopeCommand'];
|
|
10
|
+
getIdentifier: (item: TLocal) => string;
|
|
11
|
+
getDisplayLabel: (item: TLocal) => string;
|
|
12
|
+
shouldPushItem?: (item: TLocal) => boolean;
|
|
13
|
+
readLocal: (contentDir: string) => Promise<TLocal[]>;
|
|
14
|
+
readMeta: (contentDir: string) => Promise<Record<string, {
|
|
15
|
+
updatedAt?: string;
|
|
16
|
+
}> | null>;
|
|
17
|
+
fetchRemote: () => Promise<TRemote[]>;
|
|
18
|
+
getRemoteUpdatedAt: (remote: TRemote) => string;
|
|
19
|
+
findRemote: (remoteItems: readonly TRemote[], identifier: string) => TRemote | undefined;
|
|
20
|
+
getRemoteIdentifier: (remote: TRemote) => string;
|
|
21
|
+
updateLocalMeta: (contentDir: string, options?: WriterOptions) => Promise<void>;
|
|
22
|
+
readOnlyStatusWarning?: (item: TLocal) => string | null;
|
|
23
|
+
buildCompileInput: (input: Readonly<{
|
|
24
|
+
source: CliDatedOfferingCommandBatchSource;
|
|
25
|
+
siteId: SiteId;
|
|
26
|
+
targetEnv: ScopePushContext['targetEnv'];
|
|
27
|
+
upserts: readonly DatedOfferingUpsertItem<TLocal>[];
|
|
28
|
+
deletes: readonly string[];
|
|
29
|
+
}>) => CliDatedOfferingCommandCompileInput;
|
|
30
|
+
}>;
|
|
31
|
+
export declare function pushCommandBackedDatedOfferingScope<TLocal, TRemote>(ctx: ScopePushContext, config: CommandBackedDatedOfferingScopeConfig<TLocal, TRemote>): Promise<PushScopeResult>;
|
|
32
|
+
export {};
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import type { OutputContext } from '../../../output';
|
|
2
2
|
import type { ManagementClient } from '../../../../client/management';
|
|
3
3
|
import type { WriterOptions } from '../../../content/writer';
|
|
4
|
+
import type { SiteId } from '../../../../../../core/src/index';
|
|
5
|
+
import type { EnvTarget } from '../../../helpers';
|
|
4
6
|
export interface ScopePushContext {
|
|
5
7
|
output: OutputContext;
|
|
6
8
|
contentDir: string;
|
|
9
|
+
siteId: SiteId;
|
|
10
|
+
targetEnv: EnvTarget;
|
|
7
11
|
client: ManagementClient;
|
|
8
12
|
dryRun: boolean;
|
|
9
13
|
force: boolean;
|
|
@@ -14,7 +18,7 @@ export interface ScopePushContext {
|
|
|
14
18
|
skipMeta: boolean;
|
|
15
19
|
humanDiff: boolean;
|
|
16
20
|
}
|
|
17
|
-
export type PushScopeResultStatus = 'noop' | 'dry-run' | 'aborted' | 'pushed';
|
|
21
|
+
export type PushScopeResultStatus = 'noop' | 'dry-run' | 'aborted' | 'failed' | 'pushed';
|
|
18
22
|
export interface PushScopeItemError {
|
|
19
23
|
identifier: string;
|
|
20
24
|
error: string;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Reads content from the file system for push operations.
|
|
5
5
|
* Mirrors the structure created by writer.ts.
|
|
6
6
|
*/
|
|
7
|
-
import type { NavigationLinkInput } from '
|
|
7
|
+
import type { NavigationLinkInput } from '../../../../api/src/index';
|
|
8
8
|
import type { Theme } from '../../contracts';
|
|
9
9
|
export interface LocalEntry {
|
|
10
10
|
identifier: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type SiteId } from '
|
|
1
|
+
import { type SiteId } from '../../../../core/src/index';
|
|
2
2
|
import type { ManagementClient } from '../../client/management/types';
|
|
3
3
|
import type { LocalEntry } from '../content/reader';
|
|
4
4
|
import type { EnvTarget } from '../helpers';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { Command } from 'commander';
|
|
7
7
|
import type { OutputContext } from './output';
|
|
8
|
-
import type { APIEndpoints } from '
|
|
8
|
+
import type { APIEndpoints } from '../../../api/src/public/index';
|
|
9
9
|
interface PushConfigOptions {
|
|
10
10
|
config?: string;
|
|
11
11
|
apiKey?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Brand } from '
|
|
1
|
+
import type { Brand } from '../../../../core/src/index';
|
|
2
2
|
export type CliContentTypeKey = Brand<string, 'SdkCliContentTypeKey'>;
|
|
3
3
|
export type CliEntryIdentifier = Brand<string, 'SdkCliEntryIdentifier'>;
|
|
4
4
|
export type CliPageIdentifier = Brand<string, 'SdkCliPageIdentifier'>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { type Result, type SiteId } from '
|
|
2
|
-
import { type DryRunReport, type SiteCommandBatch, type SiteCommandExecutionSuccess, type SiteCommandOf, type SiteCommandPlanFor, type SiteCommandRef, type SiteCommandType, type SiteCommandValidationError } from '
|
|
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
3
|
import type { EnvTarget } from '../helpers';
|
|
4
|
-
import { type SyncResult } from '../sync';
|
|
5
4
|
export type CliCommandBatchRefInput<TSource extends string = string> = Readonly<{
|
|
6
5
|
source: TSource;
|
|
7
6
|
siteId: SiteId;
|
|
@@ -46,7 +45,32 @@ export type CliCommandExecutionReportFailure<TSubject> = Readonly<{
|
|
|
46
45
|
message: string;
|
|
47
46
|
subject?: TSubject;
|
|
48
47
|
}>;
|
|
48
|
+
export type CliCommandOutcome<TSubject> = Readonly<{
|
|
49
|
+
status: 'applied';
|
|
50
|
+
commandRef: SiteCommandRef;
|
|
51
|
+
commandType: SiteCommandType;
|
|
52
|
+
subject: TSubject;
|
|
53
|
+
}> | Readonly<{
|
|
54
|
+
status: 'failed';
|
|
55
|
+
commandRef: SiteCommandRef;
|
|
56
|
+
commandType: SiteCommandType;
|
|
57
|
+
identifier: string;
|
|
58
|
+
message: string;
|
|
59
|
+
subject?: TSubject;
|
|
60
|
+
}> | Readonly<{
|
|
61
|
+
status: 'skipped_by_stop_policy';
|
|
62
|
+
commandRef: SiteCommandRef;
|
|
63
|
+
commandType: SiteCommandType;
|
|
64
|
+
identifier: string;
|
|
65
|
+
subject: TSubject;
|
|
66
|
+
}> | Readonly<{
|
|
67
|
+
status: 'compile_failed';
|
|
68
|
+
identifier: string;
|
|
69
|
+
message: string;
|
|
70
|
+
subject?: TSubject;
|
|
71
|
+
}>;
|
|
49
72
|
export type CliCommandExecutionReport<TSubject> = Readonly<{
|
|
73
|
+
outcomes: readonly CliCommandOutcome<TSubject>[];
|
|
50
74
|
appliedSubjects: readonly TSubject[];
|
|
51
75
|
failure: CliCommandExecutionReportFailure<TSubject> | null;
|
|
52
76
|
warnings: readonly string[];
|
|
@@ -94,21 +118,27 @@ export declare function commandExecutionToReport<TCommand extends Readonly<{
|
|
|
94
118
|
commandDisplayIdentifier: (command: TCommand) => string;
|
|
95
119
|
includeFailureSubject?: boolean;
|
|
96
120
|
}>): CliCommandExecutionReport<TSubject>;
|
|
97
|
-
export declare function
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
121
|
+
export declare function commandCompileFailureToReport<TSubject>(input: Readonly<{
|
|
122
|
+
identifier: string;
|
|
123
|
+
message: string;
|
|
124
|
+
subject?: TSubject;
|
|
125
|
+
warnings?: readonly string[];
|
|
126
|
+
}>): CliCommandExecutionReport<TSubject>;
|
|
127
|
+
export declare function executeCompiledCliCommandPlanAsReport<TCompiledPlan extends Readonly<{
|
|
103
128
|
plan: Readonly<{
|
|
104
129
|
commands: readonly unknown[];
|
|
105
130
|
}>;
|
|
106
|
-
}>, TExecutionResult>(input: Readonly<{
|
|
131
|
+
}>, TExecutionResult, TSubject>(input: Readonly<{
|
|
107
132
|
compiledPlan: TCompiledPlan;
|
|
108
133
|
onBeforeExecute?: (commandCount: number) => void;
|
|
109
134
|
executePlan: (plan: TCompiledPlan['plan']) => Promise<TExecutionResult>;
|
|
110
|
-
|
|
135
|
+
executionToReport: (input: Readonly<{
|
|
111
136
|
execution: TExecutionResult;
|
|
112
137
|
compiledPlan: TCompiledPlan;
|
|
113
|
-
}>) =>
|
|
114
|
-
}>): Promise<
|
|
138
|
+
}>) => CliCommandExecutionReport<TSubject>;
|
|
139
|
+
}>): Promise<CliCommandExecutionReport<TSubject>>;
|
|
140
|
+
export declare function reportFromOutcomes<TSubject>(input: Readonly<{
|
|
141
|
+
outcomes: readonly CliCommandOutcome<TSubject>[];
|
|
142
|
+
warnings?: readonly string[];
|
|
143
|
+
}>): CliCommandExecutionReport<TSubject>;
|
|
144
|
+
export declare function commandReportHasFailures(report: CliCommandExecutionReport<unknown>): boolean;
|
|
@@ -0,0 +1,21 @@
|
|
|
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>;
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
blockFieldExtensions: Parameters<typeof compilePagePushCommands>[0]['blockFieldExtensions'];
|
|
15
|
+
onEntryCommandCount?: (commandCount: number) => void;
|
|
16
|
+
onFormCommandCount?: (commandCount: number) => void;
|
|
17
|
+
onNavigationCommandCount?: (commandCount: number) => void;
|
|
18
|
+
onPageCommandCount?: (commandCount: number) => void;
|
|
19
|
+
}>;
|
|
20
|
+
export type CommandSurfaceDispatchDependencies = Readonly<{
|
|
21
|
+
compileCommandSurface?: (surface: CommandSurface, input: CommandSurfaceDispatchInput) => CommandSurfaceCompileResult;
|
|
22
|
+
executeCommandSurfaceAsReport?: (surface: CommandSurfaceCompileSuccess, input: CommandSurfaceDispatchInput) => Promise<CommandSurfaceExecutionReport>;
|
|
23
|
+
}>;
|
|
24
|
+
export declare function compileContentPushExecutionPlan(plan: ContentPushExecutionPlan, input: CommandSurfaceDispatchInput, dependencies?: CommandSurfaceDispatchDependencies): Result<CompiledContentPushExecutionPlan, ContentPushExecutionReport>;
|
|
25
|
+
export declare function executeCommandSurfaceAsReport(surface: CommandSurfaceCompileSuccess, input: CommandSurfaceDispatchInput): Promise<CommandSurfaceExecutionReport>;
|
|
26
|
+
export declare function skippedRemainingCommandReports(steps: readonly CompiledContentPushExecutionStep[]): CommandSurfaceExecutionReport[];
|
|
27
|
+
export declare function commandSurfaceReportToSyncResult(report: CommandSurfaceExecutionReport): SyncResult;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { type Result, type SiteId } from '../../../../core/src/index';
|
|
2
|
+
import type { ManagementClient } from '../../client/management/types';
|
|
3
|
+
import type { LocalCourse, 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_courses' | 'push_all_dated_offerings';
|
|
8
|
+
export type DatedOfferingSiteCommandType = 'upsertVenue' | 'deleteVenue' | 'upsertEventCategory' | 'deleteEventCategory' | 'upsertEventSeries' | 'deleteEventSeries' | 'upsertCourse' | 'deleteCourse';
|
|
9
|
+
type DatedOfferingCounter = 'created' | 'updated' | 'deleted';
|
|
10
|
+
export type DatedOfferingReportSubject = Readonly<{
|
|
11
|
+
scopeCommand: 'venues' | 'event-categories' | 'events' | 'courses';
|
|
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
|
+
courses?: DatedOfferingUpsertInput<LocalCourse>;
|
|
30
|
+
delete?: DatedOfferingDeleteInput;
|
|
31
|
+
}>;
|
|
32
|
+
export type DatedOfferingUpsertInput<TItem> = Readonly<{
|
|
33
|
+
items: readonly DatedOfferingUpsertItem<TItem>[];
|
|
34
|
+
}>;
|
|
35
|
+
export type DatedOfferingUpsertItem<TItem> = Readonly<{
|
|
36
|
+
item: TItem;
|
|
37
|
+
exists: boolean;
|
|
38
|
+
}>;
|
|
39
|
+
export type DatedOfferingDeleteInput = Readonly<{
|
|
40
|
+
venues?: readonly string[];
|
|
41
|
+
eventCategories?: readonly string[];
|
|
42
|
+
events?: readonly string[];
|
|
43
|
+
courses?: readonly string[];
|
|
44
|
+
}>;
|
|
45
|
+
export type CliDatedOfferingCommandCompileSuccess = CliCommandCompileBatchSuccessWithReports<DatedOfferingSiteCommandType, DatedOfferingReportSubject>;
|
|
46
|
+
export declare const datedOfferingSiteCommandTypes: readonly ["upsertVenue", "deleteVenue", "upsertEventCategory", "deleteEventCategory", "upsertEventSeries", "deleteEventSeries", "upsertCourse", "deleteCourse"];
|
|
47
|
+
export declare function compileDatedOfferingPushCommands(input: CliDatedOfferingCommandCompileInput): Result<CliDatedOfferingCommandCompileSuccess, CliDatedOfferingCommandCompileError>;
|
|
48
|
+
export declare function executeDatedOfferingCommandPlanAsPushScopeResult(input: Readonly<{
|
|
49
|
+
client: Pick<ManagementClient, 'venues' | 'eventCategories' | 'events' | 'courses'>;
|
|
50
|
+
compiledPlan: CliDatedOfferingCommandCompileSuccess;
|
|
51
|
+
scopeCommand: DatedOfferingReportSubject['scopeCommand'];
|
|
52
|
+
scopeName: string;
|
|
53
|
+
}>): Promise<PushScopeResult>;
|
|
54
|
+
export declare function syncResultForDatedOfferingCommandCompileError(error: CliDatedOfferingCommandCompileError, scopeCommand: DatedOfferingReportSubject['scopeCommand'], scopeName: string): PushScopeResult;
|
|
55
|
+
export declare function courseSessionConflictMessage(error: unknown): string;
|
|
56
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { type Result, type SiteId } from '
|
|
2
|
-
import { type AllowedRuntime, type SiteCommandOf } from '
|
|
1
|
+
import { type Result, type SiteId } from '../../../../core/src/index';
|
|
2
|
+
import { type AllowedRuntime, type SiteCommandOf } from '../../../../site-commands/src/index';
|
|
3
3
|
import type { ManagementClient } from '../../client/management/types';
|
|
4
4
|
import type { LocalContent } from '../content/reader';
|
|
5
5
|
import type { EnvTarget } from '../helpers';
|
|
6
6
|
import type { ContentDiff } from '../sync/diff';
|
|
7
|
-
import {
|
|
7
|
+
import type { SyncResult } from '../sync';
|
|
8
8
|
import { type CliContentTypeKey, type CliEntryIdentifier } from './commandKeys';
|
|
9
9
|
import { type CliCommandCompileBatchSuccessWithReports, type CliCommandValidationCompileError, type CliCommandExecutionError, type CliCommandExecutionReport, type CliCommandExecutionResult } from './commandRuntime';
|
|
10
10
|
export type CliEntryCommandBatchSource = 'push_entries' | 'merge_remote_entries';
|
|
@@ -49,7 +49,9 @@ export declare function executeEntryCommandPlan(input: Readonly<{
|
|
|
49
49
|
plan: Pick<EntrySiteCommandPlan, 'commands'>;
|
|
50
50
|
}>): Promise<CliEntryCommandExecutionResult>;
|
|
51
51
|
export declare function executeEntryCommandPlanAsSyncResult(input: CliEntryCommandSyncInput): Promise<SyncResult>;
|
|
52
|
+
export declare function executeEntryCommandPlanAsReport(input: CliEntryCommandSyncInput): Promise<EntryCommandExecutionReport>;
|
|
52
53
|
export declare function syncResultForEntryCommandCompileError(error: CliCommandCompileError): SyncResult;
|
|
54
|
+
export declare function entryCommandCompileErrorToReport(error: CliCommandCompileError): EntryCommandExecutionReport;
|
|
53
55
|
export declare function entryCommandExecutionToSyncResult(input: Readonly<{
|
|
54
56
|
execution: CliEntryCommandExecutionResult;
|
|
55
57
|
compiledPlan: EntryCommandCompiledPlan;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { type Result, type SiteId } from '
|
|
2
|
-
import { type SiteCommandOf } from '
|
|
1
|
+
import { type Result, type SiteId } from '../../../../core/src/index';
|
|
2
|
+
import { type SiteCommandOf } from '../../../../site-commands/src/index';
|
|
3
3
|
import type { ManagementClient } from '../../client/management/types';
|
|
4
4
|
import type { LocalFooterContent } from '../content/reader';
|
|
5
5
|
import type { EnvTarget } from '../helpers';
|
|
6
6
|
import type { FooterDiff } from '../sync/diff';
|
|
7
|
-
import {
|
|
7
|
+
import type { SyncResult } from '../sync';
|
|
8
8
|
import { type CliCommandCompileBatchSuccessWithReports, type CliCommandExecutionError, type CliCommandExecutionReport, type CliCommandExecutionResult, type CliCommandValidationCompileError } from './commandRuntime';
|
|
9
9
|
export type CliFooterCommandBatchSource = 'push_footer';
|
|
10
10
|
export type CliFooterCommandCompileError = CliCommandValidationCompileError;
|
|
@@ -37,7 +37,13 @@ export declare function executeFooterCommandPlanAsSyncResult(input: Readonly<{
|
|
|
37
37
|
compiledPlan: FooterCommandCompiledPlan;
|
|
38
38
|
onBeforeExecute?: (commandCount: number) => void;
|
|
39
39
|
}>): Promise<SyncResult>;
|
|
40
|
+
export declare function executeFooterCommandPlanAsReport(input: Readonly<{
|
|
41
|
+
client: Pick<ManagementClient, 'footer'>;
|
|
42
|
+
compiledPlan: FooterCommandCompiledPlan;
|
|
43
|
+
onBeforeExecute?: (commandCount: number) => void;
|
|
44
|
+
}>): Promise<FooterCommandExecutionReport>;
|
|
40
45
|
export declare function syncResultForFooterCommandCompileError(error: CliFooterCommandCompileError): SyncResult;
|
|
46
|
+
export declare function footerCommandCompileErrorToReport(error: CliFooterCommandCompileError): FooterCommandExecutionReport;
|
|
41
47
|
export declare function footerCommandExecutionToSyncResult(input: Readonly<{
|
|
42
48
|
execution: CliFooterCommandExecutionResult;
|
|
43
49
|
compiledPlan: FooterCommandCompiledPlan;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { type Result, type SiteId } from '
|
|
2
|
-
import { type SiteCommandOf } from '
|
|
1
|
+
import { type Result, type SiteId } from '../../../../core/src/index';
|
|
2
|
+
import { type SiteCommandOf } from '../../../../site-commands/src/index';
|
|
3
3
|
import type { ManagementClient } from '../../client/management/types';
|
|
4
4
|
import type { LocalContent } from '../content/reader';
|
|
5
5
|
import type { EnvTarget } from '../helpers';
|
|
6
6
|
import type { ContentDiff } from '../sync/diff';
|
|
7
|
-
import {
|
|
7
|
+
import type { SyncResult } from '../sync';
|
|
8
8
|
import { type CliFormSlug } from './commandKeys';
|
|
9
9
|
import { type CliCommandCompileBatchSuccessWithReports, type CliCommandExecutionError, type CliCommandExecutionReport, type CliCommandExecutionResult, type CliCommandValidationCompileError } from './commandRuntime';
|
|
10
10
|
export type CliFormCommandBatchSource = 'push_forms';
|
|
@@ -39,16 +39,12 @@ export declare function executeFormCommandPlan(input: Readonly<{
|
|
|
39
39
|
client: Pick<ManagementClient, 'forms'>;
|
|
40
40
|
plan: Pick<FormSiteCommandPlan, 'commands'>;
|
|
41
41
|
}>): Promise<CliFormCommandExecutionResult>;
|
|
42
|
-
export declare function
|
|
42
|
+
export declare function executeFormCommandPlanAsReport(input: Readonly<{
|
|
43
43
|
client: Pick<ManagementClient, 'forms'>;
|
|
44
44
|
compiledPlan: FormCommandCompiledPlan;
|
|
45
45
|
onBeforeExecute?: (commandCount: number) => void;
|
|
46
|
-
}>): Promise<
|
|
47
|
-
export declare function
|
|
48
|
-
export declare function formCommandExecutionToSyncResult(input: Readonly<{
|
|
49
|
-
execution: CliFormCommandExecutionResult;
|
|
50
|
-
compiledPlan: FormCommandCompiledPlan;
|
|
51
|
-
}>): SyncResult;
|
|
46
|
+
}>): Promise<FormCommandExecutionReport>;
|
|
47
|
+
export declare function formCommandCompileErrorToReport(error: CliFormCommandCompileError): FormCommandExecutionReport;
|
|
52
48
|
export declare function formCommandExecutionToReport(input: Readonly<{
|
|
53
49
|
execution: CliFormCommandExecutionResult;
|
|
54
50
|
compiledPlan: FormCommandCompiledPlan;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { type Result, type SiteId } from '
|
|
2
|
-
import { type SiteCommandOf } from '
|
|
1
|
+
import { type Result, type SiteId } from '../../../../core/src/index';
|
|
2
|
+
import { type SiteCommandOf } from '../../../../site-commands/src/index';
|
|
3
3
|
import type { ManagementClient } from '../../client/management/types';
|
|
4
4
|
import type { LocalContent } from '../content/reader';
|
|
5
5
|
import type { EnvTarget } from '../helpers';
|
|
6
6
|
import type { NavigationDiff } from '../sync/diff';
|
|
7
|
-
import {
|
|
7
|
+
import type { SyncResult } from '../sync';
|
|
8
8
|
import { type CliNavigationMenuName } from './commandKeys';
|
|
9
9
|
import { type CliCommandCompileBatchSuccessWithReports, type CliCommandExecutionError, type CliCommandExecutionReport, type CliCommandExecutionResult, type CliCommandValidationCompileError } from './commandRuntime';
|
|
10
10
|
export type CliNavigationCommandBatchSource = 'push_navigation';
|
|
@@ -39,16 +39,12 @@ export declare function executeNavigationCommandPlan(input: Readonly<{
|
|
|
39
39
|
client: Pick<ManagementClient, 'navigation'>;
|
|
40
40
|
plan: Pick<NavigationSiteCommandPlan, 'commands'>;
|
|
41
41
|
}>): Promise<CliNavigationCommandExecutionResult>;
|
|
42
|
-
export declare function
|
|
42
|
+
export declare function executeNavigationCommandPlanAsReport(input: Readonly<{
|
|
43
43
|
client: Pick<ManagementClient, 'navigation'>;
|
|
44
44
|
compiledPlan: NavigationCommandCompiledPlan;
|
|
45
45
|
onBeforeExecute?: (commandCount: number) => void;
|
|
46
|
-
}>): Promise<
|
|
47
|
-
export declare function
|
|
48
|
-
export declare function navigationCommandExecutionToSyncResult(input: Readonly<{
|
|
49
|
-
execution: CliNavigationCommandExecutionResult;
|
|
50
|
-
compiledPlan: NavigationCommandCompiledPlan;
|
|
51
|
-
}>): SyncResult;
|
|
46
|
+
}>): Promise<NavigationCommandExecutionReport>;
|
|
47
|
+
export declare function navigationCommandCompileErrorToReport(error: CliNavigationCommandCompileError): NavigationCommandExecutionReport;
|
|
52
48
|
export declare function navigationCommandExecutionToReport(input: Readonly<{
|
|
53
49
|
execution: CliNavigationCommandExecutionResult;
|
|
54
50
|
compiledPlan: NavigationCommandCompiledPlan;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { type Result, type SiteId } from '
|
|
2
|
-
import { type SiteCommandOf } from '
|
|
1
|
+
import { type Result, type SiteId } from '../../../../core/src/index';
|
|
2
|
+
import { type SiteCommandOf } from '../../../../site-commands/src/index';
|
|
3
3
|
import type { ManagementClient } from '../../client/management/types';
|
|
4
4
|
import type { LocalContent } from '../content/reader';
|
|
5
5
|
import type { EnvTarget } from '../helpers';
|
|
6
6
|
import type { BlockFieldExtensionsMap } from '../../config/types';
|
|
7
7
|
import type { ContentDiff } from '../sync/diff';
|
|
8
|
-
import {
|
|
8
|
+
import type { SyncResult } from '../sync';
|
|
9
9
|
import { type CliBlockIdentifier, type CliPageIdentifier } from './commandKeys';
|
|
10
10
|
import { type CliCommandCompileBatchSuccessWithReports, type CliCommandExecutionError, type CliCommandExecutionReport, type CliCommandExecutionResult, type CliCommandValidationCompileError } from './commandRuntime';
|
|
11
11
|
export type CliPageCommandBatchSource = 'push_pages';
|
|
@@ -65,16 +65,12 @@ export declare function executePageCommandPlan(input: Readonly<{
|
|
|
65
65
|
client: Pick<ManagementClient, 'pages' | 'blocks'>;
|
|
66
66
|
plan: Pick<PageSiteCommandPlan, 'commands'>;
|
|
67
67
|
}>): Promise<CliPageCommandExecutionResult>;
|
|
68
|
-
export declare function
|
|
68
|
+
export declare function executePageCommandPlanAsReport(input: Readonly<{
|
|
69
69
|
client: Pick<ManagementClient, 'pages' | 'blocks'>;
|
|
70
70
|
compiledPlan: PageCommandCompiledPlan;
|
|
71
71
|
onBeforeExecute?: (commandCount: number) => void;
|
|
72
|
-
}>): Promise<
|
|
73
|
-
export declare function
|
|
74
|
-
export declare function pageCommandExecutionToSyncResult(input: Readonly<{
|
|
75
|
-
execution: CliPageCommandExecutionResult;
|
|
76
|
-
compiledPlan: PageCommandCompiledPlan;
|
|
77
|
-
}>): SyncResult;
|
|
72
|
+
}>): Promise<PageCommandExecutionReport>;
|
|
73
|
+
export declare function pageCommandCompileErrorToReport(error: CliPageCommandCompileError): PageCommandExecutionReport;
|
|
78
74
|
export declare function pageCommandExecutionToReport(input: Readonly<{
|
|
79
75
|
execution: CliPageCommandExecutionResult;
|
|
80
76
|
compiledPlan: PageCommandCompiledPlan;
|
|
@@ -1,65 +1,17 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { compileEntryPushCommands } from './entryCommands';
|
|
3
|
-
import { compileFormPushCommands } from './formCommands';
|
|
4
|
-
import { compileNavigationPushCommands } from './navigationCommands';
|
|
5
|
-
import { compilePagePushCommands } from './pageCommands';
|
|
1
|
+
import { type SiteId } from '../../../../core/src/index';
|
|
6
2
|
import type { ManagementClient } from '../../client/management/types';
|
|
7
|
-
import type { PushScope } from '../commands/push/consts';
|
|
8
3
|
import type { LocalContent } from '../content/reader';
|
|
9
4
|
import type { EnvTarget } from '../helpers';
|
|
10
5
|
import type { OutputContext } from '../output';
|
|
11
|
-
import { type ContentDiff, type
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
type
|
|
18
|
-
export type
|
|
19
|
-
|
|
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;
|
|
6
|
+
import { type ContentDiff, type SyncResult } from '../sync';
|
|
7
|
+
import { type CommandSurfaceDispatchDependencies } from './commandSurfaceDispatch';
|
|
8
|
+
import { planContentPushExecution } from './pushExecutionPlan';
|
|
9
|
+
import type { CommandSurface, CommandSurfaceCompileResult, CommandSurfaceCompileSuccess, CommandSurfaceExecutionReport, ContentPushScope, ContentPushExecutionPlan, ContentPushExecutionReport, ContentPushExecutionStep } from './pushExecutionTypes';
|
|
10
|
+
import type { compilePagePushCommands } from './pageCommands';
|
|
11
|
+
export { planContentPushExecution };
|
|
12
|
+
export type { CommandSurface, CommandSurfaceCompileResult, CommandSurfaceCompileSuccess, CommandSurfaceExecutionReport, ContentPushScope, ContentPushExecutionPlan, ContentPushExecutionReport, ContentPushExecutionStep, };
|
|
13
|
+
export type ContentPushExecutionInput = Readonly<{
|
|
14
|
+
pushScope: ContentPushScope;
|
|
63
15
|
siteId: SiteId;
|
|
64
16
|
target: EnvTarget;
|
|
65
17
|
diff: ContentDiff;
|
|
@@ -71,13 +23,7 @@ export declare function executeContentPushPlan(input: Readonly<{
|
|
|
71
23
|
onFormCommandCount?: (commandCount: number) => void;
|
|
72
24
|
onNavigationCommandCount?: (commandCount: number) => void;
|
|
73
25
|
onPageCommandCount?: (commandCount: number) => void;
|
|
74
|
-
}
|
|
75
|
-
export declare function
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
target: EnvTarget;
|
|
79
|
-
diff: ContentDiff;
|
|
80
|
-
local: LocalContent;
|
|
81
|
-
blockFieldExtensions?: Parameters<typeof compilePagePushCommands>[0]['blockFieldExtensions'];
|
|
82
|
-
}>): Result<ContentPushExecutionPlan, SyncResult>;
|
|
83
|
-
export {};
|
|
26
|
+
}>;
|
|
27
|
+
export declare function executeContentPushPlan(input: ContentPushExecutionInput): Promise<SyncResult>;
|
|
28
|
+
export declare function executeContentPushPlanAsCommandReport(input: ContentPushExecutionInput, dependencies?: CommandSurfaceDispatchDependencies): Promise<ContentPushExecutionReport>;
|
|
29
|
+
export declare function contentPushExecutionReportToSyncResult(report: ContentPushExecutionReport): SyncResult;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { LocalContent } from '../content/reader';
|
|
2
|
+
import type { ContentDiff } from '../sync';
|
|
3
|
+
import type { ContentPushScope, ContentPushExecutionPlan } from './pushExecutionTypes';
|
|
4
|
+
export declare function planContentPushExecution(input: Readonly<{
|
|
5
|
+
pushScope: ContentPushScope;
|
|
6
|
+
diff: ContentDiff;
|
|
7
|
+
local: LocalContent;
|
|
8
|
+
}>): ContentPushExecutionPlan;
|