@stndrds/schema 1.0.0-alpha.229 → 1.0.0-alpha.231
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-DZIol94T.d.ts → attributes-B4847Nul.d.ts} +14 -2
- package/dist/{attributes-C6pCxr5P.d.mts → attributes-BpMes5H_.d.mts} +14 -2
- package/dist/{chunk-MUGKKCY3.js → chunk-6SPNZSXS.js} +11 -3
- package/dist/{chunk-6CTUPVHH.mjs → chunk-FRWPIJDK.mjs} +10 -2
- package/dist/chunk-Q44QKLN4.mjs +43 -0
- package/dist/chunk-SI34M4IC.js +45 -0
- package/dist/{helpers-B3EPtA8t.d.ts → helpers-DsJff5r-.d.ts} +2 -2
- package/dist/{helpers-Ca3PIt9O.d.mts → helpers-ow7sORSi.d.mts} +2 -2
- package/dist/index.d.mts +147 -12
- package/dist/index.d.ts +147 -12
- package/dist/index.js +168 -71
- package/dist/index.mjs +95 -5
- package/dist/{types-CBV2_ikK.d.ts → types-C8nztuFF.d.ts} +1 -1
- package/dist/{types-DjGoodOL.d.mts → types-CyxVuV_d.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 +9 -9
- package/dist/validation/all.mjs +2 -2
- package/dist/validation/complex/currency.d.mts +2 -2
- package/dist/validation/complex/currency.d.ts +2 -2
- package/dist/validation/complex/file.d.mts +2 -2
- package/dist/validation/complex/file.d.ts +2 -2
- package/dist/validation/complex/location.d.mts +2 -2
- package/dist/validation/complex/location.d.ts +2 -2
- package/dist/validation/complex/phone.d.mts +2 -2
- package/dist/validation/complex/phone.d.ts +2 -2
- package/dist/validation/complex/relation.d.mts +2 -2
- package/dist/validation/complex/relation.d.ts +2 -2
- package/dist/validation/complex/richtext.d.mts +2 -2
- package/dist/validation/complex/richtext.d.ts +2 -2
- package/dist/validation/complex/select.d.mts +2 -2
- package/dist/validation/complex/select.d.ts +2 -2
- package/dist/validation/complex/user.d.mts +2 -2
- package/dist/validation/complex/user.d.ts +2 -2
- package/dist/validation/computed/formula.d.mts +2 -2
- package/dist/validation/computed/formula.d.ts +2 -2
- package/dist/validation/computed/rollup.d.mts +2 -2
- package/dist/validation/computed/rollup.d.ts +2 -2
- package/dist/validation/config/index.d.mts +1 -1
- package/dist/validation/config/index.d.ts +1 -1
- package/dist/validation/core/index.d.mts +3 -3
- package/dist/validation/core/index.d.ts +3 -3
- package/dist/validation/object/index.d.mts +3 -3
- package/dist/validation/object/index.d.ts +3 -3
- package/dist/validation/object/index.js +15 -15
- package/dist/validation/object/index.mjs +2 -2
- 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 +16 -3
- package/dist/validation/primitives/date.d.ts +16 -3
- package/dist/validation/primitives/date.js +2 -2
- package/dist/validation/primitives/date.mjs +1 -1
- 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-6I2R22CX.mjs +0 -8
- package/dist/chunk-O44XVGHE.js +0 -10
package/dist/index.mjs
CHANGED
|
@@ -3,10 +3,10 @@ export { asTenantId, asUserId, deepEqual, generateId, indexBy } from './chunk-QY
|
|
|
3
3
|
import './chunk-SP3PNHYF.mjs';
|
|
4
4
|
import { parseComputedFormula } from './chunk-AAXJJNY6.mjs';
|
|
5
5
|
export { ComputedFormulaParseError, parseAttributeConfig, parseComputedFormula } from './chunk-AAXJJNY6.mjs';
|
|
6
|
-
import { createObjectValidator, SchemaError, SchemaErrorCode, createAttributeValidator, ValidationError } 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, computeRecordStatus, createFormAttributeValidator, isAttributeInUseError, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isSchemaError, isValidationError, rejectUnknownAttributesOrThrow, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from './chunk-
|
|
6
|
+
import { createObjectValidator, SchemaError, SchemaErrorCode, createAttributeValidator, ValidationError } from './chunk-FRWPIJDK.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, computeRecordStatus, createFormAttributeValidator, isAttributeInUseError, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isSchemaError, isValidationError, rejectUnknownAttributesOrThrow, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from './chunk-FRWPIJDK.mjs';
|
|
8
8
|
import './chunk-OSSGN43B.mjs';
|
|
9
|
-
import './chunk-
|
|
9
|
+
import './chunk-Q44QKLN4.mjs';
|
|
10
10
|
import './chunk-UANQJ2GH.mjs';
|
|
11
11
|
import './chunk-NOMHDOVE.mjs';
|
|
12
12
|
import './chunk-QVLQPW3O.mjs';
|
|
@@ -803,6 +803,28 @@ function parseQualifiedAttribute(name) {
|
|
|
803
803
|
function buildQualifiedAttribute(root, property) {
|
|
804
804
|
return `${root}${QUALIFIED_SEPARATOR}${property}`;
|
|
805
805
|
}
|
|
806
|
+
|
|
807
|
+
// src/lib/date-value.ts
|
|
808
|
+
function isDateRangeValue(value) {
|
|
809
|
+
return typeof value === "object" && value !== null && typeof value.start === "string";
|
|
810
|
+
}
|
|
811
|
+
function normalizeDateValue(value, attr) {
|
|
812
|
+
if (value == null || value === "") return null;
|
|
813
|
+
if (isDateRangeValue(value)) {
|
|
814
|
+
return attr.endDate ? { start: value.start, end: value.end ?? null } : value.start;
|
|
815
|
+
}
|
|
816
|
+
if (typeof value === "string") {
|
|
817
|
+
return attr.endDate ? { start: value, end: null } : value;
|
|
818
|
+
}
|
|
819
|
+
return null;
|
|
820
|
+
}
|
|
821
|
+
function dateValueStart(value) {
|
|
822
|
+
if (typeof value === "string" && value !== "") return value;
|
|
823
|
+
if (isDateRangeValue(value) && value.start !== "") return value.start;
|
|
824
|
+
return null;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
// src/format.ts
|
|
806
828
|
var EMPTY_VALUE_PLACEHOLDER = "\u2014";
|
|
807
829
|
function formatText(value) {
|
|
808
830
|
return String(value);
|
|
@@ -845,6 +867,10 @@ function formatCurrency(value, _attribute) {
|
|
|
845
867
|
return `${formattedValue} ${currency2.code}`;
|
|
846
868
|
}
|
|
847
869
|
function formatDate(value) {
|
|
870
|
+
if (isDateRangeValue(value)) {
|
|
871
|
+
const start = formatDate(value.start);
|
|
872
|
+
return value.end ? `${start} \u2192 ${formatDate(value.end)}` : start;
|
|
873
|
+
}
|
|
848
874
|
if (value instanceof Date) {
|
|
849
875
|
return value.toISOString().split("T")[0];
|
|
850
876
|
}
|
|
@@ -1105,6 +1131,46 @@ function extractAttributeNames(template) {
|
|
|
1105
1131
|
return names;
|
|
1106
1132
|
}
|
|
1107
1133
|
|
|
1134
|
+
// src/lib/relation-label.ts
|
|
1135
|
+
var PROPS_TOKEN_RE = /\{\{\s*props\./;
|
|
1136
|
+
function applyRelationProps(label, props, propertyDefs) {
|
|
1137
|
+
if (!PROPS_TOKEN_RE.test(label)) return label;
|
|
1138
|
+
const formattedProps = {};
|
|
1139
|
+
const defMap = new Map(propertyDefs?.map((d) => [d.name, d]));
|
|
1140
|
+
if (props) {
|
|
1141
|
+
for (const [key, value] of Object.entries(props)) {
|
|
1142
|
+
if (value == null) continue;
|
|
1143
|
+
const def = defMap.get(key);
|
|
1144
|
+
if (def) {
|
|
1145
|
+
const formatted = formatAttributeValue(value, def);
|
|
1146
|
+
formattedProps[key] = formatted === EMPTY_VALUE_PLACEHOLDER ? "" : formatted;
|
|
1147
|
+
} else {
|
|
1148
|
+
formattedProps[key] = value;
|
|
1149
|
+
}
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
const result = renderLabelExpression(label, { props: formattedProps }, "");
|
|
1153
|
+
return result.replace(/\(\s*\)/g, "").replace(/\[\s*\]/g, "").replace(/\s*[-—|:]\s*$/g, "").replace(/\s{2,}/g, " ").trim();
|
|
1154
|
+
}
|
|
1155
|
+
function extractValueRefs(value) {
|
|
1156
|
+
if (value === null || value === void 0 || value === "") return [];
|
|
1157
|
+
if (typeof value === "string") return [{ id: value }];
|
|
1158
|
+
if (Array.isArray(value)) return value.flatMap((item) => extractValueRefs(item));
|
|
1159
|
+
if (typeof value === "object" && "id" in value) {
|
|
1160
|
+
const obj = value;
|
|
1161
|
+
if (typeof obj.id === "string") return [{ id: obj.id, props: obj.props }];
|
|
1162
|
+
}
|
|
1163
|
+
return [];
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
// src/lib/user-display.ts
|
|
1167
|
+
function getUserDisplayName(user2) {
|
|
1168
|
+
if (user2.firstName || user2.lastName) {
|
|
1169
|
+
return [user2.firstName, user2.lastName].filter(Boolean).join(" ");
|
|
1170
|
+
}
|
|
1171
|
+
return user2.email?.split("@")[0] ?? "";
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1108
1174
|
// src/constants/attribute-columns.ts
|
|
1109
1175
|
var DB_COLUMN_FIELDS = /* @__PURE__ */ new Set([
|
|
1110
1176
|
"id",
|
|
@@ -1205,7 +1271,10 @@ var DEFAULT_ROLE_PERMISSIONS = {
|
|
|
1205
1271
|
system: [
|
|
1206
1272
|
{ target: "people", actions: ["read"] },
|
|
1207
1273
|
{ target: "workspace", actions: ["read"] },
|
|
1208
|
-
{ target: "connectors", actions: MEMBER_CONNECTOR_ACTIONS }
|
|
1274
|
+
{ target: "connectors", actions: MEMBER_CONNECTOR_ACTIONS },
|
|
1275
|
+
// Everyday file usage; delete stays with owner/custom roles. Boot-time
|
|
1276
|
+
// additive merge back-fills existing tenants when this list grows.
|
|
1277
|
+
{ target: "files", actions: ["read", "create", "update"] }
|
|
1209
1278
|
],
|
|
1210
1279
|
object: [{ target: "*", actions: ALL_ACTIONS2 }]
|
|
1211
1280
|
},
|
|
@@ -1602,6 +1671,20 @@ var DateAttributeBuilder = class extends BaseAttributeBuilder {
|
|
|
1602
1671
|
this.attr.maxDate = value;
|
|
1603
1672
|
return this;
|
|
1604
1673
|
}
|
|
1674
|
+
/** Values become { start, end } ranges; flips the inferred value type. */
|
|
1675
|
+
endDate() {
|
|
1676
|
+
this.attr.endDate = true;
|
|
1677
|
+
return this.asPhantomState();
|
|
1678
|
+
}
|
|
1679
|
+
/** Values carry a time component (stored as full ISO UTC datetimes). */
|
|
1680
|
+
includeTime() {
|
|
1681
|
+
this.attr.includeTime = true;
|
|
1682
|
+
return this;
|
|
1683
|
+
}
|
|
1684
|
+
timeFormat(value) {
|
|
1685
|
+
this.attr.timeFormat = value;
|
|
1686
|
+
return this;
|
|
1687
|
+
}
|
|
1605
1688
|
required() {
|
|
1606
1689
|
this.setRequired(true);
|
|
1607
1690
|
return this.asRequiredState();
|
|
@@ -6987,4 +7070,11 @@ function validateQualifiedRule(rule, context) {
|
|
|
6987
7070
|
assertRelativeDateValue(rule);
|
|
6988
7071
|
}
|
|
6989
7072
|
|
|
6990
|
-
|
|
7073
|
+
// src/connectors/types.ts
|
|
7074
|
+
var CONNECTOR_CALLBACK_PARAM = {
|
|
7075
|
+
status: "connector_status",
|
|
7076
|
+
error: "connector_error",
|
|
7077
|
+
provider: "connector_provider"
|
|
7078
|
+
};
|
|
7079
|
+
|
|
7080
|
+
export { ALLOWED_PROPERTY_TYPES, ALL_ACTIONS, ALL_SYSTEM_RESOURCES, ATTRIBUTE_FILTER_OPERATORS, AUDIT_ACTIONS, AUDIT_RESOURCE_TYPES, AUTOFILL_ELIGIBLE_TYPES, ActivityTabConfig, BEHAVIOR_PROPERTIES, COMPUTED_FUNCTIONS, COMPUTED_FUNCTION_METADATA, COMPUTED_FUNCTION_NAMES, CONNECTOR_CALLBACK_PARAM, ComputedFormulaCompileError, CustomTabConfig, DB_COLUMN_FIELDS, DEFAULT_DOCUMENT_SLOT, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DOCUMENT_SYSTEM_ATTRIBUTES, DetailViewBuilder, DocumentSlotValidationError, 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, 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, file, flagRegistry, form, formRegistry, formatAttributeValue, formatComputedResult, formatLocationValue, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getAttributeCapabilities, getAttributeFilterOperators, getErrorMessage, getLiveProtocolPayloadChannel, getOperatorPolarity, getRollupFilterOperators2 as getRollupFilterOperators, 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, isNoValueOperator, isNotEmpty, isPlainRecord, isRelationGroup, isStandardSchema, isUniversalRelation, jsonFlag, listView, liveChannelKey, location, matchesMime, multiselect, normaliseDocumentSlots, normalizeDateValue, normalizeForEdgeRpc, now, number, numberFlag, object, parseLiveChannelKey, parseLiveSubscribePayload, parseLiveUnsubscribePayload, parseQualifiedAttribute, phone, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, resolvePropertyDefinitions, richtext, rollup, rollupToFormulaExpression, select, status, stringFlag, text, toUndefinedIfEmpty, today, user, validateAttributeName, validateQualifiedRule, validateSlotAgainstConfig, viewRegistry };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { V as ValidationMessages } from '../types-
|
|
1
|
+
export { V as ValidationMessages } from '../types-CyxVuV_d.mjs';
|
|
2
2
|
export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './core/index.mjs';
|
|
3
3
|
export { parseAttributeConfig } from './config/index.mjs';
|
|
4
|
-
export { c as computeRecordStatus, a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../helpers-
|
|
5
|
-
import '../attributes-
|
|
4
|
+
export { c as computeRecordStatus, a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../helpers-ow7sORSi.mjs';
|
|
5
|
+
import '../attributes-BpMes5H_.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-C8nztuFF.js';
|
|
2
2
|
export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './core/index.js';
|
|
3
3
|
export { parseAttributeConfig } from './config/index.js';
|
|
4
|
-
export { c as computeRecordStatus, a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../helpers-
|
|
5
|
-
import '../attributes-
|
|
4
|
+
export { c as computeRecordStatus, a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../helpers-DsJff5r-.js';
|
|
5
|
+
import '../attributes-B4847Nul.js';
|
|
6
6
|
import '@stndrds/constants';
|
|
7
7
|
import '../utils.js';
|
|
8
8
|
import 'zod';
|
package/dist/validation/all.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
require('../chunk-PGERPYDR.js');
|
|
4
4
|
var chunkNSM2JPC3_js = require('../chunk-NSM2JPC3.js');
|
|
5
|
-
var
|
|
5
|
+
var chunk6SPNZSXS_js = require('../chunk-6SPNZSXS.js');
|
|
6
6
|
require('../chunk-5WATIVCA.js');
|
|
7
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-SI34M4IC.js');
|
|
8
8
|
require('../chunk-YIP5FJ5H.js');
|
|
9
9
|
require('../chunk-SGSGREPG.js');
|
|
10
10
|
require('../chunk-EW5XR2X3.js');
|
|
@@ -27,31 +27,31 @@ Object.defineProperty(exports, "parseAttributeConfig", {
|
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "computeRecordStatus", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunk6SPNZSXS_js.computeRecordStatus; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "createFormAttributeValidator", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunk6SPNZSXS_js.createFormAttributeValidator; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "rejectUnknownAttributesOrThrow", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunk6SPNZSXS_js.rejectUnknownAttributesOrThrow; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "validateDraft", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunk6SPNZSXS_js.validateDraft; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "validateDraftOrThrow", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunk6SPNZSXS_js.validateDraftOrThrow; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "validateObject", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunk6SPNZSXS_js.validateObject; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "validateObjectOrThrow", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunk6SPNZSXS_js.validateObjectOrThrow; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "DEFAULT_VALIDATION_MESSAGES", {
|
|
57
57
|
enumerable: true,
|
package/dist/validation/all.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '../chunk-SP3PNHYF.mjs';
|
|
2
2
|
export { parseAttributeConfig } from '../chunk-AAXJJNY6.mjs';
|
|
3
|
-
export { computeRecordStatus, createFormAttributeValidator, rejectUnknownAttributesOrThrow, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from '../chunk-
|
|
3
|
+
export { computeRecordStatus, createFormAttributeValidator, rejectUnknownAttributesOrThrow, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from '../chunk-FRWPIJDK.mjs';
|
|
4
4
|
import '../chunk-OSSGN43B.mjs';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-Q44QKLN4.mjs';
|
|
6
6
|
import '../chunk-UANQJ2GH.mjs';
|
|
7
7
|
import '../chunk-NOMHDOVE.mjs';
|
|
8
8
|
import '../chunk-QVLQPW3O.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-BpMes5H_.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CyxVuV_d.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-B4847Nul.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-C8nztuFF.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { F as FileAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { F as FileAttribute } from '../../attributes-BpMes5H_.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CyxVuV_d.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { F as FileAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { F as FileAttribute } from '../../attributes-B4847Nul.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-C8nztuFF.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-BpMes5H_.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CyxVuV_d.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-B4847Nul.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-C8nztuFF.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-BpMes5H_.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CyxVuV_d.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-B4847Nul.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-C8nztuFF.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-BpMes5H_.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CyxVuV_d.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-B4847Nul.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-C8nztuFF.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-BpMes5H_.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CyxVuV_d.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-B4847Nul.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-C8nztuFF.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-BpMes5H_.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CyxVuV_d.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-B4847Nul.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-C8nztuFF.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-BpMes5H_.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CyxVuV_d.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-B4847Nul.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-C8nztuFF.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { e as FormulaAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { e as FormulaAttribute } from '../../attributes-BpMes5H_.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CyxVuV_d.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { e as FormulaAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { e as FormulaAttribute } from '../../attributes-B4847Nul.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-C8nztuFF.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { f as RollupAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { f as RollupAttribute } from '../../attributes-BpMes5H_.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CyxVuV_d.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { f as RollupAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { f as RollupAttribute } from '../../attributes-B4847Nul.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-C8nztuFF.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
-
export { a as ValidationResult } from '../../types-
|
|
1
|
+
import { V as ValidationMessages } from '../../types-CyxVuV_d.mjs';
|
|
2
|
+
export { a as ValidationResult } from '../../types-CyxVuV_d.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import '../../attributes-
|
|
4
|
+
import '../../attributes-BpMes5H_.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-C8nztuFF.js';
|
|
2
|
+
export { a as ValidationResult } from '../../types-C8nztuFF.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import '../../attributes-
|
|
4
|
+
import '../../attributes-B4847Nul.js';
|
|
5
5
|
import '@stndrds/constants';
|
|
6
6
|
import '../../utils.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { c as computeRecordStatus, f as createAttributeValidator, a as createFormAttributeValidator, g as getMissingRequiredAttributes, i as isRecordComplete, r as rejectUnknownAttributesOrThrow, h as validateAttribute, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../../helpers-
|
|
1
|
+
export { c as computeRecordStatus, f as createAttributeValidator, a as createFormAttributeValidator, g as getMissingRequiredAttributes, i as isRecordComplete, r as rejectUnknownAttributesOrThrow, h as validateAttribute, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../../helpers-ow7sORSi.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { O as ObjectDefinition } from '../../attributes-
|
|
4
|
-
import '../../types-
|
|
3
|
+
import { O as ObjectDefinition } from '../../attributes-BpMes5H_.mjs';
|
|
4
|
+
import '../../types-CyxVuV_d.mjs';
|
|
5
5
|
import '@stndrds/constants';
|
|
6
6
|
import '../../utils.mjs';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { c as computeRecordStatus, f as createAttributeValidator, a as createFormAttributeValidator, g as getMissingRequiredAttributes, i as isRecordComplete, r as rejectUnknownAttributesOrThrow, h as validateAttribute, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../../helpers-
|
|
1
|
+
export { c as computeRecordStatus, f as createAttributeValidator, a as createFormAttributeValidator, g as getMissingRequiredAttributes, i as isRecordComplete, r as rejectUnknownAttributesOrThrow, h as validateAttribute, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../../helpers-DsJff5r-.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { O as ObjectDefinition } from '../../attributes-
|
|
4
|
-
import '../../types-
|
|
3
|
+
import { O as ObjectDefinition } from '../../attributes-B4847Nul.js';
|
|
4
|
+
import '../../types-C8nztuFF.js';
|
|
5
5
|
import '@stndrds/constants';
|
|
6
6
|
import '../../utils.js';
|
|
7
7
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk6SPNZSXS_js = require('../../chunk-6SPNZSXS.js');
|
|
4
4
|
require('../../chunk-5WATIVCA.js');
|
|
5
|
-
require('../../chunk-
|
|
5
|
+
require('../../chunk-SI34M4IC.js');
|
|
6
6
|
require('../../chunk-YIP5FJ5H.js');
|
|
7
7
|
require('../../chunk-SGSGREPG.js');
|
|
8
8
|
require('../../chunk-EW5XR2X3.js');
|
|
@@ -21,53 +21,53 @@ require('../../chunk-YKWSHBT5.js');
|
|
|
21
21
|
|
|
22
22
|
Object.defineProperty(exports, "computeRecordStatus", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunk6SPNZSXS_js.computeRecordStatus; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "createAttributeValidator", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunk6SPNZSXS_js.createAttributeValidator; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "createDraftValidator", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunk6SPNZSXS_js.createDraftValidator; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "createFormAttributeValidator", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunk6SPNZSXS_js.createFormAttributeValidator; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "createObjectValidator", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunk6SPNZSXS_js.createObjectValidator; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "getMissingRequiredAttributes", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunk6SPNZSXS_js.getMissingRequiredAttributes; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "isRecordComplete", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunk6SPNZSXS_js.isRecordComplete; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "rejectUnknownAttributesOrThrow", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunk6SPNZSXS_js.rejectUnknownAttributesOrThrow; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "validateAttribute", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunk6SPNZSXS_js.validateAttribute; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "validateDraft", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunk6SPNZSXS_js.validateDraft; }
|
|
61
61
|
});
|
|
62
62
|
Object.defineProperty(exports, "validateDraftOrThrow", {
|
|
63
63
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunk6SPNZSXS_js.validateDraftOrThrow; }
|
|
65
65
|
});
|
|
66
66
|
Object.defineProperty(exports, "validateObject", {
|
|
67
67
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunk6SPNZSXS_js.validateObject; }
|
|
69
69
|
});
|
|
70
70
|
Object.defineProperty(exports, "validateObjectOrThrow", {
|
|
71
71
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunk6SPNZSXS_js.validateObjectOrThrow; }
|
|
73
73
|
});
|