@ai-matrx/records 0.72.10 → 0.72.12
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 +12 -0
- package/dist/templates/index.cjs +22 -0
- package/dist/templates/index.cjs.map +1 -1
- package/dist/templates/index.js +22 -0
- package/dist/templates/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog — @ai-matrx/records
|
|
2
2
|
|
|
3
|
+
## 0.72.12
|
|
4
|
+
|
|
5
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
6
|
+
`git diff npm/records/v0.72.11..npm/records/v0.72.12 -- apps/shared/records`).
|
|
7
|
+
No source changes intended and no consumer action required.
|
|
8
|
+
|
|
9
|
+
## 0.72.11
|
|
10
|
+
|
|
11
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
12
|
+
`git diff npm/records/v0.72.10..npm/records/v0.72.11 -- apps/shared/records`).
|
|
13
|
+
No source changes intended and no consumer action required.
|
|
14
|
+
|
|
3
15
|
## 0.72.10
|
|
4
16
|
|
|
5
17
|
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
package/dist/templates/index.cjs
CHANGED
|
@@ -3604,6 +3604,28 @@ function validateTemplate(raw, options = {}) {
|
|
|
3604
3604
|
const tz = raw.business?.timezone || "UTC";
|
|
3605
3605
|
const tablesRaw = allTables(raw);
|
|
3606
3606
|
const ISO_DAY = /\b\d{4}-\d{2}-\d{2}\b/;
|
|
3607
|
+
for (const e of raw.extras ?? []) {
|
|
3608
|
+
if (e.kind !== "checklist") continue;
|
|
3609
|
+
for (const st of e.steps ?? []) {
|
|
3610
|
+
if (st.dueDays !== void 0 && !(Number.isInteger(st.dueDays) && st.dueDays >= 0 && st.dueDays <= 3650)) {
|
|
3611
|
+
say(`extras (${e.token}).steps (${st.ref ?? "?"}).dueDays`, `A step is due a whole number of days after the checklist starts, from 0 to 3650; ${st.dueDays} is not. Start the checklist earlier instead of counting backwards.`);
|
|
3612
|
+
}
|
|
3613
|
+
}
|
|
3614
|
+
}
|
|
3615
|
+
for (const table of tablesRaw) {
|
|
3616
|
+
for (const f of table.fields) {
|
|
3617
|
+
for (const rule of f.rules ?? []) {
|
|
3618
|
+
if (rule.kind !== "pattern" || typeof rule.value !== "string" || typeof rule.example !== "string") continue;
|
|
3619
|
+
let re = null;
|
|
3620
|
+
try {
|
|
3621
|
+
re = new RegExp(rule.value);
|
|
3622
|
+
} catch {
|
|
3623
|
+
continue;
|
|
3624
|
+
}
|
|
3625
|
+
if (!re.test(rule.example)) say(`tables (${table.token}).fields (${f.key}).rules`, `"${f.label}" shows "${rule.example}" as the way to write it, and its own pattern refuses that. Make the example match the pattern.`);
|
|
3626
|
+
}
|
|
3627
|
+
}
|
|
3628
|
+
}
|
|
3607
3629
|
const EMAIL_SHAPE = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
3608
3630
|
for (const table of tablesRaw) {
|
|
3609
3631
|
for (const f of table.fields.filter((x) => x.parityType === "email" || x.format === "email")) {
|