@riverbankcms/sdk 0.78.0 → 0.79.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 +125 -43
- package/dist/{PreviewEditorSidebar-RIKFQ72L.mjs → PreviewEditorSidebar-56NMJMIK.mjs} +750 -65
- package/dist/{PreviewEditorUI-XO7TUWKK.mjs → PreviewEditorUI-27KJVEET.mjs} +4 -4
- package/dist/SdkPreviewModeRuntime-H4BSP6E7.mjs +8 -0
- package/dist/_dts/ai/src/contracts/proposals.d.ts +72 -0
- package/dist/_dts/api/src/contentRuntime.d.ts +1 -0
- package/dist/_dts/api/src/endpoints.d.ts +64 -0
- package/dist/_dts/api/src/index.d.ts +8 -6
- package/dist/_dts/api/src/media.d.ts +8 -1
- package/dist/_dts/api/src/navigation/dashboardSettingsNav.d.ts +1 -1
- package/dist/_dts/api/src/navigation/dashboardSiteNav.d.ts +8 -8
- package/dist/_dts/api/src/navigation/identity.d.ts +59 -0
- package/dist/_dts/api/src/navigation.d.ts +2 -0
- package/dist/_dts/api/src/public/types.d.ts +1 -1
- package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +4 -0
- package/dist/_dts/api/src/request.d.ts +3 -11
- package/dist/_dts/api/src/sdkConfig/contracts.d.ts +1 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +8 -1
- package/dist/_dts/api/src/siteIcons.d.ts +128 -0
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +26 -0
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +8 -0
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +21 -20
- package/dist/_dts/api/src/types.d.ts +12 -27
- package/dist/_dts/api/src/webhooks.d.ts +239 -0
- package/dist/_dts/block-form/src/fields/types.d.ts +6 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterList.d.ts +3 -2
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterRow.d.ts +6 -3
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterRowActions.d.ts +8 -3
- package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/index.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/useLinearRepeaterDnd.d.ts +1 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/useRepeaterPointerDragCapability.d.ts +1 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/useResolvedItemLabel.d.ts +7 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/buildSummary.d.ts +1 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/index.d.ts +3 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/repeaterDndDomain.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/repeaterLabelSource.d.ts +15 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/repeaterRowActionsDomain.d.ts +50 -0
- package/dist/_dts/blocks/src/index.d.ts +4 -0
- package/dist/_dts/blocks/src/system/blocks/appointment-booking.d.ts +879 -288
- package/dist/_dts/blocks/src/system/blocks/blog-listing.d.ts +879 -288
- package/dist/_dts/blocks/src/system/blocks/cart.d.ts +879 -288
- package/dist/_dts/blocks/src/system/blocks/checkout.d.ts +879 -288
- package/dist/_dts/blocks/src/system/blocks/collection.d.ts +879 -288
- package/dist/_dts/blocks/src/system/blocks/faq.d.ts +885 -289
- package/dist/_dts/blocks/src/system/blocks/feature-card-icons.d.ts +57 -0
- package/dist/_dts/blocks/src/system/blocks/feature-cards.d.ts +4 -0
- package/dist/_dts/blocks/src/system/blocks/gifting.d.ts +879 -288
- package/dist/_dts/blocks/src/system/blocks/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +3 -1
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +69 -22
- package/dist/_dts/blocks/src/system/blocks/product-detail.d.ts +879 -288
- package/dist/_dts/blocks/src/system/blocks/product-list.d.ts +879 -288
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +879 -288
- package/dist/_dts/blocks/src/system/blocks/team-members.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/testimonials.d.ts +7 -1
- package/dist/_dts/blocks/src/system/customize/backgrounds.d.ts +170 -0
- package/dist/_dts/blocks/src/system/fragments/library/testimonialsCarousel.d.ts +5 -0
- package/dist/_dts/blocks/src/system/helpers/resolveBackground.d.ts +3 -1
- package/dist/_dts/blocks/src/system/icons/ids.d.ts +13 -0
- package/dist/_dts/blocks/src/system/icons/index.d.ts +6 -0
- package/dist/_dts/blocks/src/system/icons/presets.d.ts +4 -0
- package/dist/_dts/blocks/src/system/icons/registry.d.ts +18 -0
- package/dist/_dts/blocks/src/system/icons/semantic.d.ts +239 -0
- package/dist/_dts/blocks/src/system/icons/value.d.ts +94 -0
- package/dist/_dts/blocks/src/system/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/manifest/fieldValidation/index.d.ts +4 -1
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +187 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.state.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/feature-card-icon.d.ts +13 -0
- package/dist/_dts/content-editor/src/index.d.ts +1 -1
- package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +2 -2
- package/dist/_dts/content-model/src/content-types/schema.d.ts +14 -0
- package/dist/_dts/content-model/src/contentManifest.d.ts +3 -1
- package/dist/_dts/content-model/src/templates/bindingTypeCompatibility.d.ts +3 -1
- package/dist/_dts/content-model/src/templates/bindingValidation.d.ts +10 -4
- package/dist/_dts/content-model/src/templates/fieldPaths.d.ts +20 -0
- package/dist/_dts/content-model/src/templates/manifestAdapter.d.ts +5 -2
- package/dist/_dts/core/src/branded.d.ts +114 -85
- package/dist/_dts/core/src/csv-types.d.ts +2 -2
- package/dist/_dts/core/src/editor-state.d.ts +7 -7
- package/dist/_dts/core/src/participants.d.ts +2 -2
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +202 -0
- package/dist/_dts/editor-blocks/src/block-editor/BlockCard.d.ts +12 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardBody.d.ts +12 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardHeader.d.ts +12 -2
- package/dist/_dts/editor-blocks/src/block-editor/FeatureCardIconsPanel.d.ts +21 -0
- package/dist/_dts/editor-blocks/src/block-editor/GeneratedIconSetDialog.d.ts +40 -0
- package/dist/_dts/editor-blocks/src/block-editor/SortableBlockItem.d.ts +11 -1
- package/dist/_dts/editor-blocks/src/block-editor/featureCardIconActions.d.ts +82 -0
- package/dist/_dts/editor-blocks/src/blockPayload.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/icon-picker/IconPickerField.d.ts +1 -1
- package/dist/_dts/media-core/src/fileDomain.d.ts +8 -1
- package/dist/_dts/media-editor/src/MediaEditor.d.ts +5 -2
- package/dist/_dts/media-editor/src/MediaPreview.d.ts +3 -1
- package/dist/_dts/media-editor/src/fieldUi.d.ts +5 -0
- package/dist/_dts/media-editor/src/index.d.ts +1 -1
- package/dist/_dts/media-react/src/components/MediaLibrary.d.ts +2 -1
- package/dist/_dts/media-react/src/components/MediaPickerMini.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/blocks/previewCustomizeActions.d.ts +17 -0
- package/dist/_dts/preview-next/src/client/preview/PageDesignEditorStateContext.d.ts +4 -0
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +3 -2
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeHistory.d.ts +6 -0
- package/dist/_dts/sdk/src/cli/commands/push/consts.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/commands/push/metadata.d.ts +2 -0
- package/dist/_dts/sdk/src/cli/commands/push/stale.d.ts +3 -3
- package/dist/_dts/sdk/src/cli/commands/push-execute.d.ts +7 -0
- package/dist/_dts/sdk/src/cli/commands/push.d.ts +2 -0
- package/dist/_dts/sdk/src/cli/content/reader.d.ts +13 -0
- package/dist/_dts/sdk/src/cli/content/writer.d.ts +2 -1
- package/dist/_dts/sdk/src/cli/helpers.d.ts +2 -0
- package/dist/_dts/sdk/src/cli/navigationIdentity.d.ts +11 -0
- package/dist/_dts/sdk/src/cli/site-commands/commandKeys.d.ts +6 -6
- package/dist/_dts/sdk/src/cli/site-commands/commandRuntime.d.ts +5 -0
- package/dist/_dts/sdk/src/cli/site-commands/commandSurfaceDispatch.d.ts +4 -0
- package/dist/_dts/sdk/src/cli/site-commands/navigationCommands.d.ts +4 -0
- package/dist/_dts/sdk/src/cli/site-commands/oneOffCommands.d.ts +1 -0
- package/dist/_dts/sdk/src/cli/site-commands/pageCommands.d.ts +5 -2
- package/dist/_dts/sdk/src/cli/site-commands/pushExecution.d.ts +10 -1
- package/dist/_dts/sdk/src/cli/site-commands/pushExecutionTypes.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/sync/diff.d.ts +9 -0
- package/dist/_dts/sdk/src/client/management/types.d.ts +8 -0
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/config/content-types.d.ts +7 -0
- package/dist/_dts/sdk/src/config/field-definitions.d.ts +5 -1
- package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +19 -2
- package/dist/_dts/sdk/src/next/index.d.ts +1 -1
- package/dist/_dts/sdk/src/next/revalidate.d.ts +26 -5
- package/dist/_dts/sdk/src/next/static-params.d.ts +28 -3
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +5 -1
- package/dist/_dts/sdk/src/public-api/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/sdk/src/webhooks/index.d.ts +1 -1
- package/dist/_dts/sdk/src/webhooks/verify.d.ts +6 -102
- package/dist/_dts/site-commands/src/commands.d.ts +6 -0
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +3 -3
- package/dist/_dts/theme-core/src/schema.d.ts +5 -5
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +25 -2
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +5 -5
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +4 -2
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +4 -4
- package/dist/_dts/theme-core/src/tokens/themeColorTokens.d.ts +2 -0
- package/dist/_dts/ui/src/combobox.d.ts +1 -0
- package/dist/{altcha-B5XGSXP5.mjs → altcha-EKUEQ4RP.mjs} +1 -1
- package/dist/{chunk-F7RTCZYN.mjs → chunk-4HCW7FHJ.mjs} +504 -63
- package/dist/{chunk-SXOLGNMX.mjs → chunk-A3HHFKVT.mjs} +1 -1
- package/dist/{chunk-TXDES5P2.mjs → chunk-GP555I66.mjs} +180 -10
- package/dist/{chunk-SVMMM2NA.mjs → chunk-K2IIF34C.mjs} +79 -5
- package/dist/{chunk-NIDXI46P.mjs → chunk-LCY32PXF.mjs} +1 -1
- package/dist/{chunk-XGB3TDIC.mjs → chunk-R7POPVJR.mjs} +2 -8
- package/dist/{chunk-OECWLDHN.mjs → chunk-V47ZU33I.mjs} +2762 -732
- package/dist/cli/index.mjs +1799 -345
- package/dist/cli/init-docs/content/cli-reference.md +3 -2
- package/dist/cli/init-docs/content/content-management.md +2 -2
- package/dist/cli/init-docs/content/workflow-editor-workflows.md +2 -0
- package/dist/cli/init-docs/content/workflow-isr-revalidation.md +138 -0
- package/dist/cli/init-docs/content/workflow-preview-mode.md +68 -2
- package/dist/client/{accordion-EVDEOUPR.mjs → accordion-QLA7KBYO.mjs} +2 -2
- package/dist/client/analytics.mjs +1 -1
- package/dist/client/{bookingForm-DIHBLC64.mjs → bookingForm-PYZIPA5G.mjs} +55 -48
- package/dist/client/bookings.mjs +172 -57
- package/dist/client/{carousel-FEBQHIWI.mjs → carousel-5EIULWBI.mjs} +3 -3
- package/dist/client/{cart-7CKSXAE4.mjs → cart-DOP3FNI4.mjs} +7 -7
- package/dist/client/{checkout-WKYCANLV.mjs → checkout-BVMF6FBV.mjs} +7 -7
- package/dist/client/{chunk-GUK2FPXQ.mjs → chunk-44K2U3QI.mjs} +37 -15
- package/dist/client/{chunk-IVNCUVAV.mjs → chunk-AUJ5DBZJ.mjs} +18 -18
- package/dist/client/{chunk-VPPMNXCF.mjs → chunk-CCNTDRCF.mjs} +2 -2
- package/dist/client/{chunk-36WJCERQ.mjs → chunk-CE7IBGVW.mjs} +3 -1
- package/dist/client/{chunk-2SAVKN2M.mjs → chunk-GG4M2NP6.mjs} +2 -2
- package/dist/client/{chunk-65F47D7Y.mjs → chunk-R5ESWNKX.mjs} +49 -39
- package/dist/client/{chunk-RZDWX7QW.mjs → chunk-TYONZMST.mjs} +1 -1
- package/dist/client/{chunk-OFMSCGNY.mjs → chunk-UDS3NTWA.mjs} +2 -2
- package/dist/client/{chunk-YDSEG6GZ.mjs → chunk-V6M5FCR5.mjs} +2 -2
- package/dist/client/{chunk-F7LHOKEH.mjs → chunk-XSV6KW4D.mjs} +1 -1
- package/dist/client/{chunk-RV6FX7UH.mjs → chunk-YLDYVRZL.mjs} +9 -9
- package/dist/client/{chunk-PD6NBCEY.mjs → chunk-ZFHRN6W2.mjs} +1 -1
- package/dist/client/client.mjs +21501 -19812
- package/dist/client/{courseRegistration-5QF2PHKM.mjs → courseRegistration-E6EAA6NL.mjs} +10 -10
- package/dist/client/{eventCalendar-4ZOSETDU.mjs → eventCalendar-HBG3HAK6.mjs} +9 -9
- package/dist/client/{eventCombined-WQGU7JUX.mjs → eventCombined-6K5ZZWAK.mjs} +9 -9
- package/dist/client/{eventDetails-AYWVUJ5Y.mjs → eventDetails-Q75ICXLT.mjs} +9 -9
- package/dist/client/{eventListing-NT7C6UT5.mjs → eventListing-27P5F7DZ.mjs} +9 -9
- package/dist/client/{eventRegistration-OH24F4ZJ.mjs → eventRegistration-IQ7AMASR.mjs} +9 -9
- package/dist/client/{form-7L42SRBB.mjs → form-JRTD65FN.mjs} +6 -3
- package/dist/client/{headerSection-OZRZNZ52.mjs → headerSection-7FPSSZHS.mjs} +3 -3
- package/dist/client/hooks.mjs +428 -83
- package/dist/client/{locationMap-ZBXRPQ7C.mjs → locationMap-7NGFNYBH.mjs} +3 -3
- package/dist/client/{newsletterForm-SNAGFF2I.mjs → newsletterForm-F3BADCI2.mjs} +2 -2
- package/dist/client/{productDetail-I46BOFGV.mjs → productDetail-V3HP7ITJ.mjs} +7 -7
- package/dist/client/{productList-BOYHTYI6.mjs → productList-L3EGJUF2.mjs} +7 -7
- package/dist/client/rendering/client.mjs +2886 -1513
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +2244 -564
- package/dist/client/{shop-XTXPZTKR.mjs → shop-DQUB5E2C.mjs} +7 -7
- package/dist/preview-next/before-render.mjs +65 -1
- package/dist/preview-next/client/runtime.mjs +6 -6
- package/dist/preview-next/middleware.mjs +65 -1
- package/dist/preview-next/tailwind-sources.css +1 -0
- package/dist/sdk-runtime-AF6KXJU4.mjs +8 -0
- package/dist/server/components.mjs +2270 -835
- package/dist/server/config-template-validation.mjs +221 -15
- package/dist/server/config-validation.mjs +426 -77
- package/dist/server/config.mjs +426 -77
- package/dist/server/data.mjs +427 -82
- package/dist/server/index.mjs +94 -10
- package/dist/server/next/revalidate.mjs +229 -34
- package/dist/server/next.mjs +2439 -888
- package/dist/server/page-converter.mjs +335 -74
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +2281 -846
- package/dist/server/rendering.mjs +2298 -860
- package/dist/server/routing.mjs +860 -113
- package/dist/server/server.mjs +452 -92
- package/dist/server/theme-bridge.mjs +164 -2
- package/dist/server/theme.mjs +2 -2
- package/dist/server/webhooks.mjs +129 -25
- package/dist/styles/index.css +55 -0
- package/package.json +2 -1
- package/dist/SdkPreviewModeRuntime-LAGYMPNF.mjs +0 -8
- package/dist/sdk-runtime-ZJLKC6DR.mjs +0 -8
|
@@ -6,6 +6,25 @@ export type FieldPathOption = {
|
|
|
6
6
|
type: string;
|
|
7
7
|
category: 'meta' | 'content';
|
|
8
8
|
};
|
|
9
|
+
export type RepeaterFieldShape = Readonly<{
|
|
10
|
+
kind: 'supported';
|
|
11
|
+
itemFields: readonly RepeaterItemFieldDescriptor[];
|
|
12
|
+
}> | Readonly<{
|
|
13
|
+
kind: 'unsupported';
|
|
14
|
+
reason: 'missing_item_schema' | 'polymorphic_unsupported' | 'nested_repeater_unsupported' | 'unsupported_item_field';
|
|
15
|
+
}>;
|
|
16
|
+
export type RepeaterItemFieldDescriptor = Readonly<{
|
|
17
|
+
id: string;
|
|
18
|
+
type: string;
|
|
19
|
+
required: boolean;
|
|
20
|
+
}>;
|
|
21
|
+
export type FieldPathDescriptor = Readonly<{
|
|
22
|
+
kind: 'scalar';
|
|
23
|
+
type: string;
|
|
24
|
+
}> | Readonly<{
|
|
25
|
+
kind: 'repeater';
|
|
26
|
+
shape: RepeaterFieldShape;
|
|
27
|
+
}>;
|
|
9
28
|
/**
|
|
10
29
|
* Extract all available field paths from a content type schema
|
|
11
30
|
* for use in binding editor autocomplete.
|
|
@@ -15,6 +34,7 @@ export declare function getAvailableFieldPaths(schema: ContentTypeSchema): Field
|
|
|
15
34
|
* Get field type from path for validation
|
|
16
35
|
*/
|
|
17
36
|
export declare function getFieldTypeFromPath(schema: ContentTypeSchema, path: string): string | null;
|
|
37
|
+
export declare function getFieldDescriptorFromPath(schema: ContentTypeSchema, path: string): FieldPathDescriptor | null;
|
|
18
38
|
/**
|
|
19
39
|
* Validate if a path exists in the schema
|
|
20
40
|
*/
|
|
@@ -37,7 +37,7 @@ export interface AdaptableManifestField {
|
|
|
37
37
|
id: string;
|
|
38
38
|
type: string;
|
|
39
39
|
required?: boolean;
|
|
40
|
-
/** Group/modal containers carry children under `schema.fields`. */
|
|
40
|
+
/** Group/modal and SDK-style monomorphic repeater containers carry children under `schema.fields`. */
|
|
41
41
|
schema?: {
|
|
42
42
|
fields?: ReadonlyArray<AdaptableManifestField>;
|
|
43
43
|
};
|
|
@@ -49,6 +49,8 @@ export interface AdaptableManifestField {
|
|
|
49
49
|
repeatedItem?: {
|
|
50
50
|
fields?: ReadonlyArray<AdaptableManifestField>;
|
|
51
51
|
};
|
|
52
|
+
polymorphic?: boolean;
|
|
53
|
+
itemTypes?: unknown;
|
|
52
54
|
}
|
|
53
55
|
/**
|
|
54
56
|
* Classification of every value `FieldDefinition['type']` can take.
|
|
@@ -59,10 +61,11 @@ export interface AdaptableManifestField {
|
|
|
59
61
|
*
|
|
60
62
|
* - `leaf`: directly bindable; maps onto the `BlockFieldType` matrix.
|
|
61
63
|
* - `composite`: walked recursively (children become flattened targets).
|
|
64
|
+
* - `whole`: bindable only as the whole field.
|
|
62
65
|
* - `opaque`: dashboard-only or polymorphic types whose leaves can't be
|
|
63
66
|
* enumerated structurally. Skipped entirely.
|
|
64
67
|
*/
|
|
65
|
-
type FieldTypeClassification = 'leaf' | 'composite' | 'opaque';
|
|
68
|
+
type FieldTypeClassification = 'leaf' | 'composite' | 'whole' | 'opaque';
|
|
66
69
|
export declare const FIELD_TYPE_CLASSIFICATION: Readonly<Record<string, FieldTypeClassification>>;
|
|
67
70
|
/**
|
|
68
71
|
* Build the validator-facing shape from a block manifest. Composite fields
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type Result } from './result';
|
|
1
2
|
/**
|
|
2
3
|
* Branded ID types for domain entities.
|
|
3
4
|
*
|
|
@@ -5,14 +6,22 @@
|
|
|
5
6
|
* accidentally pass an EventInstanceId where a ProductId is expected.
|
|
6
7
|
*
|
|
7
8
|
* Usage:
|
|
8
|
-
* const
|
|
9
|
-
* const productId =
|
|
10
|
-
* //
|
|
9
|
+
* const parsed = parseSiteId(input)
|
|
10
|
+
* const productId = unsafeAsProductId(validatedProductId)
|
|
11
|
+
* // parsed SiteId cannot be assigned to productId — compile error
|
|
11
12
|
*/
|
|
12
13
|
declare const __brand: unique symbol;
|
|
13
14
|
export type Brand<T, B extends string> = T & {
|
|
14
15
|
readonly [__brand]: B;
|
|
15
16
|
};
|
|
17
|
+
export type BrandedIdParseError = {
|
|
18
|
+
kind: 'not_string';
|
|
19
|
+
} | {
|
|
20
|
+
kind: 'empty_string';
|
|
21
|
+
} | {
|
|
22
|
+
kind: 'invalid_uuid';
|
|
23
|
+
};
|
|
24
|
+
export declare function expectParsedBrandedId<TBrand>(result: Result<TBrand, BrandedIdParseError>): TBrand;
|
|
16
25
|
export type EventInstanceId = Brand<string, 'EventInstanceId'>;
|
|
17
26
|
export type SiteId = Brand<string, 'SiteId'>;
|
|
18
27
|
export type PageId = Brand<string, 'PageId'>;
|
|
@@ -68,6 +77,8 @@ export type BookingCalendarFeedTokenSecretHash = Brand<string, 'BookingCalendarF
|
|
|
68
77
|
export type ContentEntryId = Brand<string, 'ContentEntryId'>;
|
|
69
78
|
export type StripeInvoiceId = Brand<string, 'StripeInvoiceId'>;
|
|
70
79
|
export type NewsletterSubscriberId = Brand<string, 'NewsletterSubscriberId'>;
|
|
80
|
+
export type NavigationMenuId = Brand<string, 'NavigationMenuId'>;
|
|
81
|
+
export type NavigationItemId = Brand<string, 'NavigationItemId'>;
|
|
71
82
|
export type EmailAuditRowId = Brand<string, 'EmailAuditRowId'>;
|
|
72
83
|
export type WaitlistEntryId = Brand<string, 'WaitlistEntryId'>;
|
|
73
84
|
export type WaitlistHoldId = Brand<string, 'WaitlistHoldId'>;
|
|
@@ -115,99 +126,117 @@ export type EntryId = Brand<string, 'EntryId'>;
|
|
|
115
126
|
export type PreviewEntryId = EntryId & {
|
|
116
127
|
readonly __preview: true;
|
|
117
128
|
};
|
|
118
|
-
export declare const
|
|
129
|
+
export declare const unsafeAsEntryId: (id: string) => EntryId;
|
|
119
130
|
/**
|
|
120
131
|
* Mint a preview-fixture entry id. Unsafe at the type level because the
|
|
121
132
|
* function can't verify the input string is actually shaped as a preview
|
|
122
133
|
* id — the predicate `isPreviewEntryId` is the recommended narrowing path.
|
|
123
134
|
*/
|
|
124
135
|
export declare const unsafeAsPreviewEntryId: (id: string) => PreviewEntryId;
|
|
125
|
-
export declare const
|
|
126
|
-
export declare const
|
|
127
|
-
export declare const
|
|
128
|
-
export declare const
|
|
129
|
-
export declare const
|
|
130
|
-
export declare const
|
|
131
|
-
export declare const
|
|
132
|
-
export declare const
|
|
133
|
-
export declare const
|
|
134
|
-
export declare const
|
|
135
|
-
export declare const
|
|
136
|
-
export declare const
|
|
137
|
-
export declare const
|
|
138
|
-
export declare const
|
|
139
|
-
export declare const
|
|
140
|
-
export declare const
|
|
141
|
-
export declare const
|
|
142
|
-
export declare const
|
|
136
|
+
export declare const unsafeAsEventInstanceId: (id: string) => EventInstanceId;
|
|
137
|
+
export declare const unsafeAsSiteId: (id: string) => SiteId;
|
|
138
|
+
export declare const unsafeAsPageId: (id: string) => PageId;
|
|
139
|
+
export declare const unsafeAsOccurrenceId: (id: string) => OccurrenceId;
|
|
140
|
+
export declare const unsafeAsEventSeriesId: (id: string) => EventSeriesId;
|
|
141
|
+
export declare const unsafeAsTicketTypeId: (id: string) => TicketTypeId;
|
|
142
|
+
export declare const unsafeAsEventCategoryId: (id: string) => EventCategoryId;
|
|
143
|
+
export declare const unsafeAsVenueId: (id: string) => VenueId;
|
|
144
|
+
export declare const unsafeAsPricingOptionId: (id: string) => PricingOptionId;
|
|
145
|
+
export declare const unsafeAsMoneyDateString: (value: string) => MoneyDateString;
|
|
146
|
+
export declare const unsafeAsStripeCheckoutSessionId: (value: string) => StripeCheckoutSessionId;
|
|
147
|
+
export declare const unsafeAsProductId: (id: string) => ProductId;
|
|
148
|
+
export declare const unsafeAsProductVariantId: (id: string) => ProductVariantId;
|
|
149
|
+
export declare const unsafeAsProductCategoryId: (id: string) => ProductCategoryId;
|
|
150
|
+
export declare const unsafeAsMediaAssetId: (id: string) => MediaAssetId;
|
|
151
|
+
export declare const unsafeAsUploadSessionId: (id: string) => UploadSessionId;
|
|
152
|
+
export declare const unsafeAsStorageBucketName: (value: string) => StorageBucketName;
|
|
153
|
+
export declare const unsafeAsStoragePath: (value: string) => StoragePath;
|
|
143
154
|
export declare const unsafeAsRelativeStoragePath: (value: string) => RelativeStoragePath;
|
|
144
155
|
export declare const unsafeAsSiteScopedStoragePath: (value: string) => SiteScopedStoragePath;
|
|
145
|
-
/** @deprecated Use `unsafeAsRelativeStoragePath` to make the unchecked cast explicit. */
|
|
146
|
-
export declare const asRelativeStoragePath: (value: string) => RelativeStoragePath;
|
|
147
|
-
/** @deprecated Use `unsafeAsSiteScopedStoragePath` to make the unchecked cast explicit. */
|
|
148
|
-
export declare const asSiteScopedStoragePath: (value: string) => SiteScopedStoragePath;
|
|
149
156
|
export declare const unsafeAsFileChecksumSha256: (value: string) => FileChecksumSha256;
|
|
150
|
-
export declare const
|
|
151
|
-
export declare const
|
|
152
|
-
export declare const
|
|
157
|
+
export declare const unsafeAsDetectedMimeType: (value: string) => DetectedMimeType;
|
|
158
|
+
export declare const unsafeAsDeclaredMimeType: (value: string) => DeclaredMimeType;
|
|
159
|
+
export declare const unsafeAsOriginalFilename: (value: string) => OriginalFilename;
|
|
153
160
|
export declare const unsafeAsSafeDownloadFilename: (value: string) => SafeDownloadFilename;
|
|
154
161
|
export declare const unsafeAsPositiveByteCount: (value: number) => PositiveByteCount;
|
|
155
162
|
export declare const unsafeAsPositiveSeconds: (value: number) => PositiveSeconds;
|
|
156
|
-
export declare const
|
|
157
|
-
export declare const
|
|
158
|
-
export declare const
|
|
159
|
-
export declare const
|
|
160
|
-
export declare const
|
|
161
|
-
export declare const
|
|
162
|
-
export declare const
|
|
163
|
-
export declare const
|
|
164
|
-
export declare const
|
|
165
|
-
export declare const
|
|
166
|
-
export declare const
|
|
167
|
-
export declare const
|
|
168
|
-
export declare const
|
|
169
|
-
export declare const
|
|
170
|
-
export declare const
|
|
171
|
-
export declare const
|
|
172
|
-
export declare const
|
|
173
|
-
export declare const
|
|
174
|
-
export declare const
|
|
175
|
-
export declare const
|
|
176
|
-
export declare const
|
|
177
|
-
export declare const
|
|
178
|
-
export declare const
|
|
179
|
-
export declare const
|
|
180
|
-
export declare const
|
|
181
|
-
export declare const
|
|
182
|
-
export declare const
|
|
183
|
-
export declare const
|
|
184
|
-
export declare const
|
|
185
|
-
export declare const
|
|
186
|
-
export declare const
|
|
187
|
-
export declare const
|
|
188
|
-
export declare const
|
|
189
|
-
export declare const
|
|
190
|
-
export declare const
|
|
191
|
-
export declare const
|
|
192
|
-
export declare const
|
|
193
|
-
export declare const
|
|
194
|
-
export declare const
|
|
195
|
-
export declare const
|
|
196
|
-
export declare const
|
|
163
|
+
export declare const unsafeAsBookingSessionId: (id: string) => BookingSessionId;
|
|
164
|
+
export declare const unsafeAsEntitlementId: (id: string) => EntitlementId;
|
|
165
|
+
export declare const unsafeAsSiteFontId: (id: string) => SiteFontId;
|
|
166
|
+
export declare const unsafeAsUserId: (id: string) => UserId;
|
|
167
|
+
export declare const unsafeAsFormId: (id: string) => FormId;
|
|
168
|
+
export declare const unsafeAsFormSubmissionId: (id: string) => FormSubmissionId;
|
|
169
|
+
export declare const unsafeAsPassId: (id: string) => PassId;
|
|
170
|
+
export declare const unsafeAsMembershipId: (id: string) => MembershipId;
|
|
171
|
+
export declare const unsafeAsCourseId: (id: string) => CourseId;
|
|
172
|
+
export declare const unsafeAsCustomerId: (id: string) => CustomerId;
|
|
173
|
+
export declare const unsafeAsOrderId: (id: string) => OrderId;
|
|
174
|
+
export declare const unsafeAsOrderItemId: (id: string) => OrderItemId;
|
|
175
|
+
export declare const unsafeAsCheckoutLineId: (id: string) => CheckoutLineId;
|
|
176
|
+
export declare const unsafeAsAttendeeId: (id: string) => AttendeeId;
|
|
177
|
+
export declare const unsafeAsCustomerPassId: (id: string) => CustomerPassId;
|
|
178
|
+
export declare const unsafeAsCustomerMembershipId: (id: string) => CustomerMembershipId;
|
|
179
|
+
export declare const unsafeAsEnrollmentId: (id: string) => EnrollmentId;
|
|
180
|
+
export declare const unsafeAsAppointmentId: (id: string) => AppointmentId;
|
|
181
|
+
export declare const unsafeAsAppointmentServiceId: (id: string) => AppointmentServiceId;
|
|
182
|
+
export declare const unsafeAsAppointmentResourceId: (id: string) => AppointmentResourceId;
|
|
183
|
+
export declare const unsafeAsStaffMemberId: (id: string) => StaffMemberId;
|
|
184
|
+
export declare const unsafeAsBookingCalendarFeedTokenId: (id: string) => BookingCalendarFeedTokenId;
|
|
185
|
+
export declare const unsafeAsBookingCalendarFeedTokenPublicId: (id: string) => BookingCalendarFeedTokenPublicId;
|
|
186
|
+
export declare const unsafeAsBookingCalendarFeedTokenSecret: (value: string) => BookingCalendarFeedTokenSecret;
|
|
187
|
+
export declare const unsafeAsBookingCalendarFeedTokenSecretHash: (value: string) => BookingCalendarFeedTokenSecretHash;
|
|
188
|
+
export declare const unsafeAsContentEntryId: (id: string) => ContentEntryId;
|
|
189
|
+
export declare const unsafeAsStripeInvoiceId: (id: string) => StripeInvoiceId;
|
|
190
|
+
export declare const unsafeAsNewsletterSubscriberId: (id: string) => NewsletterSubscriberId;
|
|
191
|
+
export declare const unsafeAsNavigationMenuId: (id: string) => NavigationMenuId;
|
|
192
|
+
export declare const unsafeAsNavigationItemId: (id: string) => NavigationItemId;
|
|
193
|
+
export declare const unsafeAsEmailAuditRowId: (id: string) => EmailAuditRowId;
|
|
194
|
+
export declare const unsafeAsWaitlistEntryId: (id: string) => WaitlistEntryId;
|
|
195
|
+
export declare const unsafeAsWaitlistHoldId: (id: string) => WaitlistHoldId;
|
|
196
|
+
export declare const unsafeAsShipmentId: (id: string) => ShipmentId;
|
|
197
|
+
export declare const unsafeAsActivityLogEntryId: (id: string) => ActivityLogEntryId;
|
|
198
|
+
export declare const unsafeAsDemoBlueprintId: (id: string) => DemoBlueprintId;
|
|
199
|
+
export declare const unsafeAsDemoBlueprintVersionId: (id: string) => DemoBlueprintVersionId;
|
|
200
|
+
export declare const unsafeAsDemoInstanceId: (id: string) => DemoInstanceId;
|
|
201
|
+
export declare const unsafeAsDemoClaimId: (id: string) => DemoClaimId;
|
|
202
|
+
export declare const unsafeAsDemoLifecycleAuditEventId: (id: string) => DemoLifecycleAuditEventId;
|
|
203
|
+
export declare const unsafeAsDemoRuntimeId: (id: string) => DemoRuntimeId;
|
|
204
|
+
export declare const unsafeAsDemoCapability: (value: string) => DemoCapability;
|
|
205
|
+
export declare const unsafeAsDemoPaymentFlowId: (id: string) => DemoPaymentFlowId;
|
|
197
206
|
export declare const unsafeAsDemoClaimTtlHours: (value: number) => DemoClaimTtlHours;
|
|
198
|
-
export declare const
|
|
199
|
-
export declare const
|
|
200
|
-
export declare const
|
|
201
|
-
export declare const
|
|
202
|
-
export declare const
|
|
203
|
-
export declare const
|
|
204
|
-
export declare const
|
|
205
|
-
export declare const
|
|
206
|
-
export declare const
|
|
207
|
-
export declare const
|
|
208
|
-
export declare const
|
|
209
|
-
export declare const
|
|
210
|
-
export declare const
|
|
211
|
-
export declare const
|
|
212
|
-
export declare const
|
|
207
|
+
export declare const unsafeAsGiftingOfferId: (id: string) => GiftingOfferId;
|
|
208
|
+
export declare const unsafeAsGiftingInstrumentId: (id: string) => GiftingInstrumentId;
|
|
209
|
+
export declare const unsafeAsBookingRequirementId: (id: string) => BookingRequirementId;
|
|
210
|
+
export declare const unsafeAsBookingRequirementEvidenceId: (id: string) => BookingRequirementEvidenceId;
|
|
211
|
+
export declare const unsafeAsBookingRequirementDocumentUploadId: (id: string) => BookingRequirementDocumentUploadId;
|
|
212
|
+
export declare const unsafeAsBookingRequirementEvidenceAttachmentId: (id: string) => BookingRequirementEvidenceAttachmentId;
|
|
213
|
+
export declare const unsafeAsParticipantId: (id: string) => ParticipantId;
|
|
214
|
+
export declare const unsafeAsParticipantParticipationId: (id: string) => ParticipantParticipationId;
|
|
215
|
+
export declare const unsafeAsParticipantRosterAssertionJobId: (id: string) => ParticipantRosterAssertionJobId;
|
|
216
|
+
export declare const unsafeAsParticipantBookingQuestionsTaskId: (id: string) => ParticipantBookingQuestionsTaskId;
|
|
217
|
+
export declare const unsafeAsEventAttendeeGuestId: (id: string) => EventAttendeeGuestId;
|
|
218
|
+
export declare const unsafeAsPersonRecordId: (id: string) => PersonRecordId;
|
|
219
|
+
export declare const unsafeAsEncounterRecordId: (id: string) => EncounterRecordId;
|
|
220
|
+
export declare const unsafeAsRecordEntryId: (id: string) => RecordEntryId;
|
|
221
|
+
export declare const unsafeAsProtectedPayloadKeyVersion: (id: string) => ProtectedPayloadKeyVersion;
|
|
222
|
+
export declare const parseSiteId: (value: unknown) => Result<SiteId, BrandedIdParseError>;
|
|
223
|
+
export declare const parseOccurrenceId: (value: unknown) => Result<OccurrenceId, BrandedIdParseError>;
|
|
224
|
+
export declare const parseTicketTypeId: (value: unknown) => Result<TicketTypeId, BrandedIdParseError>;
|
|
225
|
+
export declare const parsePricingOptionId: (value: unknown) => Result<PricingOptionId, BrandedIdParseError>;
|
|
226
|
+
export declare const parseUserId: (value: unknown) => Result<UserId, BrandedIdParseError>;
|
|
227
|
+
export declare const parseProductId: (value: unknown) => Result<ProductId, BrandedIdParseError>;
|
|
228
|
+
export declare const parseProductVariantId: (value: unknown) => Result<ProductVariantId, BrandedIdParseError>;
|
|
229
|
+
export declare const parseProductCategoryId: (value: unknown) => Result<ProductCategoryId, BrandedIdParseError>;
|
|
230
|
+
export declare const parseMediaAssetId: (value: unknown) => Result<MediaAssetId, BrandedIdParseError>;
|
|
231
|
+
export declare const parseContentEntryId: (value: unknown) => Result<ContentEntryId, BrandedIdParseError>;
|
|
232
|
+
export declare const parseNavigationMenuId: (value: unknown) => Result<NavigationMenuId, BrandedIdParseError>;
|
|
233
|
+
export declare const parseNavigationItemId: (value: unknown) => Result<NavigationItemId, BrandedIdParseError>;
|
|
234
|
+
export declare const parsePassId: (value: unknown) => Result<PassId, BrandedIdParseError>;
|
|
235
|
+
export declare const parseMembershipId: (value: unknown) => Result<MembershipId, BrandedIdParseError>;
|
|
236
|
+
export declare const parseCourseId: (value: unknown) => Result<CourseId, BrandedIdParseError>;
|
|
237
|
+
export declare const parseAppointmentId: (value: unknown) => Result<AppointmentId, BrandedIdParseError>;
|
|
238
|
+
export declare const parseAttendeeId: (value: unknown) => Result<AttendeeId, BrandedIdParseError>;
|
|
239
|
+
export declare const parseCustomerId: (value: unknown) => Result<CustomerId, BrandedIdParseError>;
|
|
240
|
+
export declare const parseCustomerMembershipId: (value: unknown) => Result<CustomerMembershipId, BrandedIdParseError>;
|
|
241
|
+
export declare const parseEventSeriesId: (value: unknown) => Result<EventSeriesId, BrandedIdParseError>;
|
|
213
242
|
export {};
|
|
@@ -111,6 +111,6 @@ export type MoneyExportCurrencyPolicy = Readonly<{
|
|
|
111
111
|
}> | Readonly<{
|
|
112
112
|
kind: 'reject_mixed_currency';
|
|
113
113
|
}>;
|
|
114
|
-
export declare function
|
|
115
|
-
export declare function
|
|
114
|
+
export declare function unsafeAsCsvExportId(value: string): CsvExportId;
|
|
115
|
+
export declare function unsafeAsCsvColumnKey(value: string): CsvColumnKey;
|
|
116
116
|
export declare function asExportRowLimit(value: number): ExportRowLimit;
|
|
@@ -3,17 +3,17 @@ export type EditorSiteId = Brand<string, 'EditorSiteId'>;
|
|
|
3
3
|
export type EditorPageId = Brand<string, 'EditorPageId'>;
|
|
4
4
|
export type EditorEntryId = Brand<string, 'EditorEntryId'>;
|
|
5
5
|
export type EditorBlockId = Brand<string, 'EditorBlockId'>;
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
6
|
+
export declare const unsafeAsEditorSiteId: (value: string) => EditorSiteId;
|
|
7
|
+
export declare const unsafeAsEditorPageId: (value: string) => EditorPageId;
|
|
8
|
+
export declare const unsafeAsEditorEntryId: (value: string) => EditorEntryId;
|
|
9
|
+
export declare const unsafeAsEditorBlockId: (value: string) => EditorBlockId;
|
|
10
10
|
export type EditorValueRecord = Readonly<Record<string, unknown>>;
|
|
11
11
|
export type EditorMetadataValues = Brand<EditorValueRecord, 'EditorMetadataValues'>;
|
|
12
12
|
export type EditorContentValues = Brand<EditorValueRecord, 'EditorContentValues'>;
|
|
13
13
|
export type EditorBlockValues = Brand<EditorValueRecord, 'EditorBlockValues'>;
|
|
14
|
-
export declare const
|
|
15
|
-
export declare const
|
|
16
|
-
export declare const
|
|
14
|
+
export declare const unsafeAsEditorMetadataValues: (value: EditorValueRecord) => EditorMetadataValues;
|
|
15
|
+
export declare const unsafeAsEditorContentValues: (value: EditorValueRecord) => EditorContentValues;
|
|
16
|
+
export declare const unsafeAsEditorBlockValues: (value: EditorValueRecord) => EditorBlockValues;
|
|
17
17
|
export type EditorSyncState = {
|
|
18
18
|
kind: 'baseline';
|
|
19
19
|
} | {
|
|
@@ -34,8 +34,8 @@ export type ProvisionalParticipantIdentityParseError = {
|
|
|
34
34
|
} | {
|
|
35
35
|
kind: 'missing_slot_key';
|
|
36
36
|
};
|
|
37
|
-
export declare function
|
|
38
|
-
export declare function
|
|
37
|
+
export declare function unsafeAsParticipantSlotKey(value: string): ParticipantSlotKey;
|
|
38
|
+
export declare function unsafeAsParticipantCount(value: number): ParticipantCount;
|
|
39
39
|
/**
|
|
40
40
|
* Canonicalizes an optional participant email for equality checks.
|
|
41
41
|
*
|
|
@@ -4154,6 +4154,7 @@ export type Database = {
|
|
|
4154
4154
|
draft_version_id: string | null;
|
|
4155
4155
|
id: string;
|
|
4156
4156
|
identifier: string;
|
|
4157
|
+
manual_order: number;
|
|
4157
4158
|
published_version_id: string | null;
|
|
4158
4159
|
route_id: string | null;
|
|
4159
4160
|
sdk_content_hash: string | null;
|
|
@@ -4172,6 +4173,7 @@ export type Database = {
|
|
|
4172
4173
|
draft_version_id?: string | null;
|
|
4173
4174
|
id?: string;
|
|
4174
4175
|
identifier: string;
|
|
4176
|
+
manual_order?: number;
|
|
4175
4177
|
published_version_id?: string | null;
|
|
4176
4178
|
route_id?: string | null;
|
|
4177
4179
|
sdk_content_hash?: string | null;
|
|
@@ -4190,6 +4192,7 @@ export type Database = {
|
|
|
4190
4192
|
draft_version_id?: string | null;
|
|
4191
4193
|
id?: string;
|
|
4192
4194
|
identifier?: string;
|
|
4195
|
+
manual_order?: number;
|
|
4193
4196
|
published_version_id?: string | null;
|
|
4194
4197
|
route_id?: string | null;
|
|
4195
4198
|
sdk_content_hash?: string | null;
|
|
@@ -8056,6 +8059,138 @@ export type Database = {
|
|
|
8056
8059
|
}
|
|
8057
8060
|
];
|
|
8058
8061
|
};
|
|
8062
|
+
generated_icon_assets: {
|
|
8063
|
+
Row: {
|
|
8064
|
+
byte_length: number;
|
|
8065
|
+
card_key: string;
|
|
8066
|
+
created_at: string;
|
|
8067
|
+
height: number;
|
|
8068
|
+
id: string;
|
|
8069
|
+
media_asset_id: string | null;
|
|
8070
|
+
mime_type: string;
|
|
8071
|
+
semantic_fallback_icon_id: string;
|
|
8072
|
+
set_id: string;
|
|
8073
|
+
site_id: string;
|
|
8074
|
+
sort_order: number;
|
|
8075
|
+
updated_at: string;
|
|
8076
|
+
width: number;
|
|
8077
|
+
};
|
|
8078
|
+
Insert: {
|
|
8079
|
+
byte_length: number;
|
|
8080
|
+
card_key: string;
|
|
8081
|
+
created_at?: string;
|
|
8082
|
+
height: number;
|
|
8083
|
+
id: string;
|
|
8084
|
+
media_asset_id?: string | null;
|
|
8085
|
+
mime_type: string;
|
|
8086
|
+
semantic_fallback_icon_id: string;
|
|
8087
|
+
set_id: string;
|
|
8088
|
+
site_id: string;
|
|
8089
|
+
sort_order?: number;
|
|
8090
|
+
updated_at?: string;
|
|
8091
|
+
width: number;
|
|
8092
|
+
};
|
|
8093
|
+
Update: {
|
|
8094
|
+
byte_length?: number;
|
|
8095
|
+
card_key?: string;
|
|
8096
|
+
created_at?: string;
|
|
8097
|
+
height?: number;
|
|
8098
|
+
id?: string;
|
|
8099
|
+
media_asset_id?: string | null;
|
|
8100
|
+
mime_type?: string;
|
|
8101
|
+
semantic_fallback_icon_id?: string;
|
|
8102
|
+
set_id?: string;
|
|
8103
|
+
site_id?: string;
|
|
8104
|
+
sort_order?: number;
|
|
8105
|
+
updated_at?: string;
|
|
8106
|
+
width?: number;
|
|
8107
|
+
};
|
|
8108
|
+
Relationships: [
|
|
8109
|
+
{
|
|
8110
|
+
foreignKeyName: "generated_icon_assets_media_asset_id_fkey";
|
|
8111
|
+
columns: ["media_asset_id"];
|
|
8112
|
+
isOneToOne: false;
|
|
8113
|
+
referencedRelation: "media_assets";
|
|
8114
|
+
referencedColumns: ["id"];
|
|
8115
|
+
},
|
|
8116
|
+
{
|
|
8117
|
+
foreignKeyName: "generated_icon_assets_set_id_fkey";
|
|
8118
|
+
columns: ["set_id"];
|
|
8119
|
+
isOneToOne: false;
|
|
8120
|
+
referencedRelation: "generated_icon_sets";
|
|
8121
|
+
referencedColumns: ["id"];
|
|
8122
|
+
},
|
|
8123
|
+
{
|
|
8124
|
+
foreignKeyName: "generated_icon_assets_site_id_fkey";
|
|
8125
|
+
columns: ["site_id"];
|
|
8126
|
+
isOneToOne: false;
|
|
8127
|
+
referencedRelation: "sites";
|
|
8128
|
+
referencedColumns: ["id"];
|
|
8129
|
+
}
|
|
8130
|
+
];
|
|
8131
|
+
};
|
|
8132
|
+
generated_icon_sets: {
|
|
8133
|
+
Row: {
|
|
8134
|
+
block_kind: string;
|
|
8135
|
+
block_label: string;
|
|
8136
|
+
created_at: string;
|
|
8137
|
+
created_by: string | null;
|
|
8138
|
+
id: string;
|
|
8139
|
+
model_id: string;
|
|
8140
|
+
prompt: string;
|
|
8141
|
+
prompt_fingerprint: string;
|
|
8142
|
+
provider_name: string;
|
|
8143
|
+
site_id: string;
|
|
8144
|
+
status: string;
|
|
8145
|
+
style_guide_source_fingerprint: string;
|
|
8146
|
+
style_guide_version_id: string;
|
|
8147
|
+
updated_at: string;
|
|
8148
|
+
user_style_note: string | null;
|
|
8149
|
+
};
|
|
8150
|
+
Insert: {
|
|
8151
|
+
block_kind: string;
|
|
8152
|
+
block_label: string;
|
|
8153
|
+
created_at?: string;
|
|
8154
|
+
created_by?: string | null;
|
|
8155
|
+
id: string;
|
|
8156
|
+
model_id: string;
|
|
8157
|
+
prompt: string;
|
|
8158
|
+
prompt_fingerprint: string;
|
|
8159
|
+
provider_name: string;
|
|
8160
|
+
site_id: string;
|
|
8161
|
+
status?: string;
|
|
8162
|
+
style_guide_source_fingerprint: string;
|
|
8163
|
+
style_guide_version_id: string;
|
|
8164
|
+
updated_at?: string;
|
|
8165
|
+
user_style_note?: string | null;
|
|
8166
|
+
};
|
|
8167
|
+
Update: {
|
|
8168
|
+
block_kind?: string;
|
|
8169
|
+
block_label?: string;
|
|
8170
|
+
created_at?: string;
|
|
8171
|
+
created_by?: string | null;
|
|
8172
|
+
id?: string;
|
|
8173
|
+
model_id?: string;
|
|
8174
|
+
prompt?: string;
|
|
8175
|
+
prompt_fingerprint?: string;
|
|
8176
|
+
provider_name?: string;
|
|
8177
|
+
site_id?: string;
|
|
8178
|
+
status?: string;
|
|
8179
|
+
style_guide_source_fingerprint?: string;
|
|
8180
|
+
style_guide_version_id?: string;
|
|
8181
|
+
updated_at?: string;
|
|
8182
|
+
user_style_note?: string | null;
|
|
8183
|
+
};
|
|
8184
|
+
Relationships: [
|
|
8185
|
+
{
|
|
8186
|
+
foreignKeyName: "generated_icon_sets_site_id_fkey";
|
|
8187
|
+
columns: ["site_id"];
|
|
8188
|
+
isOneToOne: false;
|
|
8189
|
+
referencedRelation: "sites";
|
|
8190
|
+
referencedColumns: ["id"];
|
|
8191
|
+
}
|
|
8192
|
+
];
|
|
8193
|
+
};
|
|
8059
8194
|
gifting_audit_events: {
|
|
8060
8195
|
Row: {
|
|
8061
8196
|
actor_kind: string;
|
|
@@ -12550,6 +12685,65 @@ export type Database = {
|
|
|
12550
12685
|
}
|
|
12551
12686
|
];
|
|
12552
12687
|
};
|
|
12688
|
+
site_icon_style_guides: {
|
|
12689
|
+
Row: {
|
|
12690
|
+
approved_example_refs: Json;
|
|
12691
|
+
created_at: string;
|
|
12692
|
+
created_by: string | null;
|
|
12693
|
+
derivation_version: number;
|
|
12694
|
+
display_summary: string;
|
|
12695
|
+
guide: Json;
|
|
12696
|
+
id: string;
|
|
12697
|
+
schema_version: number;
|
|
12698
|
+
site_id: string;
|
|
12699
|
+
source_fingerprint: string;
|
|
12700
|
+
source_snapshot: Json;
|
|
12701
|
+
updated_at: string;
|
|
12702
|
+
updated_by: string | null;
|
|
12703
|
+
version_id: string;
|
|
12704
|
+
};
|
|
12705
|
+
Insert: {
|
|
12706
|
+
approved_example_refs?: Json;
|
|
12707
|
+
created_at?: string;
|
|
12708
|
+
created_by?: string | null;
|
|
12709
|
+
derivation_version: number;
|
|
12710
|
+
display_summary: string;
|
|
12711
|
+
guide: Json;
|
|
12712
|
+
id?: string;
|
|
12713
|
+
schema_version: number;
|
|
12714
|
+
site_id: string;
|
|
12715
|
+
source_fingerprint: string;
|
|
12716
|
+
source_snapshot: Json;
|
|
12717
|
+
updated_at?: string;
|
|
12718
|
+
updated_by?: string | null;
|
|
12719
|
+
version_id: string;
|
|
12720
|
+
};
|
|
12721
|
+
Update: {
|
|
12722
|
+
approved_example_refs?: Json;
|
|
12723
|
+
created_at?: string;
|
|
12724
|
+
created_by?: string | null;
|
|
12725
|
+
derivation_version?: number;
|
|
12726
|
+
display_summary?: string;
|
|
12727
|
+
guide?: Json;
|
|
12728
|
+
id?: string;
|
|
12729
|
+
schema_version?: number;
|
|
12730
|
+
site_id?: string;
|
|
12731
|
+
source_fingerprint?: string;
|
|
12732
|
+
source_snapshot?: Json;
|
|
12733
|
+
updated_at?: string;
|
|
12734
|
+
updated_by?: string | null;
|
|
12735
|
+
version_id?: string;
|
|
12736
|
+
};
|
|
12737
|
+
Relationships: [
|
|
12738
|
+
{
|
|
12739
|
+
foreignKeyName: "site_icon_style_guides_site_id_fkey";
|
|
12740
|
+
columns: ["site_id"];
|
|
12741
|
+
isOneToOne: true;
|
|
12742
|
+
referencedRelation: "sites";
|
|
12743
|
+
referencedColumns: ["id"];
|
|
12744
|
+
}
|
|
12745
|
+
];
|
|
12746
|
+
};
|
|
12553
12747
|
site_inspiration_analyses: {
|
|
12554
12748
|
Row: {
|
|
12555
12749
|
aggregated_constraints: Json | null;
|
|
@@ -16159,6 +16353,14 @@ export type Database = {
|
|
|
16159
16353
|
};
|
|
16160
16354
|
Returns: boolean;
|
|
16161
16355
|
};
|
|
16356
|
+
update_content_entry_manual_order_batch: {
|
|
16357
|
+
Args: {
|
|
16358
|
+
p_content_type_id: string;
|
|
16359
|
+
p_site_id: string;
|
|
16360
|
+
p_updates: Json;
|
|
16361
|
+
};
|
|
16362
|
+
Returns: undefined;
|
|
16363
|
+
};
|
|
16162
16364
|
use_admin_invite: {
|
|
16163
16365
|
Args: {
|
|
16164
16366
|
p_token: string;
|
|
@@ -5,8 +5,11 @@ import type { SystemBlockDefinition } from '../../../blocks/src/index';
|
|
|
5
5
|
import type { BlockDraftSaveability } from '../../../block-form/src/client/index';
|
|
6
6
|
import type { FieldWidgetComponent } from '../../../block-form/src/client/index';
|
|
7
7
|
import type { Theme } from '../../../blocks/src/index';
|
|
8
|
+
import type { SiteIconStyleGuideVersionId } from '../../../blocks/src/index';
|
|
8
9
|
import { type BlockActionControlMode } from './actionControlMode';
|
|
9
10
|
import { type ReorderControlMode } from './reorderControlMode';
|
|
11
|
+
import type { GeneratedIconSetGenerateResult, GeneratedIconSetPreview } from './GeneratedIconSetDialog';
|
|
12
|
+
import type { getFeatureCardIconDialogCards } from './featureCardIconActions';
|
|
10
13
|
import type { ArrayKeysManager, BlockFocusRequest, BlockItem, UiStore, DraftsSlice, UiSlice } from './types';
|
|
11
14
|
/** Drag listener props from dnd-kit */
|
|
12
15
|
type DragListeners = SyntheticListenerMap | undefined;
|
|
@@ -20,7 +23,7 @@ type BlockCardStore = UiStore<Pick<UiSlice, 'activeBlockId' | 'setActiveBlockId'
|
|
|
20
23
|
drafts: Pick<DraftsSlice, 'getBlockSnapshot' | 'getCurrentValues' | 'getAtPath' | 'setAtPath' | 'edit' | 'initNewBlock' | 'updateBlockBaseline' | 'clearError'>;
|
|
21
24
|
arrayKeys: ArrayKeysManager;
|
|
22
25
|
}>;
|
|
23
|
-
export declare function BlockCard({ siteId, block, manifest, isFirst, isLast, isMoving, onMove, onDuplicate, onDelete, dragListeners, canReorder, collapsed, onCollapsedChange, highlighted, hasRecoveryConflict, focusSignal, onFocusHandled, onBlockSave, theme, widgetOverrides, uiStore, hideThemeV2RawStyleFields, pageDesignBlock, reorderControlMode, actionControlMode, }: {
|
|
26
|
+
export declare function BlockCard({ siteId, block, manifest, isFirst, isLast, isMoving, onMove, onDuplicate, onDelete, dragListeners, canReorder, collapsed, onCollapsedChange, highlighted, hasRecoveryConflict, focusSignal, onFocusHandled, onBlockSave, theme, widgetOverrides, uiStore, hideThemeV2RawStyleFields, pageDesignBlock, reorderControlMode, actionControlMode, currentStyleGuideVersionId, iconStyleGuideSummary, iconStyleGuideEditHref, onGenerateIconSet, onApplyGeneratedIconSet, }: {
|
|
24
27
|
siteId: string;
|
|
25
28
|
block: BlockItem;
|
|
26
29
|
manifest: SystemBlockDefinition['manifest'];
|
|
@@ -46,5 +49,13 @@ export declare function BlockCard({ siteId, block, manifest, isFirst, isLast, is
|
|
|
46
49
|
pageDesignBlock?: PageDesignEditorBlock | null;
|
|
47
50
|
reorderControlMode?: ReorderControlMode;
|
|
48
51
|
actionControlMode?: BlockActionControlMode;
|
|
52
|
+
currentStyleGuideVersionId?: SiteIconStyleGuideVersionId | null;
|
|
53
|
+
iconStyleGuideSummary?: string | null;
|
|
54
|
+
iconStyleGuideEditHref?: string | null;
|
|
55
|
+
onGenerateIconSet?: (input: Readonly<{
|
|
56
|
+
userStyleNote: string | null;
|
|
57
|
+
cards: ReturnType<typeof getFeatureCardIconDialogCards>;
|
|
58
|
+
}>) => Promise<GeneratedIconSetGenerateResult>;
|
|
59
|
+
onApplyGeneratedIconSet?: (preview: GeneratedIconSetPreview) => GeneratedIconSetPreview | void | Promise<GeneratedIconSetPreview | void>;
|
|
49
60
|
}): import("react/jsx-runtime").JSX.Element;
|
|
50
61
|
export {};
|