@vitrina/api 17.83.1 → 17.84.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 +302 -1
- package/dist/index.d.ts +302 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -50199,7 +50199,121 @@ interface paths {
|
|
|
50199
50199
|
path?: never;
|
|
50200
50200
|
cookie?: never;
|
|
50201
50201
|
};
|
|
50202
|
-
|
|
50202
|
+
/**
|
|
50203
|
+
* The acquisition record for a vehicle
|
|
50204
|
+
* @description How one car arrived and what it cost (its Costo de compra). Needs `dealership_economics:read`. `vehicle_id` is required (no whole-lot cost dump). An empty array, not a 404, when no acquisition has been recorded yet; a car removed from Stock answers the same empty array. The cost editor prefills its amount from `amount_paid_clp` and its «Compra con factura (incluye IVA)» tick from `invoice_includes_iva` (vitrina-app#7719); a correction is `POST /vehicle-acquisitions`.
|
|
50205
|
+
*/
|
|
50206
|
+
get: {
|
|
50207
|
+
parameters: {
|
|
50208
|
+
query: {
|
|
50209
|
+
vehicle_id: string;
|
|
50210
|
+
};
|
|
50211
|
+
header?: never;
|
|
50212
|
+
path?: never;
|
|
50213
|
+
cookie?: never;
|
|
50214
|
+
};
|
|
50215
|
+
requestBody?: never;
|
|
50216
|
+
responses: {
|
|
50217
|
+
/** @description The acquisition of the car: a list of at most one row. */
|
|
50218
|
+
200: {
|
|
50219
|
+
headers: {
|
|
50220
|
+
[name: string]: unknown;
|
|
50221
|
+
};
|
|
50222
|
+
content: {
|
|
50223
|
+
/**
|
|
50224
|
+
* @example {
|
|
50225
|
+
* "data": [
|
|
50226
|
+
* {
|
|
50227
|
+
* "id": "b5f0d6c2-1e8a-4c3b-9f7d-2a6e4b8c0d11",
|
|
50228
|
+
* "tenant_id": "a3c9e1f0-7b2d-4e5a-8c6f-1d0b9e2a4f73",
|
|
50229
|
+
* "vehicle_id": "7c1e2a40-5b7d-4f0e-9a51-3d2f8e6b1c90",
|
|
50230
|
+
* "kind": "compra",
|
|
50231
|
+
* "counterparty_contact_id": null,
|
|
50232
|
+
* "acquired_on": "2026-08-03",
|
|
50233
|
+
* "purchase_note_id": null,
|
|
50234
|
+
* "consignment_contract_id": null,
|
|
50235
|
+
* "sale_note_id": null,
|
|
50236
|
+
* "net_clp": 8500000,
|
|
50237
|
+
* "tax_clp": null,
|
|
50238
|
+
* "tax_treatment": "exento",
|
|
50239
|
+
* "borne_by": "automotora",
|
|
50240
|
+
* "generates_fiscal_credit": false,
|
|
50241
|
+
* "created_at": "2026-11-19T15:02:00.000Z",
|
|
50242
|
+
* "updated_at": "2026-11-19T15:02:00.000Z",
|
|
50243
|
+
* "derived_tenencia": "propio",
|
|
50244
|
+
* "invoice_includes_iva": false,
|
|
50245
|
+
* "amount_paid_clp": 8500000
|
|
50246
|
+
* }
|
|
50247
|
+
* ],
|
|
50248
|
+
* "meta": {
|
|
50249
|
+
* "total": 1
|
|
50250
|
+
* }
|
|
50251
|
+
* }
|
|
50252
|
+
*/
|
|
50253
|
+
"application/json": {
|
|
50254
|
+
data: components["schemas"]["VehicleAcquisition"][];
|
|
50255
|
+
meta?: {
|
|
50256
|
+
[key: string]: unknown;
|
|
50257
|
+
};
|
|
50258
|
+
};
|
|
50259
|
+
};
|
|
50260
|
+
};
|
|
50261
|
+
/** @description Validation error */
|
|
50262
|
+
400: {
|
|
50263
|
+
headers: {
|
|
50264
|
+
[name: string]: unknown;
|
|
50265
|
+
};
|
|
50266
|
+
content: {
|
|
50267
|
+
"application/json": components["schemas"]["Error"];
|
|
50268
|
+
};
|
|
50269
|
+
};
|
|
50270
|
+
/** @description Unauthorized */
|
|
50271
|
+
401: {
|
|
50272
|
+
headers: {
|
|
50273
|
+
[name: string]: unknown;
|
|
50274
|
+
};
|
|
50275
|
+
content: {
|
|
50276
|
+
"application/json": components["schemas"]["Error"];
|
|
50277
|
+
};
|
|
50278
|
+
};
|
|
50279
|
+
/** @description Forbidden */
|
|
50280
|
+
403: {
|
|
50281
|
+
headers: {
|
|
50282
|
+
[name: string]: unknown;
|
|
50283
|
+
};
|
|
50284
|
+
content: {
|
|
50285
|
+
"application/json": components["schemas"]["Error"];
|
|
50286
|
+
};
|
|
50287
|
+
};
|
|
50288
|
+
/** @description Not found */
|
|
50289
|
+
404: {
|
|
50290
|
+
headers: {
|
|
50291
|
+
[name: string]: unknown;
|
|
50292
|
+
};
|
|
50293
|
+
content: {
|
|
50294
|
+
"application/json": components["schemas"]["Error"];
|
|
50295
|
+
};
|
|
50296
|
+
};
|
|
50297
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
50298
|
+
409: {
|
|
50299
|
+
headers: {
|
|
50300
|
+
[name: string]: unknown;
|
|
50301
|
+
};
|
|
50302
|
+
content: {
|
|
50303
|
+
"application/json": components["schemas"]["Error"];
|
|
50304
|
+
};
|
|
50305
|
+
};
|
|
50306
|
+
/** @description Rate limited */
|
|
50307
|
+
429: {
|
|
50308
|
+
headers: {
|
|
50309
|
+
[name: string]: unknown;
|
|
50310
|
+
};
|
|
50311
|
+
content: {
|
|
50312
|
+
"application/json": components["schemas"]["Error"];
|
|
50313
|
+
};
|
|
50314
|
+
};
|
|
50315
|
+
};
|
|
50316
|
+
};
|
|
50203
50317
|
put?: never;
|
|
50204
50318
|
/**
|
|
50205
50319
|
* Record how a unit arrived, or its bare Costo de compra
|
|
@@ -50397,6 +50511,131 @@ interface paths {
|
|
|
50397
50511
|
patch?: never;
|
|
50398
50512
|
trace?: never;
|
|
50399
50513
|
};
|
|
50514
|
+
"/vehicle-acquisitions/{id}": {
|
|
50515
|
+
parameters: {
|
|
50516
|
+
query?: never;
|
|
50517
|
+
header?: never;
|
|
50518
|
+
path?: never;
|
|
50519
|
+
cookie?: never;
|
|
50520
|
+
};
|
|
50521
|
+
/**
|
|
50522
|
+
* Fetch one acquisition record
|
|
50523
|
+
* @description One acquisition by its id, in the same shape as the list read. Needs `dealership_economics:read`. 404 for an id of another workspace or none at all.
|
|
50524
|
+
*/
|
|
50525
|
+
get: {
|
|
50526
|
+
parameters: {
|
|
50527
|
+
query?: never;
|
|
50528
|
+
header?: never;
|
|
50529
|
+
path: {
|
|
50530
|
+
id: string;
|
|
50531
|
+
};
|
|
50532
|
+
cookie?: never;
|
|
50533
|
+
};
|
|
50534
|
+
requestBody?: never;
|
|
50535
|
+
responses: {
|
|
50536
|
+
/** @description The acquisition record */
|
|
50537
|
+
200: {
|
|
50538
|
+
headers: {
|
|
50539
|
+
[name: string]: unknown;
|
|
50540
|
+
};
|
|
50541
|
+
content: {
|
|
50542
|
+
/**
|
|
50543
|
+
* @example {
|
|
50544
|
+
* "data": {
|
|
50545
|
+
* "id": "b5f0d6c2-1e8a-4c3b-9f7d-2a6e4b8c0d11",
|
|
50546
|
+
* "tenant_id": "a3c9e1f0-7b2d-4e5a-8c6f-1d0b9e2a4f73",
|
|
50547
|
+
* "vehicle_id": "7c1e2a40-5b7d-4f0e-9a51-3d2f8e6b1c90",
|
|
50548
|
+
* "kind": "compra",
|
|
50549
|
+
* "counterparty_contact_id": null,
|
|
50550
|
+
* "acquired_on": "2026-08-03",
|
|
50551
|
+
* "purchase_note_id": null,
|
|
50552
|
+
* "consignment_contract_id": null,
|
|
50553
|
+
* "sale_note_id": null,
|
|
50554
|
+
* "net_clp": 8500000,
|
|
50555
|
+
* "tax_clp": null,
|
|
50556
|
+
* "tax_treatment": "exento",
|
|
50557
|
+
* "borne_by": "automotora",
|
|
50558
|
+
* "generates_fiscal_credit": false,
|
|
50559
|
+
* "created_at": "2026-11-19T15:02:00.000Z",
|
|
50560
|
+
* "updated_at": "2026-11-19T15:02:00.000Z",
|
|
50561
|
+
* "derived_tenencia": "propio",
|
|
50562
|
+
* "invoice_includes_iva": false,
|
|
50563
|
+
* "amount_paid_clp": 8500000
|
|
50564
|
+
* }
|
|
50565
|
+
* }
|
|
50566
|
+
*/
|
|
50567
|
+
"application/json": {
|
|
50568
|
+
data: components["schemas"]["VehicleAcquisition"];
|
|
50569
|
+
meta?: {
|
|
50570
|
+
[key: string]: unknown;
|
|
50571
|
+
};
|
|
50572
|
+
};
|
|
50573
|
+
};
|
|
50574
|
+
};
|
|
50575
|
+
/** @description Validation error */
|
|
50576
|
+
400: {
|
|
50577
|
+
headers: {
|
|
50578
|
+
[name: string]: unknown;
|
|
50579
|
+
};
|
|
50580
|
+
content: {
|
|
50581
|
+
"application/json": components["schemas"]["Error"];
|
|
50582
|
+
};
|
|
50583
|
+
};
|
|
50584
|
+
/** @description Unauthorized */
|
|
50585
|
+
401: {
|
|
50586
|
+
headers: {
|
|
50587
|
+
[name: string]: unknown;
|
|
50588
|
+
};
|
|
50589
|
+
content: {
|
|
50590
|
+
"application/json": components["schemas"]["Error"];
|
|
50591
|
+
};
|
|
50592
|
+
};
|
|
50593
|
+
/** @description Forbidden */
|
|
50594
|
+
403: {
|
|
50595
|
+
headers: {
|
|
50596
|
+
[name: string]: unknown;
|
|
50597
|
+
};
|
|
50598
|
+
content: {
|
|
50599
|
+
"application/json": components["schemas"]["Error"];
|
|
50600
|
+
};
|
|
50601
|
+
};
|
|
50602
|
+
/** @description Not found */
|
|
50603
|
+
404: {
|
|
50604
|
+
headers: {
|
|
50605
|
+
[name: string]: unknown;
|
|
50606
|
+
};
|
|
50607
|
+
content: {
|
|
50608
|
+
"application/json": components["schemas"]["Error"];
|
|
50609
|
+
};
|
|
50610
|
+
};
|
|
50611
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
50612
|
+
409: {
|
|
50613
|
+
headers: {
|
|
50614
|
+
[name: string]: unknown;
|
|
50615
|
+
};
|
|
50616
|
+
content: {
|
|
50617
|
+
"application/json": components["schemas"]["Error"];
|
|
50618
|
+
};
|
|
50619
|
+
};
|
|
50620
|
+
/** @description Rate limited */
|
|
50621
|
+
429: {
|
|
50622
|
+
headers: {
|
|
50623
|
+
[name: string]: unknown;
|
|
50624
|
+
};
|
|
50625
|
+
content: {
|
|
50626
|
+
"application/json": components["schemas"]["Error"];
|
|
50627
|
+
};
|
|
50628
|
+
};
|
|
50629
|
+
};
|
|
50630
|
+
};
|
|
50631
|
+
put?: never;
|
|
50632
|
+
post?: never;
|
|
50633
|
+
delete?: never;
|
|
50634
|
+
options?: never;
|
|
50635
|
+
head?: never;
|
|
50636
|
+
patch?: never;
|
|
50637
|
+
trace?: never;
|
|
50638
|
+
};
|
|
50400
50639
|
"/vehicles/kanban": {
|
|
50401
50640
|
parameters: {
|
|
50402
50641
|
query?: never;
|
|
@@ -323830,6 +324069,68 @@ interface components {
|
|
|
323830
324069
|
};
|
|
323831
324070
|
/** @example 2026-01 */
|
|
323832
324071
|
OverheadPeriod: string;
|
|
324072
|
+
VehicleAcquisition: {
|
|
324073
|
+
/** Format: uuid */
|
|
324074
|
+
id: string;
|
|
324075
|
+
/** Format: uuid */
|
|
324076
|
+
tenant_id: string;
|
|
324077
|
+
/**
|
|
324078
|
+
* Format: uuid
|
|
324079
|
+
* @description El auto.
|
|
324080
|
+
*/
|
|
324081
|
+
vehicle_id: string;
|
|
324082
|
+
/**
|
|
324083
|
+
* @description Cómo llegó el auto: compra (de la automotora), consignacion o retoma (parte de pago).
|
|
324084
|
+
* @enum {string}
|
|
324085
|
+
*/
|
|
324086
|
+
kind: "compra" | "consignacion" | "retoma";
|
|
324087
|
+
/**
|
|
324088
|
+
* Format: uuid
|
|
324089
|
+
* @description De quién llegó el auto (contacto). null = no registrado.
|
|
324090
|
+
*/
|
|
324091
|
+
counterparty_contact_id: string | null;
|
|
324092
|
+
/** @description Fecha de adquisición, YYYY-MM-DD. */
|
|
324093
|
+
acquired_on: string;
|
|
324094
|
+
/**
|
|
324095
|
+
* Format: uuid
|
|
324096
|
+
* @description La nota de compra de una compra. null en un costo de compra escrito a mano.
|
|
324097
|
+
*/
|
|
324098
|
+
purchase_note_id: string | null;
|
|
324099
|
+
/**
|
|
324100
|
+
* Format: uuid
|
|
324101
|
+
* @description El contrato de una consignación.
|
|
324102
|
+
*/
|
|
324103
|
+
consignment_contract_id: string | null;
|
|
324104
|
+
/**
|
|
324105
|
+
* Format: uuid
|
|
324106
|
+
* @description La nota de venta que recibió el auto en parte de pago (retoma).
|
|
324107
|
+
*/
|
|
324108
|
+
sale_note_id: string | null;
|
|
324109
|
+
/** @description Costo de compra en pesos, sin IVA cuando la compra fue con factura. */
|
|
324110
|
+
net_clp: number;
|
|
324111
|
+
/** @description IVA de la compra en pesos. null = no registrado; 0 = sin IVA. */
|
|
324112
|
+
tax_clp: number | null;
|
|
324113
|
+
/**
|
|
324114
|
+
* @description Tratamiento de IVA de la compra.
|
|
324115
|
+
* @enum {string}
|
|
324116
|
+
*/
|
|
324117
|
+
tax_treatment: "afecto" | "exento" | "no_gravado" | "pass_through";
|
|
324118
|
+
/**
|
|
324119
|
+
* @description Quién asume el costo (automotora o cliente).
|
|
324120
|
+
* @enum {string}
|
|
324121
|
+
*/
|
|
324122
|
+
borne_by: "automotora" | "cliente";
|
|
324123
|
+
/** @description La compra genera crédito fiscal (IVA recuperable). */
|
|
324124
|
+
generates_fiscal_credit: boolean;
|
|
324125
|
+
created_at: string;
|
|
324126
|
+
updated_at: string;
|
|
324127
|
+
/** @description La tenencia del auto (propio o consignacion) tal como quedó tras este registro. */
|
|
324128
|
+
derived_tenencia: string | null;
|
|
324129
|
+
/** @description «Compra con factura (incluye IVA)» tal como quedó registrada. Sirve para mostrar el tick al reabrir el costo. */
|
|
324130
|
+
invoice_includes_iva: boolean;
|
|
324131
|
+
/** @description El monto que escribió la automotora: net_clp más el IVA cuando la compra fue con factura, si no net_clp. Sirve para mostrar el monto al reabrir el costo. */
|
|
324132
|
+
amount_paid_clp: number;
|
|
324133
|
+
};
|
|
323833
324134
|
/** @description A Mercado Pago checkout payment: its payment id, a link to it and its status. Null for every other movement. */
|
|
323834
324135
|
GatewayPaymentRef: {
|
|
323835
324136
|
/** @enum {string} */
|
package/dist/index.d.ts
CHANGED
|
@@ -50199,7 +50199,121 @@ interface paths {
|
|
|
50199
50199
|
path?: never;
|
|
50200
50200
|
cookie?: never;
|
|
50201
50201
|
};
|
|
50202
|
-
|
|
50202
|
+
/**
|
|
50203
|
+
* The acquisition record for a vehicle
|
|
50204
|
+
* @description How one car arrived and what it cost (its Costo de compra). Needs `dealership_economics:read`. `vehicle_id` is required (no whole-lot cost dump). An empty array, not a 404, when no acquisition has been recorded yet; a car removed from Stock answers the same empty array. The cost editor prefills its amount from `amount_paid_clp` and its «Compra con factura (incluye IVA)» tick from `invoice_includes_iva` (vitrina-app#7719); a correction is `POST /vehicle-acquisitions`.
|
|
50205
|
+
*/
|
|
50206
|
+
get: {
|
|
50207
|
+
parameters: {
|
|
50208
|
+
query: {
|
|
50209
|
+
vehicle_id: string;
|
|
50210
|
+
};
|
|
50211
|
+
header?: never;
|
|
50212
|
+
path?: never;
|
|
50213
|
+
cookie?: never;
|
|
50214
|
+
};
|
|
50215
|
+
requestBody?: never;
|
|
50216
|
+
responses: {
|
|
50217
|
+
/** @description The acquisition of the car: a list of at most one row. */
|
|
50218
|
+
200: {
|
|
50219
|
+
headers: {
|
|
50220
|
+
[name: string]: unknown;
|
|
50221
|
+
};
|
|
50222
|
+
content: {
|
|
50223
|
+
/**
|
|
50224
|
+
* @example {
|
|
50225
|
+
* "data": [
|
|
50226
|
+
* {
|
|
50227
|
+
* "id": "b5f0d6c2-1e8a-4c3b-9f7d-2a6e4b8c0d11",
|
|
50228
|
+
* "tenant_id": "a3c9e1f0-7b2d-4e5a-8c6f-1d0b9e2a4f73",
|
|
50229
|
+
* "vehicle_id": "7c1e2a40-5b7d-4f0e-9a51-3d2f8e6b1c90",
|
|
50230
|
+
* "kind": "compra",
|
|
50231
|
+
* "counterparty_contact_id": null,
|
|
50232
|
+
* "acquired_on": "2026-08-03",
|
|
50233
|
+
* "purchase_note_id": null,
|
|
50234
|
+
* "consignment_contract_id": null,
|
|
50235
|
+
* "sale_note_id": null,
|
|
50236
|
+
* "net_clp": 8500000,
|
|
50237
|
+
* "tax_clp": null,
|
|
50238
|
+
* "tax_treatment": "exento",
|
|
50239
|
+
* "borne_by": "automotora",
|
|
50240
|
+
* "generates_fiscal_credit": false,
|
|
50241
|
+
* "created_at": "2026-11-19T15:02:00.000Z",
|
|
50242
|
+
* "updated_at": "2026-11-19T15:02:00.000Z",
|
|
50243
|
+
* "derived_tenencia": "propio",
|
|
50244
|
+
* "invoice_includes_iva": false,
|
|
50245
|
+
* "amount_paid_clp": 8500000
|
|
50246
|
+
* }
|
|
50247
|
+
* ],
|
|
50248
|
+
* "meta": {
|
|
50249
|
+
* "total": 1
|
|
50250
|
+
* }
|
|
50251
|
+
* }
|
|
50252
|
+
*/
|
|
50253
|
+
"application/json": {
|
|
50254
|
+
data: components["schemas"]["VehicleAcquisition"][];
|
|
50255
|
+
meta?: {
|
|
50256
|
+
[key: string]: unknown;
|
|
50257
|
+
};
|
|
50258
|
+
};
|
|
50259
|
+
};
|
|
50260
|
+
};
|
|
50261
|
+
/** @description Validation error */
|
|
50262
|
+
400: {
|
|
50263
|
+
headers: {
|
|
50264
|
+
[name: string]: unknown;
|
|
50265
|
+
};
|
|
50266
|
+
content: {
|
|
50267
|
+
"application/json": components["schemas"]["Error"];
|
|
50268
|
+
};
|
|
50269
|
+
};
|
|
50270
|
+
/** @description Unauthorized */
|
|
50271
|
+
401: {
|
|
50272
|
+
headers: {
|
|
50273
|
+
[name: string]: unknown;
|
|
50274
|
+
};
|
|
50275
|
+
content: {
|
|
50276
|
+
"application/json": components["schemas"]["Error"];
|
|
50277
|
+
};
|
|
50278
|
+
};
|
|
50279
|
+
/** @description Forbidden */
|
|
50280
|
+
403: {
|
|
50281
|
+
headers: {
|
|
50282
|
+
[name: string]: unknown;
|
|
50283
|
+
};
|
|
50284
|
+
content: {
|
|
50285
|
+
"application/json": components["schemas"]["Error"];
|
|
50286
|
+
};
|
|
50287
|
+
};
|
|
50288
|
+
/** @description Not found */
|
|
50289
|
+
404: {
|
|
50290
|
+
headers: {
|
|
50291
|
+
[name: string]: unknown;
|
|
50292
|
+
};
|
|
50293
|
+
content: {
|
|
50294
|
+
"application/json": components["schemas"]["Error"];
|
|
50295
|
+
};
|
|
50296
|
+
};
|
|
50297
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
50298
|
+
409: {
|
|
50299
|
+
headers: {
|
|
50300
|
+
[name: string]: unknown;
|
|
50301
|
+
};
|
|
50302
|
+
content: {
|
|
50303
|
+
"application/json": components["schemas"]["Error"];
|
|
50304
|
+
};
|
|
50305
|
+
};
|
|
50306
|
+
/** @description Rate limited */
|
|
50307
|
+
429: {
|
|
50308
|
+
headers: {
|
|
50309
|
+
[name: string]: unknown;
|
|
50310
|
+
};
|
|
50311
|
+
content: {
|
|
50312
|
+
"application/json": components["schemas"]["Error"];
|
|
50313
|
+
};
|
|
50314
|
+
};
|
|
50315
|
+
};
|
|
50316
|
+
};
|
|
50203
50317
|
put?: never;
|
|
50204
50318
|
/**
|
|
50205
50319
|
* Record how a unit arrived, or its bare Costo de compra
|
|
@@ -50397,6 +50511,131 @@ interface paths {
|
|
|
50397
50511
|
patch?: never;
|
|
50398
50512
|
trace?: never;
|
|
50399
50513
|
};
|
|
50514
|
+
"/vehicle-acquisitions/{id}": {
|
|
50515
|
+
parameters: {
|
|
50516
|
+
query?: never;
|
|
50517
|
+
header?: never;
|
|
50518
|
+
path?: never;
|
|
50519
|
+
cookie?: never;
|
|
50520
|
+
};
|
|
50521
|
+
/**
|
|
50522
|
+
* Fetch one acquisition record
|
|
50523
|
+
* @description One acquisition by its id, in the same shape as the list read. Needs `dealership_economics:read`. 404 for an id of another workspace or none at all.
|
|
50524
|
+
*/
|
|
50525
|
+
get: {
|
|
50526
|
+
parameters: {
|
|
50527
|
+
query?: never;
|
|
50528
|
+
header?: never;
|
|
50529
|
+
path: {
|
|
50530
|
+
id: string;
|
|
50531
|
+
};
|
|
50532
|
+
cookie?: never;
|
|
50533
|
+
};
|
|
50534
|
+
requestBody?: never;
|
|
50535
|
+
responses: {
|
|
50536
|
+
/** @description The acquisition record */
|
|
50537
|
+
200: {
|
|
50538
|
+
headers: {
|
|
50539
|
+
[name: string]: unknown;
|
|
50540
|
+
};
|
|
50541
|
+
content: {
|
|
50542
|
+
/**
|
|
50543
|
+
* @example {
|
|
50544
|
+
* "data": {
|
|
50545
|
+
* "id": "b5f0d6c2-1e8a-4c3b-9f7d-2a6e4b8c0d11",
|
|
50546
|
+
* "tenant_id": "a3c9e1f0-7b2d-4e5a-8c6f-1d0b9e2a4f73",
|
|
50547
|
+
* "vehicle_id": "7c1e2a40-5b7d-4f0e-9a51-3d2f8e6b1c90",
|
|
50548
|
+
* "kind": "compra",
|
|
50549
|
+
* "counterparty_contact_id": null,
|
|
50550
|
+
* "acquired_on": "2026-08-03",
|
|
50551
|
+
* "purchase_note_id": null,
|
|
50552
|
+
* "consignment_contract_id": null,
|
|
50553
|
+
* "sale_note_id": null,
|
|
50554
|
+
* "net_clp": 8500000,
|
|
50555
|
+
* "tax_clp": null,
|
|
50556
|
+
* "tax_treatment": "exento",
|
|
50557
|
+
* "borne_by": "automotora",
|
|
50558
|
+
* "generates_fiscal_credit": false,
|
|
50559
|
+
* "created_at": "2026-11-19T15:02:00.000Z",
|
|
50560
|
+
* "updated_at": "2026-11-19T15:02:00.000Z",
|
|
50561
|
+
* "derived_tenencia": "propio",
|
|
50562
|
+
* "invoice_includes_iva": false,
|
|
50563
|
+
* "amount_paid_clp": 8500000
|
|
50564
|
+
* }
|
|
50565
|
+
* }
|
|
50566
|
+
*/
|
|
50567
|
+
"application/json": {
|
|
50568
|
+
data: components["schemas"]["VehicleAcquisition"];
|
|
50569
|
+
meta?: {
|
|
50570
|
+
[key: string]: unknown;
|
|
50571
|
+
};
|
|
50572
|
+
};
|
|
50573
|
+
};
|
|
50574
|
+
};
|
|
50575
|
+
/** @description Validation error */
|
|
50576
|
+
400: {
|
|
50577
|
+
headers: {
|
|
50578
|
+
[name: string]: unknown;
|
|
50579
|
+
};
|
|
50580
|
+
content: {
|
|
50581
|
+
"application/json": components["schemas"]["Error"];
|
|
50582
|
+
};
|
|
50583
|
+
};
|
|
50584
|
+
/** @description Unauthorized */
|
|
50585
|
+
401: {
|
|
50586
|
+
headers: {
|
|
50587
|
+
[name: string]: unknown;
|
|
50588
|
+
};
|
|
50589
|
+
content: {
|
|
50590
|
+
"application/json": components["schemas"]["Error"];
|
|
50591
|
+
};
|
|
50592
|
+
};
|
|
50593
|
+
/** @description Forbidden */
|
|
50594
|
+
403: {
|
|
50595
|
+
headers: {
|
|
50596
|
+
[name: string]: unknown;
|
|
50597
|
+
};
|
|
50598
|
+
content: {
|
|
50599
|
+
"application/json": components["schemas"]["Error"];
|
|
50600
|
+
};
|
|
50601
|
+
};
|
|
50602
|
+
/** @description Not found */
|
|
50603
|
+
404: {
|
|
50604
|
+
headers: {
|
|
50605
|
+
[name: string]: unknown;
|
|
50606
|
+
};
|
|
50607
|
+
content: {
|
|
50608
|
+
"application/json": components["schemas"]["Error"];
|
|
50609
|
+
};
|
|
50610
|
+
};
|
|
50611
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
50612
|
+
409: {
|
|
50613
|
+
headers: {
|
|
50614
|
+
[name: string]: unknown;
|
|
50615
|
+
};
|
|
50616
|
+
content: {
|
|
50617
|
+
"application/json": components["schemas"]["Error"];
|
|
50618
|
+
};
|
|
50619
|
+
};
|
|
50620
|
+
/** @description Rate limited */
|
|
50621
|
+
429: {
|
|
50622
|
+
headers: {
|
|
50623
|
+
[name: string]: unknown;
|
|
50624
|
+
};
|
|
50625
|
+
content: {
|
|
50626
|
+
"application/json": components["schemas"]["Error"];
|
|
50627
|
+
};
|
|
50628
|
+
};
|
|
50629
|
+
};
|
|
50630
|
+
};
|
|
50631
|
+
put?: never;
|
|
50632
|
+
post?: never;
|
|
50633
|
+
delete?: never;
|
|
50634
|
+
options?: never;
|
|
50635
|
+
head?: never;
|
|
50636
|
+
patch?: never;
|
|
50637
|
+
trace?: never;
|
|
50638
|
+
};
|
|
50400
50639
|
"/vehicles/kanban": {
|
|
50401
50640
|
parameters: {
|
|
50402
50641
|
query?: never;
|
|
@@ -323830,6 +324069,68 @@ interface components {
|
|
|
323830
324069
|
};
|
|
323831
324070
|
/** @example 2026-01 */
|
|
323832
324071
|
OverheadPeriod: string;
|
|
324072
|
+
VehicleAcquisition: {
|
|
324073
|
+
/** Format: uuid */
|
|
324074
|
+
id: string;
|
|
324075
|
+
/** Format: uuid */
|
|
324076
|
+
tenant_id: string;
|
|
324077
|
+
/**
|
|
324078
|
+
* Format: uuid
|
|
324079
|
+
* @description El auto.
|
|
324080
|
+
*/
|
|
324081
|
+
vehicle_id: string;
|
|
324082
|
+
/**
|
|
324083
|
+
* @description Cómo llegó el auto: compra (de la automotora), consignacion o retoma (parte de pago).
|
|
324084
|
+
* @enum {string}
|
|
324085
|
+
*/
|
|
324086
|
+
kind: "compra" | "consignacion" | "retoma";
|
|
324087
|
+
/**
|
|
324088
|
+
* Format: uuid
|
|
324089
|
+
* @description De quién llegó el auto (contacto). null = no registrado.
|
|
324090
|
+
*/
|
|
324091
|
+
counterparty_contact_id: string | null;
|
|
324092
|
+
/** @description Fecha de adquisición, YYYY-MM-DD. */
|
|
324093
|
+
acquired_on: string;
|
|
324094
|
+
/**
|
|
324095
|
+
* Format: uuid
|
|
324096
|
+
* @description La nota de compra de una compra. null en un costo de compra escrito a mano.
|
|
324097
|
+
*/
|
|
324098
|
+
purchase_note_id: string | null;
|
|
324099
|
+
/**
|
|
324100
|
+
* Format: uuid
|
|
324101
|
+
* @description El contrato de una consignación.
|
|
324102
|
+
*/
|
|
324103
|
+
consignment_contract_id: string | null;
|
|
324104
|
+
/**
|
|
324105
|
+
* Format: uuid
|
|
324106
|
+
* @description La nota de venta que recibió el auto en parte de pago (retoma).
|
|
324107
|
+
*/
|
|
324108
|
+
sale_note_id: string | null;
|
|
324109
|
+
/** @description Costo de compra en pesos, sin IVA cuando la compra fue con factura. */
|
|
324110
|
+
net_clp: number;
|
|
324111
|
+
/** @description IVA de la compra en pesos. null = no registrado; 0 = sin IVA. */
|
|
324112
|
+
tax_clp: number | null;
|
|
324113
|
+
/**
|
|
324114
|
+
* @description Tratamiento de IVA de la compra.
|
|
324115
|
+
* @enum {string}
|
|
324116
|
+
*/
|
|
324117
|
+
tax_treatment: "afecto" | "exento" | "no_gravado" | "pass_through";
|
|
324118
|
+
/**
|
|
324119
|
+
* @description Quién asume el costo (automotora o cliente).
|
|
324120
|
+
* @enum {string}
|
|
324121
|
+
*/
|
|
324122
|
+
borne_by: "automotora" | "cliente";
|
|
324123
|
+
/** @description La compra genera crédito fiscal (IVA recuperable). */
|
|
324124
|
+
generates_fiscal_credit: boolean;
|
|
324125
|
+
created_at: string;
|
|
324126
|
+
updated_at: string;
|
|
324127
|
+
/** @description La tenencia del auto (propio o consignacion) tal como quedó tras este registro. */
|
|
324128
|
+
derived_tenencia: string | null;
|
|
324129
|
+
/** @description «Compra con factura (incluye IVA)» tal como quedó registrada. Sirve para mostrar el tick al reabrir el costo. */
|
|
324130
|
+
invoice_includes_iva: boolean;
|
|
324131
|
+
/** @description El monto que escribió la automotora: net_clp más el IVA cuando la compra fue con factura, si no net_clp. Sirve para mostrar el monto al reabrir el costo. */
|
|
324132
|
+
amount_paid_clp: number;
|
|
324133
|
+
};
|
|
323833
324134
|
/** @description A Mercado Pago checkout payment: its payment id, a link to it and its status. Null for every other movement. */
|
|
323834
324135
|
GatewayPaymentRef: {
|
|
323835
324136
|
/** @enum {string} */
|
package/package.json
CHANGED