@stndrds/schema 1.0.0-alpha.278 → 1.0.0-alpha.279
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{all-BSeTO0fj.d.mts → all-Bk8cRKsu.d.mts} +3 -3
- package/dist/{all-DoYgTt64.d.ts → all-C_tC90ZM.d.ts} +3 -3
- package/dist/{attributes-VsYmgI0A.d.mts → attributes--M1ifW8_.d.mts} +1 -1
- package/dist/{attributes-Da15v-sw.d.ts → attributes-D8eHv5Kf.d.ts} +1 -1
- package/dist/exceptions.d.mts +2 -2
- package/dist/exceptions.d.ts +2 -2
- package/dist/{helpers-BYhVd4Gw.d.mts → helpers-BiABdSxK.d.mts} +3 -3
- package/dist/{helpers-D2cL7hI2.d.ts → helpers-DyoPqiSz.d.ts} +3 -3
- package/dist/{index-CixTESyP.d.mts → index-C3P5Dnwt.d.mts} +2 -2
- package/dist/{index-dJ6fAwcG.d.ts → index-SpFpkWVC.d.ts} +2 -2
- package/dist/index.d.mts +11 -11
- package/dist/index.d.ts +11 -11
- package/dist/index.js +25 -25
- package/dist/index.mjs +6 -6
- package/dist/{migrations-hbZHm8Tm.d.ts → migrations-B1kkIhIX.d.ts} +1 -1
- package/dist/{migrations-Dy9K8kJ0.d.mts → migrations-BNlQVzDC.d.mts} +1 -1
- package/dist/{objects-_6M6ngH3.d.ts → objects-DgFojgwH.d.ts} +2 -2
- package/dist/{objects-Cvt2T2Q5.d.mts → objects-DmMqHn3L.d.mts} +2 -2
- package/dist/{types-CX7S3Fhh.d.mts → types-DHqXzkgW.d.mts} +1 -1
- package/dist/{types-DseDsbMu.d.ts → types-DYYFto8d.d.ts} +1 -1
- package/dist/validation/all.d.mts +7 -7
- package/dist/validation/all.d.ts +7 -7
- package/dist/validation/all.js +11 -11
- package/dist/validation/all.mjs +5 -5
- package/dist/validation/complex/currency.d.mts +2 -2
- package/dist/validation/complex/currency.d.ts +2 -2
- package/dist/validation/complex/location.d.mts +2 -2
- package/dist/validation/complex/location.d.ts +2 -2
- package/dist/validation/complex/phone.d.mts +2 -2
- package/dist/validation/complex/phone.d.ts +2 -2
- package/dist/validation/complex/relation.d.mts +2 -2
- package/dist/validation/complex/relation.d.ts +2 -2
- package/dist/validation/complex/richtext.d.mts +2 -2
- package/dist/validation/complex/richtext.d.ts +2 -2
- package/dist/validation/complex/select.d.mts +2 -2
- package/dist/validation/complex/select.d.ts +2 -2
- package/dist/validation/complex/user.d.mts +2 -2
- package/dist/validation/complex/user.d.ts +2 -2
- package/dist/validation/computed/formula.d.mts +2 -2
- package/dist/validation/computed/formula.d.ts +2 -2
- package/dist/validation/computed/rollup.d.mts +2 -2
- package/dist/validation/computed/rollup.d.ts +2 -2
- package/dist/validation/config/index.d.mts +4 -4
- package/dist/validation/config/index.d.ts +4 -4
- 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 +5 -5
- package/dist/validation/object/index.d.ts +5 -5
- package/dist/validation/object/index.js +17 -17
- package/dist/validation/object/index.mjs +5 -5
- 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
- package/dist/{chunk-YCWGUPSI.mjs → chunk-QUZ3PN36.mjs} +4 -4
- package/dist/{chunk-NELH4AXI.js → chunk-ZEPGMHCK.js} +4 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import './types-
|
|
1
|
+
import './types-DHqXzkgW.mjs';
|
|
2
2
|
import './validation/core/index.mjs';
|
|
3
|
-
import { D as DetailViewConfig, L as ListViewConfig, V as ViewType, a as ViewConfig } from './index-
|
|
3
|
+
import { D as DetailViewConfig, L as ListViewConfig, V as ViewType, a as ViewConfig } from './index-C3P5Dnwt.mjs';
|
|
4
4
|
import { z } from 'zod';
|
|
5
|
-
import './helpers-
|
|
5
|
+
import './helpers-BiABdSxK.mjs';
|
|
6
6
|
|
|
7
7
|
declare const SCHEMA_LIMITS: {
|
|
8
8
|
readonly attributesPerObject: 300;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import './types-
|
|
1
|
+
import './types-DYYFto8d.js';
|
|
2
2
|
import './validation/core/index.js';
|
|
3
|
-
import { D as DetailViewConfig, L as ListViewConfig, V as ViewType, a as ViewConfig } from './index-
|
|
3
|
+
import { D as DetailViewConfig, L as ListViewConfig, V as ViewType, a as ViewConfig } from './index-SpFpkWVC.js';
|
|
4
4
|
import { z } from 'zod';
|
|
5
|
-
import './helpers-
|
|
5
|
+
import './helpers-DyoPqiSz.js';
|
|
6
6
|
|
|
7
7
|
declare const SCHEMA_LIMITS: {
|
|
8
8
|
readonly attributesPerObject: 300;
|
|
@@ -580,4 +580,4 @@ declare function isAttributeSortable(attr: {
|
|
|
580
580
|
type: AttributeType;
|
|
581
581
|
}): boolean;
|
|
582
582
|
|
|
583
|
-
export { type NumberUnit as $, type Attribute as A, type BilateralConfig as B, type CurrencyAttribute as C, type DateAttribute as D, type UserReferenceType as E, type FormulaAttribute as F, type AttributeGroup as G, type BaseAttribute as H, type ComputedFieldKind as I, type ComputedFormulaBinaryNode as J, type ComputedFormulaBinaryOperator as K, type LocationAttribute as L, type MultiRelationAttribute as M, type NumberAttribute as N, type Option as O, type PhoneAttribute as P, type ComputedFormulaCallNode as Q, type
|
|
583
|
+
export { type NumberUnit as $, type Attribute as A, type BilateralConfig as B, type CurrencyAttribute as C, type DateAttribute as D, type UserReferenceType as E, type FormulaAttribute as F, type AttributeGroup as G, type BaseAttribute as H, type ComputedFieldKind as I, type ComputedFormulaBinaryNode as J, type ComputedFormulaBinaryOperator as K, type LocationAttribute as L, type MultiRelationAttribute as M, type NumberAttribute as N, type Option as O, type PhoneAttribute as P, type ComputedFormulaCallNode as Q, type RelationAttribute as R, type SingleRelationAttribute as S, type TextAttribute as T, type UserAttribute as U, type ComputedFormulaLiteralNode as V, ComputedFormulaParseError as W, type ComputedFormulaPathNode as X, type ComputedStateStatus as Y, type DateFormat as Z, type DateValue as _, type RichtextAttribute as a, type OptionPropertyAttribute as a0, type PropertyType as a1, RELATION_TARGET_ANY as a2, type RichTextAttribute as a3, type StatusGroup as a4, hasOptions as a5, inferInverseCardinality as a6, isAttributeSortable as a7, isBilateralRelation as a8, isUniversalRelation as a9, parseComputedFormula as aa, resolvePropertyDefinitions as ab, type MultiselectAttribute as b, type SelectAttribute as c, type StatusAttribute as d, type RollupAttribute as e, type AttributeType as f, type CheckboxAttribute as g, type ComputedAttributeState as h, type ComputedValueType as i, type ComputedReturnType as j, type ComputedOptionsSource as k, type ComputedDependency as l, type ComputedPlan as m, type ComputedFormulaAstNode as n, type LocationGranularity as o, type Location as p, type DateRangeValue as q, type DocumentAttribute as r, type Phone as s, type Currency as t, type PropertySchema as u, type TimeFormat as v, type PropertyAttribute as w, type FormulaReturnType as x, type RelationTarget as y, type RollupFunction as z };
|
|
@@ -580,4 +580,4 @@ declare function isAttributeSortable(attr: {
|
|
|
580
580
|
type: AttributeType;
|
|
581
581
|
}): boolean;
|
|
582
582
|
|
|
583
|
-
export { type NumberUnit as $, type Attribute as A, type BilateralConfig as B, type CurrencyAttribute as C, type DateAttribute as D, type UserReferenceType as E, type FormulaAttribute as F, type AttributeGroup as G, type BaseAttribute as H, type ComputedFieldKind as I, type ComputedFormulaBinaryNode as J, type ComputedFormulaBinaryOperator as K, type LocationAttribute as L, type MultiRelationAttribute as M, type NumberAttribute as N, type Option as O, type PhoneAttribute as P, type ComputedFormulaCallNode as Q, type
|
|
583
|
+
export { type NumberUnit as $, type Attribute as A, type BilateralConfig as B, type CurrencyAttribute as C, type DateAttribute as D, type UserReferenceType as E, type FormulaAttribute as F, type AttributeGroup as G, type BaseAttribute as H, type ComputedFieldKind as I, type ComputedFormulaBinaryNode as J, type ComputedFormulaBinaryOperator as K, type LocationAttribute as L, type MultiRelationAttribute as M, type NumberAttribute as N, type Option as O, type PhoneAttribute as P, type ComputedFormulaCallNode as Q, type RelationAttribute as R, type SingleRelationAttribute as S, type TextAttribute as T, type UserAttribute as U, type ComputedFormulaLiteralNode as V, ComputedFormulaParseError as W, type ComputedFormulaPathNode as X, type ComputedStateStatus as Y, type DateFormat as Z, type DateValue as _, type RichtextAttribute as a, type OptionPropertyAttribute as a0, type PropertyType as a1, RELATION_TARGET_ANY as a2, type RichTextAttribute as a3, type StatusGroup as a4, hasOptions as a5, inferInverseCardinality as a6, isAttributeSortable as a7, isBilateralRelation as a8, isUniversalRelation as a9, parseComputedFormula as aa, resolvePropertyDefinitions as ab, type MultiselectAttribute as b, type SelectAttribute as c, type StatusAttribute as d, type RollupAttribute as e, type AttributeType as f, type CheckboxAttribute as g, type ComputedAttributeState as h, type ComputedValueType as i, type ComputedReturnType as j, type ComputedOptionsSource as k, type ComputedDependency as l, type ComputedPlan as m, type ComputedFormulaAstNode as n, type LocationGranularity as o, type Location as p, type DateRangeValue as q, type DocumentAttribute as r, type Phone as s, type Currency as t, type PropertySchema as u, type TimeFormat as v, type PropertyAttribute as w, type FormulaReturnType as x, type RelationTarget as y, type RollupFunction as z };
|
package/dist/exceptions.d.mts
CHANGED
package/dist/exceptions.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { A as Attribute } from './attributes
|
|
3
|
-
import { V as ValidationMessages, a as ValidationResult } from './types-
|
|
4
|
-
import { O as ObjectDefinition } from './objects-
|
|
2
|
+
import { A as Attribute } from './attributes--M1ifW8_.mjs';
|
|
3
|
+
import { V as ValidationMessages, a as ValidationResult } from './types-DHqXzkgW.mjs';
|
|
4
|
+
import { O as ObjectDefinition } from './objects-DmMqHn3L.mjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Create a Zod schema for any attribute type.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { A as Attribute } from './attributes-
|
|
3
|
-
import { V as ValidationMessages, a as ValidationResult } from './types-
|
|
4
|
-
import { O as ObjectDefinition } from './objects-
|
|
2
|
+
import { A as Attribute } from './attributes-D8eHv5Kf.js';
|
|
3
|
+
import { V as ValidationMessages, a as ValidationResult } from './types-DYYFto8d.js';
|
|
4
|
+
import { O as ObjectDefinition } from './objects-DgFojgwH.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Create a Zod schema for any attribute type.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { A as Attribute, f as AttributeType,
|
|
2
|
+
import { A as Attribute, f as AttributeType, e as RollupAttribute } from './attributes--M1ifW8_.mjs';
|
|
3
3
|
import { IconName } from '@stndrds/constants';
|
|
4
|
-
import { L as ListViewTabVisibility } from './objects-
|
|
4
|
+
import { L as ListViewTabVisibility } from './objects-DmMqHn3L.mjs';
|
|
5
5
|
|
|
6
6
|
/** Operators for text-based attributes */
|
|
7
7
|
type TextFilterOperator = "is" | "is_not" | "contains" | "not_contains" | "starts_with" | "ends_with" | "is_empty" | "is_not_empty";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { A as Attribute, f as AttributeType,
|
|
2
|
+
import { A as Attribute, f as AttributeType, e as RollupAttribute } from './attributes-D8eHv5Kf.js';
|
|
3
3
|
import { IconName } from '@stndrds/constants';
|
|
4
|
-
import { L as ListViewTabVisibility } from './objects-
|
|
4
|
+
import { L as ListViewTabVisibility } from './objects-DgFojgwH.js';
|
|
5
5
|
|
|
6
6
|
/** Operators for text-based attributes */
|
|
7
7
|
type TextFilterOperator = "is" | "is_not" | "contains" | "not_contains" | "starts_with" | "ends_with" | "is_empty" | "is_not_empty";
|
package/dist/index.d.mts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { S as SortRule, F as FilterState, V as ViewType, a as ViewConfig, C as ConfigOverrides, b as FilterOperator, D as DetailViewConfig, c as DetailViewDefinition, d as SidePanelConfig, e as Field, A as AttributeGroupField, f as FieldGroup, R as RelationGroup, G as Group, T as TableTab, g as CreateMode, E as EmailsTab, M as MeetingsTab, h as Tab, L as ListViewConfig, i as ListViewDefinition, j as ViewDefinition, k as ListViewTab, l as FilterValue, m as FilterRule, n as DynamicValue, o as RelativeDateValue } from './index-
|
|
2
|
-
export { p as ActivityTab, q as AddAttributeInput, r as AdvancedFilterState, s as CreateCustomObjectInput, t as CreateViewInput, u as CurrencyFilterValue, v as CustomTab, w as DayMonthValue, x as DocumentsTab, y as EdgeQuantifier, z as ExtendedFilterRule, B as FilterCombinator, H as FilterGroup, I as FormDensity, J as FormTab, K as FormsTab, N as InverseSource, O as ListViewLayout, P as NO_VALUE_OPERATORS, Q as NoValueOperator, U as OPERATORS_BY_TYPE, W as PhoneFilterValue, X as QueryState, Y as RelationOption, Z as RelationOptionsResponse, _ as RelationSource, $ as RichtextTab, a0 as SortDirection, a1 as TabType, a2 as TableSource, a3 as UpdateObjectInput, a4 as UpdateViewInput, a5 as ViewOverlay, a6 as getRollupFilterOperators, a7 as isDetailView, a8 as isFieldGroup, a9 as isListView, aa as isNoValueOperator, ab as isRelationGroup, ac as multiselectOptionWriteSchema, ad as parseAttributeConfig, ae as parseAttributeConfigForCreate, af as parseAttributeConfigForUpdate, ag as selectOptionWriteSchema, ah as statusGroupSchema, ai as statusOptionWriteSchema } from './index-
|
|
3
|
-
import { i as ComputedValueType, j as ComputedReturnType, f as AttributeType, k as ComputedOptionsSource, l as ComputedDependency, m as ComputedPlan,
|
|
4
|
-
export { G as AttributeGroup, H as BaseAttribute, h as ComputedAttributeState, I as ComputedFieldKind, J as ComputedFormulaBinaryNode, K as ComputedFormulaBinaryOperator, Q as ComputedFormulaCallNode, V as ComputedFormulaLiteralNode, W as ComputedFormulaParseError, X as ComputedFormulaPathNode, Y as ComputedStateStatus, Z as DateFormat, _ as DateValue, $ as NumberUnit, a0 as OptionPropertyAttribute, a1 as PropertyType, a2 as RELATION_TARGET_ANY, a3 as RichTextAttribute, a4 as StatusGroup, a5 as hasOptions, a6 as inferInverseCardinality, a7 as isAttributeSortable, a8 as isBilateralRelation, a9 as isUniversalRelation, aa as parseComputedFormula, ab as resolvePropertyDefinitions } from './attributes
|
|
1
|
+
import { S as SortRule, F as FilterState, V as ViewType, a as ViewConfig, C as ConfigOverrides, b as FilterOperator, D as DetailViewConfig, c as DetailViewDefinition, d as SidePanelConfig, e as Field, A as AttributeGroupField, f as FieldGroup, R as RelationGroup, G as Group, T as TableTab, g as CreateMode, E as EmailsTab, M as MeetingsTab, h as Tab, L as ListViewConfig, i as ListViewDefinition, j as ViewDefinition, k as ListViewTab, l as FilterValue, m as FilterRule, n as DynamicValue, o as RelativeDateValue } from './index-C3P5Dnwt.mjs';
|
|
2
|
+
export { p as ActivityTab, q as AddAttributeInput, r as AdvancedFilterState, s as CreateCustomObjectInput, t as CreateViewInput, u as CurrencyFilterValue, v as CustomTab, w as DayMonthValue, x as DocumentsTab, y as EdgeQuantifier, z as ExtendedFilterRule, B as FilterCombinator, H as FilterGroup, I as FormDensity, J as FormTab, K as FormsTab, N as InverseSource, O as ListViewLayout, P as NO_VALUE_OPERATORS, Q as NoValueOperator, U as OPERATORS_BY_TYPE, W as PhoneFilterValue, X as QueryState, Y as RelationOption, Z as RelationOptionsResponse, _ as RelationSource, $ as RichtextTab, a0 as SortDirection, a1 as TabType, a2 as TableSource, a3 as UpdateObjectInput, a4 as UpdateViewInput, a5 as ViewOverlay, a6 as getRollupFilterOperators, a7 as isDetailView, a8 as isFieldGroup, a9 as isListView, aa as isNoValueOperator, ab as isRelationGroup, ac as multiselectOptionWriteSchema, ad as parseAttributeConfig, ae as parseAttributeConfigForCreate, af as parseAttributeConfigForUpdate, ag as selectOptionWriteSchema, ah as statusGroupSchema, ai as statusOptionWriteSchema } from './index-C3P5Dnwt.mjs';
|
|
3
|
+
import { i as ComputedValueType, j as ComputedReturnType, f as AttributeType, k as ComputedOptionsSource, l as ComputedDependency, m as ComputedPlan, e as RollupAttribute, n as ComputedFormulaAstNode, A as Attribute, o as LocationGranularity, p as Location, F as FormulaAttribute, D as DateAttribute, q as DateRangeValue, r as DocumentAttribute, d as StatusAttribute, c as SelectAttribute, b as MultiselectAttribute, s as Phone, t as Currency, U as UserAttribute, T as TextAttribute, u as PropertySchema, g as CheckboxAttribute, C as CurrencyAttribute, v as TimeFormat, w as PropertyAttribute, x as FormulaReturnType, L as LocationAttribute, O as Option, N as NumberAttribute, P as PhoneAttribute, R as RelationAttribute, B as BilateralConfig, S as SingleRelationAttribute, M as MultiRelationAttribute, y as RelationTarget, a as RichtextAttribute, z as RollupFunction, E as UserReferenceType } from './attributes--M1ifW8_.mjs';
|
|
4
|
+
export { G as AttributeGroup, H as BaseAttribute, h as ComputedAttributeState, I as ComputedFieldKind, J as ComputedFormulaBinaryNode, K as ComputedFormulaBinaryOperator, Q as ComputedFormulaCallNode, V as ComputedFormulaLiteralNode, W as ComputedFormulaParseError, X as ComputedFormulaPathNode, Y as ComputedStateStatus, Z as DateFormat, _ as DateValue, $ as NumberUnit, a0 as OptionPropertyAttribute, a1 as PropertyType, a2 as RELATION_TARGET_ANY, a3 as RichTextAttribute, a4 as StatusGroup, a5 as hasOptions, a6 as inferInverseCardinality, a7 as isAttributeSortable, a8 as isBilateralRelation, a9 as isUniversalRelation, aa as parseComputedFormula, ab as resolvePropertyDefinitions } from './attributes--M1ifW8_.mjs';
|
|
5
5
|
import { IconName, MimeType, ColorId, CountryIso3, CurrencyCode } from '@stndrds/constants';
|
|
6
6
|
import { Uuid, TenantId } from './utils.mjs';
|
|
7
7
|
export { UserId, asTenantId, asUserId, deepEqual, generateId, indexBy } from './utils.mjs';
|
|
8
|
-
import { a as ObjectRecord, D as DocumentLayout, T as Timestamps, R as ResourceVisibility, O as ObjectDefinition, L as ListViewTabVisibility } from './objects-
|
|
9
|
-
export { b as DocumentLayoutVariant, F as FolderPreset, c as LIST_VIEW_TAB_VISIBILITIES, M as MAX_PRESET_DEPTH, d as ObjectAttribute, P as PresetNode, e as RESERVED_ATTRIBUTE_NAMES, f as RESERVED_OBJECT_NAMES, g as RESOURCE_VISIBILITIES, h as ReservedAttributeName, i as ReservedObjectName, S as SYSTEM_FIELD_NAMES, j as SystemFieldName, p as parseResourceVisibility } from './objects-
|
|
10
|
-
import { M as MigrationDefinition } from './migrations-
|
|
11
|
-
export { B as BuiltInTransform, S as SchemaOperation } from './migrations-
|
|
8
|
+
import { a as ObjectRecord, D as DocumentLayout, T as Timestamps, R as ResourceVisibility, O as ObjectDefinition, L as ListViewTabVisibility } from './objects-DmMqHn3L.mjs';
|
|
9
|
+
export { b as DocumentLayoutVariant, F as FolderPreset, c as LIST_VIEW_TAB_VISIBILITIES, M as MAX_PRESET_DEPTH, d as ObjectAttribute, P as PresetNode, e as RESERVED_ATTRIBUTE_NAMES, f as RESERVED_OBJECT_NAMES, g as RESOURCE_VISIBILITIES, h as ReservedAttributeName, i as ReservedObjectName, S as SYSTEM_FIELD_NAMES, j as SystemFieldName, p as parseResourceVisibility } from './objects-DmMqHn3L.mjs';
|
|
10
|
+
import { M as MigrationDefinition } from './migrations-BNlQVzDC.mjs';
|
|
11
|
+
export { B as BuiltInTransform, S as SchemaOperation } from './migrations-BNlQVzDC.mjs';
|
|
12
12
|
import { ValidationError } from './exceptions.mjs';
|
|
13
13
|
export { AccessDeniedError, AttributeInUseError, AttributeNotFoundError, AttributeUsage, ChangeTypeNotSupportedError, ConcurrentModificationError, DestructiveSyncNotAllowedError, DuplicateError, ForbiddenError, MemoryNotFoundError, MigrationTimeoutError, NotFoundError, NotImplementedError, ObjectNotFoundError, ObjectReferencedError, OrphanSystemAttributeError, ProtectedResourceError, ProtectedRoleError, RecordNotFoundError, RecordReference, RecordReferencedError, RepositoryError, RepositoryOperation, RoleNotFoundError, SchemaError, SchemaErrorCode, SchemaPlanNotFoundError, SearchBackendError, StorageError, StorageOperation, SyncCascadeError, SyncConflictError, SyncError, SystemEntityImmutableError, ValidationErrorDetail, isAttributeInUseError, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isSchemaError, isValidationError } from './exceptions.mjs';
|
|
14
14
|
import { StandardSchemaV1 } from '@standard-schema/spec';
|
|
15
15
|
export { StandardSchemaV1 } from '@standard-schema/spec';
|
|
16
16
|
import z, { z as z$1 } from 'zod';
|
|
17
|
-
export { V as ValidationMessages } from './types-
|
|
17
|
+
export { V as ValidationMessages } from './types-DHqXzkgW.mjs';
|
|
18
18
|
export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './validation/core/index.mjs';
|
|
19
|
-
export { S as SCHEMA_LIMITS, c as colorIdSchema, d as detailTabSchema, a as detailViewConfigSchema, i as iconNameSchema, b as inverseSourceSchema, l as listViewConfigSchema, e as listViewTabSchema, p as parseViewConfig, r as relationSourceSchema, t as tableSourceSchema, v as viewConfigByTypeSchema, f as viewTypeSchema } from './all-
|
|
20
|
-
export { a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, b as validateDraft, d as validateDraftOrThrow, e as validateObject, f as validateObjectOrThrow } from './helpers-
|
|
19
|
+
export { S as SCHEMA_LIMITS, c as colorIdSchema, d as detailTabSchema, a as detailViewConfigSchema, i as iconNameSchema, b as inverseSourceSchema, l as listViewConfigSchema, e as listViewTabSchema, p as parseViewConfig, r as relationSourceSchema, t as tableSourceSchema, v as viewConfigByTypeSchema, f as viewTypeSchema } from './all-Bk8cRKsu.mjs';
|
|
20
|
+
export { a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, b as validateDraft, d as validateDraftOrThrow, e as validateObject, f as validateObjectOrThrow } from './helpers-BiABdSxK.mjs';
|
|
21
21
|
export { createCheckboxValidator } from './validation/primitives/checkbox.mjs';
|
|
22
22
|
export { createDateValidator } from './validation/primitives/date.mjs';
|
|
23
23
|
export { createNumberValidator } from './validation/primitives/number.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { S as SortRule, F as FilterState, V as ViewType, a as ViewConfig, C as ConfigOverrides, b as FilterOperator, D as DetailViewConfig, c as DetailViewDefinition, d as SidePanelConfig, e as Field, A as AttributeGroupField, f as FieldGroup, R as RelationGroup, G as Group, T as TableTab, g as CreateMode, E as EmailsTab, M as MeetingsTab, h as Tab, L as ListViewConfig, i as ListViewDefinition, j as ViewDefinition, k as ListViewTab, l as FilterValue, m as FilterRule, n as DynamicValue, o as RelativeDateValue } from './index-
|
|
2
|
-
export { p as ActivityTab, q as AddAttributeInput, r as AdvancedFilterState, s as CreateCustomObjectInput, t as CreateViewInput, u as CurrencyFilterValue, v as CustomTab, w as DayMonthValue, x as DocumentsTab, y as EdgeQuantifier, z as ExtendedFilterRule, B as FilterCombinator, H as FilterGroup, I as FormDensity, J as FormTab, K as FormsTab, N as InverseSource, O as ListViewLayout, P as NO_VALUE_OPERATORS, Q as NoValueOperator, U as OPERATORS_BY_TYPE, W as PhoneFilterValue, X as QueryState, Y as RelationOption, Z as RelationOptionsResponse, _ as RelationSource, $ as RichtextTab, a0 as SortDirection, a1 as TabType, a2 as TableSource, a3 as UpdateObjectInput, a4 as UpdateViewInput, a5 as ViewOverlay, a6 as getRollupFilterOperators, a7 as isDetailView, a8 as isFieldGroup, a9 as isListView, aa as isNoValueOperator, ab as isRelationGroup, ac as multiselectOptionWriteSchema, ad as parseAttributeConfig, ae as parseAttributeConfigForCreate, af as parseAttributeConfigForUpdate, ag as selectOptionWriteSchema, ah as statusGroupSchema, ai as statusOptionWriteSchema } from './index-
|
|
3
|
-
import { i as ComputedValueType, j as ComputedReturnType, f as AttributeType, k as ComputedOptionsSource, l as ComputedDependency, m as ComputedPlan,
|
|
4
|
-
export { G as AttributeGroup, H as BaseAttribute, h as ComputedAttributeState, I as ComputedFieldKind, J as ComputedFormulaBinaryNode, K as ComputedFormulaBinaryOperator, Q as ComputedFormulaCallNode, V as ComputedFormulaLiteralNode, W as ComputedFormulaParseError, X as ComputedFormulaPathNode, Y as ComputedStateStatus, Z as DateFormat, _ as DateValue, $ as NumberUnit, a0 as OptionPropertyAttribute, a1 as PropertyType, a2 as RELATION_TARGET_ANY, a3 as RichTextAttribute, a4 as StatusGroup, a5 as hasOptions, a6 as inferInverseCardinality, a7 as isAttributeSortable, a8 as isBilateralRelation, a9 as isUniversalRelation, aa as parseComputedFormula, ab as resolvePropertyDefinitions } from './attributes-
|
|
1
|
+
import { S as SortRule, F as FilterState, V as ViewType, a as ViewConfig, C as ConfigOverrides, b as FilterOperator, D as DetailViewConfig, c as DetailViewDefinition, d as SidePanelConfig, e as Field, A as AttributeGroupField, f as FieldGroup, R as RelationGroup, G as Group, T as TableTab, g as CreateMode, E as EmailsTab, M as MeetingsTab, h as Tab, L as ListViewConfig, i as ListViewDefinition, j as ViewDefinition, k as ListViewTab, l as FilterValue, m as FilterRule, n as DynamicValue, o as RelativeDateValue } from './index-SpFpkWVC.js';
|
|
2
|
+
export { p as ActivityTab, q as AddAttributeInput, r as AdvancedFilterState, s as CreateCustomObjectInput, t as CreateViewInput, u as CurrencyFilterValue, v as CustomTab, w as DayMonthValue, x as DocumentsTab, y as EdgeQuantifier, z as ExtendedFilterRule, B as FilterCombinator, H as FilterGroup, I as FormDensity, J as FormTab, K as FormsTab, N as InverseSource, O as ListViewLayout, P as NO_VALUE_OPERATORS, Q as NoValueOperator, U as OPERATORS_BY_TYPE, W as PhoneFilterValue, X as QueryState, Y as RelationOption, Z as RelationOptionsResponse, _ as RelationSource, $ as RichtextTab, a0 as SortDirection, a1 as TabType, a2 as TableSource, a3 as UpdateObjectInput, a4 as UpdateViewInput, a5 as ViewOverlay, a6 as getRollupFilterOperators, a7 as isDetailView, a8 as isFieldGroup, a9 as isListView, aa as isNoValueOperator, ab as isRelationGroup, ac as multiselectOptionWriteSchema, ad as parseAttributeConfig, ae as parseAttributeConfigForCreate, af as parseAttributeConfigForUpdate, ag as selectOptionWriteSchema, ah as statusGroupSchema, ai as statusOptionWriteSchema } from './index-SpFpkWVC.js';
|
|
3
|
+
import { i as ComputedValueType, j as ComputedReturnType, f as AttributeType, k as ComputedOptionsSource, l as ComputedDependency, m as ComputedPlan, e as RollupAttribute, n as ComputedFormulaAstNode, A as Attribute, o as LocationGranularity, p as Location, F as FormulaAttribute, D as DateAttribute, q as DateRangeValue, r as DocumentAttribute, d as StatusAttribute, c as SelectAttribute, b as MultiselectAttribute, s as Phone, t as Currency, U as UserAttribute, T as TextAttribute, u as PropertySchema, g as CheckboxAttribute, C as CurrencyAttribute, v as TimeFormat, w as PropertyAttribute, x as FormulaReturnType, L as LocationAttribute, O as Option, N as NumberAttribute, P as PhoneAttribute, R as RelationAttribute, B as BilateralConfig, S as SingleRelationAttribute, M as MultiRelationAttribute, y as RelationTarget, a as RichtextAttribute, z as RollupFunction, E as UserReferenceType } from './attributes-D8eHv5Kf.js';
|
|
4
|
+
export { G as AttributeGroup, H as BaseAttribute, h as ComputedAttributeState, I as ComputedFieldKind, J as ComputedFormulaBinaryNode, K as ComputedFormulaBinaryOperator, Q as ComputedFormulaCallNode, V as ComputedFormulaLiteralNode, W as ComputedFormulaParseError, X as ComputedFormulaPathNode, Y as ComputedStateStatus, Z as DateFormat, _ as DateValue, $ as NumberUnit, a0 as OptionPropertyAttribute, a1 as PropertyType, a2 as RELATION_TARGET_ANY, a3 as RichTextAttribute, a4 as StatusGroup, a5 as hasOptions, a6 as inferInverseCardinality, a7 as isAttributeSortable, a8 as isBilateralRelation, a9 as isUniversalRelation, aa as parseComputedFormula, ab as resolvePropertyDefinitions } from './attributes-D8eHv5Kf.js';
|
|
5
5
|
import { IconName, MimeType, ColorId, CountryIso3, CurrencyCode } from '@stndrds/constants';
|
|
6
6
|
import { Uuid, TenantId } from './utils.js';
|
|
7
7
|
export { UserId, asTenantId, asUserId, deepEqual, generateId, indexBy } from './utils.js';
|
|
8
|
-
import { a as ObjectRecord, D as DocumentLayout, T as Timestamps, R as ResourceVisibility, O as ObjectDefinition, L as ListViewTabVisibility } from './objects-
|
|
9
|
-
export { b as DocumentLayoutVariant, F as FolderPreset, c as LIST_VIEW_TAB_VISIBILITIES, M as MAX_PRESET_DEPTH, d as ObjectAttribute, P as PresetNode, e as RESERVED_ATTRIBUTE_NAMES, f as RESERVED_OBJECT_NAMES, g as RESOURCE_VISIBILITIES, h as ReservedAttributeName, i as ReservedObjectName, S as SYSTEM_FIELD_NAMES, j as SystemFieldName, p as parseResourceVisibility } from './objects-
|
|
10
|
-
import { M as MigrationDefinition } from './migrations-
|
|
11
|
-
export { B as BuiltInTransform, S as SchemaOperation } from './migrations-
|
|
8
|
+
import { a as ObjectRecord, D as DocumentLayout, T as Timestamps, R as ResourceVisibility, O as ObjectDefinition, L as ListViewTabVisibility } from './objects-DgFojgwH.js';
|
|
9
|
+
export { b as DocumentLayoutVariant, F as FolderPreset, c as LIST_VIEW_TAB_VISIBILITIES, M as MAX_PRESET_DEPTH, d as ObjectAttribute, P as PresetNode, e as RESERVED_ATTRIBUTE_NAMES, f as RESERVED_OBJECT_NAMES, g as RESOURCE_VISIBILITIES, h as ReservedAttributeName, i as ReservedObjectName, S as SYSTEM_FIELD_NAMES, j as SystemFieldName, p as parseResourceVisibility } from './objects-DgFojgwH.js';
|
|
10
|
+
import { M as MigrationDefinition } from './migrations-B1kkIhIX.js';
|
|
11
|
+
export { B as BuiltInTransform, S as SchemaOperation } from './migrations-B1kkIhIX.js';
|
|
12
12
|
import { ValidationError } from './exceptions.js';
|
|
13
13
|
export { AccessDeniedError, AttributeInUseError, AttributeNotFoundError, AttributeUsage, ChangeTypeNotSupportedError, ConcurrentModificationError, DestructiveSyncNotAllowedError, DuplicateError, ForbiddenError, MemoryNotFoundError, MigrationTimeoutError, NotFoundError, NotImplementedError, ObjectNotFoundError, ObjectReferencedError, OrphanSystemAttributeError, ProtectedResourceError, ProtectedRoleError, RecordNotFoundError, RecordReference, RecordReferencedError, RepositoryError, RepositoryOperation, RoleNotFoundError, SchemaError, SchemaErrorCode, SchemaPlanNotFoundError, SearchBackendError, StorageError, StorageOperation, SyncCascadeError, SyncConflictError, SyncError, SystemEntityImmutableError, ValidationErrorDetail, isAttributeInUseError, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isSchemaError, isValidationError } from './exceptions.js';
|
|
14
14
|
import { StandardSchemaV1 } from '@standard-schema/spec';
|
|
15
15
|
export { StandardSchemaV1 } from '@standard-schema/spec';
|
|
16
16
|
import z, { z as z$1 } from 'zod';
|
|
17
|
-
export { V as ValidationMessages } from './types-
|
|
17
|
+
export { V as ValidationMessages } from './types-DYYFto8d.js';
|
|
18
18
|
export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './validation/core/index.js';
|
|
19
|
-
export { S as SCHEMA_LIMITS, c as colorIdSchema, d as detailTabSchema, a as detailViewConfigSchema, i as iconNameSchema, b as inverseSourceSchema, l as listViewConfigSchema, e as listViewTabSchema, p as parseViewConfig, r as relationSourceSchema, t as tableSourceSchema, v as viewConfigByTypeSchema, f as viewTypeSchema } from './all-
|
|
20
|
-
export { a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, b as validateDraft, d as validateDraftOrThrow, e as validateObject, f as validateObjectOrThrow } from './helpers-
|
|
19
|
+
export { S as SCHEMA_LIMITS, c as colorIdSchema, d as detailTabSchema, a as detailViewConfigSchema, i as iconNameSchema, b as inverseSourceSchema, l as listViewConfigSchema, e as listViewTabSchema, p as parseViewConfig, r as relationSourceSchema, t as tableSourceSchema, v as viewConfigByTypeSchema, f as viewTypeSchema } from './all-C_tC90ZM.js';
|
|
20
|
+
export { a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, b as validateDraft, d as validateDraftOrThrow, e as validateObject, f as validateObjectOrThrow } from './helpers-DyoPqiSz.js';
|
|
21
21
|
export { createCheckboxValidator } from './validation/primitives/checkbox.js';
|
|
22
22
|
export { createDateValidator } from './validation/primitives/date.js';
|
|
23
23
|
export { createNumberValidator } from './validation/primitives/number.js';
|
package/dist/index.js
CHANGED
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
var chunkFRCDMQER_js = require('./chunk-FRCDMQER.js');
|
|
4
4
|
var chunkQMAVKX3Y_js = require('./chunk-QMAVKX3Y.js');
|
|
5
5
|
var chunkDEHBEFGO_js = require('./chunk-DEHBEFGO.js');
|
|
6
|
-
var
|
|
7
|
-
var chunkQ4SZAMJT_js = require('./chunk-Q4SZAMJT.js');
|
|
8
|
-
require('./chunk-EEH4XQ7W.js');
|
|
6
|
+
var chunkZEPGMHCK_js = require('./chunk-ZEPGMHCK.js');
|
|
9
7
|
require('./chunk-EW5XR2X3.js');
|
|
10
8
|
require('./chunk-QWKLQRBX.js');
|
|
11
9
|
require('./chunk-KNGWHQLR.js');
|
|
10
|
+
require('./chunk-HTSTPTNZ.js');
|
|
11
|
+
require('./chunk-V2UA2D4E.js');
|
|
12
12
|
var chunk5WATIVCA_js = require('./chunk-5WATIVCA.js');
|
|
13
13
|
var chunkSI34M4IC_js = require('./chunk-SI34M4IC.js');
|
|
14
14
|
var chunkYIP5FJ5H_js = require('./chunk-YIP5FJ5H.js');
|
|
15
15
|
var chunkZPFOKBIN_js = require('./chunk-ZPFOKBIN.js');
|
|
16
16
|
var chunkZBWTAKZO_js = require('./chunk-ZBWTAKZO.js');
|
|
17
|
-
require('./chunk-HTSTPTNZ.js');
|
|
18
|
-
require('./chunk-V2UA2D4E.js');
|
|
19
17
|
require('./chunk-ACKMC6FL.js');
|
|
20
18
|
require('./chunk-E6JUYGJX.js');
|
|
19
|
+
var chunkQ4SZAMJT_js = require('./chunk-Q4SZAMJT.js');
|
|
20
|
+
require('./chunk-EEH4XQ7W.js');
|
|
21
21
|
var chunkYKWSHBT5_js = require('./chunk-YKWSHBT5.js');
|
|
22
22
|
var constants = require('@stndrds/constants');
|
|
23
23
|
var z2 = require('zod');
|
|
@@ -493,7 +493,7 @@ function isDateRangeValue(value) {
|
|
|
493
493
|
return typeof value === "object" && value !== null && typeof value.start === "string";
|
|
494
494
|
}
|
|
495
495
|
function normalizeDateValue(value, attr) {
|
|
496
|
-
if (
|
|
496
|
+
if (chunkZEPGMHCK_js.isNullishOrEmptyString(value)) return null;
|
|
497
497
|
if (isDateRangeValue(value)) {
|
|
498
498
|
return attr.endDate ? { start: value.start, end: value.end ?? null } : value.start;
|
|
499
499
|
}
|
|
@@ -631,7 +631,7 @@ function formatMultiselect(value, attribute) {
|
|
|
631
631
|
return value.join(", ");
|
|
632
632
|
}
|
|
633
633
|
function formatAttributeValue(value, attribute) {
|
|
634
|
-
if (
|
|
634
|
+
if (chunkZEPGMHCK_js.isNullishOrEmptyString(value)) {
|
|
635
635
|
return EMPTY_VALUE_PLACEHOLDER;
|
|
636
636
|
}
|
|
637
637
|
switch (attribute.type) {
|
|
@@ -784,7 +784,7 @@ function renderLabelExpression(template, values, fallback = DEFAULT_LABEL_FALLBA
|
|
|
784
784
|
break;
|
|
785
785
|
}
|
|
786
786
|
}
|
|
787
|
-
const isEmpty2 =
|
|
787
|
+
const isEmpty2 = chunkZEPGMHCK_js.isNullishOrEmptyString(value);
|
|
788
788
|
if (isEmpty2 && pipes.length === 0) return "";
|
|
789
789
|
for (const pipeExpr of pipes) {
|
|
790
790
|
const { name: pipeName, args } = parsePipeExpression(pipeExpr);
|
|
@@ -861,7 +861,7 @@ function relationPropertyDefs(attribute) {
|
|
|
861
861
|
return attribute.properties?.definitions;
|
|
862
862
|
}
|
|
863
863
|
function extractValueRefs(value) {
|
|
864
|
-
if (
|
|
864
|
+
if (chunkZEPGMHCK_js.isNullishOrEmptyString(value)) return [];
|
|
865
865
|
if (typeof value === "string") return [{ id: value }];
|
|
866
866
|
if (Array.isArray(value)) return value.flatMap((item) => extractValueRefs(item));
|
|
867
867
|
if (typeof value === "object" && "id" in value) {
|
|
@@ -1387,7 +1387,7 @@ var BaseAttributeBuilder = class {
|
|
|
1387
1387
|
* @see https://standardschema.dev/
|
|
1388
1388
|
*/
|
|
1389
1389
|
get "~standard"() {
|
|
1390
|
-
const zodSchema =
|
|
1390
|
+
const zodSchema = chunkZEPGMHCK_js.createAttributeValidator(this.build());
|
|
1391
1391
|
return createStandardSchemaProps(zodSchema);
|
|
1392
1392
|
}
|
|
1393
1393
|
constructor(type, name, label) {
|
|
@@ -2646,7 +2646,7 @@ var ObjectBuilder = class {
|
|
|
2646
2646
|
* @see https://standardschema.dev/
|
|
2647
2647
|
*/
|
|
2648
2648
|
get "~standard"() {
|
|
2649
|
-
const zodSchema =
|
|
2649
|
+
const zodSchema = chunkZEPGMHCK_js.createObjectValidator(this.build());
|
|
2650
2650
|
return createStandardSchemaProps(zodSchema);
|
|
2651
2651
|
}
|
|
2652
2652
|
/**
|
|
@@ -6452,9 +6452,9 @@ function evaluateCall(functionName, args) {
|
|
|
6452
6452
|
case "percent_not_empty":
|
|
6453
6453
|
return percentByEmptyState(args[0], false);
|
|
6454
6454
|
case "count_empty":
|
|
6455
|
-
return collectionItems(args[0]).filter(
|
|
6455
|
+
return collectionItems(args[0]).filter(chunkZEPGMHCK_js.isNullishOrEmptyString).length;
|
|
6456
6456
|
case "count_not_empty":
|
|
6457
|
-
return collectionItems(args[0]).filter((item) => !
|
|
6457
|
+
return collectionItems(args[0]).filter((item) => !chunkZEPGMHCK_js.isNullishOrEmptyString(item)).length;
|
|
6458
6458
|
case "count_unique":
|
|
6459
6459
|
return uniqueNonEmpty(collectionItems(args[0])).length;
|
|
6460
6460
|
default:
|
|
@@ -6497,14 +6497,14 @@ function percentByEmptyState(value, countEmpty) {
|
|
|
6497
6497
|
if (items.length === 0) {
|
|
6498
6498
|
return 0;
|
|
6499
6499
|
}
|
|
6500
|
-
const count = items.filter((item) =>
|
|
6500
|
+
const count = items.filter((item) => chunkZEPGMHCK_js.isNullishOrEmptyString(item) === countEmpty).length;
|
|
6501
6501
|
return count / items.length;
|
|
6502
6502
|
}
|
|
6503
6503
|
function uniqueNonEmpty(values) {
|
|
6504
6504
|
const seen = /* @__PURE__ */ new Set();
|
|
6505
6505
|
const result = [];
|
|
6506
6506
|
for (const value of values) {
|
|
6507
|
-
if (
|
|
6507
|
+
if (chunkZEPGMHCK_js.isNullishOrEmptyString(value)) {
|
|
6508
6508
|
continue;
|
|
6509
6509
|
}
|
|
6510
6510
|
const key = uniqueKey(value);
|
|
@@ -6747,10 +6747,10 @@ var COMPUTED_FUNCTION_METADATA = [
|
|
|
6747
6747
|
];
|
|
6748
6748
|
|
|
6749
6749
|
// src/filters/operators.ts
|
|
6750
|
-
var isEmpty = (v) =>
|
|
6750
|
+
var isEmpty = (v) => chunkZEPGMHCK_js.isNullishOrEmptyString(v) || Array.isArray(v) && v.length === 0;
|
|
6751
6751
|
var toStr = (v) => v == null ? "" : String(v);
|
|
6752
6752
|
var toNum = (v) => {
|
|
6753
|
-
if (
|
|
6753
|
+
if (chunkZEPGMHCK_js.isNullishOrEmptyString(v)) return null;
|
|
6754
6754
|
const n = typeof v === "number" ? v : Number(v);
|
|
6755
6755
|
return Number.isFinite(n) ? n : null;
|
|
6756
6756
|
};
|
|
@@ -7828,35 +7828,35 @@ Object.defineProperty(exports, "statusOptionWriteSchema", {
|
|
|
7828
7828
|
});
|
|
7829
7829
|
Object.defineProperty(exports, "createFormAttributeValidator", {
|
|
7830
7830
|
enumerable: true,
|
|
7831
|
-
get: function () { return
|
|
7831
|
+
get: function () { return chunkZEPGMHCK_js.createFormAttributeValidator; }
|
|
7832
7832
|
});
|
|
7833
7833
|
Object.defineProperty(exports, "isNullishOrEmptyString", {
|
|
7834
7834
|
enumerable: true,
|
|
7835
|
-
get: function () { return
|
|
7835
|
+
get: function () { return chunkZEPGMHCK_js.isNullishOrEmptyString; }
|
|
7836
7836
|
});
|
|
7837
7837
|
Object.defineProperty(exports, "isValuePresent", {
|
|
7838
7838
|
enumerable: true,
|
|
7839
|
-
get: function () { return
|
|
7839
|
+
get: function () { return chunkZEPGMHCK_js.isValuePresent; }
|
|
7840
7840
|
});
|
|
7841
7841
|
Object.defineProperty(exports, "rejectUnknownAttributesOrThrow", {
|
|
7842
7842
|
enumerable: true,
|
|
7843
|
-
get: function () { return
|
|
7843
|
+
get: function () { return chunkZEPGMHCK_js.rejectUnknownAttributesOrThrow; }
|
|
7844
7844
|
});
|
|
7845
7845
|
Object.defineProperty(exports, "validateDraft", {
|
|
7846
7846
|
enumerable: true,
|
|
7847
|
-
get: function () { return
|
|
7847
|
+
get: function () { return chunkZEPGMHCK_js.validateDraft; }
|
|
7848
7848
|
});
|
|
7849
7849
|
Object.defineProperty(exports, "validateDraftOrThrow", {
|
|
7850
7850
|
enumerable: true,
|
|
7851
|
-
get: function () { return
|
|
7851
|
+
get: function () { return chunkZEPGMHCK_js.validateDraftOrThrow; }
|
|
7852
7852
|
});
|
|
7853
7853
|
Object.defineProperty(exports, "validateObject", {
|
|
7854
7854
|
enumerable: true,
|
|
7855
|
-
get: function () { return
|
|
7855
|
+
get: function () { return chunkZEPGMHCK_js.validateObject; }
|
|
7856
7856
|
});
|
|
7857
7857
|
Object.defineProperty(exports, "validateObjectOrThrow", {
|
|
7858
7858
|
enumerable: true,
|
|
7859
|
-
get: function () { return
|
|
7859
|
+
get: function () { return chunkZEPGMHCK_js.validateObjectOrThrow; }
|
|
7860
7860
|
});
|
|
7861
7861
|
Object.defineProperty(exports, "createCheckboxValidator", {
|
|
7862
7862
|
enumerable: true,
|
package/dist/index.mjs
CHANGED
|
@@ -4,23 +4,23 @@ import { SYSTEM_FILTER_ATTRIBUTE_TYPES, RESERVED_OBJECT_NAMES, listViewConfigSch
|
|
|
4
4
|
export { ATTRIBUTE_FILTER_OPERATORS, LIST_VIEW_TAB_VISIBILITIES, NO_VALUE_OPERATORS, OPERATORS_BY_TYPE, REMOVED_OPERATOR_REPLACEMENTS, RESERVED_ATTRIBUTE_NAMES, RESERVED_OBJECT_NAMES, RESOURCE_VISIBILITIES, SYNONYM_ALIASES, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_FIELD_NAMES, SYSTEM_FILTER_ATTRIBUTE_TYPES, canonicalizeFilterValue, collectQualifiedRuleIssues, currentActor, detailTabSchema, detailViewConfigSchema, extractCurrencyFilterValue, extractFilterValue, getAttributeCapabilities, getAttributeFilterOperators, getOperatorPolarity, getRollupFilterOperators, getSystemAttributeI18nKey, getSystemAttributeList, inverseSourceSchema, isAttributeFilterable, isAttributeGroupable, isAttributeKanbanGroupable, isAttributeSearchable, isDynamicValue, isManagedSystemAttribute, isNoValueOperator, isRelativeDateValue, isSetMembershipOperator, listViewConfigSchema, listViewTabSchema, normalizeFilterRule, normalizeForEdgeRpc, normalizeOperator, now, parseResourceVisibility, parseViewConfig, relationSourceSchema, resolveEffectiveFilterType, resolveIsWithinBounds, resolveUtcDayBounds, tableSourceSchema, toMultiValueOperator, toUtcDayString, today, validateQualifiedRule, viewConfigByTypeSchema, viewTypeSchema } from './chunk-5PLJHYSL.mjs';
|
|
5
5
|
import { iconNameSchema, parseAttributeConfigForCreate, parseComputedFormula } from './chunk-PQEOIDXD.mjs';
|
|
6
6
|
export { ComputedFormulaParseError, SCHEMA_LIMITS, colorIdSchema, iconNameSchema, multiselectOptionWriteSchema, parseAttributeConfig, parseAttributeConfigForCreate, parseAttributeConfigForUpdate, parseComputedFormula, selectOptionWriteSchema, statusGroupSchema, statusOptionWriteSchema } from './chunk-PQEOIDXD.mjs';
|
|
7
|
-
import { createObjectValidator, createAttributeValidator, isNullishOrEmptyString } from './chunk-
|
|
8
|
-
export { createFormAttributeValidator, isNullishOrEmptyString, isValuePresent, rejectUnknownAttributesOrThrow, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from './chunk-
|
|
9
|
-
import { formatPhoneForDisplay, normalizeCountrylessPhoneNumber, normalizePhoneNumber } from './chunk-R5LAJCBU.mjs';
|
|
10
|
-
import './chunk-GO6LQADH.mjs';
|
|
7
|
+
import { createObjectValidator, createAttributeValidator, isNullishOrEmptyString } from './chunk-QUZ3PN36.mjs';
|
|
8
|
+
export { createFormAttributeValidator, isNullishOrEmptyString, isValuePresent, rejectUnknownAttributesOrThrow, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from './chunk-QUZ3PN36.mjs';
|
|
11
9
|
import './chunk-QVLQPW3O.mjs';
|
|
12
10
|
import './chunk-ZDQ5AP26.mjs';
|
|
13
11
|
import './chunk-LV3FEUKU.mjs';
|
|
12
|
+
import './chunk-UXAHLSWC.mjs';
|
|
13
|
+
import './chunk-NS63SPNN.mjs';
|
|
14
14
|
export { createCheckboxValidator } from './chunk-OSSGN43B.mjs';
|
|
15
15
|
export { createDateValidator } from './chunk-Q44QKLN4.mjs';
|
|
16
16
|
export { createNumberValidator } from './chunk-UANQJ2GH.mjs';
|
|
17
17
|
export { TEXT_FORMAT_PATTERNS, createTextValidator, resolveTextPattern } from './chunk-O73ROMWQ.mjs';
|
|
18
18
|
import { SchemaError, SchemaErrorCode, ValidationError, DuplicateError, NotFoundError } from './chunk-V2WJFUZW.mjs';
|
|
19
19
|
export { AccessDeniedError, AttributeInUseError, AttributeNotFoundError, ChangeTypeNotSupportedError, ConcurrentModificationError, DestructiveSyncNotAllowedError, DuplicateError, ForbiddenError, MemoryNotFoundError, MigrationTimeoutError, NotFoundError, NotImplementedError, ObjectNotFoundError, ObjectReferencedError, OrphanSystemAttributeError, ProtectedResourceError, ProtectedRoleError, RecordNotFoundError, RecordReferencedError, RepositoryError, RoleNotFoundError, SchemaError, SchemaErrorCode, SchemaPlanNotFoundError, SearchBackendError, StorageError, SyncCascadeError, SyncConflictError, SyncError, SystemEntityImmutableError, ValidationError, isAttributeInUseError, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isSchemaError, isValidationError } from './chunk-V2WJFUZW.mjs';
|
|
20
|
-
import './chunk-UXAHLSWC.mjs';
|
|
21
|
-
import './chunk-NS63SPNN.mjs';
|
|
22
20
|
import './chunk-AYVHMVKQ.mjs';
|
|
23
21
|
import './chunk-YUFTHPOE.mjs';
|
|
22
|
+
import { formatPhoneForDisplay, normalizeCountrylessPhoneNumber, normalizePhoneNumber } from './chunk-R5LAJCBU.mjs';
|
|
23
|
+
import './chunk-GO6LQADH.mjs';
|
|
24
24
|
export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './chunk-HRQEZUAA.mjs';
|
|
25
25
|
import { ICONS, SKILL_NAME_MAX_LENGTH, SKILL_DESCRIPTION_MAX_LENGTH, MEMORY_NAME_MAX_LENGTH, MEMORY_DESCRIPTION_MAX_LENGTH, getCountryDisplayNameByIso3 } from '@stndrds/constants';
|
|
26
26
|
import z2, { z } from 'zod';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as Attribute, f as AttributeType } from './attributes-
|
|
1
|
+
import { A as Attribute, f as AttributeType } from './attributes-D8eHv5Kf.js';
|
|
2
2
|
|
|
3
3
|
type BuiltInTransform = "toString" | "toNumber" | "toDate" | "toBoolean" | "toISOString";
|
|
4
4
|
type SchemaOperation = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as Attribute, f as AttributeType } from './attributes
|
|
1
|
+
import { A as Attribute, f as AttributeType } from './attributes--M1ifW8_.mjs';
|
|
2
2
|
|
|
3
3
|
type BuiltInTransform = "toString" | "toNumber" | "toDate" | "toBoolean" | "toISOString";
|
|
4
4
|
type SchemaOperation = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IconName } from '@stndrds/constants';
|
|
2
|
-
import { h as ComputedAttributeState, A as Attribute } from './attributes-
|
|
2
|
+
import { h as ComputedAttributeState, A as Attribute } from './attributes-D8eHv5Kf.js';
|
|
3
3
|
import { Uuid } from './utils.js';
|
|
4
|
-
import { M as MigrationDefinition } from './migrations-
|
|
4
|
+
import { M as MigrationDefinition } from './migrations-B1kkIhIX.js';
|
|
5
5
|
|
|
6
6
|
interface DocumentLayout {
|
|
7
7
|
/** Named sub-folders auto-created at the top of the record's drive when first used via attach --variant. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IconName } from '@stndrds/constants';
|
|
2
|
-
import { h as ComputedAttributeState, A as Attribute } from './attributes
|
|
2
|
+
import { h as ComputedAttributeState, A as Attribute } from './attributes--M1ifW8_.mjs';
|
|
3
3
|
import { Uuid } from './utils.mjs';
|
|
4
|
-
import { M as MigrationDefinition } from './migrations-
|
|
4
|
+
import { M as MigrationDefinition } from './migrations-BNlQVzDC.mjs';
|
|
5
5
|
|
|
6
6
|
interface DocumentLayout {
|
|
7
7
|
/** Named sub-folders auto-created at the top of the record's drive when first used via attach --variant. */
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { V as ValidationMessages } from '../types-
|
|
1
|
+
export { V as ValidationMessages } from '../types-DHqXzkgW.mjs';
|
|
2
2
|
export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './core/index.mjs';
|
|
3
|
-
export { ac as multiselectOptionWriteSchema, ad as parseAttributeConfig, ae as parseAttributeConfigForCreate, af as parseAttributeConfigForUpdate, ag as selectOptionWriteSchema, ah as statusGroupSchema, ai as statusOptionWriteSchema } from '../index-
|
|
4
|
-
export { S as SCHEMA_LIMITS, c as colorIdSchema, d as detailTabSchema, a as detailViewConfigSchema, i as iconNameSchema, b as inverseSourceSchema, l as listViewConfigSchema, e as listViewTabSchema, p as parseViewConfig, r as relationSourceSchema, t as tableSourceSchema, v as viewConfigByTypeSchema } from '../all-
|
|
5
|
-
export { a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, b as validateDraft, d as validateDraftOrThrow, e as validateObject, f as validateObjectOrThrow } from '../helpers-
|
|
6
|
-
import '../attributes
|
|
3
|
+
export { ac as multiselectOptionWriteSchema, ad as parseAttributeConfig, ae as parseAttributeConfigForCreate, af as parseAttributeConfigForUpdate, ag as selectOptionWriteSchema, ah as statusGroupSchema, ai as statusOptionWriteSchema } from '../index-C3P5Dnwt.mjs';
|
|
4
|
+
export { S as SCHEMA_LIMITS, c as colorIdSchema, d as detailTabSchema, a as detailViewConfigSchema, i as iconNameSchema, b as inverseSourceSchema, l as listViewConfigSchema, e as listViewTabSchema, p as parseViewConfig, r as relationSourceSchema, t as tableSourceSchema, v as viewConfigByTypeSchema } from '../all-Bk8cRKsu.mjs';
|
|
5
|
+
export { a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, b as validateDraft, d as validateDraftOrThrow, e as validateObject, f as validateObjectOrThrow } from '../helpers-BiABdSxK.mjs';
|
|
6
|
+
import '../attributes--M1ifW8_.mjs';
|
|
7
7
|
import '@stndrds/constants';
|
|
8
8
|
import '../utils.mjs';
|
|
9
9
|
import 'zod';
|
|
10
|
-
import '../objects-
|
|
11
|
-
import '../migrations-
|
|
10
|
+
import '../objects-DmMqHn3L.mjs';
|
|
11
|
+
import '../migrations-BNlQVzDC.mjs';
|
package/dist/validation/all.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { V as ValidationMessages } from '../types-
|
|
1
|
+
export { V as ValidationMessages } from '../types-DYYFto8d.js';
|
|
2
2
|
export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './core/index.js';
|
|
3
|
-
export { ac as multiselectOptionWriteSchema, ad as parseAttributeConfig, ae as parseAttributeConfigForCreate, af as parseAttributeConfigForUpdate, ag as selectOptionWriteSchema, ah as statusGroupSchema, ai as statusOptionWriteSchema } from '../index-
|
|
4
|
-
export { S as SCHEMA_LIMITS, c as colorIdSchema, d as detailTabSchema, a as detailViewConfigSchema, i as iconNameSchema, b as inverseSourceSchema, l as listViewConfigSchema, e as listViewTabSchema, p as parseViewConfig, r as relationSourceSchema, t as tableSourceSchema, v as viewConfigByTypeSchema } from '../all-
|
|
5
|
-
export { a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, b as validateDraft, d as validateDraftOrThrow, e as validateObject, f as validateObjectOrThrow } from '../helpers-
|
|
6
|
-
import '../attributes-
|
|
3
|
+
export { ac as multiselectOptionWriteSchema, ad as parseAttributeConfig, ae as parseAttributeConfigForCreate, af as parseAttributeConfigForUpdate, ag as selectOptionWriteSchema, ah as statusGroupSchema, ai as statusOptionWriteSchema } from '../index-SpFpkWVC.js';
|
|
4
|
+
export { S as SCHEMA_LIMITS, c as colorIdSchema, d as detailTabSchema, a as detailViewConfigSchema, i as iconNameSchema, b as inverseSourceSchema, l as listViewConfigSchema, e as listViewTabSchema, p as parseViewConfig, r as relationSourceSchema, t as tableSourceSchema, v as viewConfigByTypeSchema } from '../all-C_tC90ZM.js';
|
|
5
|
+
export { a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, b as validateDraft, d as validateDraftOrThrow, e as validateObject, f as validateObjectOrThrow } from '../helpers-DyoPqiSz.js';
|
|
6
|
+
import '../attributes-D8eHv5Kf.js';
|
|
7
7
|
import '@stndrds/constants';
|
|
8
8
|
import '../utils.js';
|
|
9
9
|
import 'zod';
|
|
10
|
-
import '../objects-
|
|
11
|
-
import '../migrations-
|
|
10
|
+
import '../objects-DgFojgwH.js';
|
|
11
|
+
import '../migrations-B1kkIhIX.js';
|
package/dist/validation/all.js
CHANGED
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkQMAVKX3Y_js = require('../chunk-QMAVKX3Y.js');
|
|
4
4
|
var chunkDEHBEFGO_js = require('../chunk-DEHBEFGO.js');
|
|
5
|
-
var
|
|
6
|
-
require('../chunk-Q4SZAMJT.js');
|
|
7
|
-
require('../chunk-EEH4XQ7W.js');
|
|
5
|
+
var chunkZEPGMHCK_js = require('../chunk-ZEPGMHCK.js');
|
|
8
6
|
require('../chunk-EW5XR2X3.js');
|
|
9
7
|
require('../chunk-QWKLQRBX.js');
|
|
10
8
|
require('../chunk-KNGWHQLR.js');
|
|
9
|
+
require('../chunk-HTSTPTNZ.js');
|
|
10
|
+
require('../chunk-V2UA2D4E.js');
|
|
11
11
|
require('../chunk-5WATIVCA.js');
|
|
12
12
|
require('../chunk-SI34M4IC.js');
|
|
13
13
|
require('../chunk-YIP5FJ5H.js');
|
|
14
14
|
require('../chunk-ZPFOKBIN.js');
|
|
15
15
|
require('../chunk-ZBWTAKZO.js');
|
|
16
|
-
require('../chunk-HTSTPTNZ.js');
|
|
17
|
-
require('../chunk-V2UA2D4E.js');
|
|
18
16
|
require('../chunk-ACKMC6FL.js');
|
|
19
17
|
require('../chunk-E6JUYGJX.js');
|
|
18
|
+
require('../chunk-Q4SZAMJT.js');
|
|
19
|
+
require('../chunk-EEH4XQ7W.js');
|
|
20
20
|
var chunkYKWSHBT5_js = require('../chunk-YKWSHBT5.js');
|
|
21
21
|
|
|
22
22
|
|
|
@@ -99,27 +99,27 @@ Object.defineProperty(exports, "statusOptionWriteSchema", {
|
|
|
99
99
|
});
|
|
100
100
|
Object.defineProperty(exports, "createFormAttributeValidator", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkZEPGMHCK_js.createFormAttributeValidator; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "rejectUnknownAttributesOrThrow", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkZEPGMHCK_js.rejectUnknownAttributesOrThrow; }
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "validateDraft", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkZEPGMHCK_js.validateDraft; }
|
|
111
111
|
});
|
|
112
112
|
Object.defineProperty(exports, "validateDraftOrThrow", {
|
|
113
113
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkZEPGMHCK_js.validateDraftOrThrow; }
|
|
115
115
|
});
|
|
116
116
|
Object.defineProperty(exports, "validateObject", {
|
|
117
117
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkZEPGMHCK_js.validateObject; }
|
|
119
119
|
});
|
|
120
120
|
Object.defineProperty(exports, "validateObjectOrThrow", {
|
|
121
121
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunkZEPGMHCK_js.validateObjectOrThrow; }
|
|
123
123
|
});
|
|
124
124
|
Object.defineProperty(exports, "DEFAULT_VALIDATION_MESSAGES", {
|
|
125
125
|
enumerable: true,
|
package/dist/validation/all.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
export { detailTabSchema, detailViewConfigSchema, inverseSourceSchema, listViewConfigSchema, listViewTabSchema, parseViewConfig, relationSourceSchema, tableSourceSchema, viewConfigByTypeSchema } from '../chunk-5PLJHYSL.mjs';
|
|
2
2
|
export { SCHEMA_LIMITS, colorIdSchema, iconNameSchema, multiselectOptionWriteSchema, parseAttributeConfig, parseAttributeConfigForCreate, parseAttributeConfigForUpdate, selectOptionWriteSchema, statusGroupSchema, statusOptionWriteSchema } from '../chunk-PQEOIDXD.mjs';
|
|
3
|
-
export { createFormAttributeValidator, rejectUnknownAttributesOrThrow, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from '../chunk-
|
|
4
|
-
import '../chunk-R5LAJCBU.mjs';
|
|
5
|
-
import '../chunk-GO6LQADH.mjs';
|
|
3
|
+
export { createFormAttributeValidator, rejectUnknownAttributesOrThrow, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from '../chunk-QUZ3PN36.mjs';
|
|
6
4
|
import '../chunk-QVLQPW3O.mjs';
|
|
7
5
|
import '../chunk-ZDQ5AP26.mjs';
|
|
8
6
|
import '../chunk-LV3FEUKU.mjs';
|
|
7
|
+
import '../chunk-UXAHLSWC.mjs';
|
|
8
|
+
import '../chunk-NS63SPNN.mjs';
|
|
9
9
|
import '../chunk-OSSGN43B.mjs';
|
|
10
10
|
import '../chunk-Q44QKLN4.mjs';
|
|
11
11
|
import '../chunk-UANQJ2GH.mjs';
|
|
12
12
|
import '../chunk-O73ROMWQ.mjs';
|
|
13
13
|
import '../chunk-V2WJFUZW.mjs';
|
|
14
|
-
import '../chunk-UXAHLSWC.mjs';
|
|
15
|
-
import '../chunk-NS63SPNN.mjs';
|
|
16
14
|
import '../chunk-AYVHMVKQ.mjs';
|
|
17
15
|
import '../chunk-YUFTHPOE.mjs';
|
|
16
|
+
import '../chunk-R5LAJCBU.mjs';
|
|
17
|
+
import '../chunk-GO6LQADH.mjs';
|
|
18
18
|
export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from '../chunk-HRQEZUAA.mjs';
|