@ai-matrx/records 0.43.0 → 0.44.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/dist/core/index.cjs +36 -2
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +26 -2
- package/dist/core/index.d.ts +26 -2
- package/dist/core/index.js +36 -2
- package/dist/core/index.js.map +1 -1
- package/dist/{field-CdHqvIIy.d.cts → field-D0Rr4Cqb.d.cts} +52 -3
- package/dist/{field-CdHqvIIy.d.ts → field-D0Rr4Cqb.d.ts} +52 -3
- package/dist/index.cjs +4 -2
- 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 +4 -2
- package/dist/index.js.map +1 -1
- package/dist/react/index.cjs +36 -2
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +74 -3
- package/dist/react/index.d.ts +74 -3
- package/dist/react/index.js +36 -2
- package/dist/react/index.js.map +1 -1
- package/dist/use-cases/index.cjs.map +1 -1
- package/dist/use-cases/index.d.cts +1 -1
- package/dist/use-cases/index.d.ts +1 -1
- package/dist/use-cases/index.js.map +1 -1
- package/package.json +1 -1
package/dist/react/index.cjs
CHANGED
|
@@ -667,6 +667,8 @@ var STORE_DOORS = [
|
|
|
667
667
|
{ name: "relation_target_ours", args: "p_entity_token text, p_row_id uuid", returns: "jsonb", security: "definer" },
|
|
668
668
|
{ name: "relation_targets", args: "p_organization_id uuid, p_record_id uuid, p_via_key text", returns: "SETOF uuid", security: "definer" },
|
|
669
669
|
{ name: "relation_uncarry", args: "p_organization_id uuid, p_container_id uuid, p_item_id uuid", returns: "integer", security: "definer" },
|
|
670
|
+
{ name: "relation_words", args: "p_organization_id uuid, p_field_id uuid, p_value text", returns: "text", security: "definer" },
|
|
671
|
+
{ name: "relation_words_many", args: "p_organization_id uuid, p_field_id uuid, p_record_ids uuid[]", returns: "TABLE(record_id uuid, words text)", security: "definer" },
|
|
670
672
|
{ name: "reopen_declared_doors", args: "", returns: "TABLE(reopened text)", security: "definer" },
|
|
671
673
|
{ name: "required_epoch", args: "p_container_type text, p_container_id uuid, p_item_type text, p_item_id uuid", returns: "bigint", security: "definer" },
|
|
672
674
|
{ name: "resolve_first_match", args: "p_organization_id uuid, p_record_id uuid", returns: "jsonb", security: "invoker" },
|
|
@@ -863,9 +865,9 @@ var STORE_REFUSAL_CODES = [
|
|
|
863
865
|
{ code: "22007", raised_by: "dashboard_window_sql" },
|
|
864
866
|
{ code: "22012", raised_by: "rule_eval" },
|
|
865
867
|
{ code: "22023", raised_by: "_booking_availability,_entity_custom_fields_guard,_take_op_id,_value_envelope,_work_shape_guard,actor_word,agg_assert_key,agg_sql,anon_token_issue,booking_declare,containment_parent,dashboard_block_normalize,dashboard_window_sql,doc_render_body,doc_render_write,doc_signature_write,enrich_declare,enrich_land,enrich_normalize,enrich_pin,entity_value_write,external_history_event,external_source_declare,external_stub_upsert,external_write_through,field_history,io_export,io_import_begin,io_import_finish,io_import_plan,io_import_report,io_proposal_accept,migrate_merge,migrate_reclass,my_levels,organization_clear,page_size,pin_agent_cells,pipeline_move,portal_declare,provenance_write,query_by_coordinates,query_rollup,record_update,record_write_many,relation_carry,rule_eval,rule_members,share_grant,share_lane_set,sign_request_create,sign_request_sign,subscription_declare,table_rules,visibility_as_of,work_approval_request,work_list,work_slot_hold" },
|
|
866
|
-
{ code: "23503", raised_by: "_booking_availability,_checklist_instantiate,_containment_guard,_field_document_for,_pipeline_stage_key,_record_rule_uses,agg_digest_assemble,anon_publish,anon_rate_take,anon_token_issue,anon_write,assert_organization_wall,booking_cancel,booking_confirm,booking_declare,booking_hold,booking_reschedule,capture_publish,checklist_declare,checklist_steps_table,comment_write,dashboard_declare,delete_rule,doc_sign,doc_template_save,enrich_declare,enrich_due,enrich_land,form_declare,form_submit,home_add,inbound_declare,inbound_mail_land,inbound_set,io_comment_write,io_import_begin,io_import_finish,io_import_report,io_import_rows,io_proposal_accept,migrate_demote,migrate_promote,pipeline_board,pipeline_declare,pipeline_move,pipeline_read,pipeline_transition_refusal,promote_field,promote_table,record_applicability,record_reparent,relation_carry,relation_own,resolve_first_match,rule_applies,rule_declare,rule_eval,rule_members,rule_run,sign_request_create,subscription_mute,subscription_preview,view_declare,work_set_state,work_take_assignment,work_template_instantiate" },
|
|
868
|
+
{ code: "23503", raised_by: "_booking_availability,_checklist_instantiate,_containment_guard,_display_spec_for,_field_document_for,_pipeline_stage_key,_record_rule_uses,agg_digest_assemble,anon_publish,anon_rate_take,anon_token_issue,anon_write,assert_organization_wall,booking_cancel,booking_confirm,booking_declare,booking_hold,booking_reschedule,capture_publish,checklist_declare,checklist_steps_table,comment_write,dashboard_declare,delete_rule,doc_sign,doc_template_save,enrich_declare,enrich_due,enrich_land,form_declare,form_submit,home_add,inbound_declare,inbound_mail_land,inbound_set,io_comment_write,io_import_begin,io_import_finish,io_import_report,io_import_rows,io_proposal_accept,migrate_demote,migrate_promote,pipeline_board,pipeline_declare,pipeline_move,pipeline_read,pipeline_transition_refusal,promote_field,promote_table,record_applicability,record_reparent,relation_carry,relation_own,resolve_first_match,rule_applies,rule_declare,rule_eval,rule_members,rule_run,sign_request_create,subscription_mute,subscription_preview,view_declare,work_set_state,work_take_assignment,work_template_instantiate" },
|
|
867
869
|
{ code: "23505", raised_by: "_unique_rule_holds,doc_sign,doc_signature_write,entity_field_declare,field_declare,home_add,inbound_declare,io_proposal_accept,relation_carry,relation_own,share_grant,sign_request_cancel,sign_request_create,table_share_outside_invite,table_share_outside_resend,work_approval_decide,work_slot_hold" },
|
|
868
|
-
{ code: "23514", raised_by: "_checklist_instantiate,_checklist_step_guard,_containment_guard,_dated_values_guard,_derived_fields,_entity_custom_fields_guard,_field_class_guard,_field_document_for,_field_shape_guard,_field_type_parity_guard,_merge_field_shape_guard,_merge_field_temporal_guard,_promoted_field_cap_guard,_record_rule_uses,_resolve_choice_words,_rule_shape_guard,_rule_topology_guard,_store_relation_edge_names_its_field,_table_columns_word_guard,_table_shape_guard,_undeclared_key_guard,_value_envelope,_work_shape_guard,_workdoors_approval_guard,assert_columns_are_defined,assert_entity_is_organization_scoped,booking_declare,capture_publish,capture_sheet_declare,checklist_declare,checklist_step_complete,doc_sign,doc_signature_write,doc_template_save,entity_field_declare,entity_field_retire,entity_field_update,entity_records_find,entity_table,field_declare,field_retire,field_update,home_add,io_import_rows,migrate_merge,relation_carry,relation_own,sign_request_create,sign_request_sign,table_declare,validate_value_envelope,validate_values,work_set_state,work_slots_declare,work_take_assignment,work_template_instantiate" },
|
|
870
|
+
{ code: "23514", raised_by: "_checklist_instantiate,_checklist_step_guard,_containment_guard,_dated_values_guard,_derived_fields,_display_spec_for,_entity_custom_fields_guard,_field_class_guard,_field_document_for,_field_shape_guard,_field_type_parity_guard,_merge_field_shape_guard,_merge_field_temporal_guard,_promoted_field_cap_guard,_record_rule_uses,_resolve_choice_words,_rule_shape_guard,_rule_topology_guard,_store_relation_edge_names_its_field,_table_columns_word_guard,_table_shape_guard,_undeclared_key_guard,_value_envelope,_with_display,_work_shape_guard,_workdoors_approval_guard,assert_columns_are_defined,assert_entity_is_organization_scoped,booking_declare,capture_publish,capture_sheet_declare,checklist_declare,checklist_step_complete,doc_sign,doc_signature_write,doc_template_save,entity_field_declare,entity_field_retire,entity_field_update,entity_records_find,entity_table,field_declare,field_retire,field_update,home_add,io_import_rows,migrate_merge,relation_carry,relation_own,sign_request_create,sign_request_sign,table_declare,validate_value_envelope,validate_values,work_set_state,work_slots_declare,work_take_assignment,work_template_instantiate" },
|
|
869
871
|
{ code: "40001", raised_by: "has_visibility_at" },
|
|
870
872
|
{ code: "42501", raised_by: "_doc_render_immutable,_doc_signature_immutable,_field_definition_write,_field_write_door,_rule_definition_write,_store_door,anon_capture,anon_inbound_land,anon_publish,anon_token_issue,anon_token_verify,anon_write,assert_client_may_change,assert_client_may_open,assert_client_may_reach,assert_may_know_table,assert_organization_admin,assert_store_door,booking_confirm,booking_declare,booking_hold,capture_submit,checklist_run,comment_write,conversation_scope_bind,conversation_scope_unbind,enrich_declare,enrich_due,enrich_land,enrich_normalize,entity_field_declare,entity_field_retire,entity_field_update,entity_value_write,external_write_through,form_declare,form_submit,inbound_mail_land,io_comment_resolve,io_comment_write,io_import_begin,io_import_finish,io_restore,migrate_purge,migrate_reclass,my_levels,organization_clear,portal_declare,portal_invitation,portal_invite,portal_principal_bind,promote_table,query_visibility_parity,read_record,read_records,read_records_by_ids,record_table,share_grant,subscription_mute,subscription_preview,table_share_outside_accept,table_share_outside_invite,table_share_outside_resend,visibility_as_of,work_approval_decide,work_approval_read,work_approval_request,work_person" },
|
|
871
873
|
{ code: "42703", raised_by: "entity_table,portal_declare" },
|
|
@@ -2016,6 +2018,18 @@ var DOORS = {
|
|
|
2016
2018
|
promotedRead: "promoted_read",
|
|
2017
2019
|
relationTargets: "relation_targets",
|
|
2018
2020
|
relationOwn: "relation_own",
|
|
2021
|
+
// REL-DISP, 2026-09-21. WHAT A RELATION CELL READS, through that column's own
|
|
2022
|
+
// display spec. `custom.record_words` is declared server_only — it takes a bare
|
|
2023
|
+
// record id with no field to scope it — so these are how a screen gets the
|
|
2024
|
+
// words, and they are the ONE way in: three separate copies of "read tableList,
|
|
2025
|
+
// find title_field, call rowName" lived in labels.tsx, RelationPicker.tsx and
|
|
2026
|
+
// PortalsPanel.tsx, and none of them could ever have shown two columns joined.
|
|
2027
|
+
// The `_many` door is the batch TAILS-2 recorded as missing ("there is still no
|
|
2028
|
+
// batch door on the store"), which is why the browser resolved labels one id at
|
|
2029
|
+
// a time. The ladder is NOT batched: the store asks it per record inside
|
|
2030
|
+
// `custom._words_for`, so batching buys a round trip and never a disclosure.
|
|
2031
|
+
relationWords: "relation_words",
|
|
2032
|
+
relationWordsMany: "relation_words_many",
|
|
2019
2033
|
homeAdd: "home_add",
|
|
2020
2034
|
recordReparent: "record_reparent",
|
|
2021
2035
|
containmentChain: "containment_chain",
|
|
@@ -2887,6 +2901,26 @@ function createRecordsClient(config) {
|
|
|
2887
2901
|
"fieldRetire"
|
|
2888
2902
|
);
|
|
2889
2903
|
},
|
|
2904
|
+
async relationWords({ field_id, value }) {
|
|
2905
|
+
return callDoor(
|
|
2906
|
+
DOORS.relationWords,
|
|
2907
|
+
{ p_organization_id: org, p_field_id: field_id, p_value: value },
|
|
2908
|
+
"relationWords"
|
|
2909
|
+
);
|
|
2910
|
+
},
|
|
2911
|
+
async relationWordsMany({ field_id, record_ids }) {
|
|
2912
|
+
const result = await callDoor(
|
|
2913
|
+
DOORS.relationWordsMany,
|
|
2914
|
+
{ p_organization_id: org, p_field_id: field_id, p_record_ids: record_ids },
|
|
2915
|
+
"relationWordsMany"
|
|
2916
|
+
);
|
|
2917
|
+
if (!result.ok) return result;
|
|
2918
|
+
const map = {};
|
|
2919
|
+
for (const row of result.data ?? []) {
|
|
2920
|
+
if (row?.record_id && typeof row.words === "string") map[row.record_id] = row.words;
|
|
2921
|
+
}
|
|
2922
|
+
return { ok: true, data: map };
|
|
2923
|
+
},
|
|
2890
2924
|
async tableDeclare({ spec, homeId }) {
|
|
2891
2925
|
return callDoor(
|
|
2892
2926
|
DOORS.tableDeclare,
|