@vitrina/api 14.92.0 → 14.94.0
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.
- package/dist/index.d.cts +151 -0
- package/dist/index.d.ts +151 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -136023,6 +136023,157 @@ interface paths {
|
|
|
136023
136023
|
patch?: never;
|
|
136024
136024
|
trace?: never;
|
|
136025
136025
|
};
|
|
136026
|
+
"/followups/write-first": {
|
|
136027
|
+
parameters: {
|
|
136028
|
+
query?: never;
|
|
136029
|
+
header?: never;
|
|
136030
|
+
path?: never;
|
|
136031
|
+
cookie?: never;
|
|
136032
|
+
};
|
|
136033
|
+
/**
|
|
136034
|
+
* What Vitrina writes first, one sentence per moment
|
|
136035
|
+
* @description The «Escribir primero» header: one sentence per proactive tab, generated from the workspace’s real settings, never fixed copy. `tabs` always holds, in this order, `first_touch` («Al llegar»: which lead sources get a first message, on which channel, after the first-touch delay), `recontacto` («Si no responde»: exactly `GET /followups/recontacto/plan` `header_sentence`), `followups` («Avisos»: the active follow-up recipes, grouped by trigger) and `post_atencion` («Después de atenderlo»: armed service protocols and, for clinics, the presupuesto follow-up). `on` is false when that rail sends nothing today. `pointers` lists the rails that also write first but are set elsewhere, only when they do: `appointment_reminders`, `automation_rules` (active rules that send a message), `surveys` (the review request), `waitlist` (clinics only) and `campaigns` (always). Each item carries the screen it links to (`href`). Copy is in `lang` (default the workspace’s).
|
|
136036
|
+
*/
|
|
136037
|
+
get: {
|
|
136038
|
+
parameters: {
|
|
136039
|
+
query?: {
|
|
136040
|
+
lang?: "es" | "en";
|
|
136041
|
+
};
|
|
136042
|
+
header?: never;
|
|
136043
|
+
path?: never;
|
|
136044
|
+
cookie?: never;
|
|
136045
|
+
};
|
|
136046
|
+
requestBody?: never;
|
|
136047
|
+
responses: {
|
|
136048
|
+
/** @description The header sentences and pointers */
|
|
136049
|
+
200: {
|
|
136050
|
+
headers: {
|
|
136051
|
+
[name: string]: unknown;
|
|
136052
|
+
};
|
|
136053
|
+
content: {
|
|
136054
|
+
/**
|
|
136055
|
+
* @example {
|
|
136056
|
+
* "data": {
|
|
136057
|
+
* "locale": "es",
|
|
136058
|
+
* "tabs": [
|
|
136059
|
+
* {
|
|
136060
|
+
* "tab": "first_touch",
|
|
136061
|
+
* "label": "Al llegar",
|
|
136062
|
+
* "sentence": "Un lead del sitio web recibe un WhatsApp a los 5 min si no nos escribió antes.",
|
|
136063
|
+
* "on": true,
|
|
136064
|
+
* "href": "/settings/first-touch"
|
|
136065
|
+
* },
|
|
136066
|
+
* {
|
|
136067
|
+
* "tab": "recontacto",
|
|
136068
|
+
* "label": "Si no responde",
|
|
136069
|
+
* "sentence": "4 mensajes en 5 días; a los 12 días se marca perdido y a los 42 días, uno más con tu aprobación.",
|
|
136070
|
+
* "on": true,
|
|
136071
|
+
* "href": "/settings/seguimientos?tab=recontacto"
|
|
136072
|
+
* },
|
|
136073
|
+
* {
|
|
136074
|
+
* "tab": "followups",
|
|
136075
|
+
* "label": "Avisos",
|
|
136076
|
+
* "sentence": "1 aviso activo: lo que el cliente pidió que le recordáramos.",
|
|
136077
|
+
* "on": true,
|
|
136078
|
+
* "href": "/settings/seguimientos"
|
|
136079
|
+
* },
|
|
136080
|
+
* {
|
|
136081
|
+
* "tab": "post_atencion",
|
|
136082
|
+
* "label": "Después de atenderlo",
|
|
136083
|
+
* "sentence": "Sin pautas activas.",
|
|
136084
|
+
* "on": false,
|
|
136085
|
+
* "href": "/settings/seguimientos?tab=post-atencion"
|
|
136086
|
+
* }
|
|
136087
|
+
* ],
|
|
136088
|
+
* "pointers": [
|
|
136089
|
+
* {
|
|
136090
|
+
* "pointer": "appointment_reminders",
|
|
136091
|
+
* "label": "Recordatorios de cita",
|
|
136092
|
+
* "sentence": "Un recordatorio 2 horas antes de cada cita.",
|
|
136093
|
+
* "href": "/settings/recordatorios"
|
|
136094
|
+
* },
|
|
136095
|
+
* {
|
|
136096
|
+
* "pointer": "campaigns",
|
|
136097
|
+
* "label": "Campañas",
|
|
136098
|
+
* "sentence": "Solo salen cuando lanzas una campaña; ninguna en curso.",
|
|
136099
|
+
* "href": "/campaigns"
|
|
136100
|
+
* }
|
|
136101
|
+
* ]
|
|
136102
|
+
* }
|
|
136103
|
+
* }
|
|
136104
|
+
*/
|
|
136105
|
+
"application/json": {
|
|
136106
|
+
data?: unknown;
|
|
136107
|
+
meta?: {
|
|
136108
|
+
[key: string]: unknown;
|
|
136109
|
+
};
|
|
136110
|
+
};
|
|
136111
|
+
};
|
|
136112
|
+
};
|
|
136113
|
+
/** @description Validation error */
|
|
136114
|
+
400: {
|
|
136115
|
+
headers: {
|
|
136116
|
+
[name: string]: unknown;
|
|
136117
|
+
};
|
|
136118
|
+
content: {
|
|
136119
|
+
"application/json": components["schemas"]["Error"];
|
|
136120
|
+
};
|
|
136121
|
+
};
|
|
136122
|
+
/** @description Unauthorized */
|
|
136123
|
+
401: {
|
|
136124
|
+
headers: {
|
|
136125
|
+
[name: string]: unknown;
|
|
136126
|
+
};
|
|
136127
|
+
content: {
|
|
136128
|
+
"application/json": components["schemas"]["Error"];
|
|
136129
|
+
};
|
|
136130
|
+
};
|
|
136131
|
+
/** @description Forbidden */
|
|
136132
|
+
403: {
|
|
136133
|
+
headers: {
|
|
136134
|
+
[name: string]: unknown;
|
|
136135
|
+
};
|
|
136136
|
+
content: {
|
|
136137
|
+
"application/json": components["schemas"]["Error"];
|
|
136138
|
+
};
|
|
136139
|
+
};
|
|
136140
|
+
/** @description Not found */
|
|
136141
|
+
404: {
|
|
136142
|
+
headers: {
|
|
136143
|
+
[name: string]: unknown;
|
|
136144
|
+
};
|
|
136145
|
+
content: {
|
|
136146
|
+
"application/json": components["schemas"]["Error"];
|
|
136147
|
+
};
|
|
136148
|
+
};
|
|
136149
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
136150
|
+
409: {
|
|
136151
|
+
headers: {
|
|
136152
|
+
[name: string]: unknown;
|
|
136153
|
+
};
|
|
136154
|
+
content: {
|
|
136155
|
+
"application/json": components["schemas"]["Error"];
|
|
136156
|
+
};
|
|
136157
|
+
};
|
|
136158
|
+
/** @description Rate limited */
|
|
136159
|
+
429: {
|
|
136160
|
+
headers: {
|
|
136161
|
+
[name: string]: unknown;
|
|
136162
|
+
};
|
|
136163
|
+
content: {
|
|
136164
|
+
"application/json": components["schemas"]["Error"];
|
|
136165
|
+
};
|
|
136166
|
+
};
|
|
136167
|
+
};
|
|
136168
|
+
};
|
|
136169
|
+
put?: never;
|
|
136170
|
+
post?: never;
|
|
136171
|
+
delete?: never;
|
|
136172
|
+
options?: never;
|
|
136173
|
+
head?: never;
|
|
136174
|
+
patch?: never;
|
|
136175
|
+
trace?: never;
|
|
136176
|
+
};
|
|
136026
136177
|
"/followups/recontacto/readiness": {
|
|
136027
136178
|
parameters: {
|
|
136028
136179
|
query?: never;
|
package/dist/index.d.ts
CHANGED
|
@@ -136023,6 +136023,157 @@ interface paths {
|
|
|
136023
136023
|
patch?: never;
|
|
136024
136024
|
trace?: never;
|
|
136025
136025
|
};
|
|
136026
|
+
"/followups/write-first": {
|
|
136027
|
+
parameters: {
|
|
136028
|
+
query?: never;
|
|
136029
|
+
header?: never;
|
|
136030
|
+
path?: never;
|
|
136031
|
+
cookie?: never;
|
|
136032
|
+
};
|
|
136033
|
+
/**
|
|
136034
|
+
* What Vitrina writes first, one sentence per moment
|
|
136035
|
+
* @description The «Escribir primero» header: one sentence per proactive tab, generated from the workspace’s real settings, never fixed copy. `tabs` always holds, in this order, `first_touch` («Al llegar»: which lead sources get a first message, on which channel, after the first-touch delay), `recontacto` («Si no responde»: exactly `GET /followups/recontacto/plan` `header_sentence`), `followups` («Avisos»: the active follow-up recipes, grouped by trigger) and `post_atencion` («Después de atenderlo»: armed service protocols and, for clinics, the presupuesto follow-up). `on` is false when that rail sends nothing today. `pointers` lists the rails that also write first but are set elsewhere, only when they do: `appointment_reminders`, `automation_rules` (active rules that send a message), `surveys` (the review request), `waitlist` (clinics only) and `campaigns` (always). Each item carries the screen it links to (`href`). Copy is in `lang` (default the workspace’s).
|
|
136036
|
+
*/
|
|
136037
|
+
get: {
|
|
136038
|
+
parameters: {
|
|
136039
|
+
query?: {
|
|
136040
|
+
lang?: "es" | "en";
|
|
136041
|
+
};
|
|
136042
|
+
header?: never;
|
|
136043
|
+
path?: never;
|
|
136044
|
+
cookie?: never;
|
|
136045
|
+
};
|
|
136046
|
+
requestBody?: never;
|
|
136047
|
+
responses: {
|
|
136048
|
+
/** @description The header sentences and pointers */
|
|
136049
|
+
200: {
|
|
136050
|
+
headers: {
|
|
136051
|
+
[name: string]: unknown;
|
|
136052
|
+
};
|
|
136053
|
+
content: {
|
|
136054
|
+
/**
|
|
136055
|
+
* @example {
|
|
136056
|
+
* "data": {
|
|
136057
|
+
* "locale": "es",
|
|
136058
|
+
* "tabs": [
|
|
136059
|
+
* {
|
|
136060
|
+
* "tab": "first_touch",
|
|
136061
|
+
* "label": "Al llegar",
|
|
136062
|
+
* "sentence": "Un lead del sitio web recibe un WhatsApp a los 5 min si no nos escribió antes.",
|
|
136063
|
+
* "on": true,
|
|
136064
|
+
* "href": "/settings/first-touch"
|
|
136065
|
+
* },
|
|
136066
|
+
* {
|
|
136067
|
+
* "tab": "recontacto",
|
|
136068
|
+
* "label": "Si no responde",
|
|
136069
|
+
* "sentence": "4 mensajes en 5 días; a los 12 días se marca perdido y a los 42 días, uno más con tu aprobación.",
|
|
136070
|
+
* "on": true,
|
|
136071
|
+
* "href": "/settings/seguimientos?tab=recontacto"
|
|
136072
|
+
* },
|
|
136073
|
+
* {
|
|
136074
|
+
* "tab": "followups",
|
|
136075
|
+
* "label": "Avisos",
|
|
136076
|
+
* "sentence": "1 aviso activo: lo que el cliente pidió que le recordáramos.",
|
|
136077
|
+
* "on": true,
|
|
136078
|
+
* "href": "/settings/seguimientos"
|
|
136079
|
+
* },
|
|
136080
|
+
* {
|
|
136081
|
+
* "tab": "post_atencion",
|
|
136082
|
+
* "label": "Después de atenderlo",
|
|
136083
|
+
* "sentence": "Sin pautas activas.",
|
|
136084
|
+
* "on": false,
|
|
136085
|
+
* "href": "/settings/seguimientos?tab=post-atencion"
|
|
136086
|
+
* }
|
|
136087
|
+
* ],
|
|
136088
|
+
* "pointers": [
|
|
136089
|
+
* {
|
|
136090
|
+
* "pointer": "appointment_reminders",
|
|
136091
|
+
* "label": "Recordatorios de cita",
|
|
136092
|
+
* "sentence": "Un recordatorio 2 horas antes de cada cita.",
|
|
136093
|
+
* "href": "/settings/recordatorios"
|
|
136094
|
+
* },
|
|
136095
|
+
* {
|
|
136096
|
+
* "pointer": "campaigns",
|
|
136097
|
+
* "label": "Campañas",
|
|
136098
|
+
* "sentence": "Solo salen cuando lanzas una campaña; ninguna en curso.",
|
|
136099
|
+
* "href": "/campaigns"
|
|
136100
|
+
* }
|
|
136101
|
+
* ]
|
|
136102
|
+
* }
|
|
136103
|
+
* }
|
|
136104
|
+
*/
|
|
136105
|
+
"application/json": {
|
|
136106
|
+
data?: unknown;
|
|
136107
|
+
meta?: {
|
|
136108
|
+
[key: string]: unknown;
|
|
136109
|
+
};
|
|
136110
|
+
};
|
|
136111
|
+
};
|
|
136112
|
+
};
|
|
136113
|
+
/** @description Validation error */
|
|
136114
|
+
400: {
|
|
136115
|
+
headers: {
|
|
136116
|
+
[name: string]: unknown;
|
|
136117
|
+
};
|
|
136118
|
+
content: {
|
|
136119
|
+
"application/json": components["schemas"]["Error"];
|
|
136120
|
+
};
|
|
136121
|
+
};
|
|
136122
|
+
/** @description Unauthorized */
|
|
136123
|
+
401: {
|
|
136124
|
+
headers: {
|
|
136125
|
+
[name: string]: unknown;
|
|
136126
|
+
};
|
|
136127
|
+
content: {
|
|
136128
|
+
"application/json": components["schemas"]["Error"];
|
|
136129
|
+
};
|
|
136130
|
+
};
|
|
136131
|
+
/** @description Forbidden */
|
|
136132
|
+
403: {
|
|
136133
|
+
headers: {
|
|
136134
|
+
[name: string]: unknown;
|
|
136135
|
+
};
|
|
136136
|
+
content: {
|
|
136137
|
+
"application/json": components["schemas"]["Error"];
|
|
136138
|
+
};
|
|
136139
|
+
};
|
|
136140
|
+
/** @description Not found */
|
|
136141
|
+
404: {
|
|
136142
|
+
headers: {
|
|
136143
|
+
[name: string]: unknown;
|
|
136144
|
+
};
|
|
136145
|
+
content: {
|
|
136146
|
+
"application/json": components["schemas"]["Error"];
|
|
136147
|
+
};
|
|
136148
|
+
};
|
|
136149
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
136150
|
+
409: {
|
|
136151
|
+
headers: {
|
|
136152
|
+
[name: string]: unknown;
|
|
136153
|
+
};
|
|
136154
|
+
content: {
|
|
136155
|
+
"application/json": components["schemas"]["Error"];
|
|
136156
|
+
};
|
|
136157
|
+
};
|
|
136158
|
+
/** @description Rate limited */
|
|
136159
|
+
429: {
|
|
136160
|
+
headers: {
|
|
136161
|
+
[name: string]: unknown;
|
|
136162
|
+
};
|
|
136163
|
+
content: {
|
|
136164
|
+
"application/json": components["schemas"]["Error"];
|
|
136165
|
+
};
|
|
136166
|
+
};
|
|
136167
|
+
};
|
|
136168
|
+
};
|
|
136169
|
+
put?: never;
|
|
136170
|
+
post?: never;
|
|
136171
|
+
delete?: never;
|
|
136172
|
+
options?: never;
|
|
136173
|
+
head?: never;
|
|
136174
|
+
patch?: never;
|
|
136175
|
+
trace?: never;
|
|
136176
|
+
};
|
|
136026
136177
|
"/followups/recontacto/readiness": {
|
|
136027
136178
|
parameters: {
|
|
136028
136179
|
query?: never;
|
package/package.json
CHANGED