|
| 1 | +from util.configs import build_extractor_function_config |
| 2 | +from util.enums import State, RefineryDataType, BricksVariableType, SelectionType |
| 3 | +from . import location_extraction, INPUT_EXAMPLE |
| 4 | + |
| 5 | + |
| 6 | +def get_config(): |
| 7 | + return build_extractor_function_config( |
| 8 | + function=location_extraction, |
| 9 | + input_example=INPUT_EXAMPLE, |
| 10 | + issue_id=369, |
| 11 | + tabler_icon="Location", |
| 12 | + min_refinery_version="1.7.0", |
| 13 | + state=State.PUBLIC.value, |
| 14 | + type="python_function", |
| 15 | + available_for=["refinery", "common"], |
| 16 | + part_of_group=[ |
| 17 | + "personal_identifiers", |
| 18 | + ], # first entry should be parent directory |
| 19 | + # bricks integrator information |
| 20 | + cognition_init_mapping={ |
| 21 | + "@@LABEL@@": "Location" |
| 22 | + }, |
| 23 | + integrator_inputs={ |
| 24 | + "name": "location_extraction", |
| 25 | + "refineryDataType": RefineryDataType.TEXT.value, |
| 26 | + "variables": { |
| 27 | + "ATTRIBUTE": { |
| 28 | + "selectionType": SelectionType.CHOICE.value, |
| 29 | + "addInfo": [ |
| 30 | + BricksVariableType.ATTRIBUTE.value, |
| 31 | + BricksVariableType.GENERIC_STRING.value, |
| 32 | + ], |
| 33 | + }, |
| 34 | + "LABEL": { |
| 35 | + "selectionType": SelectionType.CHOICE.value, |
| 36 | + "defaultValue": "location", |
| 37 | + "addInfo": [ |
| 38 | + BricksVariableType.LABEL.value, |
| 39 | + BricksVariableType.GENERIC_STRING.value, |
| 40 | + ], |
| 41 | + }, |
| 42 | + }, |
| 43 | + }, |
| 44 | + ) |
0 commit comments