@homepages/concrete 1.0.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/CHANGELOG.md +59 -0
- package/README.md +174 -0
- package/codemods/manifest.json +9 -0
- package/dist/artifact/playground/client/assets/index-BSA1yutg.css +1 -0
- package/dist/artifact/playground/client/assets/index-JloQyj8h.js +1101 -0
- package/dist/artifact/playground/client/index.html +13 -0
- package/dist/artifact/playground/client/island-canvas-host.mjs +1 -0
- package/dist/artifact/playground/host.mjs +127 -0
- package/dist/asset-modules.d.ts +99 -0
- package/dist/base.css +220 -0
- package/dist/browser/site-config.d.ts +18 -0
- package/dist/browser/site-config.js +56 -0
- package/dist/browser/submit-lead.d.ts +98 -0
- package/dist/browser/submit-lead.js +188 -0
- package/dist/browser.d.ts +3 -0
- package/dist/browser.js +4 -0
- package/dist/cli/build/artifact.js +225 -0
- package/dist/cli/build/captures.js +67 -0
- package/dist/cli/build/esbuild.js +127 -0
- package/dist/cli/build/fixtures.js +96 -0
- package/dist/cli/build/icons.js +76 -0
- package/dist/cli/build/index.js +38 -0
- package/dist/cli/build/playground.js +31 -0
- package/dist/cli/build/sections.js +236 -0
- package/dist/cli/build/source.js +62 -0
- package/dist/cli/build/static.js +156 -0
- package/dist/cli/capture/bundle.js +37 -0
- package/dist/cli/capture/capture-browser.js +51 -0
- package/dist/cli/capture/capture.js +121 -0
- package/dist/cli/check/analyze.js +95 -0
- package/dist/cli/check/index.js +19 -0
- package/dist/cli/check/load-workspace.js +119 -0
- package/dist/cli/check/messages.js +16 -0
- package/dist/cli/check/render/class-conflicts.js +39 -0
- package/dist/cli/check/render/html.js +86 -0
- package/dist/cli/check/render/inputs.js +53 -0
- package/dist/cli/check/render/invariants.js +58 -0
- package/dist/cli/check/render/island-frames.js +72 -0
- package/dist/cli/check/render/marker-coverage.js +102 -0
- package/dist/cli/check/render/nav.js +64 -0
- package/dist/cli/check/report.js +73 -0
- package/dist/cli/check/stages/bundles.js +129 -0
- package/dist/cli/check/stages/composition.js +67 -0
- package/dist/cli/check/stages/contracts.js +22 -0
- package/dist/cli/check/stages/dependencies.js +261 -0
- package/dist/cli/check/stages/fixtures.js +74 -0
- package/dist/cli/check/stages/lint.js +41 -0
- package/dist/cli/check/stages/logic.js +63 -0
- package/dist/cli/check/stages/render.js +144 -0
- package/dist/cli/check/stages/sections.js +83 -0
- package/dist/cli/check/stages/stylesheet.js +31 -0
- package/dist/cli/check/stages/typecheck.js +68 -0
- package/dist/cli/check/stages/workspace.js +26 -0
- package/dist/cli/commands.js +342 -0
- package/dist/cli/currency/cache.js +89 -0
- package/dist/cli/currency/decide.js +65 -0
- package/dist/cli/currency/opt-out.js +16 -0
- package/dist/cli/currency/preamble.js +183 -0
- package/dist/cli/currency/prompt.js +28 -0
- package/dist/cli/currency/refresh.js +44 -0
- package/dist/cli/currency/resolve-latest.js +185 -0
- package/dist/cli/currency/version-order.js +38 -0
- package/dist/cli/dev/crop.js +22 -0
- package/dist/cli/dev/hmr.js +26 -0
- package/dist/cli/dev/http.js +129 -0
- package/dist/cli/dev/index.js +70 -0
- package/dist/cli/dev/islands.js +390 -0
- package/dist/cli/dev/load-template.js +46 -0
- package/dist/cli/dev/request-error.js +22 -0
- package/dist/cli/dev/server.js +307 -0
- package/dist/cli/dev/tsconfig-paths.js +95 -0
- package/dist/cli/dev/vite.js +85 -0
- package/dist/cli/dev/workspace-reader.js +274 -0
- package/dist/cli/io.d.ts +14 -0
- package/dist/cli/media/cache.js +125 -0
- package/dist/cli/media/derive.js +252 -0
- package/dist/cli/media/deriver-plugin.js +71 -0
- package/dist/cli/property/index.js +180 -0
- package/dist/cli/property/library.js +137 -0
- package/dist/cli/publish/client.js +119 -0
- package/dist/cli/publish/freshness.js +66 -0
- package/dist/cli/publish/git.js +43 -0
- package/dist/cli/publish/index.js +207 -0
- package/dist/cli/publish/pack.js +78 -0
- package/dist/cli/publish/report.js +98 -0
- package/dist/cli/publish/target.js +87 -0
- package/dist/cli/publish/wire.js +29 -0
- package/dist/cli/tar.js +87 -0
- package/dist/cli/upgrade/codemod.js +56 -0
- package/dist/cli/upgrade/index.js +263 -0
- package/dist/cli/upgrade/manifest.js +72 -0
- package/dist/cli/upgrade/plan.js +68 -0
- package/dist/cli/upgrade/stage.js +71 -0
- package/dist/cli/version.d.ts +12 -0
- package/dist/cli/version.js +15 -0
- package/dist/cli/workspace.js +108 -0
- package/dist/cli.d.ts +6 -0
- package/dist/cli.js +94 -0
- package/dist/css/compile.js +77 -0
- package/dist/css/graph.js +109 -0
- package/dist/css/inline.js +132 -0
- package/dist/css/rules.js +65 -0
- package/dist/design-system/format-variants.js +127 -0
- package/dist/eslint/authoring.js +46 -0
- package/dist/eslint/correctness.js +42 -0
- package/dist/eslint/rules/editor-declaration.js +103 -0
- package/dist/eslint/rules/editor-reason.js +135 -0
- package/dist/eslint/rules/island-imports.js +20 -0
- package/dist/eslint/rules/jsx-visitor.js +20 -0
- package/dist/eslint/rules/no-client-runtime.js +88 -0
- package/dist/eslint/rules/no-editor-globals.js +60 -0
- package/dist/eslint/rules/no-hard-coded-color.js +183 -0
- package/dist/eslint/rules/no-inline-style.js +24 -0
- package/dist/eslint/rules/no-marker-literal.js +37 -0
- package/dist/eslint/rules/no-nondeterminism.js +44 -0
- package/dist/eslint/rules/no-px-breakpoint.js +44 -0
- package/dist/eslint/rules/no-raw-values.js +45 -0
- package/dist/eslint/rules/serializable-props.js +95 -0
- package/dist/eslint.d.ts +6 -0
- package/dist/eslint.js +26 -0
- package/dist/fixtures/brand.d.ts +4 -0
- package/dist/fixtures/brand.js +9 -0
- package/dist/fixtures/bundle-rule.js +67 -0
- package/dist/fixtures/canonical.d.ts +149 -0
- package/dist/fixtures/image-dimensions.js +59 -0
- package/dist/fixtures/load.js +154 -0
- package/dist/fixtures/media-plugin.js +141 -0
- package/dist/fixtures/media.js +165 -0
- package/dist/fixtures/property.js +210 -0
- package/dist/fixtures/resolve.js +202 -0
- package/dist/fixtures/rows.js +108 -0
- package/dist/fixtures/synthesize-empties.js +42 -0
- package/dist/fixtures.d.ts +213 -0
- package/dist/fixtures.js +37 -0
- package/dist/index.d.ts +53 -0
- package/dist/index.js +37 -0
- package/dist/islands/client-module.js +97 -0
- package/dist/islands/marker.d.ts +43 -0
- package/dist/islands/marker.js +44 -0
- package/dist/node_modules/.pnpm/fflate@0.8.3/node_modules/fflate/esm/browser.js +687 -0
- package/dist/packages/external/concrete/package.js +5 -0
- package/dist/packages/internal/fact-interpolation/dist/index.js +22 -0
- package/dist/packages/internal/fill-bake/dist/bake-property-ref.js +111 -0
- package/dist/packages/internal/fill-bake/dist/display.js +9 -0
- package/dist/packages/internal/fill-bake/dist/index.js +6 -0
- package/dist/packages/internal/fill-bake/dist/reconcile-cross-section.js +170 -0
- package/dist/packages/internal/fill-vocabulary/dist/facts.d.ts +32 -0
- package/dist/packages/internal/fill-vocabulary/dist/facts.js +131 -0
- package/dist/packages/internal/fill-vocabulary/dist/row-planners.js +73 -0
- package/dist/packages/internal/format-geometry/dist/capture.js +404 -0
- package/dist/packages/internal/format-geometry/dist/format.d.ts +41 -0
- package/dist/packages/internal/format-geometry/dist/geometry.js +58 -0
- package/dist/packages/internal/format-geometry/dist/index.js +4 -0
- package/dist/packages/internal/image-descriptor/dist/index.d.ts +35 -0
- package/dist/packages/internal/image-ladder/dist/crop.js +82 -0
- package/dist/packages/internal/image-ladder/dist/encode.js +23 -0
- package/dist/packages/internal/image-ladder/dist/index.js +4 -0
- package/dist/packages/internal/image-ladder/dist/policy.js +102 -0
- package/dist/packages/internal/island-runtime/dist/capture-holds.d.ts +13 -0
- package/dist/packages/internal/island-runtime/dist/capture-holds.js +45 -0
- package/dist/packages/internal/island-runtime/dist/contract.d.ts +176 -0
- package/dist/packages/internal/island-runtime/dist/contract.js +94 -0
- package/dist/packages/internal/island-runtime/dist/editor-instance-context.js +15 -0
- package/dist/packages/internal/island-runtime/dist/index.d.ts +103 -0
- package/dist/packages/internal/island-runtime/dist/index.js +163 -0
- package/dist/packages/internal/island-runtime/dist/use-capture-ready.d.ts +19 -0
- package/dist/packages/internal/island-runtime/dist/use-capture-ready.js +39 -0
- package/dist/packages/internal/island-runtime/dist/use-editor.d.ts +22 -0
- package/dist/packages/internal/island-runtime/dist/use-editor.js +54 -0
- package/dist/packages/internal/island-runtime/dist/viewport-schedule.js +105 -0
- package/dist/packages/internal/property-facts/dist/derive-facts-view.js +25 -0
- package/dist/packages/internal/property-facts/dist/index.js +3 -0
- package/dist/packages/internal/property-facts/dist/property-facts-CSdkSuD7.js +181 -0
- package/dist/packages/internal/section-contracts/dist/cap-contract.js +59 -0
- package/dist/packages/internal/section-contracts/dist/catalog.js +102 -0
- package/dist/packages/internal/section-contracts/dist/choose-select-contract.js +24 -0
- package/dist/packages/internal/section-contracts/dist/count-bounds-contract.js +48 -0
- package/dist/packages/internal/section-contracts/dist/display-contract.js +30 -0
- package/dist/packages/internal/section-contracts/dist/display-evidence-contract.js +17 -0
- package/dist/packages/internal/section-contracts/dist/group-contract.js +21 -0
- package/dist/packages/internal/section-contracts/dist/index.js +26 -0
- package/dist/packages/internal/section-contracts/dist/interpolation-contract.js +48 -0
- package/dist/packages/internal/section-contracts/dist/list-fill-contract.js +53 -0
- package/dist/packages/internal/section-contracts/dist/list-scalar-contract.js +70 -0
- package/dist/packages/internal/section-contracts/dist/name-title-contract.js +27 -0
- package/dist/packages/internal/section-contracts/dist/nested-slot-contract.js +12 -0
- package/dist/packages/internal/section-contracts/dist/option-source-contract.js +22 -0
- package/dist/packages/internal/section-contracts/dist/poi-curation-contract.js +18 -0
- package/dist/packages/internal/section-contracts/dist/pooling-field-contract.js +30 -0
- package/dist/packages/internal/section-contracts/dist/record-collection-contract.js +24 -0
- package/dist/packages/internal/section-contracts/dist/row-contract.js +37 -0
- package/dist/packages/internal/section-contracts/dist/row-fill-contract.js +38 -0
- package/dist/packages/internal/section-contracts/dist/runners.js +181 -0
- package/dist/packages/internal/section-contracts/dist/select-contract.js +28 -0
- package/dist/packages/internal/section-contracts/dist/source-contract.js +48 -0
- package/dist/packages/internal/section-contracts/dist/source-filter-contract.js +15 -0
- package/dist/packages/internal/section-contracts/dist/sources-contract.js +28 -0
- package/dist/packages/internal/section-contracts/dist/url-contract.js +20 -0
- package/dist/packages/internal/source-resolution/dist/index.js +222 -0
- package/dist/packages/internal/template-artifact/dist/hash.js +50 -0
- package/dist/packages/internal/template-artifact/dist/index.js +7 -0
- package/dist/packages/internal/template-artifact/dist/layout.js +165 -0
- package/dist/packages/internal/template-artifact/dist/manifest.js +73 -0
- package/dist/packages/internal/template-artifact/dist/sha256.js +138 -0
- package/dist/packages/internal/template-artifact/dist/verify.js +275 -0
- package/dist/packages/internal/template-contracts/dist/collection-editing.js +38 -0
- package/dist/packages/internal/template-contracts/dist/content-categories.d.ts +10 -0
- package/dist/packages/internal/template-contracts/dist/content-categories.js +17 -0
- package/dist/packages/internal/template-contracts/dist/document-value.d.ts +33 -0
- package/dist/packages/internal/template-contracts/dist/facts-view.d.ts +81 -0
- package/dist/packages/internal/template-contracts/dist/facts-view.js +136 -0
- package/dist/packages/internal/template-contracts/dist/layout.js +17 -0
- package/dist/packages/internal/template-contracts/dist/markers.d.ts +40 -0
- package/dist/packages/internal/template-contracts/dist/markers.js +41 -0
- package/dist/packages/internal/template-contracts/dist/poi-row.d.ts +63 -0
- package/dist/packages/internal/template-contracts/dist/select-key.js +13 -0
- package/dist/packages/internal/template-contracts/dist/slot-catalog.d.ts +1112 -0
- package/dist/packages/internal/template-contracts/dist/slot-catalog.js +1109 -0
- package/dist/packages/internal/template-contracts/dist/slot-overrides.js +11 -0
- package/dist/packages/internal/template-contracts/dist/tour-value.d.ts +45 -0
- package/dist/packages/internal/template-contracts/dist/video-value.d.ts +63 -0
- package/dist/playground/host/page-state.js +12 -0
- package/dist/playground/host/paths.js +9 -0
- package/dist/playground/layout.js +24 -0
- package/dist/playground/wire.js +36 -0
- package/dist/playground-island-runtime.d.ts +3 -0
- package/dist/playground-island-runtime.js +4 -0
- package/dist/primitives/FrameShell.d.ts +29 -0
- package/dist/primitives/FrameShell.js +34 -0
- package/dist/primitives/Image.d.ts +119 -0
- package/dist/primitives/Image.js +173 -0
- package/dist/primitives/Section.d.ts +22 -0
- package/dist/primitives/Section.js +26 -0
- package/dist/primitives/Tour.d.ts +43 -0
- package/dist/primitives/Tour.js +72 -0
- package/dist/primitives/Video.d.ts +57 -0
- package/dist/primitives/Video.js +116 -0
- package/dist/primitives/embed-playback.js +50 -0
- package/dist/primitives/index.d.ts +11 -0
- package/dist/primitives/marker-attrs.js +44 -0
- package/dist/primitives/object-fit.js +11 -0
- package/dist/primitives/picture-sources.d.ts +24 -0
- package/dist/primitives/picture-sources.js +52 -0
- package/dist/primitives/probe-context.js +24 -0
- package/dist/primitives/slot-bindings.d.ts +96 -0
- package/dist/primitives/slot-bindings.js +226 -0
- package/dist/primitives/slot-document.d.ts +35 -0
- package/dist/primitives/slot-document.js +37 -0
- package/dist/primitives/slot-group.d.ts +40 -0
- package/dist/primitives/slot-group.js +45 -0
- package/dist/primitives/slot-list.d.ts +21 -0
- package/dist/primitives/slot-list.js +23 -0
- package/dist/primitives/slot-media.d.ts +71 -0
- package/dist/primitives/slot-media.js +98 -0
- package/dist/primitives/slot-scalar.d.ts +53 -0
- package/dist/primitives/slot-scalar.js +98 -0
- package/dist/primitives/slot.d.ts +26 -0
- package/dist/primitives/slot.js +28 -0
- package/dist/rules/registry.js +479 -0
- package/dist/schema/compute.d.ts +22 -0
- package/dist/schema/compute.js +30 -0
- package/dist/schema/define-schema.d.ts +27 -0
- package/dist/schema/define-schema.js +73 -0
- package/dist/schema/extract-fill-spec.js +246 -0
- package/dist/schema/extract-used-facts.js +176 -0
- package/dist/schema/fact.d.ts +65 -0
- package/dist/schema/fact.js +33 -0
- package/dist/schema/fill-builders.d.ts +387 -0
- package/dist/schema/fill-builders.js +263 -0
- package/dist/schema/fill-declaration.d.ts +76 -0
- package/dist/schema/fill-declaration.js +43 -0
- package/dist/schema/fill-spec.d.ts +18 -0
- package/dist/schema/fill-spec.js +170 -0
- package/dist/schema/format-presets.d.ts +27 -0
- package/dist/schema/format-presets.js +76 -0
- package/dist/schema/format.d.ts +22 -0
- package/dist/schema/format.js +40 -0
- package/dist/schema/formats.d.ts +6 -0
- package/dist/schema/formats.js +7 -0
- package/dist/schema/layout.d.ts +32 -0
- package/dist/schema/layout.js +30 -0
- package/dist/schema/manifest.js +300 -0
- package/dist/schema/property-facts.d.ts +83 -0
- package/dist/schema/runtime-values.d.ts +88 -0
- package/dist/schema/section-nav.d.ts +38 -0
- package/dist/schema/section-nav.js +29 -0
- package/dist/schema/section-props.d.ts +98 -0
- package/dist/schema/section-schema.d.ts +53 -0
- package/dist/schema/section-schema.js +54 -0
- package/dist/schema/slot-builders.d.ts +497 -0
- package/dist/schema/slot-builders.js +331 -0
- package/dist/schema/slot-types.d.ts +110 -0
- package/dist/schema/slot-types.js +187 -0
- package/dist/section/declare.d.ts +44 -0
- package/dist/section/declare.js +27 -0
- package/dist/section/discovery.js +76 -0
- package/dist/section/groups.js +74 -0
- package/dist/section/materialize.js +28 -0
- package/dist/section/placements.js +28 -0
- package/dist/section/section.d.ts +69 -0
- package/dist/section/section.js +101 -0
- package/dist/site-analytics.d.ts +1 -0
- package/dist/site-analytics.js +15 -0
- package/dist/site-runtime/analytics.js +97 -0
- package/dist/site-runtime/site-integrations.js +97 -0
- package/dist/styles.css +60 -0
- package/dist/template/define-template.d.ts +139 -0
- package/dist/template/define-template.js +98 -0
- package/dist/template/logic-build.js +191 -0
- package/dist/template/logic-shim.d.ts +43 -0
- package/dist/template/logic-shim.js +52 -0
- package/dist/template/logic-transform.js +92 -0
- package/dist/template/materialize.js +107 -0
- package/dist/template/reconcile.d.ts +67 -0
- package/dist/template/reconcile.js +25 -0
- package/dist/template/running-copy.js +58 -0
- package/guide/reference/cli/INDEX.md +79 -0
- package/guide/reference/cli/build.md +48 -0
- package/guide/reference/cli/check.md +49 -0
- package/guide/reference/cli/dev.md +46 -0
- package/guide/reference/cli/property-add.md +53 -0
- package/guide/reference/cli/property-list.md +46 -0
- package/guide/reference/cli/publish.md +54 -0
- package/guide/reference/cli/upgrade.md +48 -0
- package/guide/reference/rules/INDEX.md +190 -0
- package/package.json +137 -0
- package/tsconfig.base.json +16 -0
|
@@ -0,0 +1,1112 @@
|
|
|
1
|
+
//#region ../../internal/template-contracts/dist/slot-catalog.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* The asset-pool filters an `image` slot's `sourceFilter` may name — the tag that narrows the candidate pool the editor offers for that slot.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* `"floorplans"` routes the slot to the per-unit floor-plan picker rather than
|
|
7
|
+
* the property photo pool. The vocabulary is closed and checked at authoring
|
|
8
|
+
* time (`assertSourceFilterContract`) because an unrecognized tag is invisible:
|
|
9
|
+
* the editor simply falls through to the ordinary photo pool, with no error
|
|
10
|
+
* anywhere and no way to tell that from an author who meant that pool.
|
|
11
|
+
*/
|
|
12
|
+
declare const SOURCE_FILTERS: readonly ["floorplans"];
|
|
13
|
+
/** An asset-pool filter tag — one of `SOURCE_FILTERS`. */
|
|
14
|
+
type SourceFilter = (typeof SOURCE_FILTERS)[number];
|
|
15
|
+
/**
|
|
16
|
+
* Referral-provider field names a slot may bind to via `source.kind:"direct"` on a named property-level referral (v1: `"primary_contact"`).
|
|
17
|
+
*
|
|
18
|
+
* @remarks
|
|
19
|
+
* Names the referral-specific fields, as distinct from the property/unit
|
|
20
|
+
* scalars in `SOURCE_FIELDS`, for slot-type cross-checks. The
|
|
21
|
+
* field-to-contact-card-key translation applied when a value is baked is not
|
|
22
|
+
* part of this kit.
|
|
23
|
+
*/
|
|
24
|
+
declare const REFERRAL_FIELDS: readonly ["name", "title", "org_name", "email", "phone", "website", "instagram", "linkedin", "x", "facebook", "headshot", "logo_dark", "logo_light"];
|
|
25
|
+
/** A referral field name — one of `REFERRAL_FIELDS`. */
|
|
26
|
+
type ReferralField = (typeof REFERRAL_FIELDS)[number];
|
|
27
|
+
/**
|
|
28
|
+
* Where in the property fact graph a `SOURCE_FIELDS` entry's value lives: the property root, a unit row, or a contact card.
|
|
29
|
+
*/
|
|
30
|
+
type SourceFieldContainer = "property" | "unit" | "contact";
|
|
31
|
+
/** The value shape a `direct`-source field carries. */
|
|
32
|
+
type SourceFieldValueType = "text" | "number" | "image" | "coordinates" | "unit_list" | "contact_list" | "comparable_list";
|
|
33
|
+
/**
|
|
34
|
+
* Where a writable `SOURCE_FIELDS` entry's edited value is written back to — the target a slot's "Update everywhere" action updates.
|
|
35
|
+
*
|
|
36
|
+
* @remarks
|
|
37
|
+
* A `SourceFieldDescriptor` with no `writeback` is read-only.
|
|
38
|
+
*/
|
|
39
|
+
type WritebackTarget = {
|
|
40
|
+
kind: "property";
|
|
41
|
+
column: "listing_intent";
|
|
42
|
+
} | {
|
|
43
|
+
kind: "unit";
|
|
44
|
+
column: "unit_label" | "beds" | "baths" | "sqft" | "price";
|
|
45
|
+
} | {
|
|
46
|
+
kind: "contact";
|
|
47
|
+
field: string;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Where a writable ROW MEMBER's edited value lands — a column of the row's own table.
|
|
51
|
+
*
|
|
52
|
+
* @remarks
|
|
53
|
+
* The column and nothing else, because the table is the collection's: a member
|
|
54
|
+
* is addressed as `<collection>.row.<member>`, and whichever layer holds the
|
|
55
|
+
* write already knows which collection it dispatched on.
|
|
56
|
+
*
|
|
57
|
+
* Declared only on a collection whose rows are NOT projected from catalog
|
|
58
|
+
* fields — `comparables`, where a row field names a member by key and carries
|
|
59
|
+
* no `source`, so the member is the whole story. `units` and `contacts` must
|
|
60
|
+
* never carry one: there, writability belongs to the `SOURCE_FIELDS` entry each
|
|
61
|
+
* row field binds and is answered per section by the slot's own `writeback`
|
|
62
|
+
* declaration, which a marker here would silently overrule.
|
|
63
|
+
*/
|
|
64
|
+
type RowMemberWriteback = {
|
|
65
|
+
column: string;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* The value shape a fact graph entry carries — every `SourceFieldValueType` a slot may bind, widened with the shapes only a derive-time reader sees.
|
|
69
|
+
*
|
|
70
|
+
* @remarks
|
|
71
|
+
* `"row_list"` and `"row"` defer their shape to the entry's own `row`
|
|
72
|
+
* descriptor; `"object"` defers to its `fields`. The bindable pools keep their
|
|
73
|
+
* historical `"unit_list"`/`"contact_list"` spellings rather than collapsing
|
|
74
|
+
* into `"row_list"`, because resolution branches on those two names.
|
|
75
|
+
*/
|
|
76
|
+
type FactValueType = SourceFieldValueType | "boolean" | "text_list" | "row" | "row_list" | "object";
|
|
77
|
+
/** One member of a fact graph entry's row (an array element) or object shape, itself typed and possibly nested. */
|
|
78
|
+
interface FactMemberDescriptor {
|
|
79
|
+
value_type: FactValueType;
|
|
80
|
+
/** The element shape, when this member is itself an array. */
|
|
81
|
+
row?: FactShapeDescriptor;
|
|
82
|
+
/**
|
|
83
|
+
* Set on the members a row must carry to count as COMPLETE. A pool whose row
|
|
84
|
+
* declares any is answered by at least one complete row rather than by being
|
|
85
|
+
* non-empty — the reading both Generate gates take (`requiredRowMembers`).
|
|
86
|
+
* Absent everywhere else: the registry carries no per-member requiredness,
|
|
87
|
+
* and a row with none declared is complete the moment it exists.
|
|
88
|
+
*/
|
|
89
|
+
required?: true;
|
|
90
|
+
/**
|
|
91
|
+
* Set on a row member the editor may write back from the canvas — the column
|
|
92
|
+
* it lands in on the collection's own table. Absent means read-only, which is
|
|
93
|
+
* every member of a collection whose rows project from catalog fields; see
|
|
94
|
+
* `RowMemberWriteback` for why only `comparables` declares these.
|
|
95
|
+
*/
|
|
96
|
+
writeback?: RowMemberWriteback;
|
|
97
|
+
}
|
|
98
|
+
/** The typed member shape of an array element or object-valued fact — member name to its descriptor. */
|
|
99
|
+
type FactShapeDescriptor = Readonly<Record<string, FactMemberDescriptor>>;
|
|
100
|
+
/**
|
|
101
|
+
* The single description of every fact an author can reach — the whole property fact graph, bindable and readable-only alike.
|
|
102
|
+
*
|
|
103
|
+
* @remarks
|
|
104
|
+
* Every canonical `property_facts.facts` path is either an entry here (or a
|
|
105
|
+
* member of one) or carries a stated reason on `FACT_GRAPH_EXCLUSIONS`; a
|
|
106
|
+
* completeness gate holds that exactly, top level and row level.
|
|
107
|
+
* Each entry's own doc comment is the hover text an author sees on the
|
|
108
|
+
* matching `fact.*` entry elsewhere in the schema layer, so keep every entry
|
|
109
|
+
* documented — that sentence is the only way an author distinguishes
|
|
110
|
+
* `fact.unit.beds` from `fact.property.property_type` without opening this file.
|
|
111
|
+
* The bindable entries are declared in the order `fact.*` presents them.
|
|
112
|
+
*
|
|
113
|
+
* It is also where a fact's CONDITIONAL axis is declared — `input_group` (the
|
|
114
|
+
* askable unit whose question produces it) and `strength` (whether that
|
|
115
|
+
* question gates Generate). Both live on the fact rather than on the template
|
|
116
|
+
* that uses it, which is what lets a fact be re-grouped or re-weighted without
|
|
117
|
+
* republishing a single template: a published template stores only the fact
|
|
118
|
+
* KEYS it uses, and the group and strength are joined from here at read time.
|
|
119
|
+
*/
|
|
120
|
+
declare const FACT_GRAPH: {
|
|
121
|
+
/** Street address, resolved to its display form. Read-only. */
|
|
122
|
+
readonly address: {
|
|
123
|
+
readonly role: "bindable";
|
|
124
|
+
readonly path: "address";
|
|
125
|
+
readonly container: "property";
|
|
126
|
+
readonly value_type: "text";
|
|
127
|
+
readonly input_group: "address";
|
|
128
|
+
readonly strength: "blocking";
|
|
129
|
+
readonly fields: {
|
|
130
|
+
/** The address as one display line. */
|
|
131
|
+
readonly display: {
|
|
132
|
+
readonly value_type: "text";
|
|
133
|
+
};
|
|
134
|
+
/** Street line ("123 Main St"). */
|
|
135
|
+
readonly street: {
|
|
136
|
+
readonly value_type: "text";
|
|
137
|
+
};
|
|
138
|
+
/** Street number and name without the type suffix ("1112 Commonwealth"), for a short street label. */
|
|
139
|
+
readonly street_no_type: {
|
|
140
|
+
readonly value_type: "text";
|
|
141
|
+
};
|
|
142
|
+
/** City ("Springfield"). */
|
|
143
|
+
readonly city: {
|
|
144
|
+
readonly value_type: "text";
|
|
145
|
+
};
|
|
146
|
+
/** State ("IL"). */
|
|
147
|
+
readonly state: {
|
|
148
|
+
readonly value_type: "text";
|
|
149
|
+
};
|
|
150
|
+
/** Postal code ("62704"). */
|
|
151
|
+
readonly postal: {
|
|
152
|
+
readonly value_type: "text";
|
|
153
|
+
};
|
|
154
|
+
/** Apartment, suite or unit designator ("Unit 4B"), where the address carries one. */
|
|
155
|
+
readonly unit: {
|
|
156
|
+
readonly value_type: "text";
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
/** Street line of the property address ("123 Main St"). Read-only. */
|
|
161
|
+
readonly address_street: {
|
|
162
|
+
readonly role: "bindable";
|
|
163
|
+
readonly path: "address.street";
|
|
164
|
+
readonly container: "property";
|
|
165
|
+
readonly value_type: "text";
|
|
166
|
+
readonly input_group: "address";
|
|
167
|
+
readonly strength: "blocking";
|
|
168
|
+
};
|
|
169
|
+
/** Secondary line of the property address — the apartment, suite or unit designator ("Apt 4"). Read-only. Unrelated to the `unit` container, which holds a priced listing unit. */
|
|
170
|
+
readonly address_unit: {
|
|
171
|
+
readonly role: "bindable";
|
|
172
|
+
readonly path: "address.unit";
|
|
173
|
+
readonly container: "property";
|
|
174
|
+
readonly value_type: "text";
|
|
175
|
+
readonly input_group: "address";
|
|
176
|
+
readonly strength: "optional";
|
|
177
|
+
};
|
|
178
|
+
/** City of the property address ("Springfield"). Read-only. */
|
|
179
|
+
readonly address_city: {
|
|
180
|
+
readonly role: "bindable";
|
|
181
|
+
readonly path: "address.city";
|
|
182
|
+
readonly container: "property";
|
|
183
|
+
readonly value_type: "text";
|
|
184
|
+
readonly input_group: "address";
|
|
185
|
+
readonly strength: "blocking";
|
|
186
|
+
};
|
|
187
|
+
/** State of the property address ("IL"). Read-only. */
|
|
188
|
+
readonly address_state: {
|
|
189
|
+
readonly role: "bindable";
|
|
190
|
+
readonly path: "address.state";
|
|
191
|
+
readonly container: "property";
|
|
192
|
+
readonly value_type: "text";
|
|
193
|
+
readonly input_group: "address";
|
|
194
|
+
readonly strength: "blocking";
|
|
195
|
+
};
|
|
196
|
+
/** Postal code of the property address ("62704"). Read-only. */
|
|
197
|
+
readonly address_postal: {
|
|
198
|
+
readonly role: "bindable";
|
|
199
|
+
readonly path: "address.postal";
|
|
200
|
+
readonly container: "property";
|
|
201
|
+
readonly value_type: "text";
|
|
202
|
+
readonly input_group: "address";
|
|
203
|
+
readonly strength: "blocking";
|
|
204
|
+
};
|
|
205
|
+
/** Whether the property is for sale or for rent. **Writable** — the editor offers "Update everywhere". Also supplies a `select` slot's option vocabulary. */
|
|
206
|
+
readonly listing_intent: {
|
|
207
|
+
readonly role: "bindable";
|
|
208
|
+
readonly path: "listing_intent";
|
|
209
|
+
readonly container: "property";
|
|
210
|
+
readonly value_type: "text";
|
|
211
|
+
readonly input_group: "intent";
|
|
212
|
+
readonly strength: "blocking";
|
|
213
|
+
readonly writeback: {
|
|
214
|
+
readonly kind: "property";
|
|
215
|
+
readonly column: "listing_intent";
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
/** Property type (single family, condo, multi-family, …). Read-only. */
|
|
219
|
+
readonly property_type: {
|
|
220
|
+
readonly role: "bindable";
|
|
221
|
+
readonly path: "property_type";
|
|
222
|
+
readonly container: "property";
|
|
223
|
+
readonly value_type: "text";
|
|
224
|
+
readonly input_group: "type";
|
|
225
|
+
readonly strength: "blocking";
|
|
226
|
+
};
|
|
227
|
+
/** Property latitude, projected from the geocode. Read-only; null until the property is geocoded. Reachable as `fact.property.latitude`. */
|
|
228
|
+
readonly lat: {
|
|
229
|
+
readonly role: "bindable";
|
|
230
|
+
readonly path: "lat";
|
|
231
|
+
readonly container: "property";
|
|
232
|
+
readonly value_type: "number";
|
|
233
|
+
readonly input_group: "address";
|
|
234
|
+
readonly strength: "blocking";
|
|
235
|
+
};
|
|
236
|
+
/** Property longitude, projected from the geocode. Read-only; null until the property is geocoded. Reachable as `fact.property.longitude`. */
|
|
237
|
+
readonly lon: {
|
|
238
|
+
readonly role: "bindable";
|
|
239
|
+
readonly path: "lon";
|
|
240
|
+
readonly container: "property";
|
|
241
|
+
readonly value_type: "number";
|
|
242
|
+
readonly input_group: "address";
|
|
243
|
+
readonly strength: "blocking";
|
|
244
|
+
};
|
|
245
|
+
/** Unit label, resolved against the primary unit (or the current row of a record list). **Writable** — the editor offers "Update everywhere". */
|
|
246
|
+
readonly unit_label: {
|
|
247
|
+
readonly role: "bindable";
|
|
248
|
+
readonly path: "units[].unit_label";
|
|
249
|
+
readonly container: "unit";
|
|
250
|
+
readonly value_type: "text";
|
|
251
|
+
readonly input_group: "units";
|
|
252
|
+
readonly strength: "optional";
|
|
253
|
+
readonly writeback: {
|
|
254
|
+
readonly kind: "unit";
|
|
255
|
+
readonly column: "unit_label";
|
|
256
|
+
};
|
|
257
|
+
};
|
|
258
|
+
/** Bedroom count, resolved against the primary unit (or the current row of a record list). **Writable** — the editor offers "Update everywhere". */
|
|
259
|
+
readonly beds: {
|
|
260
|
+
readonly role: "bindable";
|
|
261
|
+
readonly path: "units[].beds";
|
|
262
|
+
readonly container: "unit";
|
|
263
|
+
readonly value_type: "number";
|
|
264
|
+
readonly input_group: "units";
|
|
265
|
+
readonly strength: "blocking";
|
|
266
|
+
readonly writeback: {
|
|
267
|
+
readonly kind: "unit";
|
|
268
|
+
readonly column: "beds";
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
/** Bathroom count, resolved against the primary unit (or the current row of a record list). **Writable** — the editor offers "Update everywhere". */
|
|
272
|
+
readonly baths: {
|
|
273
|
+
readonly role: "bindable";
|
|
274
|
+
readonly path: "units[].baths";
|
|
275
|
+
readonly container: "unit";
|
|
276
|
+
readonly value_type: "number";
|
|
277
|
+
readonly input_group: "units";
|
|
278
|
+
readonly strength: "blocking";
|
|
279
|
+
readonly writeback: {
|
|
280
|
+
readonly kind: "unit";
|
|
281
|
+
readonly column: "baths";
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
/** Interior square footage, resolved against the primary unit (or the current row of a record list). **Writable** — the editor offers "Update everywhere". */
|
|
285
|
+
readonly sqft: {
|
|
286
|
+
readonly role: "bindable";
|
|
287
|
+
readonly path: "units[].sqft";
|
|
288
|
+
readonly container: "unit";
|
|
289
|
+
readonly value_type: "number";
|
|
290
|
+
readonly input_group: "units";
|
|
291
|
+
readonly strength: "blocking";
|
|
292
|
+
readonly writeback: {
|
|
293
|
+
readonly kind: "unit";
|
|
294
|
+
readonly column: "sqft";
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
/** Price as a flex value (digits or a text override such as "Sold"), resolved against the primary unit (or the current row of a record list). **Writable** — the editor offers "Update everywhere". */
|
|
298
|
+
readonly price: {
|
|
299
|
+
readonly role: "bindable";
|
|
300
|
+
readonly path: "units[].price";
|
|
301
|
+
readonly container: "unit";
|
|
302
|
+
readonly value_type: "text";
|
|
303
|
+
readonly input_group: "units";
|
|
304
|
+
readonly strength: "blocking";
|
|
305
|
+
readonly writeback: {
|
|
306
|
+
readonly kind: "unit";
|
|
307
|
+
readonly column: "price";
|
|
308
|
+
};
|
|
309
|
+
};
|
|
310
|
+
/** Every unit, baked verbatim as a record list. Read-only as a whole; the per-row fields under `fact.unit` stay writable. */
|
|
311
|
+
readonly units: {
|
|
312
|
+
readonly role: "bindable";
|
|
313
|
+
readonly path: "units";
|
|
314
|
+
readonly container: "property";
|
|
315
|
+
readonly value_type: "unit_list";
|
|
316
|
+
readonly input_group: "units";
|
|
317
|
+
readonly strength: "blocking";
|
|
318
|
+
readonly row: {
|
|
319
|
+
/** Durable unit identity, stable across edits — what a baked row is addressed by. */
|
|
320
|
+
readonly unit_id: {
|
|
321
|
+
readonly value_type: "text";
|
|
322
|
+
};
|
|
323
|
+
/** The unit's label, or null when the listing never asked for one. */
|
|
324
|
+
readonly unit_label: {
|
|
325
|
+
readonly value_type: "text";
|
|
326
|
+
};
|
|
327
|
+
/** Bedroom count. */
|
|
328
|
+
readonly beds: {
|
|
329
|
+
readonly value_type: "number";
|
|
330
|
+
};
|
|
331
|
+
/** Bathroom count. */
|
|
332
|
+
readonly baths: {
|
|
333
|
+
readonly value_type: "number";
|
|
334
|
+
};
|
|
335
|
+
/** Interior square footage. */
|
|
336
|
+
readonly sqft: {
|
|
337
|
+
readonly value_type: "number";
|
|
338
|
+
};
|
|
339
|
+
/** Price as a flex value — digits when numeric, the verbatim text override otherwise. */
|
|
340
|
+
readonly price: {
|
|
341
|
+
readonly value_type: "text";
|
|
342
|
+
};
|
|
343
|
+
/** Display order within the property. */
|
|
344
|
+
readonly position: {
|
|
345
|
+
readonly value_type: "number";
|
|
346
|
+
};
|
|
347
|
+
/** The floor plans assigned to this unit, in display order. */
|
|
348
|
+
readonly floor_plans: {
|
|
349
|
+
readonly value_type: "row_list";
|
|
350
|
+
readonly row: {
|
|
351
|
+
/** Identity of the floor-plan image (its upload id). */
|
|
352
|
+
readonly id: {
|
|
353
|
+
readonly value_type: "text";
|
|
354
|
+
};
|
|
355
|
+
/** The floor this plan covers, where one was detected. */
|
|
356
|
+
readonly floor_label: {
|
|
357
|
+
readonly value_type: "text";
|
|
358
|
+
};
|
|
359
|
+
/** Display order within the unit. */
|
|
360
|
+
readonly position: {
|
|
361
|
+
readonly value_type: "number";
|
|
362
|
+
};
|
|
363
|
+
};
|
|
364
|
+
};
|
|
365
|
+
};
|
|
366
|
+
};
|
|
367
|
+
/** Every comparable property — recently sold or currently listed homes similar to the subject — baked verbatim as a record list, in display order. The array itself is read-only (every market number a slide shows is a `compute()` over these rows), but the members marked writable below are edited on the canvas like a unit's. */
|
|
368
|
+
readonly comparables: {
|
|
369
|
+
readonly role: "bindable";
|
|
370
|
+
readonly path: "comparables";
|
|
371
|
+
readonly container: "property";
|
|
372
|
+
readonly value_type: "comparable_list";
|
|
373
|
+
readonly input_group: "comparables";
|
|
374
|
+
readonly strength: "blocking";
|
|
375
|
+
readonly row: {
|
|
376
|
+
/** Durable row identity, stable across edits — what a baked row is addressed by. */
|
|
377
|
+
readonly id: {
|
|
378
|
+
readonly value_type: "text";
|
|
379
|
+
};
|
|
380
|
+
/** Street line of the comparable's address ("12 Oak St"). Part of what makes a row complete. */
|
|
381
|
+
readonly address_street: {
|
|
382
|
+
readonly value_type: "text";
|
|
383
|
+
readonly required: true;
|
|
384
|
+
};
|
|
385
|
+
/** City of the comparable's address. */
|
|
386
|
+
readonly address_city: {
|
|
387
|
+
readonly value_type: "text";
|
|
388
|
+
};
|
|
389
|
+
/** State of the comparable's address. */
|
|
390
|
+
readonly address_state: {
|
|
391
|
+
readonly value_type: "text";
|
|
392
|
+
};
|
|
393
|
+
/** Postal code of the comparable's address. */
|
|
394
|
+
readonly address_postal: {
|
|
395
|
+
readonly value_type: "text";
|
|
396
|
+
};
|
|
397
|
+
/** The comparable's address as one display line, assembled at projection. */
|
|
398
|
+
readonly address: {
|
|
399
|
+
readonly value_type: "text";
|
|
400
|
+
};
|
|
401
|
+
/** Latitude of the comparable. Part of what makes a row complete — the comps map pins on it. */
|
|
402
|
+
readonly lat: {
|
|
403
|
+
readonly value_type: "number";
|
|
404
|
+
readonly required: true;
|
|
405
|
+
};
|
|
406
|
+
/** Longitude of the comparable. Part of what makes a row complete. */
|
|
407
|
+
readonly lng: {
|
|
408
|
+
readonly value_type: "number";
|
|
409
|
+
readonly required: true;
|
|
410
|
+
};
|
|
411
|
+
/** Great-circle distance from the subject property in meters, computed at projection; null while either side lacks coordinates. */
|
|
412
|
+
readonly distance_m: {
|
|
413
|
+
readonly value_type: "number";
|
|
414
|
+
};
|
|
415
|
+
/** Where the comparable stands on the market: `"sold"` when the row carries a sale date, `"active"` when it does not. Derived rather than answered, which is why it is not a completeness member; it is what disambiguates `price`. */
|
|
416
|
+
readonly status: {
|
|
417
|
+
readonly value_type: "text";
|
|
418
|
+
};
|
|
419
|
+
/** One integer in dollars. It takes two members to read: `status` says sale price versus list price, and `price_period` says total versus monthly rent. Part of what makes a row complete. **Writable** from the canvas. */
|
|
420
|
+
readonly price: {
|
|
421
|
+
readonly value_type: "number";
|
|
422
|
+
readonly required: true;
|
|
423
|
+
readonly writeback: {
|
|
424
|
+
readonly column: "price";
|
|
425
|
+
};
|
|
426
|
+
};
|
|
427
|
+
/** What `price` is denominated in: `"monthly"` on a `for_rent` property (a rent per month), `"total"` on any other listing intent. Derived at projection from the SUBJECT's listing intent rather than stored per row, and never null — print a comp's price through it or a $2,400 rent renders as a sale. */
|
|
428
|
+
readonly price_period: {
|
|
429
|
+
readonly value_type: "text";
|
|
430
|
+
};
|
|
431
|
+
/** The closing date (ISO `YYYY-MM-DD`) when sold; null otherwise. The one market fact the user answers — `status` is read off it. **Writable** from the canvas, and the write moves `status` with it. */
|
|
432
|
+
readonly sale_date: {
|
|
433
|
+
readonly value_type: "text";
|
|
434
|
+
readonly writeback: {
|
|
435
|
+
readonly column: "sale_date";
|
|
436
|
+
};
|
|
437
|
+
};
|
|
438
|
+
/** Bedroom count. **Writable** from the canvas. */
|
|
439
|
+
readonly beds: {
|
|
440
|
+
readonly value_type: "number";
|
|
441
|
+
readonly writeback: {
|
|
442
|
+
readonly column: "beds";
|
|
443
|
+
};
|
|
444
|
+
};
|
|
445
|
+
/** Bathroom count. **Writable** from the canvas. */
|
|
446
|
+
readonly baths: {
|
|
447
|
+
readonly value_type: "number";
|
|
448
|
+
readonly writeback: {
|
|
449
|
+
readonly column: "baths";
|
|
450
|
+
};
|
|
451
|
+
};
|
|
452
|
+
/** Interior square footage. **Writable** from the canvas. */
|
|
453
|
+
readonly sqft: {
|
|
454
|
+
readonly value_type: "number";
|
|
455
|
+
readonly writeback: {
|
|
456
|
+
readonly column: "sqft";
|
|
457
|
+
};
|
|
458
|
+
};
|
|
459
|
+
/** A photo of the comparable, as an absolute URL rather than an upload id — comparables are not property uploads. */
|
|
460
|
+
readonly photo_url: {
|
|
461
|
+
readonly value_type: "text";
|
|
462
|
+
};
|
|
463
|
+
/** Where the row's facts were read from — the listing's detail page. */
|
|
464
|
+
readonly source_url: {
|
|
465
|
+
readonly value_type: "text";
|
|
466
|
+
};
|
|
467
|
+
/** The name of that source ("Redfin", an MLS). */
|
|
468
|
+
readonly source_name: {
|
|
469
|
+
readonly value_type: "text";
|
|
470
|
+
};
|
|
471
|
+
};
|
|
472
|
+
};
|
|
473
|
+
/** Every contact card, baked verbatim as a record list. Read-only as a whole; the per-row fields under `fact.contact` stay writable. */
|
|
474
|
+
readonly contacts: {
|
|
475
|
+
readonly role: "bindable";
|
|
476
|
+
readonly path: "contacts";
|
|
477
|
+
readonly container: "property";
|
|
478
|
+
readonly value_type: "contact_list";
|
|
479
|
+
readonly input_group: "contacts";
|
|
480
|
+
readonly strength: "blocking";
|
|
481
|
+
readonly row: {
|
|
482
|
+
/** Stable identity of the contact card. */
|
|
483
|
+
readonly id: {
|
|
484
|
+
readonly value_type: "text";
|
|
485
|
+
};
|
|
486
|
+
/** Whether this is the property's primary contact — the one lead routing and the brand marks resolve from. */
|
|
487
|
+
readonly primary: {
|
|
488
|
+
readonly value_type: "boolean";
|
|
489
|
+
};
|
|
490
|
+
/** Contact name. */
|
|
491
|
+
readonly name: {
|
|
492
|
+
readonly value_type: "text";
|
|
493
|
+
};
|
|
494
|
+
/** Contact job title. */
|
|
495
|
+
readonly title: {
|
|
496
|
+
readonly value_type: "text";
|
|
497
|
+
};
|
|
498
|
+
/** The organization the contact belongs to. */
|
|
499
|
+
readonly org_name: {
|
|
500
|
+
readonly value_type: "text";
|
|
501
|
+
};
|
|
502
|
+
/** Contact biography. */
|
|
503
|
+
readonly bio: {
|
|
504
|
+
readonly value_type: "text";
|
|
505
|
+
};
|
|
506
|
+
/** Contact email address. */
|
|
507
|
+
readonly email: {
|
|
508
|
+
readonly value_type: "text";
|
|
509
|
+
};
|
|
510
|
+
/** Contact phone number. */
|
|
511
|
+
readonly phone: {
|
|
512
|
+
readonly value_type: "text";
|
|
513
|
+
};
|
|
514
|
+
/** The contact's address exactly as entered, on one line. */
|
|
515
|
+
readonly address: {
|
|
516
|
+
readonly value_type: "text";
|
|
517
|
+
};
|
|
518
|
+
/** Contact website URL. */
|
|
519
|
+
readonly website_url: {
|
|
520
|
+
readonly value_type: "text";
|
|
521
|
+
};
|
|
522
|
+
/** The contact's headshot, as an upload id rather than a URL. */
|
|
523
|
+
readonly avatar_upload_id: {
|
|
524
|
+
readonly value_type: "text";
|
|
525
|
+
};
|
|
526
|
+
/** The contact's logo for dark backgrounds, as an upload id rather than a URL. */
|
|
527
|
+
readonly logo_dark_upload_id: {
|
|
528
|
+
readonly value_type: "text";
|
|
529
|
+
};
|
|
530
|
+
/** The contact's logo for light backgrounds, as an upload id rather than a URL. */
|
|
531
|
+
readonly logo_light_upload_id: {
|
|
532
|
+
readonly value_type: "text";
|
|
533
|
+
};
|
|
534
|
+
/** Contact Instagram URL. */
|
|
535
|
+
readonly instagram_url: {
|
|
536
|
+
readonly value_type: "text";
|
|
537
|
+
};
|
|
538
|
+
/** Contact LinkedIn URL. */
|
|
539
|
+
readonly linkedin_url: {
|
|
540
|
+
readonly value_type: "text";
|
|
541
|
+
};
|
|
542
|
+
/** Contact X URL. */
|
|
543
|
+
readonly x_url: {
|
|
544
|
+
readonly value_type: "text";
|
|
545
|
+
};
|
|
546
|
+
/** Contact Facebook URL. */
|
|
547
|
+
readonly facebook_url: {
|
|
548
|
+
readonly value_type: "text";
|
|
549
|
+
};
|
|
550
|
+
};
|
|
551
|
+
};
|
|
552
|
+
/** Contact name, resolved against the primary contact card (or the current row of a record list). **Writable** — the editor offers "Update everywhere". */
|
|
553
|
+
readonly name: {
|
|
554
|
+
readonly role: "bindable";
|
|
555
|
+
readonly path: "contacts[].name";
|
|
556
|
+
readonly container: "contact";
|
|
557
|
+
readonly value_type: "text";
|
|
558
|
+
readonly input_group: "contacts";
|
|
559
|
+
readonly strength: "optional";
|
|
560
|
+
readonly writeback: {
|
|
561
|
+
readonly kind: "contact";
|
|
562
|
+
readonly field: "name";
|
|
563
|
+
};
|
|
564
|
+
};
|
|
565
|
+
/** Contact job title, resolved against the primary contact card (or the current row of a record list). **Writable** — the editor offers "Update everywhere". */
|
|
566
|
+
readonly title: {
|
|
567
|
+
readonly role: "bindable";
|
|
568
|
+
readonly path: "contacts[].title";
|
|
569
|
+
readonly container: "contact";
|
|
570
|
+
readonly value_type: "text";
|
|
571
|
+
readonly input_group: "contacts";
|
|
572
|
+
readonly strength: "optional";
|
|
573
|
+
readonly writeback: {
|
|
574
|
+
readonly kind: "contact";
|
|
575
|
+
readonly field: "title";
|
|
576
|
+
};
|
|
577
|
+
};
|
|
578
|
+
/** The organization the contact belongs to — the brokerage a branded deliverable paints as its wordmark. Resolved against the primary contact card (or the current row of a record list). **Writable** — the editor offers "Update everywhere". */
|
|
579
|
+
readonly org_name: {
|
|
580
|
+
readonly role: "bindable";
|
|
581
|
+
readonly path: "contacts[].org_name";
|
|
582
|
+
readonly container: "contact";
|
|
583
|
+
readonly value_type: "text";
|
|
584
|
+
readonly input_group: "contacts";
|
|
585
|
+
readonly strength: "optional";
|
|
586
|
+
readonly writeback: {
|
|
587
|
+
readonly kind: "contact";
|
|
588
|
+
readonly field: "org_name";
|
|
589
|
+
};
|
|
590
|
+
};
|
|
591
|
+
/** Contact biography, resolved against the primary contact card (or the current row of a record list). **Writable** — the editor offers "Update everywhere". */
|
|
592
|
+
readonly bio: {
|
|
593
|
+
readonly role: "bindable";
|
|
594
|
+
readonly path: "contacts[].bio";
|
|
595
|
+
readonly container: "contact";
|
|
596
|
+
readonly value_type: "text";
|
|
597
|
+
readonly input_group: "contacts";
|
|
598
|
+
readonly strength: "optional";
|
|
599
|
+
readonly writeback: {
|
|
600
|
+
readonly kind: "contact";
|
|
601
|
+
readonly field: "bio";
|
|
602
|
+
};
|
|
603
|
+
};
|
|
604
|
+
/** The contact's address exactly as entered, on one line. **Writable** — the editor offers "Update everywhere". Reachable as `fact.contact.address` — the key is prefixed because this catalog is one FLAT name space shared by all three containers, and the property already owns `address`. */
|
|
605
|
+
readonly contact_address: {
|
|
606
|
+
readonly role: "bindable";
|
|
607
|
+
readonly path: "contacts[].address";
|
|
608
|
+
readonly container: "contact";
|
|
609
|
+
readonly value_type: "text";
|
|
610
|
+
readonly input_group: "contacts";
|
|
611
|
+
readonly strength: "optional";
|
|
612
|
+
readonly writeback: {
|
|
613
|
+
readonly kind: "contact";
|
|
614
|
+
readonly field: "address";
|
|
615
|
+
};
|
|
616
|
+
};
|
|
617
|
+
/** Contact email address, resolved against the primary contact card (or the current row of a record list). **Writable** — the editor offers "Update everywhere". */
|
|
618
|
+
readonly email: {
|
|
619
|
+
readonly role: "bindable";
|
|
620
|
+
readonly path: "contacts[].email";
|
|
621
|
+
readonly container: "contact";
|
|
622
|
+
readonly value_type: "text";
|
|
623
|
+
readonly input_group: "contacts";
|
|
624
|
+
readonly strength: "optional";
|
|
625
|
+
readonly writeback: {
|
|
626
|
+
readonly kind: "contact";
|
|
627
|
+
readonly field: "email";
|
|
628
|
+
};
|
|
629
|
+
};
|
|
630
|
+
/** Contact phone number, resolved against the primary contact card (or the current row of a record list). **Writable** — the editor offers "Update everywhere". */
|
|
631
|
+
readonly phone: {
|
|
632
|
+
readonly role: "bindable";
|
|
633
|
+
readonly path: "contacts[].phone";
|
|
634
|
+
readonly container: "contact";
|
|
635
|
+
readonly value_type: "text";
|
|
636
|
+
readonly input_group: "contacts";
|
|
637
|
+
readonly strength: "optional";
|
|
638
|
+
readonly writeback: {
|
|
639
|
+
readonly kind: "contact";
|
|
640
|
+
readonly field: "phone";
|
|
641
|
+
};
|
|
642
|
+
};
|
|
643
|
+
/** Contact website URL, resolved against the primary contact card (or the current row of a record list). **Writable** — the editor offers "Update everywhere". */
|
|
644
|
+
readonly website: {
|
|
645
|
+
readonly role: "bindable";
|
|
646
|
+
readonly path: "contacts[].website_url";
|
|
647
|
+
readonly container: "contact";
|
|
648
|
+
readonly value_type: "text";
|
|
649
|
+
readonly input_group: "contacts";
|
|
650
|
+
readonly strength: "optional";
|
|
651
|
+
readonly writeback: {
|
|
652
|
+
readonly kind: "contact";
|
|
653
|
+
readonly field: "website";
|
|
654
|
+
};
|
|
655
|
+
};
|
|
656
|
+
/** Contact Instagram URL, resolved against the primary contact card (or the current row of a record list). **Writable** — the editor offers "Update everywhere". */
|
|
657
|
+
readonly instagram: {
|
|
658
|
+
readonly role: "bindable";
|
|
659
|
+
readonly path: "contacts[].instagram_url";
|
|
660
|
+
readonly container: "contact";
|
|
661
|
+
readonly value_type: "text";
|
|
662
|
+
readonly input_group: "contacts";
|
|
663
|
+
readonly strength: "optional";
|
|
664
|
+
readonly writeback: {
|
|
665
|
+
readonly kind: "contact";
|
|
666
|
+
readonly field: "socials.instagram";
|
|
667
|
+
};
|
|
668
|
+
};
|
|
669
|
+
/** Contact LinkedIn URL, resolved against the primary contact card (or the current row of a record list). **Writable** — the editor offers "Update everywhere". */
|
|
670
|
+
readonly linkedin: {
|
|
671
|
+
readonly role: "bindable";
|
|
672
|
+
readonly path: "contacts[].linkedin_url";
|
|
673
|
+
readonly container: "contact";
|
|
674
|
+
readonly value_type: "text";
|
|
675
|
+
readonly input_group: "contacts";
|
|
676
|
+
readonly strength: "optional";
|
|
677
|
+
readonly writeback: {
|
|
678
|
+
readonly kind: "contact";
|
|
679
|
+
readonly field: "socials.linkedin";
|
|
680
|
+
};
|
|
681
|
+
};
|
|
682
|
+
/** Contact X URL, resolved against the primary contact card (or the current row of a record list). **Writable** — the editor offers "Update everywhere". */
|
|
683
|
+
readonly x: {
|
|
684
|
+
readonly role: "bindable";
|
|
685
|
+
readonly path: "contacts[].x_url";
|
|
686
|
+
readonly container: "contact";
|
|
687
|
+
readonly value_type: "text";
|
|
688
|
+
readonly input_group: "contacts";
|
|
689
|
+
readonly strength: "optional";
|
|
690
|
+
readonly writeback: {
|
|
691
|
+
readonly kind: "contact";
|
|
692
|
+
readonly field: "socials.x";
|
|
693
|
+
};
|
|
694
|
+
};
|
|
695
|
+
/** Contact Facebook URL, resolved against the primary contact card (or the current row of a record list). **Writable** — the editor offers "Update everywhere". */
|
|
696
|
+
readonly facebook: {
|
|
697
|
+
readonly role: "bindable";
|
|
698
|
+
readonly path: "contacts[].facebook_url";
|
|
699
|
+
readonly container: "contact";
|
|
700
|
+
readonly value_type: "text";
|
|
701
|
+
readonly input_group: "contacts";
|
|
702
|
+
readonly strength: "optional";
|
|
703
|
+
readonly writeback: {
|
|
704
|
+
readonly kind: "contact";
|
|
705
|
+
readonly field: "socials.facebook";
|
|
706
|
+
};
|
|
707
|
+
};
|
|
708
|
+
/** Contact headshot, resolved against the primary contact card (or the current row of a record list). Read-only; belongs on an `image` slot. */
|
|
709
|
+
readonly headshot: {
|
|
710
|
+
readonly role: "bindable";
|
|
711
|
+
readonly path: "contacts[].avatar_upload_id";
|
|
712
|
+
readonly container: "contact";
|
|
713
|
+
readonly value_type: "image";
|
|
714
|
+
readonly input_group: "contacts";
|
|
715
|
+
readonly strength: "optional";
|
|
716
|
+
readonly image: true;
|
|
717
|
+
};
|
|
718
|
+
/** Contact logo for dark backgrounds, falling back to a silhouette of the light logo. Read-only; belongs on an `image` slot. */
|
|
719
|
+
readonly logo_dark: {
|
|
720
|
+
readonly role: "bindable";
|
|
721
|
+
readonly path: "contacts[].logo_dark_upload_id";
|
|
722
|
+
readonly container: "contact";
|
|
723
|
+
readonly value_type: "image";
|
|
724
|
+
readonly input_group: "contacts";
|
|
725
|
+
readonly strength: "optional";
|
|
726
|
+
readonly image: true;
|
|
727
|
+
};
|
|
728
|
+
/** Contact logo for light backgrounds, falling back to a silhouette of the dark logo. Read-only; belongs on an `image` slot. */
|
|
729
|
+
readonly logo_light: {
|
|
730
|
+
readonly role: "bindable";
|
|
731
|
+
readonly path: "contacts[].logo_light_upload_id";
|
|
732
|
+
readonly container: "contact";
|
|
733
|
+
readonly value_type: "image";
|
|
734
|
+
readonly input_group: "contacts";
|
|
735
|
+
readonly strength: "optional";
|
|
736
|
+
readonly image: true;
|
|
737
|
+
};
|
|
738
|
+
/** The property's always-on prose description, the substrate every text decision is grounded in. */
|
|
739
|
+
readonly narrative: {
|
|
740
|
+
readonly role: "readable";
|
|
741
|
+
readonly path: "narrative";
|
|
742
|
+
readonly value_type: "object";
|
|
743
|
+
readonly input_group: "describe";
|
|
744
|
+
readonly strength: "blocking";
|
|
745
|
+
readonly fields: {
|
|
746
|
+
/** The description itself. */
|
|
747
|
+
readonly description: {
|
|
748
|
+
readonly value_type: "text";
|
|
749
|
+
};
|
|
750
|
+
};
|
|
751
|
+
};
|
|
752
|
+
/** Every property photo, in candidate order. */
|
|
753
|
+
readonly photos: {
|
|
754
|
+
readonly role: "readable";
|
|
755
|
+
readonly path: "photos";
|
|
756
|
+
readonly value_type: "row_list";
|
|
757
|
+
readonly input_group: "uploads";
|
|
758
|
+
readonly strength: "blocking";
|
|
759
|
+
readonly row: {
|
|
760
|
+
/** Identity of the photo. */
|
|
761
|
+
readonly id: {
|
|
762
|
+
readonly value_type: "text";
|
|
763
|
+
};
|
|
764
|
+
/** What the classifier recognized in the photo — the vocabulary image decisions rank on. */
|
|
765
|
+
readonly tags: {
|
|
766
|
+
readonly value_type: "text_list";
|
|
767
|
+
};
|
|
768
|
+
/** The photo's caption, where it has one. */
|
|
769
|
+
readonly caption: {
|
|
770
|
+
readonly value_type: "text";
|
|
771
|
+
};
|
|
772
|
+
};
|
|
773
|
+
};
|
|
774
|
+
/** Every video on the property — hosted uploads and pasted provider links alike, in the order they were added. */
|
|
775
|
+
readonly videos: {
|
|
776
|
+
readonly role: "readable";
|
|
777
|
+
readonly path: "videos";
|
|
778
|
+
readonly value_type: "row_list";
|
|
779
|
+
readonly input_group: "uploads";
|
|
780
|
+
readonly strength: "optional";
|
|
781
|
+
readonly row: {
|
|
782
|
+
/** Identity of the video. */
|
|
783
|
+
readonly id: {
|
|
784
|
+
readonly value_type: "text";
|
|
785
|
+
};
|
|
786
|
+
/** Where the bytes live: `"upload"` for a rendition served directly, `"link"` for a provider embed. */
|
|
787
|
+
readonly source: {
|
|
788
|
+
readonly value_type: "text";
|
|
789
|
+
};
|
|
790
|
+
/** What the classifier recognized in the video. Always empty for a link — no classifier runs on one. */
|
|
791
|
+
readonly tags: {
|
|
792
|
+
readonly value_type: "text_list";
|
|
793
|
+
};
|
|
794
|
+
/** The video's caption; for a link, the provider's title until someone corrects it. */
|
|
795
|
+
readonly caption: {
|
|
796
|
+
readonly value_type: "text";
|
|
797
|
+
};
|
|
798
|
+
/** The provider's own description, where it publishes one. Null for an upload. */
|
|
799
|
+
readonly description: {
|
|
800
|
+
readonly value_type: "text";
|
|
801
|
+
};
|
|
802
|
+
/** Length in milliseconds. Null means UNKNOWN, never short. */
|
|
803
|
+
readonly duration_ms: {
|
|
804
|
+
readonly value_type: "number";
|
|
805
|
+
};
|
|
806
|
+
/** The pasted link, exactly as it was given. Null for an upload. */
|
|
807
|
+
readonly url: {
|
|
808
|
+
readonly value_type: "text";
|
|
809
|
+
};
|
|
810
|
+
/** Which provider hosts the link ("youtube", "vimeo"). Null for an upload. */
|
|
811
|
+
readonly provider: {
|
|
812
|
+
readonly value_type: "text";
|
|
813
|
+
};
|
|
814
|
+
};
|
|
815
|
+
};
|
|
816
|
+
/** Every 3D tour on the property, in a stable order. */
|
|
817
|
+
readonly tours: {
|
|
818
|
+
readonly role: "readable";
|
|
819
|
+
readonly path: "tours";
|
|
820
|
+
readonly value_type: "row_list";
|
|
821
|
+
readonly input_group: "uploads";
|
|
822
|
+
readonly strength: "optional";
|
|
823
|
+
readonly row: {
|
|
824
|
+
/** Identity of the tour. */
|
|
825
|
+
readonly id: {
|
|
826
|
+
readonly value_type: "text";
|
|
827
|
+
};
|
|
828
|
+
/** The tour link, exactly as it was given. */
|
|
829
|
+
readonly url: {
|
|
830
|
+
readonly value_type: "text";
|
|
831
|
+
};
|
|
832
|
+
/** Which provider hosts the tour ("matterport", "biganto"). */
|
|
833
|
+
readonly provider: {
|
|
834
|
+
readonly value_type: "text";
|
|
835
|
+
};
|
|
836
|
+
};
|
|
837
|
+
};
|
|
838
|
+
/** Every floor-plan image on the property, whichever units it was assigned to. */
|
|
839
|
+
readonly floor_plans: {
|
|
840
|
+
readonly role: "readable";
|
|
841
|
+
readonly path: "floor_plans";
|
|
842
|
+
readonly value_type: "row_list";
|
|
843
|
+
readonly input_group: "uploads";
|
|
844
|
+
readonly strength: "optional";
|
|
845
|
+
readonly row: {
|
|
846
|
+
/** Identity of the floor-plan image (its upload id). */
|
|
847
|
+
readonly id: {
|
|
848
|
+
readonly value_type: "text";
|
|
849
|
+
};
|
|
850
|
+
/** Which units this plan was assigned to — empty when it is building-wide. */
|
|
851
|
+
readonly unit_assignments: {
|
|
852
|
+
readonly value_type: "row_list";
|
|
853
|
+
readonly row: {
|
|
854
|
+
/** The assigned unit's label. */
|
|
855
|
+
readonly unit_label: {
|
|
856
|
+
readonly value_type: "text";
|
|
857
|
+
};
|
|
858
|
+
/** The floor this plan covers for that unit. */
|
|
859
|
+
readonly floor_label: {
|
|
860
|
+
readonly value_type: "text";
|
|
861
|
+
};
|
|
862
|
+
/** Display order within that unit. */
|
|
863
|
+
readonly position: {
|
|
864
|
+
readonly value_type: "number";
|
|
865
|
+
};
|
|
866
|
+
};
|
|
867
|
+
};
|
|
868
|
+
};
|
|
869
|
+
};
|
|
870
|
+
/** Every attachable document on the property — the files a visitor opens or downloads. */
|
|
871
|
+
readonly documents: {
|
|
872
|
+
readonly role: "readable";
|
|
873
|
+
readonly path: "documents";
|
|
874
|
+
readonly value_type: "row_list";
|
|
875
|
+
readonly input_group: "uploads";
|
|
876
|
+
readonly strength: "optional";
|
|
877
|
+
readonly row: {
|
|
878
|
+
/** Identity of the document. */
|
|
879
|
+
readonly id: {
|
|
880
|
+
readonly value_type: "text";
|
|
881
|
+
};
|
|
882
|
+
/** The name it was uploaded under, and the name delivery serves it as. */
|
|
883
|
+
readonly filename: {
|
|
884
|
+
readonly value_type: "text";
|
|
885
|
+
};
|
|
886
|
+
/** The file's media type — the format, which a filename may not carry. */
|
|
887
|
+
readonly mime: {
|
|
888
|
+
readonly value_type: "text";
|
|
889
|
+
};
|
|
890
|
+
/** Prose distilled out of the file, empty where there is none. */
|
|
891
|
+
readonly notes: {
|
|
892
|
+
readonly value_type: "text";
|
|
893
|
+
};
|
|
894
|
+
};
|
|
895
|
+
};
|
|
896
|
+
/** The prose distilled from uploaded documents, one entry per document — always-on grounding, where `documents` is the files themselves. */
|
|
897
|
+
readonly document_notes: {
|
|
898
|
+
readonly role: "readable";
|
|
899
|
+
readonly path: "document_notes";
|
|
900
|
+
readonly value_type: "row_list";
|
|
901
|
+
readonly input_group: "uploads";
|
|
902
|
+
readonly strength: "optional";
|
|
903
|
+
readonly row: {
|
|
904
|
+
/** Which upload the notes were distilled from. */
|
|
905
|
+
readonly upload_id: {
|
|
906
|
+
readonly value_type: "text";
|
|
907
|
+
};
|
|
908
|
+
/** The distilled notes. */
|
|
909
|
+
readonly notes: {
|
|
910
|
+
readonly value_type: "text";
|
|
911
|
+
};
|
|
912
|
+
};
|
|
913
|
+
};
|
|
914
|
+
/** The primary unit — the lowest-positioned one — or null when the property has no units. */
|
|
915
|
+
readonly unit: {
|
|
916
|
+
readonly role: "readable";
|
|
917
|
+
readonly path: "units";
|
|
918
|
+
readonly value_type: "row";
|
|
919
|
+
readonly primary_of: "units";
|
|
920
|
+
};
|
|
921
|
+
/** The primary contact card, or null when the property has no contacts. */
|
|
922
|
+
readonly contact: {
|
|
923
|
+
readonly role: "readable";
|
|
924
|
+
readonly path: "contacts";
|
|
925
|
+
readonly value_type: "row";
|
|
926
|
+
readonly primary_of: "contacts";
|
|
927
|
+
};
|
|
928
|
+
/** The current calendar year. Ambient — read at derive time, not from any fact. */
|
|
929
|
+
readonly year: {
|
|
930
|
+
readonly role: "readable";
|
|
931
|
+
readonly path: null;
|
|
932
|
+
readonly value_type: "number";
|
|
933
|
+
readonly ambient: true;
|
|
934
|
+
};
|
|
935
|
+
};
|
|
936
|
+
/** A fact graph entry's name — a key of `FACT_GRAPH`. */
|
|
937
|
+
type FactGraphName = keyof typeof FACT_GRAPH;
|
|
938
|
+
/**
|
|
939
|
+
* Author-facing aliases over the registry's flat key space, per container —
|
|
940
|
+
* alias name → the registry key it projects. One table serves every derived
|
|
941
|
+
* fact surface (`fact.*` and the derive-time view).
|
|
942
|
+
*/
|
|
943
|
+
declare const FACT_PROJECTIONS: {
|
|
944
|
+
readonly property: {
|
|
945
|
+
/** Property latitude, projected from the geocode. Read-only; null until the property is geocoded. */
|
|
946
|
+
readonly latitude: "lat";
|
|
947
|
+
/** Property longitude, projected from the geocode. Read-only; null until the property is geocoded. */
|
|
948
|
+
readonly longitude: "lon";
|
|
949
|
+
};
|
|
950
|
+
readonly contact: {
|
|
951
|
+
/** The primary contact's address exactly as entered, on one line. **Writable** — the editor offers "Update everywhere". */
|
|
952
|
+
readonly address: "contact_address";
|
|
953
|
+
};
|
|
954
|
+
};
|
|
955
|
+
/** The alias table's own type — consumed by both derived fact surfaces. */
|
|
956
|
+
type FactProjections = typeof FACT_PROJECTIONS;
|
|
957
|
+
/**
|
|
958
|
+
* The bindable slice of a fact graph, each entry narrowed to its `SourceFieldDescriptor` members.
|
|
959
|
+
*
|
|
960
|
+
* @remarks
|
|
961
|
+
* Key remapping rather than a filter over `Record<string, …>`: it is what
|
|
962
|
+
* carries every entry's own doc sentence through to the binding catalog and on
|
|
963
|
+
* into the `fact.*` namespace, where hovering a binding is how an author reads
|
|
964
|
+
* it.
|
|
965
|
+
*
|
|
966
|
+
* The conditional axis is dropped alongside the other registry-only members:
|
|
967
|
+
* nothing about resolving or editing a bound value depends on which question
|
|
968
|
+
* produced the fact, and a descriptor claiming members the projection does not
|
|
969
|
+
* copy would be a lie the type system would happily tell.
|
|
970
|
+
*/
|
|
971
|
+
type BindableFacts<G> = { [K in keyof G as G[K] extends {
|
|
972
|
+
role: "bindable";
|
|
973
|
+
} ? K : never]: Omit<G[K], "role" | "path" | "fields" | "row" | "input_group" | "strength">; };
|
|
974
|
+
/**
|
|
975
|
+
* The catalog of every canonical field a slot's `direct` source may bind to — property, unit, and contact scalars, plus the read-only array sources (`units`, `contacts`).
|
|
976
|
+
*
|
|
977
|
+
* @remarks
|
|
978
|
+
* Not a list of its own: it is exactly the bindable half of the property fact
|
|
979
|
+
* graph, stripped to the descriptor a resolver and the editor read. Each entry
|
|
980
|
+
* declares its container, value type, and (if writable) writeback target, and
|
|
981
|
+
* carries its doc sentence through to `fact.*` — where the fact namespace
|
|
982
|
+
* reference lists every binding this yields, with that prose.
|
|
983
|
+
* Computed/aggregated values are never here — a section authors those with
|
|
984
|
+
* `compute()`.
|
|
985
|
+
*/
|
|
986
|
+
declare const SOURCE_FIELDS: BindableFacts<typeof FACT_GRAPH>;
|
|
987
|
+
/** A canonical field name a `direct` source may bind to — a key of `SOURCE_FIELDS`. */
|
|
988
|
+
type SourceFieldName = keyof typeof SOURCE_FIELDS;
|
|
989
|
+
/**
|
|
990
|
+
* The writable subset of `SourceFieldName` — every catalog entry that carries a
|
|
991
|
+
* `writeback` target. A slot binding one of these must declare
|
|
992
|
+
* `writeback: true` or `writeback: false`; on any other entry only
|
|
993
|
+
* `writeback: false` is representable.
|
|
994
|
+
*/
|
|
995
|
+
type WritableSourceFieldName = { [F in SourceFieldName]: (typeof SOURCE_FIELDS)[F] extends {
|
|
996
|
+
writeback: WritebackTarget;
|
|
997
|
+
} ? F : never; }[SourceFieldName];
|
|
998
|
+
/**
|
|
999
|
+
* The registry of fact array fields a slot may be collection-bound to (a slot is collection-bound iff `source.kind === "direct"` and `source.field` is a key here).
|
|
1000
|
+
*
|
|
1001
|
+
* @remarks
|
|
1002
|
+
* The single home for per-kind mechanics; other layers implement their
|
|
1003
|
+
* operations keyed by these entries rather than restating them. `idKey`
|
|
1004
|
+
* names the stable canonical row id (used for merge, markers, and editor
|
|
1005
|
+
* identity). `cap`/`min`, when present, are the API-enforced membership
|
|
1006
|
+
* ceiling/floor. `ownership` is the property-owned vs. library-shared
|
|
1007
|
+
* discriminator that gates writeback/fan-out strategy per layer — never a
|
|
1008
|
+
* shared physical table.
|
|
1009
|
+
*/
|
|
1010
|
+
declare const COLLECTIONS: {
|
|
1011
|
+
readonly units: {
|
|
1012
|
+
readonly idKey: "unit_id";
|
|
1013
|
+
readonly ownership: "property";
|
|
1014
|
+
};
|
|
1015
|
+
readonly contacts: {
|
|
1016
|
+
readonly idKey: "id";
|
|
1017
|
+
readonly cap: 12;
|
|
1018
|
+
readonly min: 1;
|
|
1019
|
+
readonly ownership: "library";
|
|
1020
|
+
};
|
|
1021
|
+
readonly comparables: {
|
|
1022
|
+
readonly idKey: "id";
|
|
1023
|
+
readonly ownership: "property";
|
|
1024
|
+
};
|
|
1025
|
+
};
|
|
1026
|
+
/** A collection-bindable field name — one of `COLLECTIONS`' keys. */
|
|
1027
|
+
type CollectionField = keyof typeof COLLECTIONS;
|
|
1028
|
+
/**
|
|
1029
|
+
* The single source of truth for "what kind of link is this URL". A `url`
|
|
1030
|
+
* slot names one of these — or a single provider id — in its `accepts`
|
|
1031
|
+
* field; `acceptsLink()` enforces it.
|
|
1032
|
+
*/
|
|
1033
|
+
declare const LINK_KINDS: readonly ["tour", "video", "social", "listing", "file", "map"];
|
|
1034
|
+
/** A link kind — one of `LINK_KINDS`. */
|
|
1035
|
+
type LinkKind = (typeof LINK_KINDS)[number];
|
|
1036
|
+
/**
|
|
1037
|
+
* The catalog of recognized link providers, keyed by provider id. Each
|
|
1038
|
+
* entry's `pattern` (and optional `path`) classifies a pasted URL;
|
|
1039
|
+
* `matchLinkProvider` walks this catalog in declaration order.
|
|
1040
|
+
*/
|
|
1041
|
+
declare const LINK_PROVIDERS: {
|
|
1042
|
+
readonly matterport: {
|
|
1043
|
+
readonly kind: "tour";
|
|
1044
|
+
readonly label: "Matterport";
|
|
1045
|
+
readonly pattern: RegExp;
|
|
1046
|
+
readonly strategy: "api";
|
|
1047
|
+
};
|
|
1048
|
+
readonly biganto: {
|
|
1049
|
+
readonly kind: "tour";
|
|
1050
|
+
readonly label: "Biganto";
|
|
1051
|
+
readonly pattern: RegExp;
|
|
1052
|
+
readonly strategy: "opengraph";
|
|
1053
|
+
};
|
|
1054
|
+
readonly youtube: {
|
|
1055
|
+
readonly kind: "video";
|
|
1056
|
+
readonly label: "YouTube";
|
|
1057
|
+
readonly pattern: RegExp;
|
|
1058
|
+
readonly strategy: "oembed";
|
|
1059
|
+
};
|
|
1060
|
+
readonly vimeo: {
|
|
1061
|
+
readonly kind: "video";
|
|
1062
|
+
readonly label: "Vimeo";
|
|
1063
|
+
readonly pattern: RegExp;
|
|
1064
|
+
readonly strategy: "oembed";
|
|
1065
|
+
};
|
|
1066
|
+
readonly zillow: {
|
|
1067
|
+
readonly kind: "listing";
|
|
1068
|
+
readonly label: "Zillow";
|
|
1069
|
+
readonly pattern: RegExp;
|
|
1070
|
+
readonly strategy: "none";
|
|
1071
|
+
};
|
|
1072
|
+
readonly redfin: {
|
|
1073
|
+
readonly kind: "listing";
|
|
1074
|
+
readonly label: "Redfin";
|
|
1075
|
+
readonly pattern: RegExp;
|
|
1076
|
+
readonly strategy: "none";
|
|
1077
|
+
};
|
|
1078
|
+
readonly dropbox: {
|
|
1079
|
+
readonly kind: "file";
|
|
1080
|
+
readonly label: "Dropbox";
|
|
1081
|
+
readonly pattern: RegExp;
|
|
1082
|
+
readonly strategy: "none";
|
|
1083
|
+
};
|
|
1084
|
+
readonly drive: {
|
|
1085
|
+
readonly kind: "file";
|
|
1086
|
+
readonly label: "Google Drive";
|
|
1087
|
+
readonly pattern: RegExp;
|
|
1088
|
+
readonly strategy: "none";
|
|
1089
|
+
};
|
|
1090
|
+
readonly maps: {
|
|
1091
|
+
readonly kind: "map";
|
|
1092
|
+
readonly label: "Google Maps";
|
|
1093
|
+
readonly pattern: RegExp;
|
|
1094
|
+
readonly path: RegExp;
|
|
1095
|
+
readonly strategy: "none";
|
|
1096
|
+
};
|
|
1097
|
+
};
|
|
1098
|
+
/** A registered link provider's id — a key of `LINK_PROVIDERS`. */
|
|
1099
|
+
type LinkProviderId = keyof typeof LINK_PROVIDERS;
|
|
1100
|
+
/**
|
|
1101
|
+
* Where a video's bytes live: `"upload"` is a transcoded rendition served directly; `"link"` is a provider embed whose bytes are never served locally.
|
|
1102
|
+
*
|
|
1103
|
+
* @remarks
|
|
1104
|
+
* Deliberately not spelled like `LinkStrategy` (`"oembed"` | `"api"` |
|
|
1105
|
+
* `"opengraph"` | `"none"`), which means HOW a provider's metadata was
|
|
1106
|
+
* obtained, an orthogonal concern.
|
|
1107
|
+
*/
|
|
1108
|
+
declare const VIDEO_SOURCES: readonly ["upload", "link"];
|
|
1109
|
+
/** A video's storage/origin kind — one of `VIDEO_SOURCES`. */
|
|
1110
|
+
type VideoSource = (typeof VIDEO_SOURCES)[number];
|
|
1111
|
+
//#endregion
|
|
1112
|
+
export { BindableFacts, COLLECTIONS, CollectionField, FACT_GRAPH, FACT_PROJECTIONS, FactGraphName, FactMemberDescriptor, FactProjections, FactShapeDescriptor, FactValueType, LINK_KINDS, LINK_PROVIDERS, LinkKind, LinkProviderId, REFERRAL_FIELDS, ReferralField, RowMemberWriteback, SOURCE_FIELDS, SOURCE_FILTERS, SourceFieldContainer, SourceFieldName, SourceFieldValueType, SourceFilter, VIDEO_SOURCES, VideoSource, WritableSourceFieldName, WritebackTarget };
|