@vitrina/api 15.4.1 → 15.5.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 +312 -0
- package/dist/index.d.ts +312 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -151103,6 +151103,305 @@ interface paths {
|
|
|
151103
151103
|
patch?: never;
|
|
151104
151104
|
trace?: never;
|
|
151105
151105
|
};
|
|
151106
|
+
"/integrations/external-stock-source": {
|
|
151107
|
+
parameters: {
|
|
151108
|
+
query?: never;
|
|
151109
|
+
header?: never;
|
|
151110
|
+
path?: never;
|
|
151111
|
+
cookie?: never;
|
|
151112
|
+
};
|
|
151113
|
+
/**
|
|
151114
|
+
* Read the workspace’s external stock source
|
|
151115
|
+
* @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`.
|
|
151116
|
+
*/
|
|
151117
|
+
get: {
|
|
151118
|
+
parameters: {
|
|
151119
|
+
query?: never;
|
|
151120
|
+
header?: never;
|
|
151121
|
+
path?: never;
|
|
151122
|
+
cookie?: never;
|
|
151123
|
+
};
|
|
151124
|
+
requestBody?: never;
|
|
151125
|
+
responses: {
|
|
151126
|
+
/** @description The stock source */
|
|
151127
|
+
200: {
|
|
151128
|
+
headers: {
|
|
151129
|
+
[name: string]: unknown;
|
|
151130
|
+
};
|
|
151131
|
+
content: {
|
|
151132
|
+
/**
|
|
151133
|
+
* @example {
|
|
151134
|
+
* "data": {
|
|
151135
|
+
* "configured": true,
|
|
151136
|
+
* "url": "https://backoffice.example.cl/api/vitrina/stock",
|
|
151137
|
+
* "token_preview": "a1b2••••9z",
|
|
151138
|
+
* "updated_at": "2026-10-28T15:00:00.000Z"
|
|
151139
|
+
* }
|
|
151140
|
+
* }
|
|
151141
|
+
*/
|
|
151142
|
+
"application/json": {
|
|
151143
|
+
data?: unknown;
|
|
151144
|
+
meta?: {
|
|
151145
|
+
[key: string]: unknown;
|
|
151146
|
+
};
|
|
151147
|
+
};
|
|
151148
|
+
};
|
|
151149
|
+
};
|
|
151150
|
+
/** @description Validation error */
|
|
151151
|
+
400: {
|
|
151152
|
+
headers: {
|
|
151153
|
+
[name: string]: unknown;
|
|
151154
|
+
};
|
|
151155
|
+
content: {
|
|
151156
|
+
"application/json": components["schemas"]["Error"];
|
|
151157
|
+
};
|
|
151158
|
+
};
|
|
151159
|
+
/** @description Unauthorized */
|
|
151160
|
+
401: {
|
|
151161
|
+
headers: {
|
|
151162
|
+
[name: string]: unknown;
|
|
151163
|
+
};
|
|
151164
|
+
content: {
|
|
151165
|
+
"application/json": components["schemas"]["Error"];
|
|
151166
|
+
};
|
|
151167
|
+
};
|
|
151168
|
+
/** @description Forbidden */
|
|
151169
|
+
403: {
|
|
151170
|
+
headers: {
|
|
151171
|
+
[name: string]: unknown;
|
|
151172
|
+
};
|
|
151173
|
+
content: {
|
|
151174
|
+
"application/json": components["schemas"]["Error"];
|
|
151175
|
+
};
|
|
151176
|
+
};
|
|
151177
|
+
/** @description Not found */
|
|
151178
|
+
404: {
|
|
151179
|
+
headers: {
|
|
151180
|
+
[name: string]: unknown;
|
|
151181
|
+
};
|
|
151182
|
+
content: {
|
|
151183
|
+
"application/json": components["schemas"]["Error"];
|
|
151184
|
+
};
|
|
151185
|
+
};
|
|
151186
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
151187
|
+
409: {
|
|
151188
|
+
headers: {
|
|
151189
|
+
[name: string]: unknown;
|
|
151190
|
+
};
|
|
151191
|
+
content: {
|
|
151192
|
+
"application/json": components["schemas"]["Error"];
|
|
151193
|
+
};
|
|
151194
|
+
};
|
|
151195
|
+
/** @description Rate limited */
|
|
151196
|
+
429: {
|
|
151197
|
+
headers: {
|
|
151198
|
+
[name: string]: unknown;
|
|
151199
|
+
};
|
|
151200
|
+
content: {
|
|
151201
|
+
"application/json": components["schemas"]["Error"];
|
|
151202
|
+
};
|
|
151203
|
+
};
|
|
151204
|
+
};
|
|
151205
|
+
};
|
|
151206
|
+
/**
|
|
151207
|
+
* Save the workspace’s external stock source
|
|
151208
|
+
* @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`.
|
|
151209
|
+
*/
|
|
151210
|
+
put: {
|
|
151211
|
+
parameters: {
|
|
151212
|
+
query?: never;
|
|
151213
|
+
header?: never;
|
|
151214
|
+
path?: never;
|
|
151215
|
+
cookie?: never;
|
|
151216
|
+
};
|
|
151217
|
+
requestBody?: {
|
|
151218
|
+
content: {
|
|
151219
|
+
/**
|
|
151220
|
+
* @example {
|
|
151221
|
+
* "url": "https://backoffice.example.cl/api/vitrina/stock",
|
|
151222
|
+
* "token": "el-token-del-backoffice"
|
|
151223
|
+
* }
|
|
151224
|
+
*/
|
|
151225
|
+
"application/json": components["schemas"]["ExternalStockSourceBody"];
|
|
151226
|
+
};
|
|
151227
|
+
};
|
|
151228
|
+
responses: {
|
|
151229
|
+
/** @description The saved stock source */
|
|
151230
|
+
200: {
|
|
151231
|
+
headers: {
|
|
151232
|
+
[name: string]: unknown;
|
|
151233
|
+
};
|
|
151234
|
+
content: {
|
|
151235
|
+
/**
|
|
151236
|
+
* @example {
|
|
151237
|
+
* "data": {
|
|
151238
|
+
* "configured": true,
|
|
151239
|
+
* "url": "https://backoffice.example.cl/api/vitrina/stock",
|
|
151240
|
+
* "token_preview": "a1b2••••9z",
|
|
151241
|
+
* "updated_at": "2026-10-28T15:00:00.000Z"
|
|
151242
|
+
* }
|
|
151243
|
+
* }
|
|
151244
|
+
*/
|
|
151245
|
+
"application/json": {
|
|
151246
|
+
data?: unknown;
|
|
151247
|
+
meta?: {
|
|
151248
|
+
[key: string]: unknown;
|
|
151249
|
+
};
|
|
151250
|
+
};
|
|
151251
|
+
};
|
|
151252
|
+
};
|
|
151253
|
+
/** @description Validation error */
|
|
151254
|
+
400: {
|
|
151255
|
+
headers: {
|
|
151256
|
+
[name: string]: unknown;
|
|
151257
|
+
};
|
|
151258
|
+
content: {
|
|
151259
|
+
"application/json": components["schemas"]["Error"];
|
|
151260
|
+
};
|
|
151261
|
+
};
|
|
151262
|
+
/** @description Unauthorized */
|
|
151263
|
+
401: {
|
|
151264
|
+
headers: {
|
|
151265
|
+
[name: string]: unknown;
|
|
151266
|
+
};
|
|
151267
|
+
content: {
|
|
151268
|
+
"application/json": components["schemas"]["Error"];
|
|
151269
|
+
};
|
|
151270
|
+
};
|
|
151271
|
+
/** @description Forbidden */
|
|
151272
|
+
403: {
|
|
151273
|
+
headers: {
|
|
151274
|
+
[name: string]: unknown;
|
|
151275
|
+
};
|
|
151276
|
+
content: {
|
|
151277
|
+
"application/json": components["schemas"]["Error"];
|
|
151278
|
+
};
|
|
151279
|
+
};
|
|
151280
|
+
/** @description Not found */
|
|
151281
|
+
404: {
|
|
151282
|
+
headers: {
|
|
151283
|
+
[name: string]: unknown;
|
|
151284
|
+
};
|
|
151285
|
+
content: {
|
|
151286
|
+
"application/json": components["schemas"]["Error"];
|
|
151287
|
+
};
|
|
151288
|
+
};
|
|
151289
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
151290
|
+
409: {
|
|
151291
|
+
headers: {
|
|
151292
|
+
[name: string]: unknown;
|
|
151293
|
+
};
|
|
151294
|
+
content: {
|
|
151295
|
+
"application/json": components["schemas"]["Error"];
|
|
151296
|
+
};
|
|
151297
|
+
};
|
|
151298
|
+
/** @description Rate limited */
|
|
151299
|
+
429: {
|
|
151300
|
+
headers: {
|
|
151301
|
+
[name: string]: unknown;
|
|
151302
|
+
};
|
|
151303
|
+
content: {
|
|
151304
|
+
"application/json": components["schemas"]["Error"];
|
|
151305
|
+
};
|
|
151306
|
+
};
|
|
151307
|
+
};
|
|
151308
|
+
};
|
|
151309
|
+
post?: never;
|
|
151310
|
+
/**
|
|
151311
|
+
* Remove the workspace’s external stock source
|
|
151312
|
+
* @description Deletes the URL and the stored token. The «Stock faltante» alert then says «no pudimos verificar el stock». Requires `integrations:write`.
|
|
151313
|
+
*/
|
|
151314
|
+
delete: {
|
|
151315
|
+
parameters: {
|
|
151316
|
+
query?: never;
|
|
151317
|
+
header?: never;
|
|
151318
|
+
path?: never;
|
|
151319
|
+
cookie?: never;
|
|
151320
|
+
};
|
|
151321
|
+
requestBody?: never;
|
|
151322
|
+
responses: {
|
|
151323
|
+
/** @description Whether a source was removed */
|
|
151324
|
+
200: {
|
|
151325
|
+
headers: {
|
|
151326
|
+
[name: string]: unknown;
|
|
151327
|
+
};
|
|
151328
|
+
content: {
|
|
151329
|
+
/**
|
|
151330
|
+
* @example {
|
|
151331
|
+
* "data": {
|
|
151332
|
+
* "removed": true
|
|
151333
|
+
* }
|
|
151334
|
+
* }
|
|
151335
|
+
*/
|
|
151336
|
+
"application/json": {
|
|
151337
|
+
data?: unknown;
|
|
151338
|
+
meta?: {
|
|
151339
|
+
[key: string]: unknown;
|
|
151340
|
+
};
|
|
151341
|
+
};
|
|
151342
|
+
};
|
|
151343
|
+
};
|
|
151344
|
+
/** @description Validation error */
|
|
151345
|
+
400: {
|
|
151346
|
+
headers: {
|
|
151347
|
+
[name: string]: unknown;
|
|
151348
|
+
};
|
|
151349
|
+
content: {
|
|
151350
|
+
"application/json": components["schemas"]["Error"];
|
|
151351
|
+
};
|
|
151352
|
+
};
|
|
151353
|
+
/** @description Unauthorized */
|
|
151354
|
+
401: {
|
|
151355
|
+
headers: {
|
|
151356
|
+
[name: string]: unknown;
|
|
151357
|
+
};
|
|
151358
|
+
content: {
|
|
151359
|
+
"application/json": components["schemas"]["Error"];
|
|
151360
|
+
};
|
|
151361
|
+
};
|
|
151362
|
+
/** @description Forbidden */
|
|
151363
|
+
403: {
|
|
151364
|
+
headers: {
|
|
151365
|
+
[name: string]: unknown;
|
|
151366
|
+
};
|
|
151367
|
+
content: {
|
|
151368
|
+
"application/json": components["schemas"]["Error"];
|
|
151369
|
+
};
|
|
151370
|
+
};
|
|
151371
|
+
/** @description Not found */
|
|
151372
|
+
404: {
|
|
151373
|
+
headers: {
|
|
151374
|
+
[name: string]: unknown;
|
|
151375
|
+
};
|
|
151376
|
+
content: {
|
|
151377
|
+
"application/json": components["schemas"]["Error"];
|
|
151378
|
+
};
|
|
151379
|
+
};
|
|
151380
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
151381
|
+
409: {
|
|
151382
|
+
headers: {
|
|
151383
|
+
[name: string]: unknown;
|
|
151384
|
+
};
|
|
151385
|
+
content: {
|
|
151386
|
+
"application/json": components["schemas"]["Error"];
|
|
151387
|
+
};
|
|
151388
|
+
};
|
|
151389
|
+
/** @description Rate limited */
|
|
151390
|
+
429: {
|
|
151391
|
+
headers: {
|
|
151392
|
+
[name: string]: unknown;
|
|
151393
|
+
};
|
|
151394
|
+
content: {
|
|
151395
|
+
"application/json": components["schemas"]["Error"];
|
|
151396
|
+
};
|
|
151397
|
+
};
|
|
151398
|
+
};
|
|
151399
|
+
};
|
|
151400
|
+
options?: never;
|
|
151401
|
+
head?: never;
|
|
151402
|
+
patch?: never;
|
|
151403
|
+
trace?: never;
|
|
151404
|
+
};
|
|
151106
151405
|
"/integrations/connections": {
|
|
151107
151406
|
parameters: {
|
|
151108
151407
|
query?: never;
|
|
@@ -233925,6 +234224,10 @@ interface components {
|
|
|
233925
234224
|
template_language?: string;
|
|
233926
234225
|
change_template_name?: string;
|
|
233927
234226
|
};
|
|
234227
|
+
stock_alert?: {
|
|
234228
|
+
/** @description Lead stages that trigger the «Stock faltante» check when a lead moves into them. Empty turns it off. */
|
|
234229
|
+
stage_ids: string[];
|
|
234230
|
+
};
|
|
233928
234231
|
};
|
|
233929
234232
|
/** @description Read-only: the template state of each staff WhatsApp rail. Ignored on write. */
|
|
233930
234233
|
staff_rails?: {
|
|
@@ -234207,6 +234510,10 @@ interface components {
|
|
|
234207
234510
|
template_language?: string;
|
|
234208
234511
|
change_template_name?: string;
|
|
234209
234512
|
};
|
|
234513
|
+
stock_alert?: {
|
|
234514
|
+
/** @description Lead stages that trigger the «Stock faltante» check when a lead moves into them. Empty turns it off. */
|
|
234515
|
+
stage_ids: string[];
|
|
234516
|
+
};
|
|
234210
234517
|
};
|
|
234211
234518
|
/** @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
234519
|
manage_workshop?: boolean;
|
|
@@ -238149,6 +238456,11 @@ interface components {
|
|
|
238149
238456
|
WooCommerceSyncBody: {
|
|
238150
238457
|
force?: boolean;
|
|
238151
238458
|
};
|
|
238459
|
+
ExternalStockSourceBody: {
|
|
238460
|
+
/** Format: uri */
|
|
238461
|
+
url: string;
|
|
238462
|
+
token?: string;
|
|
238463
|
+
};
|
|
238152
238464
|
/** @description The connected account. Present on `connected` and `needs_reconnect` (the card must name what needs reconnecting). */
|
|
238153
238465
|
ProviderConnectionAccount: {
|
|
238154
238466
|
/** @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
|
@@ -151103,6 +151103,305 @@ interface paths {
|
|
|
151103
151103
|
patch?: never;
|
|
151104
151104
|
trace?: never;
|
|
151105
151105
|
};
|
|
151106
|
+
"/integrations/external-stock-source": {
|
|
151107
|
+
parameters: {
|
|
151108
|
+
query?: never;
|
|
151109
|
+
header?: never;
|
|
151110
|
+
path?: never;
|
|
151111
|
+
cookie?: never;
|
|
151112
|
+
};
|
|
151113
|
+
/**
|
|
151114
|
+
* Read the workspace’s external stock source
|
|
151115
|
+
* @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`.
|
|
151116
|
+
*/
|
|
151117
|
+
get: {
|
|
151118
|
+
parameters: {
|
|
151119
|
+
query?: never;
|
|
151120
|
+
header?: never;
|
|
151121
|
+
path?: never;
|
|
151122
|
+
cookie?: never;
|
|
151123
|
+
};
|
|
151124
|
+
requestBody?: never;
|
|
151125
|
+
responses: {
|
|
151126
|
+
/** @description The stock source */
|
|
151127
|
+
200: {
|
|
151128
|
+
headers: {
|
|
151129
|
+
[name: string]: unknown;
|
|
151130
|
+
};
|
|
151131
|
+
content: {
|
|
151132
|
+
/**
|
|
151133
|
+
* @example {
|
|
151134
|
+
* "data": {
|
|
151135
|
+
* "configured": true,
|
|
151136
|
+
* "url": "https://backoffice.example.cl/api/vitrina/stock",
|
|
151137
|
+
* "token_preview": "a1b2••••9z",
|
|
151138
|
+
* "updated_at": "2026-10-28T15:00:00.000Z"
|
|
151139
|
+
* }
|
|
151140
|
+
* }
|
|
151141
|
+
*/
|
|
151142
|
+
"application/json": {
|
|
151143
|
+
data?: unknown;
|
|
151144
|
+
meta?: {
|
|
151145
|
+
[key: string]: unknown;
|
|
151146
|
+
};
|
|
151147
|
+
};
|
|
151148
|
+
};
|
|
151149
|
+
};
|
|
151150
|
+
/** @description Validation error */
|
|
151151
|
+
400: {
|
|
151152
|
+
headers: {
|
|
151153
|
+
[name: string]: unknown;
|
|
151154
|
+
};
|
|
151155
|
+
content: {
|
|
151156
|
+
"application/json": components["schemas"]["Error"];
|
|
151157
|
+
};
|
|
151158
|
+
};
|
|
151159
|
+
/** @description Unauthorized */
|
|
151160
|
+
401: {
|
|
151161
|
+
headers: {
|
|
151162
|
+
[name: string]: unknown;
|
|
151163
|
+
};
|
|
151164
|
+
content: {
|
|
151165
|
+
"application/json": components["schemas"]["Error"];
|
|
151166
|
+
};
|
|
151167
|
+
};
|
|
151168
|
+
/** @description Forbidden */
|
|
151169
|
+
403: {
|
|
151170
|
+
headers: {
|
|
151171
|
+
[name: string]: unknown;
|
|
151172
|
+
};
|
|
151173
|
+
content: {
|
|
151174
|
+
"application/json": components["schemas"]["Error"];
|
|
151175
|
+
};
|
|
151176
|
+
};
|
|
151177
|
+
/** @description Not found */
|
|
151178
|
+
404: {
|
|
151179
|
+
headers: {
|
|
151180
|
+
[name: string]: unknown;
|
|
151181
|
+
};
|
|
151182
|
+
content: {
|
|
151183
|
+
"application/json": components["schemas"]["Error"];
|
|
151184
|
+
};
|
|
151185
|
+
};
|
|
151186
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
151187
|
+
409: {
|
|
151188
|
+
headers: {
|
|
151189
|
+
[name: string]: unknown;
|
|
151190
|
+
};
|
|
151191
|
+
content: {
|
|
151192
|
+
"application/json": components["schemas"]["Error"];
|
|
151193
|
+
};
|
|
151194
|
+
};
|
|
151195
|
+
/** @description Rate limited */
|
|
151196
|
+
429: {
|
|
151197
|
+
headers: {
|
|
151198
|
+
[name: string]: unknown;
|
|
151199
|
+
};
|
|
151200
|
+
content: {
|
|
151201
|
+
"application/json": components["schemas"]["Error"];
|
|
151202
|
+
};
|
|
151203
|
+
};
|
|
151204
|
+
};
|
|
151205
|
+
};
|
|
151206
|
+
/**
|
|
151207
|
+
* Save the workspace’s external stock source
|
|
151208
|
+
* @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`.
|
|
151209
|
+
*/
|
|
151210
|
+
put: {
|
|
151211
|
+
parameters: {
|
|
151212
|
+
query?: never;
|
|
151213
|
+
header?: never;
|
|
151214
|
+
path?: never;
|
|
151215
|
+
cookie?: never;
|
|
151216
|
+
};
|
|
151217
|
+
requestBody?: {
|
|
151218
|
+
content: {
|
|
151219
|
+
/**
|
|
151220
|
+
* @example {
|
|
151221
|
+
* "url": "https://backoffice.example.cl/api/vitrina/stock",
|
|
151222
|
+
* "token": "el-token-del-backoffice"
|
|
151223
|
+
* }
|
|
151224
|
+
*/
|
|
151225
|
+
"application/json": components["schemas"]["ExternalStockSourceBody"];
|
|
151226
|
+
};
|
|
151227
|
+
};
|
|
151228
|
+
responses: {
|
|
151229
|
+
/** @description The saved stock source */
|
|
151230
|
+
200: {
|
|
151231
|
+
headers: {
|
|
151232
|
+
[name: string]: unknown;
|
|
151233
|
+
};
|
|
151234
|
+
content: {
|
|
151235
|
+
/**
|
|
151236
|
+
* @example {
|
|
151237
|
+
* "data": {
|
|
151238
|
+
* "configured": true,
|
|
151239
|
+
* "url": "https://backoffice.example.cl/api/vitrina/stock",
|
|
151240
|
+
* "token_preview": "a1b2••••9z",
|
|
151241
|
+
* "updated_at": "2026-10-28T15:00:00.000Z"
|
|
151242
|
+
* }
|
|
151243
|
+
* }
|
|
151244
|
+
*/
|
|
151245
|
+
"application/json": {
|
|
151246
|
+
data?: unknown;
|
|
151247
|
+
meta?: {
|
|
151248
|
+
[key: string]: unknown;
|
|
151249
|
+
};
|
|
151250
|
+
};
|
|
151251
|
+
};
|
|
151252
|
+
};
|
|
151253
|
+
/** @description Validation error */
|
|
151254
|
+
400: {
|
|
151255
|
+
headers: {
|
|
151256
|
+
[name: string]: unknown;
|
|
151257
|
+
};
|
|
151258
|
+
content: {
|
|
151259
|
+
"application/json": components["schemas"]["Error"];
|
|
151260
|
+
};
|
|
151261
|
+
};
|
|
151262
|
+
/** @description Unauthorized */
|
|
151263
|
+
401: {
|
|
151264
|
+
headers: {
|
|
151265
|
+
[name: string]: unknown;
|
|
151266
|
+
};
|
|
151267
|
+
content: {
|
|
151268
|
+
"application/json": components["schemas"]["Error"];
|
|
151269
|
+
};
|
|
151270
|
+
};
|
|
151271
|
+
/** @description Forbidden */
|
|
151272
|
+
403: {
|
|
151273
|
+
headers: {
|
|
151274
|
+
[name: string]: unknown;
|
|
151275
|
+
};
|
|
151276
|
+
content: {
|
|
151277
|
+
"application/json": components["schemas"]["Error"];
|
|
151278
|
+
};
|
|
151279
|
+
};
|
|
151280
|
+
/** @description Not found */
|
|
151281
|
+
404: {
|
|
151282
|
+
headers: {
|
|
151283
|
+
[name: string]: unknown;
|
|
151284
|
+
};
|
|
151285
|
+
content: {
|
|
151286
|
+
"application/json": components["schemas"]["Error"];
|
|
151287
|
+
};
|
|
151288
|
+
};
|
|
151289
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
151290
|
+
409: {
|
|
151291
|
+
headers: {
|
|
151292
|
+
[name: string]: unknown;
|
|
151293
|
+
};
|
|
151294
|
+
content: {
|
|
151295
|
+
"application/json": components["schemas"]["Error"];
|
|
151296
|
+
};
|
|
151297
|
+
};
|
|
151298
|
+
/** @description Rate limited */
|
|
151299
|
+
429: {
|
|
151300
|
+
headers: {
|
|
151301
|
+
[name: string]: unknown;
|
|
151302
|
+
};
|
|
151303
|
+
content: {
|
|
151304
|
+
"application/json": components["schemas"]["Error"];
|
|
151305
|
+
};
|
|
151306
|
+
};
|
|
151307
|
+
};
|
|
151308
|
+
};
|
|
151309
|
+
post?: never;
|
|
151310
|
+
/**
|
|
151311
|
+
* Remove the workspace’s external stock source
|
|
151312
|
+
* @description Deletes the URL and the stored token. The «Stock faltante» alert then says «no pudimos verificar el stock». Requires `integrations:write`.
|
|
151313
|
+
*/
|
|
151314
|
+
delete: {
|
|
151315
|
+
parameters: {
|
|
151316
|
+
query?: never;
|
|
151317
|
+
header?: never;
|
|
151318
|
+
path?: never;
|
|
151319
|
+
cookie?: never;
|
|
151320
|
+
};
|
|
151321
|
+
requestBody?: never;
|
|
151322
|
+
responses: {
|
|
151323
|
+
/** @description Whether a source was removed */
|
|
151324
|
+
200: {
|
|
151325
|
+
headers: {
|
|
151326
|
+
[name: string]: unknown;
|
|
151327
|
+
};
|
|
151328
|
+
content: {
|
|
151329
|
+
/**
|
|
151330
|
+
* @example {
|
|
151331
|
+
* "data": {
|
|
151332
|
+
* "removed": true
|
|
151333
|
+
* }
|
|
151334
|
+
* }
|
|
151335
|
+
*/
|
|
151336
|
+
"application/json": {
|
|
151337
|
+
data?: unknown;
|
|
151338
|
+
meta?: {
|
|
151339
|
+
[key: string]: unknown;
|
|
151340
|
+
};
|
|
151341
|
+
};
|
|
151342
|
+
};
|
|
151343
|
+
};
|
|
151344
|
+
/** @description Validation error */
|
|
151345
|
+
400: {
|
|
151346
|
+
headers: {
|
|
151347
|
+
[name: string]: unknown;
|
|
151348
|
+
};
|
|
151349
|
+
content: {
|
|
151350
|
+
"application/json": components["schemas"]["Error"];
|
|
151351
|
+
};
|
|
151352
|
+
};
|
|
151353
|
+
/** @description Unauthorized */
|
|
151354
|
+
401: {
|
|
151355
|
+
headers: {
|
|
151356
|
+
[name: string]: unknown;
|
|
151357
|
+
};
|
|
151358
|
+
content: {
|
|
151359
|
+
"application/json": components["schemas"]["Error"];
|
|
151360
|
+
};
|
|
151361
|
+
};
|
|
151362
|
+
/** @description Forbidden */
|
|
151363
|
+
403: {
|
|
151364
|
+
headers: {
|
|
151365
|
+
[name: string]: unknown;
|
|
151366
|
+
};
|
|
151367
|
+
content: {
|
|
151368
|
+
"application/json": components["schemas"]["Error"];
|
|
151369
|
+
};
|
|
151370
|
+
};
|
|
151371
|
+
/** @description Not found */
|
|
151372
|
+
404: {
|
|
151373
|
+
headers: {
|
|
151374
|
+
[name: string]: unknown;
|
|
151375
|
+
};
|
|
151376
|
+
content: {
|
|
151377
|
+
"application/json": components["schemas"]["Error"];
|
|
151378
|
+
};
|
|
151379
|
+
};
|
|
151380
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
151381
|
+
409: {
|
|
151382
|
+
headers: {
|
|
151383
|
+
[name: string]: unknown;
|
|
151384
|
+
};
|
|
151385
|
+
content: {
|
|
151386
|
+
"application/json": components["schemas"]["Error"];
|
|
151387
|
+
};
|
|
151388
|
+
};
|
|
151389
|
+
/** @description Rate limited */
|
|
151390
|
+
429: {
|
|
151391
|
+
headers: {
|
|
151392
|
+
[name: string]: unknown;
|
|
151393
|
+
};
|
|
151394
|
+
content: {
|
|
151395
|
+
"application/json": components["schemas"]["Error"];
|
|
151396
|
+
};
|
|
151397
|
+
};
|
|
151398
|
+
};
|
|
151399
|
+
};
|
|
151400
|
+
options?: never;
|
|
151401
|
+
head?: never;
|
|
151402
|
+
patch?: never;
|
|
151403
|
+
trace?: never;
|
|
151404
|
+
};
|
|
151106
151405
|
"/integrations/connections": {
|
|
151107
151406
|
parameters: {
|
|
151108
151407
|
query?: never;
|
|
@@ -233925,6 +234224,10 @@ interface components {
|
|
|
233925
234224
|
template_language?: string;
|
|
233926
234225
|
change_template_name?: string;
|
|
233927
234226
|
};
|
|
234227
|
+
stock_alert?: {
|
|
234228
|
+
/** @description Lead stages that trigger the «Stock faltante» check when a lead moves into them. Empty turns it off. */
|
|
234229
|
+
stage_ids: string[];
|
|
234230
|
+
};
|
|
233928
234231
|
};
|
|
233929
234232
|
/** @description Read-only: the template state of each staff WhatsApp rail. Ignored on write. */
|
|
233930
234233
|
staff_rails?: {
|
|
@@ -234207,6 +234510,10 @@ interface components {
|
|
|
234207
234510
|
template_language?: string;
|
|
234208
234511
|
change_template_name?: string;
|
|
234209
234512
|
};
|
|
234513
|
+
stock_alert?: {
|
|
234514
|
+
/** @description Lead stages that trigger the «Stock faltante» check when a lead moves into them. Empty turns it off. */
|
|
234515
|
+
stage_ids: string[];
|
|
234516
|
+
};
|
|
234210
234517
|
};
|
|
234211
234518
|
/** @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
234519
|
manage_workshop?: boolean;
|
|
@@ -238149,6 +238456,11 @@ interface components {
|
|
|
238149
238456
|
WooCommerceSyncBody: {
|
|
238150
238457
|
force?: boolean;
|
|
238151
238458
|
};
|
|
238459
|
+
ExternalStockSourceBody: {
|
|
238460
|
+
/** Format: uri */
|
|
238461
|
+
url: string;
|
|
238462
|
+
token?: string;
|
|
238463
|
+
};
|
|
238152
238464
|
/** @description The connected account. Present on `connected` and `needs_reconnect` (the card must name what needs reconnecting). */
|
|
238153
238465
|
ProviderConnectionAccount: {
|
|
238154
238466
|
/** @description The provider’s own id for the account (GoHighLevel location id, Mercado Pago user id). Opaque; relayed verbatim. */
|
package/package.json
CHANGED