@stndrds/schema 1.0.0-alpha.183 → 1.0.0-alpha.185

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/index.d.mts CHANGED
@@ -6375,7 +6375,7 @@ declare const formRegistry: FormRegistry;
6375
6375
  * Event types emitted by write paths.
6376
6376
  * New types are added as handlers are implemented.
6377
6377
  */
6378
- type EventType = "record.created" | "record.updated" | "record.deleted" | "record.restored" | "form.submitted" | "meili.settings.refresh";
6378
+ type EventType = "record.created" | "record.updated" | "record.deleted" | "record.restored" | "form.submitted" | "schema.attribute.created" | "schema.attribute.updated" | "schema.attribute.deleted" | "schema.object.created" | "schema.object.deleted" | "tenant.created";
6379
6379
  /**
6380
6380
  * Typed payload map — each event type has a specific data shape.
6381
6381
  */
@@ -6419,13 +6419,52 @@ interface EventDataMap {
6419
6419
  stepValues: Record<string, Record<string, unknown>>;
6420
6420
  };
6421
6421
  /**
6422
- * Phase 6 — request a refresh of the Meilisearch index settings for a tenant.
6423
- * Emitted by schema mutations (attribute add/update/delete) so the search
6424
- * adapter can recompute sortableAttributes from the live schema without a
6425
- * full reindex.
6422
+ * Emitted after a custom attribute is added to an object. Triggers the
6423
+ * unified `SchemaSyncHandler` which converges the search index settings
6424
+ * (filterable/sortable/searchable) to the live schema.
6426
6425
  */
6427
- "meili.settings.refresh": {
6428
- /** Tenant whose Meili index should be reconfigured. */
6426
+ "schema.attribute.created": {
6427
+ objectId: string;
6428
+ attributeId: string;
6429
+ };
6430
+ /**
6431
+ * Emitted after an attribute mutation (label/required/config). The
6432
+ * `SchemaSyncHandler` reconciles index settings; downstream reindex is
6433
+ * handled separately by `ObjectSchemaService.updateObject` when needed.
6434
+ */
6435
+ "schema.attribute.updated": {
6436
+ objectId: string;
6437
+ attributeId: string;
6438
+ };
6439
+ /**
6440
+ * Emitted after a custom attribute is deleted from an object. Triggers
6441
+ * the unified `SchemaSyncHandler` to drop the attribute from the index
6442
+ * settings.
6443
+ */
6444
+ "schema.attribute.deleted": {
6445
+ objectId: string;
6446
+ attributeId: string;
6447
+ };
6448
+ /**
6449
+ * Emitted after a custom object is created. Triggers the unified
6450
+ * `SchemaSyncHandler` to provision per-tenant index settings.
6451
+ */
6452
+ "schema.object.created": {
6453
+ objectId: string;
6454
+ };
6455
+ /**
6456
+ * Emitted after a custom object is deleted. Triggers the unified
6457
+ * `SchemaSyncHandler` so the search adapter can clean up dangling settings.
6458
+ */
6459
+ "schema.object.deleted": {
6460
+ objectId: string;
6461
+ };
6462
+ /**
6463
+ * Emitted on initial provisioning of a tenant. Triggers the unified
6464
+ * `SchemaSyncHandler` to bootstrap the tenant's search index settings.
6465
+ */
6466
+ "tenant.created": {
6467
+ /** The tenant identifier (mirrors the envelope `tenantId` for convenience). */
6429
6468
  tenantId: string;
6430
6469
  };
6431
6470
  }
package/dist/index.d.ts CHANGED
@@ -6375,7 +6375,7 @@ declare const formRegistry: FormRegistry;
6375
6375
  * Event types emitted by write paths.
6376
6376
  * New types are added as handlers are implemented.
6377
6377
  */
6378
- type EventType = "record.created" | "record.updated" | "record.deleted" | "record.restored" | "form.submitted" | "meili.settings.refresh";
6378
+ type EventType = "record.created" | "record.updated" | "record.deleted" | "record.restored" | "form.submitted" | "schema.attribute.created" | "schema.attribute.updated" | "schema.attribute.deleted" | "schema.object.created" | "schema.object.deleted" | "tenant.created";
6379
6379
  /**
6380
6380
  * Typed payload map — each event type has a specific data shape.
6381
6381
  */
@@ -6419,13 +6419,52 @@ interface EventDataMap {
6419
6419
  stepValues: Record<string, Record<string, unknown>>;
6420
6420
  };
6421
6421
  /**
6422
- * Phase 6 — request a refresh of the Meilisearch index settings for a tenant.
6423
- * Emitted by schema mutations (attribute add/update/delete) so the search
6424
- * adapter can recompute sortableAttributes from the live schema without a
6425
- * full reindex.
6422
+ * Emitted after a custom attribute is added to an object. Triggers the
6423
+ * unified `SchemaSyncHandler` which converges the search index settings
6424
+ * (filterable/sortable/searchable) to the live schema.
6426
6425
  */
6427
- "meili.settings.refresh": {
6428
- /** Tenant whose Meili index should be reconfigured. */
6426
+ "schema.attribute.created": {
6427
+ objectId: string;
6428
+ attributeId: string;
6429
+ };
6430
+ /**
6431
+ * Emitted after an attribute mutation (label/required/config). The
6432
+ * `SchemaSyncHandler` reconciles index settings; downstream reindex is
6433
+ * handled separately by `ObjectSchemaService.updateObject` when needed.
6434
+ */
6435
+ "schema.attribute.updated": {
6436
+ objectId: string;
6437
+ attributeId: string;
6438
+ };
6439
+ /**
6440
+ * Emitted after a custom attribute is deleted from an object. Triggers
6441
+ * the unified `SchemaSyncHandler` to drop the attribute from the index
6442
+ * settings.
6443
+ */
6444
+ "schema.attribute.deleted": {
6445
+ objectId: string;
6446
+ attributeId: string;
6447
+ };
6448
+ /**
6449
+ * Emitted after a custom object is created. Triggers the unified
6450
+ * `SchemaSyncHandler` to provision per-tenant index settings.
6451
+ */
6452
+ "schema.object.created": {
6453
+ objectId: string;
6454
+ };
6455
+ /**
6456
+ * Emitted after a custom object is deleted. Triggers the unified
6457
+ * `SchemaSyncHandler` so the search adapter can clean up dangling settings.
6458
+ */
6459
+ "schema.object.deleted": {
6460
+ objectId: string;
6461
+ };
6462
+ /**
6463
+ * Emitted on initial provisioning of a tenant. Triggers the unified
6464
+ * `SchemaSyncHandler` to bootstrap the tenant's search index settings.
6465
+ */
6466
+ "tenant.created": {
6467
+ /** The tenant identifier (mirrors the envelope `tenantId` for convenience). */
6429
6468
  tenantId: string;
6430
6469
  };
6431
6470
  }
package/dist/index.js CHANGED
@@ -3,8 +3,7 @@
3
3
  var chunkFRCDMQER_js = require('./chunk-FRCDMQER.js');
4
4
  require('./chunk-PGERPYDR.js');
5
5
  var chunkYQROI4IE_js = require('./chunk-YQROI4IE.js');
6
- var chunk64R5X3DF_js = require('./chunk-64R5X3DF.js');
7
- require('./chunk-MAKSIK3P.js');
6
+ var chunkHG6EF4XD_js = require('./chunk-HG6EF4XD.js');
8
7
  require('./chunk-J5HRK3WD.js');
9
8
  require('./chunk-TKN73433.js');
10
9
  require('./chunk-D7WFIGXW.js');
@@ -14,6 +13,7 @@ require('./chunk-EZHMVZQ4.js');
14
13
  require('./chunk-VXOTYFEW.js');
15
14
  require('./chunk-OAQWRMTP.js');
16
15
  require('./chunk-ACQ3TUFK.js');
16
+ require('./chunk-MAKSIK3P.js');
17
17
  require('./chunk-DC7YYE3U.js');
18
18
  require('./chunk-ROAZLZA2.js');
19
19
  require('./chunk-CCB4OY2O.js');
@@ -1360,7 +1360,7 @@ var BaseAttributeBuilder = class {
1360
1360
  * @see https://standardschema.dev/
1361
1361
  */
1362
1362
  get "~standard"() {
1363
- const zodSchema = chunk64R5X3DF_js.createAttributeValidator(this.build());
1363
+ const zodSchema = chunkHG6EF4XD_js.createAttributeValidator(this.build());
1364
1364
  return createStandardSchemaProps(zodSchema);
1365
1365
  }
1366
1366
  constructor(type, name, label) {
@@ -2756,7 +2756,7 @@ var ObjectBuilder = class {
2756
2756
  * @see https://standardschema.dev/
2757
2757
  */
2758
2758
  get "~standard"() {
2759
- const zodSchema = chunk64R5X3DF_js.createObjectValidator(this.build());
2759
+ const zodSchema = chunkHG6EF4XD_js.createObjectValidator(this.build());
2760
2760
  return createStandardSchemaProps(zodSchema);
2761
2761
  }
2762
2762
  /**
@@ -5670,24 +5670,65 @@ function normalizeForEdgeRpc(op) {
5670
5670
 
5671
5671
  // src/filters/validation.ts
5672
5672
  var REFERENCE_TYPES = /* @__PURE__ */ new Set(["relation", "document", "user"]);
5673
+ var ID_LIKE_OPERATORS = [
5674
+ "eq",
5675
+ "neq",
5676
+ "is",
5677
+ "is_not",
5678
+ "any_of",
5679
+ "none_of",
5680
+ "is_empty",
5681
+ "is_not_empty"
5682
+ ];
5683
+ var SYSTEM_FILTER_OPERATORS = {
5684
+ // Identifier columns (uuid)
5685
+ id: ID_LIKE_OPERATORS,
5686
+ objectId: ID_LIKE_OPERATORS,
5687
+ tenantId: ID_LIKE_OPERATORS,
5688
+ // Free-form text and status columns share their counterpart's operator set
5689
+ label: OPERATORS_BY_TYPE.text,
5690
+ completionStatus: OPERATORS_BY_TYPE.status,
5691
+ // Date columns
5692
+ createdAt: OPERATORS_BY_TYPE.date,
5693
+ updatedAt: OPERATORS_BY_TYPE.date,
5694
+ deletedAt: OPERATORS_BY_TYPE.date,
5695
+ // User columns (uuid → actor identity)
5696
+ createdBy: OPERATORS_BY_TYPE.user,
5697
+ lastUpdatedBy: OPERATORS_BY_TYPE.user
5698
+ };
5673
5699
  function assertOperatorForType(operator, type, context) {
5674
5700
  const ops = OPERATORS_BY_TYPE[type];
5675
5701
  if (!ops?.includes(operator)) {
5676
- throw new ValidationError(`Operator ${operator} is not valid for ${context} type ${type}`, [
5702
+ const validList = ops?.length ? ops.join(", ") : "(no operators registered for this type)";
5703
+ const summary = `Operator "${operator}" is not valid for ${context} type "${type}". Valid operators: ${validList}.`;
5704
+ throw new ValidationError(summary, [
5677
5705
  {
5678
5706
  path: ["operator"],
5679
- message: `Operator ${operator} not valid for ${type}`
5707
+ message: summary
5680
5708
  }
5681
5709
  ]);
5682
5710
  }
5683
5711
  }
5684
5712
  function validateQualifiedRule(rule, context) {
5685
5713
  const rootAttr = context.attributes.find((a) => a.name === rule.attribute);
5686
- if (!rootAttr) {
5714
+ const systemOps = SYSTEM_FILTER_OPERATORS[rule.attribute];
5715
+ if (!(rootAttr || systemOps)) {
5687
5716
  throw new ValidationError(`Unknown attribute: ${rule.attribute}`, [
5688
5717
  { path: ["attribute"], message: `Unknown attribute: ${rule.attribute}` }
5689
5718
  ]);
5690
5719
  }
5720
+ if (!rootAttr) {
5721
+ if (rule.property) {
5722
+ throw new ValidationError(`Cannot qualify system attribute "${rule.attribute}"`, [
5723
+ { path: ["property"], message: `"${rule.attribute}" is a system column, not a reference` }
5724
+ ]);
5725
+ }
5726
+ if (!systemOps.includes(rule.operator)) {
5727
+ const summary = `Operator "${rule.operator}" is not valid for system attribute "${rule.attribute}". Valid operators: ${systemOps.join(", ")}.`;
5728
+ throw new ValidationError(summary, [{ path: ["operator"], message: summary }]);
5729
+ }
5730
+ return;
5731
+ }
5691
5732
  if (!rule.property) {
5692
5733
  if (rootAttr.type === "rollup") {
5693
5734
  return;
@@ -5742,27 +5783,27 @@ Object.defineProperty(exports, "parseAttributeConfig", {
5742
5783
  });
5743
5784
  Object.defineProperty(exports, "computeRecordStatus", {
5744
5785
  enumerable: true,
5745
- get: function () { return chunk64R5X3DF_js.computeRecordStatus; }
5786
+ get: function () { return chunkHG6EF4XD_js.computeRecordStatus; }
5746
5787
  });
5747
5788
  Object.defineProperty(exports, "createFormAttributeValidator", {
5748
5789
  enumerable: true,
5749
- get: function () { return chunk64R5X3DF_js.createFormAttributeValidator; }
5790
+ get: function () { return chunkHG6EF4XD_js.createFormAttributeValidator; }
5750
5791
  });
5751
5792
  Object.defineProperty(exports, "validateDraft", {
5752
5793
  enumerable: true,
5753
- get: function () { return chunk64R5X3DF_js.validateDraft; }
5794
+ get: function () { return chunkHG6EF4XD_js.validateDraft; }
5754
5795
  });
5755
5796
  Object.defineProperty(exports, "validateDraftOrThrow", {
5756
5797
  enumerable: true,
5757
- get: function () { return chunk64R5X3DF_js.validateDraftOrThrow; }
5798
+ get: function () { return chunkHG6EF4XD_js.validateDraftOrThrow; }
5758
5799
  });
5759
5800
  Object.defineProperty(exports, "validateObject", {
5760
5801
  enumerable: true,
5761
- get: function () { return chunk64R5X3DF_js.validateObject; }
5802
+ get: function () { return chunkHG6EF4XD_js.validateObject; }
5762
5803
  });
5763
5804
  Object.defineProperty(exports, "validateObjectOrThrow", {
5764
5805
  enumerable: true,
5765
- get: function () { return chunk64R5X3DF_js.validateObjectOrThrow; }
5806
+ get: function () { return chunkHG6EF4XD_js.validateObjectOrThrow; }
5766
5807
  });
5767
5808
  Object.defineProperty(exports, "DEFAULT_VALIDATION_MESSAGES", {
5768
5809
  enumerable: true,
package/dist/index.mjs CHANGED
@@ -2,9 +2,8 @@ import { generateId } from './chunk-QY6QFRRV.mjs';
2
2
  export { asTenantId, asUserId, deepEqual, generateId, indexBy } from './chunk-QY6QFRRV.mjs';
3
3
  import './chunk-SP3PNHYF.mjs';
4
4
  export { parseAttributeConfig } from './chunk-U4JC7P6D.mjs';
5
- import { createObjectValidator, createAttributeValidator } from './chunk-6JEQE4IP.mjs';
6
- export { computeRecordStatus, createFormAttributeValidator, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from './chunk-6JEQE4IP.mjs';
7
- import './chunk-TMYBEXBT.mjs';
5
+ import { createObjectValidator, createAttributeValidator } from './chunk-M7ZNKBOE.mjs';
6
+ export { computeRecordStatus, createFormAttributeValidator, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from './chunk-M7ZNKBOE.mjs';
8
7
  import './chunk-4KRLCWJM.mjs';
9
8
  import './chunk-KNYZH2WD.mjs';
10
9
  import './chunk-RUYUFXNW.mjs';
@@ -14,6 +13,7 @@ import './chunk-SMOHDR6M.mjs';
14
13
  import './chunk-ITTQ4FGR.mjs';
15
14
  import './chunk-IRTRJH37.mjs';
16
15
  import './chunk-OLJLCVNY.mjs';
16
+ import './chunk-TMYBEXBT.mjs';
17
17
  import './chunk-TEQNVO7W.mjs';
18
18
  import './chunk-4TC27SMF.mjs';
19
19
  import './chunk-TBYXYSGA.mjs';
@@ -5666,24 +5666,65 @@ function normalizeForEdgeRpc(op) {
5666
5666
 
5667
5667
  // src/filters/validation.ts
5668
5668
  var REFERENCE_TYPES = /* @__PURE__ */ new Set(["relation", "document", "user"]);
5669
+ var ID_LIKE_OPERATORS = [
5670
+ "eq",
5671
+ "neq",
5672
+ "is",
5673
+ "is_not",
5674
+ "any_of",
5675
+ "none_of",
5676
+ "is_empty",
5677
+ "is_not_empty"
5678
+ ];
5679
+ var SYSTEM_FILTER_OPERATORS = {
5680
+ // Identifier columns (uuid)
5681
+ id: ID_LIKE_OPERATORS,
5682
+ objectId: ID_LIKE_OPERATORS,
5683
+ tenantId: ID_LIKE_OPERATORS,
5684
+ // Free-form text and status columns share their counterpart's operator set
5685
+ label: OPERATORS_BY_TYPE.text,
5686
+ completionStatus: OPERATORS_BY_TYPE.status,
5687
+ // Date columns
5688
+ createdAt: OPERATORS_BY_TYPE.date,
5689
+ updatedAt: OPERATORS_BY_TYPE.date,
5690
+ deletedAt: OPERATORS_BY_TYPE.date,
5691
+ // User columns (uuid → actor identity)
5692
+ createdBy: OPERATORS_BY_TYPE.user,
5693
+ lastUpdatedBy: OPERATORS_BY_TYPE.user
5694
+ };
5669
5695
  function assertOperatorForType(operator, type, context) {
5670
5696
  const ops = OPERATORS_BY_TYPE[type];
5671
5697
  if (!ops?.includes(operator)) {
5672
- throw new ValidationError(`Operator ${operator} is not valid for ${context} type ${type}`, [
5698
+ const validList = ops?.length ? ops.join(", ") : "(no operators registered for this type)";
5699
+ const summary = `Operator "${operator}" is not valid for ${context} type "${type}". Valid operators: ${validList}.`;
5700
+ throw new ValidationError(summary, [
5673
5701
  {
5674
5702
  path: ["operator"],
5675
- message: `Operator ${operator} not valid for ${type}`
5703
+ message: summary
5676
5704
  }
5677
5705
  ]);
5678
5706
  }
5679
5707
  }
5680
5708
  function validateQualifiedRule(rule, context) {
5681
5709
  const rootAttr = context.attributes.find((a) => a.name === rule.attribute);
5682
- if (!rootAttr) {
5710
+ const systemOps = SYSTEM_FILTER_OPERATORS[rule.attribute];
5711
+ if (!(rootAttr || systemOps)) {
5683
5712
  throw new ValidationError(`Unknown attribute: ${rule.attribute}`, [
5684
5713
  { path: ["attribute"], message: `Unknown attribute: ${rule.attribute}` }
5685
5714
  ]);
5686
5715
  }
5716
+ if (!rootAttr) {
5717
+ if (rule.property) {
5718
+ throw new ValidationError(`Cannot qualify system attribute "${rule.attribute}"`, [
5719
+ { path: ["property"], message: `"${rule.attribute}" is a system column, not a reference` }
5720
+ ]);
5721
+ }
5722
+ if (!systemOps.includes(rule.operator)) {
5723
+ const summary = `Operator "${rule.operator}" is not valid for system attribute "${rule.attribute}". Valid operators: ${systemOps.join(", ")}.`;
5724
+ throw new ValidationError(summary, [{ path: ["operator"], message: summary }]);
5725
+ }
5726
+ return;
5727
+ }
5687
5728
  if (!rule.property) {
5688
5729
  if (rootAttr.type === "rollup") {
5689
5730
  return;
@@ -2,8 +2,7 @@
2
2
 
3
3
  require('../chunk-PGERPYDR.js');
4
4
  var chunkYQROI4IE_js = require('../chunk-YQROI4IE.js');
5
- var chunk64R5X3DF_js = require('../chunk-64R5X3DF.js');
6
- require('../chunk-MAKSIK3P.js');
5
+ var chunkHG6EF4XD_js = require('../chunk-HG6EF4XD.js');
7
6
  require('../chunk-J5HRK3WD.js');
8
7
  require('../chunk-TKN73433.js');
9
8
  require('../chunk-D7WFIGXW.js');
@@ -13,6 +12,7 @@ require('../chunk-EZHMVZQ4.js');
13
12
  require('../chunk-VXOTYFEW.js');
14
13
  require('../chunk-OAQWRMTP.js');
15
14
  require('../chunk-ACQ3TUFK.js');
15
+ require('../chunk-MAKSIK3P.js');
16
16
  require('../chunk-DC7YYE3U.js');
17
17
  require('../chunk-ROAZLZA2.js');
18
18
  require('../chunk-CCB4OY2O.js');
@@ -28,27 +28,27 @@ Object.defineProperty(exports, "parseAttributeConfig", {
28
28
  });
29
29
  Object.defineProperty(exports, "computeRecordStatus", {
30
30
  enumerable: true,
31
- get: function () { return chunk64R5X3DF_js.computeRecordStatus; }
31
+ get: function () { return chunkHG6EF4XD_js.computeRecordStatus; }
32
32
  });
33
33
  Object.defineProperty(exports, "createFormAttributeValidator", {
34
34
  enumerable: true,
35
- get: function () { return chunk64R5X3DF_js.createFormAttributeValidator; }
35
+ get: function () { return chunkHG6EF4XD_js.createFormAttributeValidator; }
36
36
  });
37
37
  Object.defineProperty(exports, "validateDraft", {
38
38
  enumerable: true,
39
- get: function () { return chunk64R5X3DF_js.validateDraft; }
39
+ get: function () { return chunkHG6EF4XD_js.validateDraft; }
40
40
  });
41
41
  Object.defineProperty(exports, "validateDraftOrThrow", {
42
42
  enumerable: true,
43
- get: function () { return chunk64R5X3DF_js.validateDraftOrThrow; }
43
+ get: function () { return chunkHG6EF4XD_js.validateDraftOrThrow; }
44
44
  });
45
45
  Object.defineProperty(exports, "validateObject", {
46
46
  enumerable: true,
47
- get: function () { return chunk64R5X3DF_js.validateObject; }
47
+ get: function () { return chunkHG6EF4XD_js.validateObject; }
48
48
  });
49
49
  Object.defineProperty(exports, "validateObjectOrThrow", {
50
50
  enumerable: true,
51
- get: function () { return chunk64R5X3DF_js.validateObjectOrThrow; }
51
+ get: function () { return chunkHG6EF4XD_js.validateObjectOrThrow; }
52
52
  });
53
53
  Object.defineProperty(exports, "DEFAULT_VALIDATION_MESSAGES", {
54
54
  enumerable: true,
@@ -1,7 +1,6 @@
1
1
  import '../chunk-SP3PNHYF.mjs';
2
2
  export { parseAttributeConfig } from '../chunk-U4JC7P6D.mjs';
3
- export { computeRecordStatus, createFormAttributeValidator, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from '../chunk-6JEQE4IP.mjs';
4
- import '../chunk-TMYBEXBT.mjs';
3
+ export { computeRecordStatus, createFormAttributeValidator, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from '../chunk-M7ZNKBOE.mjs';
5
4
  import '../chunk-4KRLCWJM.mjs';
6
5
  import '../chunk-KNYZH2WD.mjs';
7
6
  import '../chunk-RUYUFXNW.mjs';
@@ -11,6 +10,7 @@ import '../chunk-SMOHDR6M.mjs';
11
10
  import '../chunk-ITTQ4FGR.mjs';
12
11
  import '../chunk-IRTRJH37.mjs';
13
12
  import '../chunk-OLJLCVNY.mjs';
13
+ import '../chunk-TMYBEXBT.mjs';
14
14
  import '../chunk-TEQNVO7W.mjs';
15
15
  import '../chunk-4TC27SMF.mjs';
16
16
  import '../chunk-TBYXYSGA.mjs';
@@ -1,7 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk64R5X3DF_js = require('../../chunk-64R5X3DF.js');
4
- require('../../chunk-MAKSIK3P.js');
3
+ var chunkHG6EF4XD_js = require('../../chunk-HG6EF4XD.js');
5
4
  require('../../chunk-J5HRK3WD.js');
6
5
  require('../../chunk-TKN73433.js');
7
6
  require('../../chunk-D7WFIGXW.js');
@@ -11,6 +10,7 @@ require('../../chunk-EZHMVZQ4.js');
11
10
  require('../../chunk-VXOTYFEW.js');
12
11
  require('../../chunk-OAQWRMTP.js');
13
12
  require('../../chunk-ACQ3TUFK.js');
13
+ require('../../chunk-MAKSIK3P.js');
14
14
  require('../../chunk-DC7YYE3U.js');
15
15
  require('../../chunk-ROAZLZA2.js');
16
16
  require('../../chunk-CCB4OY2O.js');
@@ -22,49 +22,49 @@ require('../../chunk-T225DB55.js');
22
22
 
23
23
  Object.defineProperty(exports, "computeRecordStatus", {
24
24
  enumerable: true,
25
- get: function () { return chunk64R5X3DF_js.computeRecordStatus; }
25
+ get: function () { return chunkHG6EF4XD_js.computeRecordStatus; }
26
26
  });
27
27
  Object.defineProperty(exports, "createAttributeValidator", {
28
28
  enumerable: true,
29
- get: function () { return chunk64R5X3DF_js.createAttributeValidator; }
29
+ get: function () { return chunkHG6EF4XD_js.createAttributeValidator; }
30
30
  });
31
31
  Object.defineProperty(exports, "createDraftValidator", {
32
32
  enumerable: true,
33
- get: function () { return chunk64R5X3DF_js.createDraftValidator; }
33
+ get: function () { return chunkHG6EF4XD_js.createDraftValidator; }
34
34
  });
35
35
  Object.defineProperty(exports, "createFormAttributeValidator", {
36
36
  enumerable: true,
37
- get: function () { return chunk64R5X3DF_js.createFormAttributeValidator; }
37
+ get: function () { return chunkHG6EF4XD_js.createFormAttributeValidator; }
38
38
  });
39
39
  Object.defineProperty(exports, "createObjectValidator", {
40
40
  enumerable: true,
41
- get: function () { return chunk64R5X3DF_js.createObjectValidator; }
41
+ get: function () { return chunkHG6EF4XD_js.createObjectValidator; }
42
42
  });
43
43
  Object.defineProperty(exports, "getMissingRequiredAttributes", {
44
44
  enumerable: true,
45
- get: function () { return chunk64R5X3DF_js.getMissingRequiredAttributes; }
45
+ get: function () { return chunkHG6EF4XD_js.getMissingRequiredAttributes; }
46
46
  });
47
47
  Object.defineProperty(exports, "isRecordComplete", {
48
48
  enumerable: true,
49
- get: function () { return chunk64R5X3DF_js.isRecordComplete; }
49
+ get: function () { return chunkHG6EF4XD_js.isRecordComplete; }
50
50
  });
51
51
  Object.defineProperty(exports, "validateAttribute", {
52
52
  enumerable: true,
53
- get: function () { return chunk64R5X3DF_js.validateAttribute; }
53
+ get: function () { return chunkHG6EF4XD_js.validateAttribute; }
54
54
  });
55
55
  Object.defineProperty(exports, "validateDraft", {
56
56
  enumerable: true,
57
- get: function () { return chunk64R5X3DF_js.validateDraft; }
57
+ get: function () { return chunkHG6EF4XD_js.validateDraft; }
58
58
  });
59
59
  Object.defineProperty(exports, "validateDraftOrThrow", {
60
60
  enumerable: true,
61
- get: function () { return chunk64R5X3DF_js.validateDraftOrThrow; }
61
+ get: function () { return chunkHG6EF4XD_js.validateDraftOrThrow; }
62
62
  });
63
63
  Object.defineProperty(exports, "validateObject", {
64
64
  enumerable: true,
65
- get: function () { return chunk64R5X3DF_js.validateObject; }
65
+ get: function () { return chunkHG6EF4XD_js.validateObject; }
66
66
  });
67
67
  Object.defineProperty(exports, "validateObjectOrThrow", {
68
68
  enumerable: true,
69
- get: function () { return chunk64R5X3DF_js.validateObjectOrThrow; }
69
+ get: function () { return chunkHG6EF4XD_js.validateObjectOrThrow; }
70
70
  });
@@ -1,5 +1,4 @@
1
- export { computeRecordStatus, createAttributeValidator, createDraftValidator, createFormAttributeValidator, createObjectValidator, getMissingRequiredAttributes, isRecordComplete, validateAttribute, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from '../../chunk-6JEQE4IP.mjs';
2
- import '../../chunk-TMYBEXBT.mjs';
1
+ export { computeRecordStatus, createAttributeValidator, createDraftValidator, createFormAttributeValidator, createObjectValidator, getMissingRequiredAttributes, isRecordComplete, validateAttribute, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from '../../chunk-M7ZNKBOE.mjs';
3
2
  import '../../chunk-4KRLCWJM.mjs';
4
3
  import '../../chunk-KNYZH2WD.mjs';
5
4
  import '../../chunk-RUYUFXNW.mjs';
@@ -9,6 +8,7 @@ import '../../chunk-SMOHDR6M.mjs';
9
8
  import '../../chunk-ITTQ4FGR.mjs';
10
9
  import '../../chunk-IRTRJH37.mjs';
11
10
  import '../../chunk-OLJLCVNY.mjs';
11
+ import '../../chunk-TMYBEXBT.mjs';
12
12
  import '../../chunk-TEQNVO7W.mjs';
13
13
  import '../../chunk-4TC27SMF.mjs';
14
14
  import '../../chunk-TBYXYSGA.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stndrds/schema",
3
- "version": "1.0.0-alpha.183",
3
+ "version": "1.0.0-alpha.185",
4
4
  "description": "Standard schema definitions and utilities",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -131,7 +131,7 @@
131
131
  "expr-eval": "^2.0.2",
132
132
  "libphonenumber-js": "^1.12.31",
133
133
  "zod": "^4.2.1",
134
- "@stndrds/constants": "1.0.0-alpha.183"
134
+ "@stndrds/constants": "1.0.0-alpha.185"
135
135
  },
136
136
  "devDependencies": {
137
137
  "@types/node": "^25.0.3",
@@ -1,6 +1,5 @@
1
1
  'use strict';
2
2
 
3
- var chunkMAKSIK3P_js = require('./chunk-MAKSIK3P.js');
4
3
  var chunkJ5HRK3WD_js = require('./chunk-J5HRK3WD.js');
5
4
  var chunkTKN73433_js = require('./chunk-TKN73433.js');
6
5
  var chunkD7WFIGXW_js = require('./chunk-D7WFIGXW.js');
@@ -10,6 +9,7 @@ var chunkEZHMVZQ4_js = require('./chunk-EZHMVZQ4.js');
10
9
  var chunkVXOTYFEW_js = require('./chunk-VXOTYFEW.js');
11
10
  var chunkOAQWRMTP_js = require('./chunk-OAQWRMTP.js');
12
11
  var chunkACQ3TUFK_js = require('./chunk-ACQ3TUFK.js');
12
+ var chunkMAKSIK3P_js = require('./chunk-MAKSIK3P.js');
13
13
  var chunkDC7YYE3U_js = require('./chunk-DC7YYE3U.js');
14
14
  var chunkROAZLZA2_js = require('./chunk-ROAZLZA2.js');
15
15
  var chunkCCB4OY2O_js = require('./chunk-CCB4OY2O.js');
@@ -1,4 +1,3 @@
1
- import { createCheckboxValidator } from './chunk-TMYBEXBT.mjs';
2
1
  import { createDateValidator } from './chunk-4KRLCWJM.mjs';
3
2
  import { createNumberValidator } from './chunk-KNYZH2WD.mjs';
4
3
  import { createRatingValidator } from './chunk-RUYUFXNW.mjs';
@@ -8,6 +7,7 @@ import { createMultiselectValidator, createSelectValidator, createStatusValidato
8
7
  import { createUserValidator } from './chunk-ITTQ4FGR.mjs';
9
8
  import { createFormulaValidator } from './chunk-IRTRJH37.mjs';
10
9
  import { createRollupValidator } from './chunk-OLJLCVNY.mjs';
10
+ import { createCheckboxValidator } from './chunk-TMYBEXBT.mjs';
11
11
  import { createCurrencyValidator } from './chunk-TEQNVO7W.mjs';
12
12
  import { createFileValidator } from './chunk-4TC27SMF.mjs';
13
13
  import { createLocationValidator } from './chunk-TBYXYSGA.mjs';