plazbot-cli 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -99,6 +99,30 @@
|
|
|
99
99
|
"enableWhatsappWidget": { "type": "boolean" },
|
|
100
100
|
"urlWhatsappWidget": { "type": "string" },
|
|
101
101
|
"formWidget": { "type": "boolean" },
|
|
102
|
+
"formTypeWidget": {
|
|
103
|
+
"type": ["string", "null"],
|
|
104
|
+
"enum": ["chat", "fields", null],
|
|
105
|
+
"default": "chat",
|
|
106
|
+
"description": "Estilo del formulario de registro: chat (conversacional) o fields (campos en una sola pantalla). Solo aplica si formWidget es true."
|
|
107
|
+
},
|
|
108
|
+
"formFieldsWidget": {
|
|
109
|
+
"type": ["array", "null"],
|
|
110
|
+
"maxItems": 5,
|
|
111
|
+
"description": "Campos adicionales del formulario por campos (formTypeWidget = fields). Cada valor se guarda en una variable del contacto.",
|
|
112
|
+
"items": {
|
|
113
|
+
"type": "object",
|
|
114
|
+
"properties": {
|
|
115
|
+
"id": { "type": "string" },
|
|
116
|
+
"label": { "type": "string", "maxLength": 60 },
|
|
117
|
+
"type": { "type": "string", "enum": ["text", "select", "date"], "default": "text" },
|
|
118
|
+
"options": { "type": ["array", "null"], "items": { "type": "string", "maxLength": 60 }, "maxItems": 20 },
|
|
119
|
+
"variable": { "type": "string" },
|
|
120
|
+
"required": { "type": "boolean" }
|
|
121
|
+
},
|
|
122
|
+
"required": ["label", "type", "variable"],
|
|
123
|
+
"additionalProperties": false
|
|
124
|
+
}
|
|
125
|
+
},
|
|
102
126
|
"darkWidget": { "type": "boolean" },
|
|
103
127
|
"colorWidget": {
|
|
104
128
|
"type": ["string", "null"],
|