@ai-matrx/records 0.58.8 → 0.58.9

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.
@@ -2711,7 +2711,7 @@ declare const STORE_DOORS: readonly [{
2711
2711
  readonly security: "definer";
2712
2712
  }, {
2713
2713
  readonly name: "read_records_in_view_order";
2714
- readonly args: "p_organization_id uuid, p_view_id uuid, p_by_id boolean DEFAULT false, p_limit integer DEFAULT 200, p_offset integer DEFAULT 0";
2714
+ readonly args: "p_organization_id uuid, p_view_id uuid, p_by_id boolean DEFAULT false, p_limit integer DEFAULT 200, p_offset integer DEFAULT 0, p_filter jsonb DEFAULT NULL::jsonb";
2715
2715
  readonly returns: "TABLE(id uuid, document jsonb, level permission_level, \"position\" numeric)";
2716
2716
  readonly security: "definer";
2717
2717
  }, {
@@ -2834,6 +2834,21 @@ declare const STORE_DOORS: readonly [{
2834
2834
  readonly args: "p_organization_id uuid, p_record_id uuid, p_relations integer DEFAULT 12, p_history integer DEFAULT 15, p_siblings integer DEFAULT 8";
2835
2835
  readonly returns: "jsonb";
2836
2836
  readonly security: "definer";
2837
+ }, {
2838
+ readonly name: "record_source_key";
2839
+ readonly args: "p_table_id uuid";
2840
+ readonly returns: "text";
2841
+ readonly security: "invoker";
2842
+ }, {
2843
+ readonly name: "record_source_keys";
2844
+ readonly args: "p_table_id uuid";
2845
+ readonly returns: "text[]";
2846
+ readonly security: "invoker";
2847
+ }, {
2848
+ readonly name: "record_source_table";
2849
+ readonly args: "p_key text";
2850
+ readonly returns: "uuid";
2851
+ readonly security: "invoker";
2837
2852
  }, {
2838
2853
  readonly name: "record_stage_pending";
2839
2854
  readonly args: "p_organization_id uuid, p_record_id uuid";
@@ -4158,7 +4173,7 @@ declare const STORE_REFUSAL_CODES: readonly [{
4158
4173
  readonly raised_by: "_portal_config_judge,_share_write_person,_unique_rule_holds,doc_sign,doc_signature_write,entity_field_declare,field_declare,home_add,inbound_declare,io_proposal_accept,relation_carry,relation_own,sign_request_cancel,sign_request_create,table_share_outside_resend,work_approval_decide,work_slot_hold";
4159
4174
  }, {
4160
4175
  readonly code: "23514";
4161
- readonly raised_by: "_checklist_instantiate,_checklist_step_guard,_containment_guard,_dated_values_guard,_derived_fields,_display_format_check,_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,_relation_halves_agree,_relation_kernel_targets,_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,action_run,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_comment_write,io_import_rows,migrate_merge,migrate_purge_hard,portal_archive,portal_restore,record_restore,record_write_graph,relation_carry,relation_halves_repair,relation_own,sign_request_create,sign_request_sign,table_declare,table_from_example,validate_value_envelope,validate_values,work_set_state,work_slots_declare,work_take_assignment,work_template_instantiate";
4176
+ readonly raised_by: "_checklist_instantiate,_checklist_step_guard,_containment_guard,_dated_values_guard,_derived_fields,_display_format_check,_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,_record_source_key_is_record,_relation_halves_agree,_relation_kernel_targets,_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,action_run,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_comment_write,io_import_rows,migrate_merge,migrate_purge_hard,portal_archive,portal_restore,record_restore,record_write_graph,relation_carry,relation_halves_repair,relation_own,sign_request_create,sign_request_sign,table_declare,table_from_example,validate_value_envelope,validate_values,work_set_state,work_slots_declare,work_take_assignment,work_template_instantiate";
4162
4177
  }, {
4163
4178
  readonly code: "40001";
4164
4179
  readonly raised_by: "has_visibility_at,table_move";
@@ -2711,7 +2711,7 @@ declare const STORE_DOORS: readonly [{
2711
2711
  readonly security: "definer";
2712
2712
  }, {
2713
2713
  readonly name: "read_records_in_view_order";
2714
- readonly args: "p_organization_id uuid, p_view_id uuid, p_by_id boolean DEFAULT false, p_limit integer DEFAULT 200, p_offset integer DEFAULT 0";
2714
+ readonly args: "p_organization_id uuid, p_view_id uuid, p_by_id boolean DEFAULT false, p_limit integer DEFAULT 200, p_offset integer DEFAULT 0, p_filter jsonb DEFAULT NULL::jsonb";
2715
2715
  readonly returns: "TABLE(id uuid, document jsonb, level permission_level, \"position\" numeric)";
2716
2716
  readonly security: "definer";
2717
2717
  }, {
@@ -2834,6 +2834,21 @@ declare const STORE_DOORS: readonly [{
2834
2834
  readonly args: "p_organization_id uuid, p_record_id uuid, p_relations integer DEFAULT 12, p_history integer DEFAULT 15, p_siblings integer DEFAULT 8";
2835
2835
  readonly returns: "jsonb";
2836
2836
  readonly security: "definer";
2837
+ }, {
2838
+ readonly name: "record_source_key";
2839
+ readonly args: "p_table_id uuid";
2840
+ readonly returns: "text";
2841
+ readonly security: "invoker";
2842
+ }, {
2843
+ readonly name: "record_source_keys";
2844
+ readonly args: "p_table_id uuid";
2845
+ readonly returns: "text[]";
2846
+ readonly security: "invoker";
2847
+ }, {
2848
+ readonly name: "record_source_table";
2849
+ readonly args: "p_key text";
2850
+ readonly returns: "uuid";
2851
+ readonly security: "invoker";
2837
2852
  }, {
2838
2853
  readonly name: "record_stage_pending";
2839
2854
  readonly args: "p_organization_id uuid, p_record_id uuid";
@@ -4158,7 +4173,7 @@ declare const STORE_REFUSAL_CODES: readonly [{
4158
4173
  readonly raised_by: "_portal_config_judge,_share_write_person,_unique_rule_holds,doc_sign,doc_signature_write,entity_field_declare,field_declare,home_add,inbound_declare,io_proposal_accept,relation_carry,relation_own,sign_request_cancel,sign_request_create,table_share_outside_resend,work_approval_decide,work_slot_hold";
4159
4174
  }, {
4160
4175
  readonly code: "23514";
4161
- readonly raised_by: "_checklist_instantiate,_checklist_step_guard,_containment_guard,_dated_values_guard,_derived_fields,_display_format_check,_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,_relation_halves_agree,_relation_kernel_targets,_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,action_run,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_comment_write,io_import_rows,migrate_merge,migrate_purge_hard,portal_archive,portal_restore,record_restore,record_write_graph,relation_carry,relation_halves_repair,relation_own,sign_request_create,sign_request_sign,table_declare,table_from_example,validate_value_envelope,validate_values,work_set_state,work_slots_declare,work_take_assignment,work_template_instantiate";
4176
+ readonly raised_by: "_checklist_instantiate,_checklist_step_guard,_containment_guard,_dated_values_guard,_derived_fields,_display_format_check,_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,_record_source_key_is_record,_relation_halves_agree,_relation_kernel_targets,_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,action_run,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_comment_write,io_import_rows,migrate_merge,migrate_purge_hard,portal_archive,portal_restore,record_restore,record_write_graph,relation_carry,relation_halves_repair,relation_own,sign_request_create,sign_request_sign,table_declare,table_from_example,validate_value_envelope,validate_values,work_set_state,work_slots_declare,work_take_assignment,work_template_instantiate";
4162
4177
  }, {
4163
4178
  readonly code: "40001";
4164
4179
  readonly raised_by: "has_visibility_at,table_move";