@stndrds/schema 1.0.0-alpha.349 → 1.0.0-alpha.350
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/dist/{all-DZp7BWOq.d.ts → all-CPMOHYla.d.ts} +8 -8
- package/dist/{all-CnoQ40WJ.d.mts → all-Dk8PLu1y.d.mts} +8 -8
- package/dist/attributes-C2gm0hUJ.d.ts +684 -0
- package/dist/attributes-mMmH-WOx.d.mts +684 -0
- package/dist/{checkbox-De7-FSiU.d.mts → checkbox-Ce8gAyQf.d.ts} +2 -2
- package/dist/{checkbox-Cli_fh_9.d.ts → checkbox-DO6Mkloc.d.mts} +2 -2
- package/dist/{date-CxGxPeHR.d.mts → date-CMS-GYRM.d.mts} +2 -2
- package/dist/{date-CJGbHQZF.d.ts → date-DikDGfre.d.ts} +2 -2
- package/dist/exceptions-DxzT8POW.d.mts +554 -0
- package/dist/exceptions-DxzT8POW.d.ts +554 -0
- package/dist/exceptions.d.mts +2 -2
- package/dist/exceptions.d.ts +2 -2
- package/dist/exceptions.js +1 -2
- package/dist/exceptions.mjs +1 -2
- package/dist/{index-Dz6tbe0o.d.ts → index-B-mUjnh9.d.mts} +3 -6
- package/dist/{index-C9whsQlG.d.ts → index-BL7EA39F.d.ts} +1 -1
- package/dist/{index-fWrEgqge.d.mts → index-BV4yNsr7.d.mts} +1 -1
- package/dist/{index-UancE_wI.d.ts → index-CRtiKFTH.d.ts} +1 -1
- package/dist/{index-DqfX-ct_.d.mts → index-D26ob_vF.d.mts} +1 -1
- package/dist/{index-DRfeDI4f.d.mts → index-D9OhYX-t.d.ts} +3 -6
- package/dist/index.d.mts +49 -96
- package/dist/index.d.ts +49 -96
- package/dist/index.js +3 -3
- package/dist/index.mjs +7 -7
- package/dist/{number-DJ-nhMMq.d.mts → number-Ck0PPSkK.d.ts} +2 -2
- package/dist/{number-BtJHcFCQ.d.ts → number-r6bOZ9jd.d.mts} +2 -2
- package/dist/{text-RUwIi6jM.d.mts → text-B1Vwj7fS.d.mts} +2 -2
- package/dist/{text-qHaUKcUU.d.ts → text-DHg2cmFd.d.ts} +2 -2
- package/dist/utils-Du-He6Ct.d.ts +163 -0
- package/dist/utils-r53z9KnF.d.mts +163 -0
- package/dist/utils.d.mts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/validation/all.d.mts +4 -4
- package/dist/validation/all.d.ts +4 -4
- package/dist/validation/all.js +1 -1
- package/dist/validation/all.mjs +1 -1
- package/dist/validation/complex/currency.d.mts +2 -2
- package/dist/validation/complex/currency.d.ts +2 -2
- package/dist/validation/complex/location.d.mts +2 -2
- package/dist/validation/complex/location.d.ts +2 -2
- package/dist/validation/complex/phone.d.mts +2 -2
- package/dist/validation/complex/phone.d.ts +2 -2
- package/dist/validation/complex/relation.d.mts +2 -2
- package/dist/validation/complex/relation.d.ts +2 -2
- package/dist/validation/complex/richtext.d.mts +2 -2
- package/dist/validation/complex/richtext.d.ts +2 -2
- package/dist/validation/complex/select.d.mts +2 -2
- package/dist/validation/complex/select.d.ts +2 -2
- package/dist/validation/complex/user.d.mts +2 -2
- package/dist/validation/complex/user.d.ts +2 -2
- package/dist/validation/computed/formula.d.mts +2 -2
- package/dist/validation/computed/formula.d.ts +2 -2
- package/dist/validation/computed/rollup.d.mts +2 -2
- package/dist/validation/computed/rollup.d.ts +2 -2
- package/dist/validation/config/index.d.mts +1 -1
- package/dist/validation/config/index.d.ts +1 -1
- package/dist/validation/core/index.d.mts +1 -1
- package/dist/validation/core/index.d.ts +1 -1
- package/dist/validation/object/index.d.mts +1 -1
- package/dist/validation/object/index.d.ts +1 -1
- package/dist/validation/primitives/checkbox.d.mts +1 -1
- package/dist/validation/primitives/checkbox.d.ts +1 -1
- package/dist/validation/primitives/date.d.mts +1 -1
- package/dist/validation/primitives/date.d.ts +1 -1
- package/dist/validation/primitives/number.d.mts +1 -1
- package/dist/validation/primitives/number.d.ts +1 -1
- package/dist/validation/primitives/text.d.mts +1 -1
- package/dist/validation/primitives/text.d.ts +1 -1
- package/dist/view-config.schema-QmnihdGp.js +2 -0
- package/dist/view-config.schema-c8LvH8WE.mjs +2 -0
- package/package.json +2 -2
- package/dist/exceptions-B2EKDci0.d.mts +0 -1460
- package/dist/exceptions-B2EKDci0.d.ts +0 -1460
- package/dist/view-config.schema-PCAznd98.mjs +0 -2
- package/dist/view-config.schema-VEoY_VAd.js +0 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
3
|
-
import { $ as
|
|
4
|
-
import {
|
|
5
|
-
import { S as
|
|
6
|
-
import {
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
2
|
+
import { A as SearchBackendError, B as isNotFoundError, C as RepositoryError, D as SchemaError, E as RoleNotFoundError, F as SyncError, G as isValidationError, H as isProtectedResourceError, I as SystemEntityImmutableError, L as ValidationError, M as StorageOperation, N as SyncCascadeError, O as SchemaErrorCode, P as SyncConflictError, R as ValidationErrorDetail, S as RecordReferencedError, T as ReservedObjectNameError, U as isRecordReferencedError, V as isObjectReferencedError, W as isSchemaError, _ as RealtimeDeliveryError, a as AttributeUsage, b as RecordNotFoundError, c as ForbiddenError, d as NotImplementedError, f as ObjectNotFoundError, g as ProtectedRoleError, h as ProtectedResourceError, i as AttributeNotFoundError, j as StorageError, k as SchemaPlanNotFoundError, l as MemoryNotFoundError, m as OrphanSystemAttributeError, n as AmbiguousSchemaChangeError, o as ConcurrentModificationError, p as ObjectReferencedError, r as AttributeInUseError, s as DuplicateError, t as AccessDeniedError, u as NotFoundError, v as RealtimeRateLimitedError, w as RepositoryOperation, x as RecordReference, y as RealtimeSubscriptionError, z as isAttributeInUseError } from "./exceptions-DxzT8POW.js";
|
|
3
|
+
import { $ as COMPUTED_FUNCTION_METADATA, A as RichTextAttribute, At as ComputedFormulaAstNode, B as UserAttribute, C as NumberUnit, Ct as isComputedFunctionName, D as RELATION_TARGET_ANY, Dt as ComputedPlan, E as PhoneAttribute, Et as ComputedOptionsSource, F as SingleRelationAttribute, Ft as ComputedFormulaParseError, G as isUniversalRelation, H as inferInverseCardinality, I as StatusAttribute, It as ComputedFormulaPathNode, J as PropertyAttribute, K as relationTargetsOf, L as StatusGroup, Lt as parseComputedFormula, M as RollupAttribute, Mt as ComputedFormulaBinaryOperator, N as RollupFunction, Nt as ComputedFormulaCallNode, O as RelationAttribute, Ot as ComputedReturnType, P as SelectAttribute, Pt as ComputedFormulaLiteralNode, Q as resolvePropertyDefinitions, R as TextAttribute, S as NumberAttribute, St as ComputedFunctionSignature, T as Phone, Tt as ComputedFieldKind, U as isAttributeSortable, V as UserReferenceType, W as isBilateralRelation, X as PropertyType, Y as PropertySchema, Z as hasOptions, _ as Location, _t as assertAcyclicComputedDependencies, a as BaseAttribute, at as evaluateComputedFormulaWithResult, b as MultiRelationAttribute, bt as COMPUTED_FUNCTION_NAMES, c as Currency, ct as compileRollupAttribute, d as DateFormat, dt as CompileComputedFormulaInput, et as ComputedFunctionCategory, f as DateRangeValue, ft as ComputedCompileAttribute, g as FormulaReturnType, gt as ComputedFormulaCompileError, h as FormulaAttribute, ht as ComputedDependencyGraphNode, i as AttributeType, it as evaluateComputedFormula, j as RichtextAttribute, jt as ComputedFormulaBinaryNode, k as RelationTarget, kt as ComputedValueType, l as CurrencyAttribute, lt as inferRollupReturnType, m as DocumentAttribute, mt as ComputedCompileSchema, n as Attribute, nt as ComputedFormulaResult, o as BilateralConfig, ot as formatComputedResult, p as DateValue, pt as ComputedCompileObject, q as OptionPropertyAttribute, r as AttributeGroup, rt as evaluateComputedAst, s as CheckboxAttribute, st as isPlainRecord, t as ATTRIBUTE_TYPES, tt as ComputedFunctionMetadata, u as DateAttribute, ut as rollupToFormulaExpression, v as LocationAttribute, vt as compileComputedFormula, w as Option, wt as ComputedDependency, x as MultiselectAttribute, xt as ComputedFunctionName, y as LocationGranularity, yt as COMPUTED_FUNCTIONS, z as TimeFormat } from "./attributes-C2gm0hUJ.js";
|
|
4
|
+
import { a as asUserId, c as indexBy, d as sameStableValue, f as serializeCanonicalJson, i as asTenantId, l as NonJsonValueError, n as UserId, o as deepEqual, p as serializeStableJson, r as Uuid, s as generateId, t as TenantId, u as canonicalStringify } from "./utils-Du-He6Ct.js";
|
|
5
|
+
import { $ as RelativeDateValue, A as FormDensity, B as DynamicValue, C as ContentPlacement, D as DocumentsContentDefinition, E as CustomContentDefinition, F as RichtextContentDefinition, G as FilterRule, H as ExtendedFilterRule, I as ViewContentDefinition, J as NO_VALUE_OPERATORS, K as FilterState, L as ViewRead, M as KanbanCollectionContentDefinition, N as ListViewLayout, O as EmailsContentDefinition, P as MeetingsContentDefinition, Q as QueryState, R as CurrencyFilterValue, S as ContentOpenMode, T as ContentViewDefinition, U as FilterCombinator, V as EdgeQuantifier, W as FilterOperator, X as OPERATORS_BY_TYPE, Y as NoValueOperator, Z as PhoneFilterValue, _ as CollectionContentSource, a as displayAttributesSchema, b as ContentField, c as filterStateSchema, d as colorIdSchema, et as SortDirection, f as iconNameSchema, g as CollectionContentDefinition, h as CollectionAction, i as contentViewDefinitionSchemaFor, it as isNoValueOperator, j as FormsContentDefinition, k as FormContentDefinition, l as publishedViewContentDefinitionSchema, m as ActivityContentDefinition, n as columnsSchema, nt as filterOperatorsByTypeForGeneration, o as draftContentViewDefinitionSchema, p as SCHEMA_LIMITS, q as FilterValue, r as contentViewDefinitionSchema, rt as getRollupFilterOperators, s as draftContentViewDefinitionSchemaFor, t as collectionContentSourceSchema, tt as SortRule, u as sortsSchema, v as ColumnReference, w as ContentViewContext, x as ContentFieldGroup, y as ContentCreateMode, z as DayMonthValue } from "./all-CPMOHYla.js";
|
|
6
|
+
import { A as FolderPreset, C as ResourceVisibility, D as parseResourceVisibility, E as Timestamps, M as PresetNode, O as DocumentLayout, S as ReservedObjectName, T as SystemFieldName, _ as ObjectRecord, a as validateDraft, b as RESOURCE_VISIBILITIES, c as validateObjectOrThrow, f as createFormAttributeValidator, g as ObjectDefinition, h as ObjectAttribute, j as MAX_PRESET_DEPTH, k as DocumentLayoutVariant, m as ListViewTabVisibility, o as validateDraftOrThrow, p as LIST_VIEW_TAB_VISIBILITIES, r as rejectUnknownAttributesOrThrow, s as validateObject, v as RESERVED_ATTRIBUTE_NAMES, w as SYSTEM_FIELD_NAMES, x as ReservedAttributeName, y as RESERVED_OBJECT_NAMES } from "./index-D9OhYX-t.js";
|
|
7
|
+
import { S as UpdateObjectInput, _ as statusOptionWriteSchema, b as RelationOption, c as parseAttributeConfigForCreate, d as propertyAttributeWireSchema, f as propertySchemaSchema, g as statusGroupSchema, h as selectOptionWriteSchema, l as parseAttributeConfigForUpdate, m as refuseForeignKeys, n as WIRE_OMITTED_CONFIG_KEYS, o as multiselectOptionWriteSchema, p as propertySchemaWireSchema, r as attributeConfigSchemas, s as parseAttributeConfig, t as SIMPLE_PROPERTY_TYPES, u as propertyAttributeSchema, v as AddAttributeInput, x as RelationOptionsResponse, y as CreateCustomObjectInput } from "./index-CRtiKFTH.js";
|
|
8
|
+
import { n as DEFAULT_VALIDATION_MESSAGES, r as ValidationMessages, t as formatZodErrors } from "./index-BL7EA39F.js";
|
|
9
|
+
import { t as createTextValidator } from "./text-DHg2cmFd.js";
|
|
10
|
+
import { t as createNumberValidator } from "./number-Ck0PPSkK.js";
|
|
11
|
+
import { t as createCheckboxValidator } from "./checkbox-Ce8gAyQf.js";
|
|
12
|
+
import { t as createDateValidator } from "./date-DikDGfre.js";
|
|
11
13
|
import z, { z as z$1 } from "zod";
|
|
12
14
|
import { ColorId, CountryIso3, CurrencyCode, IconName, MimeType } from "@stndrds/constants";
|
|
13
15
|
import { StandardSchemaV1, StandardSchemaV1 as StandardSchemaV1$1 } from "@standard-schema/spec";
|
|
@@ -27,6 +29,13 @@ export declare function findRelationAttribute(object: {
|
|
|
27
29
|
* matches on target id however many targets are declared.
|
|
28
30
|
*/
|
|
29
31
|
export declare function relationAcceptsObject(attribute: RelationAttribute, objectName: string): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* The one object a relation lists, or `undefined` when it has several targets
|
|
34
|
+
* or the polymorphic `*`: only a single concrete target can source a
|
|
35
|
+
* collection. The predicate behind `requireSingleRelationTarget`, for callers
|
|
36
|
+
* that offer choices rather than validate one.
|
|
37
|
+
*/
|
|
38
|
+
export declare function singleRelationTarget(attribute: RelationAttribute): string | undefined;
|
|
30
39
|
export declare function requireSingleRelationTarget(attribute: RelationAttribute, path?: string[]): string;
|
|
31
40
|
//#endregion
|
|
32
41
|
//#region src/types/common.d.ts
|
|
@@ -9616,70 +9625,6 @@ export declare const NATIVE_OBJECT_NAMES: readonly ["skill", "memory", "drives",
|
|
|
9616
9625
|
export type NativeObjectName = (typeof NATIVE_OBJECT_NAMES)[number];
|
|
9617
9626
|
export declare function isNativeObjectName(name: string): name is NativeObjectName;
|
|
9618
9627
|
//#endregion
|
|
9619
|
-
//#region src/builders/migration-builder.d.ts
|
|
9620
|
-
interface ChangeTypeOptions {
|
|
9621
|
-
/** Optional explicit transform function (used to resolve a BuiltInTransform) */
|
|
9622
|
-
transform?: (value: unknown) => unknown;
|
|
9623
|
-
}
|
|
9624
|
-
/**
|
|
9625
|
-
* Fluent builder for composing a MigrationDefinition.
|
|
9626
|
-
*
|
|
9627
|
-
* Operations are collected in declaration order. The builder tracks which
|
|
9628
|
-
* attribute names have been touched and throws on conflicting operations
|
|
9629
|
-
* (e.g., renaming then removing the same attribute within the same migration).
|
|
9630
|
-
*
|
|
9631
|
-
* @example
|
|
9632
|
-
* ```typescript
|
|
9633
|
-
* const migration = new MigrationBuilder(2)
|
|
9634
|
-
* .renameAttribute("firstName", "first_name")
|
|
9635
|
-
* .changeType("age", "text", "number")
|
|
9636
|
-
* .build();
|
|
9637
|
-
* ```
|
|
9638
|
-
*/
|
|
9639
|
-
declare class MigrationBuilder {
|
|
9640
|
-
private readonly version;
|
|
9641
|
-
private readonly operations;
|
|
9642
|
-
/** Tracks attribute names that have already been referenced in this migration */
|
|
9643
|
-
private readonly touchedAttributes;
|
|
9644
|
-
constructor(version: number);
|
|
9645
|
-
private assertNotTouched;
|
|
9646
|
-
/**
|
|
9647
|
-
* Rename an attribute.
|
|
9648
|
-
* The reverse operation will rename it back.
|
|
9649
|
-
*/
|
|
9650
|
-
renameAttribute(from: string, to: string): this;
|
|
9651
|
-
/**
|
|
9652
|
-
* Change the type of an attribute.
|
|
9653
|
-
*
|
|
9654
|
-
* The `transform` option accepts a function — it is used only to signal
|
|
9655
|
-
* intent; the actual built-in transform is resolved from the target type.
|
|
9656
|
-
*/
|
|
9657
|
-
changeType(name: string, from: AttributeType, to: AttributeType, options?: ChangeTypeOptions): this;
|
|
9658
|
-
/**
|
|
9659
|
-
* Remove an attribute.
|
|
9660
|
-
*
|
|
9661
|
-
* Authoring has no persisted snapshot, so backup_config is omitted.
|
|
9662
|
-
* Automatically generated diffs can attach the existing attribute definition.
|
|
9663
|
-
*/
|
|
9664
|
-
removeAttribute(name: string): this;
|
|
9665
|
-
/**
|
|
9666
|
-
* Add a new attribute.
|
|
9667
|
-
* The reverse operation will remove it (using the attribute definition as backup).
|
|
9668
|
-
*/
|
|
9669
|
-
addAttribute(attribute: Attribute): this;
|
|
9670
|
-
/**
|
|
9671
|
-
* Update the configuration of an attribute (partial patch).
|
|
9672
|
-
*
|
|
9673
|
-
* The `from` config is intentionally left empty — the sync engine will
|
|
9674
|
-
* populate it from current DB state before applying the migration.
|
|
9675
|
-
*/
|
|
9676
|
-
updateConfig(name: string, config: Partial<Record<string, unknown>>): this;
|
|
9677
|
-
/**
|
|
9678
|
-
* Produce the final MigrationDefinition.
|
|
9679
|
-
*/
|
|
9680
|
-
build(): MigrationDefinition;
|
|
9681
|
-
}
|
|
9682
|
-
//#endregion
|
|
9683
9628
|
//#region src/builders/object-builder.d.ts
|
|
9684
9629
|
/**
|
|
9685
9630
|
* The object-level expression invariants `ObjectBuilder.build()` enforces.
|
|
@@ -9812,7 +9757,6 @@ export declare class ObjectBuilder<TRecord extends Record<string, unknown> = {},
|
|
|
9812
9757
|
private _labelExpression?;
|
|
9813
9758
|
private _embeddingExpression?;
|
|
9814
9759
|
private _pluralLabel?;
|
|
9815
|
-
private _migrations;
|
|
9816
9760
|
private _sealed;
|
|
9817
9761
|
private _toleratedAttributes;
|
|
9818
9762
|
/**
|
|
@@ -9963,8 +9907,18 @@ export declare class ObjectBuilder<TRecord extends Record<string, unknown> = {},
|
|
|
9963
9907
|
/**
|
|
9964
9908
|
* Set metadata. Merges with any previously set metadata (preserves keys
|
|
9965
9909
|
* written by other builder methods like `.order()`).
|
|
9910
|
+
*
|
|
9911
|
+
* `icon` is reserved and is NOT preserved: the icon has one home, the
|
|
9912
|
+
* object's own `icon` field (#3563), so the runtime drops a metadata key of
|
|
9913
|
+
* that name on every write. Set it with `.icon()`.
|
|
9914
|
+
*
|
|
9915
|
+
* The type refuses the key outright, so a declaration that would silently
|
|
9916
|
+
* lose it fails to compile instead. Nothing already stored is affected — the
|
|
9917
|
+
* runtime keeps stripping the key for callers who reach this without types.
|
|
9966
9918
|
*/
|
|
9967
|
-
metadata(value: Record<string, unknown>
|
|
9919
|
+
metadata(value: Record<string, unknown> & {
|
|
9920
|
+
icon?: never;
|
|
9921
|
+
}): this;
|
|
9968
9922
|
/**
|
|
9969
9923
|
* Set the display order used by the sidebar (and any other UI that
|
|
9970
9924
|
* surfaces objects). Lower values appear first; objects without an
|
|
@@ -10015,23 +9969,6 @@ export declare class ObjectBuilder<TRecord extends Record<string, unknown> = {},
|
|
|
10015
9969
|
* sub-folders and installable preset structures inside a record's drive.
|
|
10016
9970
|
*/
|
|
10017
9971
|
documentLayout(layout: DocumentLayout): this;
|
|
10018
|
-
/**
|
|
10019
|
-
* Declare a schema migration for this object.
|
|
10020
|
-
*
|
|
10021
|
-
* - `version` must be >= 2 (version 1 is implicit — no migration needed).
|
|
10022
|
-
* - Versions must be declared in sequential order without gaps or duplicates.
|
|
10023
|
-
* - The callback receives a MigrationBuilder; call `.build()` is not required
|
|
10024
|
-
* (the ObjectBuilder calls it internally).
|
|
10025
|
-
*
|
|
10026
|
-
* @example
|
|
10027
|
-
* ```typescript
|
|
10028
|
-
* object({ name: "contacts", label: "Contact" })
|
|
10029
|
-
* .migration(2, (m) => m.renameAttribute("firstName", "first_name"))
|
|
10030
|
-
* .migration(3, (m) => m.changeType("age", "text", "number"))
|
|
10031
|
-
* .labelExpression("{{ first_name }}")
|
|
10032
|
-
* ```
|
|
10033
|
-
*/
|
|
10034
|
-
migration(version: number, callback: (builder: MigrationBuilder) => unknown): this;
|
|
10035
9972
|
/**
|
|
10036
9973
|
* Build the final ObjectDefinition
|
|
10037
9974
|
* @throws ValidationError if required fields are missing or invalid
|
|
@@ -12930,6 +12867,22 @@ export declare function assertSchemaSourceId(sourceId: string): void;
|
|
|
12930
12867
|
*/
|
|
12931
12868
|
export declare function markdownToPlainText(markdown: string): string;
|
|
12932
12869
|
//#endregion
|
|
12870
|
+
//#region src/utils/calendar-day.d.ts
|
|
12871
|
+
/**
|
|
12872
|
+
* A `YYYY-MM-DD` string that actually names a calendar day.
|
|
12873
|
+
*
|
|
12874
|
+
* The shape test alone is not enough, because JavaScript rolls an impossible
|
|
12875
|
+
* day over where SQL refuses it: `new Date("2026-02-30")` answers March 2 and
|
|
12876
|
+
* `Date.parse` calls it valid, while `'2026-02-30'::date` raises
|
|
12877
|
+
* `SQLSTATE 22008`. Round-tripping the parsed day back to a string is what
|
|
12878
|
+
* separates the two.
|
|
12879
|
+
*
|
|
12880
|
+
* Three call sites need this exact predicate — the absolute date filter
|
|
12881
|
+
* comparand guard (`filters/validation.ts`), the AI filter generator's repair
|
|
12882
|
+
* loop and the usage report window — so it lives here once.
|
|
12883
|
+
*/
|
|
12884
|
+
export declare function isCalendarDay(value: string): boolean;
|
|
12885
|
+
//#endregion
|
|
12933
12886
|
//#region src/utils/routing-price.d.ts
|
|
12934
12887
|
/**
|
|
12935
12888
|
* USD per million tokens for one dimension, judged at the HIGHEST figure the
|
|
@@ -13017,9 +12970,9 @@ export interface PersistedSchemaPlanAdditive extends SchemaPlanAdditiveBase {}
|
|
|
13017
12970
|
* destructive branch is what makes the UI require an explicit confirmation —
|
|
13018
12971
|
* the structure carries the distinction, so no caller can forget to check it.
|
|
13019
12972
|
*
|
|
13020
|
-
* Type change is deliberately absent:
|
|
13021
|
-
*
|
|
13022
|
-
*
|
|
12973
|
+
* Type change is deliberately absent: a runtime retype is not a plan
|
|
12974
|
+
* operation, and a retype of a system attribute is refused at boot unless it
|
|
12975
|
+
* is storage-compatible — it takes a hand-written SQL migration.
|
|
13023
12976
|
*/
|
|
13024
12977
|
export interface SchemaPlanDestructive {
|
|
13025
12978
|
attributeRemovals: PlannedAttributeRemoval[];
|
|
@@ -14809,4 +14762,4 @@ export declare function schemaStateSourcePayload(entries: readonly SchemaStateEn
|
|
|
14809
14762
|
export declare function parseSchemaState(input: unknown): SchemaState;
|
|
14810
14763
|
export declare function diffSchemaState(state: SchemaState): SchemaStateDiff;
|
|
14811
14764
|
//#endregion
|
|
14812
|
-
export { ATTRIBUTE_TYPES, AccessDeniedError, type ActivityContentDefinition, AddAttributeInput, type ArchitectChange, type ArchitectFocus, type ArchitectImpact, type ArchitectNavigation, type ArchitectPresentation, type ArchitectProjection, Attribute, type AttributeAgentCapabilities, type AttributeAuthoringCapabilities, type AttributeCapabilities, type AttributeCardinality, type AttributeDefaultValueCapability, type AttributeExchangeCapabilities, AttributeGroup, AttributeInUseError, type AttributeLifecycleCapabilities, type AttributeLike, AttributeNotFoundError, type AttributePolymorphicCapability, type AttributePresentationCapabilities, type AttributeQueryCapabilities, type AttributeRemovalContentAddress, type AttributeRemovalPlan, type AttributeRemovalView, type AttributeRequiredCapability, type AttributeStorageCapabilities, type AttributeStorageMode, AttributeType, AttributeUsage, BaseAttribute, type BaseOperation, type BatchGuidance, BilateralConfig, type BlockedContent,
|
|
14765
|
+
export { ATTRIBUTE_TYPES, AccessDeniedError, type ActivityContentDefinition, AddAttributeInput, AmbiguousSchemaChangeError, type ArchitectChange, type ArchitectFocus, type ArchitectImpact, type ArchitectNavigation, type ArchitectPresentation, type ArchitectProjection, Attribute, type AttributeAgentCapabilities, type AttributeAuthoringCapabilities, type AttributeCapabilities, type AttributeCardinality, type AttributeDefaultValueCapability, type AttributeExchangeCapabilities, AttributeGroup, AttributeInUseError, type AttributeLifecycleCapabilities, type AttributeLike, AttributeNotFoundError, type AttributePolymorphicCapability, type AttributePresentationCapabilities, type AttributeQueryCapabilities, type AttributeRemovalContentAddress, type AttributeRemovalPlan, type AttributeRemovalView, type AttributeRequiredCapability, type AttributeStorageCapabilities, type AttributeStorageMode, AttributeType, AttributeUsage, BaseAttribute, type BaseOperation, type BatchGuidance, BilateralConfig, type BlockedContent, COMPUTED_FUNCTIONS, COMPUTED_FUNCTION_METADATA, COMPUTED_FUNCTION_NAMES, type CanonicalViewOperationInput, type CatalogueViolation, CheckboxAttribute, type CollectionAction, type CollectionContentDefinition, type CollectionContentSource, type CollectionSourceAddress, type ColumnReference, type ColumnsNeeded, CompileComputedFormulaInput, ComputedCompileAttribute, ComputedCompileObject, ComputedCompileSchema, ComputedDependency, ComputedDependencyGraphNode, ComputedFieldKind, ComputedFormulaAstNode, ComputedFormulaBinaryNode, ComputedFormulaBinaryOperator, ComputedFormulaCallNode, ComputedFormulaCompileError, ComputedFormulaLiteralNode, ComputedFormulaParseError, ComputedFormulaPathNode, ComputedFormulaResult, ComputedFunctionCategory, ComputedFunctionMetadata, ComputedFunctionName, ComputedFunctionSignature, ComputedOptionsSource, ComputedPlan, ComputedReturnType, ComputedValueType, ConcurrentModificationError, type ContentCreateMode, type ContentExtensionDefinition, type ContentField, type ContentFieldGroup, type ContentNavigation, type ContentOpenMode, type ContentPlacement, type ContentViewCatalogueCollection, type ContentViewCatalogueInput, type ContentViewCatalogueResult, type ContentViewContext, type ContentViewDefinition, type ConversationDisplayTitleInput, CreateCustomObjectInput, type CreateDBForm, type CreateDBFormSubmission, Currency, CurrencyAttribute, type CurrencyFilterValue, type CustomContentDefinition, type DBForm, type DBFormSubmission, DEFAULT_VALIDATION_MESSAGES, DateAttribute, DateFormat, DateRangeValue, DateValue, type DayMonthValue, type DefaultResolutionContext, type DefaultViewType, DocumentAttribute, DocumentLayout, DocumentLayoutVariant, type DocumentsContentDefinition, type DraftAppendCommand, type DraftAppendReceipt, type DraftCommandGuard, type DraftContentState, type DraftFocus, type DraftObjectSettings, type DraftOperationContext, type DraftPublishCommand, type DraftRefusal, type DraftSummary, type DraftViewAuthoring, type DraftableAttribute, type DraftableObject, type DraftableSampleRecord, type DraftableState, type DraftableView, type DroppedContent, DuplicateError, type DwellMode, type DynamicValue, type EdgeQuantifier, type EditingCapability, type EditingScope, type EmailsContentDefinition, type ExhaustiveDraftObjectSettings, type ExtendedFilterRule, type FilterCombinator, type FilterOperator, type FilterRule, type FilterState, type FilterValue, type FlagResolutionContext, FolderPreset, ForbiddenError, type FormContentDefinition, type FormDensity, FormRegistry, type FormsContentDefinition, FormulaAttribute, FormulaReturnType, type GatewayFastPricing, type GatewayPriceTier, type GatewayPricing, type KanbanCollectionContentDefinition, LIST_VIEW_TAB_VISIBILITIES, type LabelContext, type ListViewLayout, ListViewTabVisibility, type ListedObjectResolver, Location, LocationAttribute, type LocationFilterProperty, LocationGranularity, MAX_PRESET_DEPTH, type MeetingsContentDefinition, MemoryNotFoundError, MultiRelationAttribute, MultiselectAttribute, type MutationReceipt, NO_VALUE_OPERATORS, type NamedTarget, type NextStep, type NoValueOperator, NonJsonValueError, NotFoundError, NotImplementedError, NumberAttribute, NumberUnit, OPERATORS_BY_TYPE, ObjectAttribute, ObjectDefinition, ObjectNotFoundError, ObjectRecord, ObjectReferencedError, type OperationDef, type OperationFamily, type OperationPace, Option, OptionPropertyAttribute, OrphanSystemAttributeError, Phone, PhoneAttribute, type PhoneFilterValue, PresetNode, PropertyAttribute, PropertySchema, PropertyType, type ProposalRevision, type ProposalTarget, ProtectedResourceError, ProtectedRoleError, type QueryState, RELATION_TARGET_ANY, RESERVED_ATTRIBUTE_NAMES, RESERVED_OBJECT_NAMES, RESOURCE_VISIBILITIES, RealtimeDeliveryError, RealtimeRateLimitedError, RealtimeSubscriptionError, type ReconcileRelationAttributesInput, type ReconciledRelationAttributes, RecordNotFoundError, RecordReference, RecordReferencedError, RelationAttribute, RelationOption, RelationOptionsResponse, type RelationPair, RelationTarget, type RelativeDateValue, type RemovedAttribute, type RenameDraftAttributeOperation, RepositoryError, RepositoryOperation, ReservedAttributeName, ReservedObjectName, ReservedObjectNameError, ResourceVisibility, RichTextAttribute, RichtextAttribute, type RichtextContentDefinition, RoleNotFoundError, RollupAttribute, RollupFunction, SCHEMA_LIMITS, SIMPLE_PROPERTY_TYPES, SYSTEM_FIELD_NAMES, type SamplePublication, SchemaError, SchemaErrorCode, SchemaPlanNotFoundError, type ScrubbedContent, SearchBackendError, SelectAttribute, SingleRelationAttribute, type SortDirection, type SortRule, type StandardSchemaV1, StatusAttribute, StatusGroup, StorageError, StorageOperation, type StoredContentDefinition, SyncCascadeError, SyncConflictError, SyncError, SystemEntityImmutableError, SystemFieldName, type TenantId, TextAttribute, TimeFormat, Timestamps, type UpdateDBForm, type UpdateDBFormSubmission, UpdateObjectInput, UserAttribute, type UserId, type UserLike, UserReferenceType, type Uuid, ValidationError, ValidationErrorDetail, type ValidationMessages, type ValueRef, type ViewContentDefinition, type ViewOperation, type ViewRead, WIRE_OMITTED_CONFIG_KEYS, asTenantId, asUserId, assertAcyclicComputedDependencies, attributeConfigSchemas, canonicalStringify, collectionContentSourceSchema, colorIdSchema, columnsSchema, compileComputedFormula, compileRollupAttribute, contentViewDefinitionSchema, contentViewDefinitionSchemaFor, createCheckboxValidator, createDateValidator, createFormAttributeValidator, createNumberValidator, createTextValidator, deepEqual, displayAttributesSchema, draftContentViewDefinitionSchema, draftContentViewDefinitionSchemaFor, evaluateComputedAst, evaluateComputedFormula, evaluateComputedFormulaWithResult, filterOperatorsByTypeForGeneration, filterStateSchema, formatComputedResult, formatZodErrors, generateId, getRollupFilterOperators, hasOptions, iconNameSchema, indexBy, inferInverseCardinality, inferRollupReturnType, isAttributeInUseError, isAttributeSortable, isBilateralRelation, isComputedFunctionName, isNoValueOperator, isNotFoundError, isObjectReferencedError, isPlainRecord, isProtectedResourceError, isRecordReferencedError, isSchemaError, isUniversalRelation, isValidationError, multiselectOptionWriteSchema, parseAttributeConfig, parseAttributeConfigForCreate, parseAttributeConfigForUpdate, parseComputedFormula, parseResourceVisibility, propertyAttributeSchema, propertyAttributeWireSchema, propertySchemaSchema, propertySchemaWireSchema, publishedViewContentDefinitionSchema, refuseForeignKeys, rejectUnknownAttributesOrThrow, relationTargetsOf, resolvePropertyDefinitions, rollupToFormulaExpression, sameStableValue, selectOptionWriteSchema, serializeCanonicalJson, serializeStableJson, sortsSchema, statusGroupSchema, statusOptionWriteSchema, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow };
|