diff --git a/dataprocessors/street_recruitment_pull_log.json b/dataprocessors/street_recruitment_pull_log.json new file mode 100644 index 0000000000000000000000000000000000000000..d4c0a18235e7669d5064d7cebe8737d002b21fd3 --- /dev/null +++ b/dataprocessors/street_recruitment_pull_log.json @@ -0,0 +1,316 @@ +{ + "name": "street_recruitment_pull_log", + "title": "Street Recruitment Pull Log", + "type": "default", + "configuration": { + "default_sort": [ + "asc_by_recruiting_organization", + "desc_by_arrival_date_and_time" + ] + }, + "is_active": "1", + "description": "Data Processor for the log of pull and process actions Streetrecruitment", + "storage_configuration": [], + "data_sources": [ + { + "weight": "1", + "name": "streetrecruitment_log", + "title": "Streetrecruitment Log", + "type": "srlog", + "configuration": { + "filter": { + "arrival_date_time": { + "relative": "", + "from": "", + "to": "" + }, + "completed_date_time": { + "relative": "", + "from": "", + "to": "" + }, + "error_date_time": { + "relative": "", + "from": "", + "to": "" + } + } + }, + "join_configuration": [] + }, + { + "weight": "2", + "name": "streetrecruitment_log_message", + "title": "Streetrecruitment Log Message", + "type": "srlogmessage", + "configuration": { + "filter": { + "message_date_time": { + "relative": "", + "from": "", + "to": "" + } + } + }, + "join_type": "simple_join", + "join_configuration": { + "left_prefix": "streetrecruitment_log_message", + "left_field": "streetrecruitment_log_message_sr_log_id", + "right_prefix": "streetrecruitment_log", + "right_field": "streetrecruitment_log_id" + } + }, + { + "weight": "3", + "name": "contact", + "title": "Contact", + "type": "contact", + "configuration": { + "filter": { + "is_deleted": { + "op": "=", + "value": "0" + }, + "created_date": { + "relative": "", + "from": "", + "to": "" + }, + "modified_date": { + "relative": "", + "from": "", + "to": "" + } + } + }, + "join_type": "simple_join", + "join_configuration": { + "left_prefix": "contact", + "left_field": "contact_id", + "right_prefix": "streetrecruitment_log", + "right_field": "streetrecruitment_log_recruiting_organization_id" + } + } + ], + "filter_collections": [], + "filters": [ + { + "weight": "1", + "name": "recruiting_organization", + "title": "Recruiting Organization", + "type": "contact_filter", + "is_required": "1", + "is_exposed": "1", + "configuration": { + "field": "streetrecruitment_log_recruiting_organization_id", + "datasource": "streetrecruitment_log", + "limit_groups": [], + "limit_contact_types": [ + "sub_recruitingOrganization" + ] + }, + "filter_value": { + "op": "IN", + "value": "305654" + } + }, + { + "weight": "2", + "name": "type", + "title": "Type", + "type": "simple_sql_filter", + "is_required": "0", + "is_exposed": "1", + "configuration": { + "field": "streetrecruitment_log_message_message_type", + "datasource": "streetrecruitment_log_message" + }, + "filter_value": [] + }, + { + "weight": "3", + "name": "arrival_date_and_time", + "title": "Arrival Date and Time", + "type": "date_filter", + "is_required": "0", + "is_exposed": "1", + "configuration": { + "field": "streetrecruitment_log_arrival_date_time", + "datasource": "streetrecruitment_log" + }, + "filter_value": [] + }, + { + "weight": "4", + "name": "date_and_time_error", + "title": "Date and Time Error", + "type": "date_filter", + "is_required": "0", + "is_exposed": "1", + "configuration": { + "field": "streetrecruitment_log_error_date_time", + "datasource": "streetrecruitment_log" + }, + "filter_value": [] + }, + { + "weight": "5", + "name": "date_and_time_processing_complete", + "title": "Date and Time Processing Complete", + "type": "date_filter", + "is_required": "0", + "is_exposed": "1", + "configuration": { + "field": "streetrecruitment_log_completed_date_time", + "datasource": "streetrecruitment_log" + }, + "filter_value": [] + }, + { + "weight": "6", + "name": "transaction_id", + "title": "Transaction ID", + "type": "simple_sql_filter", + "is_required": "0", + "is_exposed": "1", + "configuration": { + "field": "streetrecruitment_log_transaction_id", + "datasource": "streetrecruitment_log" + }, + "filter_value": [] + } + ], + "fields": [ + { + "weight": "1", + "name": "recruiting_organization", + "title": "Recruiting Organization", + "type": "contact_link", + "configuration": { + "contact_id_field": "streetrecruitment_log_recruiting_organization_id", + "contact_id_datasource": "streetrecruitment_log", + "contact_name_field": "contact_display_name", + "contact_name_datasource": "contact" + } + }, + { + "weight": "2", + "name": "transaction_id", + "title": "Transaction ID", + "type": "raw", + "configuration": { + "field": "streetrecruitment_log_transaction_id", + "datasource": "streetrecruitment_log", + "is_aggregate": "" + } + }, + { + "weight": "3", + "name": "type_of_log_message_warning_error_or_info_", + "title": "Type of log message (warning, error or info)", + "type": "option_label", + "configuration": { + "field": "streetrecruitment_log_message_message_type", + "datasource": "streetrecruitment_log_message", + "is_aggregate": "" + } + }, + { + "weight": "4", + "name": "arrival_date_and_time", + "title": "Arrival Date and Time", + "type": "date", + "configuration": { + "field": "streetrecruitment_log_arrival_date_time", + "datasource": "streetrecruitment_log", + "is_aggregate": "", + "function": "", + "format": "d-m-Y h:I:s" + } + }, + { + "weight": "5", + "name": "log_id", + "title": "Log ID", + "type": "raw", + "configuration": { + "field": "streetrecruitment_log_id", + "datasource": "streetrecruitment_log", + "is_aggregate": "" + } + }, + { + "weight": "6", + "name": "date_and_time_error", + "title": "Date and Time Error", + "type": "date", + "configuration": { + "field": "streetrecruitment_log_error_date_time", + "datasource": "streetrecruitment_log", + "is_aggregate": "", + "function": "", + "format": "d-m-Y h:I:s" + } + }, + { + "weight": "7", + "name": "date_and_time_processing_complete", + "title": "Date and Time Processing Complete", + "type": "date", + "configuration": { + "field": "streetrecruitment_log_completed_date_time", + "datasource": "streetrecruitment_log", + "is_aggregate": "", + "function": "", + "format": "d-m-Y h:I:s" + } + }, + { + "weight": "8", + "name": "data", + "title": "Data", + "type": "custom_link", + "configuration": { + "link_field": "streetrecruitment_log_id", + "link_field_datasource": "streetrecruitment_log", + "link_template": "http:\/\/aivldev.localhost:8180\/civicrm\/streetrecruitmentimport\/form\/srlog?reset=1&action=view&id=%1", + "link_text": "Data" + } + }, + { + "weight": "9", + "name": "id", + "title": "Messages", + "type": "custom_link_2", + "configuration": { + "link_field_1": "streetrecruitment_log_id", + "link_field_2": "streetrecruitment_log_recruiting_organization_id", + "link_field_datasource_1": "streetrecruitment_log", + "link_field_datasource_2": "streetrecruitment_log", + "link_template": "http:\/\/aivldev.localhost:8180\/civicrm\/streetrecruitmentimport\/page\/srlogmessage?reset=1&action=view&id=%1&cid=%2", + "link_text": "Messages", + "new_tab": "0" + } + } + ], + "outputs": [ + { + "type": "search", + "configuration": { + "id_field": "log_id", + "navigation_parent_path": "Contributions", + "navigation_weight": "", + "no_result_text": "No log entries found", + "hide_id_field": "1", + "hidden_fields": [], + "help_text": "", + "expanded_search": "", + "expose_aggregate": "", + "expose_hidden_fields": "", + "enable_hard_limit": "", + "default_hard_limit": "" + }, + "permission": "edit contributions" + } + ] +} \ No newline at end of file