@ai-matrx/records 0.77.2 → 0.78.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 +15 -0
- package/dist/app-table/index.cjs +94 -5
- 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 +94 -5
- package/dist/app-table/index.js.map +1 -1
- package/dist/{client-DZ3UcU4_.d.cts → client-BExNR0TK.d.cts} +5 -5
- package/dist/{client-ZIxyAOdh.d.ts → client-Byn_UthM.d.ts} +5 -5
- package/dist/core/index.cjs +98 -7
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +11 -11
- package/dist/core/index.d.ts +11 -11
- package/dist/core/index.js +98 -7
- package/dist/core/index.js.map +1 -1
- package/dist/data/index.cjs +90 -1
- 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 +90 -1
- package/dist/data/index.js.map +1 -1
- package/dist/{declareTable-BYZdFrt5.d.cts → declareTable-CgrEusy8.d.cts} +4 -4
- package/dist/{declareTable-DGSJMqGx.d.ts → declareTable-DWOh53eK.d.ts} +4 -4
- package/dist/{field-D7I9yck6.d.ts → field-B2bvpqcE.d.ts} +1 -1
- package/dist/{field-BTW7h7Wh.d.cts → field-t9aefszx.d.cts} +1 -1
- package/dist/index.cjs +6 -2
- 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 +6 -2
- package/dist/index.js.map +1 -1
- package/dist/memory/index.cjs +6 -1
- 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 +6 -1
- package/dist/memory/index.js.map +1 -1
- package/dist/{ports-CaYEF1dG.d.ts → ports-Ch4Ym0tj.d.ts} +7 -1
- package/dist/{ports-PpvsH1cQ.d.cts → ports-Cjl-IjFa.d.cts} +7 -1
- package/dist/react/index.cjs +98 -7
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +16 -0
- package/dist/react/index.d.ts +16 -0
- package/dist/react/index.js +98 -7
- 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-B7iwye2k.d.cts → record-Ba1F1CNS.d.cts} +10 -0
- package/dist/{record-B7iwye2k.d.ts → record-Ba1F1CNS.d.ts} +10 -0
- package/dist/{subscription-BWaRPLyo.d.ts → subscription-CccP6N93.d.ts} +1 -1
- package/dist/{subscription-Br30ZwIt.d.cts → subscription-DGCrwwSR.d.cts} +1 -1
- package/dist/{table-kind-Da21ZLdJ.d.ts → table-kind-BMWi8G37.d.ts} +3 -3
- package/dist/{table-kind-HAQ6WNxZ.d.cts → table-kind-BoelIMjr.d.cts} +3 -3
- package/dist/templates/index.cjs +6 -2
- 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 +6 -2
- package/dist/templates/index.js.map +1 -1
- package/dist/{types-DrJLOqVi.d.ts → types-CiHdoATO.d.ts} +2 -2
- package/dist/{types-DWZ5_3by.d.ts → types-CtyMwJvy.d.ts} +2 -2
- package/dist/{types-DYoWzHwJ.d.cts → types-D-Mhiodh.d.cts} +2 -2
- package/dist/{types-LvxsZ6Zv.d.cts → types-euaQwxnB.d.cts} +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-j0WQoC3C.d.ts → validate-B-p3YPgA.d.ts} +1 -1
- package/dist/{validate-CRdXE73G.d.cts → validate-COvMcv8z.d.cts} +1 -1
- package/package.json +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { R as RecordsClient } from './client-
|
|
2
|
-
import { F as FieldTypeWord, N as NewFieldDeclaration } from './field-
|
|
3
|
-
import { U as Uuid, R as RecordsError } from './record-
|
|
4
|
-
import { F as FieldDrift } from './table-kind-
|
|
1
|
+
import { R as RecordsClient } from './client-BExNR0TK.cjs';
|
|
2
|
+
import { F as FieldTypeWord, N as NewFieldDeclaration } from './field-t9aefszx.cjs';
|
|
3
|
+
import { U as Uuid, R as RecordsError } from './record-Ba1F1CNS.cjs';
|
|
4
|
+
import { F as FieldDrift } from './table-kind-BoelIMjr.cjs';
|
|
5
5
|
|
|
6
6
|
/** One Field a person asked for, in the words a person uses (FLD-1 / FLD-11). */
|
|
7
7
|
interface NewFieldSpec {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { R as RecordsClient } from './client-
|
|
2
|
-
import { F as FieldTypeWord, N as NewFieldDeclaration } from './field-
|
|
3
|
-
import { U as Uuid, R as RecordsError } from './record-
|
|
4
|
-
import { F as FieldDrift } from './table-kind-
|
|
1
|
+
import { R as RecordsClient } from './client-Byn_UthM.js';
|
|
2
|
+
import { F as FieldTypeWord, N as NewFieldDeclaration } from './field-B2bvpqcE.js';
|
|
3
|
+
import { U as Uuid, R as RecordsError } from './record-Ba1F1CNS.js';
|
|
4
|
+
import { F as FieldDrift } from './table-kind-BMWi8G37.js';
|
|
5
5
|
|
|
6
6
|
/** One Field a person asked for, in the words a person uses (FLD-1 / FLD-11). */
|
|
7
7
|
interface NewFieldSpec {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as DeclarableFieldKind, u as FieldBehavior, v as ParityFieldType, b as FieldSensitivity, c as ContextPolicy, U as Uuid, C as ComputeOn, O as OnDelete, F as FieldSource, f as Timestamp } from './record-
|
|
1
|
+
import { D as DeclarableFieldKind, u as FieldBehavior, v as ParityFieldType, b as FieldSensitivity, c as ContextPolicy, U as Uuid, C as ComputeOn, O as OnDelete, F as FieldSource, f as Timestamp } from './record-Ba1F1CNS.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* EVERYTHING THIS FILE NEEDS TO KNOW ABOUT A FIELD, AND NOTHING ELSE.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as DeclarableFieldKind, u as FieldBehavior, v as ParityFieldType, b as FieldSensitivity, c as ContextPolicy, U as Uuid, C as ComputeOn, O as OnDelete, F as FieldSource, f as Timestamp } from './record-
|
|
1
|
+
import { D as DeclarableFieldKind, u as FieldBehavior, v as ParityFieldType, b as FieldSensitivity, c as ContextPolicy, U as Uuid, C as ComputeOn, O as OnDelete, F as FieldSource, f as Timestamp } from './record-Ba1F1CNS.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* EVERYTHING THIS FILE NEEDS TO KNOW ABOUT A FIELD, AND NOTHING ELSE.
|
package/dist/index.cjs
CHANGED
|
@@ -2718,6 +2718,7 @@ var STORE_DOORS = [
|
|
|
2718
2718
|
{ name: "data_home", args: "p_organization_id uuid DEFAULT NULL::uuid, p_search text DEFAULT NULL::text, p_include_app_tables boolean DEFAULT false", returns: "jsonb", security: "definer" },
|
|
2719
2719
|
{ name: "data_home_changed_by", args: "p_asks jsonb", returns: "TABLE(organization_id uuid, id uuid, at timestamp with time zone, who text)", security: "definer" },
|
|
2720
2720
|
{ name: "data_home_items", args: "p_organization_id uuid DEFAULT NULL::uuid", returns: "TABLE(kind text, organization_id uuid, organization_name text, item_id uuid, table_id uuid, table_name text, item_row jsonb)", security: "definer" },
|
|
2721
|
+
{ name: "data_home_slim", args: "p_organization_id uuid DEFAULT NULL::uuid, p_search text DEFAULT NULL::text, p_include_app_tables boolean DEFAULT false", returns: "jsonb", security: "invoker" },
|
|
2721
2722
|
{ name: "data_home_tables", args: "p_organization_id uuid DEFAULT NULL::uuid", returns: "TABLE(table_id uuid, table_name text, organization_id uuid, organization_name text, member boolean, visibility text, updated_at timestamp with time zone, mine boolean, shared_with_me boolean, kept_by_the_app boolean, kind text, team boolean, system boolean, created_by uuid)", security: "definer" },
|
|
2722
2723
|
{ name: "data_home_tables", args: "p_organization_id uuid, p_include_app_tables boolean", returns: "TABLE(table_id uuid, table_name text, organization_id uuid, organization_name text, member boolean, visibility text, updated_at timestamp with time zone, mine boolean, shared_with_me boolean, kept_by_the_app boolean, kind text, team boolean, system boolean, created_by uuid)", security: "invoker" },
|
|
2723
2724
|
{ name: "declared_conversation", args: "", returns: "uuid", security: "invoker" },
|
|
@@ -3298,6 +3299,7 @@ var STORE_DOORS = [
|
|
|
3298
3299
|
{ name: "table_list_everywhere", args: "p_organization_id uuid DEFAULT NULL::uuid", returns: "jsonb", security: "definer" },
|
|
3299
3300
|
{ name: "table_list_everywhere", args: "p_organization_id uuid, p_include_app_tables boolean", returns: "jsonb", security: "invoker" },
|
|
3300
3301
|
{ name: "table_move", args: "p_table_id uuid, p_to_organization_id uuid, p_expected_version integer DEFAULT NULL::integer", returns: "jsonb", security: "definer" },
|
|
3302
|
+
{ name: "table_page_bundle", args: "p_organization_id uuid, p_table_id uuid, p_view_id uuid DEFAULT NULL::uuid", returns: "jsonb", security: "invoker" },
|
|
3301
3303
|
{ name: "table_placement", args: "p_organization_id uuid, p_table_id uuid, p_data jsonb, p_is_kernel boolean DEFAULT false", returns: "jsonb", security: "invoker" },
|
|
3302
3304
|
{ name: "table_record_ceiling", args: "", returns: "integer", security: "invoker" },
|
|
3303
3305
|
{ name: "table_record_ceiling", args: "p_organization_id uuid", returns: "integer", security: "invoker" },
|
|
@@ -4638,6 +4640,9 @@ function scopeChip(scope) {
|
|
|
4638
4640
|
return scope.title ? `About: ${scope.title}` : "About: this record";
|
|
4639
4641
|
}
|
|
4640
4642
|
|
|
4643
|
+
// src/table-kind.ts
|
|
4644
|
+
var import_uuid5 = require("@ai-matrx/kit/uuid");
|
|
4645
|
+
|
|
4641
4646
|
// src/table-kind-mapping.json
|
|
4642
4647
|
var table_kind_mapping_default = {
|
|
4643
4648
|
about: "THE ONE MAPPING from a store Field to a kind's three schemas (KINDS-GLUE wave 3 \xA72). Hand-written here; aidream copies it verbatim to packages/matrx-graph/matrx_graph/table_kind_mapping.json (scripts/generate_table_kind_mapping.py --check). Both languages derive from this file only: @ai-matrx/records src/table-kind.ts and matrx_graph.table_kinds. Keys of `kinds` are the store's field kinds (custom.field_kinds() plus the formula `system` kinds custom.field_kind_of answers). Stored mode only: `column_source_default` is custom.table_column_source's answer when the facts carry none (silence means the doctrine: Field rows are the columns); `platform_keys` mirrors custom.record_platform_keys() with each key's shape (parent_id: custom.containment_parent's uuid cast; icon: the record's own @ai-matrx/icons name, a string or null); `stored_patterns` mirror custom.validate_values' relation id regex and, for dates, refuse a string the timestamptz cast can never read (no digits, not a special word) while never refusing one it can.",
|
|
@@ -4716,14 +4721,13 @@ var table_kind_mapping_default = {
|
|
|
4716
4721
|
|
|
4717
4722
|
// src/table-kind.ts
|
|
4718
4723
|
var TABLE_KIND_PREFIX = "table:";
|
|
4719
|
-
var UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;
|
|
4720
4724
|
var KIND_KEY = "__kind";
|
|
4721
4725
|
var M = table_kind_mapping_default;
|
|
4722
4726
|
function tableKindMapping() {
|
|
4723
4727
|
return M;
|
|
4724
4728
|
}
|
|
4725
4729
|
function isTableKind(slug) {
|
|
4726
|
-
return typeof slug === "string" && slug.startsWith(TABLE_KIND_PREFIX) &&
|
|
4730
|
+
return typeof slug === "string" && slug.startsWith(TABLE_KIND_PREFIX) && (0, import_uuid5.isLowercaseUuidShape)(slug.slice(TABLE_KIND_PREFIX.length));
|
|
4727
4731
|
}
|
|
4728
4732
|
function tableKindSlug(tableId) {
|
|
4729
4733
|
const slug = `${TABLE_KIND_PREFIX}${String(tableId).trim().toLowerCase()}`;
|