@ai-matrx/records 0.99.28 → 0.99.29
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 +7 -0
- package/dist/{client-B7LYr-aE.d.cts → client-B7KEs9hi.d.cts} +10 -0
- package/dist/{client-m4soDpHA.d.ts → client-Dthx26hr.d.ts} +10 -0
- package/dist/core/index.cjs +76 -10
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +3 -3
- package/dist/core/index.d.ts +3 -3
- package/dist/core/index.js +76 -10
- package/dist/core/index.js.map +1 -1
- package/dist/data/index.cjs +12 -1
- package/dist/data/index.cjs.map +1 -1
- package/dist/data/index.d.cts +1 -1
- package/dist/data/index.d.ts +1 -1
- package/dist/data/index.js +12 -1
- package/dist/data/index.js.map +1 -1
- package/dist/{declareTable-D5Zs-SjU.d.ts → declareTable-CvBu5dTJ.d.ts} +1 -1
- package/dist/{declareTable-Bnrzv-Bg.d.cts → declareTable-enQs2N0E.d.cts} +1 -1
- package/dist/first-page/index.d.cts +2 -0
- package/dist/first-page/index.d.ts +2 -0
- package/dist/index.cjs +64 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +29 -3
- package/dist/index.d.ts +29 -3
- package/dist/index.js +64 -9
- package/dist/index.js.map +1 -1
- package/dist/questions/index.d.cts +1 -1
- package/dist/questions/index.d.ts +1 -1
- package/dist/react/index.cjs +78 -12
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +37 -1
- package/dist/react/index.d.ts +37 -1
- package/dist/react/index.js +78 -12
- package/dist/react/index.js.map +1 -1
- package/dist/setup/index.cjs +12 -1
- package/dist/setup/index.cjs.map +1 -1
- package/dist/setup/index.d.cts +1 -1
- package/dist/setup/index.d.ts +1 -1
- package/dist/setup/index.js +12 -1
- package/dist/setup/index.js.map +1 -1
- package/dist/typed-table/index.cjs +12 -1
- package/dist/typed-table/index.cjs.map +1 -1
- package/dist/typed-table/index.d.cts +2 -2
- package/dist/typed-table/index.d.ts +2 -2
- package/dist/typed-table/index.js +12 -1
- package/dist/typed-table/index.js.map +1 -1
- package/dist/views/index.d.cts +1 -1
- package/dist/views/index.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { N as NewFieldSpec } from '../declareTable-
|
|
1
|
+
import { N as NewFieldSpec } from '../declareTable-enQs2N0E.cjs';
|
|
2
2
|
import { U as Uuid, R as RecordsResult, k as RecordPageSort } from '../record-C8q21jjB.cjs';
|
|
3
|
-
import { F as FieldDrift, R as RecordsClient, T as TableArchiveProgress } from '../client-
|
|
3
|
+
import { F as FieldDrift, R as RecordsClient, T as TableArchiveProgress } from '../client-B7KEs9hi.cjs';
|
|
4
4
|
import '../field-ppX29ddi.cjs';
|
|
5
5
|
import '../subscription-Ba8RKtPA.cjs';
|
|
6
6
|
import '../rule-BQwUtKk5.cjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { N as NewFieldSpec } from '../declareTable-
|
|
1
|
+
import { N as NewFieldSpec } from '../declareTable-CvBu5dTJ.js';
|
|
2
2
|
import { U as Uuid, R as RecordsResult, k as RecordPageSort } from '../record-C8q21jjB.js';
|
|
3
|
-
import { F as FieldDrift, R as RecordsClient, T as TableArchiveProgress } from '../client-
|
|
3
|
+
import { F as FieldDrift, R as RecordsClient, T as TableArchiveProgress } from '../client-Dthx26hr.js';
|
|
4
4
|
import '../field-BHlhq24W.js';
|
|
5
5
|
import '../subscription-eNzL9scc.js';
|
|
6
6
|
import '../rule-cGqclk_0.js';
|
|
@@ -4167,6 +4167,15 @@ function createRecordsClient(given) {
|
|
|
4167
4167
|
}
|
|
4168
4168
|
return result;
|
|
4169
4169
|
},
|
|
4170
|
+
async recordReparent({ record_id, parent_id }) {
|
|
4171
|
+
const result = await callDoor(
|
|
4172
|
+
DOORS.recordReparent,
|
|
4173
|
+
{ p_organization_id: org, p_record_id: record_id, p_parent_id: parent_id },
|
|
4174
|
+
"recordReparent"
|
|
4175
|
+
);
|
|
4176
|
+
if (result.ok) announceRecordChanged(record_id);
|
|
4177
|
+
return result;
|
|
4178
|
+
},
|
|
4170
4179
|
async recordRestore({ record_id }) {
|
|
4171
4180
|
const result = await callDoor(
|
|
4172
4181
|
DOORS.recordRestore,
|
|
@@ -4714,7 +4723,9 @@ function createRecordsClient(given) {
|
|
|
4714
4723
|
}
|
|
4715
4724
|
const tables = read.map((row) => {
|
|
4716
4725
|
const { document } = unfold(row.document);
|
|
4717
|
-
|
|
4726
|
+
const doc = document;
|
|
4727
|
+
const home = typeof doc.home_id === "string" ? doc.home_id : typeof doc.parent_id === "string" ? doc.parent_id : null;
|
|
4728
|
+
return { ...doc, home_id: home, id: row.id, organization_id: org };
|
|
4718
4729
|
});
|
|
4719
4730
|
tables.sort((a, b) => (a.name ?? "").localeCompare(b.name ?? ""));
|
|
4720
4731
|
return ok(tables);
|