@stndrds/schema 1.0.0-alpha.256 → 1.0.0-alpha.258
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{attributes-Jji7TfFG.d.mts → attributes-Cmkc7UgJ.d.mts} +14 -367
- package/dist/{attributes-C-iyjLqJ.d.ts → attributes-_6tvjbyl.d.ts} +14 -367
- package/dist/{chunk-RHNSWKMJ.js → chunk-44EVNHSR.js} +5 -8
- package/dist/{chunk-VKJVBXHS.mjs → chunk-7VSOCVN7.mjs} +5 -8
- package/dist/{chunk-NSM2JPC3.js → chunk-L4U5QEQL.js} +4 -17
- package/dist/{chunk-AAXJJNY6.mjs → chunk-UXCJ3NI4.mjs} +4 -17
- package/dist/helpers-BO10yqih.d.mts +316 -0
- package/dist/helpers-BTC6TsKH.d.ts +316 -0
- package/dist/index.d.mts +137 -57
- package/dist/index.d.ts +137 -57
- package/dist/index.js +104 -180
- package/dist/index.mjs +20 -91
- package/dist/{types-D7VH7GrO.d.ts → types-B_UZK_6m.d.ts} +1 -1
- package/dist/{types-DgpsvFnh.d.mts → types-CVswgCx9.d.mts} +1 -1
- package/dist/validation/all.d.mts +3 -3
- package/dist/validation/all.d.ts +3 -3
- package/dist/validation/all.js +11 -12
- package/dist/validation/all.mjs +4 -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 +1 -1
- package/dist/validation/config/index.d.ts +1 -1
- package/dist/validation/config/index.js +4 -4
- package/dist/validation/config/index.mjs +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 +4 -3
- package/dist/validation/object/index.d.ts +4 -3
- package/dist/validation/object/index.js +15 -16
- package/dist/validation/object/index.mjs +3 -4
- 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 -7
- package/dist/chunk-CI6EGLL6.mjs +0 -18
- package/dist/chunk-Q5DIOYUE.js +0 -20
- package/dist/helpers-CMryP45K.d.mts +0 -75
- package/dist/helpers-Chppkv0E.d.ts +0 -75
- package/dist/validation/complex/file.d.mts +0 -13
- package/dist/validation/complex/file.d.ts +0 -13
- package/dist/validation/complex/file.js +0 -11
- package/dist/validation/complex/file.mjs +0 -2
package/dist/index.mjs
CHANGED
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
import { generateId } from './chunk-QY6QFRRV.mjs';
|
|
2
2
|
export { asTenantId, asUserId, deepEqual, generateId, indexBy } from './chunk-QY6QFRRV.mjs';
|
|
3
3
|
import './chunk-SP3PNHYF.mjs';
|
|
4
|
-
import { parseComputedFormula } from './chunk-
|
|
5
|
-
export { ComputedFormulaParseError, parseAttributeConfig, parseComputedFormula } from './chunk-
|
|
6
|
-
import { createObjectValidator, SchemaError, SchemaErrorCode, createAttributeValidator, ValidationError, NotFoundError, DuplicateError } from './chunk-
|
|
7
|
-
export { AccessDeniedError, AttributeInUseError, AttributeNotFoundError, ChangeTypeNotSupportedError, ConcurrentModificationError, DestructiveSyncNotAllowedError, DuplicateError, ForbiddenError, MemoryNotFoundError, MigrationTimeoutError, NotFoundError, NotImplementedError, ObjectNotFoundError, ObjectReferencedError, OrphanSystemAttributeError, ProtectedResourceError, ProtectedRoleError, RecordNotFoundError, RecordReferencedError, RepositoryError, RoleNotFoundError, SchemaError, SchemaErrorCode, SearchBackendError, StorageError, SyncCascadeError, SyncConflictError, SyncError, SystemEntityImmutableError, ValidationError, createFormAttributeValidator, isAttributeInUseError, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isSchemaError, isValidationError, rejectUnknownAttributesOrThrow, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from './chunk-
|
|
8
|
-
import './chunk-OSSGN43B.mjs';
|
|
4
|
+
import { parseComputedFormula } from './chunk-UXCJ3NI4.mjs';
|
|
5
|
+
export { ComputedFormulaParseError, parseAttributeConfig, parseComputedFormula } from './chunk-UXCJ3NI4.mjs';
|
|
6
|
+
import { createObjectValidator, SchemaError, SchemaErrorCode, createAttributeValidator, ValidationError, NotFoundError, DuplicateError } from './chunk-7VSOCVN7.mjs';
|
|
7
|
+
export { AccessDeniedError, AttributeInUseError, AttributeNotFoundError, ChangeTypeNotSupportedError, ConcurrentModificationError, DestructiveSyncNotAllowedError, DuplicateError, ForbiddenError, MemoryNotFoundError, MigrationTimeoutError, NotFoundError, NotImplementedError, ObjectNotFoundError, ObjectReferencedError, OrphanSystemAttributeError, ProtectedResourceError, ProtectedRoleError, RecordNotFoundError, RecordReferencedError, RepositoryError, RoleNotFoundError, SchemaError, SchemaErrorCode, SearchBackendError, StorageError, SyncCascadeError, SyncConflictError, SyncError, SystemEntityImmutableError, ValidationError, createFormAttributeValidator, isAttributeInUseError, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isSchemaError, isValidationError, rejectUnknownAttributesOrThrow, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from './chunk-7VSOCVN7.mjs';
|
|
9
8
|
import './chunk-Q44QKLN4.mjs';
|
|
10
9
|
import './chunk-UANQJ2GH.mjs';
|
|
11
10
|
import './chunk-U36ZIBEM.mjs';
|
|
12
|
-
import './chunk-QVLQPW3O.mjs';
|
|
13
11
|
import './chunk-ZDQ5AP26.mjs';
|
|
14
12
|
import './chunk-LV3FEUKU.mjs';
|
|
15
13
|
import './chunk-UXAHLSWC.mjs';
|
|
16
14
|
import './chunk-NS63SPNN.mjs';
|
|
15
|
+
import './chunk-OSSGN43B.mjs';
|
|
17
16
|
import './chunk-AYVHMVKQ.mjs';
|
|
18
|
-
import './chunk-CI6EGLL6.mjs';
|
|
19
17
|
import './chunk-YUFTHPOE.mjs';
|
|
20
18
|
import { formatPhoneForDisplay } from './chunk-JUKLL5RJ.mjs';
|
|
21
19
|
import './chunk-GO6LQADH.mjs';
|
|
20
|
+
import './chunk-QVLQPW3O.mjs';
|
|
22
21
|
export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './chunk-HRQEZUAA.mjs';
|
|
23
22
|
import { ICONS, SKILL_NAME_MAX_LENGTH, SKILL_DESCRIPTION_MAX_LENGTH, MEMORY_NAME_MAX_LENGTH, MEMORY_DESCRIPTION_MAX_LENGTH, getCountryDisplayNameByIso3 } from '@stndrds/constants';
|
|
24
23
|
import z3, { z } from 'zod';
|
|
@@ -236,14 +235,13 @@ var ATTRIBUTE_FILTER_OPERATORS = {
|
|
|
236
235
|
select: SELECT_OPERATORS,
|
|
237
236
|
multiselect: MULTISELECT_OPERATORS,
|
|
238
237
|
location: [],
|
|
239
|
-
file: PRESENCE_OPERATORS,
|
|
240
238
|
user: REFERENCE_OPERATORS,
|
|
241
239
|
relation: REFERENCE_OPERATORS,
|
|
242
240
|
formula: FORMULA_OPERATORS,
|
|
243
241
|
document: PRESENCE_OPERATORS
|
|
244
242
|
};
|
|
245
243
|
var COMPUTED_TYPES = /* @__PURE__ */ new Set(["formula", "rollup"]);
|
|
246
|
-
var EDGE_BACKED_TYPES = /* @__PURE__ */ new Set(["
|
|
244
|
+
var EDGE_BACKED_TYPES = /* @__PURE__ */ new Set(["user", "relation", "document"]);
|
|
247
245
|
var STATIC_DEFAULT_TYPES = /* @__PURE__ */ new Set([
|
|
248
246
|
"text",
|
|
249
247
|
"richtext",
|
|
@@ -256,7 +254,6 @@ var STATIC_DEFAULT_TYPES = /* @__PURE__ */ new Set([
|
|
|
256
254
|
"currency",
|
|
257
255
|
"location",
|
|
258
256
|
"user",
|
|
259
|
-
"file",
|
|
260
257
|
"relation",
|
|
261
258
|
"document"
|
|
262
259
|
]);
|
|
@@ -406,7 +403,6 @@ function getRawFilterOperators(attribute) {
|
|
|
406
403
|
}
|
|
407
404
|
function getAttributeCardinality(attribute) {
|
|
408
405
|
if (attribute.type === "multiselect" || attribute.type === "document") return "many";
|
|
409
|
-
if (attribute.type === "file" && attribute.multiple === true) return "many";
|
|
410
406
|
if (attribute.type === "user" && attribute.multiple === true) return "many";
|
|
411
407
|
if (attribute.type === "relation") return attribute.cardinality === "many" ? "many" : "one";
|
|
412
408
|
return "one";
|
|
@@ -421,7 +417,6 @@ function getPolymorphicCapability(attribute) {
|
|
|
421
417
|
function supportsMaxItems(attribute) {
|
|
422
418
|
if (attribute.type === "multiselect") return true;
|
|
423
419
|
if (attribute.type === "relation") return attribute.cardinality === "many";
|
|
424
|
-
if (attribute.type === "file") return attribute.multiple === true;
|
|
425
420
|
return false;
|
|
426
421
|
}
|
|
427
422
|
function supportsQualifiedProperties(type) {
|
|
@@ -440,7 +435,7 @@ function isDefaultColumnType(type) {
|
|
|
440
435
|
return isTableCellType(type);
|
|
441
436
|
}
|
|
442
437
|
function isTableCellType(type) {
|
|
443
|
-
return type !== "richtext" && type !== "
|
|
438
|
+
return type !== "richtext" && type !== "document";
|
|
444
439
|
}
|
|
445
440
|
function isFormFieldType(type) {
|
|
446
441
|
return type !== "richtext";
|
|
@@ -549,9 +544,6 @@ var AUDIT_ACTIONS = [
|
|
|
549
544
|
// src/types/document-layout.ts
|
|
550
545
|
var MAX_PRESET_DEPTH = 5;
|
|
551
546
|
|
|
552
|
-
// src/types/documents.ts
|
|
553
|
-
var DEFAULT_DOCUMENT_SLOT = { name: "file" };
|
|
554
|
-
|
|
555
547
|
// src/types/errors.ts
|
|
556
548
|
function getErrorMessage(error) {
|
|
557
549
|
if (error instanceof Error) return error.message;
|
|
@@ -590,7 +582,6 @@ var FORM_FORBIDDEN_ATTRIBUTE_TYPES = [
|
|
|
590
582
|
"multiRelation",
|
|
591
583
|
"formula",
|
|
592
584
|
"rollup",
|
|
593
|
-
"file",
|
|
594
585
|
"document",
|
|
595
586
|
"richtext",
|
|
596
587
|
"user"
|
|
@@ -737,36 +728,6 @@ function matchesMime(mime, accepted) {
|
|
|
737
728
|
return mime === pattern;
|
|
738
729
|
});
|
|
739
730
|
}
|
|
740
|
-
function normaliseDocumentSlots(slots) {
|
|
741
|
-
if (!slots || slots.length === 0) return [DEFAULT_DOCUMENT_SLOT];
|
|
742
|
-
return slots;
|
|
743
|
-
}
|
|
744
|
-
var DocumentSlotValidationError = class extends Error {
|
|
745
|
-
constructor(code, message, context) {
|
|
746
|
-
super(`${code}: ${message}`);
|
|
747
|
-
this.code = code;
|
|
748
|
-
this.context = context;
|
|
749
|
-
this.name = "DocumentSlotValidationError";
|
|
750
|
-
}
|
|
751
|
-
};
|
|
752
|
-
function validateSlotAgainstConfig(slotName, mimeType, slots) {
|
|
753
|
-
const slot = slots.find((s) => s.name === slotName);
|
|
754
|
-
if (!slot) {
|
|
755
|
-
throw new DocumentSlotValidationError(
|
|
756
|
-
"SLOT_NOT_DECLARED",
|
|
757
|
-
`Slot "${slotName}" is not declared.`,
|
|
758
|
-
{ availableSlots: slots.map((s) => s.name) }
|
|
759
|
-
);
|
|
760
|
-
}
|
|
761
|
-
if (!matchesMime(mimeType, slot.acceptedMimeTypes)) {
|
|
762
|
-
throw new DocumentSlotValidationError(
|
|
763
|
-
"MIME_NOT_ACCEPTED",
|
|
764
|
-
`MIME ${mimeType} not accepted for slot "${slotName}".`,
|
|
765
|
-
{ acceptedMimeTypes: slot.acceptedMimeTypes }
|
|
766
|
-
);
|
|
767
|
-
}
|
|
768
|
-
return slot;
|
|
769
|
-
}
|
|
770
731
|
|
|
771
732
|
// src/lib/qualify-with.ts
|
|
772
733
|
var ALLOWED_PROPERTY_TYPES = Object.freeze([
|
|
@@ -977,7 +938,6 @@ function formatAttributeValue(value, attribute) {
|
|
|
977
938
|
case "multiselect":
|
|
978
939
|
return formatMultiselect(value, attribute);
|
|
979
940
|
// Unsupported types - return value as-is or placeholder
|
|
980
|
-
case "file":
|
|
981
941
|
case "user":
|
|
982
942
|
case "relation":
|
|
983
943
|
if (Array.isArray(value)) {
|
|
@@ -1889,41 +1849,6 @@ var LocationAttributeBuilder = class extends BaseAttributeBuilder {
|
|
|
1889
1849
|
function location(config) {
|
|
1890
1850
|
return new LocationAttributeBuilder(config.name, config.label);
|
|
1891
1851
|
}
|
|
1892
|
-
var FileAttributeBuilder = class extends BaseAttributeBuilder {
|
|
1893
|
-
constructor(name, label) {
|
|
1894
|
-
super("file", name, label);
|
|
1895
|
-
}
|
|
1896
|
-
maxFiles(value) {
|
|
1897
|
-
this.attr.maxFiles = value;
|
|
1898
|
-
return this;
|
|
1899
|
-
}
|
|
1900
|
-
maxSize(bytes) {
|
|
1901
|
-
this.attr.maxSize = bytes;
|
|
1902
|
-
return this;
|
|
1903
|
-
}
|
|
1904
|
-
allowedTypes(types) {
|
|
1905
|
-
this.attr.allowedTypes = asMutableArray(types);
|
|
1906
|
-
return this;
|
|
1907
|
-
}
|
|
1908
|
-
/**
|
|
1909
|
-
* Allow multiple files to be uploaded
|
|
1910
|
-
*/
|
|
1911
|
-
multiple() {
|
|
1912
|
-
this.attr.multiple = true;
|
|
1913
|
-
return this;
|
|
1914
|
-
}
|
|
1915
|
-
required() {
|
|
1916
|
-
this.setRequired(true);
|
|
1917
|
-
return this.asRequiredState();
|
|
1918
|
-
}
|
|
1919
|
-
optional() {
|
|
1920
|
-
this.setRequired(false);
|
|
1921
|
-
return this.asRequiredState();
|
|
1922
|
-
}
|
|
1923
|
-
};
|
|
1924
|
-
function file(config) {
|
|
1925
|
-
return new FileAttributeBuilder(config.name, config.label);
|
|
1926
|
-
}
|
|
1927
1852
|
var UserAttributeBuilder = class extends BaseAttributeBuilder {
|
|
1928
1853
|
constructor(name, label) {
|
|
1929
1854
|
super("user", name, label);
|
|
@@ -2232,11 +2157,18 @@ var DocumentAttributeBuilder = class extends BaseAttributeBuilder {
|
|
|
2232
2157
|
super("document", name, label);
|
|
2233
2158
|
}
|
|
2234
2159
|
/**
|
|
2235
|
-
*
|
|
2236
|
-
*
|
|
2160
|
+
* Restrict every file of the pack to the given MIME prefixes/globs
|
|
2161
|
+
* (e.g. "image/*", "application/pdf").
|
|
2162
|
+
*/
|
|
2163
|
+
accepts(mimeTypes) {
|
|
2164
|
+
this.attr.accepts = mimeTypes;
|
|
2165
|
+
return this;
|
|
2166
|
+
}
|
|
2167
|
+
/**
|
|
2168
|
+
* Cap every file of the pack to `bytes` maximum size.
|
|
2237
2169
|
*/
|
|
2238
|
-
|
|
2239
|
-
this.attr.
|
|
2170
|
+
maxFileSize(bytes) {
|
|
2171
|
+
this.attr.maxFileSize = bytes;
|
|
2240
2172
|
return this;
|
|
2241
2173
|
}
|
|
2242
2174
|
/**
|
|
@@ -5870,7 +5802,6 @@ function attributeToValueType(attribute) {
|
|
|
5870
5802
|
case "text":
|
|
5871
5803
|
case "richtext":
|
|
5872
5804
|
case "phone":
|
|
5873
|
-
case "file":
|
|
5874
5805
|
case "user":
|
|
5875
5806
|
case "location":
|
|
5876
5807
|
case "relation":
|
|
@@ -6808,7 +6739,6 @@ var OPERATOR_SPECS = {
|
|
|
6808
6739
|
"date",
|
|
6809
6740
|
"multiselect",
|
|
6810
6741
|
"location",
|
|
6811
|
-
"file",
|
|
6812
6742
|
"user",
|
|
6813
6743
|
"relation",
|
|
6814
6744
|
"formula",
|
|
@@ -6828,7 +6758,6 @@ var OPERATOR_SPECS = {
|
|
|
6828
6758
|
"date",
|
|
6829
6759
|
"multiselect",
|
|
6830
6760
|
"location",
|
|
6831
|
-
"file",
|
|
6832
6761
|
"user",
|
|
6833
6762
|
"relation",
|
|
6834
6763
|
"formula",
|
|
@@ -7150,4 +7079,4 @@ var CONNECTOR_CALLBACK_PARAM = {
|
|
|
7150
7079
|
provider: "connector_provider"
|
|
7151
7080
|
};
|
|
7152
7081
|
|
|
7153
|
-
export { ALLOWED_PROPERTY_TYPES, ALL_ACTIONS, ALL_SYSTEM_RESOURCES, ATTRIBUTE_FILTER_OPERATORS, AUDIT_ACTIONS, AUDIT_RESOURCE_TYPES, AUTOFILL_ELIGIBLE_TYPES, ActivityTabConfig, BEHAVIOR_PROPERTIES, BROWSER_PREVIEW_STATUSES, COMPUTED_FUNCTIONS, COMPUTED_FUNCTION_METADATA, COMPUTED_FUNCTION_NAMES, CONNECTOR_CALLBACK_PARAM, ComputedFormulaCompileError, CustomTabConfig, DB_COLUMN_FIELDS,
|
|
7082
|
+
export { ALLOWED_PROPERTY_TYPES, ALL_ACTIONS, ALL_SYSTEM_RESOURCES, ATTRIBUTE_FILTER_OPERATORS, AUDIT_ACTIONS, AUDIT_RESOURCE_TYPES, AUTOFILL_ELIGIBLE_TYPES, ActivityTabConfig, BEHAVIOR_PROPERTIES, BROWSER_PREVIEW_STATUSES, COMPUTED_FUNCTIONS, COMPUTED_FUNCTION_METADATA, COMPUTED_FUNCTION_NAMES, CONNECTOR_CALLBACK_PARAM, ComputedFormulaCompileError, CustomTabConfig, DB_COLUMN_FIELDS, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DOCUMENT_SYSTEM_ATTRIBUTES, DetailViewBuilder, DocumentsTabConfig, EMPTY_VALUE_PLACEHOLDER, EmailsTabConfig, FORM_FORBIDDEN_ATTRIBUTE_TYPES, FlagRegistry, FlagService, FormBuilder, FormRegistry, FormRowBuilder, FormStepBuilder, GroupBuilder, IDENTITY_PROPERTIES, LIVE_EVENT_TYPES, LIVE_STREAM_START_CURSOR, ListViewBuilder, ListViewTabConfigBuilder, MAX_PRESET_DEPTH, MEMORY_LIST_VIEW, MEMORY_OBJECT, MEMORY_VIEW, NOTIFICATION_INBOX_STATES, NOTIFICATION_KINDS, NOTIFICATION_PRIORITIES, NOTIFICATION_SENSITIVITIES, NOTIFICATION_TYPES_V1, NOTIFICATION_TYPE_AGENT_QUESTION_REQUESTED, NOTIFICATION_TYPE_AGENT_SESSION_COMPLETED, NOTIFICATION_TYPE_AGENT_SESSION_FAILED, NOTIFICATION_TYPE_AGENT_SESSION_TIMEOUT, NOTIFICATION_TYPE_AGENT_SESSION_WAITING_HUMAN, NOTIFICATION_TYPE_AGENT_TASK_ASSIGNED, NOTIFICATION_WORK_STATES, NO_VALUE_OPERATORS, NoopGeocodingAdapter, OPERATORS_BY_TYPE, OPERATOR_SPECS, ObjectBuilder, PRESENTATION_PROPERTIES, QUALIFIED_SEPARATOR, RELATION_TARGET_ANY, RESERVED_ATTRIBUTE_NAMES, RESERVED_OBJECT_NAMES, RelationGroupBuilder, RichtextTabConfig, SKILL_LIST_VIEW, SKILL_OBJECT, SKILL_VIEW, STANDARD_SCHEMA_VENDOR, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_FIELD_NAMES, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, TabBuilder, TableTabConfig, USER_STATUSES, accessLevelToActions, actionsToAccessLevel, applyPipes, applyRelationProps, assertAcyclicComputedDependencies, assertLiveStreamCursor, booleanFlag, buildPropertySchema, buildQualifiedAttribute, checkbox, compareLiveStreamCursors, compileComputedFormula, compileRollupAttribute, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, currentActor, date, dateValueStart, detailView, document, evaluateComputedAst, evaluateComputedFormula, evaluateComputedFormulaWithResult, evaluateFilterState, extractAttributeNames, extractValueRefs, flagRegistry, form, formRegistry, formatAttributeValue, formatComputedResult, formatLocationValue, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getAttributeCapabilities, getAttributeFilterOperators, getErrorMessage, getLiveProtocolPayloadChannel, getOperatorPolarity, getRollupFilterOperators2 as getRollupFilterOperators, getSlotFieldTargets, getSystemAttributeI18nKey, getSystemAttributeList, getUserDisplayName, group, hasOptions, inferInverseCardinality, inferRollupReturnType, isAttributeFilterable, isAttributeGroupable, isAttributeKanbanGroupable, isAttributeSearchable, isAttributeSortable2 as isAttributeSortable, isBilateralRelation, isComputedFunctionName, isDateRangeValue, isDefaultRole, isDetailView, isDocumentAttribute, isDynamicValue, isEmptyObject, isFieldGroup, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isListView, isLiveErrorPayload, isLiveEventEnvelope, isLiveEventPayload, isLiveEventPayloadForType, isLiveEventType, isLiveGapPayload, isLiveReplayCompletePayload, isLiveStreamCursor, isManagedSystemAttribute, isNoValueOperator, isNotEmpty, isPlainRecord, isRelationGroup, isStandardSchema, isUniversalRelation, jsonFlag, listView, liveChannelKey, location, matchesMime, multiselect, normalizeDateValue, normalizeForEdgeRpc, now, number, numberFlag, object, parseLiveChannelKey, parseLiveSubscribePayload, parseLiveUnsubscribePayload, parseQualifiedAttribute, phone, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, resolvePropertyDefinitions, richtext, rollup, rollupToFormulaExpression, select, status, stringFlag, text, toMultiValueOperator, toUndefinedIfEmpty, today, user, validateAttributeName, validateQualifiedRule, viewRegistry };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { V as ValidationMessages } from '../types-
|
|
1
|
+
export { V as ValidationMessages } from '../types-CVswgCx9.mjs';
|
|
2
2
|
export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './core/index.mjs';
|
|
3
3
|
export { parseAttributeConfig } from './config/index.mjs';
|
|
4
|
-
export { c as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, a as validateDraftOrThrow, b as validateObject, d as validateObjectOrThrow } from '../helpers-
|
|
5
|
-
import '../attributes-
|
|
4
|
+
export { c as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, a as validateDraftOrThrow, b as validateObject, d as validateObjectOrThrow } from '../helpers-BO10yqih.mjs';
|
|
5
|
+
import '../attributes-Cmkc7UgJ.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-B_UZK_6m.js';
|
|
2
2
|
export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './core/index.js';
|
|
3
3
|
export { parseAttributeConfig } from './config/index.js';
|
|
4
|
-
export { c as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, a as validateDraftOrThrow, b as validateObject, d as validateObjectOrThrow } from '../helpers-
|
|
5
|
-
import '../attributes-
|
|
4
|
+
export { c as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, a as validateDraftOrThrow, b as validateObject, d as validateObjectOrThrow } from '../helpers-BTC6TsKH.js';
|
|
5
|
+
import '../attributes-_6tvjbyl.js';
|
|
6
6
|
import '@stndrds/constants';
|
|
7
7
|
import '../utils.js';
|
|
8
8
|
import 'zod';
|
package/dist/validation/all.js
CHANGED
|
@@ -1,53 +1,52 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../chunk-PGERPYDR.js');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
require('../chunk-5WATIVCA.js');
|
|
4
|
+
var chunkL4U5QEQL_js = require('../chunk-L4U5QEQL.js');
|
|
5
|
+
var chunk44EVNHSR_js = require('../chunk-44EVNHSR.js');
|
|
7
6
|
require('../chunk-SI34M4IC.js');
|
|
8
7
|
require('../chunk-YIP5FJ5H.js');
|
|
9
8
|
require('../chunk-QAF3HNKQ.js');
|
|
10
|
-
require('../chunk-EW5XR2X3.js');
|
|
11
9
|
require('../chunk-QWKLQRBX.js');
|
|
12
10
|
require('../chunk-KNGWHQLR.js');
|
|
13
11
|
require('../chunk-HTSTPTNZ.js');
|
|
14
12
|
require('../chunk-V2UA2D4E.js');
|
|
13
|
+
require('../chunk-5WATIVCA.js');
|
|
15
14
|
require('../chunk-ACKMC6FL.js');
|
|
16
|
-
require('../chunk-Q5DIOYUE.js');
|
|
17
15
|
require('../chunk-E6JUYGJX.js');
|
|
18
16
|
require('../chunk-EBGRZUIH.js');
|
|
19
17
|
require('../chunk-EEH4XQ7W.js');
|
|
18
|
+
require('../chunk-EW5XR2X3.js');
|
|
20
19
|
var chunkYKWSHBT5_js = require('../chunk-YKWSHBT5.js');
|
|
21
20
|
|
|
22
21
|
|
|
23
22
|
|
|
24
23
|
Object.defineProperty(exports, "parseAttributeConfig", {
|
|
25
24
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkL4U5QEQL_js.parseAttributeConfig; }
|
|
27
26
|
});
|
|
28
27
|
Object.defineProperty(exports, "createFormAttributeValidator", {
|
|
29
28
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunk44EVNHSR_js.createFormAttributeValidator; }
|
|
31
30
|
});
|
|
32
31
|
Object.defineProperty(exports, "rejectUnknownAttributesOrThrow", {
|
|
33
32
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunk44EVNHSR_js.rejectUnknownAttributesOrThrow; }
|
|
35
34
|
});
|
|
36
35
|
Object.defineProperty(exports, "validateDraft", {
|
|
37
36
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunk44EVNHSR_js.validateDraft; }
|
|
39
38
|
});
|
|
40
39
|
Object.defineProperty(exports, "validateDraftOrThrow", {
|
|
41
40
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunk44EVNHSR_js.validateDraftOrThrow; }
|
|
43
42
|
});
|
|
44
43
|
Object.defineProperty(exports, "validateObject", {
|
|
45
44
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunk44EVNHSR_js.validateObject; }
|
|
47
46
|
});
|
|
48
47
|
Object.defineProperty(exports, "validateObjectOrThrow", {
|
|
49
48
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunk44EVNHSR_js.validateObjectOrThrow; }
|
|
51
50
|
});
|
|
52
51
|
Object.defineProperty(exports, "DEFAULT_VALIDATION_MESSAGES", {
|
|
53
52
|
enumerable: true,
|
package/dist/validation/all.mjs
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import '../chunk-SP3PNHYF.mjs';
|
|
2
|
-
export { parseAttributeConfig } from '../chunk-
|
|
3
|
-
export { createFormAttributeValidator, rejectUnknownAttributesOrThrow, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from '../chunk-
|
|
4
|
-
import '../chunk-OSSGN43B.mjs';
|
|
2
|
+
export { parseAttributeConfig } from '../chunk-UXCJ3NI4.mjs';
|
|
3
|
+
export { createFormAttributeValidator, rejectUnknownAttributesOrThrow, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from '../chunk-7VSOCVN7.mjs';
|
|
5
4
|
import '../chunk-Q44QKLN4.mjs';
|
|
6
5
|
import '../chunk-UANQJ2GH.mjs';
|
|
7
6
|
import '../chunk-U36ZIBEM.mjs';
|
|
8
|
-
import '../chunk-QVLQPW3O.mjs';
|
|
9
7
|
import '../chunk-ZDQ5AP26.mjs';
|
|
10
8
|
import '../chunk-LV3FEUKU.mjs';
|
|
11
9
|
import '../chunk-UXAHLSWC.mjs';
|
|
12
10
|
import '../chunk-NS63SPNN.mjs';
|
|
11
|
+
import '../chunk-OSSGN43B.mjs';
|
|
13
12
|
import '../chunk-AYVHMVKQ.mjs';
|
|
14
|
-
import '../chunk-CI6EGLL6.mjs';
|
|
15
13
|
import '../chunk-YUFTHPOE.mjs';
|
|
16
14
|
import '../chunk-JUKLL5RJ.mjs';
|
|
17
15
|
import '../chunk-GO6LQADH.mjs';
|
|
16
|
+
import '../chunk-QVLQPW3O.mjs';
|
|
18
17
|
export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from '../chunk-HRQEZUAA.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { C as CurrencyAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { C as CurrencyAttribute } from '../../attributes-Cmkc7UgJ.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CVswgCx9.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { C as CurrencyAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { C as CurrencyAttribute } from '../../attributes-_6tvjbyl.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B_UZK_6m.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { L as LocationAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { L as LocationAttribute } from '../../attributes-Cmkc7UgJ.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CVswgCx9.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { L as LocationAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { L as LocationAttribute } from '../../attributes-_6tvjbyl.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B_UZK_6m.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { P as PhoneAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { P as PhoneAttribute } from '../../attributes-Cmkc7UgJ.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CVswgCx9.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { P as PhoneAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { P as PhoneAttribute } from '../../attributes-_6tvjbyl.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B_UZK_6m.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { M as MultiRelationAttribute, R as RelationAttribute, S as SingleRelationAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { M as MultiRelationAttribute, R as RelationAttribute, S as SingleRelationAttribute } from '../../attributes-Cmkc7UgJ.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CVswgCx9.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { M as MultiRelationAttribute, R as RelationAttribute, S as SingleRelationAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { M as MultiRelationAttribute, R as RelationAttribute, S as SingleRelationAttribute } from '../../attributes-_6tvjbyl.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B_UZK_6m.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { a as RichtextAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { a as RichtextAttribute } from '../../attributes-Cmkc7UgJ.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CVswgCx9.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { a as RichtextAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { a as RichtextAttribute } from '../../attributes-_6tvjbyl.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B_UZK_6m.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { b as MultiselectAttribute, c as SelectAttribute, d as StatusAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { b as MultiselectAttribute, c as SelectAttribute, d as StatusAttribute } from '../../attributes-Cmkc7UgJ.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CVswgCx9.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { b as MultiselectAttribute, c as SelectAttribute, d as StatusAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { b as MultiselectAttribute, c as SelectAttribute, d as StatusAttribute } from '../../attributes-_6tvjbyl.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B_UZK_6m.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { U as UserAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { U as UserAttribute } from '../../attributes-Cmkc7UgJ.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CVswgCx9.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { U as UserAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { U as UserAttribute } from '../../attributes-_6tvjbyl.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B_UZK_6m.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 {
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { F as FormulaAttribute } from '../../attributes-Cmkc7UgJ.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CVswgCx9.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 {
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { F as FormulaAttribute } from '../../attributes-_6tvjbyl.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B_UZK_6m.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 {
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { e as RollupAttribute } from '../../attributes-Cmkc7UgJ.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CVswgCx9.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 {
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { e as RollupAttribute } from '../../attributes-_6tvjbyl.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B_UZK_6m.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkL4U5QEQL_js = require('../../chunk-L4U5QEQL.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "attributeConfigSchemas", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkL4U5QEQL_js.attributeConfigSchemas; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "getAttributeConfigSchema", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkL4U5QEQL_js.getAttributeConfigSchema; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "parseAttributeConfig", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkL4U5QEQL_js.parseAttributeConfig; }
|
|
18
18
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { attributeConfigSchemas, getAttributeConfigSchema, parseAttributeConfig } from '../../chunk-
|
|
1
|
+
export { attributeConfigSchemas, getAttributeConfigSchema, parseAttributeConfig } from '../../chunk-UXCJ3NI4.mjs';
|
|
@@ -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-CVswgCx9.mjs';
|
|
2
|
+
export { a as ValidationResult } from '../../types-CVswgCx9.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import '../../attributes-
|
|
4
|
+
import '../../attributes-Cmkc7UgJ.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-B_UZK_6m.js';
|
|
2
|
+
export { a as ValidationResult } from '../../types-B_UZK_6m.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import '../../attributes-
|
|
4
|
+
import '../../attributes-_6tvjbyl.js';
|
|
5
5
|
import '@stndrds/constants';
|
|
6
6
|
import '../../utils.js';
|
|
7
7
|
|