@stndrds/schema 1.0.0-alpha.178 → 1.0.0-alpha.180
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/{filters-DdEBxdbQ.d.mts → filters-CF9yHR4_.d.mts} +8 -2
- package/dist/{filters-HhqIAngv.d.ts → filters-H_bOUj15.d.ts} +8 -2
- package/dist/{helpers-Dsf49fWz.d.ts → helpers-DXkMlkUv.d.ts} +2 -2
- package/dist/{helpers-Cty43yIT.d.mts → helpers-vxhRd_lI.d.mts} +2 -2
- package/dist/index.d.mts +40 -7
- package/dist/index.d.ts +40 -7
- package/dist/index.js +95 -0
- package/dist/index.mjs +90 -1
- package/dist/{types-BSwM9PXc.d.ts → types-CJygKhnQ.d.ts} +1 -1
- package/dist/{types-CUcTlTkE.d.mts → types-DH61V-D5.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/rating.d.mts +2 -2
- package/dist/validation/primitives/rating.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
|
@@ -1486,8 +1486,14 @@ interface PhoneFilterValue {
|
|
|
1486
1486
|
type FilterValue = string | number | boolean | string[] | RelativeDateValue | CurrencyFilterValue | PhoneFilterValue | null;
|
|
1487
1487
|
/** A single filter rule */
|
|
1488
1488
|
interface FilterRule {
|
|
1489
|
-
/**
|
|
1489
|
+
/** Root attribute name (scalar attribute, or a reference attribute when `property` is set). */
|
|
1490
1490
|
attribute: string;
|
|
1491
|
+
/**
|
|
1492
|
+
* If set, this rule filters on a qualified edge property.
|
|
1493
|
+
* Requires `attribute` to be a reference attribute (today: `relation` or `document`) that has `.qualifyWith()`.
|
|
1494
|
+
* The `operator` must be valid for the property's type, not the root attribute's type.
|
|
1495
|
+
*/
|
|
1496
|
+
property?: string;
|
|
1491
1497
|
/** Filter operator */
|
|
1492
1498
|
operator: FilterOperator;
|
|
1493
1499
|
/** Filter value (null for operators like is_empty) */
|
|
@@ -1575,4 +1581,4 @@ declare function isNoValueOperator(operator: FilterOperator): operator is NoValu
|
|
|
1575
1581
|
*/
|
|
1576
1582
|
declare function getRollupFilterOperators(attr: RollupAttribute): readonly FilterOperator[];
|
|
1577
1583
|
|
|
1578
|
-
export { type Group as $, type Attribute as A, type BilateralConfig as B, type CurrencyAttribute as C, type DateAttribute as D, type RelationTarget as E, type FileAttribute as F, type RichtextFeature as G, type RollupFunction as H, type MigrationDefinition as I, type DetailViewConfig as J, type DetailViewDefinition as K, type LocationAttribute as L, type MultiRelationAttribute as M, type NumberAttribute as N, type ObjectDefinition as O, type PhoneAttribute as P, type DetailViewLayout as Q, type RelationAttribute as R, type SingleRelationAttribute as S, type TextAreaAttribute as T, type UserAttribute as U, type ViewType as V, type SidePanelConfig as W, type Field as X, type AttributeGroupField as Y, type FieldGroup as Z, type RelationGroup as _, type RichtextAttribute as a, type RelativeDateValue as a$, type TableTab as a0, type CreateMode as a1, type Tab as a2, type ListViewConfig as a3, type ListViewDefinition as a4, type FlagValueType as a5, type FeatureFlagDefinition as a6, type FlagLevel as a7, type FeatureFlagsRepository as a8, type StaticFlagDefault as a9, type
|
|
1584
|
+
export { type Group as $, type Attribute as A, type BilateralConfig as B, type CurrencyAttribute as C, type DateAttribute as D, type RelationTarget as E, type FileAttribute as F, type RichtextFeature as G, type RollupFunction as H, type MigrationDefinition as I, type DetailViewConfig as J, type DetailViewDefinition as K, type LocationAttribute as L, type MultiRelationAttribute as M, type NumberAttribute as N, type ObjectDefinition as O, type PhoneAttribute as P, type DetailViewLayout as Q, type RelationAttribute as R, type SingleRelationAttribute as S, type TextAreaAttribute as T, type UserAttribute as U, type ViewType as V, type SidePanelConfig as W, type Field as X, type AttributeGroupField as Y, type FieldGroup as Z, type RelationGroup as _, type RichtextAttribute as a, type RelativeDateValue as a$, type TableTab as a0, type CreateMode as a1, type Tab as a2, type ListViewConfig as a3, type ListViewDefinition as a4, type FlagValueType as a5, type FeatureFlagDefinition as a6, type FlagLevel as a7, type FeatureFlagsRepository as a8, type StaticFlagDefault as a9, type FilterCombinator as aA, type FilterGroup as aB, type FlagOverride as aC, type FormDensity as aD, type FormTab as aE, type FormsTab as aF, type InverseSource as aG, type ListViewLayout as aH, type MigrationError as aI, NO_VALUE_OPERATORS as aJ, type NoValueOperator as aK, type NumberUnit as aL, OPERATORS_BY_TYPE as aM, type ObjectAttribute as aN, type ObjectRecord as aO, type OptionPropertyAttribute as aP, type PhoneFilterValue as aQ, type ProcessingJob as aR, type ProcessingJobStatus as aS, type ProcessingJobType as aT, type PropertyAttribute as aU, type PropertyType as aV, type QueryState as aW, RELATION_TARGET_ANY as aX, RESERVED_ATTRIBUTE_NAMES as aY, type RecordDocuments as aZ, type RelationSource as a_, type ResolvedFlag as aa, type ViewDefinition as ab, type ListViewTab as ac, type FilterOperator as ad, type FilterValue as ae, type FilterRule as af, type ActivityTab as ag, type AdvancedFilterState as ah, type AttributeGroup as ai, type BaseAttribute as aj, type BuiltInTransform as ak, type CreateDocument as al, type CreateDocumentSlot as am, type CreateProcessingJob as an, type CurrencyFilterValue as ao, type CustomTab as ap, DEFAULT_DOCUMENT_SLOT as aq, type DateFormat as ar, type DateValue as as, type Document as at, type DocumentListOptions as au, type DocumentSlot as av, type DocumentWithSlots as aw, type DocumentsTab as ax, type ExtendedFilterRule as ay, type FeatureFlagsConfig as az, type MultiselectAttribute as b, type ReservedAttributeName as b0, type RichtextTab as b1, SYSTEM_FIELD_NAMES as b2, type SchemaOperation as b3, type SchemaTransform as b4, type SlotStatus as b5, type SortDirection as b6, type StatusGroup as b7, type SystemFieldName as b8, type TabType as b9, type TableSource as ba, type TransformSource as bb, type UpdateDocument as bc, type UpdateDocumentSlot as bd, type UpdateProcessingJob as be, type ViewOperation as bf, type ViewOverlay as bg, type ViewTransform as bh, getRollupFilterOperators as bi, hasOptions as bj, inferInverseCardinality as bk, isAttributeSortable as bl, isBilateralRelation as bm, isDetailView as bn, isFieldGroup as bo, isListView as bp, isNoValueOperator as bq, isRelationGroup as br, isUniversalRelation as bs, type SelectAttribute as c, type StatusAttribute as d, type FormulaAttribute as e, type RollupAttribute as f, type CheckboxAttribute as g, type RatingAttribute as h, type TextAttribute as i, type CompletionStatus as j, type SortRule as k, type FilterState as l, type Timestamps as m, type AttributeType as n, type ViewConfig as o, type ConfigOverrides as p, type LocationGranularity as q, type Location as r, type DocumentAttribute as s, type Phone as t, type Currency as u, type DocumentSlotConfig as v, type PropertySchema as w, type FeatureGate as x, type Option as y, type FormulaReturnType as z };
|
|
@@ -1486,8 +1486,14 @@ interface PhoneFilterValue {
|
|
|
1486
1486
|
type FilterValue = string | number | boolean | string[] | RelativeDateValue | CurrencyFilterValue | PhoneFilterValue | null;
|
|
1487
1487
|
/** A single filter rule */
|
|
1488
1488
|
interface FilterRule {
|
|
1489
|
-
/**
|
|
1489
|
+
/** Root attribute name (scalar attribute, or a reference attribute when `property` is set). */
|
|
1490
1490
|
attribute: string;
|
|
1491
|
+
/**
|
|
1492
|
+
* If set, this rule filters on a qualified edge property.
|
|
1493
|
+
* Requires `attribute` to be a reference attribute (today: `relation` or `document`) that has `.qualifyWith()`.
|
|
1494
|
+
* The `operator` must be valid for the property's type, not the root attribute's type.
|
|
1495
|
+
*/
|
|
1496
|
+
property?: string;
|
|
1491
1497
|
/** Filter operator */
|
|
1492
1498
|
operator: FilterOperator;
|
|
1493
1499
|
/** Filter value (null for operators like is_empty) */
|
|
@@ -1575,4 +1581,4 @@ declare function isNoValueOperator(operator: FilterOperator): operator is NoValu
|
|
|
1575
1581
|
*/
|
|
1576
1582
|
declare function getRollupFilterOperators(attr: RollupAttribute): readonly FilterOperator[];
|
|
1577
1583
|
|
|
1578
|
-
export { type Group as $, type Attribute as A, type BilateralConfig as B, type CurrencyAttribute as C, type DateAttribute as D, type RelationTarget as E, type FileAttribute as F, type RichtextFeature as G, type RollupFunction as H, type MigrationDefinition as I, type DetailViewConfig as J, type DetailViewDefinition as K, type LocationAttribute as L, type MultiRelationAttribute as M, type NumberAttribute as N, type ObjectDefinition as O, type PhoneAttribute as P, type DetailViewLayout as Q, type RelationAttribute as R, type SingleRelationAttribute as S, type TextAreaAttribute as T, type UserAttribute as U, type ViewType as V, type SidePanelConfig as W, type Field as X, type AttributeGroupField as Y, type FieldGroup as Z, type RelationGroup as _, type RichtextAttribute as a, type RelativeDateValue as a$, type TableTab as a0, type CreateMode as a1, type Tab as a2, type ListViewConfig as a3, type ListViewDefinition as a4, type FlagValueType as a5, type FeatureFlagDefinition as a6, type FlagLevel as a7, type FeatureFlagsRepository as a8, type StaticFlagDefault as a9, type
|
|
1584
|
+
export { type Group as $, type Attribute as A, type BilateralConfig as B, type CurrencyAttribute as C, type DateAttribute as D, type RelationTarget as E, type FileAttribute as F, type RichtextFeature as G, type RollupFunction as H, type MigrationDefinition as I, type DetailViewConfig as J, type DetailViewDefinition as K, type LocationAttribute as L, type MultiRelationAttribute as M, type NumberAttribute as N, type ObjectDefinition as O, type PhoneAttribute as P, type DetailViewLayout as Q, type RelationAttribute as R, type SingleRelationAttribute as S, type TextAreaAttribute as T, type UserAttribute as U, type ViewType as V, type SidePanelConfig as W, type Field as X, type AttributeGroupField as Y, type FieldGroup as Z, type RelationGroup as _, type RichtextAttribute as a, type RelativeDateValue as a$, type TableTab as a0, type CreateMode as a1, type Tab as a2, type ListViewConfig as a3, type ListViewDefinition as a4, type FlagValueType as a5, type FeatureFlagDefinition as a6, type FlagLevel as a7, type FeatureFlagsRepository as a8, type StaticFlagDefault as a9, type FilterCombinator as aA, type FilterGroup as aB, type FlagOverride as aC, type FormDensity as aD, type FormTab as aE, type FormsTab as aF, type InverseSource as aG, type ListViewLayout as aH, type MigrationError as aI, NO_VALUE_OPERATORS as aJ, type NoValueOperator as aK, type NumberUnit as aL, OPERATORS_BY_TYPE as aM, type ObjectAttribute as aN, type ObjectRecord as aO, type OptionPropertyAttribute as aP, type PhoneFilterValue as aQ, type ProcessingJob as aR, type ProcessingJobStatus as aS, type ProcessingJobType as aT, type PropertyAttribute as aU, type PropertyType as aV, type QueryState as aW, RELATION_TARGET_ANY as aX, RESERVED_ATTRIBUTE_NAMES as aY, type RecordDocuments as aZ, type RelationSource as a_, type ResolvedFlag as aa, type ViewDefinition as ab, type ListViewTab as ac, type FilterOperator as ad, type FilterValue as ae, type FilterRule as af, type ActivityTab as ag, type AdvancedFilterState as ah, type AttributeGroup as ai, type BaseAttribute as aj, type BuiltInTransform as ak, type CreateDocument as al, type CreateDocumentSlot as am, type CreateProcessingJob as an, type CurrencyFilterValue as ao, type CustomTab as ap, DEFAULT_DOCUMENT_SLOT as aq, type DateFormat as ar, type DateValue as as, type Document as at, type DocumentListOptions as au, type DocumentSlot as av, type DocumentWithSlots as aw, type DocumentsTab as ax, type ExtendedFilterRule as ay, type FeatureFlagsConfig as az, type MultiselectAttribute as b, type ReservedAttributeName as b0, type RichtextTab as b1, SYSTEM_FIELD_NAMES as b2, type SchemaOperation as b3, type SchemaTransform as b4, type SlotStatus as b5, type SortDirection as b6, type StatusGroup as b7, type SystemFieldName as b8, type TabType as b9, type TableSource as ba, type TransformSource as bb, type UpdateDocument as bc, type UpdateDocumentSlot as bd, type UpdateProcessingJob as be, type ViewOperation as bf, type ViewOverlay as bg, type ViewTransform as bh, getRollupFilterOperators as bi, hasOptions as bj, inferInverseCardinality as bk, isAttributeSortable as bl, isBilateralRelation as bm, isDetailView as bn, isFieldGroup as bo, isListView as bp, isNoValueOperator as bq, isRelationGroup as br, isUniversalRelation as bs, type SelectAttribute as c, type StatusAttribute as d, type FormulaAttribute as e, type RollupAttribute as f, type CheckboxAttribute as g, type RatingAttribute as h, type TextAttribute as i, type CompletionStatus as j, type SortRule as k, type FilterState as l, type Timestamps as m, type AttributeType as n, type ViewConfig as o, type ConfigOverrides as p, type LocationGranularity as q, type Location as r, type DocumentAttribute as s, type Phone as t, type Currency as u, type DocumentSlotConfig as v, type PropertySchema as w, type FeatureGate as x, type Option as y, type FormulaReturnType as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { A as Attribute, O as ObjectDefinition, j as CompletionStatus } from './filters-
|
|
3
|
-
import { V as ValidationMessages, a as ValidationResult } from './types-
|
|
2
|
+
import { A as Attribute, O as ObjectDefinition, j as CompletionStatus } from './filters-H_bOUj15.js';
|
|
3
|
+
import { V as ValidationMessages, a as ValidationResult } from './types-CJygKhnQ.js';
|
|
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, j as CompletionStatus } from './filters-
|
|
3
|
-
import { V as ValidationMessages, a as ValidationResult } from './types-
|
|
2
|
+
import { A as Attribute, O as ObjectDefinition, j as CompletionStatus } from './filters-CF9yHR4_.mjs';
|
|
3
|
+
import { V as ValidationMessages, a as ValidationResult } from './types-DH61V-D5.mjs';
|
|
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 { k as SortRule, l as FilterState, m as Timestamps, n as AttributeType, V as ViewType, o as ViewConfig, p as ConfigOverrides, j as CompletionStatus, A as Attribute, q as LocationGranularity, r as Location, e as FormulaAttribute, f as RollupAttribute, s as DocumentAttribute, d as StatusAttribute, c as SelectAttribute, b as MultiselectAttribute, t as Phone, u as Currency, D as DateAttribute, U as UserAttribute, v as DocumentSlotConfig, w as PropertySchema, x as FeatureGate, g as CheckboxAttribute, C as CurrencyAttribute, i as TextAttribute, T as TextAreaAttribute, N as NumberAttribute, P as PhoneAttribute, y as Option, h as RatingAttribute, 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 RichtextFeature, H as RollupFunction, I as MigrationDefinition, O as ObjectDefinition, J as DetailViewConfig, K as DetailViewDefinition, Q as DetailViewLayout, W as SidePanelConfig, X as Field, Y as AttributeGroupField, Z as FieldGroup, _ as RelationGroup, $ as Group, a0 as TableTab, a1 as CreateMode, a2 as Tab, a3 as ListViewConfig, a4 as ListViewDefinition, a5 as FlagValueType, a6 as FeatureFlagDefinition, a7 as FlagLevel, a8 as FeatureFlagsRepository, a9 as StaticFlagDefault, aa as ResolvedFlag, ab as ViewDefinition, ac as ListViewTab, ad as FilterOperator, ae as FilterValue } from './filters-
|
|
2
|
-
export {
|
|
1
|
+
import { k as SortRule, l as FilterState, m as Timestamps, n as AttributeType, V as ViewType, o as ViewConfig, p as ConfigOverrides, j as CompletionStatus, A as Attribute, q as LocationGranularity, r as Location, e as FormulaAttribute, f as RollupAttribute, s as DocumentAttribute, d as StatusAttribute, c as SelectAttribute, b as MultiselectAttribute, t as Phone, u as Currency, D as DateAttribute, U as UserAttribute, v as DocumentSlotConfig, w as PropertySchema, x as FeatureGate, g as CheckboxAttribute, C as CurrencyAttribute, i as TextAttribute, T as TextAreaAttribute, N as NumberAttribute, P as PhoneAttribute, y as Option, h as RatingAttribute, 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 RichtextFeature, H as RollupFunction, I as MigrationDefinition, O as ObjectDefinition, J as DetailViewConfig, K as DetailViewDefinition, Q as DetailViewLayout, W as SidePanelConfig, X as Field, Y as AttributeGroupField, Z as FieldGroup, _ as RelationGroup, $ as Group, a0 as TableTab, a1 as CreateMode, a2 as Tab, a3 as ListViewConfig, a4 as ListViewDefinition, a5 as FlagValueType, a6 as FeatureFlagDefinition, a7 as FlagLevel, a8 as FeatureFlagsRepository, a9 as StaticFlagDefault, aa as ResolvedFlag, ab as ViewDefinition, ac as ListViewTab, ad as FilterOperator, ae as FilterValue, af as FilterRule } from './filters-CF9yHR4_.mjs';
|
|
2
|
+
export { ag as ActivityTab, ah as AdvancedFilterState, ai as AttributeGroup, aj as BaseAttribute, ak as BuiltInTransform, al as CreateDocument, am as CreateDocumentSlot, an as CreateProcessingJob, ao as CurrencyFilterValue, ap as CustomTab, aq as DEFAULT_DOCUMENT_SLOT, ar as DateFormat, as as DateValue, at as Document, au as DocumentListOptions, av as DocumentSlot, aw as DocumentWithSlots, ax as DocumentsTab, ay as ExtendedFilterRule, az as FeatureFlagsConfig, aA as FilterCombinator, aB as FilterGroup, aC as FlagOverride, aD as FormDensity, aE as FormTab, aF as FormsTab, aG as InverseSource, aH as ListViewLayout, aI as MigrationError, aJ as NO_VALUE_OPERATORS, aK as NoValueOperator, aL as NumberUnit, aM as OPERATORS_BY_TYPE, aN as ObjectAttribute, aO as ObjectRecord, aP as OptionPropertyAttribute, aQ as PhoneFilterValue, aR as ProcessingJob, aS as ProcessingJobStatus, aT as ProcessingJobType, aU as PropertyAttribute, aV as PropertyType, aW as QueryState, aX as RELATION_TARGET_ANY, aY as RESERVED_ATTRIBUTE_NAMES, aZ as RecordDocuments, a_ as RelationSource, a$ as RelativeDateValue, b0 as ReservedAttributeName, b1 as RichtextTab, b2 as SYSTEM_FIELD_NAMES, b3 as SchemaOperation, b4 as SchemaTransform, b5 as SlotStatus, b6 as SortDirection, b7 as StatusGroup, b8 as SystemFieldName, b9 as TabType, ba as TableSource, bb as TransformSource, bc as UpdateDocument, bd as UpdateDocumentSlot, be as UpdateProcessingJob, bf as ViewOperation, bg as ViewOverlay, bh as ViewTransform, bi as getRollupFilterOperators, bj as hasOptions, bk as inferInverseCardinality, bl as isAttributeSortable, bm as isBilateralRelation, bn as isDetailView, bo as isFieldGroup, bp as isListView, bq as isNoValueOperator, br as isRelationGroup, bs as isUniversalRelation } from './filters-CF9yHR4_.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-DH61V-D5.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, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from './helpers-
|
|
12
|
+
export { c as computeRecordStatus, a as createFormAttributeValidator, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from './helpers-vxhRd_lI.mjs';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Generic list options for pagination and sorting
|
|
@@ -39,7 +39,6 @@ type CountMode = "none" | "estimated" | "exact";
|
|
|
39
39
|
interface PageInfo {
|
|
40
40
|
limit: number;
|
|
41
41
|
hasMore: boolean;
|
|
42
|
-
nextCursor: string | null;
|
|
43
42
|
total: number | null;
|
|
44
43
|
countMode: CountMode;
|
|
45
44
|
}
|
|
@@ -49,7 +48,7 @@ interface PageResponse<T> {
|
|
|
49
48
|
}
|
|
50
49
|
interface PageOptions {
|
|
51
50
|
limit?: number;
|
|
52
|
-
|
|
51
|
+
offset?: number;
|
|
53
52
|
countMode?: CountMode;
|
|
54
53
|
}
|
|
55
54
|
|
|
@@ -334,6 +333,12 @@ interface SearchOptions extends ListOptions {
|
|
|
334
333
|
* Ignored if the search adapter has no embedder configured.
|
|
335
334
|
*/
|
|
336
335
|
semanticRatio?: number;
|
|
336
|
+
/**
|
|
337
|
+
* When set, restrict results to records whose `id` is in this list.
|
|
338
|
+
* Populated by `EdgeFilterResolver` when edge filters resolve to a known
|
|
339
|
+
* set of source record IDs. `null` means "no constraint" (same as omitted).
|
|
340
|
+
*/
|
|
341
|
+
constrainToIds?: string[] | null;
|
|
337
342
|
}
|
|
338
343
|
/**
|
|
339
344
|
* Global search options (standalone, not extending ListOptions)
|
|
@@ -1097,6 +1102,14 @@ interface AuditChange {
|
|
|
1097
1102
|
oldValue: unknown;
|
|
1098
1103
|
/** New value (undefined for deleted fields) */
|
|
1099
1104
|
newValue: unknown;
|
|
1105
|
+
/** Resolved label for oldValue when the field is a relation. */
|
|
1106
|
+
oldLabel?: string;
|
|
1107
|
+
/** Resolved label for newValue when the field is a relation. */
|
|
1108
|
+
newLabel?: string;
|
|
1109
|
+
/** Resolved labels for oldValue array, aligned by index. */
|
|
1110
|
+
oldLabels?: string[];
|
|
1111
|
+
/** Resolved labels for newValue array, aligned by index. */
|
|
1112
|
+
newLabels?: string[];
|
|
1100
1113
|
}
|
|
1101
1114
|
/**
|
|
1102
1115
|
* Audit log entry - immutable record of an action
|
|
@@ -3112,6 +3125,18 @@ interface BuilderLike {
|
|
|
3112
3125
|
*/
|
|
3113
3126
|
declare function buildPropertySchema(builders: BuilderLike[]): PropertySchema;
|
|
3114
3127
|
|
|
3128
|
+
declare const QUALIFIED_SEPARATOR: "__";
|
|
3129
|
+
type ParsedAttribute = {
|
|
3130
|
+
kind: "scalar";
|
|
3131
|
+
attribute: string;
|
|
3132
|
+
} | {
|
|
3133
|
+
kind: "qualified";
|
|
3134
|
+
root: string;
|
|
3135
|
+
property: string;
|
|
3136
|
+
};
|
|
3137
|
+
declare function parseQualifiedAttribute(name: string): ParsedAttribute;
|
|
3138
|
+
declare function buildQualifiedAttribute(root: string, property: string): string;
|
|
3139
|
+
|
|
3115
3140
|
/**
|
|
3116
3141
|
* Default empty value placeholder
|
|
3117
3142
|
*/
|
|
@@ -6467,4 +6492,12 @@ declare const OPERATOR_SPECS: Record<FilterOperator, OperatorSpec>;
|
|
|
6467
6492
|
*/
|
|
6468
6493
|
declare function evaluateFilterState(state: FilterState, values: Record<string, unknown>, attributes: Attribute[]): boolean;
|
|
6469
6494
|
|
|
6470
|
-
|
|
6495
|
+
declare function getOperatorPolarity(op: FilterOperator): "any" | "none";
|
|
6496
|
+
declare function normalizeForEdgeRpc(op: FilterOperator): FilterOperator;
|
|
6497
|
+
|
|
6498
|
+
interface QualifiedRuleValidationContext {
|
|
6499
|
+
attributes: Attribute[];
|
|
6500
|
+
}
|
|
6501
|
+
declare function validateQualifiedRule(rule: FilterRule, context: QualifiedRuleValidationContext): void;
|
|
6502
|
+
|
|
6503
|
+
export { type AIAvailableModel, type AIBatchQuestion, type AIBatchQuestionAnswer, type AIBatchQuestionOption, type AIChatMessage, type AIChatMessagePart, type AIChatMessagePartType, type AICompactionSummary, 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, type AccessAction, type AccessActionList, AccessDeniedError, type AccessLevel, type AccessPolicy, type AccessPolicyPreset, type AccessResourceType, type Action, ActivityTabConfig, type Actor, type ActorRoleAssignment, type ActorStatus, type ActorType, type AddAttributeInput, type AgentConfig, type AgentContextEntry, type AgentDashboard, type AgentDefinition, type AgentEvent, type AgentExecutionConfig, type AgentExecutionPolicy, type AgentMessageAttachment, type AgentMessagePart, type AgentQuestion, type AgentRun, type AgentRunStatus, type AgentSchedule, type AgentSession, type AgentSessionMessage, type AgentSessionMode, type AgentSessionStatus, type AgentToolCall, type AgentTriggerDefinition, type AgentTriggerType, type ApiKey, type ApiKeyAuthContext, type ApiKeyPermission, type ApiKeyWithSecret, type AssignActorRoleInput, type AssignRoleInput, Attribute, AttributeGroupField, AttributeInUseError, AttributeNotFoundError, 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, CheckboxAttribute, CompletionStatus, ConcurrentModificationError, ConfigOverrides, type CountMode, type CreateActorInput, type CreateApiKeyInput, type CreateAuditLogInput, type CreateCustomObjectInput, type CreateDBAttribute, type CreateDBForm, type CreateDBFormSubmission, type CreateDBObject, type CreateDBView, type CreateDBViewOverlay, type CreateFile, CreateMode, type CreateObjectRecord, type CreatePermissionInput, type CreateRoleInput, type CreateSandboxExecution, type CreateUserProfile, type CreateViewInput, type CriticConfig, Currency, CurrencyAttribute, type CustomAttributeValue, 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, DetailViewBuilder, DetailViewConfig, DetailViewDefinition, DetailViewLayout, DocumentAttribute, DocumentSlotConfig, DocumentSlotValidationError, DocumentsTabConfig, type DomainEvent, DuplicateError, EMPTY_VALUE_PLACEHOLDER, type EffectivePermissions, type EventDataMap, type EventType, type ExtractRecord, type ExtractRecordInput, type ExtractRecordInputStrict, type ExtractRecordStrict, type ExtractRecordUpdate, type ExtractRecordUpdateStrict, FORM_FORBIDDEN_ATTRIBUTE_TYPES, FeatureFlagDefinition, FeatureFlagsRepository, FeatureGate, Field, FieldGroup, type File, FileAttribute, type FileListOptions, type FileVisibility, FilterOperator, FilterRule, FilterState, FilterValue, FlagLevel, FlagRegistry, FlagService, FlagValueType, ForbiddenError, FormBuilder, type FormDefinition, 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 FormTextRow, FormulaAttribute, type FormulaResult, FormulaReturnType, type GeocodingAdapter, type GeocodingAutocompleteParams, type GeocodingParams, type GeocodingSuggestion, type GlobalSearchGroupedOptions, type GlobalSearchGroupedResult, type GlobalSearchOptions, type GlobalSearchResultItem, type GrantResourceAccessInput, Group, GroupBuilder, IDENTITY_PROPERTIES, type InferAttributeValue, type InferQualifiedProps, InvalidPathError, type InviteUserInput, type ListOptions, ListViewBuilder, ListViewConfig, ListViewDefinition, ListViewTab, ListViewTabConfigBuilder, Location, LocationAttribute, LocationGranularity, MaxDepthExceededError, MemoryNotFoundError, type MentionEntityType, type MentionReference, type MentionedContext, type MentionedEntityContext, MigrationDefinition, type ModelDefinition, MultiRelationAttribute, MultiselectAttribute, NoopGeocodingAdapter, NotFoundError, NotImplementedError, NumberAttribute, OPERATOR_SPECS, ObjectBuilder, ObjectDefinition, ObjectNotFoundError, type ObjectPermissions, ObjectReferencedError, type OcrAdapter, type OcrInput, type OcrOptions, type OcrPage, type OcrResult, type OcrTextBlock, type OperatorSpec, Option, PRESENTATION_PROPERTIES, type PageInfo, type PageOptions, type PageResponse, type ParsedAttribute, type PathCardinality, type PathSegment, type PathSegmentType, type Permission, type PermissionScope, Phone, PhoneAttribute, type PrincipalType, PropertySchema, ProtectedResourceError, ProtectedRoleError, type ProviderName, QUALIFIED_SEPARATOR, type QualifiedDocumentBrand, type QuestionResponse, type QuestionStatus, RatingAttribute, type ReasoningPartData, type RecordAgentEvent, type RecordMetadata, RecordNotFoundError, type RecordReference, RecordReferencedError, RelationAttribute, RelationGroup, RelationGroupBuilder, type RelationOption, type RelationOptionsResponse, RelationTarget, RepositoryError, type RepositoryOperation, ResolvedFlag, type ResourceAccess, type ResourceRef, type RetryPolicy, type ReverseGeocodingParams, RichtextAttribute, RichtextFeature, 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, type SchemaResolver, type SearchOptions, SelectAttribute, SidePanelConfig, type SidebarExtraItem, SingleRelationAttribute, type SlotMode, SortRule, type SpecificAccessAction, type StandardSchemaIssue, type StandardSchemaResult, StaticFlagDefault, StatusAttribute, StorageError, type StorageOperation, type StorageProvider, type StreamEventCompactionEnd, type StreamEventCompactionFailed, type StreamEventCompactionStart, type StreamEventMessagePersisted, SyncError, type SystemAttribute, type SystemAttributeI18nKey, type SystemFields, type SystemPermissions, type SystemResource, Tab, TabBuilder, TableTab, TableTabConfig, TenantId, TextAreaAttribute, TextAttribute, type TextPartData, type ThinkingPartData, type TimeoutPolicy, 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, type UserRoleAssignment, type UserStatus, Uuid, ValidationError, type ValidationErrorDetail, ViewConfig, ViewDefinition, ViewType, type WithCustomAttributes$1 as WithCustomAttributes, accessLevelToActions, actionsToAccessLevel, applyPipes, booleanFlag, buildPropertySchema, buildQualifiedAttribute, checkbox, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, date, detailView, document, evaluateFilterState, evaluateFormula, evaluateFormulaAttribute, evaluateFormulaWithResult, extractAttributeNames, extractFormulaVariables, extractRelationNames, extractRelationReferences, file, flagRegistry, flattenRelationsForEval, form, formRegistry, formatAttributeValue, formatFormulaResult, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getErrorMessage, getOperatorPolarity, getPathDepth, getRelationPath, getSystemAttributeI18nKey, getSystemAttributeList, getTargetAttributeName, group, hasRelationReferences, isAttributeInUseError, isDefaultRole, isDocumentAttribute, isEmptyObject, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isNotEmpty, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isSchemaError, isStandardSchema, isValidationError, jsonFlag, listView, location, matchesMime, multiselect, normaliseDocumentSlots, normalizeForEdgeRpc, number, numberFlag, object, parsePath, parseQualifiedAttribute, pathHasManyCardinality, phone, rating, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, richtext, rollup, select, status, stringFlag, text, textarea, toUndefinedIfEmpty, user, validateAttributeName, validateFormulaExpression, validatePath, validateQualifiedRule, validateSlotAgainstConfig, viewRegistry };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { k as SortRule, l as FilterState, m as Timestamps, n as AttributeType, V as ViewType, o as ViewConfig, p as ConfigOverrides, j as CompletionStatus, A as Attribute, q as LocationGranularity, r as Location, e as FormulaAttribute, f as RollupAttribute, s as DocumentAttribute, d as StatusAttribute, c as SelectAttribute, b as MultiselectAttribute, t as Phone, u as Currency, D as DateAttribute, U as UserAttribute, v as DocumentSlotConfig, w as PropertySchema, x as FeatureGate, g as CheckboxAttribute, C as CurrencyAttribute, i as TextAttribute, T as TextAreaAttribute, N as NumberAttribute, P as PhoneAttribute, y as Option, h as RatingAttribute, 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 RichtextFeature, H as RollupFunction, I as MigrationDefinition, O as ObjectDefinition, J as DetailViewConfig, K as DetailViewDefinition, Q as DetailViewLayout, W as SidePanelConfig, X as Field, Y as AttributeGroupField, Z as FieldGroup, _ as RelationGroup, $ as Group, a0 as TableTab, a1 as CreateMode, a2 as Tab, a3 as ListViewConfig, a4 as ListViewDefinition, a5 as FlagValueType, a6 as FeatureFlagDefinition, a7 as FlagLevel, a8 as FeatureFlagsRepository, a9 as StaticFlagDefault, aa as ResolvedFlag, ab as ViewDefinition, ac as ListViewTab, ad as FilterOperator, ae as FilterValue } from './filters-
|
|
2
|
-
export {
|
|
1
|
+
import { k as SortRule, l as FilterState, m as Timestamps, n as AttributeType, V as ViewType, o as ViewConfig, p as ConfigOverrides, j as CompletionStatus, A as Attribute, q as LocationGranularity, r as Location, e as FormulaAttribute, f as RollupAttribute, s as DocumentAttribute, d as StatusAttribute, c as SelectAttribute, b as MultiselectAttribute, t as Phone, u as Currency, D as DateAttribute, U as UserAttribute, v as DocumentSlotConfig, w as PropertySchema, x as FeatureGate, g as CheckboxAttribute, C as CurrencyAttribute, i as TextAttribute, T as TextAreaAttribute, N as NumberAttribute, P as PhoneAttribute, y as Option, h as RatingAttribute, 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 RichtextFeature, H as RollupFunction, I as MigrationDefinition, O as ObjectDefinition, J as DetailViewConfig, K as DetailViewDefinition, Q as DetailViewLayout, W as SidePanelConfig, X as Field, Y as AttributeGroupField, Z as FieldGroup, _ as RelationGroup, $ as Group, a0 as TableTab, a1 as CreateMode, a2 as Tab, a3 as ListViewConfig, a4 as ListViewDefinition, a5 as FlagValueType, a6 as FeatureFlagDefinition, a7 as FlagLevel, a8 as FeatureFlagsRepository, a9 as StaticFlagDefault, aa as ResolvedFlag, ab as ViewDefinition, ac as ListViewTab, ad as FilterOperator, ae as FilterValue, af as FilterRule } from './filters-H_bOUj15.js';
|
|
2
|
+
export { ag as ActivityTab, ah as AdvancedFilterState, ai as AttributeGroup, aj as BaseAttribute, ak as BuiltInTransform, al as CreateDocument, am as CreateDocumentSlot, an as CreateProcessingJob, ao as CurrencyFilterValue, ap as CustomTab, aq as DEFAULT_DOCUMENT_SLOT, ar as DateFormat, as as DateValue, at as Document, au as DocumentListOptions, av as DocumentSlot, aw as DocumentWithSlots, ax as DocumentsTab, ay as ExtendedFilterRule, az as FeatureFlagsConfig, aA as FilterCombinator, aB as FilterGroup, aC as FlagOverride, aD as FormDensity, aE as FormTab, aF as FormsTab, aG as InverseSource, aH as ListViewLayout, aI as MigrationError, aJ as NO_VALUE_OPERATORS, aK as NoValueOperator, aL as NumberUnit, aM as OPERATORS_BY_TYPE, aN as ObjectAttribute, aO as ObjectRecord, aP as OptionPropertyAttribute, aQ as PhoneFilterValue, aR as ProcessingJob, aS as ProcessingJobStatus, aT as ProcessingJobType, aU as PropertyAttribute, aV as PropertyType, aW as QueryState, aX as RELATION_TARGET_ANY, aY as RESERVED_ATTRIBUTE_NAMES, aZ as RecordDocuments, a_ as RelationSource, a$ as RelativeDateValue, b0 as ReservedAttributeName, b1 as RichtextTab, b2 as SYSTEM_FIELD_NAMES, b3 as SchemaOperation, b4 as SchemaTransform, b5 as SlotStatus, b6 as SortDirection, b7 as StatusGroup, b8 as SystemFieldName, b9 as TabType, ba as TableSource, bb as TransformSource, bc as UpdateDocument, bd as UpdateDocumentSlot, be as UpdateProcessingJob, bf as ViewOperation, bg as ViewOverlay, bh as ViewTransform, bi as getRollupFilterOperators, bj as hasOptions, bk as inferInverseCardinality, bl as isAttributeSortable, bm as isBilateralRelation, bn as isDetailView, bo as isFieldGroup, bp as isListView, bq as isNoValueOperator, br as isRelationGroup, bs as isUniversalRelation } from './filters-H_bOUj15.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-CJygKhnQ.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, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from './helpers-
|
|
12
|
+
export { c as computeRecordStatus, a as createFormAttributeValidator, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from './helpers-DXkMlkUv.js';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Generic list options for pagination and sorting
|
|
@@ -39,7 +39,6 @@ type CountMode = "none" | "estimated" | "exact";
|
|
|
39
39
|
interface PageInfo {
|
|
40
40
|
limit: number;
|
|
41
41
|
hasMore: boolean;
|
|
42
|
-
nextCursor: string | null;
|
|
43
42
|
total: number | null;
|
|
44
43
|
countMode: CountMode;
|
|
45
44
|
}
|
|
@@ -49,7 +48,7 @@ interface PageResponse<T> {
|
|
|
49
48
|
}
|
|
50
49
|
interface PageOptions {
|
|
51
50
|
limit?: number;
|
|
52
|
-
|
|
51
|
+
offset?: number;
|
|
53
52
|
countMode?: CountMode;
|
|
54
53
|
}
|
|
55
54
|
|
|
@@ -334,6 +333,12 @@ interface SearchOptions extends ListOptions {
|
|
|
334
333
|
* Ignored if the search adapter has no embedder configured.
|
|
335
334
|
*/
|
|
336
335
|
semanticRatio?: number;
|
|
336
|
+
/**
|
|
337
|
+
* When set, restrict results to records whose `id` is in this list.
|
|
338
|
+
* Populated by `EdgeFilterResolver` when edge filters resolve to a known
|
|
339
|
+
* set of source record IDs. `null` means "no constraint" (same as omitted).
|
|
340
|
+
*/
|
|
341
|
+
constrainToIds?: string[] | null;
|
|
337
342
|
}
|
|
338
343
|
/**
|
|
339
344
|
* Global search options (standalone, not extending ListOptions)
|
|
@@ -1097,6 +1102,14 @@ interface AuditChange {
|
|
|
1097
1102
|
oldValue: unknown;
|
|
1098
1103
|
/** New value (undefined for deleted fields) */
|
|
1099
1104
|
newValue: unknown;
|
|
1105
|
+
/** Resolved label for oldValue when the field is a relation. */
|
|
1106
|
+
oldLabel?: string;
|
|
1107
|
+
/** Resolved label for newValue when the field is a relation. */
|
|
1108
|
+
newLabel?: string;
|
|
1109
|
+
/** Resolved labels for oldValue array, aligned by index. */
|
|
1110
|
+
oldLabels?: string[];
|
|
1111
|
+
/** Resolved labels for newValue array, aligned by index. */
|
|
1112
|
+
newLabels?: string[];
|
|
1100
1113
|
}
|
|
1101
1114
|
/**
|
|
1102
1115
|
* Audit log entry - immutable record of an action
|
|
@@ -3112,6 +3125,18 @@ interface BuilderLike {
|
|
|
3112
3125
|
*/
|
|
3113
3126
|
declare function buildPropertySchema(builders: BuilderLike[]): PropertySchema;
|
|
3114
3127
|
|
|
3128
|
+
declare const QUALIFIED_SEPARATOR: "__";
|
|
3129
|
+
type ParsedAttribute = {
|
|
3130
|
+
kind: "scalar";
|
|
3131
|
+
attribute: string;
|
|
3132
|
+
} | {
|
|
3133
|
+
kind: "qualified";
|
|
3134
|
+
root: string;
|
|
3135
|
+
property: string;
|
|
3136
|
+
};
|
|
3137
|
+
declare function parseQualifiedAttribute(name: string): ParsedAttribute;
|
|
3138
|
+
declare function buildQualifiedAttribute(root: string, property: string): string;
|
|
3139
|
+
|
|
3115
3140
|
/**
|
|
3116
3141
|
* Default empty value placeholder
|
|
3117
3142
|
*/
|
|
@@ -6467,4 +6492,12 @@ declare const OPERATOR_SPECS: Record<FilterOperator, OperatorSpec>;
|
|
|
6467
6492
|
*/
|
|
6468
6493
|
declare function evaluateFilterState(state: FilterState, values: Record<string, unknown>, attributes: Attribute[]): boolean;
|
|
6469
6494
|
|
|
6470
|
-
|
|
6495
|
+
declare function getOperatorPolarity(op: FilterOperator): "any" | "none";
|
|
6496
|
+
declare function normalizeForEdgeRpc(op: FilterOperator): FilterOperator;
|
|
6497
|
+
|
|
6498
|
+
interface QualifiedRuleValidationContext {
|
|
6499
|
+
attributes: Attribute[];
|
|
6500
|
+
}
|
|
6501
|
+
declare function validateQualifiedRule(rule: FilterRule, context: QualifiedRuleValidationContext): void;
|
|
6502
|
+
|
|
6503
|
+
export { type AIAvailableModel, type AIBatchQuestion, type AIBatchQuestionAnswer, type AIBatchQuestionOption, type AIChatMessage, type AIChatMessagePart, type AIChatMessagePartType, type AICompactionSummary, 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, type AccessAction, type AccessActionList, AccessDeniedError, type AccessLevel, type AccessPolicy, type AccessPolicyPreset, type AccessResourceType, type Action, ActivityTabConfig, type Actor, type ActorRoleAssignment, type ActorStatus, type ActorType, type AddAttributeInput, type AgentConfig, type AgentContextEntry, type AgentDashboard, type AgentDefinition, type AgentEvent, type AgentExecutionConfig, type AgentExecutionPolicy, type AgentMessageAttachment, type AgentMessagePart, type AgentQuestion, type AgentRun, type AgentRunStatus, type AgentSchedule, type AgentSession, type AgentSessionMessage, type AgentSessionMode, type AgentSessionStatus, type AgentToolCall, type AgentTriggerDefinition, type AgentTriggerType, type ApiKey, type ApiKeyAuthContext, type ApiKeyPermission, type ApiKeyWithSecret, type AssignActorRoleInput, type AssignRoleInput, Attribute, AttributeGroupField, AttributeInUseError, AttributeNotFoundError, 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, CheckboxAttribute, CompletionStatus, ConcurrentModificationError, ConfigOverrides, type CountMode, type CreateActorInput, type CreateApiKeyInput, type CreateAuditLogInput, type CreateCustomObjectInput, type CreateDBAttribute, type CreateDBForm, type CreateDBFormSubmission, type CreateDBObject, type CreateDBView, type CreateDBViewOverlay, type CreateFile, CreateMode, type CreateObjectRecord, type CreatePermissionInput, type CreateRoleInput, type CreateSandboxExecution, type CreateUserProfile, type CreateViewInput, type CriticConfig, Currency, CurrencyAttribute, type CustomAttributeValue, 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, DetailViewBuilder, DetailViewConfig, DetailViewDefinition, DetailViewLayout, DocumentAttribute, DocumentSlotConfig, DocumentSlotValidationError, DocumentsTabConfig, type DomainEvent, DuplicateError, EMPTY_VALUE_PLACEHOLDER, type EffectivePermissions, type EventDataMap, type EventType, type ExtractRecord, type ExtractRecordInput, type ExtractRecordInputStrict, type ExtractRecordStrict, type ExtractRecordUpdate, type ExtractRecordUpdateStrict, FORM_FORBIDDEN_ATTRIBUTE_TYPES, FeatureFlagDefinition, FeatureFlagsRepository, FeatureGate, Field, FieldGroup, type File, FileAttribute, type FileListOptions, type FileVisibility, FilterOperator, FilterRule, FilterState, FilterValue, FlagLevel, FlagRegistry, FlagService, FlagValueType, ForbiddenError, FormBuilder, type FormDefinition, 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 FormTextRow, FormulaAttribute, type FormulaResult, FormulaReturnType, type GeocodingAdapter, type GeocodingAutocompleteParams, type GeocodingParams, type GeocodingSuggestion, type GlobalSearchGroupedOptions, type GlobalSearchGroupedResult, type GlobalSearchOptions, type GlobalSearchResultItem, type GrantResourceAccessInput, Group, GroupBuilder, IDENTITY_PROPERTIES, type InferAttributeValue, type InferQualifiedProps, InvalidPathError, type InviteUserInput, type ListOptions, ListViewBuilder, ListViewConfig, ListViewDefinition, ListViewTab, ListViewTabConfigBuilder, Location, LocationAttribute, LocationGranularity, MaxDepthExceededError, MemoryNotFoundError, type MentionEntityType, type MentionReference, type MentionedContext, type MentionedEntityContext, MigrationDefinition, type ModelDefinition, MultiRelationAttribute, MultiselectAttribute, NoopGeocodingAdapter, NotFoundError, NotImplementedError, NumberAttribute, OPERATOR_SPECS, ObjectBuilder, ObjectDefinition, ObjectNotFoundError, type ObjectPermissions, ObjectReferencedError, type OcrAdapter, type OcrInput, type OcrOptions, type OcrPage, type OcrResult, type OcrTextBlock, type OperatorSpec, Option, PRESENTATION_PROPERTIES, type PageInfo, type PageOptions, type PageResponse, type ParsedAttribute, type PathCardinality, type PathSegment, type PathSegmentType, type Permission, type PermissionScope, Phone, PhoneAttribute, type PrincipalType, PropertySchema, ProtectedResourceError, ProtectedRoleError, type ProviderName, QUALIFIED_SEPARATOR, type QualifiedDocumentBrand, type QuestionResponse, type QuestionStatus, RatingAttribute, type ReasoningPartData, type RecordAgentEvent, type RecordMetadata, RecordNotFoundError, type RecordReference, RecordReferencedError, RelationAttribute, RelationGroup, RelationGroupBuilder, type RelationOption, type RelationOptionsResponse, RelationTarget, RepositoryError, type RepositoryOperation, ResolvedFlag, type ResourceAccess, type ResourceRef, type RetryPolicy, type ReverseGeocodingParams, RichtextAttribute, RichtextFeature, 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, type SchemaResolver, type SearchOptions, SelectAttribute, SidePanelConfig, type SidebarExtraItem, SingleRelationAttribute, type SlotMode, SortRule, type SpecificAccessAction, type StandardSchemaIssue, type StandardSchemaResult, StaticFlagDefault, StatusAttribute, StorageError, type StorageOperation, type StorageProvider, type StreamEventCompactionEnd, type StreamEventCompactionFailed, type StreamEventCompactionStart, type StreamEventMessagePersisted, SyncError, type SystemAttribute, type SystemAttributeI18nKey, type SystemFields, type SystemPermissions, type SystemResource, Tab, TabBuilder, TableTab, TableTabConfig, TenantId, TextAreaAttribute, TextAttribute, type TextPartData, type ThinkingPartData, type TimeoutPolicy, 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, type UserRoleAssignment, type UserStatus, Uuid, ValidationError, type ValidationErrorDetail, ViewConfig, ViewDefinition, ViewType, type WithCustomAttributes$1 as WithCustomAttributes, accessLevelToActions, actionsToAccessLevel, applyPipes, booleanFlag, buildPropertySchema, buildQualifiedAttribute, checkbox, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, date, detailView, document, evaluateFilterState, evaluateFormula, evaluateFormulaAttribute, evaluateFormulaWithResult, extractAttributeNames, extractFormulaVariables, extractRelationNames, extractRelationReferences, file, flagRegistry, flattenRelationsForEval, form, formRegistry, formatAttributeValue, formatFormulaResult, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getErrorMessage, getOperatorPolarity, getPathDepth, getRelationPath, getSystemAttributeI18nKey, getSystemAttributeList, getTargetAttributeName, group, hasRelationReferences, isAttributeInUseError, isDefaultRole, isDocumentAttribute, isEmptyObject, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isNotEmpty, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isSchemaError, isStandardSchema, isValidationError, jsonFlag, listView, location, matchesMime, multiselect, normaliseDocumentSlots, normalizeForEdgeRpc, number, numberFlag, object, parsePath, parseQualifiedAttribute, pathHasManyCardinality, phone, rating, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, richtext, rollup, select, status, stringFlag, text, textarea, toUndefinedIfEmpty, user, validateAttributeName, validateFormulaExpression, validatePath, validateQualifiedRule, validateSlotAgainstConfig, viewRegistry };
|
package/dist/index.js
CHANGED
|
@@ -763,6 +763,23 @@ function buildPropertySchema(builders) {
|
|
|
763
763
|
}
|
|
764
764
|
return { definitions };
|
|
765
765
|
}
|
|
766
|
+
|
|
767
|
+
// src/lib/qualified-attribute.ts
|
|
768
|
+
var QUALIFIED_SEPARATOR = "__";
|
|
769
|
+
function parseQualifiedAttribute(name) {
|
|
770
|
+
const idx = name.indexOf(QUALIFIED_SEPARATOR);
|
|
771
|
+
if (idx <= 0 || idx + QUALIFIED_SEPARATOR.length >= name.length) {
|
|
772
|
+
return { kind: "scalar", attribute: name };
|
|
773
|
+
}
|
|
774
|
+
return {
|
|
775
|
+
kind: "qualified",
|
|
776
|
+
root: name.slice(0, idx),
|
|
777
|
+
property: name.slice(idx + QUALIFIED_SEPARATOR.length)
|
|
778
|
+
};
|
|
779
|
+
}
|
|
780
|
+
function buildQualifiedAttribute(root, property) {
|
|
781
|
+
return `${root}${QUALIFIED_SEPARATOR}${property}`;
|
|
782
|
+
}
|
|
766
783
|
var EMPTY_VALUE_PLACEHOLDER = "\u2014";
|
|
767
784
|
function formatText(value) {
|
|
768
785
|
return String(value);
|
|
@@ -5586,6 +5603,78 @@ function evaluateRule(rule, values, attrByName) {
|
|
|
5586
5603
|
return spec.evaluateInMemory(values[rule.attribute], rule.value, attr);
|
|
5587
5604
|
}
|
|
5588
5605
|
|
|
5606
|
+
// src/filters/polarity.ts
|
|
5607
|
+
var NEGATIVE_OPERATORS = /* @__PURE__ */ new Set([
|
|
5608
|
+
"is_not",
|
|
5609
|
+
"not_contains",
|
|
5610
|
+
"neq",
|
|
5611
|
+
"none_of",
|
|
5612
|
+
"is_not_checked",
|
|
5613
|
+
"is_empty"
|
|
5614
|
+
]);
|
|
5615
|
+
var NEGATIVE_TO_POSITIVE = {
|
|
5616
|
+
is_not: "is",
|
|
5617
|
+
not_contains: "contains",
|
|
5618
|
+
neq: "eq",
|
|
5619
|
+
none_of: "any_of",
|
|
5620
|
+
is_not_checked: "is_checked",
|
|
5621
|
+
is_empty: "is_not_empty"
|
|
5622
|
+
};
|
|
5623
|
+
function getOperatorPolarity(op) {
|
|
5624
|
+
return NEGATIVE_OPERATORS.has(op) ? "none" : "any";
|
|
5625
|
+
}
|
|
5626
|
+
function normalizeForEdgeRpc(op) {
|
|
5627
|
+
return NEGATIVE_TO_POSITIVE[op] ?? op;
|
|
5628
|
+
}
|
|
5629
|
+
|
|
5630
|
+
// src/filters/validation.ts
|
|
5631
|
+
var REFERENCE_TYPES = /* @__PURE__ */ new Set(["relation", "document", "user"]);
|
|
5632
|
+
function assertOperatorForType(operator, type, context) {
|
|
5633
|
+
const ops = OPERATORS_BY_TYPE[type];
|
|
5634
|
+
if (!ops?.includes(operator)) {
|
|
5635
|
+
throw new ValidationError(`Operator ${operator} is not valid for ${context} type ${type}`, [
|
|
5636
|
+
{
|
|
5637
|
+
path: ["operator"],
|
|
5638
|
+
message: `Operator ${operator} not valid for ${type}`
|
|
5639
|
+
}
|
|
5640
|
+
]);
|
|
5641
|
+
}
|
|
5642
|
+
}
|
|
5643
|
+
function validateQualifiedRule(rule, context) {
|
|
5644
|
+
const rootAttr = context.attributes.find((a) => a.name === rule.attribute);
|
|
5645
|
+
if (!rootAttr) {
|
|
5646
|
+
throw new ValidationError(`Unknown attribute: ${rule.attribute}`, [
|
|
5647
|
+
{ path: ["attribute"], message: `Unknown attribute: ${rule.attribute}` }
|
|
5648
|
+
]);
|
|
5649
|
+
}
|
|
5650
|
+
if (!rule.property) {
|
|
5651
|
+
if (rootAttr.type === "rollup") {
|
|
5652
|
+
return;
|
|
5653
|
+
}
|
|
5654
|
+
assertOperatorForType(rule.operator, rootAttr.type, "attribute");
|
|
5655
|
+
return;
|
|
5656
|
+
}
|
|
5657
|
+
if (!REFERENCE_TYPES.has(rootAttr.type)) {
|
|
5658
|
+
throw new ValidationError(`Cannot qualify ${rootAttr.type} attribute "${rule.attribute}"`, [
|
|
5659
|
+
{ path: ["property"], message: `Attribute "${rule.attribute}" is not a reference type` }
|
|
5660
|
+
]);
|
|
5661
|
+
}
|
|
5662
|
+
const propSchema = rootAttr.properties;
|
|
5663
|
+
if (!propSchema) {
|
|
5664
|
+
throw new ValidationError(`Attribute "${rule.attribute}" has no qualifyWith schema`, [
|
|
5665
|
+
{ path: ["property"], message: `"${rule.attribute}" has no qualifyWith` }
|
|
5666
|
+
]);
|
|
5667
|
+
}
|
|
5668
|
+
const propDef = propSchema.definitions.find((p) => p.name === rule.property);
|
|
5669
|
+
if (!propDef) {
|
|
5670
|
+
throw new ValidationError(
|
|
5671
|
+
`Property "${rule.property}" not defined on "${rule.attribute}".qualifyWith()`,
|
|
5672
|
+
[{ path: ["property"], message: `Unknown property: ${rule.property}` }]
|
|
5673
|
+
);
|
|
5674
|
+
}
|
|
5675
|
+
assertOperatorForType(rule.operator, propDef.type, "property");
|
|
5676
|
+
}
|
|
5677
|
+
|
|
5589
5678
|
Object.defineProperty(exports, "asTenantId", {
|
|
5590
5679
|
enumerable: true,
|
|
5591
5680
|
get: function () { return chunkFRCDMQER_js.asTenantId; }
|
|
@@ -5691,6 +5780,7 @@ exports.ObjectReferencedError = ObjectReferencedError;
|
|
|
5691
5780
|
exports.PRESENTATION_PROPERTIES = PRESENTATION_PROPERTIES;
|
|
5692
5781
|
exports.ProtectedResourceError = ProtectedResourceError;
|
|
5693
5782
|
exports.ProtectedRoleError = ProtectedRoleError;
|
|
5783
|
+
exports.QUALIFIED_SEPARATOR = QUALIFIED_SEPARATOR;
|
|
5694
5784
|
exports.RELATION_TARGET_ANY = RELATION_TARGET_ANY;
|
|
5695
5785
|
exports.RESERVED_ATTRIBUTE_NAMES = RESERVED_ATTRIBUTE_NAMES;
|
|
5696
5786
|
exports.RecordNotFoundError = RecordNotFoundError;
|
|
@@ -5718,6 +5808,7 @@ exports.actionsToAccessLevel = actionsToAccessLevel;
|
|
|
5718
5808
|
exports.applyPipes = applyPipes;
|
|
5719
5809
|
exports.booleanFlag = booleanFlag;
|
|
5720
5810
|
exports.buildPropertySchema = buildPropertySchema;
|
|
5811
|
+
exports.buildQualifiedAttribute = buildQualifiedAttribute;
|
|
5721
5812
|
exports.checkbox = checkbox;
|
|
5722
5813
|
exports.createFlagRegistry = createFlagRegistry;
|
|
5723
5814
|
exports.createFlagService = createFlagService;
|
|
@@ -5746,6 +5837,7 @@ exports.generateDefaultDetailView = generateDefaultDetailView;
|
|
|
5746
5837
|
exports.generateDefaultListView = generateDefaultListView;
|
|
5747
5838
|
exports.getActiveTab = getActiveTab;
|
|
5748
5839
|
exports.getErrorMessage = getErrorMessage;
|
|
5840
|
+
exports.getOperatorPolarity = getOperatorPolarity;
|
|
5749
5841
|
exports.getPathDepth = getPathDepth;
|
|
5750
5842
|
exports.getRelationPath = getRelationPath;
|
|
5751
5843
|
exports.getRollupFilterOperators = getRollupFilterOperators;
|
|
@@ -5790,10 +5882,12 @@ exports.location = location;
|
|
|
5790
5882
|
exports.matchesMime = matchesMime;
|
|
5791
5883
|
exports.multiselect = multiselect;
|
|
5792
5884
|
exports.normaliseDocumentSlots = normaliseDocumentSlots;
|
|
5885
|
+
exports.normalizeForEdgeRpc = normalizeForEdgeRpc;
|
|
5793
5886
|
exports.number = number;
|
|
5794
5887
|
exports.numberFlag = numberFlag;
|
|
5795
5888
|
exports.object = object;
|
|
5796
5889
|
exports.parsePath = parsePath;
|
|
5890
|
+
exports.parseQualifiedAttribute = parseQualifiedAttribute;
|
|
5797
5891
|
exports.pathHasManyCardinality = pathHasManyCardinality;
|
|
5798
5892
|
exports.phone = phone;
|
|
5799
5893
|
exports.rating = rating;
|
|
@@ -5814,5 +5908,6 @@ exports.user = user;
|
|
|
5814
5908
|
exports.validateAttributeName = validateAttributeName;
|
|
5815
5909
|
exports.validateFormulaExpression = validateFormulaExpression;
|
|
5816
5910
|
exports.validatePath = validatePath;
|
|
5911
|
+
exports.validateQualifiedRule = validateQualifiedRule;
|
|
5817
5912
|
exports.validateSlotAgainstConfig = validateSlotAgainstConfig;
|
|
5818
5913
|
exports.viewRegistry = viewRegistry;
|
package/dist/index.mjs
CHANGED
|
@@ -759,6 +759,23 @@ function buildPropertySchema(builders) {
|
|
|
759
759
|
}
|
|
760
760
|
return { definitions };
|
|
761
761
|
}
|
|
762
|
+
|
|
763
|
+
// src/lib/qualified-attribute.ts
|
|
764
|
+
var QUALIFIED_SEPARATOR = "__";
|
|
765
|
+
function parseQualifiedAttribute(name) {
|
|
766
|
+
const idx = name.indexOf(QUALIFIED_SEPARATOR);
|
|
767
|
+
if (idx <= 0 || idx + QUALIFIED_SEPARATOR.length >= name.length) {
|
|
768
|
+
return { kind: "scalar", attribute: name };
|
|
769
|
+
}
|
|
770
|
+
return {
|
|
771
|
+
kind: "qualified",
|
|
772
|
+
root: name.slice(0, idx),
|
|
773
|
+
property: name.slice(idx + QUALIFIED_SEPARATOR.length)
|
|
774
|
+
};
|
|
775
|
+
}
|
|
776
|
+
function buildQualifiedAttribute(root, property) {
|
|
777
|
+
return `${root}${QUALIFIED_SEPARATOR}${property}`;
|
|
778
|
+
}
|
|
762
779
|
var EMPTY_VALUE_PLACEHOLDER = "\u2014";
|
|
763
780
|
function formatText(value) {
|
|
764
781
|
return String(value);
|
|
@@ -5582,4 +5599,76 @@ function evaluateRule(rule, values, attrByName) {
|
|
|
5582
5599
|
return spec.evaluateInMemory(values[rule.attribute], rule.value, attr);
|
|
5583
5600
|
}
|
|
5584
5601
|
|
|
5585
|
-
|
|
5602
|
+
// src/filters/polarity.ts
|
|
5603
|
+
var NEGATIVE_OPERATORS = /* @__PURE__ */ new Set([
|
|
5604
|
+
"is_not",
|
|
5605
|
+
"not_contains",
|
|
5606
|
+
"neq",
|
|
5607
|
+
"none_of",
|
|
5608
|
+
"is_not_checked",
|
|
5609
|
+
"is_empty"
|
|
5610
|
+
]);
|
|
5611
|
+
var NEGATIVE_TO_POSITIVE = {
|
|
5612
|
+
is_not: "is",
|
|
5613
|
+
not_contains: "contains",
|
|
5614
|
+
neq: "eq",
|
|
5615
|
+
none_of: "any_of",
|
|
5616
|
+
is_not_checked: "is_checked",
|
|
5617
|
+
is_empty: "is_not_empty"
|
|
5618
|
+
};
|
|
5619
|
+
function getOperatorPolarity(op) {
|
|
5620
|
+
return NEGATIVE_OPERATORS.has(op) ? "none" : "any";
|
|
5621
|
+
}
|
|
5622
|
+
function normalizeForEdgeRpc(op) {
|
|
5623
|
+
return NEGATIVE_TO_POSITIVE[op] ?? op;
|
|
5624
|
+
}
|
|
5625
|
+
|
|
5626
|
+
// src/filters/validation.ts
|
|
5627
|
+
var REFERENCE_TYPES = /* @__PURE__ */ new Set(["relation", "document", "user"]);
|
|
5628
|
+
function assertOperatorForType(operator, type, context) {
|
|
5629
|
+
const ops = OPERATORS_BY_TYPE[type];
|
|
5630
|
+
if (!ops?.includes(operator)) {
|
|
5631
|
+
throw new ValidationError(`Operator ${operator} is not valid for ${context} type ${type}`, [
|
|
5632
|
+
{
|
|
5633
|
+
path: ["operator"],
|
|
5634
|
+
message: `Operator ${operator} not valid for ${type}`
|
|
5635
|
+
}
|
|
5636
|
+
]);
|
|
5637
|
+
}
|
|
5638
|
+
}
|
|
5639
|
+
function validateQualifiedRule(rule, context) {
|
|
5640
|
+
const rootAttr = context.attributes.find((a) => a.name === rule.attribute);
|
|
5641
|
+
if (!rootAttr) {
|
|
5642
|
+
throw new ValidationError(`Unknown attribute: ${rule.attribute}`, [
|
|
5643
|
+
{ path: ["attribute"], message: `Unknown attribute: ${rule.attribute}` }
|
|
5644
|
+
]);
|
|
5645
|
+
}
|
|
5646
|
+
if (!rule.property) {
|
|
5647
|
+
if (rootAttr.type === "rollup") {
|
|
5648
|
+
return;
|
|
5649
|
+
}
|
|
5650
|
+
assertOperatorForType(rule.operator, rootAttr.type, "attribute");
|
|
5651
|
+
return;
|
|
5652
|
+
}
|
|
5653
|
+
if (!REFERENCE_TYPES.has(rootAttr.type)) {
|
|
5654
|
+
throw new ValidationError(`Cannot qualify ${rootAttr.type} attribute "${rule.attribute}"`, [
|
|
5655
|
+
{ path: ["property"], message: `Attribute "${rule.attribute}" is not a reference type` }
|
|
5656
|
+
]);
|
|
5657
|
+
}
|
|
5658
|
+
const propSchema = rootAttr.properties;
|
|
5659
|
+
if (!propSchema) {
|
|
5660
|
+
throw new ValidationError(`Attribute "${rule.attribute}" has no qualifyWith schema`, [
|
|
5661
|
+
{ path: ["property"], message: `"${rule.attribute}" has no qualifyWith` }
|
|
5662
|
+
]);
|
|
5663
|
+
}
|
|
5664
|
+
const propDef = propSchema.definitions.find((p) => p.name === rule.property);
|
|
5665
|
+
if (!propDef) {
|
|
5666
|
+
throw new ValidationError(
|
|
5667
|
+
`Property "${rule.property}" not defined on "${rule.attribute}".qualifyWith()`,
|
|
5668
|
+
[{ path: ["property"], message: `Unknown property: ${rule.property}` }]
|
|
5669
|
+
);
|
|
5670
|
+
}
|
|
5671
|
+
assertOperatorForType(rule.operator, propDef.type, "property");
|
|
5672
|
+
}
|
|
5673
|
+
|
|
5674
|
+
export { ALLOWED_PROPERTY_TYPES, ALL_ACTIONS, ALL_SYSTEM_RESOURCES, AccessDeniedError, ActivityTabConfig, AttributeInUseError, AttributeNotFoundError, BEHAVIOR_PROPERTIES, ConcurrentModificationError, CustomTabConfig, DB_COLUMN_FIELDS, DEFAULT_DOCUMENT_SLOT, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DOCUMENT_SYSTEM_ATTRIBUTES, DetailViewBuilder, DocumentSlotValidationError, DocumentsTabConfig, DuplicateError, EMPTY_VALUE_PLACEHOLDER, FORM_FORBIDDEN_ATTRIBUTE_TYPES, FlagRegistry, FlagService, ForbiddenError, FormBuilder, FormRegistry, FormRowBuilder, FormStepBuilder, GroupBuilder, IDENTITY_PROPERTIES, InvalidPathError, ListViewBuilder, ListViewTabConfigBuilder, MaxDepthExceededError, MemoryNotFoundError, NO_VALUE_OPERATORS, NoopGeocodingAdapter, NotFoundError, NotImplementedError, OPERATORS_BY_TYPE, OPERATOR_SPECS, ObjectBuilder, ObjectNotFoundError, ObjectReferencedError, PRESENTATION_PROPERTIES, ProtectedResourceError, ProtectedRoleError, QUALIFIED_SEPARATOR, RELATION_TARGET_ANY, RESERVED_ATTRIBUTE_NAMES, RecordNotFoundError, RecordReferencedError, RelationGroupBuilder, RepositoryError, RichtextTabConfig, RoleNotFoundError, STANDARD_SCHEMA_VENDOR, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_FIELD_NAMES, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, SchemaError, SchemaErrorCode, StorageError, SyncError, TabBuilder, TableTabConfig, USER_STATUSES, ValidationError, accessLevelToActions, actionsToAccessLevel, applyPipes, booleanFlag, buildPropertySchema, buildQualifiedAttribute, checkbox, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, date, detailView, document, evaluateFilterState, evaluateFormula, evaluateFormulaAttribute, evaluateFormulaWithResult, extractAttributeNames, extractFormulaVariables, extractRelationNames, extractRelationReferences, file, flagRegistry, flattenRelationsForEval, form, formRegistry, formatAttributeValue, formatFormulaResult, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getErrorMessage, getOperatorPolarity, getPathDepth, getRelationPath, getRollupFilterOperators, getSystemAttributeI18nKey, getSystemAttributeList, getTargetAttributeName, group, hasOptions, hasRelationReferences, inferInverseCardinality, isAttributeInUseError, isAttributeSortable, isBilateralRelation, isDefaultRole, isDetailView, isDocumentAttribute, isEmptyObject, isFieldGroup, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isListView, isNoValueOperator, isNotEmpty, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isRelationGroup, isSchemaError, isStandardSchema, isUniversalRelation, isValidationError, jsonFlag, listView, location, matchesMime, multiselect, normaliseDocumentSlots, normalizeForEdgeRpc, number, numberFlag, object, parsePath, parseQualifiedAttribute, pathHasManyCardinality, phone, rating, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, richtext, rollup, select, status, stringFlag, text, textarea, toUndefinedIfEmpty, user, validateAttributeName, validateFormulaExpression, validatePath, validateQualifiedRule, validateSlotAgainstConfig, viewRegistry };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { V as ValidationMessages } from '../types-
|
|
1
|
+
export { V as ValidationMessages } from '../types-DH61V-D5.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, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../helpers-
|
|
5
|
-
import '../filters-
|
|
4
|
+
export { c as computeRecordStatus, a as createFormAttributeValidator, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../helpers-vxhRd_lI.mjs';
|
|
5
|
+
import '../filters-CF9yHR4_.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-CJygKhnQ.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, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../helpers-
|
|
5
|
-
import '../filters-
|
|
4
|
+
export { c as computeRecordStatus, a as createFormAttributeValidator, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../helpers-DXkMlkUv.js';
|
|
5
|
+
import '../filters-H_bOUj15.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 '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { C as CurrencyAttribute } from '../../filters-CF9yHR4_.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DH61V-D5.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 '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { C as CurrencyAttribute } from '../../filters-H_bOUj15.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CJygKhnQ.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 '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { F as FileAttribute } from '../../filters-CF9yHR4_.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DH61V-D5.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 '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { F as FileAttribute } from '../../filters-H_bOUj15.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CJygKhnQ.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 '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { L as LocationAttribute } from '../../filters-CF9yHR4_.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DH61V-D5.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 '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { L as LocationAttribute } from '../../filters-H_bOUj15.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CJygKhnQ.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 '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { P as PhoneAttribute } from '../../filters-CF9yHR4_.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DH61V-D5.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 '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { P as PhoneAttribute } from '../../filters-H_bOUj15.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CJygKhnQ.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 '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { M as MultiRelationAttribute, R as RelationAttribute, S as SingleRelationAttribute } from '../../filters-CF9yHR4_.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DH61V-D5.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 '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { M as MultiRelationAttribute, R as RelationAttribute, S as SingleRelationAttribute } from '../../filters-H_bOUj15.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CJygKhnQ.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 '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { a as RichtextAttribute } from '../../filters-CF9yHR4_.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DH61V-D5.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 '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { a as RichtextAttribute } from '../../filters-H_bOUj15.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CJygKhnQ.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 '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { b as MultiselectAttribute, c as SelectAttribute, d as StatusAttribute } from '../../filters-CF9yHR4_.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DH61V-D5.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 '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { b as MultiselectAttribute, c as SelectAttribute, d as StatusAttribute } from '../../filters-H_bOUj15.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CJygKhnQ.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 '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { U as UserAttribute } from '../../filters-CF9yHR4_.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DH61V-D5.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 '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { U as UserAttribute } from '../../filters-H_bOUj15.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CJygKhnQ.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 '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { e as FormulaAttribute } from '../../filters-CF9yHR4_.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DH61V-D5.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 '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { e as FormulaAttribute } from '../../filters-H_bOUj15.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CJygKhnQ.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 '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { f as RollupAttribute } from '../../filters-CF9yHR4_.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DH61V-D5.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 '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { f as RollupAttribute } from '../../filters-H_bOUj15.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CJygKhnQ.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-DH61V-D5.mjs';
|
|
2
|
+
export { a as ValidationResult } from '../../types-DH61V-D5.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import '../../filters-
|
|
4
|
+
import '../../filters-CF9yHR4_.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-CJygKhnQ.js';
|
|
2
|
+
export { a as ValidationResult } from '../../types-CJygKhnQ.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import '../../filters-
|
|
4
|
+
import '../../filters-H_bOUj15.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, 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, h as validateAttribute, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../../helpers-vxhRd_lI.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { O as ObjectDefinition } from '../../filters-
|
|
4
|
-
import '../../types-
|
|
3
|
+
import { O as ObjectDefinition } from '../../filters-CF9yHR4_.mjs';
|
|
4
|
+
import '../../types-DH61V-D5.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, 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, h as validateAttribute, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../../helpers-DXkMlkUv.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { O as ObjectDefinition } from '../../filters-
|
|
4
|
-
import '../../types-
|
|
3
|
+
import { O as ObjectDefinition } from '../../filters-H_bOUj15.js';
|
|
4
|
+
import '../../types-CJygKhnQ.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 '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { g as CheckboxAttribute } from '../../filters-CF9yHR4_.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DH61V-D5.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 '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { g as CheckboxAttribute } from '../../filters-H_bOUj15.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CJygKhnQ.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 '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { D as DateAttribute } from '../../filters-CF9yHR4_.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DH61V-D5.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 '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { D as DateAttribute } from '../../filters-H_bOUj15.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CJygKhnQ.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 '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { N as NumberAttribute } from '../../filters-CF9yHR4_.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DH61V-D5.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 '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { N as NumberAttribute } from '../../filters-H_bOUj15.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CJygKhnQ.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 { h as RatingAttribute } from '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { h as RatingAttribute } from '../../filters-CF9yHR4_.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DH61V-D5.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 { h as RatingAttribute } from '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { h as RatingAttribute } from '../../filters-H_bOUj15.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CJygKhnQ.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 TextAreaAttribute, i as TextAttribute } from '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { T as TextAreaAttribute, i as TextAttribute } from '../../filters-CF9yHR4_.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DH61V-D5.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 TextAreaAttribute, i as TextAttribute } from '../../filters-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { T as TextAreaAttribute, i as TextAttribute } from '../../filters-H_bOUj15.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CJygKhnQ.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.180",
|
|
4
4
|
"description": "Standard schema definitions and utilities",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
"expr-eval": "^2.0.2",
|
|
132
132
|
"libphonenumber-js": "^1.12.31",
|
|
133
133
|
"zod": "^4.2.1",
|
|
134
|
-
"@stndrds/constants": "1.0.0-alpha.
|
|
134
|
+
"@stndrds/constants": "1.0.0-alpha.180"
|
|
135
135
|
},
|
|
136
136
|
"devDependencies": {
|
|
137
137
|
"@types/node": "^25.0.3",
|