-
-
Save morisono/7e5a8294ca26a2abeec1d9fb1e9ad093 to your computer and use it in GitHub Desktop.
JSON schema para Zapier
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "response_schema", | |
| "schema": { | |
| "type": "object", | |
| "additionalProperties": false, | |
| "required": [ | |
| "cliente", | |
| "mail_solicitante", | |
| "email_meta", | |
| "intencion", | |
| "viaje", | |
| "evidencias", | |
| "notas" | |
| ], | |
| "properties": { | |
| "cliente": { | |
| "type": "object", | |
| "additionalProperties": false, | |
| "required": [ | |
| "dominio", | |
| "nombre_inferido" | |
| ], | |
| "properties": { | |
| "dominio": { | |
| "type": [ | |
| "string", | |
| "null" | |
| ] | |
| }, | |
| "nombre_inferido": { | |
| "type": [ | |
| "string", | |
| "null" | |
| ] | |
| } | |
| } | |
| }, | |
| "mail_solicitante": { | |
| "type": [ | |
| "string", | |
| "null" | |
| ] | |
| }, | |
| "email_meta": { | |
| "type": "object", | |
| "additionalProperties": false, | |
| "required": [ | |
| "fecha_mail", | |
| "hora_mail", | |
| "timezone", | |
| "asunto" | |
| ], | |
| "properties": { | |
| "fecha_mail": { | |
| "type": [ | |
| "string", | |
| "null" | |
| ], | |
| "description": "DD-MM-YYYY" | |
| }, | |
| "hora_mail": { | |
| "type": [ | |
| "string", | |
| "null" | |
| ], | |
| "description": "HH:MM" | |
| }, | |
| "timezone": { | |
| "type": "string" | |
| }, | |
| "asunto": { | |
| "type": [ | |
| "string", | |
| "null" | |
| ] | |
| } | |
| } | |
| }, | |
| "intencion": { | |
| "type": "object", | |
| "additionalProperties": false, | |
| "required": [ | |
| "tipo", | |
| "confidence", | |
| "reserva_referencia" | |
| ], | |
| "properties": { | |
| "tipo": { | |
| "type": "string", | |
| "enum": [ | |
| "nueva_reserva", | |
| "modificar_reserva", | |
| "cancelar_reserva", | |
| "consulta", | |
| "desconocido" | |
| ] | |
| }, | |
| "confidence": { | |
| "type": "number", | |
| "minimum": 0, | |
| "maximum": 1 | |
| }, | |
| "reserva_referencia": { | |
| "type": [ | |
| "string", | |
| "null" | |
| ] | |
| } | |
| } | |
| }, | |
| "viaje": { | |
| "type": "object", | |
| "additionalProperties": false, | |
| "required": [ | |
| "fecha_viaje", | |
| "hora_viaje", | |
| "origen", | |
| "destino", | |
| "pasajero" | |
| ], | |
| "properties": { | |
| "fecha_viaje": { | |
| "type": [ | |
| "string", | |
| "null" | |
| ], | |
| "description": "DD-MM-YYYY" | |
| }, | |
| "hora_viaje": { | |
| "type": [ | |
| "string", | |
| "null" | |
| ], | |
| "description": "HH:MM" | |
| }, | |
| "origen": { | |
| "type": "object", | |
| "additionalProperties": false, | |
| "required": [ | |
| "direccion_texto", | |
| "calle", | |
| "altura", | |
| "localidad", | |
| "observaciones" | |
| ], | |
| "properties": { | |
| "direccion_texto": { | |
| "type": [ | |
| "string", | |
| "null" | |
| ] | |
| }, | |
| "calle": { | |
| "type": [ | |
| "string", | |
| "null" | |
| ] | |
| }, | |
| "altura": { | |
| "type": [ | |
| "string", | |
| "null" | |
| ] | |
| }, | |
| "localidad": { | |
| "type": [ | |
| "string", | |
| "null" | |
| ] | |
| }, | |
| "observaciones": { | |
| "type": [ | |
| "string", | |
| "null" | |
| ] | |
| } | |
| } | |
| }, | |
| "destino": { | |
| "type": "object", | |
| "additionalProperties": false, | |
| "required": [ | |
| "direccion_texto", | |
| "calle", | |
| "altura", | |
| "localidad", | |
| "observaciones" | |
| ], | |
| "properties": { | |
| "direccion_texto": { | |
| "type": [ | |
| "string", | |
| "null" | |
| ] | |
| }, | |
| "calle": { | |
| "type": [ | |
| "string", | |
| "null" | |
| ] | |
| }, | |
| "altura": { | |
| "type": [ | |
| "string", | |
| "null" | |
| ] | |
| }, | |
| "localidad": { | |
| "type": [ | |
| "string", | |
| "null" | |
| ] | |
| }, | |
| "observaciones": { | |
| "type": [ | |
| "string", | |
| "null" | |
| ] | |
| } | |
| } | |
| }, | |
| "pasajero": { | |
| "type": "object", | |
| "additionalProperties": false, | |
| "required": [ | |
| "nombre", | |
| "cantidad", | |
| "telefono_solicitante" | |
| ], | |
| "properties": { | |
| "nombre": { | |
| "type": [ | |
| "string", | |
| "null" | |
| ] | |
| }, | |
| "cantidad": { | |
| "type": [ | |
| "string", | |
| "null" | |
| ] | |
| }, | |
| "telefono_solicitante": { | |
| "type": [ | |
| "string", | |
| "null" | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "evidencias": { | |
| "type": "object", | |
| "additionalProperties": false, | |
| "required": [ | |
| "cliente", | |
| "mail_solicitante", | |
| "fecha_mail", | |
| "hora_mail", | |
| "fecha_viaje", | |
| "hora_viaje", | |
| "origen", | |
| "destino", | |
| "pasajero", | |
| "intencion" | |
| ], | |
| "properties": { | |
| "cliente": { | |
| "type": "array", | |
| "items": { | |
| "type": "string" | |
| } | |
| }, | |
| "mail_solicitante": { | |
| "type": "array", | |
| "items": { | |
| "type": "string" | |
| } | |
| }, | |
| "fecha_mail": { | |
| "type": "array", | |
| "items": { | |
| "type": "string" | |
| } | |
| }, | |
| "hora_mail": { | |
| "type": "array", | |
| "items": { | |
| "type": "string" | |
| } | |
| }, | |
| "fecha_viaje": { | |
| "type": "array", | |
| "items": { | |
| "type": "string" | |
| } | |
| }, | |
| "hora_viaje": { | |
| "type": "array", | |
| "items": { | |
| "type": "string" | |
| } | |
| }, | |
| "origen": { | |
| "type": "array", | |
| "items": { | |
| "type": "string" | |
| } | |
| }, | |
| "destino": { | |
| "type": "array", | |
| "items": { | |
| "type": "string" | |
| } | |
| }, | |
| "pasajero": { | |
| "type": "array", | |
| "items": { | |
| "type": "string" | |
| } | |
| }, | |
| "intencion": { | |
| "type": "array", | |
| "items": { | |
| "type": "string" | |
| } | |
| } | |
| } | |
| }, | |
| "notas": { | |
| "type": "array", | |
| "items": { | |
| "type": "string" | |
| } | |
| } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment