| 
									
										
										
										
											2024-04-25 00:56:36 +02:00
										 |  |  | import Title from "../../Base/Title" | 
					
						
							|  |  |  | import Combine from "../../Base/Combine" | 
					
						
							|  |  |  | import { Validator } from "../Validator" | 
					
						
							|  |  |  | import Table from "../../Base/Table" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export default class NameSuggestionIndexValidator extends Validator { | 
					
						
							|  |  |  |     constructor() { | 
					
						
							|  |  |  |         super( | 
					
						
							|  |  |  |             "nsi", | 
					
						
							|  |  |  |             new Combine([ | 
					
						
							|  |  |  |                 "Gives a list of possible suggestions for a brand or operator tag.", | 
					
						
							|  |  |  |                 new Title("Helper arguments"), | 
					
						
							|  |  |  |                 new Table( | 
					
						
							|  |  |  |                     ["name", "doc"], | 
					
						
							|  |  |  |                     [ | 
					
						
							|  |  |  |                         [ | 
					
						
							|  |  |  |                             "options", | 
					
						
							|  |  |  |                             new Combine([ | 
					
						
							|  |  |  |                                 "A JSON-object of type `{ main: string, key: string }`. ", | 
					
						
							|  |  |  |                                 new Table( | 
					
						
							|  |  |  |                                     ["subarg", "doc"], | 
					
						
							|  |  |  |                                     [ | 
					
						
							|  |  |  |                                         [ | 
					
						
							|  |  |  |                                             "main", | 
					
						
							|  |  |  |                                             "The main tag to give suggestions for, e.g. `amenity=restaurant`.", | 
					
						
							|  |  |  |                                         ], | 
					
						
							| 
									
										
										
										
											2024-04-29 01:07:02 +02:00
										 |  |  |                                         [ | 
					
						
							|  |  |  |                                             "addExtraTags", | 
					
						
							|  |  |  |                                             "Extra tags to add to the suggestions, e.g. `nobrand=yes`.", | 
					
						
							|  |  |  |                                         ], | 
					
						
							| 
									
										
										
										
											2024-04-25 00:56:36 +02:00
										 |  |  |                                     ] | 
					
						
							|  |  |  |                                 ), | 
					
						
							|  |  |  |                             ]), | 
					
						
							|  |  |  |                         ], | 
					
						
							|  |  |  |                     ] | 
					
						
							|  |  |  |                 ), | 
					
						
							|  |  |  |             ]) | 
					
						
							|  |  |  |         ) | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | } |