@ai-matrx/records 0.87.23 → 0.87.24
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 +14 -2
- package/dist/{client-xyH0cLVd.d.cts → client-C3ZZNfGH.d.cts} +1 -1
- package/dist/{client-Bvk0ymIs.d.ts → client-E0VQ0NPO.d.ts} +1 -1
- package/dist/core/index.d.cts +4 -4
- package/dist/core/index.d.ts +4 -4
- package/dist/data/index.d.cts +2 -2
- package/dist/data/index.d.ts +2 -2
- package/dist/{declareTable-CVzk6RVH.d.ts → declareTable-B12XybRp.d.ts} +2 -2
- package/dist/{declareTable-DNhNDvh9.d.cts → declareTable-BK3zufr7.d.cts} +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/react/index.cjs +8 -1
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +6 -0
- package/dist/react/index.d.ts +6 -0
- package/dist/react/index.js +8 -1
- package/dist/react/index.js.map +1 -1
- package/dist/{table-kind-1aiKFy1k.d.cts → table-kind-BZu8mtND.d.cts} +2 -0
- package/dist/{table-kind-ClSGi6ze.d.ts → table-kind-xKxTHtrV.d.ts} +2 -0
- package/dist/typed-table/index.cjs +8 -1
- package/dist/typed-table/index.cjs.map +1 -1
- package/dist/typed-table/index.d.cts +7 -3
- package/dist/typed-table/index.d.ts +7 -3
- package/dist/typed-table/index.js +8 -1
- package/dist/typed-table/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -6801,7 +6801,14 @@ async function ensureAppAutomations(client, def, specs, options = {}) {
|
|
|
6801
6801
|
if (a.do === "set") actions.push({ do: "set", values: keyed(a.values, own.data, own.data, def.name) });
|
|
6802
6802
|
else if (a.do === "notify") {
|
|
6803
6803
|
const to = "field" in a.to ? { field: byId(own.data, a.to.field, def.name) } : a.to;
|
|
6804
|
-
|
|
6804
|
+
const words = (t) => t.replace(/\{\{(\w+)\}\}/g, (m, k) => k === "record_id" || k === "organization_id" ? m : `{{${byId(own.data, k, def.name)}}}`);
|
|
6805
|
+
actions.push({
|
|
6806
|
+
do: "notify",
|
|
6807
|
+
to,
|
|
6808
|
+
text: words(a.text),
|
|
6809
|
+
...a.subject ? { subject: words(a.subject) } : {},
|
|
6810
|
+
...a.link ? { link: words(a.link) } : {}
|
|
6811
|
+
});
|
|
6805
6812
|
} else {
|
|
6806
6813
|
const other = await ensureTypedTable(client, a.table, { organizationId: org.data });
|
|
6807
6814
|
if (!other.ok) return other;
|