@ai-matrx/records 0.76.19 → 0.77.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 +18 -0
- package/dist/app-table/index.cjs +81 -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 +81 -0
- package/dist/app-table/index.js.map +1 -1
- package/dist/{client-C8G7zUMQ.d.ts → client-BbzLb-sB.d.ts} +53 -5
- package/dist/{client-EaE4ta6p.d.cts → client-BcGGEpNi.d.cts} +53 -5
- package/dist/core/index.cjs +93 -6
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +21 -11
- package/dist/core/index.d.ts +21 -11
- package/dist/core/index.js +93 -6
- package/dist/core/index.js.map +1 -1
- package/dist/data/index.cjs +81 -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 +81 -0
- package/dist/data/index.js.map +1 -1
- package/dist/{declareTable-aoFu32Ca.d.cts → declareTable-COEPJpke.d.cts} +4 -4
- package/dist/{declareTable-3yW8GrJE.d.ts → declareTable-Dxq0Aega.d.ts} +4 -4
- package/dist/{field-DkB6Nods.d.cts → field-BTW7h7Wh.d.cts} +1 -1
- package/dist/{field-cWRPTM3U.d.ts → field-D7I9yck6.d.ts} +1 -1
- package/dist/index.cjs +26 -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 +26 -6
- package/dist/index.js.map +1 -1
- package/dist/memory/index.cjs +31 -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 +31 -0
- package/dist/memory/index.js.map +1 -1
- package/dist/{ports-C2_pOWrL.d.ts → ports-CaYEF1dG.d.ts} +1 -1
- package/dist/{ports-C83nhjoM.d.cts → ports-PpvsH1cQ.d.cts} +1 -1
- package/dist/react/index.cjs +93 -6
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +318 -14
- package/dist/react/index.d.ts +318 -14
- package/dist/react/index.js +93 -6
- 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-DVtXK-6L.d.cts → record-B7iwye2k.d.cts} +75 -13
- package/dist/{record-DVtXK-6L.d.ts → record-B7iwye2k.d.ts} +75 -13
- package/dist/{subscription-DxtZgyFR.d.ts → subscription-BWaRPLyo.d.ts} +60 -2
- package/dist/{subscription-vpnl6GxJ.d.cts → subscription-Br30ZwIt.d.cts} +60 -2
- package/dist/{table-kind-BtguhnRV.d.cts → table-kind-C5jsmotR.d.ts} +140 -4
- package/dist/{table-kind-DzyRtFNa.d.ts → table-kind-DrVhYZbX.d.cts} +140 -4
- package/dist/templates/index.cjs +14 -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 +14 -0
- package/dist/templates/index.js.map +1 -1
- package/dist/{types-y8GX3-QC.d.ts → types-DWZ5_3by.d.ts} +2 -2
- package/dist/{types-DWoJFBbr.d.cts → types-DYoWzHwJ.d.cts} +2 -2
- package/dist/{types-DqCWKOYh.d.ts → types-DrJLOqVi.d.ts} +2 -2
- package/dist/{types-X9P-cQd0.d.cts → types-LvxsZ6Zv.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-CEE0ts9g.d.cts → validate-CRdXE73G.d.cts} +1 -1
- package/dist/{validate-d9QMYjBm.d.ts → validate-j0WQoC3C.d.ts} +1 -1
- package/package.json +1 -1
|
@@ -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-COEPJpke.cjs';
|
|
2
|
+
import { U as Uuid, h as RecordsResult, n as RecordPageSort } from '../record-B7iwye2k.cjs';
|
|
3
|
+
import { R as RecordsClient } from '../client-BcGGEpNi.cjs';
|
|
4
|
+
import { F as FieldDrift, T as TableArchiveProgress } from '../table-kind-DrVhYZbX.cjs';
|
|
5
|
+
import '../field-BTW7h7Wh.cjs';
|
|
6
|
+
import '../subscription-Br30ZwIt.cjs';
|
|
7
|
+
import '../ports-PpvsH1cQ.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-Dxq0Aega.js';
|
|
2
|
+
import { U as Uuid, h as RecordsResult, n as RecordPageSort } from '../record-B7iwye2k.js';
|
|
3
|
+
import { R as RecordsClient } from '../client-BbzLb-sB.js';
|
|
4
|
+
import { F as FieldDrift, T as TableArchiveProgress } from '../table-kind-C5jsmotR.js';
|
|
5
|
+
import '../field-D7I9yck6.js';
|
|
6
|
+
import '../subscription-BWaRPLyo.js';
|
|
7
|
+
import '../ports-CaYEF1dG.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
|
@@ -951,6 +951,12 @@ var STORE_DOORS = [
|
|
|
951
951
|
{ name: "assert_public_reader_names_a_public_table", args: "p_organization_id uuid, p_table_id uuid, p_door text", returns: "void", security: "definer" },
|
|
952
952
|
{ name: "assert_scope_door", args: "p_organization_id uuid, p_door text", returns: "void", security: "definer" },
|
|
953
953
|
{ name: "assert_store_door", args: "p_organization_id uuid, p_door text", returns: "void", security: "invoker" },
|
|
954
|
+
{ name: "automation_archive", args: "p_organization_id uuid, p_automation_id uuid", returns: "jsonb", security: "definer" },
|
|
955
|
+
{ name: "automation_declare", args: "p_organization_id uuid, p_table_id uuid, p_spec jsonb, p_automation_id uuid DEFAULT NULL::uuid", returns: "jsonb", security: "definer" },
|
|
956
|
+
{ name: "automation_restore", args: "p_organization_id uuid, p_automation_id uuid", returns: "jsonb", security: "definer" },
|
|
957
|
+
{ name: "automation_runs", args: "p_automation_id uuid, p_limit integer DEFAULT 50, p_cursor timestamp with time zone DEFAULT NULL::timestamp with time zone, p_organization_id uuid DEFAULT NULL::uuid", returns: "jsonb", security: "definer" },
|
|
958
|
+
{ name: "automation_set_enabled", args: "p_organization_id uuid, p_automation_id uuid, p_enabled boolean", returns: "jsonb", security: "definer" },
|
|
959
|
+
{ name: "automations", args: "p_table_id uuid, p_organization_id uuid DEFAULT NULL::uuid, p_include_archived boolean DEFAULT false", returns: "jsonb", security: "definer" },
|
|
954
960
|
{ name: "autonumber_backfill", args: "p_organization_id uuid, p_field_id uuid", returns: "jsonb", security: "definer" },
|
|
955
961
|
{ name: "barcode_symbologies", args: "", returns: "text[]", security: "invoker" },
|
|
956
962
|
{ name: "booking_cancel", args: "p_booking_ref text, p_origin text DEFAULT NULL::text", returns: "TABLE(booking_ref text, record_id uuid, slot_key text, state text, message text)", security: "definer" },
|
|
@@ -1197,13 +1203,18 @@ var STORE_DOORS = [
|
|
|
1197
1203
|
{ name: "form_look_options", args: "p_organization_id uuid, p_presentation jsonb DEFAULT '{}'::jsonb", returns: "jsonb", security: "definer" },
|
|
1198
1204
|
{ name: "form_notify", args: "p_organization_id uuid, p_form_id uuid, p_record_id uuid, p_submission_id uuid", returns: "uuid", security: "invoker" },
|
|
1199
1205
|
{ name: "form_preview_asks", args: "p_organization_id uuid, p_table_id uuid, p_questions jsonb, p_values jsonb", returns: "TABLE(field_key text, asked boolean, decided boolean, said text)", security: "definer" },
|
|
1206
|
+
{ name: "form_preview_route", args: "p_organization_id uuid, p_table_id uuid, p_questions jsonb, p_endings jsonb, p_values jsonb", returns: "jsonb", security: "definer" },
|
|
1200
1207
|
{ name: "form_public", args: "p_form_id uuid", returns: "TABLE(form_id uuid, organization_id uuid, table_id uuid, title text, presentation jsonb, fields jsonb, honeypot_key text, state text, message text)", security: "definer" },
|
|
1201
1208
|
{ name: "form_public_asks", args: "p_form_id uuid, p_values jsonb, p_secret text DEFAULT NULL::text, p_origin text DEFAULT NULL::text", returns: "TABLE(field_key text, asked boolean, decided boolean, said text)", security: "definer" },
|
|
1209
|
+
{ name: "form_public_route", args: "p_form_id uuid, p_values jsonb", returns: "jsonb", security: "definer" },
|
|
1202
1210
|
{ name: "form_redirect_domains", args: "p_organization_id uuid", returns: "text[]", security: "invoker" },
|
|
1203
1211
|
{ name: "form_redirect_refusal", args: "p_organization_id uuid, p_url text", returns: "text", security: "invoker" },
|
|
1204
1212
|
{ name: "form_restore", args: "p_organization_id uuid, p_form_id uuid", returns: "jsonb", security: "definer" },
|
|
1213
|
+
{ name: "form_results", args: "p_organization_id uuid, p_form_id uuid", returns: "jsonb", security: "definer" },
|
|
1205
1214
|
{ name: "form_slug", args: "p_organization_id uuid, p_title text, p_form_id uuid DEFAULT NULL::uuid", returns: "text", security: "invoker" },
|
|
1206
1215
|
{ name: "form_submit", args: "p_form_id uuid, p_origin text, p_payload jsonb, p_bucket text, p_honeypot text DEFAULT NULL::text, p_client_key text DEFAULT NULL::text", returns: "TABLE(submission_id uuid, record_id uuid, state text, message text)", security: "definer" },
|
|
1216
|
+
{ name: "form_theme_options", args: "", returns: "jsonb", security: "invoker" },
|
|
1217
|
+
{ name: "form_visit", args: "p_form_id uuid, p_visit text, p_event text, p_field text DEFAULT NULL::text", returns: "text", security: "definer" },
|
|
1207
1218
|
{ name: "forms", args: "p_organization_id uuid, p_table_id uuid DEFAULT NULL::uuid", returns: "TABLE(form_id uuid, table_id uuid, title text, slug text, published_at timestamp with time zone, closed_at timestamp with time zone, submission_cap integer, responses bigint, in_table bigint, held bigint, rejected bigint, state text, quarantine_rule_id uuid, notify_rule_id uuid, presentation jsonb)", security: "definer" },
|
|
1208
1219
|
{ name: "forms_archived", args: "p_organization_id uuid, p_table_id uuid DEFAULT NULL::uuid, p_limit integer DEFAULT 100", returns: "TABLE(form_id uuid, table_id uuid, table_name text, kind text, title text, slug text, archived_at timestamp with time zone, archived_by uuid, table_archived boolean, can_restore boolean)", security: "definer" },
|
|
1209
1220
|
{ name: "formula_compile_sql", args: "p_organization_id uuid, p_expr jsonb, p_values_sql text", returns: "text", security: "invoker" },
|
|
@@ -1534,6 +1545,7 @@ var STORE_DOORS = [
|
|
|
1534
1545
|
{ name: "rollup_value", args: "p_organization_id uuid, p_record_id uuid, p_field_data jsonb", returns: "jsonb", security: "invoker" },
|
|
1535
1546
|
{ name: "row_actions", args: "p_organization_id uuid, p_table_id uuid", returns: "jsonb", security: "definer" },
|
|
1536
1547
|
{ name: "row_sits_in_a_personal_table", args: "p_type text, p_organization_id uuid, p_id uuid", returns: "boolean", security: "invoker" },
|
|
1548
|
+
{ name: "row_template_bodies", args: "p_organization_id uuid, p_table_id uuid", returns: "TABLE(template_id uuid, body jsonb)", security: "definer" },
|
|
1537
1549
|
{ name: "row_template_declare", args: "p_organization_id uuid, p_table_id uuid, p_spec jsonb", returns: "uuid", security: "definer" },
|
|
1538
1550
|
{ name: "row_templates", args: "p_organization_id uuid, p_table_id uuid", returns: 'TABLE(template_id uuid, name text, table_id uuid, "values" jsonb, created_at timestamp with time zone, updated_at timestamp with time zone)', security: "definer" },
|
|
1539
1551
|
{ name: "rule_applies", args: "p_organization_id uuid, p_rule_id uuid, p_record_id uuid", returns: "jsonb", security: "invoker" },
|
|
@@ -1660,6 +1672,8 @@ var STORE_DOORS = [
|
|
|
1660
1672
|
{ name: "table_stage_field", args: "p_organization_id uuid, p_table_id uuid", returns: "text", security: "definer" },
|
|
1661
1673
|
{ name: "table_storage", args: "p_organization_id uuid, p_table_id uuid", returns: "text", security: "invoker" },
|
|
1662
1674
|
{ name: "table_sync", args: "p_organization_id uuid, p_home_id uuid, p_spec jsonb", returns: "jsonb", security: "definer" },
|
|
1675
|
+
{ name: "table_template_declare", args: "p_org_id uuid, p_name text, p_description text, p_fields jsonb", returns: "uuid", security: "invoker" },
|
|
1676
|
+
{ name: "table_templates", args: "p_org_id uuid", returns: "jsonb", security: "definer" },
|
|
1663
1677
|
{ name: "table_transfer_owner", args: "p_table_id uuid, p_to_person uuid, p_reason text", returns: "jsonb", security: "definer" },
|
|
1664
1678
|
{ name: "table_type_field", args: "p_organization_id uuid, p_table_id uuid", returns: "text", security: "definer" },
|
|
1665
1679
|
{ name: "table_unique_rule_fields", args: "p_organization_id uuid, p_table_id uuid", returns: "jsonb", security: "invoker" },
|
|
@@ -2125,6 +2139,10 @@ var DOORS = {
|
|
|
2125
2139
|
* organization wall and the caller's own rung on the Table — never `rule_eval` from a browser.
|
|
2126
2140
|
*/
|
|
2127
2141
|
formPreviewAsks: "form_preview_asks",
|
|
2142
|
+
/** TYPEFORM-DUP: the owner's preview of the whole route — jumps, ending, score (`custom._form_route`). */
|
|
2143
|
+
formPreviewRoute: "form_preview_route",
|
|
2144
|
+
/** TYPEFORM-DUP: views, starts, completions, drop-off and answers per question. */
|
|
2145
|
+
formResults: "form_results",
|
|
2128
2146
|
formLookOptions: "form_look_options",
|
|
2129
2147
|
// PRODUCTS row 14 — "let clients book a 30-minute consult". A booking page IS an
|
|
2130
2148
|
// `anon_form`, so it is opened and closed by `anonPublish` like any other; this is
|
|
@@ -2442,6 +2460,13 @@ var DOORS = {
|
|
|
2442
2460
|
actionDeclare: "action_declare",
|
|
2443
2461
|
rowActions: "row_actions",
|
|
2444
2462
|
actionRun: "action_run",
|
|
2463
|
+
// AUTOMATION-DOOR (2026-10-07) — automations on a table. See ../automation.ts.
|
|
2464
|
+
automationDeclare: "automation_declare",
|
|
2465
|
+
automations: "automations",
|
|
2466
|
+
automationArchive: "automation_archive",
|
|
2467
|
+
automationRestore: "automation_restore",
|
|
2468
|
+
automationSetEnabled: "automation_set_enabled",
|
|
2469
|
+
automationRuns: "automation_runs",
|
|
2445
2470
|
tableWebhookDeclare: "table_webhook_declare",
|
|
2446
2471
|
tableWebhooks: "table_webhooks",
|
|
2447
2472
|
tableWebhookArchive: "table_webhook_archive",
|
|
@@ -4021,6 +4046,20 @@ function createRecordsClient(given) {
|
|
|
4021
4046
|
"formPreviewAsks"
|
|
4022
4047
|
);
|
|
4023
4048
|
},
|
|
4049
|
+
async formPreviewRoute({ table_id, questions, endings, values }) {
|
|
4050
|
+
return callDoor(
|
|
4051
|
+
DOORS.formPreviewRoute,
|
|
4052
|
+
{ p_organization_id: org, p_table_id: table_id, p_questions: questions, p_endings: endings ?? [], p_values: values },
|
|
4053
|
+
"formPreviewRoute"
|
|
4054
|
+
);
|
|
4055
|
+
},
|
|
4056
|
+
async formResults({ form_id }) {
|
|
4057
|
+
return callDoor(
|
|
4058
|
+
DOORS.formResults,
|
|
4059
|
+
{ p_organization_id: org, p_form_id: form_id },
|
|
4060
|
+
"formResults"
|
|
4061
|
+
);
|
|
4062
|
+
},
|
|
4024
4063
|
async formLookOptions(args) {
|
|
4025
4064
|
return callDoor(
|
|
4026
4065
|
DOORS.formLookOptions,
|
|
@@ -5697,6 +5736,48 @@ function createRecordsClient(given) {
|
|
|
5697
5736
|
}
|
|
5698
5737
|
return result;
|
|
5699
5738
|
},
|
|
5739
|
+
async automationDeclare({ table_id, spec, automation_id }) {
|
|
5740
|
+
return callDoor(
|
|
5741
|
+
DOORS.automationDeclare,
|
|
5742
|
+
{ p_organization_id: org, p_table_id: table_id, p_spec: spec, p_automation_id: automation_id ?? null },
|
|
5743
|
+
"automationDeclare"
|
|
5744
|
+
);
|
|
5745
|
+
},
|
|
5746
|
+
async automations({ table_id, include_archived }) {
|
|
5747
|
+
return callDoor(
|
|
5748
|
+
DOORS.automations,
|
|
5749
|
+
{ p_table_id: table_id, p_organization_id: org, p_include_archived: include_archived ?? false },
|
|
5750
|
+
"automations"
|
|
5751
|
+
);
|
|
5752
|
+
},
|
|
5753
|
+
async automationArchive({ automation_id }) {
|
|
5754
|
+
return callDoor(
|
|
5755
|
+
DOORS.automationArchive,
|
|
5756
|
+
{ p_organization_id: org, p_automation_id: automation_id },
|
|
5757
|
+
"automationArchive"
|
|
5758
|
+
);
|
|
5759
|
+
},
|
|
5760
|
+
async automationRestore({ automation_id }) {
|
|
5761
|
+
return callDoor(
|
|
5762
|
+
DOORS.automationRestore,
|
|
5763
|
+
{ p_organization_id: org, p_automation_id: automation_id },
|
|
5764
|
+
"automationRestore"
|
|
5765
|
+
);
|
|
5766
|
+
},
|
|
5767
|
+
async automationSetEnabled({ automation_id, enabled }) {
|
|
5768
|
+
return callDoor(
|
|
5769
|
+
DOORS.automationSetEnabled,
|
|
5770
|
+
{ p_organization_id: org, p_automation_id: automation_id, p_enabled: enabled },
|
|
5771
|
+
"automationSetEnabled"
|
|
5772
|
+
);
|
|
5773
|
+
},
|
|
5774
|
+
async automationRuns({ automation_id, limit, cursor }) {
|
|
5775
|
+
return callDoor(
|
|
5776
|
+
DOORS.automationRuns,
|
|
5777
|
+
{ p_automation_id: automation_id, p_limit: limit ?? 50, p_cursor: cursor ?? null, p_organization_id: org },
|
|
5778
|
+
"automationRuns"
|
|
5779
|
+
);
|
|
5780
|
+
},
|
|
5700
5781
|
async tableWebhookDeclare({ table_id, target_url, events, description }) {
|
|
5701
5782
|
return callDoor(
|
|
5702
5783
|
DOORS.tableWebhookDeclare,
|