@ai-matrx/records 0.80.2 → 0.80.4
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 +11 -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-DKKRZKNw.d.ts → client-CB_Klj1P.d.ts} +10 -5
- package/dist/{client-BfNJEpar.d.cts → client-D0yGEof4.d.cts} +10 -5
- package/dist/core/index.cjs +18 -0
- 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 +18 -0
- 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 +7 -7
- package/dist/data/index.d.ts +7 -7
- package/dist/data/index.js +12 -0
- package/dist/data/index.js.map +1 -1
- package/dist/{declareTable-Cg522Sk0.d.ts → declareTable-DoYVueVF.d.ts} +4 -4
- package/dist/{declareTable-CzLMdOSy.d.cts → declareTable-l7ktxN6p.d.cts} +4 -4
- package/dist/{field-DJAvDExi.d.ts → field-6UtYgFeu.d.ts} +1 -1
- package/dist/{field-DCXU6k9i.d.cts → field-DpJR_5Pe.d.cts} +1 -1
- package/dist/index.cjs +10 -0
- 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 -0
- package/dist/index.js.map +1 -1
- package/dist/memory/index.cjs +4 -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 +4 -0
- package/dist/memory/index.js.map +1 -1
- package/dist/{ports-DaHUjVg7.d.cts → ports-CE7umTp-.d.cts} +1 -1
- package/dist/{ports-Kpc-RihV.d.ts → ports-CiEYhwi5.d.ts} +1 -1
- package/dist/react/index.cjs +18 -0
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +26 -1
- package/dist/react/index.d.ts +26 -1
- package/dist/react/index.js +18 -0
- 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-DCaOJbhA.d.cts → record-CvqV8wyO.d.cts} +21 -1
- package/dist/{record-DCaOJbhA.d.ts → record-CvqV8wyO.d.ts} +21 -1
- package/dist/{subscription-C_hNjbaR.d.cts → subscription-CC0kgkwa.d.cts} +1 -1
- package/dist/{subscription-B9znK2dw.d.ts → subscription-DjkuDMcX.d.ts} +1 -1
- package/dist/{table-kind-DXktQGzR.d.cts → table-kind-DHpMEOHd.d.cts} +3 -3
- package/dist/{table-kind-B9RBUmSb.d.ts → table-kind-FMYq3nCr.d.ts} +3 -3
- package/dist/templates/index.cjs +67 -4
- package/dist/templates/index.cjs.map +1 -1
- package/dist/templates/index.d.cts +26 -10
- package/dist/templates/index.d.ts +26 -10
- package/dist/templates/index.js +67 -4
- package/dist/templates/index.js.map +1 -1
- package/dist/{types-CHEFgCu1.d.ts → types-B4LF3sFx.d.ts} +2 -2
- package/dist/{types-b-VGi15H.d.ts → types-BbCZJh1C.d.ts} +2 -2
- package/dist/{types-DuyBN2im.d.cts → types-DuceX7js.d.cts} +2 -2
- package/dist/{types-CD2HoaZt.d.cts → types-Flsf_KU5.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-BEfYwBpA.d.ts → validate-DyVwSD74.d.ts} +1 -1
- package/dist/{validate-CubFFxpu.d.cts → validate-EvZGkD96.d.cts} +1 -1
- package/package.json +1 -1
package/dist/data/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { bK as EntityRefWithWords } from '../table-kind-
|
|
2
|
-
import { U as Uuid, h as RecordsResult, n as RecordPageSort, m as ReadRow } from '../record-
|
|
3
|
-
import { R as RecordsClient } from '../client-
|
|
4
|
-
import { b as Field } from '../field-
|
|
5
|
-
import { u as RuleExpression } from '../subscription-
|
|
6
|
-
import '../ports-
|
|
1
|
+
import { bK as EntityRefWithWords } from '../table-kind-DHpMEOHd.cjs';
|
|
2
|
+
import { U as Uuid, h as RecordsResult, n as RecordPageSort, m as ReadRow } from '../record-CvqV8wyO.cjs';
|
|
3
|
+
import { R as RecordsClient } from '../client-D0yGEof4.cjs';
|
|
4
|
+
import { b as Field } from '../field-DpJR_5Pe.cjs';
|
|
5
|
+
import { u as RuleExpression } from '../subscription-CC0kgkwa.cjs';
|
|
6
|
+
import '../ports-CE7umTp-.cjs';
|
|
7
7
|
|
|
8
8
|
/** §0. A link to any thing: `{token, id, label}`. A custom row's token is `record`. Every link reads as `EntityRef[]`. */
|
|
9
9
|
type EntityRef = EntityRefWithWords;
|
|
@@ -113,7 +113,7 @@ interface TableAlias {
|
|
|
113
113
|
}
|
|
114
114
|
/**
|
|
115
115
|
* An alias bound to one PLATFORM entity type (contacts, projects, tasks…), served by `@ai-matrx/entity-data`'s port.
|
|
116
|
-
* `organizationId` is
|
|
116
|
+
* `organizationId` is an assumed organization FILTER for its lists, never a lock; writes carry the active organization.
|
|
117
117
|
*/
|
|
118
118
|
interface EntityAlias {
|
|
119
119
|
kind: "entity";
|
package/dist/data/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { bK as EntityRefWithWords } from '../table-kind-
|
|
2
|
-
import { U as Uuid, h as RecordsResult, n as RecordPageSort, m as ReadRow } from '../record-
|
|
3
|
-
import { R as RecordsClient } from '../client-
|
|
4
|
-
import { b as Field } from '../field-
|
|
5
|
-
import { u as RuleExpression } from '../subscription-
|
|
6
|
-
import '../ports-
|
|
1
|
+
import { bK as EntityRefWithWords } from '../table-kind-FMYq3nCr.js';
|
|
2
|
+
import { U as Uuid, h as RecordsResult, n as RecordPageSort, m as ReadRow } from '../record-CvqV8wyO.js';
|
|
3
|
+
import { R as RecordsClient } from '../client-CB_Klj1P.js';
|
|
4
|
+
import { b as Field } from '../field-6UtYgFeu.js';
|
|
5
|
+
import { u as RuleExpression } from '../subscription-DjkuDMcX.js';
|
|
6
|
+
import '../ports-CiEYhwi5.js';
|
|
7
7
|
|
|
8
8
|
/** §0. A link to any thing: `{token, id, label}`. A custom row's token is `record`. Every link reads as `EntityRef[]`. */
|
|
9
9
|
type EntityRef = EntityRefWithWords;
|
|
@@ -113,7 +113,7 @@ interface TableAlias {
|
|
|
113
113
|
}
|
|
114
114
|
/**
|
|
115
115
|
* An alias bound to one PLATFORM entity type (contacts, projects, tasks…), served by `@ai-matrx/entity-data`'s port.
|
|
116
|
-
* `organizationId` is
|
|
116
|
+
* `organizationId` is an assumed organization FILTER for its lists, never a lock; writes carry the active organization.
|
|
117
117
|
*/
|
|
118
118
|
interface EntityAlias {
|
|
119
119
|
kind: "entity";
|
package/dist/data/index.js
CHANGED
|
@@ -1063,21 +1063,25 @@ var STORE_DOORS = [
|
|
|
1063
1063
|
{ name: "form_declare", args: "p_organization_id uuid, p_table_id uuid, p_title text, p_questions jsonb, p_presentation jsonb DEFAULT '{}'::jsonb, p_submission_cap integer DEFAULT NULL::integer, p_quarantine_rule_id uuid DEFAULT NULL::uuid, p_notify_rule_id uuid DEFAULT NULL::uuid, p_form_id uuid DEFAULT NULL::uuid, p_slug text DEFAULT NULL::text", returns: "uuid", security: "definer" },
|
|
1064
1064
|
{ name: "form_draft_read", args: "p_form_id uuid, p_secret text", returns: "TABLE(answers jsonb, saved_at timestamp with time zone, expires_at timestamp with time zone, state text, message text)", security: "definer" },
|
|
1065
1065
|
{ name: "form_draft_save", args: "p_form_id uuid, p_answers jsonb, p_secret text DEFAULT NULL::text, p_bucket text DEFAULT NULL::text, p_origin text DEFAULT NULL::text", returns: "TABLE(draft_secret text, saved_at timestamp with time zone, expires_at timestamp with time zone, state text, message text)", security: "definer" },
|
|
1066
|
+
{ name: "form_knobs", args: "p_organization_id uuid", returns: "jsonb", security: "definer" },
|
|
1066
1067
|
{ name: "form_look_options", args: "p_organization_id uuid, p_presentation jsonb DEFAULT '{}'::jsonb", returns: "jsonb", security: "definer" },
|
|
1067
1068
|
{ name: "form_notify", args: "p_organization_id uuid, p_form_id uuid, p_record_id uuid, p_submission_id uuid", returns: "uuid", security: "invoker" },
|
|
1068
1069
|
{ 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" },
|
|
1069
1070
|
{ 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" },
|
|
1070
1071
|
{ 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" },
|
|
1071
1072
|
{ 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" },
|
|
1073
|
+
{ name: "form_public_options", args: "p_form_id uuid", returns: "jsonb", security: "definer" },
|
|
1072
1074
|
{ name: "form_public_route", args: "p_form_id uuid, p_values jsonb", returns: "jsonb", security: "definer" },
|
|
1073
1075
|
{ name: "form_redirect_domains", args: "p_organization_id uuid", returns: "text[]", security: "invoker" },
|
|
1074
1076
|
{ name: "form_redirect_refusal", args: "p_organization_id uuid, p_url text", returns: "text", security: "invoker" },
|
|
1077
|
+
{ name: "form_respondent_copy", args: "p_organization_id uuid, p_form_id uuid, p_record_id uuid, p_submission_id uuid", returns: "jsonb", security: "definer" },
|
|
1075
1078
|
{ name: "form_restore", args: "p_organization_id uuid, p_form_id uuid", returns: "jsonb", security: "definer" },
|
|
1076
1079
|
{ name: "form_results", args: "p_organization_id uuid, p_form_id uuid", returns: "jsonb", security: "definer" },
|
|
1077
1080
|
{ name: "form_slug", args: "p_organization_id uuid, p_title text, p_form_id uuid DEFAULT NULL::uuid", returns: "text", security: "invoker" },
|
|
1078
1081
|
{ 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" },
|
|
1079
1082
|
{ name: "form_theme_options", args: "", returns: "jsonb", security: "invoker" },
|
|
1080
1083
|
{ name: "form_visit", args: "p_form_id uuid, p_visit text, p_event text, p_field text DEFAULT NULL::text", returns: "text", security: "definer" },
|
|
1084
|
+
{ name: "form_visit_admit", args: "p_form_id uuid, p_bucket text", returns: "boolean", security: "definer" },
|
|
1081
1085
|
{ 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" },
|
|
1082
1086
|
{ 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" },
|
|
1083
1087
|
{ name: "formula_compile_sql", args: "p_organization_id uuid, p_expr jsonb, p_values_sql text", returns: "text", security: "invoker" },
|
|
@@ -2010,6 +2014,7 @@ var DOORS = {
|
|
|
2010
2014
|
formPreviewRoute: "form_preview_route",
|
|
2011
2015
|
/** TYPEFORM-DUP: views, starts, completions, drop-off and answers per question. */
|
|
2012
2016
|
formResults: "form_results",
|
|
2017
|
+
formKnobs: "form_knobs",
|
|
2013
2018
|
formLookOptions: "form_look_options",
|
|
2014
2019
|
// PRODUCTS row 14 — "let clients book a 30-minute consult". A booking page IS an
|
|
2015
2020
|
// `anon_form`, so it is opened and closed by `anonPublish` like any other; this is
|
|
@@ -4028,6 +4033,13 @@ function createRecordsClient(given) {
|
|
|
4028
4033
|
"formResults"
|
|
4029
4034
|
);
|
|
4030
4035
|
},
|
|
4036
|
+
async formKnobs() {
|
|
4037
|
+
return callDoor(
|
|
4038
|
+
DOORS.formKnobs,
|
|
4039
|
+
{ p_organization_id: org },
|
|
4040
|
+
"formKnobs"
|
|
4041
|
+
);
|
|
4042
|
+
},
|
|
4031
4043
|
async formLookOptions(args) {
|
|
4032
4044
|
return callDoor(
|
|
4033
4045
|
DOORS.formLookOptions,
|