{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "title": "Studio Queue Add Customer form config",
    "name": "QueueAddCustomerForm",
    "description": "Studio Queue Add Customer form options",
    "type": "object",
    "definitions": {
        "options": {
            "type": "object",
            "description": "Customise form options for the add new and existing customer to queue",
            "properties": {
                "formFields": {
                    "type": "object",
                    "description": "Options for add new customer form",
                    "properties": {
                        "email": {
                            "type": "object",
                            "description": "Options for email form input",
                            "properties": {
                                "visible": {
                                    "type": "boolean",
                                    "description": "If true, the email field is visible in the form"
                                },
                                "required": {
                                    "type": "boolean",
                                    "description": "If true, the email field is required"
                                }
                            }
                        }
                    }
                },
                "typeahead": {
                    "type": "object",
                    "description": "Options for typehead in existing customer form",
                    "properties": {
                        "minLength": {
                            "type": "number",
                            "description": "The number of characters required to trigger typeahead directive"
                        },
                        "waitTime": {
                            "type": "number",
                            "description": "The amount of time in milliseconds after which typehead is triggered"
                        },
                        "focusFirst": {
                            "type": "boolean",
                            "description": "If true. the typeahead field is focused when the form loads"
                        },
                        "editable": {
                            "type": "boolean",
                            "description": "If true, restricts model values to the ones selected from the popup only"
                        }
                    }
                }
            }
        }
    }
}
