@ai-matrx/records 0.78.0 → 0.79.0
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 +12 -0
- package/dist/app-table/index.cjs +12 -0
- package/dist/app-table/index.cjs.map +1 -1
- package/dist/app-table/index.d.cts +7 -7
- package/dist/app-table/index.d.ts +7 -7
- package/dist/app-table/index.js +12 -0
- package/dist/app-table/index.js.map +1 -1
- package/dist/{client-BExNR0TK.d.cts → client-BKXt18rw.d.cts} +15 -5
- package/dist/{client-Byn_UthM.d.ts → client-SM21Erad.d.ts} +15 -5
- package/dist/core/index.cjs +21 -11
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +12 -11
- package/dist/core/index.d.ts +12 -11
- package/dist/core/index.js +19 -9
- package/dist/core/index.js.map +1 -1
- package/dist/data/index.cjs +12 -0
- package/dist/data/index.cjs.map +1 -1
- package/dist/data/index.d.cts +6 -6
- package/dist/data/index.d.ts +6 -6
- package/dist/data/index.js +12 -0
- package/dist/data/index.js.map +1 -1
- package/dist/{declareTable-DWOh53eK.d.ts → declareTable-CRPC4uku.d.ts} +4 -4
- package/dist/{declareTable-CgrEusy8.d.cts → declareTable-DVbm7Rck.d.cts} +4 -4
- package/dist/{field-t9aefszx.d.cts → field-DCXU6k9i.d.cts} +14 -2
- package/dist/{field-B2bvpqcE.d.ts → field-DJAvDExi.d.ts} +14 -2
- package/dist/index.cjs +10 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +10 -9
- package/dist/index.js.map +1 -1
- package/dist/memory/index.cjs +3 -0
- package/dist/memory/index.cjs.map +1 -1
- package/dist/memory/index.d.cts +6 -6
- package/dist/memory/index.d.ts +6 -6
- package/dist/memory/index.js +3 -0
- package/dist/memory/index.js.map +1 -1
- package/dist/{ports-Cjl-IjFa.d.cts → ports-DaHUjVg7.d.cts} +1 -1
- package/dist/{ports-Ch4Ym0tj.d.ts → ports-Kpc-RihV.d.ts} +1 -1
- package/dist/react/index.cjs +19 -9
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +42 -5
- package/dist/react/index.d.ts +42 -5
- package/dist/react/index.js +19 -9
- package/dist/react/index.js.map +1 -1
- package/dist/realtime/index.d.cts +2 -2
- package/dist/realtime/index.d.ts +2 -2
- package/dist/{record-Ba1F1CNS.d.cts → record-DCaOJbhA.d.cts} +19 -4
- package/dist/{record-Ba1F1CNS.d.ts → record-DCaOJbhA.d.ts} +19 -4
- package/dist/{subscription-CccP6N93.d.ts → subscription-B9znK2dw.d.ts} +1 -1
- package/dist/{subscription-DGCrwwSR.d.cts → subscription-C_hNjbaR.d.cts} +1 -1
- package/dist/{table-kind-BMWi8G37.d.ts → table-kind-CJ_K3E1F.d.ts} +3 -3
- package/dist/{table-kind-BoelIMjr.d.cts → table-kind-DoSFfQDe.d.cts} +3 -3
- package/dist/templates/index.cjs +3 -0
- package/dist/templates/index.cjs.map +1 -1
- package/dist/templates/index.d.cts +9 -9
- package/dist/templates/index.d.ts +9 -9
- package/dist/templates/index.js +3 -0
- package/dist/templates/index.js.map +1 -1
- package/dist/{types-euaQwxnB.d.cts → types-CD2HoaZt.d.cts} +2 -2
- package/dist/{types-CtyMwJvy.d.ts → types-CHEFgCu1.d.ts} +2 -2
- package/dist/{types-D-Mhiodh.d.cts → types-DuyBN2im.d.cts} +2 -2
- package/dist/{types-CiHdoATO.d.ts → types-b-VGi15H.d.ts} +2 -2
- package/dist/use-cases/index.cjs.map +1 -1
- package/dist/use-cases/index.d.cts +5 -5
- package/dist/use-cases/index.d.ts +5 -5
- package/dist/use-cases/index.js.map +1 -1
- package/dist/{validate-B-p3YPgA.d.ts → validate-BEfYwBpA.d.ts} +1 -1
- package/dist/{validate-COvMcv8z.d.cts → validate-CubFFxpu.d.cts} +1 -1
- package/package.json +3 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { N as NewFieldSpec } from '../declareTable-
|
|
2
|
-
import { U as Uuid, h as RecordsResult, n as RecordPageSort } from '../record-
|
|
3
|
-
import { R as RecordsClient } from '../client-
|
|
4
|
-
import { F as FieldDrift, T as TableArchiveProgress } from '../table-kind-
|
|
5
|
-
import '../field-
|
|
6
|
-
import '../subscription-
|
|
7
|
-
import '../ports-
|
|
1
|
+
import { N as NewFieldSpec } from '../declareTable-DVbm7Rck.cjs';
|
|
2
|
+
import { U as Uuid, h as RecordsResult, n as RecordPageSort } from '../record-DCaOJbhA.cjs';
|
|
3
|
+
import { R as RecordsClient } from '../client-BKXt18rw.cjs';
|
|
4
|
+
import { F as FieldDrift, T as TableArchiveProgress } from '../table-kind-DoSFfQDe.cjs';
|
|
5
|
+
import '../field-DCXU6k9i.cjs';
|
|
6
|
+
import '../subscription-C_hNjbaR.cjs';
|
|
7
|
+
import '../ports-DaHUjVg7.cjs';
|
|
8
8
|
|
|
9
9
|
/** Where a declared field's value goes in the graduated table. */
|
|
10
10
|
declare const TO_CUSTOM_FIELDS: "custom_fields";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { N as NewFieldSpec } from '../declareTable-
|
|
2
|
-
import { U as Uuid, h as RecordsResult, n as RecordPageSort } from '../record-
|
|
3
|
-
import { R as RecordsClient } from '../client-
|
|
4
|
-
import { F as FieldDrift, T as TableArchiveProgress } from '../table-kind-
|
|
5
|
-
import '../field-
|
|
6
|
-
import '../subscription-
|
|
7
|
-
import '../ports-
|
|
1
|
+
import { N as NewFieldSpec } from '../declareTable-CRPC4uku.js';
|
|
2
|
+
import { U as Uuid, h as RecordsResult, n as RecordPageSort } from '../record-DCaOJbhA.js';
|
|
3
|
+
import { R as RecordsClient } from '../client-SM21Erad.js';
|
|
4
|
+
import { F as FieldDrift, T as TableArchiveProgress } from '../table-kind-CJ_K3E1F.js';
|
|
5
|
+
import '../field-DJAvDExi.js';
|
|
6
|
+
import '../subscription-B9znK2dw.js';
|
|
7
|
+
import '../ports-Kpc-RihV.js';
|
|
8
8
|
|
|
9
9
|
/** Where a declared field's value goes in the graduated table. */
|
|
10
10
|
declare const TO_CUSTOM_FIELDS: "custom_fields";
|
package/dist/app-table/index.js
CHANGED
|
@@ -1122,6 +1122,7 @@ var STORE_DOORS = [
|
|
|
1122
1122
|
{ name: "doors_refusing_in_another_doors_name", args: "", returns: "TABLE(function_name text, identity_args text, why text)", security: "invoker" },
|
|
1123
1123
|
{ name: "drill_resolve", args: "p_organization_id uuid, p_table_id uuid, p_group_by jsonb, p_measures jsonb, p_bucket jsonb", returns: "jsonb", security: "invoker" },
|
|
1124
1124
|
{ name: "effective_level", args: "p_user_id uuid, p_organization_id uuid, p_id uuid, p_type text DEFAULT 'record'::text", returns: "permission_level", security: "definer" },
|
|
1125
|
+
{ name: "effective_level_many", args: "p_user_id uuid, p_ids uuid[], p_type text DEFAULT 'record'::text", returns: "TABLE(id uuid, level permission_level)", security: "definer" },
|
|
1125
1126
|
{ name: "enrich_cells", args: "p_organization_id uuid, p_table_id uuid, p_field_keys text[] DEFAULT NULL::text[], p_record_ids uuid[] DEFAULT NULL::uuid[]", returns: "TABLE(record_id uuid, field_key text, agent_owned boolean, value jsonb, value_version integer, actor text, on_behalf_of text, written_at timestamp with time zone, source jsonb, absent_reason text, alternates jsonb, pinned boolean, stale boolean, due_at timestamp with time zone)", security: "definer" },
|
|
1126
1127
|
{ name: "enrich_declare", args: "p_organization_id uuid, p_field_id uuid, p_spec jsonb", returns: "jsonb", security: "definer" },
|
|
1127
1128
|
{ name: "enrich_due", args: "p_organization_id uuid, p_field_id uuid, p_limit integer DEFAULT 50, p_include_fresh boolean DEFAULT false, p_record_ids uuid[] DEFAULT NULL::uuid[]", returns: "TABLE(record_id uuid, title text, inputs jsonb, current_value jsonb, written_at timestamp with time zone, reason text, trimmed_to integer)", security: "definer" },
|
|
@@ -1177,6 +1178,7 @@ var STORE_DOORS = [
|
|
|
1177
1178
|
{ name: "field_cycle", args: "p_organization_id uuid, p_field_data jsonb, p_self uuid", returns: "text[]", security: "definer" },
|
|
1178
1179
|
{ name: "field_declare", args: "p_organization_id uuid, p_table_id uuid, p_spec jsonb", returns: "uuid", security: "definer" },
|
|
1179
1180
|
{ name: "field_dependants", args: "p_organization_id uuid, p_field_id uuid", returns: "TABLE(kind text, dependant_id uuid, label text, how text)", security: "definer" },
|
|
1181
|
+
{ name: "field_duplicate", args: "p_organization_id uuid, p_field_id uuid", returns: "jsonb", security: "definer" },
|
|
1180
1182
|
{ name: "field_history", args: "p_organization_id uuid, p_table_id uuid, p_field_key text, p_limit integer DEFAULT 100, p_offset integer DEFAULT 0, p_record_id uuid DEFAULT NULL::uuid", returns: "TABLE(record_id uuid, record_title text, version integer, occurred_at timestamp with time zone, operation_label text, actor jsonb, before jsonb, after jsonb)", security: "definer" },
|
|
1181
1183
|
{ name: "field_input_closure", args: "p_organization_id uuid, p_field_data jsonb, p_self uuid DEFAULT NULL::uuid", returns: "TABLE(input_id uuid, input_key text, input_label text, input_table uuid, sensitivity text, retired boolean, depth integer)", security: "definer" },
|
|
1182
1184
|
{ name: "field_inputs_of", args: "p_organization_id uuid, p_field_data jsonb", returns: "TABLE(input_id uuid, input_key text, input_label text, input_table uuid, sensitivity text, retired boolean, how text)", security: "definer" },
|
|
@@ -1450,6 +1452,7 @@ var STORE_DOORS = [
|
|
|
1450
1452
|
{ name: "query_visible_ids", args: "p_organization_id uuid, p_table_id uuid DEFAULT NULL::uuid, p_required text DEFAULT 'viewer'::text", returns: "SETOF uuid", security: "definer" },
|
|
1451
1453
|
{ name: "reachable_from", args: "p_organization_id uuid, p_roots uuid[]", returns: "TABLE(record_id uuid, depth integer, via text)", security: "invoker" },
|
|
1452
1454
|
{ name: "reaches_directly", args: "p_user_id uuid, p_type text, p_id uuid, p_required permission_level DEFAULT 'viewer'::permission_level", returns: "boolean", security: "definer" },
|
|
1455
|
+
{ name: "reaches_directly_many", args: "p_user_id uuid, p_targets uuid[], p_type text DEFAULT 'record'::text, p_required permission_level DEFAULT 'viewer'::permission_level", returns: "TABLE(target uuid, reaches boolean)", security: "definer" },
|
|
1453
1456
|
{ name: "read_door_carried_ids", args: "p_user uuid, p_organization_id uuid, p_table_id uuid, p_required permission_level, OUT o_ids uuid[], OUT o_containers integer", returns: "record", security: "definer" },
|
|
1454
1457
|
{ name: "read_door_granted_ids", args: "p_organization_id uuid, p_table_id uuid", returns: "uuid[]", security: "definer" },
|
|
1455
1458
|
{ name: "read_door_ladder_ceiling", args: "", returns: "integer", security: "invoker" },
|
|
@@ -2021,6 +2024,8 @@ var DOORS = {
|
|
|
2021
2024
|
// THE UNDO OF field_retire (lane STORE-RESTORE-DOORS): the set that went together comes back
|
|
2022
2025
|
// whole, the Table declares the columns again, and the values never left the records.
|
|
2023
2026
|
fieldRestore: "field_restore",
|
|
2027
|
+
// DUPLICATE PROPERTY (Notion N5): the copy declared and every record's value copied, in one door.
|
|
2028
|
+
fieldDuplicate: "field_duplicate",
|
|
2024
2029
|
// CHAIR-ROLLUP-HONEST: is a column a lookup or roll-up reads archived, and which.
|
|
2025
2030
|
fieldSourceArchived: "field_source_archived",
|
|
2026
2031
|
// KINDS-GLUE wave 3 N1: a Table as a kind — its Fields, choices and stamp, as the reader.
|
|
@@ -3795,6 +3800,13 @@ function createRecordsClient(given) {
|
|
|
3795
3800
|
"fieldRestore"
|
|
3796
3801
|
));
|
|
3797
3802
|
},
|
|
3803
|
+
async fieldDuplicate({ field_id }) {
|
|
3804
|
+
return structureMoved(null, await callDoor(
|
|
3805
|
+
DOORS.fieldDuplicate,
|
|
3806
|
+
{ p_organization_id: org, p_field_id: field_id },
|
|
3807
|
+
"fieldDuplicate"
|
|
3808
|
+
));
|
|
3809
|
+
},
|
|
3798
3810
|
async fieldSourceArchived({ field_id }) {
|
|
3799
3811
|
const result = await callDoor(
|
|
3800
3812
|
DOORS.fieldSourceArchived,
|