|
88 | 88 | "delimiter": " > ", |
89 | 89 | "levels": [ |
90 | 90 | { "level_index": 0, "name": "country", "display": { "en": "Country" } }, |
91 | | - { "level_index": 1, "name": "region", "display": { "en": "Region", "sw": "Mkoa" } }, |
92 | | - { "level_index": 2, "name": "district", "display": { "en": "District", "sw": "Wilaya" } }, |
93 | | - { "level_index": 3, "name": "ward", "display": { "en": "Ward", "sw": "Kata" } } |
| 91 | + { |
| 92 | + "level_index": 1, |
| 93 | + "name": "region", |
| 94 | + "display": { "en": "Region", "sw": "Mkoa" } |
| 95 | + }, |
| 96 | + { |
| 97 | + "level_index": 2, |
| 98 | + "name": "district", |
| 99 | + "display": { "en": "District", "sw": "Wilaya" } |
| 100 | + }, |
| 101 | + { |
| 102 | + "level_index": 3, |
| 103 | + "name": "ward", |
| 104 | + "display": { "en": "Ward", "sw": "Kata" } |
| 105 | + } |
94 | 106 | ] |
95 | 107 | }, |
96 | 108 | "onboarding": { |
|
115 | 127 | "sw": "Vizuri! Lugha uliyopendelea imewekwa kuwa Kiswahili." |
116 | 128 | } |
117 | 129 | }, |
| 130 | + { |
| 131 | + "field_name": "consent", |
| 132 | + "db_field": "data_consent", |
| 133 | + "enabled": true, |
| 134 | + "required": true, |
| 135 | + "priority": 1, |
| 136 | + "field_type": "boolean", |
| 137 | + "extraction_method": "extract_consent", |
| 138 | + "max_attempts": 3, |
| 139 | + "labels": { |
| 140 | + "en": "Data Consent", |
| 141 | + "sw": "Idhini ya Data" |
| 142 | + }, |
| 143 | + "questions": { |
| 144 | + "en": "Before we begin, do you agree to allow us to store and use your information to provide personalized agricultural advice and support?\n\nReply with *Yes* to continue or *No* to decline.", |
| 145 | + "sw": "Kabla ya kuanza, je, unakubali kuturuhusu kuhifadhi na kutumia taarifa zako ili kutoa ushauri na usaidizi wa kibinafsi wa kilimo?\n\nJibu *Ndio* kuendelea au *Hapana* kukataa." |
| 146 | + }, |
| 147 | + "affirmative_keywords": { |
| 148 | + "en": [ |
| 149 | + "yes", |
| 150 | + "ok", |
| 151 | + "okay", |
| 152 | + "agree", |
| 153 | + "i agree", |
| 154 | + "accepted", |
| 155 | + "accept", |
| 156 | + "1", |
| 157 | + "y" |
| 158 | + ], |
| 159 | + "sw": ["ndio", "ndiyo", "sawa", "kubali", "nakubali", "1"] |
| 160 | + }, |
| 161 | + "declined_keywords": { |
| 162 | + "en": ["no", "decline", "reject", "2", "n"], |
| 163 | + "sw": ["hapana", "2"] |
| 164 | + }, |
| 165 | + "success_messages": { |
| 166 | + "en": "Thank you for your consent!", |
| 167 | + "sw": "Asante kwa idhini yako!" |
| 168 | + } |
| 169 | + }, |
118 | 170 | { |
119 | 171 | "field_name": "full_name", |
120 | 172 | "db_field": "full_name", |
121 | 173 | "enabled": true, |
122 | 174 | "required": true, |
123 | | - "priority": 1, |
| 175 | + "priority": 2, |
124 | 176 | "field_type": "string", |
125 | 177 | "max_attempts": 1, |
126 | 178 | "labels": { |
|
141 | 193 | "db_field": "customer_administrative", |
142 | 194 | "enabled": true, |
143 | 195 | "required": true, |
144 | | - "priority": 2, |
| 196 | + "priority": 3, |
145 | 197 | "field_type": "location", |
146 | 198 | "extraction_method": "extract_location", |
147 | 199 | "matching_method": "resolve_administration_ambiguity", |
|
164 | 216 | "db_field": "crop_type", |
165 | 217 | "enabled": true, |
166 | 218 | "required": true, |
167 | | - "priority": 3, |
| 219 | + "priority": 4, |
168 | 220 | "field_type": "string", |
169 | 221 | "extraction_method": "extract_crop_type", |
170 | 222 | "matching_method": "resolve_crop_ambiguity", |
|
187 | 239 | "db_field": "gender", |
188 | 240 | "enabled": true, |
189 | 241 | "required": false, |
190 | | - "priority": 4, |
| 242 | + "priority": 5, |
191 | 243 | "field_type": "enum", |
192 | 244 | "extraction_method": "extract_gender", |
193 | 245 | "max_attempts": 2, |
|
209 | 261 | "db_field": "birth_year", |
210 | 262 | "enabled": true, |
211 | 263 | "required": false, |
212 | | - "priority": 5, |
| 264 | + "priority": 6, |
213 | 265 | "field_type": "integer", |
214 | 266 | "extraction_method": "extract_birth_year", |
215 | 267 | "max_attempts": 2, |
|
0 commit comments