Files
address-verification-app/src/data/RealTemplateData.json
2022-12-29 17:32:50 +05:30

875 lines
22 KiB
JSON

{
"journey": {
"COMMUNICATION_ADDRESS_VERIFICATION_TASK": {
"id": "COMMUNICATION_ADDRESS_VERIFICATION_TASK",
"name": "Communication",
"journeyType": "address_verification",
"startWidget": "w1",
"transitionRules": {
"conditions": {
"operator": "MATCHES",
"conditionType": "LEAF_NODE",
"left": "q1",
"right": "o1",
"section": "s1",
"widgetId": "w1"
},
"actions": {
"true": {
"status": "VERIFICATION_SUCCESS",
"nextJourney": ""
},
"false":{
"status": "VERIFICATION_FAILED",
"nextJourney": "PERMANENT_ADDRESS_VERIFICATION_TASK"
}
}
},
"isLeaf": false
},
"PERMANENT_ADDRESS_VERIFICATION_TASK": {
"id": "PERMANENT_ADDRESS_VERIFICATION_TASK",
"name": "Permanent",
"journeyType": "address_verification",
"startWidget": "w7",
"transitionRules": { // todo: discussion transitionRules with @aman-singh
},
"isLeaf": false
}
},
"widget": {
"w1": {
"sections": [
"s1"
],
"transitionRules": {
"conditions": {
"operator": "MATCHES",
"conditionType": "LEAF_NODE",
"left": "q1",
"right": "o1",
"section": "s1"
},
"actions": {
"true": "w2",
"false": "w3"
}
},
"isLeaf": false
},
"w2": {
"sections": [
"s2"
],
"transitionRules": {
"conditions": {
"operator": "MATCHES",
"conditionType": "LEAF_NODE",
"left": "q2",
"right": "o3",
"section": "s2"
},
"actions": {
"true": "w4",
"false": "w5"
}
},
"isLeaf": false
},
"w3": {
"sections": [
"s3"
],
"transitionRules": {
"conditions": {
"operator": "MATCHES",
"conditionType": "LEAF_NODE",
"left": "q2",
"right": "o3",
"section": "s2"
},
"actions": {
"true": "w4",
"false": "w5"
}
},
"isLeaf": true
},
"w4": {
"transitionRules": {
"conditions":null,
"actions": {
"true": "w6",
"false": "w6"
}
},
"sections": [
"s4",
"s5",
"s6",
"s7",
"s11"
],
"isLeaf": false
},
"w5": {
"transitionRules": {
"conditions":null,
"actions": {
"true": "w4",
"false": "w4"
}
},
"sections": [
"s8"
],
"isLeaf": false
},
"w6":{
"transitionRules": {
"conditions":null,
"actions": {
"true": "w6",
"false": "w6"
}
},
"sections": [
"s9",
"s10"
],
"isLeaf": true
},
"w7": {
"sections": [
"s12"
],
"transitionRules": {
"conditions": {
"operator": "MATCHES",
"conditionType": "LEAF_NODE",
"left": "q24",
"right": "o3",
"section": "s12"
},
"actions": {
"true": "w7", // todo: Design pending
"false": "w8"
}
},
"isLeaf": false
},
"w8": {
"sections": [
"s13"
],
"transitionRules": {
"conditions": {
"operator": "MATCHES",
"conditionType": "LEAF_NODE",
"left": "q25",
"right": "o3",
"section": "s13"
},
"actions": {
"true": "w1",
"false": "w8" // todo: Design pending
}
},
"isLeaf": false
}
},
"questions": {
"q1": {
"text": "Address found / not found?",
"type": "mandatory",
"inputType": "RadioButton",
"options": [
"o1",
"o2"
],
"metadata": {
"buttonType": "button",
"orientation": "vertical"
}
},
"q2": {
"text": "Did you meet the customer in person?",
"type": "mandatory",
"inputType": "RadioButton",
"options": [
"o3",
"o4"
],
"metadata": {
"buttonType": "button",
"orientation": "vertical"
}
},
"q3": {
"text": "Address incorrect / incomplete?",
"type": "mandatory",
"inputType": "RadioButton",
"options": [
"o5",
"o6"
],
"metadata": {
"buttonType": "chip",
"orientation": "horizontal"
}
},
"q4": {
"text": "What is incorrect with the address?",
"type": "mandatory",
"inputType": "RadioButton",
"options": [
"o7",
"o8"
],
"metadata": {
"buttonType": "button",
"orientation": "vertical"
}
},
"q5": {
"text": "Reason for taking a loan",
"type": "mandatory",
"inputType": "RadioButton",
"options": [
"o9",
"o10",
"o11",
"o12",
"o13",
"o14"
],
"metadata": {
"buttonType": "button",
"orientation": "vertical"
}
},
"q6": {
"text": "what is incorrect with address?",
"type": "mandatory",
"inputType": "RadioButton",
"options": [
"o9",
"o10",
"o11",
"o12",
"o13"
],
"metadata": {
"buttonType": "button",
"orientation": "vertical"
}
},
"q7": {
"text": "Customer feedback",
"type": "mandatory",
"inputType": "Rating",
"options": [],
"metadata": {
"formattingType": "Rating"
}
},
"q8": {
"text": "Enter other reason for taking a loan",
"type": "mandatory",
"inputType": "TextInput",
"options": [],
"metadata": {
"formattingType": "textbox"
}
},
"q9": {
"text": "Type of industry customer works in",
"inputType": "Dropdown",
"type": "notMandatory",
"options": [
"o38",
"o40",
"o41",
"o42"
],
"metadata": {
"formattingType": "Dropdown"
}
},
"q10": {
"text": "Name of the current company",
"type": "mandatory",
"inputType": "TextInput",
"options": [],
"metadata": {
"formattingType": "textbox"
}
},
"q11": {
"text": "Number of dependents",
"type": "mandatory",
"inputType": "RadioButton",
"options": [
"o15",
"o16",
"o17",
"o18",
"o19",
"o20"
],
"metadata": {
"buttonType": "chip",
"orientation": "horizontal"
}
},
"q12": {
"text": "Number of earning members?",
"type": "mandatory",
"inputType": "RadioButton",
"options": [
"o15",
"o16",
"o17",
"o18",
"o19",
"o20"
],
"metadata": {
"buttonType": "chip",
"orientation": "horizontal"
}
},
"q13": {
"text": "Property ownership?",
"type": "mandatory",
"inputType": "RadioButton",
"options": [
"o21",
"o22",
"o23",
"o24",
"o25"
],
"metadata": {
"buttonType": "button",
"orientation": "vertical"
}
},
"q14": {
"text": "Other assets owned",
"type": "mandatory",
"inputType": "CheckboxGroup",
"options": [
"o26",
"o27",
"o28",
"o29",
"o30",
"o31"
],
"metadata": {
"buttonType": "button",
"orientation": "vertical"
}
},
"q15": {
"text": "Other assets owned?",
"type": "mandatory",
"inputType": "TextInput",
"options": [],
"metadata": {
"formattingType": "textbox"
}
},
"q16": {
"text": "Why were you not able to meet the customer?",
"type": "mandatory",
"inputType": "RadioButton",
"options": [
"o32",
"o33",
"o34"
],
"metadata": {
"buttonType": "button",
"orientation": "vertical"
}
},
"q17": {
"text": "Were you able to interact with anyone else?",
"type": "mandatory",
"inputType": "RadioButton",
"options": [
"o35",
"o36",
"o37",
"o34"
],
"metadata": {
"buttonType": "button",
"orientation": "vertical"
}
},
"q18": {
"text": "Customer behaviour",
"type": "mandatory",
"inputType": "RadioButton",
"options": [
"o43",
"o44",
"o45",
"o46",
"o47"
],
"metadata": {
"buttonType": "radio",
"orientation": "vertical"
}
},
"q19": {
"text": "Language of interaction",
"type": "notMandatory",
"inputType": "Dropdown",
"options": [
"o48",
"o49",
"o50",
"o51",
"o52",
"o53",
"o54",
"o55",
"o56"
],
"metadata": {
"buttonType": "radio",
"orientation": "vertical"
}
},
"q20": {
"text": "Upload image of visit",
"type": "notMandatory",
"inputType": "ImageUpload",
"options": [],
"metadata": {}
},
"q21": {
"text": "Additional comments",
"type": "notMandatory",
"inputType": "TextInput",
"options": [],
"metadata": {
"formattingType": "textbox"
}
},
"q22": {
"inputType": "Address",
"metadata": {
}
},
"q23": {
"inputType": "Address",
"options": [],
"metadata": {
"showCommunicationAddress": false
}
},
"q24": {
"text": "Is the permanent address same as communication address?",
"type": "Mandatory",
"inputType": "RadioButton",
"options": [
"o3",
"o4"
],
"metadata": {
"buttonType": "button",
"orientation": "vertical"
}
},
"q25": {
"text": "Is the permanent address within 5 kms as communication address?",
"type": "Mandatory",
"inputType": "RadioButton",
"options": [
"o3",
"o4"
],
"metadata": {
"buttonType": "button",
"orientation": "vertical"
}
}
},
"options": {
"o1": {
"text": "Found",
"associateQuestions": [],
"metadata": {}
},
"o2": {
"text": "Not found",
"associateQuestions": [],
"metadata": {}
},
"o3": {
"text": "Yes",
"associateQuestions": [],
"metadata": {}
},
"o4": {
"text": "No",
"associateQuestions": [],
"metadata": {}
},
"o5": {
"text": "Incorrect",
"associateQuestions": [],
"metadata": {}
},
"o6": {
"text": "Incomplete",
"associateQuestions": [],
"metadata": {}
},
"o7": {
"text": "Building details",
"associateQuestions": [],
"metadata": {}
},
"o8": {
"text": "Locality details",
"associateQuestions": [],
"metadata": {}
},
"o9": {
"text": "Medical issue",
"associateQuestions": [],
"metadata": {}
},
"o10": {
"text": "Covid",
"associateQuestions": [],
"metadata": {}
},
"o11": {
"text": "Job loss",
"associateQuestions": [],
"metadata": {}
},
"o12": {
"text": "Family / Friend issue",
"associateQuestions": [],
"metadata": {}
},
"o13": {
"text": "Business purpose",
"associateQuestions": [],
"metadata": {}
},
"o14": {
"text": "Others",
"associateQuestions": ["q8"],
"metadata": {}
},
"o15": {
"text": "0",
"associateQuestions": [],
"metadata": {}
},
"o16": {
"text": "1",
"associateQuestions": [],
"metadata": {}
},
"o17": {
"text": "2",
"associateQuestions": [],
"metadata": {}
},
"o18": {
"text": "3",
"associateQuestions": [],
"metadata": {}
},
"o19": {
"text": "4",
"associateQuestions": [],
"metadata": {}
},
"o20": {
"text": "5+",
"associateQuestions": [],
"metadata": {}
},
"o21": {
"text": "Own",
"associateQuestions": [],
"metadata": {}
},
"o22": {
"text": "Family / friends",
"associateQuestions": [],
"metadata": {}
},
"o23": {
"text": "Company",
"associateQuestions": [],
"metadata": {}
},
"o24": {
"text": "Temporary lodging / paying guest",
"associateQuestions": [],
"metadata": {}
},
"o25": {
"text": "other",
"associateQuestions": [],
"metadata": {}
},
"o26": {
"text": "Car",
"associateQuestions": [],
"metadata": {}
},
"o27": {
"text": "Two wheeler",
"associateQuestions": [],
"metadata": {}
},
"o28": {
"text": "Air conditioner",
"associateQuestions": [],
"metadata": {}
},
"o29": {
"text": "Furniture",
"associateQuestions": [],
"metadata": {}
},
"o30": {
"text": "Refigerator",
"associateQuestions": [],
"metadata": {}
},
"o31": {
"text": "Others",
"associateQuestions": [
"q15"
],
"metadata": {}
},
"o32": {
"text": "Customer not at home",
"associateQuestions": [],
"metadata": {}
},
"o33": {
"text": "Customer refused to meet",
"associateQuestions": [],
"metadata": {}
},
"o34": {
"text": "Others",
"associateQuestions": [],
"metadata": {}
},
"o35": {
"text": "Customer relative",
"associateQuestions": [],
"metadata": {}
},
"o36": {
"text": "Landlord",
"associateQuestions": [],
"metadata": {}
},
"o37": {
"text": "Security guard",
"associateQuestions": [],
"metadata": {}
},
"o38": {
"text": "IT",
"associateQuestions": [],
"metadata": {}
},
"o39": {
"text": "Government Job",
"associateQuestions": [],
"metadata": {}
},
"o40": {
"text": "Private Sector",
"associateQuestions": [],
"metadata": {}
},
"o41": {
"text": "Public Sector",
"associateQuestions": [],
"metadata": {}
},
"o42": {
"text": "Self employed",
"associateQuestions": [],
"metadata": {}
},
"o43": {
"text": "Happy",
"associateQuestions": [],
"metadata": {}
},
"o44": {
"text": "Respectful",
"associateQuestions": [],
"metadata": {}
},
"o45": {
"text": "Angry",
"associateQuestions": [],
"metadata": {}
},
"o46": {
"text": "Abusive",
"associateQuestions": [],
"metadata": {}
},
"o47": {
"text": "Does not want to talk",
"associateQuestions": [],
"metadata": {}
},
"o48":{
"text": "Hindi",
"associateQuestions": [],
"metadata": {}
},
"o49":{
"text": "English",
"associateQuestions": [],
"metadata": {}
},
"o50":{
"text": "Bengali",
"associateQuestions": [],
"metadata": {}
},
"o51":{
"text": "Marathi",
"associateQuestions": [],
"metadata": {}
},
"o52":{
"text": "Gujarati",
"associateQuestions": [],
"metadata": {}
},
"o53":{
"text": "Kannada",
"associateQuestions": [],
"metadata": {}
},
"o54":{
"text": "Malayalam",
"associateQuestions": [],
"metadata": {}
},
"o55":{
"text": "Bhojpuri",
"associateQuestions": [],
"metadata": {}
},
"o56":{
"text": "Punjabi",
"associateQuestions": [],
"metadata": {}
},
"o57" : {}
},
"sections": {
"s1": {
"label": "",
"questions": [
"q1"
]
},
"s2": {
"label": "",
"questions": [
"q2"
]
},
"s3": {
"label": "Address details",
"questions": [
"q3",
"q4",
"q5"
]
},
"s4": {
"label": "Feedback for navi",
"questions": [
"q5",
"q7"
]
},
"s5": {
"label": "Details about current company",
"questions": [
"q9",
"q10"
]
},
"s6": {
"label": "Family details",
"questions": [
"q11",
"q12"
]
},
"s7": {
"label": "Asset details",
"questions": [
"q13",
"q14"
]
},
"s8": {
"label": "Interaction status",
"questions": [
"q16",
"q17"
]
},
"s9":{
"label": "Customer details",
"questions":[
"q18",
"q19"
]
},
"s10":{
"questions":[
"q20"
]
},
"s11": {
"questions": [
"q21"
]
},
"s12": {
"questions": [
"q22",
"q24"
]
},
"s13": {
"questions": [
"q23",
"q25"
]
}
}
}