@ai-matrx/records 0.57.1 → 0.57.3
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 +21 -0
- package/dist/core/index.cjs +21 -1
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +37 -3
- package/dist/core/index.d.ts +37 -3
- package/dist/core/index.js +21 -1
- package/dist/core/index.js.map +1 -1
- package/dist/index.cjs +1 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/react/index.cjs +6 -0
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +30 -0
- package/dist/react/index.d.ts +30 -0
- package/dist/react/index.js +6 -0
- package/dist/react/index.js.map +1 -1
- package/dist/{types-Bsamaf-a.d.cts → types-BpBSMhYq.d.cts} +5 -0
- package/dist/{types-Bsamaf-a.d.ts → types-BpBSMhYq.d.ts} +5 -0
- package/dist/use-cases/index.cjs.map +1 -1
- package/dist/use-cases/index.d.cts +2 -2
- package/dist/use-cases/index.d.ts +2 -2
- package/dist/use-cases/index.js.map +1 -1
- package/package.json +1 -1
package/dist/react/index.cjs
CHANGED
|
@@ -3163,6 +3163,7 @@ var STORE_DOORS = [
|
|
|
3163
3163
|
{ name: "table_declare", args: "p_organization_id uuid, p_spec jsonb", returns: "uuid", security: "definer" },
|
|
3164
3164
|
{ name: "table_decorate", args: "p_organization_id uuid, p_table_id uuid, p_path text[], p_value jsonb DEFAULT NULL::jsonb", returns: "jsonb", security: "definer" },
|
|
3165
3165
|
{ name: "table_decorations", args: "p_organization_id uuid, p_table_id uuid", returns: "jsonb", security: "definer" },
|
|
3166
|
+
{ name: "table_facts", args: "p_organization_id uuid", returns: "TABLE(table_id uuid, visibility text, mine boolean)", security: "definer" },
|
|
3166
3167
|
{ name: "table_from_example", args: "p_organization_id uuid, p_home_id uuid, p_example jsonb", returns: "jsonb", security: "definer" },
|
|
3167
3168
|
{ name: "table_has_a_visible_record", args: "p_user uuid, p_organization_id uuid, p_table_id uuid", returns: "boolean", security: "definer" },
|
|
3168
3169
|
{ name: "table_is_live", args: "p_organization_id uuid, p_table_id uuid", returns: "boolean", security: "invoker" },
|
|
@@ -4658,6 +4659,7 @@ var DOORS = {
|
|
|
4658
4659
|
// everywhere in that organization. This is the one question the rail has to
|
|
4659
4660
|
// ask, under the same wall and visibility gate as `portals` itself.
|
|
4660
4661
|
portalTables: "portal_tables",
|
|
4662
|
+
tableFacts: "table_facts",
|
|
4661
4663
|
portalCard: "portal_card",
|
|
4662
4664
|
portalDeclare: "portal_declare",
|
|
4663
4665
|
portalInvite: "portal_invite",
|
|
@@ -5282,6 +5284,10 @@ function createRecordsClient(config) {
|
|
|
5282
5284
|
})
|
|
5283
5285
|
);
|
|
5284
5286
|
},
|
|
5287
|
+
async tableFacts() {
|
|
5288
|
+
if (!doorExists(DOORS.tableFacts)) return ok(null);
|
|
5289
|
+
return callDoor(DOORS.tableFacts, { p_organization_id: org }, "tableFacts");
|
|
5290
|
+
},
|
|
5285
5291
|
async tableArchived({ table_id }) {
|
|
5286
5292
|
const kernel = await callDoor(DOORS.tableKernelId, {}, "tableArchived.kernel");
|
|
5287
5293
|
if (!kernel.ok) return err(kernel.error);
|