@vitrina/api 15.4.2 → 15.6.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 +318 -1
- package/dist/index.d.ts +318 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -139259,7 +139259,7 @@ interface paths {
|
|
|
139259
139259
|
};
|
|
139260
139260
|
/**
|
|
139261
139261
|
* Update lead review configuration
|
|
139262
|
-
* @description Partial patch; an empty body is a 400. Sets whether the reviewer runs (`enabled`), how far a stage verdict may go on its own (`stage_autonomy`: `auto`, `suggest` or `off`), the confidence floor for an automatic move (`auto_confidence`, 0..1), the days of silence after which a score halves (`half_life_days`) and the workspace’s own addendum (`instructions`, up to 4000 characters). Answers the merged config plus the calibration curve. Requires `followups:write`.
|
|
139262
|
+
* @description Partial patch; an empty body is a 400. Sets whether the reviewer runs (`enabled`), how far a stage verdict may go on its own (`stage_autonomy`: `auto`, `suggest` or `off`), the confidence floor for an automatic move (`auto_confidence`, 0..1), the days of silence after which a score halves (`half_life_days`) and the workspace’s own addendum (`instructions`, up to 4000 characters), and the Jev agreement doors (`agreement_doors`: stages, by slug, that Jev may move a lead forward into when a measured question such as `visit_to_buy` clears its threshold; replaces the whole list). Answers the merged config plus the calibration curve. Requires `followups:write`.
|
|
139263
139263
|
*/
|
|
139264
139264
|
put: {
|
|
139265
139265
|
parameters: {
|
|
@@ -139283,6 +139283,11 @@ interface paths {
|
|
|
139283
139283
|
auto_confidence?: number;
|
|
139284
139284
|
instructions?: string;
|
|
139285
139285
|
half_life_days?: number;
|
|
139286
|
+
agreement_doors?: {
|
|
139287
|
+
stage_slug: string;
|
|
139288
|
+
/** @enum {string} */
|
|
139289
|
+
question: "visit_to_buy";
|
|
139290
|
+
}[];
|
|
139286
139291
|
};
|
|
139287
139292
|
};
|
|
139288
139293
|
};
|
|
@@ -151103,6 +151108,305 @@ interface paths {
|
|
|
151103
151108
|
patch?: never;
|
|
151104
151109
|
trace?: never;
|
|
151105
151110
|
};
|
|
151111
|
+
"/integrations/external-stock-source": {
|
|
151112
|
+
parameters: {
|
|
151113
|
+
query?: never;
|
|
151114
|
+
header?: never;
|
|
151115
|
+
path?: never;
|
|
151116
|
+
cookie?: never;
|
|
151117
|
+
};
|
|
151118
|
+
/**
|
|
151119
|
+
* Read the workspace’s external stock source
|
|
151120
|
+
* @description The back-office stock endpoint the «Stock faltante» alert asks live: its URL and a masked preview of its token (never the token). `configured: false` until a URL and a token are saved. Requires `integrations:read`.
|
|
151121
|
+
*/
|
|
151122
|
+
get: {
|
|
151123
|
+
parameters: {
|
|
151124
|
+
query?: never;
|
|
151125
|
+
header?: never;
|
|
151126
|
+
path?: never;
|
|
151127
|
+
cookie?: never;
|
|
151128
|
+
};
|
|
151129
|
+
requestBody?: never;
|
|
151130
|
+
responses: {
|
|
151131
|
+
/** @description The stock source */
|
|
151132
|
+
200: {
|
|
151133
|
+
headers: {
|
|
151134
|
+
[name: string]: unknown;
|
|
151135
|
+
};
|
|
151136
|
+
content: {
|
|
151137
|
+
/**
|
|
151138
|
+
* @example {
|
|
151139
|
+
* "data": {
|
|
151140
|
+
* "configured": true,
|
|
151141
|
+
* "url": "https://backoffice.example.cl/api/vitrina/stock",
|
|
151142
|
+
* "token_preview": "a1b2••••9z",
|
|
151143
|
+
* "updated_at": "2026-10-28T15:00:00.000Z"
|
|
151144
|
+
* }
|
|
151145
|
+
* }
|
|
151146
|
+
*/
|
|
151147
|
+
"application/json": {
|
|
151148
|
+
data?: unknown;
|
|
151149
|
+
meta?: {
|
|
151150
|
+
[key: string]: unknown;
|
|
151151
|
+
};
|
|
151152
|
+
};
|
|
151153
|
+
};
|
|
151154
|
+
};
|
|
151155
|
+
/** @description Validation error */
|
|
151156
|
+
400: {
|
|
151157
|
+
headers: {
|
|
151158
|
+
[name: string]: unknown;
|
|
151159
|
+
};
|
|
151160
|
+
content: {
|
|
151161
|
+
"application/json": components["schemas"]["Error"];
|
|
151162
|
+
};
|
|
151163
|
+
};
|
|
151164
|
+
/** @description Unauthorized */
|
|
151165
|
+
401: {
|
|
151166
|
+
headers: {
|
|
151167
|
+
[name: string]: unknown;
|
|
151168
|
+
};
|
|
151169
|
+
content: {
|
|
151170
|
+
"application/json": components["schemas"]["Error"];
|
|
151171
|
+
};
|
|
151172
|
+
};
|
|
151173
|
+
/** @description Forbidden */
|
|
151174
|
+
403: {
|
|
151175
|
+
headers: {
|
|
151176
|
+
[name: string]: unknown;
|
|
151177
|
+
};
|
|
151178
|
+
content: {
|
|
151179
|
+
"application/json": components["schemas"]["Error"];
|
|
151180
|
+
};
|
|
151181
|
+
};
|
|
151182
|
+
/** @description Not found */
|
|
151183
|
+
404: {
|
|
151184
|
+
headers: {
|
|
151185
|
+
[name: string]: unknown;
|
|
151186
|
+
};
|
|
151187
|
+
content: {
|
|
151188
|
+
"application/json": components["schemas"]["Error"];
|
|
151189
|
+
};
|
|
151190
|
+
};
|
|
151191
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
151192
|
+
409: {
|
|
151193
|
+
headers: {
|
|
151194
|
+
[name: string]: unknown;
|
|
151195
|
+
};
|
|
151196
|
+
content: {
|
|
151197
|
+
"application/json": components["schemas"]["Error"];
|
|
151198
|
+
};
|
|
151199
|
+
};
|
|
151200
|
+
/** @description Rate limited */
|
|
151201
|
+
429: {
|
|
151202
|
+
headers: {
|
|
151203
|
+
[name: string]: unknown;
|
|
151204
|
+
};
|
|
151205
|
+
content: {
|
|
151206
|
+
"application/json": components["schemas"]["Error"];
|
|
151207
|
+
};
|
|
151208
|
+
};
|
|
151209
|
+
};
|
|
151210
|
+
};
|
|
151211
|
+
/**
|
|
151212
|
+
* Save the workspace’s external stock source
|
|
151213
|
+
* @description Sets the endpoint (`url`, absolute https) and its token (`token`, sent as the `x-vitrina-token` header). Omit `token` to keep the stored one; it is required the first time. The endpoint must answer `{ conteos: [{ modelo, capacidad, gb, cantidad }] }` (or the matrix `{ modelos: [{ modelo, combinaciones: [{ capacidad, cantidad }] }] }`); a model or capacity it does not list has zero units. Requires `integrations:write`.
|
|
151214
|
+
*/
|
|
151215
|
+
put: {
|
|
151216
|
+
parameters: {
|
|
151217
|
+
query?: never;
|
|
151218
|
+
header?: never;
|
|
151219
|
+
path?: never;
|
|
151220
|
+
cookie?: never;
|
|
151221
|
+
};
|
|
151222
|
+
requestBody?: {
|
|
151223
|
+
content: {
|
|
151224
|
+
/**
|
|
151225
|
+
* @example {
|
|
151226
|
+
* "url": "https://backoffice.example.cl/api/vitrina/stock",
|
|
151227
|
+
* "token": "el-token-del-backoffice"
|
|
151228
|
+
* }
|
|
151229
|
+
*/
|
|
151230
|
+
"application/json": components["schemas"]["ExternalStockSourceBody"];
|
|
151231
|
+
};
|
|
151232
|
+
};
|
|
151233
|
+
responses: {
|
|
151234
|
+
/** @description The saved stock source */
|
|
151235
|
+
200: {
|
|
151236
|
+
headers: {
|
|
151237
|
+
[name: string]: unknown;
|
|
151238
|
+
};
|
|
151239
|
+
content: {
|
|
151240
|
+
/**
|
|
151241
|
+
* @example {
|
|
151242
|
+
* "data": {
|
|
151243
|
+
* "configured": true,
|
|
151244
|
+
* "url": "https://backoffice.example.cl/api/vitrina/stock",
|
|
151245
|
+
* "token_preview": "a1b2••••9z",
|
|
151246
|
+
* "updated_at": "2026-10-28T15:00:00.000Z"
|
|
151247
|
+
* }
|
|
151248
|
+
* }
|
|
151249
|
+
*/
|
|
151250
|
+
"application/json": {
|
|
151251
|
+
data?: unknown;
|
|
151252
|
+
meta?: {
|
|
151253
|
+
[key: string]: unknown;
|
|
151254
|
+
};
|
|
151255
|
+
};
|
|
151256
|
+
};
|
|
151257
|
+
};
|
|
151258
|
+
/** @description Validation error */
|
|
151259
|
+
400: {
|
|
151260
|
+
headers: {
|
|
151261
|
+
[name: string]: unknown;
|
|
151262
|
+
};
|
|
151263
|
+
content: {
|
|
151264
|
+
"application/json": components["schemas"]["Error"];
|
|
151265
|
+
};
|
|
151266
|
+
};
|
|
151267
|
+
/** @description Unauthorized */
|
|
151268
|
+
401: {
|
|
151269
|
+
headers: {
|
|
151270
|
+
[name: string]: unknown;
|
|
151271
|
+
};
|
|
151272
|
+
content: {
|
|
151273
|
+
"application/json": components["schemas"]["Error"];
|
|
151274
|
+
};
|
|
151275
|
+
};
|
|
151276
|
+
/** @description Forbidden */
|
|
151277
|
+
403: {
|
|
151278
|
+
headers: {
|
|
151279
|
+
[name: string]: unknown;
|
|
151280
|
+
};
|
|
151281
|
+
content: {
|
|
151282
|
+
"application/json": components["schemas"]["Error"];
|
|
151283
|
+
};
|
|
151284
|
+
};
|
|
151285
|
+
/** @description Not found */
|
|
151286
|
+
404: {
|
|
151287
|
+
headers: {
|
|
151288
|
+
[name: string]: unknown;
|
|
151289
|
+
};
|
|
151290
|
+
content: {
|
|
151291
|
+
"application/json": components["schemas"]["Error"];
|
|
151292
|
+
};
|
|
151293
|
+
};
|
|
151294
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
151295
|
+
409: {
|
|
151296
|
+
headers: {
|
|
151297
|
+
[name: string]: unknown;
|
|
151298
|
+
};
|
|
151299
|
+
content: {
|
|
151300
|
+
"application/json": components["schemas"]["Error"];
|
|
151301
|
+
};
|
|
151302
|
+
};
|
|
151303
|
+
/** @description Rate limited */
|
|
151304
|
+
429: {
|
|
151305
|
+
headers: {
|
|
151306
|
+
[name: string]: unknown;
|
|
151307
|
+
};
|
|
151308
|
+
content: {
|
|
151309
|
+
"application/json": components["schemas"]["Error"];
|
|
151310
|
+
};
|
|
151311
|
+
};
|
|
151312
|
+
};
|
|
151313
|
+
};
|
|
151314
|
+
post?: never;
|
|
151315
|
+
/**
|
|
151316
|
+
* Remove the workspace’s external stock source
|
|
151317
|
+
* @description Deletes the URL and the stored token. The «Stock faltante» alert then says «no pudimos verificar el stock». Requires `integrations:write`.
|
|
151318
|
+
*/
|
|
151319
|
+
delete: {
|
|
151320
|
+
parameters: {
|
|
151321
|
+
query?: never;
|
|
151322
|
+
header?: never;
|
|
151323
|
+
path?: never;
|
|
151324
|
+
cookie?: never;
|
|
151325
|
+
};
|
|
151326
|
+
requestBody?: never;
|
|
151327
|
+
responses: {
|
|
151328
|
+
/** @description Whether a source was removed */
|
|
151329
|
+
200: {
|
|
151330
|
+
headers: {
|
|
151331
|
+
[name: string]: unknown;
|
|
151332
|
+
};
|
|
151333
|
+
content: {
|
|
151334
|
+
/**
|
|
151335
|
+
* @example {
|
|
151336
|
+
* "data": {
|
|
151337
|
+
* "removed": true
|
|
151338
|
+
* }
|
|
151339
|
+
* }
|
|
151340
|
+
*/
|
|
151341
|
+
"application/json": {
|
|
151342
|
+
data?: unknown;
|
|
151343
|
+
meta?: {
|
|
151344
|
+
[key: string]: unknown;
|
|
151345
|
+
};
|
|
151346
|
+
};
|
|
151347
|
+
};
|
|
151348
|
+
};
|
|
151349
|
+
/** @description Validation error */
|
|
151350
|
+
400: {
|
|
151351
|
+
headers: {
|
|
151352
|
+
[name: string]: unknown;
|
|
151353
|
+
};
|
|
151354
|
+
content: {
|
|
151355
|
+
"application/json": components["schemas"]["Error"];
|
|
151356
|
+
};
|
|
151357
|
+
};
|
|
151358
|
+
/** @description Unauthorized */
|
|
151359
|
+
401: {
|
|
151360
|
+
headers: {
|
|
151361
|
+
[name: string]: unknown;
|
|
151362
|
+
};
|
|
151363
|
+
content: {
|
|
151364
|
+
"application/json": components["schemas"]["Error"];
|
|
151365
|
+
};
|
|
151366
|
+
};
|
|
151367
|
+
/** @description Forbidden */
|
|
151368
|
+
403: {
|
|
151369
|
+
headers: {
|
|
151370
|
+
[name: string]: unknown;
|
|
151371
|
+
};
|
|
151372
|
+
content: {
|
|
151373
|
+
"application/json": components["schemas"]["Error"];
|
|
151374
|
+
};
|
|
151375
|
+
};
|
|
151376
|
+
/** @description Not found */
|
|
151377
|
+
404: {
|
|
151378
|
+
headers: {
|
|
151379
|
+
[name: string]: unknown;
|
|
151380
|
+
};
|
|
151381
|
+
content: {
|
|
151382
|
+
"application/json": components["schemas"]["Error"];
|
|
151383
|
+
};
|
|
151384
|
+
};
|
|
151385
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
151386
|
+
409: {
|
|
151387
|
+
headers: {
|
|
151388
|
+
[name: string]: unknown;
|
|
151389
|
+
};
|
|
151390
|
+
content: {
|
|
151391
|
+
"application/json": components["schemas"]["Error"];
|
|
151392
|
+
};
|
|
151393
|
+
};
|
|
151394
|
+
/** @description Rate limited */
|
|
151395
|
+
429: {
|
|
151396
|
+
headers: {
|
|
151397
|
+
[name: string]: unknown;
|
|
151398
|
+
};
|
|
151399
|
+
content: {
|
|
151400
|
+
"application/json": components["schemas"]["Error"];
|
|
151401
|
+
};
|
|
151402
|
+
};
|
|
151403
|
+
};
|
|
151404
|
+
};
|
|
151405
|
+
options?: never;
|
|
151406
|
+
head?: never;
|
|
151407
|
+
patch?: never;
|
|
151408
|
+
trace?: never;
|
|
151409
|
+
};
|
|
151106
151410
|
"/integrations/connections": {
|
|
151107
151411
|
parameters: {
|
|
151108
151412
|
query?: never;
|
|
@@ -233925,6 +234229,10 @@ interface components {
|
|
|
233925
234229
|
template_language?: string;
|
|
233926
234230
|
change_template_name?: string;
|
|
233927
234231
|
};
|
|
234232
|
+
stock_alert?: {
|
|
234233
|
+
/** @description Lead stages that trigger the «Stock faltante» check when a lead moves into them. Empty turns it off. */
|
|
234234
|
+
stage_ids: string[];
|
|
234235
|
+
};
|
|
233928
234236
|
};
|
|
233929
234237
|
/** @description Read-only: the template state of each staff WhatsApp rail. Ignored on write. */
|
|
233930
234238
|
staff_rails?: {
|
|
@@ -234207,6 +234515,10 @@ interface components {
|
|
|
234207
234515
|
template_language?: string;
|
|
234208
234516
|
change_template_name?: string;
|
|
234209
234517
|
};
|
|
234518
|
+
stock_alert?: {
|
|
234519
|
+
/** @description Lead stages that trigger the «Stock faltante» check when a lead moves into them. Empty turns it off. */
|
|
234520
|
+
stage_ids: string[];
|
|
234521
|
+
};
|
|
234210
234522
|
};
|
|
234211
234523
|
/** @description Turn the «Servicio de vehículos» workshop board on (creates it; automotive only) or off (removes it only while it never held a ticket). */
|
|
234212
234524
|
manage_workshop?: boolean;
|
|
@@ -238149,6 +238461,11 @@ interface components {
|
|
|
238149
238461
|
WooCommerceSyncBody: {
|
|
238150
238462
|
force?: boolean;
|
|
238151
238463
|
};
|
|
238464
|
+
ExternalStockSourceBody: {
|
|
238465
|
+
/** Format: uri */
|
|
238466
|
+
url: string;
|
|
238467
|
+
token?: string;
|
|
238468
|
+
};
|
|
238152
238469
|
/** @description The connected account. Present on `connected` and `needs_reconnect` (the card must name what needs reconnecting). */
|
|
238153
238470
|
ProviderConnectionAccount: {
|
|
238154
238471
|
/** @description The provider’s own id for the account (GoHighLevel location id, Mercado Pago user id). Opaque; relayed verbatim. */
|
package/dist/index.d.ts
CHANGED
|
@@ -139259,7 +139259,7 @@ interface paths {
|
|
|
139259
139259
|
};
|
|
139260
139260
|
/**
|
|
139261
139261
|
* Update lead review configuration
|
|
139262
|
-
* @description Partial patch; an empty body is a 400. Sets whether the reviewer runs (`enabled`), how far a stage verdict may go on its own (`stage_autonomy`: `auto`, `suggest` or `off`), the confidence floor for an automatic move (`auto_confidence`, 0..1), the days of silence after which a score halves (`half_life_days`) and the workspace’s own addendum (`instructions`, up to 4000 characters). Answers the merged config plus the calibration curve. Requires `followups:write`.
|
|
139262
|
+
* @description Partial patch; an empty body is a 400. Sets whether the reviewer runs (`enabled`), how far a stage verdict may go on its own (`stage_autonomy`: `auto`, `suggest` or `off`), the confidence floor for an automatic move (`auto_confidence`, 0..1), the days of silence after which a score halves (`half_life_days`) and the workspace’s own addendum (`instructions`, up to 4000 characters), and the Jev agreement doors (`agreement_doors`: stages, by slug, that Jev may move a lead forward into when a measured question such as `visit_to_buy` clears its threshold; replaces the whole list). Answers the merged config plus the calibration curve. Requires `followups:write`.
|
|
139263
139263
|
*/
|
|
139264
139264
|
put: {
|
|
139265
139265
|
parameters: {
|
|
@@ -139283,6 +139283,11 @@ interface paths {
|
|
|
139283
139283
|
auto_confidence?: number;
|
|
139284
139284
|
instructions?: string;
|
|
139285
139285
|
half_life_days?: number;
|
|
139286
|
+
agreement_doors?: {
|
|
139287
|
+
stage_slug: string;
|
|
139288
|
+
/** @enum {string} */
|
|
139289
|
+
question: "visit_to_buy";
|
|
139290
|
+
}[];
|
|
139286
139291
|
};
|
|
139287
139292
|
};
|
|
139288
139293
|
};
|
|
@@ -151103,6 +151108,305 @@ interface paths {
|
|
|
151103
151108
|
patch?: never;
|
|
151104
151109
|
trace?: never;
|
|
151105
151110
|
};
|
|
151111
|
+
"/integrations/external-stock-source": {
|
|
151112
|
+
parameters: {
|
|
151113
|
+
query?: never;
|
|
151114
|
+
header?: never;
|
|
151115
|
+
path?: never;
|
|
151116
|
+
cookie?: never;
|
|
151117
|
+
};
|
|
151118
|
+
/**
|
|
151119
|
+
* Read the workspace’s external stock source
|
|
151120
|
+
* @description The back-office stock endpoint the «Stock faltante» alert asks live: its URL and a masked preview of its token (never the token). `configured: false` until a URL and a token are saved. Requires `integrations:read`.
|
|
151121
|
+
*/
|
|
151122
|
+
get: {
|
|
151123
|
+
parameters: {
|
|
151124
|
+
query?: never;
|
|
151125
|
+
header?: never;
|
|
151126
|
+
path?: never;
|
|
151127
|
+
cookie?: never;
|
|
151128
|
+
};
|
|
151129
|
+
requestBody?: never;
|
|
151130
|
+
responses: {
|
|
151131
|
+
/** @description The stock source */
|
|
151132
|
+
200: {
|
|
151133
|
+
headers: {
|
|
151134
|
+
[name: string]: unknown;
|
|
151135
|
+
};
|
|
151136
|
+
content: {
|
|
151137
|
+
/**
|
|
151138
|
+
* @example {
|
|
151139
|
+
* "data": {
|
|
151140
|
+
* "configured": true,
|
|
151141
|
+
* "url": "https://backoffice.example.cl/api/vitrina/stock",
|
|
151142
|
+
* "token_preview": "a1b2••••9z",
|
|
151143
|
+
* "updated_at": "2026-10-28T15:00:00.000Z"
|
|
151144
|
+
* }
|
|
151145
|
+
* }
|
|
151146
|
+
*/
|
|
151147
|
+
"application/json": {
|
|
151148
|
+
data?: unknown;
|
|
151149
|
+
meta?: {
|
|
151150
|
+
[key: string]: unknown;
|
|
151151
|
+
};
|
|
151152
|
+
};
|
|
151153
|
+
};
|
|
151154
|
+
};
|
|
151155
|
+
/** @description Validation error */
|
|
151156
|
+
400: {
|
|
151157
|
+
headers: {
|
|
151158
|
+
[name: string]: unknown;
|
|
151159
|
+
};
|
|
151160
|
+
content: {
|
|
151161
|
+
"application/json": components["schemas"]["Error"];
|
|
151162
|
+
};
|
|
151163
|
+
};
|
|
151164
|
+
/** @description Unauthorized */
|
|
151165
|
+
401: {
|
|
151166
|
+
headers: {
|
|
151167
|
+
[name: string]: unknown;
|
|
151168
|
+
};
|
|
151169
|
+
content: {
|
|
151170
|
+
"application/json": components["schemas"]["Error"];
|
|
151171
|
+
};
|
|
151172
|
+
};
|
|
151173
|
+
/** @description Forbidden */
|
|
151174
|
+
403: {
|
|
151175
|
+
headers: {
|
|
151176
|
+
[name: string]: unknown;
|
|
151177
|
+
};
|
|
151178
|
+
content: {
|
|
151179
|
+
"application/json": components["schemas"]["Error"];
|
|
151180
|
+
};
|
|
151181
|
+
};
|
|
151182
|
+
/** @description Not found */
|
|
151183
|
+
404: {
|
|
151184
|
+
headers: {
|
|
151185
|
+
[name: string]: unknown;
|
|
151186
|
+
};
|
|
151187
|
+
content: {
|
|
151188
|
+
"application/json": components["schemas"]["Error"];
|
|
151189
|
+
};
|
|
151190
|
+
};
|
|
151191
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
151192
|
+
409: {
|
|
151193
|
+
headers: {
|
|
151194
|
+
[name: string]: unknown;
|
|
151195
|
+
};
|
|
151196
|
+
content: {
|
|
151197
|
+
"application/json": components["schemas"]["Error"];
|
|
151198
|
+
};
|
|
151199
|
+
};
|
|
151200
|
+
/** @description Rate limited */
|
|
151201
|
+
429: {
|
|
151202
|
+
headers: {
|
|
151203
|
+
[name: string]: unknown;
|
|
151204
|
+
};
|
|
151205
|
+
content: {
|
|
151206
|
+
"application/json": components["schemas"]["Error"];
|
|
151207
|
+
};
|
|
151208
|
+
};
|
|
151209
|
+
};
|
|
151210
|
+
};
|
|
151211
|
+
/**
|
|
151212
|
+
* Save the workspace’s external stock source
|
|
151213
|
+
* @description Sets the endpoint (`url`, absolute https) and its token (`token`, sent as the `x-vitrina-token` header). Omit `token` to keep the stored one; it is required the first time. The endpoint must answer `{ conteos: [{ modelo, capacidad, gb, cantidad }] }` (or the matrix `{ modelos: [{ modelo, combinaciones: [{ capacidad, cantidad }] }] }`); a model or capacity it does not list has zero units. Requires `integrations:write`.
|
|
151214
|
+
*/
|
|
151215
|
+
put: {
|
|
151216
|
+
parameters: {
|
|
151217
|
+
query?: never;
|
|
151218
|
+
header?: never;
|
|
151219
|
+
path?: never;
|
|
151220
|
+
cookie?: never;
|
|
151221
|
+
};
|
|
151222
|
+
requestBody?: {
|
|
151223
|
+
content: {
|
|
151224
|
+
/**
|
|
151225
|
+
* @example {
|
|
151226
|
+
* "url": "https://backoffice.example.cl/api/vitrina/stock",
|
|
151227
|
+
* "token": "el-token-del-backoffice"
|
|
151228
|
+
* }
|
|
151229
|
+
*/
|
|
151230
|
+
"application/json": components["schemas"]["ExternalStockSourceBody"];
|
|
151231
|
+
};
|
|
151232
|
+
};
|
|
151233
|
+
responses: {
|
|
151234
|
+
/** @description The saved stock source */
|
|
151235
|
+
200: {
|
|
151236
|
+
headers: {
|
|
151237
|
+
[name: string]: unknown;
|
|
151238
|
+
};
|
|
151239
|
+
content: {
|
|
151240
|
+
/**
|
|
151241
|
+
* @example {
|
|
151242
|
+
* "data": {
|
|
151243
|
+
* "configured": true,
|
|
151244
|
+
* "url": "https://backoffice.example.cl/api/vitrina/stock",
|
|
151245
|
+
* "token_preview": "a1b2••••9z",
|
|
151246
|
+
* "updated_at": "2026-10-28T15:00:00.000Z"
|
|
151247
|
+
* }
|
|
151248
|
+
* }
|
|
151249
|
+
*/
|
|
151250
|
+
"application/json": {
|
|
151251
|
+
data?: unknown;
|
|
151252
|
+
meta?: {
|
|
151253
|
+
[key: string]: unknown;
|
|
151254
|
+
};
|
|
151255
|
+
};
|
|
151256
|
+
};
|
|
151257
|
+
};
|
|
151258
|
+
/** @description Validation error */
|
|
151259
|
+
400: {
|
|
151260
|
+
headers: {
|
|
151261
|
+
[name: string]: unknown;
|
|
151262
|
+
};
|
|
151263
|
+
content: {
|
|
151264
|
+
"application/json": components["schemas"]["Error"];
|
|
151265
|
+
};
|
|
151266
|
+
};
|
|
151267
|
+
/** @description Unauthorized */
|
|
151268
|
+
401: {
|
|
151269
|
+
headers: {
|
|
151270
|
+
[name: string]: unknown;
|
|
151271
|
+
};
|
|
151272
|
+
content: {
|
|
151273
|
+
"application/json": components["schemas"]["Error"];
|
|
151274
|
+
};
|
|
151275
|
+
};
|
|
151276
|
+
/** @description Forbidden */
|
|
151277
|
+
403: {
|
|
151278
|
+
headers: {
|
|
151279
|
+
[name: string]: unknown;
|
|
151280
|
+
};
|
|
151281
|
+
content: {
|
|
151282
|
+
"application/json": components["schemas"]["Error"];
|
|
151283
|
+
};
|
|
151284
|
+
};
|
|
151285
|
+
/** @description Not found */
|
|
151286
|
+
404: {
|
|
151287
|
+
headers: {
|
|
151288
|
+
[name: string]: unknown;
|
|
151289
|
+
};
|
|
151290
|
+
content: {
|
|
151291
|
+
"application/json": components["schemas"]["Error"];
|
|
151292
|
+
};
|
|
151293
|
+
};
|
|
151294
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
151295
|
+
409: {
|
|
151296
|
+
headers: {
|
|
151297
|
+
[name: string]: unknown;
|
|
151298
|
+
};
|
|
151299
|
+
content: {
|
|
151300
|
+
"application/json": components["schemas"]["Error"];
|
|
151301
|
+
};
|
|
151302
|
+
};
|
|
151303
|
+
/** @description Rate limited */
|
|
151304
|
+
429: {
|
|
151305
|
+
headers: {
|
|
151306
|
+
[name: string]: unknown;
|
|
151307
|
+
};
|
|
151308
|
+
content: {
|
|
151309
|
+
"application/json": components["schemas"]["Error"];
|
|
151310
|
+
};
|
|
151311
|
+
};
|
|
151312
|
+
};
|
|
151313
|
+
};
|
|
151314
|
+
post?: never;
|
|
151315
|
+
/**
|
|
151316
|
+
* Remove the workspace’s external stock source
|
|
151317
|
+
* @description Deletes the URL and the stored token. The «Stock faltante» alert then says «no pudimos verificar el stock». Requires `integrations:write`.
|
|
151318
|
+
*/
|
|
151319
|
+
delete: {
|
|
151320
|
+
parameters: {
|
|
151321
|
+
query?: never;
|
|
151322
|
+
header?: never;
|
|
151323
|
+
path?: never;
|
|
151324
|
+
cookie?: never;
|
|
151325
|
+
};
|
|
151326
|
+
requestBody?: never;
|
|
151327
|
+
responses: {
|
|
151328
|
+
/** @description Whether a source was removed */
|
|
151329
|
+
200: {
|
|
151330
|
+
headers: {
|
|
151331
|
+
[name: string]: unknown;
|
|
151332
|
+
};
|
|
151333
|
+
content: {
|
|
151334
|
+
/**
|
|
151335
|
+
* @example {
|
|
151336
|
+
* "data": {
|
|
151337
|
+
* "removed": true
|
|
151338
|
+
* }
|
|
151339
|
+
* }
|
|
151340
|
+
*/
|
|
151341
|
+
"application/json": {
|
|
151342
|
+
data?: unknown;
|
|
151343
|
+
meta?: {
|
|
151344
|
+
[key: string]: unknown;
|
|
151345
|
+
};
|
|
151346
|
+
};
|
|
151347
|
+
};
|
|
151348
|
+
};
|
|
151349
|
+
/** @description Validation error */
|
|
151350
|
+
400: {
|
|
151351
|
+
headers: {
|
|
151352
|
+
[name: string]: unknown;
|
|
151353
|
+
};
|
|
151354
|
+
content: {
|
|
151355
|
+
"application/json": components["schemas"]["Error"];
|
|
151356
|
+
};
|
|
151357
|
+
};
|
|
151358
|
+
/** @description Unauthorized */
|
|
151359
|
+
401: {
|
|
151360
|
+
headers: {
|
|
151361
|
+
[name: string]: unknown;
|
|
151362
|
+
};
|
|
151363
|
+
content: {
|
|
151364
|
+
"application/json": components["schemas"]["Error"];
|
|
151365
|
+
};
|
|
151366
|
+
};
|
|
151367
|
+
/** @description Forbidden */
|
|
151368
|
+
403: {
|
|
151369
|
+
headers: {
|
|
151370
|
+
[name: string]: unknown;
|
|
151371
|
+
};
|
|
151372
|
+
content: {
|
|
151373
|
+
"application/json": components["schemas"]["Error"];
|
|
151374
|
+
};
|
|
151375
|
+
};
|
|
151376
|
+
/** @description Not found */
|
|
151377
|
+
404: {
|
|
151378
|
+
headers: {
|
|
151379
|
+
[name: string]: unknown;
|
|
151380
|
+
};
|
|
151381
|
+
content: {
|
|
151382
|
+
"application/json": components["schemas"]["Error"];
|
|
151383
|
+
};
|
|
151384
|
+
};
|
|
151385
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
151386
|
+
409: {
|
|
151387
|
+
headers: {
|
|
151388
|
+
[name: string]: unknown;
|
|
151389
|
+
};
|
|
151390
|
+
content: {
|
|
151391
|
+
"application/json": components["schemas"]["Error"];
|
|
151392
|
+
};
|
|
151393
|
+
};
|
|
151394
|
+
/** @description Rate limited */
|
|
151395
|
+
429: {
|
|
151396
|
+
headers: {
|
|
151397
|
+
[name: string]: unknown;
|
|
151398
|
+
};
|
|
151399
|
+
content: {
|
|
151400
|
+
"application/json": components["schemas"]["Error"];
|
|
151401
|
+
};
|
|
151402
|
+
};
|
|
151403
|
+
};
|
|
151404
|
+
};
|
|
151405
|
+
options?: never;
|
|
151406
|
+
head?: never;
|
|
151407
|
+
patch?: never;
|
|
151408
|
+
trace?: never;
|
|
151409
|
+
};
|
|
151106
151410
|
"/integrations/connections": {
|
|
151107
151411
|
parameters: {
|
|
151108
151412
|
query?: never;
|
|
@@ -233925,6 +234229,10 @@ interface components {
|
|
|
233925
234229
|
template_language?: string;
|
|
233926
234230
|
change_template_name?: string;
|
|
233927
234231
|
};
|
|
234232
|
+
stock_alert?: {
|
|
234233
|
+
/** @description Lead stages that trigger the «Stock faltante» check when a lead moves into them. Empty turns it off. */
|
|
234234
|
+
stage_ids: string[];
|
|
234235
|
+
};
|
|
233928
234236
|
};
|
|
233929
234237
|
/** @description Read-only: the template state of each staff WhatsApp rail. Ignored on write. */
|
|
233930
234238
|
staff_rails?: {
|
|
@@ -234207,6 +234515,10 @@ interface components {
|
|
|
234207
234515
|
template_language?: string;
|
|
234208
234516
|
change_template_name?: string;
|
|
234209
234517
|
};
|
|
234518
|
+
stock_alert?: {
|
|
234519
|
+
/** @description Lead stages that trigger the «Stock faltante» check when a lead moves into them. Empty turns it off. */
|
|
234520
|
+
stage_ids: string[];
|
|
234521
|
+
};
|
|
234210
234522
|
};
|
|
234211
234523
|
/** @description Turn the «Servicio de vehículos» workshop board on (creates it; automotive only) or off (removes it only while it never held a ticket). */
|
|
234212
234524
|
manage_workshop?: boolean;
|
|
@@ -238149,6 +238461,11 @@ interface components {
|
|
|
238149
238461
|
WooCommerceSyncBody: {
|
|
238150
238462
|
force?: boolean;
|
|
238151
238463
|
};
|
|
238464
|
+
ExternalStockSourceBody: {
|
|
238465
|
+
/** Format: uri */
|
|
238466
|
+
url: string;
|
|
238467
|
+
token?: string;
|
|
238468
|
+
};
|
|
238152
238469
|
/** @description The connected account. Present on `connected` and `needs_reconnect` (the card must name what needs reconnecting). */
|
|
238153
238470
|
ProviderConnectionAccount: {
|
|
238154
238471
|
/** @description The provider’s own id for the account (GoHighLevel location id, Mercado Pago user id). Opaque; relayed verbatim. */
|
package/package.json
CHANGED