@ai-matrx/records 0.98.8 → 0.98.9
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/{table-kind-CboiMJuE.d.cts → client-9fzhCPD5.d.cts} +2771 -4
- package/dist/{table-kind-B4sdlvHf.d.ts → client-DcWZjmg2.d.ts} +2771 -4
- package/dist/core/index.cjs +100 -3
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +19 -17
- package/dist/core/index.d.ts +19 -17
- package/dist/core/index.js +100 -3
- package/dist/core/index.js.map +1 -1
- package/dist/data/index.cjs +52 -0
- package/dist/data/index.cjs.map +1 -1
- package/dist/data/index.d.cts +11 -12
- package/dist/data/index.d.ts +11 -12
- package/dist/data/index.js +52 -0
- package/dist/data/index.js.map +1 -1
- package/dist/{declareTable-BIuPJ3Vj.d.ts → declareTable-B6ic3leL.d.ts} +3 -4
- package/dist/{declareTable-d-HxRmF0.d.cts → declareTable-_GwN-ERY.d.cts} +3 -4
- package/dist/{doors-Bx3Shs3z.d.cts → doors-Dm5q9H8Y.d.cts} +1 -1
- package/dist/{doors-BTifsjNv.d.ts → doors-t-Oc2l9E.d.ts} +1 -1
- package/dist/entity/index.d.cts +7 -7
- package/dist/entity/index.d.ts +7 -7
- package/dist/{field-CJtssH3q.d.ts → field-BIRNApm1.d.ts} +2 -2
- package/dist/{field-DoVl2I9K.d.cts → field-BLy8drjM.d.cts} +2 -2
- package/dist/forms/index.d.cts +3 -3
- package/dist/forms/index.d.ts +3 -3
- package/dist/index.cjs +45 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +30 -13
- package/dist/index.d.ts +30 -13
- package/dist/index.js +45 -0
- package/dist/index.js.map +1 -1
- package/dist/memory/index.d.cts +7 -7
- package/dist/memory/index.d.ts +7 -7
- package/dist/{objectOrganization-Crk9gJUM.d.ts → objectOrganization-D5Ytjah7.d.ts} +1 -1
- package/dist/{objectOrganization-CUa6jjhV.d.cts → objectOrganization-zgpoUAH1.d.cts} +1 -1
- package/dist/{port-CRP5g9l9.d.cts → port-B9glCG2h.d.cts} +3 -3
- package/dist/{port-CtnELAJQ.d.ts → port-C-p-_lAu.d.ts} +3 -3
- package/dist/{portal-DW5NGBT0.d.ts → portal-B9HCNPTc.d.ts} +2 -2
- package/dist/{portal-C4N9ByaY.d.cts → portal-C_LgvDeh.d.cts} +2 -2
- package/dist/{ports-WwHHNwge.d.ts → ports-BE_5jz-c.d.ts} +2 -2
- package/dist/{ports-YIh9jrCZ.d.cts → ports-BIdYUS-C.d.cts} +2 -2
- package/dist/questions/index.d.cts +9 -10
- package/dist/questions/index.d.ts +9 -10
- package/dist/react/index.cjs +97 -0
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +86 -1
- package/dist/react/index.d.ts +86 -1
- package/dist/react/index.js +97 -0
- package/dist/react/index.js.map +1 -1
- package/dist/realtime/index.d.cts +3 -3
- package/dist/realtime/index.d.ts +3 -3
- package/dist/{record-CxGK1OEK.d.cts → record-BrJNCmH1.d.cts} +1 -1
- package/dist/{record-CxGK1OEK.d.ts → record-BrJNCmH1.d.ts} +1 -1
- package/dist/{relation-Dh-lCkkh.d.ts → relation-BxGXLRaG.d.ts} +3 -3
- package/dist/{relation-DSGhM3tO.d.cts → relation-R10qQyQU.d.cts} +3 -3
- package/dist/{rule-DQpC7WqT.d.cts → rule-BGtYd6Pf.d.cts} +2 -2
- package/dist/{rule-xNwJF6Qo.d.ts → rule-BtjrE42J.d.ts} +2 -2
- package/dist/scopes/index.d.cts +3 -3
- package/dist/scopes/index.d.ts +3 -3
- package/dist/search/index.d.cts +1 -1
- package/dist/search/index.d.ts +1 -1
- package/dist/setup/index.cjs +52 -0
- package/dist/setup/index.cjs.map +1 -1
- package/dist/setup/index.d.cts +12 -13
- package/dist/setup/index.d.ts +12 -13
- package/dist/setup/index.js +52 -0
- package/dist/setup/index.js.map +1 -1
- package/dist/{subscription-BVCn1PVe.d.cts → subscription-BEM4B4dR.d.cts} +3 -3
- package/dist/{subscription-DQzPVKBR.d.ts → subscription-Ca15Z7Gu.d.ts} +3 -3
- package/dist/templates/index.d.cts +10 -10
- package/dist/templates/index.d.ts +10 -10
- package/dist/typed-table/index.cjs +52 -0
- package/dist/typed-table/index.cjs.map +1 -1
- package/dist/typed-table/index.d.cts +10 -11
- package/dist/typed-table/index.d.ts +10 -11
- package/dist/typed-table/index.js +52 -0
- package/dist/typed-table/index.js.map +1 -1
- package/dist/{types-3lM5f6b0.d.cts → types-5ql9_q-o.d.cts} +2 -2
- package/dist/{types-04kFNi3-.d.ts → types-BALEbMc8.d.ts} +2 -2
- package/dist/{types-DKJO83lQ.d.cts → types-BhnjvJ8U.d.cts} +2 -2
- package/dist/{types-SUAmeBId.d.ts → types-CURw95qc.d.ts} +2 -2
- package/dist/{types-DKeGkHpE.d.cts → types-DRMeL0uW.d.cts} +2 -2
- package/dist/{types-DJVccwh0.d.ts → types-_odOqLOe.d.ts} +2 -2
- package/dist/use-cases/index.d.cts +5 -5
- package/dist/use-cases/index.d.ts +5 -5
- package/dist/{validate-BIJtP2KB.d.cts → validate-Cdtk0y18.d.cts} +1 -1
- package/dist/{validate--y-pPc-c.d.ts → validate-ChibJPPI.d.ts} +1 -1
- package/dist/views/index.d.cts +9 -10
- package/dist/views/index.d.ts +9 -10
- package/package.json +3 -3
- package/dist/client-C1B-MNzb.d.ts +0 -2704
- package/dist/client-D2jAgJNn.d.cts +0 -2704
package/dist/data/index.d.cts
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { C as Column, Q as Query, A as AliasBinding, H as HostDataPort } from '../types-
|
|
2
|
-
export { a as AnyAlias, b as CUSTOM_ROW_TOKEN, D as DataEvents, c as DataPort, d as DataPortEventName, e as DataSource, E as EntityAlias, f as EntityRef, L as Lane, P as Page, R as Row, g as RowsEvent, T as TableAlias, V as Values, W as WhereClause, h as WhereOp } from '../types-
|
|
3
|
-
import { R as RecordsClient } from '../client-
|
|
4
|
-
import { F as Field } from '../field-
|
|
5
|
-
import { U as Uuid, R as RecordsResult,
|
|
6
|
-
import { R as RuleExpression } from '../rule-
|
|
7
|
-
import '../relation-
|
|
8
|
-
import '../ports-
|
|
9
|
-
import '../
|
|
10
|
-
import '../
|
|
11
|
-
import '../
|
|
12
|
-
import '../portal-C4N9ByaY.cjs';
|
|
1
|
+
import { C as Column, Q as Query, A as AliasBinding, H as HostDataPort } from '../types-5ql9_q-o.cjs';
|
|
2
|
+
export { a as AnyAlias, b as CUSTOM_ROW_TOKEN, D as DataEvents, c as DataPort, d as DataPortEventName, e as DataSource, E as EntityAlias, f as EntityRef, L as Lane, P as Page, R as Row, g as RowsEvent, T as TableAlias, V as Values, W as WhereClause, h as WhereOp } from '../types-5ql9_q-o.cjs';
|
|
3
|
+
import { R as RecordsClient } from '../client-9fzhCPD5.cjs';
|
|
4
|
+
import { F as Field } from '../field-BLy8drjM.cjs';
|
|
5
|
+
import { U as Uuid, R as RecordsResult, k as RecordPageSort, l as ReadRow } from '../record-BrJNCmH1.cjs';
|
|
6
|
+
import { R as RuleExpression } from '../rule-BGtYd6Pf.cjs';
|
|
7
|
+
import '../relation-R10qQyQU.cjs';
|
|
8
|
+
import '../ports-BIdYUS-C.cjs';
|
|
9
|
+
import '../subscription-BEM4B4dR.cjs';
|
|
10
|
+
import '../doors-Dm5q9H8Y.cjs';
|
|
11
|
+
import '../portal-C_LgvDeh.cjs';
|
|
13
12
|
|
|
14
13
|
interface TableShape {
|
|
15
14
|
columns: Column[];
|
package/dist/data/index.d.ts
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { C as Column, Q as Query, A as AliasBinding, H as HostDataPort } from '../types-
|
|
2
|
-
export { a as AnyAlias, b as CUSTOM_ROW_TOKEN, D as DataEvents, c as DataPort, d as DataPortEventName, e as DataSource, E as EntityAlias, f as EntityRef, L as Lane, P as Page, R as Row, g as RowsEvent, T as TableAlias, V as Values, W as WhereClause, h as WhereOp } from '../types-
|
|
3
|
-
import { R as RecordsClient } from '../client-
|
|
4
|
-
import { F as Field } from '../field-
|
|
5
|
-
import { U as Uuid, R as RecordsResult,
|
|
6
|
-
import { R as RuleExpression } from '../rule-
|
|
7
|
-
import '../relation-
|
|
8
|
-
import '../ports-
|
|
9
|
-
import '../
|
|
10
|
-
import '../
|
|
11
|
-
import '../
|
|
12
|
-
import '../portal-DW5NGBT0.js';
|
|
1
|
+
import { C as Column, Q as Query, A as AliasBinding, H as HostDataPort } from '../types-BALEbMc8.js';
|
|
2
|
+
export { a as AnyAlias, b as CUSTOM_ROW_TOKEN, D as DataEvents, c as DataPort, d as DataPortEventName, e as DataSource, E as EntityAlias, f as EntityRef, L as Lane, P as Page, R as Row, g as RowsEvent, T as TableAlias, V as Values, W as WhereClause, h as WhereOp } from '../types-BALEbMc8.js';
|
|
3
|
+
import { R as RecordsClient } from '../client-DcWZjmg2.js';
|
|
4
|
+
import { F as Field } from '../field-BIRNApm1.js';
|
|
5
|
+
import { U as Uuid, R as RecordsResult, k as RecordPageSort, l as ReadRow } from '../record-BrJNCmH1.js';
|
|
6
|
+
import { R as RuleExpression } from '../rule-BtjrE42J.js';
|
|
7
|
+
import '../relation-BxGXLRaG.js';
|
|
8
|
+
import '../ports-BE_5jz-c.js';
|
|
9
|
+
import '../subscription-Ca15Z7Gu.js';
|
|
10
|
+
import '../doors-t-Oc2l9E.js';
|
|
11
|
+
import '../portal-B9HCNPTc.js';
|
|
13
12
|
|
|
14
13
|
interface TableShape {
|
|
15
14
|
columns: Column[];
|
package/dist/data/index.js
CHANGED
|
@@ -2710,6 +2710,14 @@ var DOORS = {
|
|
|
2710
2710
|
// archived and aliased), and put any recorded Migration back.
|
|
2711
2711
|
migrateMerge: "migrate_merge",
|
|
2712
2712
|
migrateUndo: "migrate_undo",
|
|
2713
|
+
// CORE-VISION (2026-10-10): the structural Migrations a person runs on ONE record from its menu.
|
|
2714
|
+
// Split moves the named values to a new record of the same Table (the original keeps its id);
|
|
2715
|
+
// extract parent copies the named values up into a new record of another Table and puts this
|
|
2716
|
+
// record under it. Both answer a `migration_id` that `migrateUndo` takes. `migrations` lists
|
|
2717
|
+
// the Migration log for one target, newest first.
|
|
2718
|
+
migrateSplit: "migrate_split",
|
|
2719
|
+
migrateExtractParent: "migrate_extract_parent",
|
|
2720
|
+
migrations: "migrations",
|
|
2713
2721
|
recordValues: "record_values",
|
|
2714
2722
|
recordValuesVersioned: "record_values_versioned",
|
|
2715
2723
|
valueRead: "value_read",
|
|
@@ -4632,6 +4640,49 @@ function createRecordsClient(given) {
|
|
|
4632
4640
|
}
|
|
4633
4641
|
return result;
|
|
4634
4642
|
},
|
|
4643
|
+
async migrateSplit({ record_id, moved_keys, note }) {
|
|
4644
|
+
const result = await callDoor(
|
|
4645
|
+
DOORS.migrateSplit,
|
|
4646
|
+
{ p_organization_id: org, p_record_id: record_id, p_moved_keys: moved_keys, p_note: note ?? null },
|
|
4647
|
+
"migrateSplit"
|
|
4648
|
+
);
|
|
4649
|
+
if (result.ok) {
|
|
4650
|
+
announceRecordChanged(record_id);
|
|
4651
|
+
announceRecordChanged(result.data.new_record);
|
|
4652
|
+
}
|
|
4653
|
+
return result;
|
|
4654
|
+
},
|
|
4655
|
+
async migrateExtractParent({ record_id, parent_table_id, moved_keys, note }) {
|
|
4656
|
+
const result = await callDoor(
|
|
4657
|
+
DOORS.migrateExtractParent,
|
|
4658
|
+
{ p_organization_id: org, p_id: record_id, p_parent_table_id: parent_table_id, p_moved_keys: moved_keys, p_note: note ?? null },
|
|
4659
|
+
"migrateExtractParent"
|
|
4660
|
+
);
|
|
4661
|
+
if (result.ok) {
|
|
4662
|
+
announceRecordChanged(record_id);
|
|
4663
|
+
announceRecordChanged(result.data.parent);
|
|
4664
|
+
}
|
|
4665
|
+
return result;
|
|
4666
|
+
},
|
|
4667
|
+
async migrations({ target_id, limit }) {
|
|
4668
|
+
return callDoor(
|
|
4669
|
+
DOORS.migrations,
|
|
4670
|
+
{ p_organization_id: org, p_target_id: target_id ?? null, p_limit: limit ?? 100 },
|
|
4671
|
+
"migrations"
|
|
4672
|
+
);
|
|
4673
|
+
},
|
|
4674
|
+
async recordAsOf({ record_id, recorded_at, world_on }) {
|
|
4675
|
+
return callDoor(
|
|
4676
|
+
DOORS.queryRecordAsOf,
|
|
4677
|
+
{
|
|
4678
|
+
p_organization_id: org,
|
|
4679
|
+
p_record_id: record_id,
|
|
4680
|
+
...recorded_at ? { p_recorded_at: recorded_at } : {},
|
|
4681
|
+
...world_on ? { p_world_on: world_on.slice(0, 10) } : {}
|
|
4682
|
+
},
|
|
4683
|
+
"recordAsOf"
|
|
4684
|
+
);
|
|
4685
|
+
},
|
|
4635
4686
|
async migrateUndo({ migration_id }) {
|
|
4636
4687
|
const result = await callDoor(
|
|
4637
4688
|
DOORS.migrateUndo,
|
|
@@ -4639,6 +4690,7 @@ function createRecordsClient(given) {
|
|
|
4639
4690
|
"migrateUndo"
|
|
4640
4691
|
);
|
|
4641
4692
|
if (result.ok && result.data.record_id) announceRecordChanged(result.data.record_id);
|
|
4693
|
+
if (result.ok && result.data.removed) announceRecordChanged(result.data.removed);
|
|
4642
4694
|
return result;
|
|
4643
4695
|
},
|
|
4644
4696
|
async fieldUpdate({ field_id, patch }) {
|