@ai-matrx/records 0.99.28 → 0.99.30
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 +18 -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/entity/index.cjs +1 -1
- package/dist/entity/index.cjs.map +1 -1
- package/dist/entity/index.d.cts +3 -3
- package/dist/entity/index.d.ts +3 -3
- package/dist/entity/index.js +1 -1
- package/dist/entity/index.js.map +1 -1
- package/dist/entity/react.cjs +1 -1
- package/dist/entity/react.cjs.map +1 -1
- package/dist/entity/react.js +1 -1
- package/dist/entity/react.js.map +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/{port-DWHLj_Sa.d.ts → port-Bk7TG0aE.d.ts} +3 -3
- package/dist/{port-BbWB9Pgq.d.cts → port-rqQEGhew.d.cts} +3 -3
- package/dist/questions/index.d.cts +1 -1
- package/dist/questions/index.d.ts +1 -1
- package/dist/react/index.cjs +82 -128
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +37 -2
- package/dist/react/index.d.ts +37 -2
- package/dist/react/index.js +81 -127
- package/dist/react/index.js.map +1 -1
- package/dist/realtime/index.cjs +1 -1
- package/dist/realtime/index.cjs.map +1 -1
- package/dist/realtime/index.d.cts +4 -4
- package/dist/realtime/index.d.ts +4 -4
- package/dist/realtime/index.js +1 -1
- package/dist/realtime/index.js.map +1 -1
- package/dist/setup/index.cjs +15 -4
- package/dist/setup/index.cjs.map +1 -1
- package/dist/setup/index.d.cts +3 -3
- package/dist/setup/index.d.ts +3 -3
- package/dist/setup/index.js +15 -4
- package/dist/setup/index.js.map +1 -1
- package/dist/typed-table/index.cjs +16 -117
- package/dist/typed-table/index.cjs.map +1 -1
- package/dist/typed-table/index.d.cts +3 -4
- package/dist/typed-table/index.d.ts +3 -4
- package/dist/typed-table/index.js +15 -116
- 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 +7 -5
package/dist/setup/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RealtimeManager } from '@ai-matrx/realtime';
|
|
2
|
-
import { R as RecordsClient } from '../client-
|
|
3
|
-
import { C as CreateEntityDataPortOptions, E as EntityDataPort } from '../port-
|
|
1
|
+
import { RealtimeManager } from '@ai-matrx/data/realtime';
|
|
2
|
+
import { R as RecordsClient } from '../client-B7KEs9hi.cjs';
|
|
3
|
+
import { C as CreateEntityDataPortOptions, E as EntityDataPort } from '../port-rqQEGhew.cjs';
|
|
4
4
|
import { R as RecordOrganizationPort, O as ObjectOrganizationAnswer } from '../objectOrganization-Cu73SBxH.cjs';
|
|
5
5
|
import { a as RecordsConfig, b as RowAgentPort, c as RecordsErrorSink, d as RecordsDataSource, e as RecordsChangeSink, f as RowAgentTarget } from '../ports-iATV-A2v.cjs';
|
|
6
6
|
import { U as Uuid, R as RecordsResult } from '../record-C8q21jjB.cjs';
|
package/dist/setup/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RealtimeManager } from '@ai-matrx/realtime';
|
|
2
|
-
import { R as RecordsClient } from '../client-
|
|
3
|
-
import { C as CreateEntityDataPortOptions, E as EntityDataPort } from '../port-
|
|
1
|
+
import { RealtimeManager } from '@ai-matrx/data/realtime';
|
|
2
|
+
import { R as RecordsClient } from '../client-Dthx26hr.js';
|
|
3
|
+
import { C as CreateEntityDataPortOptions, E as EntityDataPort } from '../port-Bk7TG0aE.js';
|
|
4
4
|
import { R as RecordOrganizationPort, O as ObjectOrganizationAnswer } from '../objectOrganization-DtR3lWG2.js';
|
|
5
5
|
import { a as RecordsConfig, b as RowAgentPort, c as RecordsErrorSink, d as RecordsDataSource, e as RecordsChangeSink, f as RowAgentTarget } from '../ports-BCNNghmf.js';
|
|
6
6
|
import { U as Uuid, R as RecordsResult } from '../record-C8q21jjB.js';
|
package/dist/setup/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/setup/index.ts
|
|
2
|
-
import { createRealtimeManager } from "@ai-matrx/realtime";
|
|
2
|
+
import { createRealtimeManager } from "@ai-matrx/data/realtime";
|
|
3
3
|
|
|
4
4
|
// src/core/primedBundle.ts
|
|
5
5
|
var PRIMED_TTL_MS = 15e3;
|
|
@@ -3784,6 +3784,15 @@ function createRecordsClient(given) {
|
|
|
3784
3784
|
}
|
|
3785
3785
|
return result;
|
|
3786
3786
|
},
|
|
3787
|
+
async recordReparent({ record_id, parent_id }) {
|
|
3788
|
+
const result = await callDoor(
|
|
3789
|
+
DOORS.recordReparent,
|
|
3790
|
+
{ p_organization_id: org, p_record_id: record_id, p_parent_id: parent_id },
|
|
3791
|
+
"recordReparent"
|
|
3792
|
+
);
|
|
3793
|
+
if (result.ok) announceRecordChanged(record_id);
|
|
3794
|
+
return result;
|
|
3795
|
+
},
|
|
3787
3796
|
async recordRestore({ record_id }) {
|
|
3788
3797
|
const result = await callDoor(
|
|
3789
3798
|
DOORS.recordRestore,
|
|
@@ -4331,7 +4340,9 @@ function createRecordsClient(given) {
|
|
|
4331
4340
|
}
|
|
4332
4341
|
const tables = read.map((row) => {
|
|
4333
4342
|
const { document } = unfold(row.document);
|
|
4334
|
-
|
|
4343
|
+
const doc = document;
|
|
4344
|
+
const home = typeof doc.home_id === "string" ? doc.home_id : typeof doc.parent_id === "string" ? doc.parent_id : null;
|
|
4345
|
+
return { ...doc, home_id: home, id: row.id, organization_id: org };
|
|
4335
4346
|
});
|
|
4336
4347
|
tables.sort((a, b) => (a.name ?? "").localeCompare(b.name ?? ""));
|
|
4337
4348
|
return ok(tables);
|
|
@@ -7176,7 +7187,7 @@ import { isUuidShape as isUuidShape4 } from "@ai-matrx/kit/uuid";
|
|
|
7176
7187
|
import {
|
|
7177
7188
|
defineChannelNamespace,
|
|
7178
7189
|
subscribeToRealtimeManager
|
|
7179
|
-
} from "@ai-matrx/realtime";
|
|
7190
|
+
} from "@ai-matrx/data/realtime";
|
|
7180
7191
|
var entityOrgChannel = defineChannelNamespace({
|
|
7181
7192
|
namespace: "entity-org",
|
|
7182
7193
|
foreignTopic: "mx:entity-org",
|
|
@@ -7629,7 +7640,7 @@ function whereIdOpensPort(dataSource) {
|
|
|
7629
7640
|
import {
|
|
7630
7641
|
defineChannelNamespace as defineChannelNamespace2,
|
|
7631
7642
|
subscribeToRealtimeManager as subscribeToRealtimeManager2
|
|
7632
|
-
} from "@ai-matrx/realtime";
|
|
7643
|
+
} from "@ai-matrx/data/realtime";
|
|
7633
7644
|
var storeTableChannel = defineChannelNamespace2({
|
|
7634
7645
|
namespace: "records-store-table",
|
|
7635
7646
|
foreignTopic: "custom:table",
|