@vitrina/api 17.123.1 → 17.124.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 +112 -0
- package/dist/index.d.ts +112 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -7170,6 +7170,118 @@ interface paths {
|
|
|
7170
7170
|
patch?: never;
|
|
7171
7171
|
trace?: never;
|
|
7172
7172
|
};
|
|
7173
|
+
"/pipelines/{id}/qualifying-stage": {
|
|
7174
|
+
parameters: {
|
|
7175
|
+
query?: never;
|
|
7176
|
+
header?: never;
|
|
7177
|
+
path?: never;
|
|
7178
|
+
cookie?: never;
|
|
7179
|
+
};
|
|
7180
|
+
get?: never;
|
|
7181
|
+
put?: never;
|
|
7182
|
+
/**
|
|
7183
|
+
* Add the qualifying stage to a clinic board
|
|
7184
|
+
* @description «Agregar etapa calificadora» (ADR 0163, vitrina-app#8081): gives a clinic's selling board its Etapa calificadora in one step: an open stage «Calificado» right after the entry stage, marked `qualifies_lead`, driver `conversation`, Paso del embudo «Sin cita» on the clinic board, with its standard description. The board's transition whitelist is opened for it (from the entry stage, and from whatever reaches the entry stage); an EMPTY whitelist stays unrestricted. `outcome`: `created`; `marked_existing` (an unmarked open stage already named «Calificado» was marked instead of adding a second); `already_marked` (the board marks one already; nothing written). While the board marks it, the clinic's AI agent may move a lead there when its own instructions define filter questions and the patient's answers pass them; un-marking the stage (`PUT /stages/{id}` `{ "qualifies_lead": false }`) turns that off. 422 `STAGE_QUALIFIES_LEAD_NOT_ALLOWED` outside clinics or on a board that does not sell.
|
|
7185
|
+
*/
|
|
7186
|
+
post: {
|
|
7187
|
+
parameters: {
|
|
7188
|
+
query?: never;
|
|
7189
|
+
header?: {
|
|
7190
|
+
/** @description Replay-safe retries: resending the SAME key with the SAME body returns the original response (`X-Idempotent-Replay: 1`) instead of creating a second copy — safe to send whenever a response might not have arrived. The same key with a DIFFERENT body answers `409 IDEMPOTENCY_KEY_CONFLICT`; use a fresh key per operation. */
|
|
7191
|
+
"Idempotency-Key"?: string;
|
|
7192
|
+
};
|
|
7193
|
+
path: {
|
|
7194
|
+
id: string;
|
|
7195
|
+
};
|
|
7196
|
+
cookie?: never;
|
|
7197
|
+
};
|
|
7198
|
+
requestBody?: never;
|
|
7199
|
+
responses: {
|
|
7200
|
+
/** @description Qualifying stage */
|
|
7201
|
+
200: {
|
|
7202
|
+
headers: {
|
|
7203
|
+
[name: string]: unknown;
|
|
7204
|
+
};
|
|
7205
|
+
content: {
|
|
7206
|
+
/**
|
|
7207
|
+
* @example {
|
|
7208
|
+
* "data": {
|
|
7209
|
+
* "pipeline_id": "44444444-0000-4000-8000-000000000001",
|
|
7210
|
+
* "stage_id": "9b2f6c1e-4d7a-4f3b-8c2e-1a5d7e9f0b34",
|
|
7211
|
+
* "outcome": "created"
|
|
7212
|
+
* }
|
|
7213
|
+
* }
|
|
7214
|
+
*/
|
|
7215
|
+
"application/json": {
|
|
7216
|
+
data?: unknown;
|
|
7217
|
+
meta?: {
|
|
7218
|
+
[key: string]: unknown;
|
|
7219
|
+
};
|
|
7220
|
+
};
|
|
7221
|
+
};
|
|
7222
|
+
};
|
|
7223
|
+
/** @description Validation error */
|
|
7224
|
+
400: {
|
|
7225
|
+
headers: {
|
|
7226
|
+
[name: string]: unknown;
|
|
7227
|
+
};
|
|
7228
|
+
content: {
|
|
7229
|
+
"application/json": components["schemas"]["Error"];
|
|
7230
|
+
};
|
|
7231
|
+
};
|
|
7232
|
+
/** @description Unauthorized */
|
|
7233
|
+
401: {
|
|
7234
|
+
headers: {
|
|
7235
|
+
[name: string]: unknown;
|
|
7236
|
+
};
|
|
7237
|
+
content: {
|
|
7238
|
+
"application/json": components["schemas"]["Error"];
|
|
7239
|
+
};
|
|
7240
|
+
};
|
|
7241
|
+
/** @description Forbidden */
|
|
7242
|
+
403: {
|
|
7243
|
+
headers: {
|
|
7244
|
+
[name: string]: unknown;
|
|
7245
|
+
};
|
|
7246
|
+
content: {
|
|
7247
|
+
"application/json": components["schemas"]["Error"];
|
|
7248
|
+
};
|
|
7249
|
+
};
|
|
7250
|
+
/** @description Not found */
|
|
7251
|
+
404: {
|
|
7252
|
+
headers: {
|
|
7253
|
+
[name: string]: unknown;
|
|
7254
|
+
};
|
|
7255
|
+
content: {
|
|
7256
|
+
"application/json": components["schemas"]["Error"];
|
|
7257
|
+
};
|
|
7258
|
+
};
|
|
7259
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
7260
|
+
409: {
|
|
7261
|
+
headers: {
|
|
7262
|
+
[name: string]: unknown;
|
|
7263
|
+
};
|
|
7264
|
+
content: {
|
|
7265
|
+
"application/json": components["schemas"]["Error"];
|
|
7266
|
+
};
|
|
7267
|
+
};
|
|
7268
|
+
/** @description Rate limited */
|
|
7269
|
+
429: {
|
|
7270
|
+
headers: {
|
|
7271
|
+
[name: string]: unknown;
|
|
7272
|
+
};
|
|
7273
|
+
content: {
|
|
7274
|
+
"application/json": components["schemas"]["Error"];
|
|
7275
|
+
};
|
|
7276
|
+
};
|
|
7277
|
+
};
|
|
7278
|
+
};
|
|
7279
|
+
delete?: never;
|
|
7280
|
+
options?: never;
|
|
7281
|
+
head?: never;
|
|
7282
|
+
patch?: never;
|
|
7283
|
+
trace?: never;
|
|
7284
|
+
};
|
|
7173
7285
|
"/pipelines/{id}": {
|
|
7174
7286
|
parameters: {
|
|
7175
7287
|
query?: never;
|
package/dist/index.d.ts
CHANGED
|
@@ -7170,6 +7170,118 @@ interface paths {
|
|
|
7170
7170
|
patch?: never;
|
|
7171
7171
|
trace?: never;
|
|
7172
7172
|
};
|
|
7173
|
+
"/pipelines/{id}/qualifying-stage": {
|
|
7174
|
+
parameters: {
|
|
7175
|
+
query?: never;
|
|
7176
|
+
header?: never;
|
|
7177
|
+
path?: never;
|
|
7178
|
+
cookie?: never;
|
|
7179
|
+
};
|
|
7180
|
+
get?: never;
|
|
7181
|
+
put?: never;
|
|
7182
|
+
/**
|
|
7183
|
+
* Add the qualifying stage to a clinic board
|
|
7184
|
+
* @description «Agregar etapa calificadora» (ADR 0163, vitrina-app#8081): gives a clinic's selling board its Etapa calificadora in one step: an open stage «Calificado» right after the entry stage, marked `qualifies_lead`, driver `conversation`, Paso del embudo «Sin cita» on the clinic board, with its standard description. The board's transition whitelist is opened for it (from the entry stage, and from whatever reaches the entry stage); an EMPTY whitelist stays unrestricted. `outcome`: `created`; `marked_existing` (an unmarked open stage already named «Calificado» was marked instead of adding a second); `already_marked` (the board marks one already; nothing written). While the board marks it, the clinic's AI agent may move a lead there when its own instructions define filter questions and the patient's answers pass them; un-marking the stage (`PUT /stages/{id}` `{ "qualifies_lead": false }`) turns that off. 422 `STAGE_QUALIFIES_LEAD_NOT_ALLOWED` outside clinics or on a board that does not sell.
|
|
7185
|
+
*/
|
|
7186
|
+
post: {
|
|
7187
|
+
parameters: {
|
|
7188
|
+
query?: never;
|
|
7189
|
+
header?: {
|
|
7190
|
+
/** @description Replay-safe retries: resending the SAME key with the SAME body returns the original response (`X-Idempotent-Replay: 1`) instead of creating a second copy — safe to send whenever a response might not have arrived. The same key with a DIFFERENT body answers `409 IDEMPOTENCY_KEY_CONFLICT`; use a fresh key per operation. */
|
|
7191
|
+
"Idempotency-Key"?: string;
|
|
7192
|
+
};
|
|
7193
|
+
path: {
|
|
7194
|
+
id: string;
|
|
7195
|
+
};
|
|
7196
|
+
cookie?: never;
|
|
7197
|
+
};
|
|
7198
|
+
requestBody?: never;
|
|
7199
|
+
responses: {
|
|
7200
|
+
/** @description Qualifying stage */
|
|
7201
|
+
200: {
|
|
7202
|
+
headers: {
|
|
7203
|
+
[name: string]: unknown;
|
|
7204
|
+
};
|
|
7205
|
+
content: {
|
|
7206
|
+
/**
|
|
7207
|
+
* @example {
|
|
7208
|
+
* "data": {
|
|
7209
|
+
* "pipeline_id": "44444444-0000-4000-8000-000000000001",
|
|
7210
|
+
* "stage_id": "9b2f6c1e-4d7a-4f3b-8c2e-1a5d7e9f0b34",
|
|
7211
|
+
* "outcome": "created"
|
|
7212
|
+
* }
|
|
7213
|
+
* }
|
|
7214
|
+
*/
|
|
7215
|
+
"application/json": {
|
|
7216
|
+
data?: unknown;
|
|
7217
|
+
meta?: {
|
|
7218
|
+
[key: string]: unknown;
|
|
7219
|
+
};
|
|
7220
|
+
};
|
|
7221
|
+
};
|
|
7222
|
+
};
|
|
7223
|
+
/** @description Validation error */
|
|
7224
|
+
400: {
|
|
7225
|
+
headers: {
|
|
7226
|
+
[name: string]: unknown;
|
|
7227
|
+
};
|
|
7228
|
+
content: {
|
|
7229
|
+
"application/json": components["schemas"]["Error"];
|
|
7230
|
+
};
|
|
7231
|
+
};
|
|
7232
|
+
/** @description Unauthorized */
|
|
7233
|
+
401: {
|
|
7234
|
+
headers: {
|
|
7235
|
+
[name: string]: unknown;
|
|
7236
|
+
};
|
|
7237
|
+
content: {
|
|
7238
|
+
"application/json": components["schemas"]["Error"];
|
|
7239
|
+
};
|
|
7240
|
+
};
|
|
7241
|
+
/** @description Forbidden */
|
|
7242
|
+
403: {
|
|
7243
|
+
headers: {
|
|
7244
|
+
[name: string]: unknown;
|
|
7245
|
+
};
|
|
7246
|
+
content: {
|
|
7247
|
+
"application/json": components["schemas"]["Error"];
|
|
7248
|
+
};
|
|
7249
|
+
};
|
|
7250
|
+
/** @description Not found */
|
|
7251
|
+
404: {
|
|
7252
|
+
headers: {
|
|
7253
|
+
[name: string]: unknown;
|
|
7254
|
+
};
|
|
7255
|
+
content: {
|
|
7256
|
+
"application/json": components["schemas"]["Error"];
|
|
7257
|
+
};
|
|
7258
|
+
};
|
|
7259
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
7260
|
+
409: {
|
|
7261
|
+
headers: {
|
|
7262
|
+
[name: string]: unknown;
|
|
7263
|
+
};
|
|
7264
|
+
content: {
|
|
7265
|
+
"application/json": components["schemas"]["Error"];
|
|
7266
|
+
};
|
|
7267
|
+
};
|
|
7268
|
+
/** @description Rate limited */
|
|
7269
|
+
429: {
|
|
7270
|
+
headers: {
|
|
7271
|
+
[name: string]: unknown;
|
|
7272
|
+
};
|
|
7273
|
+
content: {
|
|
7274
|
+
"application/json": components["schemas"]["Error"];
|
|
7275
|
+
};
|
|
7276
|
+
};
|
|
7277
|
+
};
|
|
7278
|
+
};
|
|
7279
|
+
delete?: never;
|
|
7280
|
+
options?: never;
|
|
7281
|
+
head?: never;
|
|
7282
|
+
patch?: never;
|
|
7283
|
+
trace?: never;
|
|
7284
|
+
};
|
|
7173
7285
|
"/pipelines/{id}": {
|
|
7174
7286
|
parameters: {
|
|
7175
7287
|
query?: never;
|
package/package.json
CHANGED