@stndrds/schema 1.0.0-alpha.203 → 1.0.0-alpha.205
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-Cy9o_xM1.d.ts → attributes-BpvQ7YKV.d.ts} +28 -7
- package/dist/{attributes-Cn0v3e37.d.mts → attributes-BykLtzP-.d.mts} +28 -7
- package/dist/{chunk-PMKCDRRO.mjs → chunk-7SSN7BXS.mjs} +49 -10
- package/dist/{chunk-MZOEL7FN.js → chunk-SJCEXYFG.js} +49 -10
- package/dist/{helpers-LCnn6DG3.d.ts → helpers-Bd-m3ygv.d.ts} +2 -2
- package/dist/{helpers-CED0HyXm.d.mts → helpers-xalb2T4E.d.mts} +2 -2
- package/dist/index.d.mts +362 -337
- package/dist/index.d.ts +362 -337
- package/dist/index.js +199 -95
- package/dist/index.mjs +129 -37
- package/dist/{types-CORdDGpb.d.mts → types-BmgBJGpl.d.mts} +1 -1
- package/dist/{types-B12E9LFe.d.ts → types-DeFxYTDc.d.ts} +1 -1
- package/dist/validation/all.d.mts +3 -3
- package/dist/validation/all.d.ts +3 -3
- package/dist/validation/all.js +10 -10
- package/dist/validation/all.mjs +3 -3
- package/dist/validation/complex/currency.d.mts +2 -2
- package/dist/validation/complex/currency.d.ts +2 -2
- package/dist/validation/complex/file.d.mts +2 -2
- package/dist/validation/complex/file.d.ts +2 -2
- package/dist/validation/complex/location.d.mts +2 -2
- package/dist/validation/complex/location.d.ts +2 -2
- package/dist/validation/complex/phone.d.mts +2 -2
- package/dist/validation/complex/phone.d.ts +2 -2
- package/dist/validation/complex/relation.d.mts +2 -2
- package/dist/validation/complex/relation.d.ts +2 -2
- package/dist/validation/complex/richtext.d.mts +2 -2
- package/dist/validation/complex/richtext.d.ts +2 -2
- package/dist/validation/complex/select.d.mts +2 -2
- package/dist/validation/complex/select.d.ts +2 -2
- package/dist/validation/complex/user.d.mts +2 -2
- package/dist/validation/complex/user.d.ts +2 -2
- package/dist/validation/computed/formula.d.mts +2 -2
- package/dist/validation/computed/formula.d.ts +2 -2
- package/dist/validation/computed/rollup.d.mts +2 -2
- package/dist/validation/computed/rollup.d.ts +2 -2
- package/dist/validation/config/index.d.mts +1 -1
- package/dist/validation/config/index.d.ts +1 -1
- package/dist/validation/core/index.d.mts +3 -3
- package/dist/validation/core/index.d.ts +3 -3
- package/dist/validation/object/index.d.mts +3 -3
- package/dist/validation/object/index.d.ts +3 -3
- package/dist/validation/object/index.js +16 -16
- package/dist/validation/object/index.mjs +3 -3
- package/dist/validation/primitives/checkbox.d.mts +2 -2
- package/dist/validation/primitives/checkbox.d.ts +2 -2
- package/dist/validation/primitives/date.d.mts +2 -2
- package/dist/validation/primitives/date.d.ts +2 -2
- package/dist/validation/primitives/number.d.mts +2 -2
- package/dist/validation/primitives/number.d.ts +2 -2
- package/dist/validation/primitives/text.d.mts +2 -2
- package/dist/validation/primitives/text.d.ts +2 -2
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -3,12 +3,14 @@ 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, ValidationError, createAttributeValidator } 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, 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, ValidationError, createAttributeValidator } from './chunk-7SSN7BXS.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, StorageError, SyncCascadeError, SyncConflictError, SyncError, SystemEntityImmutableError, ValidationError, computeRecordStatus, createFormAttributeValidator, isAttributeInUseError, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isSchemaError, isValidationError, rejectUnknownAttributesOrThrow, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from './chunk-7SSN7BXS.mjs';
|
|
8
8
|
import './chunk-OSSGN43B.mjs';
|
|
9
9
|
import './chunk-6I2R22CX.mjs';
|
|
10
10
|
import './chunk-UANQJ2GH.mjs';
|
|
11
11
|
import './chunk-NOMHDOVE.mjs';
|
|
12
|
+
import { formatPhoneForDisplay } from './chunk-JUKLL5RJ.mjs';
|
|
13
|
+
import './chunk-XZ5RG2OG.mjs';
|
|
12
14
|
import './chunk-QVLQPW3O.mjs';
|
|
13
15
|
import './chunk-ZDQ5AP26.mjs';
|
|
14
16
|
import './chunk-ZDMOXF3U.mjs';
|
|
@@ -17,12 +19,39 @@ import './chunk-NS63SPNN.mjs';
|
|
|
17
19
|
import './chunk-AYVHMVKQ.mjs';
|
|
18
20
|
import './chunk-QEZUDVTN.mjs';
|
|
19
21
|
import './chunk-YUFTHPOE.mjs';
|
|
20
|
-
import { formatPhoneForDisplay } from './chunk-JUKLL5RJ.mjs';
|
|
21
|
-
import './chunk-XZ5RG2OG.mjs';
|
|
22
22
|
export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './chunk-HRQEZUAA.mjs';
|
|
23
23
|
import { ICONS, getCountryDisplayNameByIso3 } from '@stndrds/constants';
|
|
24
24
|
import z3, { z } from 'zod';
|
|
25
25
|
|
|
26
|
+
// src/types/notifications.ts
|
|
27
|
+
var NOTIFICATION_KINDS = ["fyi", "task", "question", "handoff", "system"];
|
|
28
|
+
var NOTIFICATION_PRIORITIES = ["low", "normal", "high", "urgent"];
|
|
29
|
+
var NOTIFICATION_SENSITIVITIES = ["public", "internal", "sensitive"];
|
|
30
|
+
var NOTIFICATION_INBOX_STATES = ["unread", "read", "archived", "snoozed"];
|
|
31
|
+
var NOTIFICATION_WORK_STATES = [
|
|
32
|
+
"none",
|
|
33
|
+
"pending",
|
|
34
|
+
"processing",
|
|
35
|
+
"completed",
|
|
36
|
+
"dismissed",
|
|
37
|
+
"expired",
|
|
38
|
+
"failed"
|
|
39
|
+
];
|
|
40
|
+
var NOTIFICATION_TYPE_AGENT_SESSION_COMPLETED = "agent.session.completed";
|
|
41
|
+
var NOTIFICATION_TYPE_AGENT_SESSION_FAILED = "agent.session.failed";
|
|
42
|
+
var NOTIFICATION_TYPE_AGENT_SESSION_WAITING_HUMAN = "agent.session.waiting_human";
|
|
43
|
+
var NOTIFICATION_TYPE_AGENT_SESSION_TIMEOUT = "agent.session.timeout";
|
|
44
|
+
var NOTIFICATION_TYPE_AGENT_TASK_ASSIGNED = "agent.task.assigned";
|
|
45
|
+
var NOTIFICATION_TYPE_AGENT_QUESTION_REQUESTED = "agent.question.requested";
|
|
46
|
+
var NOTIFICATION_TYPES_V1 = [
|
|
47
|
+
NOTIFICATION_TYPE_AGENT_SESSION_COMPLETED,
|
|
48
|
+
NOTIFICATION_TYPE_AGENT_SESSION_FAILED,
|
|
49
|
+
NOTIFICATION_TYPE_AGENT_SESSION_WAITING_HUMAN,
|
|
50
|
+
NOTIFICATION_TYPE_AGENT_SESSION_TIMEOUT,
|
|
51
|
+
NOTIFICATION_TYPE_AGENT_TASK_ASSIGNED,
|
|
52
|
+
NOTIFICATION_TYPE_AGENT_QUESTION_REQUESTED
|
|
53
|
+
];
|
|
54
|
+
|
|
26
55
|
// src/types/attribute-protection.ts
|
|
27
56
|
var IDENTITY_PROPERTIES = ["name", "type"];
|
|
28
57
|
var BEHAVIOR_PROPERTIES = [
|
|
@@ -4986,6 +5015,9 @@ var LIVE_EVENT_TYPE_REGISTRY = {
|
|
|
4986
5015
|
"view.projection.stale": true,
|
|
4987
5016
|
"agent.session.patch": true,
|
|
4988
5017
|
"agent.unread.patch": true,
|
|
5018
|
+
"notification.created": true,
|
|
5019
|
+
"notification.recipient.patch": true,
|
|
5020
|
+
"notification.count.patch": true,
|
|
4989
5021
|
"conversation.renamed": true,
|
|
4990
5022
|
"channel.revoked": true
|
|
4991
5023
|
};
|
|
@@ -5001,6 +5033,18 @@ var CHANNEL_REVOKED_REASONS = [
|
|
|
5001
5033
|
"workspace-left",
|
|
5002
5034
|
"object-deleted"
|
|
5003
5035
|
];
|
|
5036
|
+
var NOTIFICATION_RECIPIENT_PATCH_KEYS = [
|
|
5037
|
+
"inboxState",
|
|
5038
|
+
"workState",
|
|
5039
|
+
"lockedAt",
|
|
5040
|
+
"lockedByActorId",
|
|
5041
|
+
"readAt",
|
|
5042
|
+
"archivedAt",
|
|
5043
|
+
"snoozedUntil",
|
|
5044
|
+
"completedAt",
|
|
5045
|
+
"dismissedAt",
|
|
5046
|
+
"updatedAt"
|
|
5047
|
+
];
|
|
5004
5048
|
function isLiveEventType(value) {
|
|
5005
5049
|
return typeof value === "string" && LIVE_EVENT_TYPES.includes(value);
|
|
5006
5050
|
}
|
|
@@ -5025,6 +5069,12 @@ function isLiveEventPayloadForType(type, payload) {
|
|
|
5025
5069
|
return isAgentSessionPatchPayload(payload);
|
|
5026
5070
|
case "agent.unread.patch":
|
|
5027
5071
|
return isAgentUnreadPatchPayload(payload);
|
|
5072
|
+
case "notification.created":
|
|
5073
|
+
return isNotificationCreatedPayload(payload);
|
|
5074
|
+
case "notification.recipient.patch":
|
|
5075
|
+
return isNotificationRecipientPatchPayload(payload);
|
|
5076
|
+
case "notification.count.patch":
|
|
5077
|
+
return isNotificationCountPatchPayload(payload);
|
|
5028
5078
|
case "conversation.renamed":
|
|
5029
5079
|
return isConversationRenamedPayload(payload);
|
|
5030
5080
|
case "channel.revoked":
|
|
@@ -5039,15 +5089,31 @@ function isRecord(value) {
|
|
|
5039
5089
|
function isString(value) {
|
|
5040
5090
|
return typeof value === "string";
|
|
5041
5091
|
}
|
|
5092
|
+
function isNullableString(value) {
|
|
5093
|
+
return value === null || isString(value);
|
|
5094
|
+
}
|
|
5042
5095
|
function isVersion(value) {
|
|
5043
5096
|
return typeof value === "number" && Number.isSafeInteger(value) && value >= 0;
|
|
5044
5097
|
}
|
|
5098
|
+
function isIsoDateString(value) {
|
|
5099
|
+
if (!isString(value)) {
|
|
5100
|
+
return false;
|
|
5101
|
+
}
|
|
5102
|
+
const timestamp = Date.parse(value);
|
|
5103
|
+
return Number.isFinite(timestamp) && new Date(timestamp).toISOString() === value;
|
|
5104
|
+
}
|
|
5105
|
+
function isNullableIsoDateString(value) {
|
|
5106
|
+
return value === null || isIsoDateString(value);
|
|
5107
|
+
}
|
|
5045
5108
|
function hasString(value, key) {
|
|
5046
5109
|
return isString(value[key]);
|
|
5047
5110
|
}
|
|
5048
5111
|
function hasVersion(value, key) {
|
|
5049
5112
|
return isVersion(value[key]);
|
|
5050
5113
|
}
|
|
5114
|
+
function hasIsoDateString(value, key) {
|
|
5115
|
+
return isIsoDateString(value[key]);
|
|
5116
|
+
}
|
|
5051
5117
|
function hasOptional(value, key, predicate) {
|
|
5052
5118
|
return !Object.hasOwn(value, key) || predicate(value[key]);
|
|
5053
5119
|
}
|
|
@@ -5057,6 +5123,24 @@ function isOneOf(value, values) {
|
|
|
5057
5123
|
function isCompletionStatus(value) {
|
|
5058
5124
|
return isOneOf(value, COMPLETION_STATUSES);
|
|
5059
5125
|
}
|
|
5126
|
+
function isNotificationKind(value) {
|
|
5127
|
+
return isOneOf(value, NOTIFICATION_KINDS);
|
|
5128
|
+
}
|
|
5129
|
+
function isNotificationPriority(value) {
|
|
5130
|
+
return isOneOf(value, NOTIFICATION_PRIORITIES);
|
|
5131
|
+
}
|
|
5132
|
+
function isNotificationSensitivity(value) {
|
|
5133
|
+
return isOneOf(value, NOTIFICATION_SENSITIVITIES);
|
|
5134
|
+
}
|
|
5135
|
+
function isNotificationInboxState(value) {
|
|
5136
|
+
return isOneOf(value, NOTIFICATION_INBOX_STATES);
|
|
5137
|
+
}
|
|
5138
|
+
function isNotificationWorkState(value) {
|
|
5139
|
+
return isOneOf(value, NOTIFICATION_WORK_STATES);
|
|
5140
|
+
}
|
|
5141
|
+
function isNotificationSubject(value) {
|
|
5142
|
+
return isRecord(value) && hasString(value, "type") && hasString(value, "id");
|
|
5143
|
+
}
|
|
5060
5144
|
function isRecordFieldPatch(value) {
|
|
5061
5145
|
return isRecord(value) && hasString(value, "fieldKey") && Object.hasOwn(value, "value") && hasVersion(value, "version");
|
|
5062
5146
|
}
|
|
@@ -5075,6 +5159,32 @@ function isAgentSessionPatchPayload(payload) {
|
|
|
5075
5159
|
function isAgentUnreadPatchPayload(payload) {
|
|
5076
5160
|
return payload.type === "agent.unread.patch" && hasString(payload, "workspaceId") && hasString(payload, "targetActorId") && hasString(payload, "sessionId") && hasVersion(payload, "unreadCount") && hasVersion(payload, "version") && hasString(payload, "updatedAt") && (!Object.hasOwn(payload, "session") || isRecord(payload.session) && payload.session.id === payload.sessionId);
|
|
5077
5161
|
}
|
|
5162
|
+
function isLiveNotification(value) {
|
|
5163
|
+
return isRecord(value) && hasString(value, "id") && hasString(value, "tenantId") && hasOptional(value, "senderActorId", isString) && hasOptional(value, "rootActorId", isString) && hasOptional(value, "triggeredByActorId", isString) && isNotificationKind(value.kind) && hasString(value, "type") && hasOptional(value, "subject", isNotificationSubject) && hasString(value, "title") && hasOptional(value, "summary", isString) && isRecord(value.payload) && isNotificationPriority(value.priority) && isNotificationSensitivity(value.sensitivity) && hasOptional(value, "threadKey", isString) && hasOptional(value, "idempotencyKey", isString) && hasOptional(value, "expiresAt", isIsoDateString) && hasIsoDateString(value, "createdAt") && hasIsoDateString(value, "updatedAt");
|
|
5164
|
+
}
|
|
5165
|
+
function isLiveNotificationRecipient(value) {
|
|
5166
|
+
return isRecord(value) && hasString(value, "id") && hasString(value, "tenantId") && hasString(value, "notificationId") && hasString(value, "recipientActorId") && isNotificationInboxState(value.inboxState) && isNotificationWorkState(value.workState) && hasOptional(value, "lockedAt", isIsoDateString) && hasOptional(value, "lockedByActorId", isString) && hasOptional(value, "readAt", isIsoDateString) && hasOptional(value, "archivedAt", isIsoDateString) && hasOptional(value, "snoozedUntil", isIsoDateString) && hasOptional(value, "completedAt", isIsoDateString) && hasOptional(value, "dismissedAt", isIsoDateString) && hasIsoDateString(value, "createdAt") && hasIsoDateString(value, "updatedAt");
|
|
5167
|
+
}
|
|
5168
|
+
function isNotificationRecipientPatch(value) {
|
|
5169
|
+
if (!isRecord(value)) {
|
|
5170
|
+
return false;
|
|
5171
|
+
}
|
|
5172
|
+
return Object.keys(value).every(
|
|
5173
|
+
(key) => NOTIFICATION_RECIPIENT_PATCH_KEYS.includes(key)
|
|
5174
|
+
) && hasOptional(value, "inboxState", isNotificationInboxState) && hasOptional(value, "workState", isNotificationWorkState) && hasOptional(value, "lockedAt", isNullableIsoDateString) && hasOptional(value, "lockedByActorId", isNullableString) && hasOptional(value, "readAt", isNullableIsoDateString) && hasOptional(value, "archivedAt", isNullableIsoDateString) && hasOptional(value, "snoozedUntil", isNullableIsoDateString) && hasOptional(value, "completedAt", isNullableIsoDateString) && hasOptional(value, "dismissedAt", isNullableIsoDateString) && hasOptional(value, "updatedAt", isIsoDateString);
|
|
5175
|
+
}
|
|
5176
|
+
function isNotificationCreatedPayload(payload) {
|
|
5177
|
+
const notification = isLiveNotification(payload.notification) ? payload.notification : null;
|
|
5178
|
+
return payload.type === "notification.created" && hasString(payload, "workspaceId") && notification !== null && Array.isArray(payload.recipients) && payload.recipients.length > 0 && payload.recipients.every(
|
|
5179
|
+
(recipient) => isLiveNotificationRecipient(recipient) && recipient.notificationId === notification.id
|
|
5180
|
+
) && hasVersion(payload, "version") && hasIsoDateString(payload, "updatedAt");
|
|
5181
|
+
}
|
|
5182
|
+
function isNotificationRecipientPatchPayload(payload) {
|
|
5183
|
+
return payload.type === "notification.recipient.patch" && hasString(payload, "workspaceId") && hasString(payload, "recipientId") && hasString(payload, "recipientActorId") && isNotificationRecipientPatch(payload.patch) && hasVersion(payload, "version") && hasIsoDateString(payload, "updatedAt");
|
|
5184
|
+
}
|
|
5185
|
+
function isNotificationCountPatchPayload(payload) {
|
|
5186
|
+
return payload.type === "notification.count.patch" && hasString(payload, "workspaceId") && hasString(payload, "targetActorId") && hasVersion(payload, "unread") && hasVersion(payload, "pendingWork") && hasVersion(payload, "version") && hasIsoDateString(payload, "updatedAt");
|
|
5187
|
+
}
|
|
5078
5188
|
function isConversationRenamedPayload(payload) {
|
|
5079
5189
|
return payload.type === "conversation.renamed" && hasString(payload, "workspaceId") && hasString(payload, "sessionId") && hasString(payload, "title") && hasVersion(payload, "version") && hasString(payload, "updatedAt");
|
|
5080
5190
|
}
|
|
@@ -5234,6 +5344,7 @@ function compileComputedFormula(input) {
|
|
|
5234
5344
|
returnType: input.returnType,
|
|
5235
5345
|
valueType: inferred.valueType,
|
|
5236
5346
|
dependencies,
|
|
5347
|
+
ast,
|
|
5237
5348
|
...inferred.optionsSource ? { optionsSource: inferred.optionsSource } : {},
|
|
5238
5349
|
...inferred.targetAttributeType ? { targetAttributeType: inferred.targetAttributeType } : {},
|
|
5239
5350
|
dependenciesHash: createDependenciesHash({
|
|
@@ -5510,7 +5621,7 @@ function inferFunctionReturn(functionName, args) {
|
|
|
5510
5621
|
return { valueType: { kind: "scalar", type: "text" }, dependencies };
|
|
5511
5622
|
case "sum":
|
|
5512
5623
|
case "avg":
|
|
5513
|
-
|
|
5624
|
+
ensureCollectionOrScalarType(functionName, args[0], "number");
|
|
5514
5625
|
return { valueType: { kind: "scalar", type: "number" }, dependencies };
|
|
5515
5626
|
case "count":
|
|
5516
5627
|
case "count_empty":
|
|
@@ -5518,11 +5629,7 @@ function inferFunctionReturn(functionName, args) {
|
|
|
5518
5629
|
case "count_unique":
|
|
5519
5630
|
case "percent_empty":
|
|
5520
5631
|
case "percent_not_empty":
|
|
5521
|
-
|
|
5522
|
-
ensureUniqueCountSource(args[0]);
|
|
5523
|
-
} else {
|
|
5524
|
-
ensureCollectionSource(functionName, args[0]);
|
|
5525
|
-
}
|
|
5632
|
+
ensureCollectionSource(functionName, args[0]);
|
|
5526
5633
|
return { valueType: { kind: "scalar", type: "number" }, dependencies };
|
|
5527
5634
|
case "min":
|
|
5528
5635
|
case "max":
|
|
@@ -5535,7 +5642,7 @@ function inferFunctionReturn(functionName, args) {
|
|
|
5535
5642
|
};
|
|
5536
5643
|
case "earliest":
|
|
5537
5644
|
case "latest":
|
|
5538
|
-
|
|
5645
|
+
ensureCollectionOrScalarType(functionName, args[0], "date");
|
|
5539
5646
|
return {
|
|
5540
5647
|
valueType: { kind: "scalar", type: "date" },
|
|
5541
5648
|
dependencies,
|
|
@@ -5591,12 +5698,13 @@ function inferFirstFunction(source, dependencies) {
|
|
|
5591
5698
|
}
|
|
5592
5699
|
function inferBinary(operator, left, right) {
|
|
5593
5700
|
const dependencies = uniqueDependencies([...left.dependencies, ...right.dependencies]);
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
|
|
5598
|
-
|
|
5599
|
-
|
|
5701
|
+
const isArithmetic = operator === "+" || operator === "-" || operator === "*" || operator === "/";
|
|
5702
|
+
if (left.valueType.kind === "collection" || right.valueType.kind === "collection") {
|
|
5703
|
+
throw new ComputedFormulaCompileError(
|
|
5704
|
+
`Cannot use collection values with ${isArithmetic ? "arithmetic" : "comparison"} operator "${operator}"`
|
|
5705
|
+
);
|
|
5706
|
+
}
|
|
5707
|
+
if (isArithmetic) {
|
|
5600
5708
|
if (operator === "+" && (left.valueType.type === "text" || right.valueType.type === "text")) {
|
|
5601
5709
|
return { valueType: { kind: "scalar", type: "text" }, dependencies };
|
|
5602
5710
|
}
|
|
@@ -5604,11 +5712,6 @@ function inferBinary(operator, left, right) {
|
|
|
5604
5712
|
ensureScalarType(right.valueType, "number", `Operator "${operator}" expects number operands`);
|
|
5605
5713
|
return { valueType: { kind: "scalar", type: "number" }, dependencies };
|
|
5606
5714
|
}
|
|
5607
|
-
if (left.valueType.kind === "collection" || right.valueType.kind === "collection") {
|
|
5608
|
-
throw new ComputedFormulaCompileError(
|
|
5609
|
-
`Cannot use collection values with comparison operator "${operator}"`
|
|
5610
|
-
);
|
|
5611
|
-
}
|
|
5612
5715
|
if (operator === "==" || operator === "!=") {
|
|
5613
5716
|
if (left.valueType.type !== right.valueType.type) {
|
|
5614
5717
|
throw new ComputedFormulaCompileError(
|
|
@@ -5631,16 +5734,10 @@ function ensureNoCollections(args, message) {
|
|
|
5631
5734
|
}
|
|
5632
5735
|
}
|
|
5633
5736
|
}
|
|
5634
|
-
function
|
|
5737
|
+
function ensureCollectionOrScalarType(functionName, expression, expected) {
|
|
5635
5738
|
const type = expression.valueType.kind === "collection" ? expression.valueType.itemType : expression.valueType.type;
|
|
5636
|
-
if (type !==
|
|
5637
|
-
throw new ComputedFormulaCompileError(`Function "${functionName}" expects
|
|
5638
|
-
}
|
|
5639
|
-
}
|
|
5640
|
-
function ensureDateCollectionOrScalar(functionName, expression) {
|
|
5641
|
-
const type = expression.valueType.kind === "collection" ? expression.valueType.itemType : expression.valueType.type;
|
|
5642
|
-
if (type !== "date") {
|
|
5643
|
-
throw new ComputedFormulaCompileError(`Function "${functionName}" expects date values`);
|
|
5739
|
+
if (type !== expected) {
|
|
5740
|
+
throw new ComputedFormulaCompileError(`Function "${functionName}" expects ${expected} values`);
|
|
5644
5741
|
}
|
|
5645
5742
|
}
|
|
5646
5743
|
function ensureMinMaxSource(functionName, expression) {
|
|
@@ -5659,11 +5756,6 @@ function ensureCollectionSource(functionName, expression) {
|
|
|
5659
5756
|
throw new ComputedFormulaCompileError(`Function "${functionName}" expects a collection`);
|
|
5660
5757
|
}
|
|
5661
5758
|
}
|
|
5662
|
-
function ensureUniqueCountSource(expression) {
|
|
5663
|
-
if (expression.valueType.kind !== "collection") {
|
|
5664
|
-
throw new ComputedFormulaCompileError('Function "count_unique" expects a collection');
|
|
5665
|
-
}
|
|
5666
|
-
}
|
|
5667
5759
|
function ensureScalarType(valueType, expectedType, message) {
|
|
5668
5760
|
if (valueType.kind !== "scalar" || valueType.type !== expectedType) {
|
|
5669
5761
|
throw new ComputedFormulaCompileError(message);
|
|
@@ -6680,4 +6772,4 @@ function validateQualifiedRule(rule, context) {
|
|
|
6680
6772
|
assertOperatorForType(rule.operator, propDef.type, "property");
|
|
6681
6773
|
}
|
|
6682
6774
|
|
|
6683
|
-
export { ALLOWED_PROPERTY_TYPES, ALL_ACTIONS, ALL_SYSTEM_RESOURCES, ATTRIBUTE_FILTER_OPERATORS, ActivityTabConfig, BEHAVIOR_PROPERTIES, COMPUTED_FUNCTIONS, COMPUTED_FUNCTION_METADATA, COMPUTED_FUNCTION_NAMES, 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, 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, NO_VALUE_OPERATORS, NoopGeocodingAdapter, OPERATORS_BY_TYPE, OPERATOR_SPECS, ObjectBuilder, PRESENTATION_PROPERTIES, QUALIFIED_SEPARATOR, RELATION_TARGET_ANY, RESERVED_ATTRIBUTE_NAMES, RelationGroupBuilder, RichtextTabConfig, STANDARD_SCHEMA_VENDOR, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_FIELD_NAMES, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, TabBuilder, TableTabConfig, USER_STATUSES, accessLevelToActions, actionsToAccessLevel, applyPipes, assertAcyclicComputedDependencies, assertLiveStreamCursor, booleanFlag, buildPropertySchema, buildQualifiedAttribute, checkbox, compareLiveStreamCursors, compileComputedFormula, compileRollupAttribute, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, date, detailView, document, evaluateComputedAst, evaluateComputedFormula, evaluateComputedFormulaWithResult, evaluateFilterState, extractAttributeNames, file, flagRegistry, form, formRegistry, formatAttributeValue, formatComputedResult, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getAttributeCapabilities, getAttributeFilterOperators, getErrorMessage, getLiveProtocolPayloadChannel, getOperatorPolarity, getRollupFilterOperators2 as getRollupFilterOperators, getSystemAttributeI18nKey, getSystemAttributeList, group, hasOptions, inferInverseCardinality, inferRollupReturnType, isAttributeFilterable, isAttributeGroupable, isAttributeKanbanGroupable, isAttributeSearchable, isAttributeSortable2 as isAttributeSortable, isBilateralRelation, isComputedFunctionName, isDefaultRole, isDetailView, isDocumentAttribute, isEmptyObject, isFieldGroup, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isListView, isLiveErrorPayload, isLiveEventEnvelope, isLiveEventPayload, isLiveEventPayloadForType, isLiveEventType, isLiveGapPayload, isLiveReplayCompletePayload, isLiveStreamCursor, isNoValueOperator, isNotEmpty, isPlainRecord, isRelationGroup, isStandardSchema, isUniversalRelation, jsonFlag, listView, liveChannelKey, location, matchesMime, multiselect, normaliseDocumentSlots, normalizeForEdgeRpc, number, numberFlag, object, parseLiveChannelKey, parseLiveSubscribePayload, parseLiveUnsubscribePayload, parseQualifiedAttribute, phone, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, richtext, rollup, rollupToFormulaExpression, select, status, stringFlag, text, toUndefinedIfEmpty, user, validateAttributeName, validateQualifiedRule, validateSlotAgainstConfig, viewRegistry };
|
|
6775
|
+
export { ALLOWED_PROPERTY_TYPES, ALL_ACTIONS, ALL_SYSTEM_RESOURCES, ATTRIBUTE_FILTER_OPERATORS, ActivityTabConfig, BEHAVIOR_PROPERTIES, COMPUTED_FUNCTIONS, COMPUTED_FUNCTION_METADATA, COMPUTED_FUNCTION_NAMES, 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, 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, RelationGroupBuilder, RichtextTabConfig, STANDARD_SCHEMA_VENDOR, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_FIELD_NAMES, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, TabBuilder, TableTabConfig, USER_STATUSES, accessLevelToActions, actionsToAccessLevel, applyPipes, assertAcyclicComputedDependencies, assertLiveStreamCursor, booleanFlag, buildPropertySchema, buildQualifiedAttribute, checkbox, compareLiveStreamCursors, compileComputedFormula, compileRollupAttribute, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, date, detailView, document, evaluateComputedAst, evaluateComputedFormula, evaluateComputedFormulaWithResult, evaluateFilterState, extractAttributeNames, file, flagRegistry, form, formRegistry, formatAttributeValue, formatComputedResult, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getAttributeCapabilities, getAttributeFilterOperators, getErrorMessage, getLiveProtocolPayloadChannel, getOperatorPolarity, getRollupFilterOperators2 as getRollupFilterOperators, getSystemAttributeI18nKey, getSystemAttributeList, group, hasOptions, inferInverseCardinality, inferRollupReturnType, isAttributeFilterable, isAttributeGroupable, isAttributeKanbanGroupable, isAttributeSearchable, isAttributeSortable2 as isAttributeSortable, isBilateralRelation, isComputedFunctionName, isDefaultRole, isDetailView, isDocumentAttribute, isEmptyObject, isFieldGroup, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isListView, isLiveErrorPayload, isLiveEventEnvelope, isLiveEventPayload, isLiveEventPayloadForType, isLiveEventType, isLiveGapPayload, isLiveReplayCompletePayload, isLiveStreamCursor, isNoValueOperator, isNotEmpty, isPlainRecord, isRelationGroup, isStandardSchema, isUniversalRelation, jsonFlag, listView, liveChannelKey, location, matchesMime, multiselect, normaliseDocumentSlots, normalizeForEdgeRpc, number, numberFlag, object, parseLiveChannelKey, parseLiveSubscribePayload, parseLiveUnsubscribePayload, parseQualifiedAttribute, phone, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, richtext, rollup, rollupToFormulaExpression, select, status, stringFlag, text, toUndefinedIfEmpty, user, validateAttributeName, validateQualifiedRule, validateSlotAgainstConfig, viewRegistry };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { V as ValidationMessages } from '../types-
|
|
1
|
+
export { V as ValidationMessages } from '../types-BmgBJGpl.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-xalb2T4E.mjs';
|
|
5
|
+
import '../attributes-BykLtzP-.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-DeFxYTDc.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-Bd-m3ygv.js';
|
|
5
|
+
import '../attributes-BpvQ7YKV.js';
|
|
6
6
|
import '@stndrds/constants';
|
|
7
7
|
import '../utils.js';
|
|
8
8
|
import 'zod';
|
package/dist/validation/all.js
CHANGED
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
require('../chunk-PGERPYDR.js');
|
|
4
4
|
var chunkNSM2JPC3_js = require('../chunk-NSM2JPC3.js');
|
|
5
|
-
var
|
|
5
|
+
var chunkSJCEXYFG_js = require('../chunk-SJCEXYFG.js');
|
|
6
6
|
require('../chunk-5WATIVCA.js');
|
|
7
7
|
require('../chunk-O44XVGHE.js');
|
|
8
8
|
require('../chunk-YIP5FJ5H.js');
|
|
9
9
|
require('../chunk-SGSGREPG.js');
|
|
10
|
+
require('../chunk-EBGRZUIH.js');
|
|
11
|
+
require('../chunk-BV3IUMMW.js');
|
|
10
12
|
require('../chunk-EW5XR2X3.js');
|
|
11
13
|
require('../chunk-QWKLQRBX.js');
|
|
12
14
|
require('../chunk-T6L2MUG2.js');
|
|
@@ -15,8 +17,6 @@ require('../chunk-V2UA2D4E.js');
|
|
|
15
17
|
require('../chunk-ACKMC6FL.js');
|
|
16
18
|
require('../chunk-ROLWVTU3.js');
|
|
17
19
|
require('../chunk-E6JUYGJX.js');
|
|
18
|
-
require('../chunk-EBGRZUIH.js');
|
|
19
|
-
require('../chunk-BV3IUMMW.js');
|
|
20
20
|
var chunkYKWSHBT5_js = require('../chunk-YKWSHBT5.js');
|
|
21
21
|
|
|
22
22
|
|
|
@@ -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 chunkSJCEXYFG_js.computeRecordStatus; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "createFormAttributeValidator", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkSJCEXYFG_js.createFormAttributeValidator; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "rejectUnknownAttributesOrThrow", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkSJCEXYFG_js.rejectUnknownAttributesOrThrow; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "validateDraft", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkSJCEXYFG_js.validateDraft; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "validateDraftOrThrow", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkSJCEXYFG_js.validateDraftOrThrow; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "validateObject", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkSJCEXYFG_js.validateObject; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "validateObjectOrThrow", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkSJCEXYFG_js.validateObjectOrThrow; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "DEFAULT_VALIDATION_MESSAGES", {
|
|
57
57
|
enumerable: true,
|
package/dist/validation/all.mjs
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
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-7SSN7BXS.mjs';
|
|
4
4
|
import '../chunk-OSSGN43B.mjs';
|
|
5
5
|
import '../chunk-6I2R22CX.mjs';
|
|
6
6
|
import '../chunk-UANQJ2GH.mjs';
|
|
7
7
|
import '../chunk-NOMHDOVE.mjs';
|
|
8
|
+
import '../chunk-JUKLL5RJ.mjs';
|
|
9
|
+
import '../chunk-XZ5RG2OG.mjs';
|
|
8
10
|
import '../chunk-QVLQPW3O.mjs';
|
|
9
11
|
import '../chunk-ZDQ5AP26.mjs';
|
|
10
12
|
import '../chunk-ZDMOXF3U.mjs';
|
|
@@ -13,6 +15,4 @@ import '../chunk-NS63SPNN.mjs';
|
|
|
13
15
|
import '../chunk-AYVHMVKQ.mjs';
|
|
14
16
|
import '../chunk-QEZUDVTN.mjs';
|
|
15
17
|
import '../chunk-YUFTHPOE.mjs';
|
|
16
|
-
import '../chunk-JUKLL5RJ.mjs';
|
|
17
|
-
import '../chunk-XZ5RG2OG.mjs';
|
|
18
18
|
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-BykLtzP-.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-BmgBJGpl.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-BpvQ7YKV.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DeFxYTDc.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 { a as FileAttribute } from '../../attributes-BykLtzP-.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-BmgBJGpl.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 { a as FileAttribute } from '../../attributes-BpvQ7YKV.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DeFxYTDc.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-BykLtzP-.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-BmgBJGpl.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-BpvQ7YKV.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DeFxYTDc.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-BykLtzP-.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-BmgBJGpl.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-BpvQ7YKV.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DeFxYTDc.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,
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { M as MultiRelationAttribute, b as RelationAttribute, S as SingleRelationAttribute } from '../../attributes-BykLtzP-.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-BmgBJGpl.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,
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { M as MultiRelationAttribute, b as RelationAttribute, S as SingleRelationAttribute } from '../../attributes-BpvQ7YKV.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DeFxYTDc.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 { c as RichtextAttribute } from '../../attributes-BykLtzP-.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-BmgBJGpl.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 { c as RichtextAttribute } from '../../attributes-BpvQ7YKV.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DeFxYTDc.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 { d as MultiselectAttribute, e as SelectAttribute, f as StatusAttribute } from '../../attributes-BykLtzP-.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-BmgBJGpl.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 { d as MultiselectAttribute, e as SelectAttribute, f as StatusAttribute } from '../../attributes-BpvQ7YKV.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DeFxYTDc.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-BykLtzP-.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-BmgBJGpl.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-BpvQ7YKV.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DeFxYTDc.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-BykLtzP-.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-BmgBJGpl.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-BpvQ7YKV.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-DeFxYTDc.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|