@stndrds/schema 1.0.0-alpha.264 → 1.0.0-alpha.266
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/all--B2_3ksI.d.ts +465 -0
- package/dist/all-D5zeUllO.d.mts +465 -0
- package/dist/{attributes-DUuaECJI.d.ts → attributes-_b3Db8vT.d.ts} +1 -1
- package/dist/{attributes-DCgZhISp.d.mts → attributes-lBLiOIY3.d.mts} +1 -1
- package/dist/chunk-6ZDH3EJA.js +1261 -0
- package/dist/chunk-F6ATLCIR.mjs +1214 -0
- package/dist/{chunk-TS3PJOMZ.js → chunk-FDIAOFHS.js} +22 -235
- package/dist/{chunk-UXCJ3NI4.mjs → chunk-KDHDC7E6.mjs} +150 -9
- package/dist/{chunk-U36ZIBEM.mjs → chunk-O73ROMWQ.mjs} +15 -6
- package/dist/{chunk-54WDPQ6R.mjs → chunk-POULKEJM.mjs} +22 -224
- package/dist/{chunk-EBGRZUIH.js → chunk-Q4SZAMJT.js} +5 -0
- package/dist/chunk-QMLO7V5E.mjs +216 -0
- package/dist/{chunk-L4U5QEQL.js → chunk-QN2N3IJZ.js} +158 -8
- package/dist/{chunk-JUKLL5RJ.mjs → chunk-R5LAJCBU.mjs} +5 -2
- package/dist/chunk-V6Q7HCA7.js +229 -0
- package/dist/{chunk-QAF3HNKQ.js → chunk-ZPFOKBIN.js} +16 -5
- package/dist/exceptions.d.mts +471 -0
- package/dist/exceptions.d.ts +471 -0
- package/dist/exceptions.js +158 -0
- package/dist/exceptions.mjs +1 -0
- package/dist/helpers-C1VVEAOO.d.mts +76 -0
- package/dist/helpers-vQ6kp8ET.d.ts +76 -0
- package/dist/index-Bq1KrQkR.d.ts +2413 -0
- package/dist/index-DtxtOBYT.d.mts +2413 -0
- package/dist/index.d.mts +1580 -2652
- package/dist/index.d.ts +1580 -2652
- package/dist/index.js +1297 -1045
- package/dist/index.mjs +913 -907
- package/dist/migrations-BXd2ZGfM.d.mts +39 -0
- package/dist/migrations-DcuJZ8qO.d.ts +39 -0
- package/dist/{helpers-B4qBjTd0.d.ts → objects-A1ED9af-.d.ts} +33 -113
- package/dist/{helpers-B_NlMAm2.d.mts → objects-BCaBw2ef.d.mts} +33 -113
- package/dist/{types-15lGDPlN.d.mts → types-DNz3ITS-.d.mts} +1 -1
- package/dist/{types-CqZZxm_V.d.ts → types-DqLi1tx1.d.ts} +1 -1
- package/dist/validation/all.d.mts +7 -4
- package/dist/validation/all.d.ts +7 -4
- package/dist/validation/all.js +88 -15
- package/dist/validation/all.mjs +9 -8
- 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/phone.js +2 -2
- package/dist/validation/complex/phone.mjs +1 -1
- 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 +5 -18
- package/dist/validation/config/index.d.ts +5 -18
- package/dist/validation/config/index.js +34 -4
- package/dist/validation/config/index.mjs +7 -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 +5 -4
- package/dist/validation/object/index.d.ts +5 -4
- package/dist/validation/object/index.js +19 -18
- package/dist/validation/object/index.mjs +7 -6
- 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/dist/validation/primitives/text.js +2 -2
- package/dist/validation/primitives/text.mjs +1 -1
- package/package.json +7 -2
- package/dist/chunk-PGERPYDR.js +0 -2
- package/dist/chunk-SP3PNHYF.mjs +0 -1
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { A as Attribute, f as AttributeType } from './attributes-lBLiOIY3.mjs';
|
|
2
|
+
|
|
3
|
+
type BuiltInTransform = "toString" | "toNumber" | "toDate" | "toBoolean" | "toISOString";
|
|
4
|
+
type SchemaOperation = {
|
|
5
|
+
type: "add_attribute";
|
|
6
|
+
attribute: Attribute;
|
|
7
|
+
} | {
|
|
8
|
+
type: "remove_attribute";
|
|
9
|
+
name: string;
|
|
10
|
+
backup_config: Attribute;
|
|
11
|
+
} | {
|
|
12
|
+
type: "rename_attribute";
|
|
13
|
+
from: string;
|
|
14
|
+
to: string;
|
|
15
|
+
} | {
|
|
16
|
+
type: "change_type";
|
|
17
|
+
name: string;
|
|
18
|
+
from: AttributeType;
|
|
19
|
+
to: AttributeType;
|
|
20
|
+
transform?: BuiltInTransform;
|
|
21
|
+
} | {
|
|
22
|
+
type: "update_config";
|
|
23
|
+
name: string;
|
|
24
|
+
from: Partial<Record<string, unknown>>;
|
|
25
|
+
to: Partial<Record<string, unknown>>;
|
|
26
|
+
} | {
|
|
27
|
+
type: "remove_object";
|
|
28
|
+
backup: Record<string, unknown>;
|
|
29
|
+
} | {
|
|
30
|
+
type: "rename_object";
|
|
31
|
+
from: string;
|
|
32
|
+
to: string;
|
|
33
|
+
};
|
|
34
|
+
interface MigrationDefinition {
|
|
35
|
+
version: number;
|
|
36
|
+
operations: SchemaOperation[];
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export type { BuiltInTransform as B, MigrationDefinition as M, SchemaOperation as S };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { A as Attribute, f as AttributeType } from './attributes-_b3Db8vT.js';
|
|
2
|
+
|
|
3
|
+
type BuiltInTransform = "toString" | "toNumber" | "toDate" | "toBoolean" | "toISOString";
|
|
4
|
+
type SchemaOperation = {
|
|
5
|
+
type: "add_attribute";
|
|
6
|
+
attribute: Attribute;
|
|
7
|
+
} | {
|
|
8
|
+
type: "remove_attribute";
|
|
9
|
+
name: string;
|
|
10
|
+
backup_config: Attribute;
|
|
11
|
+
} | {
|
|
12
|
+
type: "rename_attribute";
|
|
13
|
+
from: string;
|
|
14
|
+
to: string;
|
|
15
|
+
} | {
|
|
16
|
+
type: "change_type";
|
|
17
|
+
name: string;
|
|
18
|
+
from: AttributeType;
|
|
19
|
+
to: AttributeType;
|
|
20
|
+
transform?: BuiltInTransform;
|
|
21
|
+
} | {
|
|
22
|
+
type: "update_config";
|
|
23
|
+
name: string;
|
|
24
|
+
from: Partial<Record<string, unknown>>;
|
|
25
|
+
to: Partial<Record<string, unknown>>;
|
|
26
|
+
} | {
|
|
27
|
+
type: "remove_object";
|
|
28
|
+
backup: Record<string, unknown>;
|
|
29
|
+
} | {
|
|
30
|
+
type: "rename_object";
|
|
31
|
+
from: string;
|
|
32
|
+
to: string;
|
|
33
|
+
};
|
|
34
|
+
interface MigrationDefinition {
|
|
35
|
+
version: number;
|
|
36
|
+
operations: SchemaOperation[];
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export type { BuiltInTransform as B, MigrationDefinition as M, SchemaOperation as S };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { A as Attribute, g as AttributeType, h as ComputedAttributeState } from './attributes-DUuaECJI.js';
|
|
3
|
-
import { V as ValidationMessages, a as ValidationResult } from './types-CqZZxm_V.js';
|
|
4
1
|
import { IconName } from '@stndrds/constants';
|
|
2
|
+
import { h as ComputedAttributeState, A as Attribute } from './attributes-_b3Db8vT.js';
|
|
5
3
|
import { Uuid } from './utils.js';
|
|
4
|
+
import { M as MigrationDefinition } from './migrations-DcuJZ8qO.js';
|
|
6
5
|
|
|
7
6
|
interface DocumentLayout {
|
|
8
7
|
/** Named sub-folders auto-created at the top of the record's drive when first used via attach --variant. */
|
|
@@ -32,42 +31,21 @@ interface PresetNode {
|
|
|
32
31
|
/** Max depth allowed for preset.structure to keep instantiation predictable. */
|
|
33
32
|
declare const MAX_PRESET_DEPTH = 5;
|
|
34
33
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
from: AttributeType;
|
|
51
|
-
to: AttributeType;
|
|
52
|
-
transform?: BuiltInTransform;
|
|
53
|
-
} | {
|
|
54
|
-
type: "update_config";
|
|
55
|
-
name: string;
|
|
56
|
-
from: Partial<Record<string, unknown>>;
|
|
57
|
-
to: Partial<Record<string, unknown>>;
|
|
58
|
-
} | {
|
|
59
|
-
type: "remove_object";
|
|
60
|
-
backup: Record<string, unknown>;
|
|
61
|
-
} | {
|
|
62
|
-
type: "rename_object";
|
|
63
|
-
from: string;
|
|
64
|
-
to: string;
|
|
65
|
-
};
|
|
66
|
-
interface MigrationDefinition {
|
|
67
|
-
version: number;
|
|
68
|
-
operations: SchemaOperation[];
|
|
69
|
-
}
|
|
70
|
-
|
|
34
|
+
/** Visibility scopes shared by resources that can be workspace-wide or actor-private. */
|
|
35
|
+
declare const RESOURCE_VISIBILITIES: readonly ["workspace", "private"];
|
|
36
|
+
type ResourceVisibility = (typeof RESOURCE_VISIBILITIES)[number];
|
|
37
|
+
/**
|
|
38
|
+
* Scope a list-view tab reads. Deliberately a SEPARATE union from
|
|
39
|
+
* {@link ResourceVisibility}: a stored resource is always exactly one of
|
|
40
|
+
* `workspace` or `private`, while a tab may also read across both.
|
|
41
|
+
*
|
|
42
|
+
* `all` is not a third resource state — it means "impose no scope", so the tab
|
|
43
|
+
* returns whatever the mandatory viewer predicate already allows: every
|
|
44
|
+
* workspace record plus the viewer's own private ones. Never assign an `all`
|
|
45
|
+
* tab scope to a record's `visibility` column.
|
|
46
|
+
*/
|
|
47
|
+
declare const LIST_VIEW_TAB_VISIBILITIES: readonly ["all", "workspace", "private"];
|
|
48
|
+
type ListViewTabVisibility = (typeof LIST_VIEW_TAB_VISIBILITIES)[number];
|
|
71
49
|
/**
|
|
72
50
|
* Timestamps for tracking creation and updates
|
|
73
51
|
*/
|
|
@@ -148,6 +126,16 @@ interface ObjectAttribute {
|
|
|
148
126
|
interface ObjectRecord<TValues extends Record<string, unknown> = Record<string, unknown>> extends Timestamps {
|
|
149
127
|
id: Uuid;
|
|
150
128
|
objectId: Uuid;
|
|
129
|
+
/**
|
|
130
|
+
* Name of the owning object. Present on every row read through the repository
|
|
131
|
+
* (`object_records.object_name` is denormalized and always selected), absent
|
|
132
|
+
* on records built in memory before a write.
|
|
133
|
+
*/
|
|
134
|
+
objectName?: string;
|
|
135
|
+
/** Workspace-wide or owner-private visibility enforced by repository queries. */
|
|
136
|
+
visibility: ResourceVisibility;
|
|
137
|
+
/** Owning actor for private records; always null for workspace records. */
|
|
138
|
+
ownedBy: Uuid | null;
|
|
151
139
|
/**
|
|
152
140
|
* Display label computed from the object's labelExpression.
|
|
153
141
|
* Computed dynamically based on record values.
|
|
@@ -192,6 +180,8 @@ interface ObjectRecord<TValues extends Record<string, unknown> = Record<string,
|
|
|
192
180
|
* Optional for backward compatibility with existing records.
|
|
193
181
|
*/
|
|
194
182
|
lastUpdatedBy?: string;
|
|
183
|
+
/** Storage-managed exact optimistic-lock token for atomic record writes. */
|
|
184
|
+
writeVersion?: number;
|
|
195
185
|
/** Schema version at the time this record was last migrated */
|
|
196
186
|
schemaVersion: number;
|
|
197
187
|
}
|
|
@@ -211,7 +201,7 @@ interface ObjectRecord<TValues extends Record<string, unknown> = Record<string,
|
|
|
211
201
|
* }
|
|
212
202
|
* ```
|
|
213
203
|
*/
|
|
214
|
-
declare const SYSTEM_FIELD_NAMES: readonly ["id", "createdAt", "updatedAt", "createdBy", "lastUpdatedBy"];
|
|
204
|
+
declare const SYSTEM_FIELD_NAMES: readonly ["id", "createdAt", "updatedAt", "createdBy", "lastUpdatedBy", "visibility", "ownedBy"];
|
|
215
205
|
/**
|
|
216
206
|
* Type for system field names
|
|
217
207
|
*/
|
|
@@ -221,7 +211,7 @@ type SystemFieldName = (typeof SYSTEM_FIELD_NAMES)[number];
|
|
|
221
211
|
* These names conflict with ObjectRecord properties.
|
|
222
212
|
*
|
|
223
213
|
* Includes:
|
|
224
|
-
* - System fields (id,
|
|
214
|
+
* - System fields (id, timestamps, actor audit fields, visibility, ownership)
|
|
225
215
|
* - Other ObjectRecord properties (objectId, label, values, metadata, deletedAt)
|
|
226
216
|
*
|
|
227
217
|
* @example
|
|
@@ -231,7 +221,7 @@ type SystemFieldName = (typeof SYSTEM_FIELD_NAMES)[number];
|
|
|
231
221
|
* }
|
|
232
222
|
* ```
|
|
233
223
|
*/
|
|
234
|
-
declare const RESERVED_ATTRIBUTE_NAMES: readonly ["id", "createdAt", "updatedAt", "createdBy", "lastUpdatedBy", "objectId", "label", "embeddingText", "values", "metadata", "deletedAt", "deletedBy", "schemaVersion"];
|
|
224
|
+
declare const RESERVED_ATTRIBUTE_NAMES: readonly ["id", "createdAt", "updatedAt", "createdBy", "lastUpdatedBy", "visibility", "ownedBy", "objectId", "label", "embeddingText", "values", "metadata", "deletedAt", "deletedBy", "schemaVersion", "owned_by"];
|
|
235
225
|
/**
|
|
236
226
|
* Type for reserved attribute names
|
|
237
227
|
*/
|
|
@@ -243,74 +233,4 @@ type ReservedAttributeName = (typeof RESERVED_ATTRIBUTE_NAMES)[number];
|
|
|
243
233
|
declare const RESERVED_OBJECT_NAMES: readonly ["skill"];
|
|
244
234
|
type ReservedObjectName = (typeof RESERVED_OBJECT_NAMES)[number];
|
|
245
235
|
|
|
246
|
-
|
|
247
|
-
* Create a Zod schema for any attribute type.
|
|
248
|
-
* Returns a strict validator that does NOT handle optional fields.
|
|
249
|
-
* Use createFormAttributeValidator for form validation with optional support.
|
|
250
|
-
*
|
|
251
|
-
* @param attr - The attribute to create a validator for
|
|
252
|
-
* @param messages - Custom validation messages for i18n support
|
|
253
|
-
*/
|
|
254
|
-
declare function createAttributeValidator(attr: Attribute, messages?: ValidationMessages): z.ZodTypeAny;
|
|
255
|
-
/**
|
|
256
|
-
* Create a Zod schema for form validation.
|
|
257
|
-
* - Normalizes empty values (empty strings, empty objects) to null for optional fields
|
|
258
|
-
* - Accepts custom messages for i18n support
|
|
259
|
-
*
|
|
260
|
-
* Use this in UI forms where optional fields may have null/undefined values.
|
|
261
|
-
*
|
|
262
|
-
* @param attr - The attribute to create a validator for
|
|
263
|
-
* @param messages - Custom validation messages for i18n support
|
|
264
|
-
*/
|
|
265
|
-
declare function createFormAttributeValidator(attr: Attribute, messages?: ValidationMessages): z.ZodTypeAny;
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
* Validate data against an attribute schema
|
|
269
|
-
*/
|
|
270
|
-
declare function validateAttribute(attr: Attribute, value: unknown): ValidationResult;
|
|
271
|
-
/**
|
|
272
|
-
* Validate data against an object schema
|
|
273
|
-
*/
|
|
274
|
-
declare function validateObject(objectDef: ObjectDefinition, data: Record<string, unknown>): ValidationResult;
|
|
275
|
-
/**
|
|
276
|
-
* Validate and throw if invalid.
|
|
277
|
-
*
|
|
278
|
-
* Throws `ValidationError` (code `SCHEMA_VALIDATION_FAILED`) on failure so HTTP
|
|
279
|
-
* adapters can map it to 400. Generic `Error` would bubble up to a 500.
|
|
280
|
-
*/
|
|
281
|
-
declare function validateObjectOrThrow(objectDef: ObjectDefinition, data: Record<string, unknown>): Record<string, unknown>;
|
|
282
|
-
/**
|
|
283
|
-
* Validate data in draft mode.
|
|
284
|
-
* - All attributes are treated as optional (no required validation)
|
|
285
|
-
* - Provided values are still validated for format/type correctness
|
|
286
|
-
*/
|
|
287
|
-
declare function validateDraft(objectDef: ObjectDefinition, data: Record<string, unknown>): ValidationResult;
|
|
288
|
-
/**
|
|
289
|
-
* Validate draft data and throw if format validation fails.
|
|
290
|
-
*
|
|
291
|
-
* Same contract as `validateObjectOrThrow` but skips `required()` checks.
|
|
292
|
-
* Throws `ValidationError` so HTTP adapters map it to 400.
|
|
293
|
-
*/
|
|
294
|
-
declare function validateDraftOrThrow(objectDef: ObjectDefinition, data: Record<string, unknown>): Record<string, unknown>;
|
|
295
|
-
/**
|
|
296
|
-
* Throw a `ValidationError` when `data` contains keys that do not correspond
|
|
297
|
-
* to any attribute declared on `objectDef`.
|
|
298
|
-
*
|
|
299
|
-
* Call this on **client-supplied input** before Zod validation so the error
|
|
300
|
-
* message clearly names every offending key. Do NOT call on merged data that
|
|
301
|
-
* includes existing record values — older records may legitimately carry stale
|
|
302
|
-
* keys that predate this guard (see issue #658).
|
|
303
|
-
*
|
|
304
|
-
* Maps to HTTP 400 via `SchemaExceptionFilter` (code SCHEMA_VALIDATION_FAILED).
|
|
305
|
-
*/
|
|
306
|
-
declare function rejectUnknownAttributesOrThrow(objectDef: ObjectDefinition, data: Record<string, unknown>): void;
|
|
307
|
-
/**
|
|
308
|
-
* Get the list of required attributes that are missing values.
|
|
309
|
-
*/
|
|
310
|
-
declare function getMissingRequiredAttributes(objectDef: ObjectDefinition, data: Record<string, unknown>): Attribute[];
|
|
311
|
-
/**
|
|
312
|
-
* Check if a record is complete (all required attributes have valid values).
|
|
313
|
-
*/
|
|
314
|
-
declare function isRecordComplete(objectDef: ObjectDefinition, data: Record<string, unknown>): boolean;
|
|
315
|
-
|
|
316
|
-
export { type BuiltInTransform as B, type DocumentLayout as D, type FolderPreset as F, type MigrationDefinition as M, type ObjectDefinition as O, type PresetNode as P, RESERVED_ATTRIBUTE_NAMES as R, type SchemaOperation as S, type Timestamps as T, validateDraftOrThrow as a, validateObject as b, createFormAttributeValidator as c, validateObjectOrThrow as d, createAttributeValidator as e, validateAttribute as f, getMissingRequiredAttributes as g, type DocumentLayoutVariant as h, isRecordComplete as i, MAX_PRESET_DEPTH as j, type ObjectAttribute as k, type ObjectRecord as l, RESERVED_OBJECT_NAMES as m, type ReservedAttributeName as n, type ReservedObjectName as o, SYSTEM_FIELD_NAMES as p, type SystemFieldName as q, rejectUnknownAttributesOrThrow as r, validateDraft as v };
|
|
236
|
+
export { type DocumentLayout as D, type FolderPreset as F, type ListViewTabVisibility as L, MAX_PRESET_DEPTH as M, type ObjectDefinition as O, type PresetNode as P, type ResourceVisibility as R, SYSTEM_FIELD_NAMES as S, type Timestamps as T, type ObjectRecord as a, type DocumentLayoutVariant as b, LIST_VIEW_TAB_VISIBILITIES as c, type ObjectAttribute as d, RESERVED_ATTRIBUTE_NAMES as e, RESERVED_OBJECT_NAMES as f, RESOURCE_VISIBILITIES as g, type ReservedAttributeName as h, type ReservedObjectName as i, type SystemFieldName as j };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { A as Attribute, g as AttributeType, h as ComputedAttributeState } from './attributes-DCgZhISp.mjs';
|
|
3
|
-
import { V as ValidationMessages, a as ValidationResult } from './types-15lGDPlN.mjs';
|
|
4
1
|
import { IconName } from '@stndrds/constants';
|
|
2
|
+
import { h as ComputedAttributeState, A as Attribute } from './attributes-lBLiOIY3.mjs';
|
|
5
3
|
import { Uuid } from './utils.mjs';
|
|
4
|
+
import { M as MigrationDefinition } from './migrations-BXd2ZGfM.mjs';
|
|
6
5
|
|
|
7
6
|
interface DocumentLayout {
|
|
8
7
|
/** Named sub-folders auto-created at the top of the record's drive when first used via attach --variant. */
|
|
@@ -32,42 +31,21 @@ interface PresetNode {
|
|
|
32
31
|
/** Max depth allowed for preset.structure to keep instantiation predictable. */
|
|
33
32
|
declare const MAX_PRESET_DEPTH = 5;
|
|
34
33
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
from: AttributeType;
|
|
51
|
-
to: AttributeType;
|
|
52
|
-
transform?: BuiltInTransform;
|
|
53
|
-
} | {
|
|
54
|
-
type: "update_config";
|
|
55
|
-
name: string;
|
|
56
|
-
from: Partial<Record<string, unknown>>;
|
|
57
|
-
to: Partial<Record<string, unknown>>;
|
|
58
|
-
} | {
|
|
59
|
-
type: "remove_object";
|
|
60
|
-
backup: Record<string, unknown>;
|
|
61
|
-
} | {
|
|
62
|
-
type: "rename_object";
|
|
63
|
-
from: string;
|
|
64
|
-
to: string;
|
|
65
|
-
};
|
|
66
|
-
interface MigrationDefinition {
|
|
67
|
-
version: number;
|
|
68
|
-
operations: SchemaOperation[];
|
|
69
|
-
}
|
|
70
|
-
|
|
34
|
+
/** Visibility scopes shared by resources that can be workspace-wide or actor-private. */
|
|
35
|
+
declare const RESOURCE_VISIBILITIES: readonly ["workspace", "private"];
|
|
36
|
+
type ResourceVisibility = (typeof RESOURCE_VISIBILITIES)[number];
|
|
37
|
+
/**
|
|
38
|
+
* Scope a list-view tab reads. Deliberately a SEPARATE union from
|
|
39
|
+
* {@link ResourceVisibility}: a stored resource is always exactly one of
|
|
40
|
+
* `workspace` or `private`, while a tab may also read across both.
|
|
41
|
+
*
|
|
42
|
+
* `all` is not a third resource state — it means "impose no scope", so the tab
|
|
43
|
+
* returns whatever the mandatory viewer predicate already allows: every
|
|
44
|
+
* workspace record plus the viewer's own private ones. Never assign an `all`
|
|
45
|
+
* tab scope to a record's `visibility` column.
|
|
46
|
+
*/
|
|
47
|
+
declare const LIST_VIEW_TAB_VISIBILITIES: readonly ["all", "workspace", "private"];
|
|
48
|
+
type ListViewTabVisibility = (typeof LIST_VIEW_TAB_VISIBILITIES)[number];
|
|
71
49
|
/**
|
|
72
50
|
* Timestamps for tracking creation and updates
|
|
73
51
|
*/
|
|
@@ -148,6 +126,16 @@ interface ObjectAttribute {
|
|
|
148
126
|
interface ObjectRecord<TValues extends Record<string, unknown> = Record<string, unknown>> extends Timestamps {
|
|
149
127
|
id: Uuid;
|
|
150
128
|
objectId: Uuid;
|
|
129
|
+
/**
|
|
130
|
+
* Name of the owning object. Present on every row read through the repository
|
|
131
|
+
* (`object_records.object_name` is denormalized and always selected), absent
|
|
132
|
+
* on records built in memory before a write.
|
|
133
|
+
*/
|
|
134
|
+
objectName?: string;
|
|
135
|
+
/** Workspace-wide or owner-private visibility enforced by repository queries. */
|
|
136
|
+
visibility: ResourceVisibility;
|
|
137
|
+
/** Owning actor for private records; always null for workspace records. */
|
|
138
|
+
ownedBy: Uuid | null;
|
|
151
139
|
/**
|
|
152
140
|
* Display label computed from the object's labelExpression.
|
|
153
141
|
* Computed dynamically based on record values.
|
|
@@ -192,6 +180,8 @@ interface ObjectRecord<TValues extends Record<string, unknown> = Record<string,
|
|
|
192
180
|
* Optional for backward compatibility with existing records.
|
|
193
181
|
*/
|
|
194
182
|
lastUpdatedBy?: string;
|
|
183
|
+
/** Storage-managed exact optimistic-lock token for atomic record writes. */
|
|
184
|
+
writeVersion?: number;
|
|
195
185
|
/** Schema version at the time this record was last migrated */
|
|
196
186
|
schemaVersion: number;
|
|
197
187
|
}
|
|
@@ -211,7 +201,7 @@ interface ObjectRecord<TValues extends Record<string, unknown> = Record<string,
|
|
|
211
201
|
* }
|
|
212
202
|
* ```
|
|
213
203
|
*/
|
|
214
|
-
declare const SYSTEM_FIELD_NAMES: readonly ["id", "createdAt", "updatedAt", "createdBy", "lastUpdatedBy"];
|
|
204
|
+
declare const SYSTEM_FIELD_NAMES: readonly ["id", "createdAt", "updatedAt", "createdBy", "lastUpdatedBy", "visibility", "ownedBy"];
|
|
215
205
|
/**
|
|
216
206
|
* Type for system field names
|
|
217
207
|
*/
|
|
@@ -221,7 +211,7 @@ type SystemFieldName = (typeof SYSTEM_FIELD_NAMES)[number];
|
|
|
221
211
|
* These names conflict with ObjectRecord properties.
|
|
222
212
|
*
|
|
223
213
|
* Includes:
|
|
224
|
-
* - System fields (id,
|
|
214
|
+
* - System fields (id, timestamps, actor audit fields, visibility, ownership)
|
|
225
215
|
* - Other ObjectRecord properties (objectId, label, values, metadata, deletedAt)
|
|
226
216
|
*
|
|
227
217
|
* @example
|
|
@@ -231,7 +221,7 @@ type SystemFieldName = (typeof SYSTEM_FIELD_NAMES)[number];
|
|
|
231
221
|
* }
|
|
232
222
|
* ```
|
|
233
223
|
*/
|
|
234
|
-
declare const RESERVED_ATTRIBUTE_NAMES: readonly ["id", "createdAt", "updatedAt", "createdBy", "lastUpdatedBy", "objectId", "label", "embeddingText", "values", "metadata", "deletedAt", "deletedBy", "schemaVersion"];
|
|
224
|
+
declare const RESERVED_ATTRIBUTE_NAMES: readonly ["id", "createdAt", "updatedAt", "createdBy", "lastUpdatedBy", "visibility", "ownedBy", "objectId", "label", "embeddingText", "values", "metadata", "deletedAt", "deletedBy", "schemaVersion", "owned_by"];
|
|
235
225
|
/**
|
|
236
226
|
* Type for reserved attribute names
|
|
237
227
|
*/
|
|
@@ -243,74 +233,4 @@ type ReservedAttributeName = (typeof RESERVED_ATTRIBUTE_NAMES)[number];
|
|
|
243
233
|
declare const RESERVED_OBJECT_NAMES: readonly ["skill"];
|
|
244
234
|
type ReservedObjectName = (typeof RESERVED_OBJECT_NAMES)[number];
|
|
245
235
|
|
|
246
|
-
|
|
247
|
-
* Create a Zod schema for any attribute type.
|
|
248
|
-
* Returns a strict validator that does NOT handle optional fields.
|
|
249
|
-
* Use createFormAttributeValidator for form validation with optional support.
|
|
250
|
-
*
|
|
251
|
-
* @param attr - The attribute to create a validator for
|
|
252
|
-
* @param messages - Custom validation messages for i18n support
|
|
253
|
-
*/
|
|
254
|
-
declare function createAttributeValidator(attr: Attribute, messages?: ValidationMessages): z.ZodTypeAny;
|
|
255
|
-
/**
|
|
256
|
-
* Create a Zod schema for form validation.
|
|
257
|
-
* - Normalizes empty values (empty strings, empty objects) to null for optional fields
|
|
258
|
-
* - Accepts custom messages for i18n support
|
|
259
|
-
*
|
|
260
|
-
* Use this in UI forms where optional fields may have null/undefined values.
|
|
261
|
-
*
|
|
262
|
-
* @param attr - The attribute to create a validator for
|
|
263
|
-
* @param messages - Custom validation messages for i18n support
|
|
264
|
-
*/
|
|
265
|
-
declare function createFormAttributeValidator(attr: Attribute, messages?: ValidationMessages): z.ZodTypeAny;
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
* Validate data against an attribute schema
|
|
269
|
-
*/
|
|
270
|
-
declare function validateAttribute(attr: Attribute, value: unknown): ValidationResult;
|
|
271
|
-
/**
|
|
272
|
-
* Validate data against an object schema
|
|
273
|
-
*/
|
|
274
|
-
declare function validateObject(objectDef: ObjectDefinition, data: Record<string, unknown>): ValidationResult;
|
|
275
|
-
/**
|
|
276
|
-
* Validate and throw if invalid.
|
|
277
|
-
*
|
|
278
|
-
* Throws `ValidationError` (code `SCHEMA_VALIDATION_FAILED`) on failure so HTTP
|
|
279
|
-
* adapters can map it to 400. Generic `Error` would bubble up to a 500.
|
|
280
|
-
*/
|
|
281
|
-
declare function validateObjectOrThrow(objectDef: ObjectDefinition, data: Record<string, unknown>): Record<string, unknown>;
|
|
282
|
-
/**
|
|
283
|
-
* Validate data in draft mode.
|
|
284
|
-
* - All attributes are treated as optional (no required validation)
|
|
285
|
-
* - Provided values are still validated for format/type correctness
|
|
286
|
-
*/
|
|
287
|
-
declare function validateDraft(objectDef: ObjectDefinition, data: Record<string, unknown>): ValidationResult;
|
|
288
|
-
/**
|
|
289
|
-
* Validate draft data and throw if format validation fails.
|
|
290
|
-
*
|
|
291
|
-
* Same contract as `validateObjectOrThrow` but skips `required()` checks.
|
|
292
|
-
* Throws `ValidationError` so HTTP adapters map it to 400.
|
|
293
|
-
*/
|
|
294
|
-
declare function validateDraftOrThrow(objectDef: ObjectDefinition, data: Record<string, unknown>): Record<string, unknown>;
|
|
295
|
-
/**
|
|
296
|
-
* Throw a `ValidationError` when `data` contains keys that do not correspond
|
|
297
|
-
* to any attribute declared on `objectDef`.
|
|
298
|
-
*
|
|
299
|
-
* Call this on **client-supplied input** before Zod validation so the error
|
|
300
|
-
* message clearly names every offending key. Do NOT call on merged data that
|
|
301
|
-
* includes existing record values — older records may legitimately carry stale
|
|
302
|
-
* keys that predate this guard (see issue #658).
|
|
303
|
-
*
|
|
304
|
-
* Maps to HTTP 400 via `SchemaExceptionFilter` (code SCHEMA_VALIDATION_FAILED).
|
|
305
|
-
*/
|
|
306
|
-
declare function rejectUnknownAttributesOrThrow(objectDef: ObjectDefinition, data: Record<string, unknown>): void;
|
|
307
|
-
/**
|
|
308
|
-
* Get the list of required attributes that are missing values.
|
|
309
|
-
*/
|
|
310
|
-
declare function getMissingRequiredAttributes(objectDef: ObjectDefinition, data: Record<string, unknown>): Attribute[];
|
|
311
|
-
/**
|
|
312
|
-
* Check if a record is complete (all required attributes have valid values).
|
|
313
|
-
*/
|
|
314
|
-
declare function isRecordComplete(objectDef: ObjectDefinition, data: Record<string, unknown>): boolean;
|
|
315
|
-
|
|
316
|
-
export { type BuiltInTransform as B, type DocumentLayout as D, type FolderPreset as F, type MigrationDefinition as M, type ObjectDefinition as O, type PresetNode as P, RESERVED_ATTRIBUTE_NAMES as R, type SchemaOperation as S, type Timestamps as T, validateDraftOrThrow as a, validateObject as b, createFormAttributeValidator as c, validateObjectOrThrow as d, createAttributeValidator as e, validateAttribute as f, getMissingRequiredAttributes as g, type DocumentLayoutVariant as h, isRecordComplete as i, MAX_PRESET_DEPTH as j, type ObjectAttribute as k, type ObjectRecord as l, RESERVED_OBJECT_NAMES as m, type ReservedAttributeName as n, type ReservedObjectName as o, SYSTEM_FIELD_NAMES as p, type SystemFieldName as q, rejectUnknownAttributesOrThrow as r, validateDraft as v };
|
|
236
|
+
export { type DocumentLayout as D, type FolderPreset as F, type ListViewTabVisibility as L, MAX_PRESET_DEPTH as M, type ObjectDefinition as O, type PresetNode as P, type ResourceVisibility as R, SYSTEM_FIELD_NAMES as S, type Timestamps as T, type ObjectRecord as a, type DocumentLayoutVariant as b, LIST_VIEW_TAB_VISIBILITIES as c, type ObjectAttribute as d, RESERVED_ATTRIBUTE_NAMES as e, RESERVED_OBJECT_NAMES as f, RESOURCE_VISIBILITIES as g, type ReservedAttributeName as h, type ReservedObjectName as i, type SystemFieldName as j };
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
export { V as ValidationMessages } from '../types-
|
|
1
|
+
export { V as ValidationMessages } from '../types-DNz3ITS-.mjs';
|
|
2
2
|
export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './core/index.mjs';
|
|
3
|
-
export { parseAttributeConfig } from '
|
|
4
|
-
export {
|
|
5
|
-
|
|
3
|
+
export { ce as multiselectOptionWriteSchema, cf as parseAttributeConfig, cg as parseAttributeConfigForCreate, ch as parseAttributeConfigForUpdate, ci as selectOptionWriteSchema, cj as statusGroupSchema, ck as statusOptionWriteSchema } from '../index-DtxtOBYT.mjs';
|
|
4
|
+
export { S as SCHEMA_LIMITS, c as colorIdSchema, d as detailTabSchema, a as detailViewConfigSchema, i as iconNameSchema, b as inverseSourceSchema, l as listViewConfigSchema, e as listViewTabSchema, p as parseViewConfig, r as relationSourceSchema, t as tableSourceSchema, v as viewConfigByTypeSchema } from '../all-D5zeUllO.mjs';
|
|
5
|
+
export { a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, b as validateDraft, d as validateDraftOrThrow, e as validateObject, f as validateObjectOrThrow } from '../helpers-C1VVEAOO.mjs';
|
|
6
|
+
import '../attributes-lBLiOIY3.mjs';
|
|
6
7
|
import '@stndrds/constants';
|
|
7
8
|
import '../utils.mjs';
|
|
8
9
|
import 'zod';
|
|
10
|
+
import '../objects-BCaBw2ef.mjs';
|
|
11
|
+
import '../migrations-BXd2ZGfM.mjs';
|
package/dist/validation/all.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
export { V as ValidationMessages } from '../types-
|
|
1
|
+
export { V as ValidationMessages } from '../types-DqLi1tx1.js';
|
|
2
2
|
export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './core/index.js';
|
|
3
|
-
export { parseAttributeConfig } from '
|
|
4
|
-
export {
|
|
5
|
-
|
|
3
|
+
export { ce as multiselectOptionWriteSchema, cf as parseAttributeConfig, cg as parseAttributeConfigForCreate, ch as parseAttributeConfigForUpdate, ci as selectOptionWriteSchema, cj as statusGroupSchema, ck as statusOptionWriteSchema } from '../index-Bq1KrQkR.js';
|
|
4
|
+
export { S as SCHEMA_LIMITS, c as colorIdSchema, d as detailTabSchema, a as detailViewConfigSchema, i as iconNameSchema, b as inverseSourceSchema, l as listViewConfigSchema, e as listViewTabSchema, p as parseViewConfig, r as relationSourceSchema, t as tableSourceSchema, v as viewConfigByTypeSchema } from '../all--B2_3ksI.js';
|
|
5
|
+
export { a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, b as validateDraft, d as validateDraftOrThrow, e as validateObject, f as validateObjectOrThrow } from '../helpers-vQ6kp8ET.js';
|
|
6
|
+
import '../attributes-_b3Db8vT.js';
|
|
6
7
|
import '@stndrds/constants';
|
|
7
8
|
import '../utils.js';
|
|
8
9
|
import 'zod';
|
|
10
|
+
import '../objects-A1ED9af-.js';
|
|
11
|
+
import '../migrations-DcuJZ8qO.js';
|
package/dist/validation/all.js
CHANGED
|
@@ -1,52 +1,125 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('../chunk-
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
require('../chunk-
|
|
7
|
-
require('../chunk-YIP5FJ5H.js');
|
|
8
|
-
require('../chunk-QAF3HNKQ.js');
|
|
3
|
+
var chunk6ZDH3EJA_js = require('../chunk-6ZDH3EJA.js');
|
|
4
|
+
var chunkQN2N3IJZ_js = require('../chunk-QN2N3IJZ.js');
|
|
5
|
+
var chunkV6Q7HCA7_js = require('../chunk-V6Q7HCA7.js');
|
|
6
|
+
require('../chunk-EW5XR2X3.js');
|
|
9
7
|
require('../chunk-QWKLQRBX.js');
|
|
10
8
|
require('../chunk-KNGWHQLR.js');
|
|
11
9
|
require('../chunk-HTSTPTNZ.js');
|
|
12
10
|
require('../chunk-V2UA2D4E.js');
|
|
13
11
|
require('../chunk-5WATIVCA.js');
|
|
12
|
+
require('../chunk-SI34M4IC.js');
|
|
13
|
+
require('../chunk-YIP5FJ5H.js');
|
|
14
|
+
require('../chunk-ZPFOKBIN.js');
|
|
15
|
+
require('../chunk-FDIAOFHS.js');
|
|
14
16
|
require('../chunk-ACKMC6FL.js');
|
|
15
17
|
require('../chunk-E6JUYGJX.js');
|
|
16
|
-
require('../chunk-
|
|
18
|
+
require('../chunk-Q4SZAMJT.js');
|
|
17
19
|
require('../chunk-EEH4XQ7W.js');
|
|
18
|
-
require('../chunk-EW5XR2X3.js');
|
|
19
20
|
var chunkYKWSHBT5_js = require('../chunk-YKWSHBT5.js');
|
|
20
21
|
|
|
21
22
|
|
|
22
23
|
|
|
24
|
+
Object.defineProperty(exports, "detailTabSchema", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () { return chunk6ZDH3EJA_js.detailTabSchema; }
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(exports, "detailViewConfigSchema", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function () { return chunk6ZDH3EJA_js.detailViewConfigSchema; }
|
|
31
|
+
});
|
|
32
|
+
Object.defineProperty(exports, "inverseSourceSchema", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () { return chunk6ZDH3EJA_js.inverseSourceSchema; }
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "listViewConfigSchema", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () { return chunk6ZDH3EJA_js.listViewConfigSchema; }
|
|
39
|
+
});
|
|
40
|
+
Object.defineProperty(exports, "listViewTabSchema", {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
get: function () { return chunk6ZDH3EJA_js.listViewTabSchema; }
|
|
43
|
+
});
|
|
44
|
+
Object.defineProperty(exports, "parseViewConfig", {
|
|
45
|
+
enumerable: true,
|
|
46
|
+
get: function () { return chunk6ZDH3EJA_js.parseViewConfig; }
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "relationSourceSchema", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () { return chunk6ZDH3EJA_js.relationSourceSchema; }
|
|
51
|
+
});
|
|
52
|
+
Object.defineProperty(exports, "tableSourceSchema", {
|
|
53
|
+
enumerable: true,
|
|
54
|
+
get: function () { return chunk6ZDH3EJA_js.tableSourceSchema; }
|
|
55
|
+
});
|
|
56
|
+
Object.defineProperty(exports, "viewConfigByTypeSchema", {
|
|
57
|
+
enumerable: true,
|
|
58
|
+
get: function () { return chunk6ZDH3EJA_js.viewConfigByTypeSchema; }
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "SCHEMA_LIMITS", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () { return chunkQN2N3IJZ_js.SCHEMA_LIMITS; }
|
|
63
|
+
});
|
|
64
|
+
Object.defineProperty(exports, "colorIdSchema", {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
get: function () { return chunkQN2N3IJZ_js.colorIdSchema; }
|
|
67
|
+
});
|
|
68
|
+
Object.defineProperty(exports, "iconNameSchema", {
|
|
69
|
+
enumerable: true,
|
|
70
|
+
get: function () { return chunkQN2N3IJZ_js.iconNameSchema; }
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(exports, "multiselectOptionWriteSchema", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function () { return chunkQN2N3IJZ_js.multiselectOptionWriteSchema; }
|
|
75
|
+
});
|
|
23
76
|
Object.defineProperty(exports, "parseAttributeConfig", {
|
|
24
77
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkQN2N3IJZ_js.parseAttributeConfig; }
|
|
79
|
+
});
|
|
80
|
+
Object.defineProperty(exports, "parseAttributeConfigForCreate", {
|
|
81
|
+
enumerable: true,
|
|
82
|
+
get: function () { return chunkQN2N3IJZ_js.parseAttributeConfigForCreate; }
|
|
83
|
+
});
|
|
84
|
+
Object.defineProperty(exports, "parseAttributeConfigForUpdate", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function () { return chunkQN2N3IJZ_js.parseAttributeConfigForUpdate; }
|
|
87
|
+
});
|
|
88
|
+
Object.defineProperty(exports, "selectOptionWriteSchema", {
|
|
89
|
+
enumerable: true,
|
|
90
|
+
get: function () { return chunkQN2N3IJZ_js.selectOptionWriteSchema; }
|
|
91
|
+
});
|
|
92
|
+
Object.defineProperty(exports, "statusGroupSchema", {
|
|
93
|
+
enumerable: true,
|
|
94
|
+
get: function () { return chunkQN2N3IJZ_js.statusGroupSchema; }
|
|
95
|
+
});
|
|
96
|
+
Object.defineProperty(exports, "statusOptionWriteSchema", {
|
|
97
|
+
enumerable: true,
|
|
98
|
+
get: function () { return chunkQN2N3IJZ_js.statusOptionWriteSchema; }
|
|
26
99
|
});
|
|
27
100
|
Object.defineProperty(exports, "createFormAttributeValidator", {
|
|
28
101
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkV6Q7HCA7_js.createFormAttributeValidator; }
|
|
30
103
|
});
|
|
31
104
|
Object.defineProperty(exports, "rejectUnknownAttributesOrThrow", {
|
|
32
105
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkV6Q7HCA7_js.rejectUnknownAttributesOrThrow; }
|
|
34
107
|
});
|
|
35
108
|
Object.defineProperty(exports, "validateDraft", {
|
|
36
109
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkV6Q7HCA7_js.validateDraft; }
|
|
38
111
|
});
|
|
39
112
|
Object.defineProperty(exports, "validateDraftOrThrow", {
|
|
40
113
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkV6Q7HCA7_js.validateDraftOrThrow; }
|
|
42
115
|
});
|
|
43
116
|
Object.defineProperty(exports, "validateObject", {
|
|
44
117
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkV6Q7HCA7_js.validateObject; }
|
|
46
119
|
});
|
|
47
120
|
Object.defineProperty(exports, "validateObjectOrThrow", {
|
|
48
121
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunkV6Q7HCA7_js.validateObjectOrThrow; }
|
|
50
123
|
});
|
|
51
124
|
Object.defineProperty(exports, "DEFAULT_VALIDATION_MESSAGES", {
|
|
52
125
|
enumerable: true,
|