@ai-matrx/records 0.77.3 → 0.78.1
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 +90 -1
- 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 +90 -1
- 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 +94 -9
- 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 +92 -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 +4 -6
- 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 +4 -6
- package/dist/index.js.map +1 -1
- package/dist/memory/index.cjs +2 -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 +2 -0
- 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 +92 -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 +92 -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 +2 -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 +2 -0
- 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 +3 -3
|
@@ -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
|
@@ -545,6 +545,7 @@ function previewRuleChange(rules, groups, partial = false) {
|
|
|
545
545
|
}
|
|
546
546
|
|
|
547
547
|
// src/newerKinds.ts
|
|
548
|
+
var import_format = require("@ai-matrx/kit/format");
|
|
548
549
|
var NEWER_FIELD_KINDS = [
|
|
549
550
|
"rating",
|
|
550
551
|
"duration",
|
|
@@ -589,12 +590,7 @@ function ratingMaxOf(field) {
|
|
|
589
590
|
function durationText(seconds) {
|
|
590
591
|
const n = typeof seconds === "number" ? seconds : typeof seconds === "string" && seconds.trim() !== "" ? Number(seconds) : NaN;
|
|
591
592
|
if (!Number.isFinite(n)) return null;
|
|
592
|
-
|
|
593
|
-
const h = Math.floor(whole / 3600);
|
|
594
|
-
const m = Math.floor(whole % 3600 / 60);
|
|
595
|
-
const s = whole % 60;
|
|
596
|
-
const sign = n < 0 ? "-" : "";
|
|
597
|
-
return s === 0 ? `${sign}${h}:${String(m).padStart(2, "0")}` : `${sign}${h}:${String(m).padStart(2, "0")}:${String(s).padStart(2, "0")}`;
|
|
593
|
+
return (0, import_format.formatDurationSeconds)(Math.round(n), { granularity: "minute", signed: true });
|
|
598
594
|
}
|
|
599
595
|
function readTypedDuration(text) {
|
|
600
596
|
const t = text.trim().toLowerCase();
|
|
@@ -2718,6 +2714,7 @@ var STORE_DOORS = [
|
|
|
2718
2714
|
{ 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
2715
|
{ 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
2716
|
{ 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" },
|
|
2717
|
+
{ 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
2718
|
{ 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
2719
|
{ 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
2720
|
{ name: "declared_conversation", args: "", returns: "uuid", security: "invoker" },
|
|
@@ -3298,6 +3295,7 @@ var STORE_DOORS = [
|
|
|
3298
3295
|
{ name: "table_list_everywhere", args: "p_organization_id uuid DEFAULT NULL::uuid", returns: "jsonb", security: "definer" },
|
|
3299
3296
|
{ name: "table_list_everywhere", args: "p_organization_id uuid, p_include_app_tables boolean", returns: "jsonb", security: "invoker" },
|
|
3300
3297
|
{ name: "table_move", args: "p_table_id uuid, p_to_organization_id uuid, p_expected_version integer DEFAULT NULL::integer", returns: "jsonb", security: "definer" },
|
|
3298
|
+
{ 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
3299
|
{ 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
3300
|
{ name: "table_record_ceiling", args: "", returns: "integer", security: "invoker" },
|
|
3303
3301
|
{ name: "table_record_ceiling", args: "p_organization_id uuid", returns: "integer", security: "invoker" },
|