@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.
- package/CHANGELOG.md +6 -0
- package/dist/app-table/index.cjs +4 -4
- package/dist/app-table/index.cjs.map +1 -1
- package/dist/app-table/index.js +4 -4
- package/dist/app-table/index.js.map +1 -1
- package/dist/core/index.cjs +8 -6
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.js +8 -6
- package/dist/core/index.js.map +1 -1
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/memory/index.cjs +4 -1
- package/dist/memory/index.cjs.map +1 -1
- package/dist/memory/index.js +4 -1
- package/dist/memory/index.js.map +1 -1
- package/dist/react/index.cjs +8 -6
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +8 -6
- package/dist/react/index.js.map +1 -1
- package/dist/templates/index.cjs +4 -2
- package/dist/templates/index.cjs.map +1 -1
- package/dist/templates/index.js +4 -2
- package/dist/templates/index.js.map +1 -1
- package/package.json +4 -4
package/dist/templates/index.cjs
CHANGED
|
@@ -489,6 +489,9 @@ function footprintOf(spec) {
|
|
|
489
489
|
}
|
|
490
490
|
var CATALOGUE_STATUSES = ["planned", "authoring", "checking", "waiting_on_lane_10", "ready", "published", "retired"];
|
|
491
491
|
|
|
492
|
+
// src/templates/validate.ts
|
|
493
|
+
var import_uuid = require("@ai-matrx/kit/uuid");
|
|
494
|
+
|
|
492
495
|
// src/templates/confidential.ts
|
|
493
496
|
var TABLE_KERNEL_ID = "11111111-0000-4000-8000-000000000001";
|
|
494
497
|
var sqlText = (s) => `'${s.replace(/'/g, "''")}'`;
|
|
@@ -3601,7 +3604,6 @@ var sortedJson = (v) => JSON.stringify(Object.keys(v).sort().map((k) => [k, v[k]
|
|
|
3601
3604
|
var filled = (v) => storeText(v) !== null && storeText(v) !== "" && !(Array.isArray(v) && v.length === 0);
|
|
3602
3605
|
var THING_NAME = /^(section|class|course|period|room|bay|item|job|role|team|pool|machine|program|plan|service|procedure|product|group|neighborhood|listing|grant|deal|bid|engagement|matter|account|company|route|site|location|project|event|campaign|unit|vehicle|truck|table|field|view|form)_name$/;
|
|
3603
3606
|
var FILE_VALUE_RE = /^@file:([A-Za-z0-9_.-]+)$/;
|
|
3604
|
-
var UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
3605
3607
|
function attachmentProblems(raw, assets) {
|
|
3606
3608
|
const out = [];
|
|
3607
3609
|
const say = (at, says) => out.push({ at, says });
|
|
@@ -3617,7 +3619,7 @@ function attachmentProblems(raw, assets) {
|
|
|
3617
3619
|
if (!a.key || !/^[A-Za-z0-9_.-]+$/.test(a.key)) return say(`${at}.key`, "Each picture has a key (letters, digits, _ . -).");
|
|
3618
3620
|
if (keys.has(a.key)) say(`${at}.key`, `"${a.key}" is listed twice.`);
|
|
3619
3621
|
keys.add(a.key);
|
|
3620
|
-
if (!a.fileId || !
|
|
3622
|
+
if (!a.fileId || !(0, import_uuid.isUuidShape)(a.fileId)) say(`${at}.fileId`, `"${a.key}" needs the file id from templates/ASSETS.json.`);
|
|
3621
3623
|
if (!a.name || !a.mime || typeof a.bytes !== "number") say(at, `"${a.key}" copies name, mime and bytes from templates/ASSETS.json.`);
|
|
3622
3624
|
if (library) {
|
|
3623
3625
|
const asset = library.get(a.key);
|