@ai-matrx/records 0.77.2 → 0.77.3

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.
@@ -1,4 +1,5 @@
1
1
  // src/app-table/graduate.ts
2
+ import { isUuidShape } from "@ai-matrx/kit/uuid";
2
3
  var TO_CUSTOM_FIELDS = "custom_fields";
3
4
  var TO_ASSOCIATION = "association";
4
5
  var GRADUATION_BASE_COLUMNS = [
@@ -58,10 +59,9 @@ function graduationProblems(fields, graduation) {
58
59
  }
59
60
  return problems;
60
61
  }
61
- var UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
62
62
  function idsOf(value) {
63
63
  const list = Array.isArray(value) ? value : value === null || value === void 0 ? [] : [value];
64
- return list.filter((v) => typeof v === "string" && UUID.test(v));
64
+ return list.filter((v) => typeof v === "string" && isUuidShape(v));
65
65
  }
66
66
  function graduatedRow(fields, graduation, snapshot) {
67
67
  const row = {
@@ -592,7 +592,7 @@ function mapPgError(error, where) {
592
592
  }
593
593
 
594
594
  // src/relation.ts
595
- import { isUuidShape } from "@ai-matrx/kit/uuid";
595
+ import { isUuidShape as isUuidShape2 } from "@ai-matrx/kit/uuid";
596
596
  var REVERSE_LINKS_RECORDS_PER_CALL = 200;
597
597
  function sourceArchivedOf(value) {
598
598
  if (!value || typeof value !== "object" || Array.isArray(value)) return null;
@@ -635,7 +635,7 @@ function mintOpId() {
635
635
  }
636
636
 
637
637
  // src/choice.ts
638
- import { isUuidShape as isUuidShape2 } from "@ai-matrx/kit/uuid";
638
+ import { isUuidShape as isUuidShape3 } from "@ai-matrx/kit/uuid";
639
639
  var CHOICE_NUDGES = ["ask", "always_add", "never_add"];
640
640
  function asChoiceNudge(value) {
641
641
  return typeof value === "string" && CHOICE_NUDGES.includes(value) ? value : "ask";