@ai-matrx/records 0.58.114 → 0.58.115
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/core/index.cjs +25 -0
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +16 -0
- package/dist/core/index.d.ts +16 -0
- package/dist/core/index.js +25 -0
- package/dist/core/index.js.map +1 -1
- package/dist/react/index.cjs +30 -0
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +19 -0
- package/dist/react/index.d.ts +19 -0
- package/dist/react/index.js +30 -0
- package/dist/react/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog — @ai-matrx/records
|
|
2
2
|
|
|
3
|
+
## 0.58.115
|
|
4
|
+
|
|
5
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
6
|
+
`git diff npm/records/v0.58.114..npm/records/v0.58.115 -- apps/shared/records`).
|
|
7
|
+
No source changes intended and no consumer action required.
|
|
8
|
+
|
|
3
9
|
## 0.58.114
|
|
4
10
|
|
|
5
11
|
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
package/dist/core/index.cjs
CHANGED
|
@@ -40348,6 +40348,9 @@ var DOORS = {
|
|
|
40348
40348
|
fieldDeclare: "field_declare",
|
|
40349
40349
|
fieldUpdate: "field_update",
|
|
40350
40350
|
fieldRetire: "field_retire",
|
|
40351
|
+
// THE UNDO OF field_retire (lane STORE-RESTORE-DOORS): the set that went together comes back
|
|
40352
|
+
// whole, the Table declares the columns again, and the values never left the records.
|
|
40353
|
+
fieldRestore: "field_restore",
|
|
40351
40354
|
// CUSTOM FIELDS ON A STANDARD BUSINESS TABLE. Every door above is keyed by a
|
|
40352
40355
|
// custom Table's uuid, and a standard table has no Table record - so until
|
|
40353
40356
|
// 2026-09-20 `custom.applicable_fields(org, 'party', null)` answered `22P02
|
|
@@ -41647,6 +41650,28 @@ function createRecordsClient(config) {
|
|
|
41647
41650
|
"fieldRetire"
|
|
41648
41651
|
);
|
|
41649
41652
|
},
|
|
41653
|
+
async fieldRestore({ field_id }) {
|
|
41654
|
+
return callDoor(
|
|
41655
|
+
DOORS.fieldRestore,
|
|
41656
|
+
{ p_organization_id: org, p_field_id: field_id },
|
|
41657
|
+
"fieldRestore"
|
|
41658
|
+
);
|
|
41659
|
+
},
|
|
41660
|
+
async fieldsRetired({ table_id }) {
|
|
41661
|
+
const kernel = await callDoor(DOORS.fieldKernelId, {}, "fieldsRetired.kernel");
|
|
41662
|
+
if (!kernel.ok) return err(kernel.error);
|
|
41663
|
+
const PAGE = 200;
|
|
41664
|
+
const found = [];
|
|
41665
|
+
for (let page = 0; page < 25; page += 1) {
|
|
41666
|
+
const answered = await this.listArchived({ table_id: kernel.data, lane: "org", limit: PAGE, offset: page * PAGE });
|
|
41667
|
+
if (!answered.ok) return err(answered.error);
|
|
41668
|
+
for (const row of answered.data.rows) {
|
|
41669
|
+
if (String(row.document["entity_definition_id"] ?? "") === table_id) found.push(row);
|
|
41670
|
+
}
|
|
41671
|
+
if (answered.data.rows.length < PAGE) break;
|
|
41672
|
+
}
|
|
41673
|
+
return ok(found);
|
|
41674
|
+
},
|
|
41650
41675
|
async relationWords({ field_id, value }) {
|
|
41651
41676
|
return callDoor(
|
|
41652
41677
|
DOORS.relationWords,
|