@stndrds/schema 1.0.0-alpha.197 → 1.0.0-alpha.199
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/{attributes-DP08iPCh.d.mts → attributes-Cn0v3e37.d.mts} +4 -0
- package/dist/{attributes-Ddhps_AU.d.ts → attributes-Cy9o_xM1.d.ts} +4 -0
- package/dist/{helpers-Bph8AoY7.d.mts → helpers-CED0HyXm.d.mts} +2 -2
- package/dist/{helpers-D9klos6x.d.ts → helpers-LCnn6DG3.d.ts} +2 -2
- package/dist/index.d.mts +19 -7
- package/dist/index.d.ts +19 -7
- package/dist/index.js +30 -5
- package/dist/index.mjs +30 -5
- package/dist/{types-iKvYBe6v.d.ts → types-B12E9LFe.d.ts} +1 -1
- package/dist/{types-D38kriFw.d.mts → types-CORdDGpb.d.mts} +1 -1
- package/dist/validation/all.d.mts +3 -3
- package/dist/validation/all.d.ts +3 -3
- package/dist/validation/complex/currency.d.mts +2 -2
- package/dist/validation/complex/currency.d.ts +2 -2
- package/dist/validation/complex/file.d.mts +2 -2
- package/dist/validation/complex/file.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 +3 -3
- package/dist/validation/core/index.d.ts +3 -3
- package/dist/validation/object/index.d.mts +3 -3
- package/dist/validation/object/index.d.ts +3 -3
- package/dist/validation/primitives/checkbox.d.mts +2 -2
- package/dist/validation/primitives/checkbox.d.ts +2 -2
- package/dist/validation/primitives/date.d.mts +2 -2
- package/dist/validation/primitives/date.d.ts +2 -2
- package/dist/validation/primitives/number.d.mts +2 -2
- package/dist/validation/primitives/number.d.ts +2 -2
- package/dist/validation/primitives/text.d.mts +2 -2
- package/dist/validation/primitives/text.d.ts +2 -2
- package/package.json +2 -2
|
@@ -70,6 +70,8 @@ interface FolderPreset {
|
|
|
70
70
|
icon?: IconName;
|
|
71
71
|
description?: string;
|
|
72
72
|
structure: PresetNode[];
|
|
73
|
+
/** When true, this preset is auto-instantiated on every new record's drive for the owning object. */
|
|
74
|
+
autoInstantiate?: boolean;
|
|
73
75
|
}
|
|
74
76
|
interface PresetNode {
|
|
75
77
|
title: string;
|
|
@@ -590,10 +592,12 @@ interface LocationAttribute extends BaseAttribute<Location> {
|
|
|
590
592
|
interface SelectAttribute extends BaseAttribute<string> {
|
|
591
593
|
type: "select";
|
|
592
594
|
options: Option[];
|
|
595
|
+
renderAs?: "badges";
|
|
593
596
|
}
|
|
594
597
|
interface MultiselectAttribute extends BaseAttribute<string[]> {
|
|
595
598
|
type: "multiselect";
|
|
596
599
|
options: Option[];
|
|
600
|
+
renderAs?: "badges";
|
|
597
601
|
}
|
|
598
602
|
interface FileAttribute extends BaseAttribute<string> {
|
|
599
603
|
type: "file";
|
|
@@ -70,6 +70,8 @@ interface FolderPreset {
|
|
|
70
70
|
icon?: IconName;
|
|
71
71
|
description?: string;
|
|
72
72
|
structure: PresetNode[];
|
|
73
|
+
/** When true, this preset is auto-instantiated on every new record's drive for the owning object. */
|
|
74
|
+
autoInstantiate?: boolean;
|
|
73
75
|
}
|
|
74
76
|
interface PresetNode {
|
|
75
77
|
title: string;
|
|
@@ -590,10 +592,12 @@ interface LocationAttribute extends BaseAttribute<Location> {
|
|
|
590
592
|
interface SelectAttribute extends BaseAttribute<string> {
|
|
591
593
|
type: "select";
|
|
592
594
|
options: Option[];
|
|
595
|
+
renderAs?: "badges";
|
|
593
596
|
}
|
|
594
597
|
interface MultiselectAttribute extends BaseAttribute<string[]> {
|
|
595
598
|
type: "multiselect";
|
|
596
599
|
options: Option[];
|
|
600
|
+
renderAs?: "badges";
|
|
597
601
|
}
|
|
598
602
|
interface FileAttribute extends BaseAttribute<string> {
|
|
599
603
|
type: "file";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { A as Attribute, O as ObjectDefinition, h as CompletionStatus } from './attributes-
|
|
3
|
-
import { V as ValidationMessages, a as ValidationResult } from './types-
|
|
2
|
+
import { A as Attribute, O as ObjectDefinition, h as CompletionStatus } from './attributes-Cn0v3e37.mjs';
|
|
3
|
+
import { V as ValidationMessages, a as ValidationResult } from './types-CORdDGpb.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Create a Zod schema for any attribute type.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { A as Attribute, O as ObjectDefinition, h as CompletionStatus } from './attributes-
|
|
3
|
-
import { V as ValidationMessages, a as ValidationResult } from './types-
|
|
2
|
+
import { A as Attribute, O as ObjectDefinition, h as CompletionStatus } from './attributes-Cy9o_xM1.js';
|
|
3
|
+
import { V as ValidationMessages, a as ValidationResult } from './types-B12E9LFe.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Create a Zod schema for any attribute type.
|
package/dist/index.d.mts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { i as ComputedValueType, j as ComputedReturnType, k as AttributeType, l as ComputedOptionsSource, m as ComputedDependency, n as ComputedPlan, f as RollupAttribute, A as Attribute, o as Timestamps, p as DocumentLayout, h as CompletionStatus, q as SchemaOperation, r as LocationGranularity, s as Location, e as FormulaAttribute, t as DocumentAttribute, d as StatusAttribute, c as SelectAttribute, b as MultiselectAttribute, u as Phone, v as Currency, D as DateAttribute, U as UserAttribute, w as DocumentSlotConfig, x as PropertySchema, g as CheckboxAttribute, C as CurrencyAttribute, T as TextAttribute, N as NumberAttribute, P as PhoneAttribute, y as Option, L as LocationAttribute, F as FileAttribute, z as FormulaReturnType, R as RelationAttribute, B as BilateralConfig, S as SingleRelationAttribute, M as MultiRelationAttribute, E as RelationTarget, a as RichtextAttribute, G as RollupFunction, H as UserReferenceType, I as MigrationDefinition, O as ObjectDefinition } from './attributes-
|
|
2
|
-
export { J as AttributeGroup, K as BaseAttribute, Q as BuiltInTransform, V as ComputedAttributeState, W as ComputedFieldKind, X as ComputedStateStatus, Y as CreateDocument, Z as CreateDocumentLink, _ as CreateDocumentSlot, $ as DEFAULT_DOCUMENT_SLOT, a0 as DateFormat, a1 as DateValue, a2 as Document, a3 as DocumentKind, a4 as DocumentLayoutVariant, a5 as DocumentListOptions, a6 as DocumentSlot, a7 as DocumentWithSlots, a8 as DocumentWithSubCount, a9 as FolderPreset, aa as MAX_PRESET_DEPTH, ab as NumberUnit, ac as ObjectAttribute, ad as ObjectRecord, ae as OptionPropertyAttribute, af as PresetNode, ag as PropertyAttribute, ah as PropertyType, ai as RELATION_TARGET_ANY, aj as RESERVED_ATTRIBUTE_NAMES, ak as RecordDocuments, al as ReservedAttributeName, am as RichTextAttribute, an as SYSTEM_FIELD_NAMES, ao as SlotStatus, ap as StatusGroup, aq as SystemFieldName, ar as UpdateDocument, as as UpdateDocumentSlot, at as hasOptions, au as inferInverseCardinality, av as isAttributeSortable, aw as isBilateralRelation, ax as isUniversalRelation } from './attributes-
|
|
1
|
+
import { i as ComputedValueType, j as ComputedReturnType, k as AttributeType, l as ComputedOptionsSource, m as ComputedDependency, n as ComputedPlan, f as RollupAttribute, A as Attribute, o as Timestamps, p as DocumentLayout, h as CompletionStatus, q as SchemaOperation, r as LocationGranularity, s as Location, e as FormulaAttribute, t as DocumentAttribute, d as StatusAttribute, c as SelectAttribute, b as MultiselectAttribute, u as Phone, v as Currency, D as DateAttribute, U as UserAttribute, w as DocumentSlotConfig, x as PropertySchema, g as CheckboxAttribute, C as CurrencyAttribute, T as TextAttribute, N as NumberAttribute, P as PhoneAttribute, y as Option, L as LocationAttribute, F as FileAttribute, z as FormulaReturnType, R as RelationAttribute, B as BilateralConfig, S as SingleRelationAttribute, M as MultiRelationAttribute, E as RelationTarget, a as RichtextAttribute, G as RollupFunction, H as UserReferenceType, I as MigrationDefinition, O as ObjectDefinition } from './attributes-Cn0v3e37.mjs';
|
|
2
|
+
export { J as AttributeGroup, K as BaseAttribute, Q as BuiltInTransform, V as ComputedAttributeState, W as ComputedFieldKind, X as ComputedStateStatus, Y as CreateDocument, Z as CreateDocumentLink, _ as CreateDocumentSlot, $ as DEFAULT_DOCUMENT_SLOT, a0 as DateFormat, a1 as DateValue, a2 as Document, a3 as DocumentKind, a4 as DocumentLayoutVariant, a5 as DocumentListOptions, a6 as DocumentSlot, a7 as DocumentWithSlots, a8 as DocumentWithSubCount, a9 as FolderPreset, aa as MAX_PRESET_DEPTH, ab as NumberUnit, ac as ObjectAttribute, ad as ObjectRecord, ae as OptionPropertyAttribute, af as PresetNode, ag as PropertyAttribute, ah as PropertyType, ai as RELATION_TARGET_ANY, aj as RESERVED_ATTRIBUTE_NAMES, ak as RecordDocuments, al as ReservedAttributeName, am as RichTextAttribute, an as SYSTEM_FIELD_NAMES, ao as SlotStatus, ap as StatusGroup, aq as SystemFieldName, ar as UpdateDocument, as as UpdateDocumentSlot, at as hasOptions, au as inferInverseCardinality, av as isAttributeSortable, aw as isBilateralRelation, ax as isUniversalRelation } from './attributes-Cn0v3e37.mjs';
|
|
3
3
|
import { MimeType, IconName, ColorId, CountryIso3, CurrencyCode } from '@stndrds/constants';
|
|
4
4
|
import { Uuid, TenantId } from './utils.mjs';
|
|
5
5
|
export { UserId, asTenantId, asUserId, deepEqual, generateId, indexBy } from './utils.mjs';
|
|
6
6
|
import { StandardSchemaV1 } from '@standard-schema/spec';
|
|
7
7
|
export { StandardSchemaV1 } from '@standard-schema/spec';
|
|
8
8
|
import z from 'zod';
|
|
9
|
-
export { V as ValidationMessages } from './types-
|
|
9
|
+
export { V as ValidationMessages } from './types-CORdDGpb.mjs';
|
|
10
10
|
export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './validation/core/index.mjs';
|
|
11
11
|
export { parseAttributeConfig } from './validation/config/index.mjs';
|
|
12
|
-
export { c as computeRecordStatus, a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from './helpers-
|
|
12
|
+
export { c as computeRecordStatus, a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from './helpers-CED0HyXm.mjs';
|
|
13
13
|
|
|
14
14
|
declare const COMPUTED_FUNCTION_NAMES: readonly ["if", "concat", "sum", "avg", "count", "min", "max", "earliest", "latest", "unique", "first", "percent_empty", "percent_not_empty", "count_empty", "count_not_empty", "count_unique"];
|
|
15
15
|
type ComputedFunctionName = (typeof COMPUTED_FUNCTION_NAMES)[number];
|
|
@@ -4728,6 +4728,7 @@ declare class SelectAttributeBuilder<TName extends string, TOptions extends read
|
|
|
4728
4728
|
*/
|
|
4729
4729
|
options<const T extends readonly Option[]>(value: T): SelectAttributeBuilder<TName, T, TRequired>;
|
|
4730
4730
|
option(config: Option): this;
|
|
4731
|
+
renderAs(value: "badges"): this;
|
|
4731
4732
|
required(): SelectAttributeBuilder<TName, TOptions, true>;
|
|
4732
4733
|
optional(): SelectAttributeBuilder<TName, TOptions, false>;
|
|
4733
4734
|
}
|
|
@@ -4758,6 +4759,7 @@ declare class MultiselectAttributeBuilder<TName extends string, TOptions extends
|
|
|
4758
4759
|
*/
|
|
4759
4760
|
options<const T extends readonly Option[]>(value: T): MultiselectAttributeBuilder<TName, T, TRequired>;
|
|
4760
4761
|
option(config: Option): this;
|
|
4762
|
+
renderAs(value: "badges"): this;
|
|
4761
4763
|
required(): MultiselectAttributeBuilder<TName, TOptions, true>;
|
|
4762
4764
|
optional(): MultiselectAttributeBuilder<TName, TOptions, false>;
|
|
4763
4765
|
}
|
|
@@ -5351,6 +5353,16 @@ declare class MigrationBuilder {
|
|
|
5351
5353
|
build(): MigrationDefinition;
|
|
5352
5354
|
}
|
|
5353
5355
|
|
|
5356
|
+
/**
|
|
5357
|
+
* Configuration for the `object()` builder factory.
|
|
5358
|
+
*/
|
|
5359
|
+
interface ObjectConfig extends BuilderConfig {
|
|
5360
|
+
/**
|
|
5361
|
+
* Optional explicit object id. In production the id is assigned by the
|
|
5362
|
+
* database at sync time; provide one for deterministic ids in tests/fixtures.
|
|
5363
|
+
*/
|
|
5364
|
+
id?: string;
|
|
5365
|
+
}
|
|
5354
5366
|
/**
|
|
5355
5367
|
* Extract attribute info from a builder instance
|
|
5356
5368
|
*/
|
|
@@ -5487,7 +5499,7 @@ declare class ObjectBuilder<TRecord extends Record<string, unknown> = {}> implem
|
|
|
5487
5499
|
* @see https://standardschema.dev/
|
|
5488
5500
|
*/
|
|
5489
5501
|
get "~standard"(): StandardSchemaV1.Props<unknown, Record<string, unknown>>;
|
|
5490
|
-
constructor(config:
|
|
5502
|
+
constructor(config: ObjectConfig);
|
|
5491
5503
|
/**
|
|
5492
5504
|
* Set object description
|
|
5493
5505
|
*/
|
|
@@ -5654,7 +5666,7 @@ declare class ObjectBuilder<TRecord extends Record<string, unknown> = {}> implem
|
|
|
5654
5666
|
* };
|
|
5655
5667
|
* ```
|
|
5656
5668
|
*/
|
|
5657
|
-
declare function object(config:
|
|
5669
|
+
declare function object(config: ObjectConfig): ObjectBuilder<{}>;
|
|
5658
5670
|
|
|
5659
5671
|
/**
|
|
5660
5672
|
* Builder for creating form groups
|
|
@@ -7647,4 +7659,4 @@ interface QualifiedRuleValidationContext {
|
|
|
7647
7659
|
}
|
|
7648
7660
|
declare function validateQualifiedRule(rule: FilterRule, context: QualifiedRuleValidationContext): void;
|
|
7649
7661
|
|
|
7650
|
-
export { type AIAvailableModel, type AIBatchQuestion, type AIBatchQuestionAnswer, type AIBatchQuestionOption, type AIChatMessage, type AIChatMessagePart, type AIChatMessagePartType, type AICompactionSummary, type AIGenerationInputMap, type AIGenerationResult, type AIGenerationType, type AIGenerationUsage, type AIMemoryEntry, type AIMemoryType, type AIMessageRole, type AIProviderMetrics, type AIQuestion, type AIQuestionAnswer, type AIQuestionOption, type AIQuestionType, type AITodoItem, type AITodoList, type AITodoStatus, type AIToolCall, type AIToolCallStatus, type AIUsageMetrics, ALLOWED_PROPERTY_TYPES, ALL_ACTIONS, ALL_SYSTEM_RESOURCES, ATTRIBUTE_FILTER_OPERATORS, type AccessAction, type AccessActionList, AccessDeniedError, type AccessLevel, type AccessPolicy, type AccessPolicyPreset, type AccessResourceType, type Action, type ActivityTab, ActivityTabConfig, type Actor, type ActorRoleAssignment, type ActorStatus, type ActorType, type AddAttributeInput, type AdvancedFilterState, type AgentConfig, type AgentDashboard, type AgentDefinition, type AgentEvent, type AgentExecutionConfig, type AgentExecutionPolicy, type AgentMessageAttachment, type AgentMessagePart, type AgentRun, type AgentRunStatus, type AgentSchedule, type AgentSession, type AgentSessionMessage, type AgentSessionMode, type AgentSessionPatchLiveEvent, type AgentSessionStatus, type AgentToolCall, type AgentTriggerDefinition, type AgentTriggerType, type AgentUnreadPatchLiveEvent, type ApiKey, type ApiKeyAuthContext, type ApiKeyPermission, type ApiKeyWithSecret, type AssignActorRoleInput, type AssignRoleInput, Attribute, type AttributeAgentCapabilities, type AttributeAuthoringCapabilities, type AttributeCapabilities, type AttributeCardinality, type AttributeDefaultValueCapability, type AttributeExchangeCapabilities, type AttributeGroupField, AttributeInUseError, type AttributeLifecycleCapabilities, AttributeNotFoundError, type AttributePolymorphicCapability, type AttributePresentationCapabilities, type AttributeQueryCapabilities, type AttributeRequiredCapability, type AttributeStorageCapabilities, type AttributeStorageMode, AttributeType, type AttributeUsage, type AuditAction, type AuditActorType, type AuditChange, type AuditListOptions, type AuditLogEntry, type AuditResourceType, type AuditServiceOptions, type AuditSortField, BEHAVIOR_PROPERTIES, BilateralConfig, type BoundingBox, type BuilderConfig, COMPUTED_FUNCTIONS, COMPUTED_FUNCTION_METADATA, COMPUTED_FUNCTION_NAMES, ChangeTypeNotSupportedError, type ChannelRevokedLiveEvent, CheckboxAttribute, type CompileComputedFormulaInput, CompletionStatus, type ComputedCompileAttribute, type ComputedCompileObject, type ComputedCompileSchema, ComputedDependency, type ComputedDependencyGraphNode, type ComputedFormulaAstNode, type ComputedFormulaBinaryNode, type ComputedFormulaBinaryOperator, type ComputedFormulaCallNode, ComputedFormulaCompileError, type ComputedFormulaLiteralNode, ComputedFormulaParseError, type ComputedFormulaPathNode, type ComputedFormulaResult, type ComputedFunctionCategory, type ComputedFunctionMetadata, type ComputedFunctionName, type ComputedFunctionSignature, ComputedOptionsSource, ComputedPlan, ComputedReturnType, ComputedValueType, ConcurrentModificationError, type ConfigOverrides, type ConversationRenamedLiveEvent, type CountMode, type CreateActorInput, type CreateApiKeyInput, type CreateAuditLogInput, type CreateCustomObjectInput, type CreateDBAttribute, type CreateDBForm, type CreateDBFormSubmission, type CreateDBObject, type CreateDBView, type CreateDBViewOverlay, type CreateFile, type CreateMode, type CreateObjectRecord, type CreatePermissionInput, type CreateRoleInput, type CreateSandboxExecution, type CreateUserProfile, type CreateViewInput, type CriticConfig, Currency, CurrencyAttribute, type CurrencyFilterValue, type CustomAttributeValue, type CustomTab, CustomTabConfig, type DBAttribute, type DBForm, type DBFormSubmission, type DBObject, type DBView, type DBViewOverlay, DB_COLUMN_FIELDS, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DOCUMENT_SYSTEM_ATTRIBUTES, DateAttribute, type DefaultRoleName, type DeletedMode, DestructiveSyncNotAllowedError, DetailViewBuilder, type DetailViewConfig, type DetailViewDefinition, type DetailViewLayout, DocumentAttribute, DocumentLayout, DocumentSlotConfig, DocumentSlotValidationError, type DocumentsTab, DocumentsTabConfig, type DomainEvent, DuplicateError, EMPTY_VALUE_PLACEHOLDER, type Eager, type EffectivePermissions, type EnvVarEntry, type EnvVarScope, type EventDataMap, type EventType, type ExtendedFilterRule, type ExtractRecord, type ExtractRecordInput, type ExtractRecordInputStrict, type ExtractRecordStrict, type ExtractRecordUpdate, type ExtractRecordUpdateStrict, FORM_FORBIDDEN_ATTRIBUTE_TYPES, type FeatureFlagDefinition, type FeatureFlagsConfig, type FeatureFlagsRepository, type FeatureGate, type Field, type FieldGroup, type FieldHistoryEntry, type File, FileAttribute, type FileListOptions, type FileVisibility, type FilterCombinator, type FilterGroup, type FilterOperator, type FilterRule, type FilterState, type FilterValue, type FlagLevel, type FlagOverride, FlagRegistry, FlagService, type FlagValueType, ForbiddenError, FormBuilder, type FormDefinition, type FormDensity, type FormFieldRef, type FormFieldsRow, type FormFreeFieldRef, type FormHeadingRow, FormRegistry, type FormRow, FormRowBuilder, type FormSeparatorRow, type FormSlot, type FormSlotFieldRef, type FormStatus, type FormStep, FormStepBuilder, type FormSubmission, type FormSubmissionStatus, type FormSubmittedAgentEvent, type FormTab, type FormTextRow, type FormsTab, FormulaAttribute, type FormulaGenerationAttribute, type FormulaGenerationInput, FormulaReturnType, type GeocodingAdapter, type GeocodingAutocompleteParams, type GeocodingParams, type GeocodingSuggestion, type GlobalSearchGroupedOptions, type GlobalSearchGroupedResult, type GlobalSearchOptions, type GlobalSearchResultItem, type GrantResourceAccessInput, type Group, GroupBuilder, IDENTITY_PROPERTIES, type InferAttributeValue, type InferQualifiedProps, type InverseSource, type InviteUserInput, LIVE_EVENT_TYPES, LIVE_STREAM_START_CURSOR, type ListOptions, ListViewBuilder, type ListViewConfig, type ListViewDefinition, type ListViewLayout, type ListViewTab, ListViewTabConfigBuilder, type LiveChannel, type LiveChannelKind, type LiveErrorPayload, type LiveEventEnvelope, type LiveEventPayload, type LiveEventType, type LiveGapPayload, type LiveReplayCompletePayload, type LiveSubscribePayload, type LiveUnsubscribePayload, Location, LocationAttribute, LocationGranularity, MemoryNotFoundError, type MentionEntityType, type MentionReference, type MentionedContext, type MentionedEntityContext, MigrationDefinition, MigrationTimeoutError, type ModelDefinition, MultiRelationAttribute, MultiselectAttribute, NO_VALUE_OPERATORS, type NoValueOperator, NoopGeocodingAdapter, NotFoundError, NotImplementedError, NumberAttribute, OPERATORS_BY_TYPE, OPERATOR_SPECS, ObjectBuilder, ObjectDefinition, ObjectNotFoundError, type ObjectPermissions, ObjectReferencedError, type OcrAdapter, type OcrInput, type OcrOptions, type OcrPage, type OcrResult, type OcrTextBlock, type OperatorSpec, Option, OrphanSystemAttributeError, PRESENTATION_PROPERTIES, type PageInfo, type PageOptions, type PageResponse, type ParsedAttribute, type Permission, type PermissionScope, Phone, PhoneAttribute, type PhoneFilterValue, type PrincipalType, PropertySchema, ProtectedResourceError, ProtectedRoleError, type ProviderName, QUALIFIED_SEPARATOR, type QualifiedDocumentAttributeBuilder, type QualifiedDocumentBrand, type QueryState, type ReasoningPartData, type RecordAgentEvent, type RecordDeletedLiveEvent, type RecordFieldPatch, type RecordMetadata, RecordNotFoundError, type RecordPatchLiveEvent, type RecordReference, RecordReferencedError, type RegexGenerationInput, RelationAttribute, type RelationGroup, RelationGroupBuilder, type RelationOption, type RelationOptionsResponse, type RelationSource, RelationTarget, type RelativeDateValue, RepositoryError, type RepositoryOperation, type ResolvedFlag, type ResourceAccess, type ResourceRef, type RetryPolicy, type ReverseGeocodingParams, RichtextAttribute, type RichtextTab, RichtextTabConfig, type Role, RoleNotFoundError, RollupAttribute, RollupFunction, STANDARD_SCHEMA_VENDOR, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, type SandboxExecution, type SandboxExecutionInput, type SandboxExecutionResult, type SandboxExecutionStatus, type SandboxMode, type SandboxTrigger, SchemaError, SchemaErrorCode, SchemaOperation, type SearchOptions, SelectAttribute, type SidePanelConfig, type SidebarExtraItem, SingleRelationAttribute, type SlotMode, type SortDirection, type SortRule, type SpecificAccessAction, type StandardSchemaIssue, type StandardSchemaResult, type StaticFlagDefault, StatusAttribute, StorageError, type StorageOperation, type StorageProvider, type StreamEventCompactionEnd, type StreamEventCompactionFailed, type StreamEventCompactionStart, type StreamEventMessagePersisted, SyncCascadeError, SyncConflictError, SyncError, type SystemAttribute, type SystemAttributeI18nKey, SystemEntityImmutableError, type SystemFields, type SystemPermissions, type SystemResource, type Tab, TabBuilder, type TabType, type TableSource, type TableTab, TableTabConfig, TenantId, TextAttribute, type TextPartData, type ThinkingPartData, Timestamps, type ToolPartData, type ToolPartState, type TriggerEventType, USER_STATUSES, type UpdateActorInput, type UpdateDBAttribute, type UpdateDBForm, type UpdateDBFormSubmission, type UpdateDBObject, type UpdateDBView, type UpdateDBViewOverlay, type UpdateFile, type UpdateObjectInput, type UpdateRoleInput, type UpdateUserProfile, type UpdateViewInput, type UpsertAccessPolicyInput, type UpsertDBAttribute, type UpsertDBObject, type UpsertDBView, UserAttribute, type UserProfile, UserReferenceType, type UserRoleAssignment, type UserStatus, Uuid, ValidationError, type ValidationErrorDetail, type ViewConfig, type ViewDefinition, type ViewOverlay, type ViewProjectionStaleLiveEvent, type ViewType, type WithCustomAttributes$1 as WithCustomAttributes, accessLevelToActions, actionsToAccessLevel, applyPipes, assertAcyclicComputedDependencies, assertLiveStreamCursor, booleanFlag, buildPropertySchema, buildQualifiedAttribute, checkbox, compareLiveStreamCursors, compileComputedFormula, compileRollupAttribute, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, date, detailView, document, evaluateComputedAst, evaluateComputedFormula, evaluateComputedFormulaWithResult, evaluateFilterState, extractAttributeNames, file, flagRegistry, form, formRegistry, formatAttributeValue, formatComputedResult, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getAttributeCapabilities, getAttributeFilterOperators, getErrorMessage, getLiveProtocolPayloadChannel, getOperatorPolarity, getRollupFilterOperators, getSystemAttributeI18nKey, getSystemAttributeList, group, inferRollupReturnType, isAttributeFilterable, isAttributeGroupable, isAttributeInUseError, isAttributeKanbanGroupable, isAttributeSearchable, isComputedFunctionName, isDefaultRole, isDetailView, isDocumentAttribute, isEmptyObject, isFieldGroup, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isListView, isLiveErrorPayload, isLiveEventEnvelope, isLiveEventPayload, isLiveEventPayloadForType, isLiveEventType, isLiveGapPayload, isLiveReplayCompletePayload, isLiveStreamCursor, isNoValueOperator, isNotEmpty, isNotFoundError, isObjectReferencedError, isPlainRecord, isProtectedResourceError, isRecordReferencedError, isRelationGroup, isSchemaError, isStandardSchema, isValidationError, jsonFlag, listView, liveChannelKey, location, matchesMime, multiselect, normaliseDocumentSlots, normalizeForEdgeRpc, number, numberFlag, object, parseComputedFormula, parseLiveChannelKey, parseLiveSubscribePayload, parseLiveUnsubscribePayload, parseQualifiedAttribute, phone, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, richtext, rollup, rollupToFormulaExpression, select, status, stringFlag, text, toUndefinedIfEmpty, user, validateAttributeName, validateQualifiedRule, validateSlotAgainstConfig, viewRegistry };
|
|
7662
|
+
export { type AIAvailableModel, type AIBatchQuestion, type AIBatchQuestionAnswer, type AIBatchQuestionOption, type AIChatMessage, type AIChatMessagePart, type AIChatMessagePartType, type AICompactionSummary, type AIGenerationInputMap, type AIGenerationResult, type AIGenerationType, type AIGenerationUsage, type AIMemoryEntry, type AIMemoryType, type AIMessageRole, type AIProviderMetrics, type AIQuestion, type AIQuestionAnswer, type AIQuestionOption, type AIQuestionType, type AITodoItem, type AITodoList, type AITodoStatus, type AIToolCall, type AIToolCallStatus, type AIUsageMetrics, ALLOWED_PROPERTY_TYPES, ALL_ACTIONS, ALL_SYSTEM_RESOURCES, ATTRIBUTE_FILTER_OPERATORS, type AccessAction, type AccessActionList, AccessDeniedError, type AccessLevel, type AccessPolicy, type AccessPolicyPreset, type AccessResourceType, type Action, type ActivityTab, ActivityTabConfig, type Actor, type ActorRoleAssignment, type ActorStatus, type ActorType, type AddAttributeInput, type AdvancedFilterState, type AgentConfig, type AgentDashboard, type AgentDefinition, type AgentEvent, type AgentExecutionConfig, type AgentExecutionPolicy, type AgentMessageAttachment, type AgentMessagePart, type AgentRun, type AgentRunStatus, type AgentSchedule, type AgentSession, type AgentSessionMessage, type AgentSessionMode, type AgentSessionPatchLiveEvent, type AgentSessionStatus, type AgentToolCall, type AgentTriggerDefinition, type AgentTriggerType, type AgentUnreadPatchLiveEvent, type ApiKey, type ApiKeyAuthContext, type ApiKeyPermission, type ApiKeyWithSecret, type AssignActorRoleInput, type AssignRoleInput, Attribute, type AttributeAgentCapabilities, type AttributeAuthoringCapabilities, type AttributeCapabilities, type AttributeCardinality, type AttributeDefaultValueCapability, type AttributeExchangeCapabilities, type AttributeGroupField, AttributeInUseError, type AttributeLifecycleCapabilities, AttributeNotFoundError, type AttributePolymorphicCapability, type AttributePresentationCapabilities, type AttributeQueryCapabilities, type AttributeRequiredCapability, type AttributeStorageCapabilities, type AttributeStorageMode, AttributeType, type AttributeUsage, type AuditAction, type AuditActorType, type AuditChange, type AuditListOptions, type AuditLogEntry, type AuditResourceType, type AuditServiceOptions, type AuditSortField, BEHAVIOR_PROPERTIES, BilateralConfig, type BoundingBox, type BuilderConfig, COMPUTED_FUNCTIONS, COMPUTED_FUNCTION_METADATA, COMPUTED_FUNCTION_NAMES, ChangeTypeNotSupportedError, type ChannelRevokedLiveEvent, CheckboxAttribute, type CompileComputedFormulaInput, CompletionStatus, type ComputedCompileAttribute, type ComputedCompileObject, type ComputedCompileSchema, ComputedDependency, type ComputedDependencyGraphNode, type ComputedFormulaAstNode, type ComputedFormulaBinaryNode, type ComputedFormulaBinaryOperator, type ComputedFormulaCallNode, ComputedFormulaCompileError, type ComputedFormulaLiteralNode, ComputedFormulaParseError, type ComputedFormulaPathNode, type ComputedFormulaResult, type ComputedFunctionCategory, type ComputedFunctionMetadata, type ComputedFunctionName, type ComputedFunctionSignature, ComputedOptionsSource, ComputedPlan, ComputedReturnType, ComputedValueType, ConcurrentModificationError, type ConfigOverrides, type ConversationRenamedLiveEvent, type CountMode, type CreateActorInput, type CreateApiKeyInput, type CreateAuditLogInput, type CreateCustomObjectInput, type CreateDBAttribute, type CreateDBForm, type CreateDBFormSubmission, type CreateDBObject, type CreateDBView, type CreateDBViewOverlay, type CreateFile, type CreateMode, type CreateObjectRecord, type CreatePermissionInput, type CreateRoleInput, type CreateSandboxExecution, type CreateUserProfile, type CreateViewInput, type CriticConfig, Currency, CurrencyAttribute, type CurrencyFilterValue, type CustomAttributeValue, type CustomTab, CustomTabConfig, type DBAttribute, type DBForm, type DBFormSubmission, type DBObject, type DBView, type DBViewOverlay, DB_COLUMN_FIELDS, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DOCUMENT_SYSTEM_ATTRIBUTES, DateAttribute, type DefaultRoleName, type DeletedMode, DestructiveSyncNotAllowedError, DetailViewBuilder, type DetailViewConfig, type DetailViewDefinition, type DetailViewLayout, DocumentAttribute, DocumentLayout, DocumentSlotConfig, DocumentSlotValidationError, type DocumentsTab, DocumentsTabConfig, type DomainEvent, DuplicateError, EMPTY_VALUE_PLACEHOLDER, type Eager, type EffectivePermissions, type EnvVarEntry, type EnvVarScope, type EventDataMap, type EventType, type ExtendedFilterRule, type ExtractRecord, type ExtractRecordInput, type ExtractRecordInputStrict, type ExtractRecordStrict, type ExtractRecordUpdate, type ExtractRecordUpdateStrict, FORM_FORBIDDEN_ATTRIBUTE_TYPES, type FeatureFlagDefinition, type FeatureFlagsConfig, type FeatureFlagsRepository, type FeatureGate, type Field, type FieldGroup, type FieldHistoryEntry, type File, FileAttribute, type FileListOptions, type FileVisibility, type FilterCombinator, type FilterGroup, type FilterOperator, type FilterRule, type FilterState, type FilterValue, type FlagLevel, type FlagOverride, FlagRegistry, FlagService, type FlagValueType, ForbiddenError, FormBuilder, type FormDefinition, type FormDensity, type FormFieldRef, type FormFieldsRow, type FormFreeFieldRef, type FormHeadingRow, FormRegistry, type FormRow, FormRowBuilder, type FormSeparatorRow, type FormSlot, type FormSlotFieldRef, type FormStatus, type FormStep, FormStepBuilder, type FormSubmission, type FormSubmissionStatus, type FormSubmittedAgentEvent, type FormTab, type FormTextRow, type FormsTab, FormulaAttribute, type FormulaGenerationAttribute, type FormulaGenerationInput, FormulaReturnType, type GeocodingAdapter, type GeocodingAutocompleteParams, type GeocodingParams, type GeocodingSuggestion, type GlobalSearchGroupedOptions, type GlobalSearchGroupedResult, type GlobalSearchOptions, type GlobalSearchResultItem, type GrantResourceAccessInput, type Group, GroupBuilder, IDENTITY_PROPERTIES, type InferAttributeValue, type InferQualifiedProps, type InverseSource, type InviteUserInput, LIVE_EVENT_TYPES, LIVE_STREAM_START_CURSOR, type ListOptions, ListViewBuilder, type ListViewConfig, type ListViewDefinition, type ListViewLayout, type ListViewTab, ListViewTabConfigBuilder, type LiveChannel, type LiveChannelKind, type LiveErrorPayload, type LiveEventEnvelope, type LiveEventPayload, type LiveEventType, type LiveGapPayload, type LiveReplayCompletePayload, type LiveSubscribePayload, type LiveUnsubscribePayload, Location, LocationAttribute, LocationGranularity, MemoryNotFoundError, type MentionEntityType, type MentionReference, type MentionedContext, type MentionedEntityContext, MigrationDefinition, MigrationTimeoutError, type ModelDefinition, MultiRelationAttribute, MultiselectAttribute, NO_VALUE_OPERATORS, type NoValueOperator, NoopGeocodingAdapter, NotFoundError, NotImplementedError, NumberAttribute, OPERATORS_BY_TYPE, OPERATOR_SPECS, ObjectBuilder, type ObjectConfig, ObjectDefinition, ObjectNotFoundError, type ObjectPermissions, ObjectReferencedError, type OcrAdapter, type OcrInput, type OcrOptions, type OcrPage, type OcrResult, type OcrTextBlock, type OperatorSpec, Option, OrphanSystemAttributeError, PRESENTATION_PROPERTIES, type PageInfo, type PageOptions, type PageResponse, type ParsedAttribute, type Permission, type PermissionScope, Phone, PhoneAttribute, type PhoneFilterValue, type PrincipalType, PropertySchema, ProtectedResourceError, ProtectedRoleError, type ProviderName, QUALIFIED_SEPARATOR, type QualifiedDocumentAttributeBuilder, type QualifiedDocumentBrand, type QueryState, type ReasoningPartData, type RecordAgentEvent, type RecordDeletedLiveEvent, type RecordFieldPatch, type RecordMetadata, RecordNotFoundError, type RecordPatchLiveEvent, type RecordReference, RecordReferencedError, type RegexGenerationInput, RelationAttribute, type RelationGroup, RelationGroupBuilder, type RelationOption, type RelationOptionsResponse, type RelationSource, RelationTarget, type RelativeDateValue, RepositoryError, type RepositoryOperation, type ResolvedFlag, type ResourceAccess, type ResourceRef, type RetryPolicy, type ReverseGeocodingParams, RichtextAttribute, type RichtextTab, RichtextTabConfig, type Role, RoleNotFoundError, RollupAttribute, RollupFunction, STANDARD_SCHEMA_VENDOR, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, type SandboxExecution, type SandboxExecutionInput, type SandboxExecutionResult, type SandboxExecutionStatus, type SandboxMode, type SandboxTrigger, SchemaError, SchemaErrorCode, SchemaOperation, type SearchOptions, SelectAttribute, type SidePanelConfig, type SidebarExtraItem, SingleRelationAttribute, type SlotMode, type SortDirection, type SortRule, type SpecificAccessAction, type StandardSchemaIssue, type StandardSchemaResult, type StaticFlagDefault, StatusAttribute, StorageError, type StorageOperation, type StorageProvider, type StreamEventCompactionEnd, type StreamEventCompactionFailed, type StreamEventCompactionStart, type StreamEventMessagePersisted, SyncCascadeError, SyncConflictError, SyncError, type SystemAttribute, type SystemAttributeI18nKey, SystemEntityImmutableError, type SystemFields, type SystemPermissions, type SystemResource, type Tab, TabBuilder, type TabType, type TableSource, type TableTab, TableTabConfig, TenantId, TextAttribute, type TextPartData, type ThinkingPartData, Timestamps, type ToolPartData, type ToolPartState, type TriggerEventType, USER_STATUSES, type UpdateActorInput, type UpdateDBAttribute, type UpdateDBForm, type UpdateDBFormSubmission, type UpdateDBObject, type UpdateDBView, type UpdateDBViewOverlay, type UpdateFile, type UpdateObjectInput, type UpdateRoleInput, type UpdateUserProfile, type UpdateViewInput, type UpsertAccessPolicyInput, type UpsertDBAttribute, type UpsertDBObject, type UpsertDBView, UserAttribute, type UserProfile, UserReferenceType, type UserRoleAssignment, type UserStatus, Uuid, ValidationError, type ValidationErrorDetail, type ViewConfig, type ViewDefinition, type ViewOverlay, type ViewProjectionStaleLiveEvent, type ViewType, type WithCustomAttributes$1 as WithCustomAttributes, accessLevelToActions, actionsToAccessLevel, applyPipes, assertAcyclicComputedDependencies, assertLiveStreamCursor, booleanFlag, buildPropertySchema, buildQualifiedAttribute, checkbox, compareLiveStreamCursors, compileComputedFormula, compileRollupAttribute, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, date, detailView, document, evaluateComputedAst, evaluateComputedFormula, evaluateComputedFormulaWithResult, evaluateFilterState, extractAttributeNames, file, flagRegistry, form, formRegistry, formatAttributeValue, formatComputedResult, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getAttributeCapabilities, getAttributeFilterOperators, getErrorMessage, getLiveProtocolPayloadChannel, getOperatorPolarity, getRollupFilterOperators, getSystemAttributeI18nKey, getSystemAttributeList, group, inferRollupReturnType, isAttributeFilterable, isAttributeGroupable, isAttributeInUseError, isAttributeKanbanGroupable, isAttributeSearchable, isComputedFunctionName, isDefaultRole, isDetailView, isDocumentAttribute, isEmptyObject, isFieldGroup, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isListView, isLiveErrorPayload, isLiveEventEnvelope, isLiveEventPayload, isLiveEventPayloadForType, isLiveEventType, isLiveGapPayload, isLiveReplayCompletePayload, isLiveStreamCursor, isNoValueOperator, isNotEmpty, isNotFoundError, isObjectReferencedError, isPlainRecord, isProtectedResourceError, isRecordReferencedError, isRelationGroup, isSchemaError, isStandardSchema, isValidationError, jsonFlag, listView, liveChannelKey, location, matchesMime, multiselect, normaliseDocumentSlots, normalizeForEdgeRpc, number, numberFlag, object, parseComputedFormula, parseLiveChannelKey, parseLiveSubscribePayload, parseLiveUnsubscribePayload, parseQualifiedAttribute, phone, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, richtext, rollup, rollupToFormulaExpression, select, status, stringFlag, text, toUndefinedIfEmpty, user, validateAttributeName, validateQualifiedRule, validateSlotAgainstConfig, viewRegistry };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { i as ComputedValueType, j as ComputedReturnType, k as AttributeType, l as ComputedOptionsSource, m as ComputedDependency, n as ComputedPlan, f as RollupAttribute, A as Attribute, o as Timestamps, p as DocumentLayout, h as CompletionStatus, q as SchemaOperation, r as LocationGranularity, s as Location, e as FormulaAttribute, t as DocumentAttribute, d as StatusAttribute, c as SelectAttribute, b as MultiselectAttribute, u as Phone, v as Currency, D as DateAttribute, U as UserAttribute, w as DocumentSlotConfig, x as PropertySchema, g as CheckboxAttribute, C as CurrencyAttribute, T as TextAttribute, N as NumberAttribute, P as PhoneAttribute, y as Option, L as LocationAttribute, F as FileAttribute, z as FormulaReturnType, R as RelationAttribute, B as BilateralConfig, S as SingleRelationAttribute, M as MultiRelationAttribute, E as RelationTarget, a as RichtextAttribute, G as RollupFunction, H as UserReferenceType, I as MigrationDefinition, O as ObjectDefinition } from './attributes-
|
|
2
|
-
export { J as AttributeGroup, K as BaseAttribute, Q as BuiltInTransform, V as ComputedAttributeState, W as ComputedFieldKind, X as ComputedStateStatus, Y as CreateDocument, Z as CreateDocumentLink, _ as CreateDocumentSlot, $ as DEFAULT_DOCUMENT_SLOT, a0 as DateFormat, a1 as DateValue, a2 as Document, a3 as DocumentKind, a4 as DocumentLayoutVariant, a5 as DocumentListOptions, a6 as DocumentSlot, a7 as DocumentWithSlots, a8 as DocumentWithSubCount, a9 as FolderPreset, aa as MAX_PRESET_DEPTH, ab as NumberUnit, ac as ObjectAttribute, ad as ObjectRecord, ae as OptionPropertyAttribute, af as PresetNode, ag as PropertyAttribute, ah as PropertyType, ai as RELATION_TARGET_ANY, aj as RESERVED_ATTRIBUTE_NAMES, ak as RecordDocuments, al as ReservedAttributeName, am as RichTextAttribute, an as SYSTEM_FIELD_NAMES, ao as SlotStatus, ap as StatusGroup, aq as SystemFieldName, ar as UpdateDocument, as as UpdateDocumentSlot, at as hasOptions, au as inferInverseCardinality, av as isAttributeSortable, aw as isBilateralRelation, ax as isUniversalRelation } from './attributes-
|
|
1
|
+
import { i as ComputedValueType, j as ComputedReturnType, k as AttributeType, l as ComputedOptionsSource, m as ComputedDependency, n as ComputedPlan, f as RollupAttribute, A as Attribute, o as Timestamps, p as DocumentLayout, h as CompletionStatus, q as SchemaOperation, r as LocationGranularity, s as Location, e as FormulaAttribute, t as DocumentAttribute, d as StatusAttribute, c as SelectAttribute, b as MultiselectAttribute, u as Phone, v as Currency, D as DateAttribute, U as UserAttribute, w as DocumentSlotConfig, x as PropertySchema, g as CheckboxAttribute, C as CurrencyAttribute, T as TextAttribute, N as NumberAttribute, P as PhoneAttribute, y as Option, L as LocationAttribute, F as FileAttribute, z as FormulaReturnType, R as RelationAttribute, B as BilateralConfig, S as SingleRelationAttribute, M as MultiRelationAttribute, E as RelationTarget, a as RichtextAttribute, G as RollupFunction, H as UserReferenceType, I as MigrationDefinition, O as ObjectDefinition } from './attributes-Cy9o_xM1.js';
|
|
2
|
+
export { J as AttributeGroup, K as BaseAttribute, Q as BuiltInTransform, V as ComputedAttributeState, W as ComputedFieldKind, X as ComputedStateStatus, Y as CreateDocument, Z as CreateDocumentLink, _ as CreateDocumentSlot, $ as DEFAULT_DOCUMENT_SLOT, a0 as DateFormat, a1 as DateValue, a2 as Document, a3 as DocumentKind, a4 as DocumentLayoutVariant, a5 as DocumentListOptions, a6 as DocumentSlot, a7 as DocumentWithSlots, a8 as DocumentWithSubCount, a9 as FolderPreset, aa as MAX_PRESET_DEPTH, ab as NumberUnit, ac as ObjectAttribute, ad as ObjectRecord, ae as OptionPropertyAttribute, af as PresetNode, ag as PropertyAttribute, ah as PropertyType, ai as RELATION_TARGET_ANY, aj as RESERVED_ATTRIBUTE_NAMES, ak as RecordDocuments, al as ReservedAttributeName, am as RichTextAttribute, an as SYSTEM_FIELD_NAMES, ao as SlotStatus, ap as StatusGroup, aq as SystemFieldName, ar as UpdateDocument, as as UpdateDocumentSlot, at as hasOptions, au as inferInverseCardinality, av as isAttributeSortable, aw as isBilateralRelation, ax as isUniversalRelation } from './attributes-Cy9o_xM1.js';
|
|
3
3
|
import { MimeType, IconName, ColorId, CountryIso3, CurrencyCode } from '@stndrds/constants';
|
|
4
4
|
import { Uuid, TenantId } from './utils.js';
|
|
5
5
|
export { UserId, asTenantId, asUserId, deepEqual, generateId, indexBy } from './utils.js';
|
|
6
6
|
import { StandardSchemaV1 } from '@standard-schema/spec';
|
|
7
7
|
export { StandardSchemaV1 } from '@standard-schema/spec';
|
|
8
8
|
import z from 'zod';
|
|
9
|
-
export { V as ValidationMessages } from './types-
|
|
9
|
+
export { V as ValidationMessages } from './types-B12E9LFe.js';
|
|
10
10
|
export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './validation/core/index.js';
|
|
11
11
|
export { parseAttributeConfig } from './validation/config/index.js';
|
|
12
|
-
export { c as computeRecordStatus, a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from './helpers-
|
|
12
|
+
export { c as computeRecordStatus, a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from './helpers-LCnn6DG3.js';
|
|
13
13
|
|
|
14
14
|
declare const COMPUTED_FUNCTION_NAMES: readonly ["if", "concat", "sum", "avg", "count", "min", "max", "earliest", "latest", "unique", "first", "percent_empty", "percent_not_empty", "count_empty", "count_not_empty", "count_unique"];
|
|
15
15
|
type ComputedFunctionName = (typeof COMPUTED_FUNCTION_NAMES)[number];
|
|
@@ -4728,6 +4728,7 @@ declare class SelectAttributeBuilder<TName extends string, TOptions extends read
|
|
|
4728
4728
|
*/
|
|
4729
4729
|
options<const T extends readonly Option[]>(value: T): SelectAttributeBuilder<TName, T, TRequired>;
|
|
4730
4730
|
option(config: Option): this;
|
|
4731
|
+
renderAs(value: "badges"): this;
|
|
4731
4732
|
required(): SelectAttributeBuilder<TName, TOptions, true>;
|
|
4732
4733
|
optional(): SelectAttributeBuilder<TName, TOptions, false>;
|
|
4733
4734
|
}
|
|
@@ -4758,6 +4759,7 @@ declare class MultiselectAttributeBuilder<TName extends string, TOptions extends
|
|
|
4758
4759
|
*/
|
|
4759
4760
|
options<const T extends readonly Option[]>(value: T): MultiselectAttributeBuilder<TName, T, TRequired>;
|
|
4760
4761
|
option(config: Option): this;
|
|
4762
|
+
renderAs(value: "badges"): this;
|
|
4761
4763
|
required(): MultiselectAttributeBuilder<TName, TOptions, true>;
|
|
4762
4764
|
optional(): MultiselectAttributeBuilder<TName, TOptions, false>;
|
|
4763
4765
|
}
|
|
@@ -5351,6 +5353,16 @@ declare class MigrationBuilder {
|
|
|
5351
5353
|
build(): MigrationDefinition;
|
|
5352
5354
|
}
|
|
5353
5355
|
|
|
5356
|
+
/**
|
|
5357
|
+
* Configuration for the `object()` builder factory.
|
|
5358
|
+
*/
|
|
5359
|
+
interface ObjectConfig extends BuilderConfig {
|
|
5360
|
+
/**
|
|
5361
|
+
* Optional explicit object id. In production the id is assigned by the
|
|
5362
|
+
* database at sync time; provide one for deterministic ids in tests/fixtures.
|
|
5363
|
+
*/
|
|
5364
|
+
id?: string;
|
|
5365
|
+
}
|
|
5354
5366
|
/**
|
|
5355
5367
|
* Extract attribute info from a builder instance
|
|
5356
5368
|
*/
|
|
@@ -5487,7 +5499,7 @@ declare class ObjectBuilder<TRecord extends Record<string, unknown> = {}> implem
|
|
|
5487
5499
|
* @see https://standardschema.dev/
|
|
5488
5500
|
*/
|
|
5489
5501
|
get "~standard"(): StandardSchemaV1.Props<unknown, Record<string, unknown>>;
|
|
5490
|
-
constructor(config:
|
|
5502
|
+
constructor(config: ObjectConfig);
|
|
5491
5503
|
/**
|
|
5492
5504
|
* Set object description
|
|
5493
5505
|
*/
|
|
@@ -5654,7 +5666,7 @@ declare class ObjectBuilder<TRecord extends Record<string, unknown> = {}> implem
|
|
|
5654
5666
|
* };
|
|
5655
5667
|
* ```
|
|
5656
5668
|
*/
|
|
5657
|
-
declare function object(config:
|
|
5669
|
+
declare function object(config: ObjectConfig): ObjectBuilder<{}>;
|
|
5658
5670
|
|
|
5659
5671
|
/**
|
|
5660
5672
|
* Builder for creating form groups
|
|
@@ -7647,4 +7659,4 @@ interface QualifiedRuleValidationContext {
|
|
|
7647
7659
|
}
|
|
7648
7660
|
declare function validateQualifiedRule(rule: FilterRule, context: QualifiedRuleValidationContext): void;
|
|
7649
7661
|
|
|
7650
|
-
export { type AIAvailableModel, type AIBatchQuestion, type AIBatchQuestionAnswer, type AIBatchQuestionOption, type AIChatMessage, type AIChatMessagePart, type AIChatMessagePartType, type AICompactionSummary, type AIGenerationInputMap, type AIGenerationResult, type AIGenerationType, type AIGenerationUsage, type AIMemoryEntry, type AIMemoryType, type AIMessageRole, type AIProviderMetrics, type AIQuestion, type AIQuestionAnswer, type AIQuestionOption, type AIQuestionType, type AITodoItem, type AITodoList, type AITodoStatus, type AIToolCall, type AIToolCallStatus, type AIUsageMetrics, ALLOWED_PROPERTY_TYPES, ALL_ACTIONS, ALL_SYSTEM_RESOURCES, ATTRIBUTE_FILTER_OPERATORS, type AccessAction, type AccessActionList, AccessDeniedError, type AccessLevel, type AccessPolicy, type AccessPolicyPreset, type AccessResourceType, type Action, type ActivityTab, ActivityTabConfig, type Actor, type ActorRoleAssignment, type ActorStatus, type ActorType, type AddAttributeInput, type AdvancedFilterState, type AgentConfig, type AgentDashboard, type AgentDefinition, type AgentEvent, type AgentExecutionConfig, type AgentExecutionPolicy, type AgentMessageAttachment, type AgentMessagePart, type AgentRun, type AgentRunStatus, type AgentSchedule, type AgentSession, type AgentSessionMessage, type AgentSessionMode, type AgentSessionPatchLiveEvent, type AgentSessionStatus, type AgentToolCall, type AgentTriggerDefinition, type AgentTriggerType, type AgentUnreadPatchLiveEvent, type ApiKey, type ApiKeyAuthContext, type ApiKeyPermission, type ApiKeyWithSecret, type AssignActorRoleInput, type AssignRoleInput, Attribute, type AttributeAgentCapabilities, type AttributeAuthoringCapabilities, type AttributeCapabilities, type AttributeCardinality, type AttributeDefaultValueCapability, type AttributeExchangeCapabilities, type AttributeGroupField, AttributeInUseError, type AttributeLifecycleCapabilities, AttributeNotFoundError, type AttributePolymorphicCapability, type AttributePresentationCapabilities, type AttributeQueryCapabilities, type AttributeRequiredCapability, type AttributeStorageCapabilities, type AttributeStorageMode, AttributeType, type AttributeUsage, type AuditAction, type AuditActorType, type AuditChange, type AuditListOptions, type AuditLogEntry, type AuditResourceType, type AuditServiceOptions, type AuditSortField, BEHAVIOR_PROPERTIES, BilateralConfig, type BoundingBox, type BuilderConfig, COMPUTED_FUNCTIONS, COMPUTED_FUNCTION_METADATA, COMPUTED_FUNCTION_NAMES, ChangeTypeNotSupportedError, type ChannelRevokedLiveEvent, CheckboxAttribute, type CompileComputedFormulaInput, CompletionStatus, type ComputedCompileAttribute, type ComputedCompileObject, type ComputedCompileSchema, ComputedDependency, type ComputedDependencyGraphNode, type ComputedFormulaAstNode, type ComputedFormulaBinaryNode, type ComputedFormulaBinaryOperator, type ComputedFormulaCallNode, ComputedFormulaCompileError, type ComputedFormulaLiteralNode, ComputedFormulaParseError, type ComputedFormulaPathNode, type ComputedFormulaResult, type ComputedFunctionCategory, type ComputedFunctionMetadata, type ComputedFunctionName, type ComputedFunctionSignature, ComputedOptionsSource, ComputedPlan, ComputedReturnType, ComputedValueType, ConcurrentModificationError, type ConfigOverrides, type ConversationRenamedLiveEvent, type CountMode, type CreateActorInput, type CreateApiKeyInput, type CreateAuditLogInput, type CreateCustomObjectInput, type CreateDBAttribute, type CreateDBForm, type CreateDBFormSubmission, type CreateDBObject, type CreateDBView, type CreateDBViewOverlay, type CreateFile, type CreateMode, type CreateObjectRecord, type CreatePermissionInput, type CreateRoleInput, type CreateSandboxExecution, type CreateUserProfile, type CreateViewInput, type CriticConfig, Currency, CurrencyAttribute, type CurrencyFilterValue, type CustomAttributeValue, type CustomTab, CustomTabConfig, type DBAttribute, type DBForm, type DBFormSubmission, type DBObject, type DBView, type DBViewOverlay, DB_COLUMN_FIELDS, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DOCUMENT_SYSTEM_ATTRIBUTES, DateAttribute, type DefaultRoleName, type DeletedMode, DestructiveSyncNotAllowedError, DetailViewBuilder, type DetailViewConfig, type DetailViewDefinition, type DetailViewLayout, DocumentAttribute, DocumentLayout, DocumentSlotConfig, DocumentSlotValidationError, type DocumentsTab, DocumentsTabConfig, type DomainEvent, DuplicateError, EMPTY_VALUE_PLACEHOLDER, type Eager, type EffectivePermissions, type EnvVarEntry, type EnvVarScope, type EventDataMap, type EventType, type ExtendedFilterRule, type ExtractRecord, type ExtractRecordInput, type ExtractRecordInputStrict, type ExtractRecordStrict, type ExtractRecordUpdate, type ExtractRecordUpdateStrict, FORM_FORBIDDEN_ATTRIBUTE_TYPES, type FeatureFlagDefinition, type FeatureFlagsConfig, type FeatureFlagsRepository, type FeatureGate, type Field, type FieldGroup, type FieldHistoryEntry, type File, FileAttribute, type FileListOptions, type FileVisibility, type FilterCombinator, type FilterGroup, type FilterOperator, type FilterRule, type FilterState, type FilterValue, type FlagLevel, type FlagOverride, FlagRegistry, FlagService, type FlagValueType, ForbiddenError, FormBuilder, type FormDefinition, type FormDensity, type FormFieldRef, type FormFieldsRow, type FormFreeFieldRef, type FormHeadingRow, FormRegistry, type FormRow, FormRowBuilder, type FormSeparatorRow, type FormSlot, type FormSlotFieldRef, type FormStatus, type FormStep, FormStepBuilder, type FormSubmission, type FormSubmissionStatus, type FormSubmittedAgentEvent, type FormTab, type FormTextRow, type FormsTab, FormulaAttribute, type FormulaGenerationAttribute, type FormulaGenerationInput, FormulaReturnType, type GeocodingAdapter, type GeocodingAutocompleteParams, type GeocodingParams, type GeocodingSuggestion, type GlobalSearchGroupedOptions, type GlobalSearchGroupedResult, type GlobalSearchOptions, type GlobalSearchResultItem, type GrantResourceAccessInput, type Group, GroupBuilder, IDENTITY_PROPERTIES, type InferAttributeValue, type InferQualifiedProps, type InverseSource, type InviteUserInput, LIVE_EVENT_TYPES, LIVE_STREAM_START_CURSOR, type ListOptions, ListViewBuilder, type ListViewConfig, type ListViewDefinition, type ListViewLayout, type ListViewTab, ListViewTabConfigBuilder, type LiveChannel, type LiveChannelKind, type LiveErrorPayload, type LiveEventEnvelope, type LiveEventPayload, type LiveEventType, type LiveGapPayload, type LiveReplayCompletePayload, type LiveSubscribePayload, type LiveUnsubscribePayload, Location, LocationAttribute, LocationGranularity, MemoryNotFoundError, type MentionEntityType, type MentionReference, type MentionedContext, type MentionedEntityContext, MigrationDefinition, MigrationTimeoutError, type ModelDefinition, MultiRelationAttribute, MultiselectAttribute, NO_VALUE_OPERATORS, type NoValueOperator, NoopGeocodingAdapter, NotFoundError, NotImplementedError, NumberAttribute, OPERATORS_BY_TYPE, OPERATOR_SPECS, ObjectBuilder, ObjectDefinition, ObjectNotFoundError, type ObjectPermissions, ObjectReferencedError, type OcrAdapter, type OcrInput, type OcrOptions, type OcrPage, type OcrResult, type OcrTextBlock, type OperatorSpec, Option, OrphanSystemAttributeError, PRESENTATION_PROPERTIES, type PageInfo, type PageOptions, type PageResponse, type ParsedAttribute, type Permission, type PermissionScope, Phone, PhoneAttribute, type PhoneFilterValue, type PrincipalType, PropertySchema, ProtectedResourceError, ProtectedRoleError, type ProviderName, QUALIFIED_SEPARATOR, type QualifiedDocumentAttributeBuilder, type QualifiedDocumentBrand, type QueryState, type ReasoningPartData, type RecordAgentEvent, type RecordDeletedLiveEvent, type RecordFieldPatch, type RecordMetadata, RecordNotFoundError, type RecordPatchLiveEvent, type RecordReference, RecordReferencedError, type RegexGenerationInput, RelationAttribute, type RelationGroup, RelationGroupBuilder, type RelationOption, type RelationOptionsResponse, type RelationSource, RelationTarget, type RelativeDateValue, RepositoryError, type RepositoryOperation, type ResolvedFlag, type ResourceAccess, type ResourceRef, type RetryPolicy, type ReverseGeocodingParams, RichtextAttribute, type RichtextTab, RichtextTabConfig, type Role, RoleNotFoundError, RollupAttribute, RollupFunction, STANDARD_SCHEMA_VENDOR, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, type SandboxExecution, type SandboxExecutionInput, type SandboxExecutionResult, type SandboxExecutionStatus, type SandboxMode, type SandboxTrigger, SchemaError, SchemaErrorCode, SchemaOperation, type SearchOptions, SelectAttribute, type SidePanelConfig, type SidebarExtraItem, SingleRelationAttribute, type SlotMode, type SortDirection, type SortRule, type SpecificAccessAction, type StandardSchemaIssue, type StandardSchemaResult, type StaticFlagDefault, StatusAttribute, StorageError, type StorageOperation, type StorageProvider, type StreamEventCompactionEnd, type StreamEventCompactionFailed, type StreamEventCompactionStart, type StreamEventMessagePersisted, SyncCascadeError, SyncConflictError, SyncError, type SystemAttribute, type SystemAttributeI18nKey, SystemEntityImmutableError, type SystemFields, type SystemPermissions, type SystemResource, type Tab, TabBuilder, type TabType, type TableSource, type TableTab, TableTabConfig, TenantId, TextAttribute, type TextPartData, type ThinkingPartData, Timestamps, type ToolPartData, type ToolPartState, type TriggerEventType, USER_STATUSES, type UpdateActorInput, type UpdateDBAttribute, type UpdateDBForm, type UpdateDBFormSubmission, type UpdateDBObject, type UpdateDBView, type UpdateDBViewOverlay, type UpdateFile, type UpdateObjectInput, type UpdateRoleInput, type UpdateUserProfile, type UpdateViewInput, type UpsertAccessPolicyInput, type UpsertDBAttribute, type UpsertDBObject, type UpsertDBView, UserAttribute, type UserProfile, UserReferenceType, type UserRoleAssignment, type UserStatus, Uuid, ValidationError, type ValidationErrorDetail, type ViewConfig, type ViewDefinition, type ViewOverlay, type ViewProjectionStaleLiveEvent, type ViewType, type WithCustomAttributes$1 as WithCustomAttributes, accessLevelToActions, actionsToAccessLevel, applyPipes, assertAcyclicComputedDependencies, assertLiveStreamCursor, booleanFlag, buildPropertySchema, buildQualifiedAttribute, checkbox, compareLiveStreamCursors, compileComputedFormula, compileRollupAttribute, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, date, detailView, document, evaluateComputedAst, evaluateComputedFormula, evaluateComputedFormulaWithResult, evaluateFilterState, extractAttributeNames, file, flagRegistry, form, formRegistry, formatAttributeValue, formatComputedResult, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getAttributeCapabilities, getAttributeFilterOperators, getErrorMessage, getLiveProtocolPayloadChannel, getOperatorPolarity, getRollupFilterOperators, getSystemAttributeI18nKey, getSystemAttributeList, group, inferRollupReturnType, isAttributeFilterable, isAttributeGroupable, isAttributeInUseError, isAttributeKanbanGroupable, isAttributeSearchable, isComputedFunctionName, isDefaultRole, isDetailView, isDocumentAttribute, isEmptyObject, isFieldGroup, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isListView, isLiveErrorPayload, isLiveEventEnvelope, isLiveEventPayload, isLiveEventPayloadForType, isLiveEventType, isLiveGapPayload, isLiveReplayCompletePayload, isLiveStreamCursor, isNoValueOperator, isNotEmpty, isNotFoundError, isObjectReferencedError, isPlainRecord, isProtectedResourceError, isRecordReferencedError, isRelationGroup, isSchemaError, isStandardSchema, isValidationError, jsonFlag, listView, liveChannelKey, location, matchesMime, multiselect, normaliseDocumentSlots, normalizeForEdgeRpc, number, numberFlag, object, parseComputedFormula, parseLiveChannelKey, parseLiveSubscribePayload, parseLiveUnsubscribePayload, parseQualifiedAttribute, phone, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, richtext, rollup, rollupToFormulaExpression, select, status, stringFlag, text, toUndefinedIfEmpty, user, validateAttributeName, validateQualifiedRule, validateSlotAgainstConfig, viewRegistry };
|
|
7662
|
+
export { type AIAvailableModel, type AIBatchQuestion, type AIBatchQuestionAnswer, type AIBatchQuestionOption, type AIChatMessage, type AIChatMessagePart, type AIChatMessagePartType, type AICompactionSummary, type AIGenerationInputMap, type AIGenerationResult, type AIGenerationType, type AIGenerationUsage, type AIMemoryEntry, type AIMemoryType, type AIMessageRole, type AIProviderMetrics, type AIQuestion, type AIQuestionAnswer, type AIQuestionOption, type AIQuestionType, type AITodoItem, type AITodoList, type AITodoStatus, type AIToolCall, type AIToolCallStatus, type AIUsageMetrics, ALLOWED_PROPERTY_TYPES, ALL_ACTIONS, ALL_SYSTEM_RESOURCES, ATTRIBUTE_FILTER_OPERATORS, type AccessAction, type AccessActionList, AccessDeniedError, type AccessLevel, type AccessPolicy, type AccessPolicyPreset, type AccessResourceType, type Action, type ActivityTab, ActivityTabConfig, type Actor, type ActorRoleAssignment, type ActorStatus, type ActorType, type AddAttributeInput, type AdvancedFilterState, type AgentConfig, type AgentDashboard, type AgentDefinition, type AgentEvent, type AgentExecutionConfig, type AgentExecutionPolicy, type AgentMessageAttachment, type AgentMessagePart, type AgentRun, type AgentRunStatus, type AgentSchedule, type AgentSession, type AgentSessionMessage, type AgentSessionMode, type AgentSessionPatchLiveEvent, type AgentSessionStatus, type AgentToolCall, type AgentTriggerDefinition, type AgentTriggerType, type AgentUnreadPatchLiveEvent, type ApiKey, type ApiKeyAuthContext, type ApiKeyPermission, type ApiKeyWithSecret, type AssignActorRoleInput, type AssignRoleInput, Attribute, type AttributeAgentCapabilities, type AttributeAuthoringCapabilities, type AttributeCapabilities, type AttributeCardinality, type AttributeDefaultValueCapability, type AttributeExchangeCapabilities, type AttributeGroupField, AttributeInUseError, type AttributeLifecycleCapabilities, AttributeNotFoundError, type AttributePolymorphicCapability, type AttributePresentationCapabilities, type AttributeQueryCapabilities, type AttributeRequiredCapability, type AttributeStorageCapabilities, type AttributeStorageMode, AttributeType, type AttributeUsage, type AuditAction, type AuditActorType, type AuditChange, type AuditListOptions, type AuditLogEntry, type AuditResourceType, type AuditServiceOptions, type AuditSortField, BEHAVIOR_PROPERTIES, BilateralConfig, type BoundingBox, type BuilderConfig, COMPUTED_FUNCTIONS, COMPUTED_FUNCTION_METADATA, COMPUTED_FUNCTION_NAMES, ChangeTypeNotSupportedError, type ChannelRevokedLiveEvent, CheckboxAttribute, type CompileComputedFormulaInput, CompletionStatus, type ComputedCompileAttribute, type ComputedCompileObject, type ComputedCompileSchema, ComputedDependency, type ComputedDependencyGraphNode, type ComputedFormulaAstNode, type ComputedFormulaBinaryNode, type ComputedFormulaBinaryOperator, type ComputedFormulaCallNode, ComputedFormulaCompileError, type ComputedFormulaLiteralNode, ComputedFormulaParseError, type ComputedFormulaPathNode, type ComputedFormulaResult, type ComputedFunctionCategory, type ComputedFunctionMetadata, type ComputedFunctionName, type ComputedFunctionSignature, ComputedOptionsSource, ComputedPlan, ComputedReturnType, ComputedValueType, ConcurrentModificationError, type ConfigOverrides, type ConversationRenamedLiveEvent, type CountMode, type CreateActorInput, type CreateApiKeyInput, type CreateAuditLogInput, type CreateCustomObjectInput, type CreateDBAttribute, type CreateDBForm, type CreateDBFormSubmission, type CreateDBObject, type CreateDBView, type CreateDBViewOverlay, type CreateFile, type CreateMode, type CreateObjectRecord, type CreatePermissionInput, type CreateRoleInput, type CreateSandboxExecution, type CreateUserProfile, type CreateViewInput, type CriticConfig, Currency, CurrencyAttribute, type CurrencyFilterValue, type CustomAttributeValue, type CustomTab, CustomTabConfig, type DBAttribute, type DBForm, type DBFormSubmission, type DBObject, type DBView, type DBViewOverlay, DB_COLUMN_FIELDS, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DOCUMENT_SYSTEM_ATTRIBUTES, DateAttribute, type DefaultRoleName, type DeletedMode, DestructiveSyncNotAllowedError, DetailViewBuilder, type DetailViewConfig, type DetailViewDefinition, type DetailViewLayout, DocumentAttribute, DocumentLayout, DocumentSlotConfig, DocumentSlotValidationError, type DocumentsTab, DocumentsTabConfig, type DomainEvent, DuplicateError, EMPTY_VALUE_PLACEHOLDER, type Eager, type EffectivePermissions, type EnvVarEntry, type EnvVarScope, type EventDataMap, type EventType, type ExtendedFilterRule, type ExtractRecord, type ExtractRecordInput, type ExtractRecordInputStrict, type ExtractRecordStrict, type ExtractRecordUpdate, type ExtractRecordUpdateStrict, FORM_FORBIDDEN_ATTRIBUTE_TYPES, type FeatureFlagDefinition, type FeatureFlagsConfig, type FeatureFlagsRepository, type FeatureGate, type Field, type FieldGroup, type FieldHistoryEntry, type File, FileAttribute, type FileListOptions, type FileVisibility, type FilterCombinator, type FilterGroup, type FilterOperator, type FilterRule, type FilterState, type FilterValue, type FlagLevel, type FlagOverride, FlagRegistry, FlagService, type FlagValueType, ForbiddenError, FormBuilder, type FormDefinition, type FormDensity, type FormFieldRef, type FormFieldsRow, type FormFreeFieldRef, type FormHeadingRow, FormRegistry, type FormRow, FormRowBuilder, type FormSeparatorRow, type FormSlot, type FormSlotFieldRef, type FormStatus, type FormStep, FormStepBuilder, type FormSubmission, type FormSubmissionStatus, type FormSubmittedAgentEvent, type FormTab, type FormTextRow, type FormsTab, FormulaAttribute, type FormulaGenerationAttribute, type FormulaGenerationInput, FormulaReturnType, type GeocodingAdapter, type GeocodingAutocompleteParams, type GeocodingParams, type GeocodingSuggestion, type GlobalSearchGroupedOptions, type GlobalSearchGroupedResult, type GlobalSearchOptions, type GlobalSearchResultItem, type GrantResourceAccessInput, type Group, GroupBuilder, IDENTITY_PROPERTIES, type InferAttributeValue, type InferQualifiedProps, type InverseSource, type InviteUserInput, LIVE_EVENT_TYPES, LIVE_STREAM_START_CURSOR, type ListOptions, ListViewBuilder, type ListViewConfig, type ListViewDefinition, type ListViewLayout, type ListViewTab, ListViewTabConfigBuilder, type LiveChannel, type LiveChannelKind, type LiveErrorPayload, type LiveEventEnvelope, type LiveEventPayload, type LiveEventType, type LiveGapPayload, type LiveReplayCompletePayload, type LiveSubscribePayload, type LiveUnsubscribePayload, Location, LocationAttribute, LocationGranularity, MemoryNotFoundError, type MentionEntityType, type MentionReference, type MentionedContext, type MentionedEntityContext, MigrationDefinition, MigrationTimeoutError, type ModelDefinition, MultiRelationAttribute, MultiselectAttribute, NO_VALUE_OPERATORS, type NoValueOperator, NoopGeocodingAdapter, NotFoundError, NotImplementedError, NumberAttribute, OPERATORS_BY_TYPE, OPERATOR_SPECS, ObjectBuilder, type ObjectConfig, ObjectDefinition, ObjectNotFoundError, type ObjectPermissions, ObjectReferencedError, type OcrAdapter, type OcrInput, type OcrOptions, type OcrPage, type OcrResult, type OcrTextBlock, type OperatorSpec, Option, OrphanSystemAttributeError, PRESENTATION_PROPERTIES, type PageInfo, type PageOptions, type PageResponse, type ParsedAttribute, type Permission, type PermissionScope, Phone, PhoneAttribute, type PhoneFilterValue, type PrincipalType, PropertySchema, ProtectedResourceError, ProtectedRoleError, type ProviderName, QUALIFIED_SEPARATOR, type QualifiedDocumentAttributeBuilder, type QualifiedDocumentBrand, type QueryState, type ReasoningPartData, type RecordAgentEvent, type RecordDeletedLiveEvent, type RecordFieldPatch, type RecordMetadata, RecordNotFoundError, type RecordPatchLiveEvent, type RecordReference, RecordReferencedError, type RegexGenerationInput, RelationAttribute, type RelationGroup, RelationGroupBuilder, type RelationOption, type RelationOptionsResponse, type RelationSource, RelationTarget, type RelativeDateValue, RepositoryError, type RepositoryOperation, type ResolvedFlag, type ResourceAccess, type ResourceRef, type RetryPolicy, type ReverseGeocodingParams, RichtextAttribute, type RichtextTab, RichtextTabConfig, type Role, RoleNotFoundError, RollupAttribute, RollupFunction, STANDARD_SCHEMA_VENDOR, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, type SandboxExecution, type SandboxExecutionInput, type SandboxExecutionResult, type SandboxExecutionStatus, type SandboxMode, type SandboxTrigger, SchemaError, SchemaErrorCode, SchemaOperation, type SearchOptions, SelectAttribute, type SidePanelConfig, type SidebarExtraItem, SingleRelationAttribute, type SlotMode, type SortDirection, type SortRule, type SpecificAccessAction, type StandardSchemaIssue, type StandardSchemaResult, type StaticFlagDefault, StatusAttribute, StorageError, type StorageOperation, type StorageProvider, type StreamEventCompactionEnd, type StreamEventCompactionFailed, type StreamEventCompactionStart, type StreamEventMessagePersisted, SyncCascadeError, SyncConflictError, SyncError, type SystemAttribute, type SystemAttributeI18nKey, SystemEntityImmutableError, type SystemFields, type SystemPermissions, type SystemResource, type Tab, TabBuilder, type TabType, type TableSource, type TableTab, TableTabConfig, TenantId, TextAttribute, type TextPartData, type ThinkingPartData, Timestamps, type ToolPartData, type ToolPartState, type TriggerEventType, USER_STATUSES, type UpdateActorInput, type UpdateDBAttribute, type UpdateDBForm, type UpdateDBFormSubmission, type UpdateDBObject, type UpdateDBView, type UpdateDBViewOverlay, type UpdateFile, type UpdateObjectInput, type UpdateRoleInput, type UpdateUserProfile, type UpdateViewInput, type UpsertAccessPolicyInput, type UpsertDBAttribute, type UpsertDBObject, type UpsertDBView, UserAttribute, type UserProfile, UserReferenceType, type UserRoleAssignment, type UserStatus, Uuid, ValidationError, type ValidationErrorDetail, type ViewConfig, type ViewDefinition, type ViewOverlay, type ViewProjectionStaleLiveEvent, type ViewType, type WithCustomAttributes$1 as WithCustomAttributes, accessLevelToActions, actionsToAccessLevel, applyPipes, assertAcyclicComputedDependencies, assertLiveStreamCursor, booleanFlag, buildPropertySchema, buildQualifiedAttribute, checkbox, compareLiveStreamCursors, compileComputedFormula, compileRollupAttribute, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, date, detailView, document, evaluateComputedAst, evaluateComputedFormula, evaluateComputedFormulaWithResult, evaluateFilterState, extractAttributeNames, file, flagRegistry, form, formRegistry, formatAttributeValue, formatComputedResult, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getAttributeCapabilities, getAttributeFilterOperators, getErrorMessage, getLiveProtocolPayloadChannel, getOperatorPolarity, getRollupFilterOperators, getSystemAttributeI18nKey, getSystemAttributeList, group, inferRollupReturnType, isAttributeFilterable, isAttributeGroupable, isAttributeInUseError, isAttributeKanbanGroupable, isAttributeSearchable, isComputedFunctionName, isDefaultRole, isDetailView, isDocumentAttribute, isEmptyObject, isFieldGroup, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isListView, isLiveErrorPayload, isLiveEventEnvelope, isLiveEventPayload, isLiveEventPayloadForType, isLiveEventType, isLiveGapPayload, isLiveReplayCompletePayload, isLiveStreamCursor, isNoValueOperator, isNotEmpty, isNotFoundError, isObjectReferencedError, isPlainRecord, isProtectedResourceError, isRecordReferencedError, isRelationGroup, isSchemaError, isStandardSchema, isValidationError, jsonFlag, listView, liveChannelKey, location, matchesMime, multiselect, normaliseDocumentSlots, normalizeForEdgeRpc, number, numberFlag, object, parseComputedFormula, parseLiveChannelKey, parseLiveSubscribePayload, parseLiveUnsubscribePayload, parseQualifiedAttribute, phone, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, richtext, rollup, rollupToFormulaExpression, select, status, stringFlag, text, toUndefinedIfEmpty, user, validateAttributeName, validateQualifiedRule, validateSlotAgainstConfig, viewRegistry };
|
package/dist/index.js
CHANGED
|
@@ -139,7 +139,6 @@ var ATTRIBUTE_FILTER_OPERATORS = {
|
|
|
139
139
|
};
|
|
140
140
|
var COMPUTED_TYPES = /* @__PURE__ */ new Set(["formula", "rollup"]);
|
|
141
141
|
var EDGE_BACKED_TYPES = /* @__PURE__ */ new Set(["file", "user", "relation", "document"]);
|
|
142
|
-
var DIRECT_EDIT_TYPES = /* @__PURE__ */ new Set(["checkbox"]);
|
|
143
142
|
var STATIC_DEFAULT_TYPES = /* @__PURE__ */ new Set([
|
|
144
143
|
"text",
|
|
145
144
|
"richtext",
|
|
@@ -202,6 +201,7 @@ function getAttributeCapabilities(attribute) {
|
|
|
202
201
|
const maxItems = supportsMaxItems(attribute);
|
|
203
202
|
const placeholder = PLACEHOLDER_TYPES.has(attribute.type);
|
|
204
203
|
const warningWhenDeprecated = Boolean(attribute.deprecated && !suppressed);
|
|
204
|
+
const editMode = resolveEditMode(attribute);
|
|
205
205
|
return {
|
|
206
206
|
lifecycle: {
|
|
207
207
|
active,
|
|
@@ -222,7 +222,7 @@ function getAttributeCapabilities(attribute) {
|
|
|
222
222
|
authoring: {
|
|
223
223
|
editable,
|
|
224
224
|
readOnly,
|
|
225
|
-
directEdit: editable &&
|
|
225
|
+
directEdit: editable && editMode === "inline",
|
|
226
226
|
required,
|
|
227
227
|
defaultValue,
|
|
228
228
|
placeholder,
|
|
@@ -233,7 +233,7 @@ function getAttributeCapabilities(attribute) {
|
|
|
233
233
|
tableCell: !suppressed && isTableCellType(attribute.type),
|
|
234
234
|
defaultColumn: !suppressed && isDefaultColumnType(attribute.type),
|
|
235
235
|
compactDisplay: !suppressed,
|
|
236
|
-
popoverEditor: !suppressed &&
|
|
236
|
+
popoverEditor: !suppressed && editMode === "popover",
|
|
237
237
|
placeholder,
|
|
238
238
|
warningWhenDeprecated
|
|
239
239
|
},
|
|
@@ -339,8 +339,22 @@ function isTableCellType(type) {
|
|
|
339
339
|
function isFormFieldType(type) {
|
|
340
340
|
return type !== "richtext";
|
|
341
341
|
}
|
|
342
|
-
function
|
|
343
|
-
|
|
342
|
+
function resolveEditMode(attribute) {
|
|
343
|
+
switch (attribute.type) {
|
|
344
|
+
case "checkbox":
|
|
345
|
+
return "inline";
|
|
346
|
+
case "number":
|
|
347
|
+
return attribute.renderAs === "rating" ? "inline" : "default";
|
|
348
|
+
case "select":
|
|
349
|
+
case "multiselect":
|
|
350
|
+
return attribute.renderAs === "badges" ? "inline" : "popover";
|
|
351
|
+
case "status":
|
|
352
|
+
case "relation":
|
|
353
|
+
case "user":
|
|
354
|
+
return "popover";
|
|
355
|
+
default:
|
|
356
|
+
return "default";
|
|
357
|
+
}
|
|
344
358
|
}
|
|
345
359
|
function isGroupableType(type) {
|
|
346
360
|
return type === "status" || type === "currency";
|
|
@@ -1591,6 +1605,10 @@ var SelectAttributeBuilder = class extends BaseAttributeBuilder {
|
|
|
1591
1605
|
this.attr.options.push(config);
|
|
1592
1606
|
return this;
|
|
1593
1607
|
}
|
|
1608
|
+
renderAs(value) {
|
|
1609
|
+
this.attr.renderAs = value;
|
|
1610
|
+
return this;
|
|
1611
|
+
}
|
|
1594
1612
|
required() {
|
|
1595
1613
|
this.setRequired(true);
|
|
1596
1614
|
return this.asRequiredState();
|
|
@@ -1625,6 +1643,10 @@ var MultiselectAttributeBuilder = class extends BaseAttributeBuilder {
|
|
|
1625
1643
|
this.attr.options.push(config);
|
|
1626
1644
|
return this;
|
|
1627
1645
|
}
|
|
1646
|
+
renderAs(value) {
|
|
1647
|
+
this.attr.renderAs = value;
|
|
1648
|
+
return this;
|
|
1649
|
+
}
|
|
1628
1650
|
required() {
|
|
1629
1651
|
this.setRequired(true);
|
|
1630
1652
|
return this.asRequiredState();
|
|
@@ -2466,6 +2488,9 @@ var ObjectBuilder = class {
|
|
|
2466
2488
|
attributes: [],
|
|
2467
2489
|
system: true
|
|
2468
2490
|
};
|
|
2491
|
+
if (config.id) {
|
|
2492
|
+
this.obj.id = config.id;
|
|
2493
|
+
}
|
|
2469
2494
|
}
|
|
2470
2495
|
/**
|
|
2471
2496
|
* Standard Schema v1 interface implementation.
|
package/dist/index.mjs
CHANGED
|
@@ -135,7 +135,6 @@ var ATTRIBUTE_FILTER_OPERATORS = {
|
|
|
135
135
|
};
|
|
136
136
|
var COMPUTED_TYPES = /* @__PURE__ */ new Set(["formula", "rollup"]);
|
|
137
137
|
var EDGE_BACKED_TYPES = /* @__PURE__ */ new Set(["file", "user", "relation", "document"]);
|
|
138
|
-
var DIRECT_EDIT_TYPES = /* @__PURE__ */ new Set(["checkbox"]);
|
|
139
138
|
var STATIC_DEFAULT_TYPES = /* @__PURE__ */ new Set([
|
|
140
139
|
"text",
|
|
141
140
|
"richtext",
|
|
@@ -198,6 +197,7 @@ function getAttributeCapabilities(attribute) {
|
|
|
198
197
|
const maxItems = supportsMaxItems(attribute);
|
|
199
198
|
const placeholder = PLACEHOLDER_TYPES.has(attribute.type);
|
|
200
199
|
const warningWhenDeprecated = Boolean(attribute.deprecated && !suppressed);
|
|
200
|
+
const editMode = resolveEditMode(attribute);
|
|
201
201
|
return {
|
|
202
202
|
lifecycle: {
|
|
203
203
|
active,
|
|
@@ -218,7 +218,7 @@ function getAttributeCapabilities(attribute) {
|
|
|
218
218
|
authoring: {
|
|
219
219
|
editable,
|
|
220
220
|
readOnly,
|
|
221
|
-
directEdit: editable &&
|
|
221
|
+
directEdit: editable && editMode === "inline",
|
|
222
222
|
required,
|
|
223
223
|
defaultValue,
|
|
224
224
|
placeholder,
|
|
@@ -229,7 +229,7 @@ function getAttributeCapabilities(attribute) {
|
|
|
229
229
|
tableCell: !suppressed && isTableCellType(attribute.type),
|
|
230
230
|
defaultColumn: !suppressed && isDefaultColumnType(attribute.type),
|
|
231
231
|
compactDisplay: !suppressed,
|
|
232
|
-
popoverEditor: !suppressed &&
|
|
232
|
+
popoverEditor: !suppressed && editMode === "popover",
|
|
233
233
|
placeholder,
|
|
234
234
|
warningWhenDeprecated
|
|
235
235
|
},
|
|
@@ -335,8 +335,22 @@ function isTableCellType(type) {
|
|
|
335
335
|
function isFormFieldType(type) {
|
|
336
336
|
return type !== "richtext";
|
|
337
337
|
}
|
|
338
|
-
function
|
|
339
|
-
|
|
338
|
+
function resolveEditMode(attribute) {
|
|
339
|
+
switch (attribute.type) {
|
|
340
|
+
case "checkbox":
|
|
341
|
+
return "inline";
|
|
342
|
+
case "number":
|
|
343
|
+
return attribute.renderAs === "rating" ? "inline" : "default";
|
|
344
|
+
case "select":
|
|
345
|
+
case "multiselect":
|
|
346
|
+
return attribute.renderAs === "badges" ? "inline" : "popover";
|
|
347
|
+
case "status":
|
|
348
|
+
case "relation":
|
|
349
|
+
case "user":
|
|
350
|
+
return "popover";
|
|
351
|
+
default:
|
|
352
|
+
return "default";
|
|
353
|
+
}
|
|
340
354
|
}
|
|
341
355
|
function isGroupableType(type) {
|
|
342
356
|
return type === "status" || type === "currency";
|
|
@@ -1587,6 +1601,10 @@ var SelectAttributeBuilder = class extends BaseAttributeBuilder {
|
|
|
1587
1601
|
this.attr.options.push(config);
|
|
1588
1602
|
return this;
|
|
1589
1603
|
}
|
|
1604
|
+
renderAs(value) {
|
|
1605
|
+
this.attr.renderAs = value;
|
|
1606
|
+
return this;
|
|
1607
|
+
}
|
|
1590
1608
|
required() {
|
|
1591
1609
|
this.setRequired(true);
|
|
1592
1610
|
return this.asRequiredState();
|
|
@@ -1621,6 +1639,10 @@ var MultiselectAttributeBuilder = class extends BaseAttributeBuilder {
|
|
|
1621
1639
|
this.attr.options.push(config);
|
|
1622
1640
|
return this;
|
|
1623
1641
|
}
|
|
1642
|
+
renderAs(value) {
|
|
1643
|
+
this.attr.renderAs = value;
|
|
1644
|
+
return this;
|
|
1645
|
+
}
|
|
1624
1646
|
required() {
|
|
1625
1647
|
this.setRequired(true);
|
|
1626
1648
|
return this.asRequiredState();
|
|
@@ -2462,6 +2484,9 @@ var ObjectBuilder = class {
|
|
|
2462
2484
|
attributes: [],
|
|
2463
2485
|
system: true
|
|
2464
2486
|
};
|
|
2487
|
+
if (config.id) {
|
|
2488
|
+
this.obj.id = config.id;
|
|
2489
|
+
}
|
|
2465
2490
|
}
|
|
2466
2491
|
/**
|
|
2467
2492
|
* Standard Schema v1 interface implementation.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { V as ValidationMessages } from '../types-
|
|
1
|
+
export { V as ValidationMessages } from '../types-CORdDGpb.mjs';
|
|
2
2
|
export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './core/index.mjs';
|
|
3
3
|
export { parseAttributeConfig } from './config/index.mjs';
|
|
4
|
-
export { c as computeRecordStatus, a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../helpers-
|
|
5
|
-
import '../attributes-
|
|
4
|
+
export { c as computeRecordStatus, a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../helpers-CED0HyXm.mjs';
|
|
5
|
+
import '../attributes-Cn0v3e37.mjs';
|
|
6
6
|
import '@stndrds/constants';
|
|
7
7
|
import '../utils.mjs';
|
|
8
8
|
import 'zod';
|
package/dist/validation/all.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { V as ValidationMessages } from '../types-
|
|
1
|
+
export { V as ValidationMessages } from '../types-B12E9LFe.js';
|
|
2
2
|
export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './core/index.js';
|
|
3
3
|
export { parseAttributeConfig } from './config/index.js';
|
|
4
|
-
export { c as computeRecordStatus, a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../helpers-
|
|
5
|
-
import '../attributes-
|
|
4
|
+
export { c as computeRecordStatus, a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../helpers-LCnn6DG3.js';
|
|
5
|
+
import '../attributes-Cy9o_xM1.js';
|
|
6
6
|
import '@stndrds/constants';
|
|
7
7
|
import '../utils.js';
|
|
8
8
|
import 'zod';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { C as CurrencyAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { C as CurrencyAttribute } from '../../attributes-Cn0v3e37.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { C as CurrencyAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { C as CurrencyAttribute } from '../../attributes-Cy9o_xM1.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B12E9LFe.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { F as FileAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { F as FileAttribute } from '../../attributes-Cn0v3e37.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { F as FileAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { F as FileAttribute } from '../../attributes-Cy9o_xM1.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B12E9LFe.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { L as LocationAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { L as LocationAttribute } from '../../attributes-Cn0v3e37.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { L as LocationAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { L as LocationAttribute } from '../../attributes-Cy9o_xM1.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B12E9LFe.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { P as PhoneAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { P as PhoneAttribute } from '../../attributes-Cn0v3e37.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { P as PhoneAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { P as PhoneAttribute } from '../../attributes-Cy9o_xM1.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B12E9LFe.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { M as MultiRelationAttribute, R as RelationAttribute, S as SingleRelationAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { M as MultiRelationAttribute, R as RelationAttribute, S as SingleRelationAttribute } from '../../attributes-Cn0v3e37.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { M as MultiRelationAttribute, R as RelationAttribute, S as SingleRelationAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { M as MultiRelationAttribute, R as RelationAttribute, S as SingleRelationAttribute } from '../../attributes-Cy9o_xM1.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B12E9LFe.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { a as RichtextAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { a as RichtextAttribute } from '../../attributes-Cn0v3e37.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { a as RichtextAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { a as RichtextAttribute } from '../../attributes-Cy9o_xM1.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B12E9LFe.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { b as MultiselectAttribute, c as SelectAttribute, d as StatusAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { b as MultiselectAttribute, c as SelectAttribute, d as StatusAttribute } from '../../attributes-Cn0v3e37.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { b as MultiselectAttribute, c as SelectAttribute, d as StatusAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { b as MultiselectAttribute, c as SelectAttribute, d as StatusAttribute } from '../../attributes-Cy9o_xM1.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B12E9LFe.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { U as UserAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { U as UserAttribute } from '../../attributes-Cn0v3e37.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { U as UserAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { U as UserAttribute } from '../../attributes-Cy9o_xM1.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B12E9LFe.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { e as FormulaAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { e as FormulaAttribute } from '../../attributes-Cn0v3e37.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { e as FormulaAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { e as FormulaAttribute } from '../../attributes-Cy9o_xM1.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B12E9LFe.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { f as RollupAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { f as RollupAttribute } from '../../attributes-Cn0v3e37.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { f as RollupAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { f as RollupAttribute } from '../../attributes-Cy9o_xM1.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B12E9LFe.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
-
export { a as ValidationResult } from '../../types-
|
|
1
|
+
import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
|
|
2
|
+
export { a as ValidationResult } from '../../types-CORdDGpb.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import '../../attributes-
|
|
4
|
+
import '../../attributes-Cn0v3e37.mjs';
|
|
5
5
|
import '@stndrds/constants';
|
|
6
6
|
import '../../utils.mjs';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
-
export { a as ValidationResult } from '../../types-
|
|
1
|
+
import { V as ValidationMessages } from '../../types-B12E9LFe.js';
|
|
2
|
+
export { a as ValidationResult } from '../../types-B12E9LFe.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import '../../attributes-
|
|
4
|
+
import '../../attributes-Cy9o_xM1.js';
|
|
5
5
|
import '@stndrds/constants';
|
|
6
6
|
import '../../utils.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { c as computeRecordStatus, f as createAttributeValidator, a as createFormAttributeValidator, g as getMissingRequiredAttributes, i as isRecordComplete, r as rejectUnknownAttributesOrThrow, h as validateAttribute, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../../helpers-
|
|
1
|
+
export { c as computeRecordStatus, f as createAttributeValidator, a as createFormAttributeValidator, g as getMissingRequiredAttributes, i as isRecordComplete, r as rejectUnknownAttributesOrThrow, h as validateAttribute, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../../helpers-CED0HyXm.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { O as ObjectDefinition } from '../../attributes-
|
|
4
|
-
import '../../types-
|
|
3
|
+
import { O as ObjectDefinition } from '../../attributes-Cn0v3e37.mjs';
|
|
4
|
+
import '../../types-CORdDGpb.mjs';
|
|
5
5
|
import '@stndrds/constants';
|
|
6
6
|
import '../../utils.mjs';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { c as computeRecordStatus, f as createAttributeValidator, a as createFormAttributeValidator, g as getMissingRequiredAttributes, i as isRecordComplete, r as rejectUnknownAttributesOrThrow, h as validateAttribute, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../../helpers-
|
|
1
|
+
export { c as computeRecordStatus, f as createAttributeValidator, a as createFormAttributeValidator, g as getMissingRequiredAttributes, i as isRecordComplete, r as rejectUnknownAttributesOrThrow, h as validateAttribute, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../../helpers-LCnn6DG3.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { O as ObjectDefinition } from '../../attributes-
|
|
4
|
-
import '../../types-
|
|
3
|
+
import { O as ObjectDefinition } from '../../attributes-Cy9o_xM1.js';
|
|
4
|
+
import '../../types-B12E9LFe.js';
|
|
5
5
|
import '@stndrds/constants';
|
|
6
6
|
import '../../utils.js';
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { g as CheckboxAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { g as CheckboxAttribute } from '../../attributes-Cn0v3e37.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { g as CheckboxAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { g as CheckboxAttribute } from '../../attributes-Cy9o_xM1.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B12E9LFe.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { D as DateAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { D as DateAttribute } from '../../attributes-Cn0v3e37.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { D as DateAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { D as DateAttribute } from '../../attributes-Cy9o_xM1.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B12E9LFe.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { N as NumberAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { N as NumberAttribute } from '../../attributes-Cn0v3e37.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { N as NumberAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { N as NumberAttribute } from '../../attributes-Cy9o_xM1.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B12E9LFe.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { T as TextAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { T as TextAttribute } from '../../attributes-Cn0v3e37.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { T as TextAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { T as TextAttribute } from '../../attributes-Cy9o_xM1.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B12E9LFe.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stndrds/schema",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.199",
|
|
4
4
|
"description": "Standard schema definitions and utilities",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"@standard-schema/spec": "^1.1.0",
|
|
121
121
|
"libphonenumber-js": "^1.12.31",
|
|
122
122
|
"zod": "^4.2.1",
|
|
123
|
-
"@stndrds/constants": "1.0.0-alpha.
|
|
123
|
+
"@stndrds/constants": "1.0.0-alpha.199"
|
|
124
124
|
},
|
|
125
125
|
"devDependencies": {
|
|
126
126
|
"@types/node": "^25.0.3",
|