@vitrina/api 17.43.0 → 17.45.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 +47 -1
- package/dist/index.d.ts +47 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -48777,6 +48777,8 @@ interface paths {
|
|
|
48777
48777
|
* **A consigned unit is previewed on its contract’s economics**: the split is projected from the active contract’s comisión exactly as the liquidación will compute it (`settlement` carries the projection), so the dealership’s revenue is the comisión, never the whole price. A contract with no comisión on file has no split to project: its revenue is `null` with a `liquidacion` gap.
|
|
48778
48778
|
*
|
|
48779
48779
|
* `net_clp` is NET of IVA (cifras del negocio, ADR 0114 §2.2). The price a buyer agrees to on an afecto sale includes IVA, like the published price: send `round(price / 1,19)`. Writes nothing. Requires `dealership_economics:read`; 404 for a unit outside the workspace.
|
|
48780
|
+
*
|
|
48781
|
+
* **`dealership_result` is the card’s one figure** («Queda en la automotora, sin IVA»), the SAME object on `POST /margin/preview` and `GET /margin/deals/{id}`: `result_clp` (= `margen_bruto_clp`) and the terms it is made of, all net of IVA — `price_net_clp`, `add_on_income_clp`, `cost_clp` (owned car; 0 on a consigned one), `owner_payout_clp` (consigned: payout incl. deducted costs) and `commission_iva_clp` (the IVA of a «+ IVA» comisión, taken out), with `result = price_net + add_on_income − cost − owner_payout − commission_iva` exact whenever `result_clp` is a number; `basis` is always `sin_iva`. `projected: true` while a consigned split is the contract’s projection (the form, and an issued note not settled yet, read the same projection); a liquidación replaces it. `null` `result_clp` = not computable (no cost recorded, no comisión).
|
|
48780
48782
|
*/
|
|
48781
48783
|
post: {
|
|
48782
48784
|
parameters: {
|
|
@@ -48859,6 +48861,16 @@ interface paths {
|
|
|
48859
48861
|
* "monto_owner_clp": 9200000,
|
|
48860
48862
|
* "deducciones_clp": 0
|
|
48861
48863
|
* },
|
|
48864
|
+
* "dealership_result": {
|
|
48865
|
+
* "result_clp": 800000,
|
|
48866
|
+
* "price_net_clp": 10000000,
|
|
48867
|
+
* "add_on_income_clp": 0,
|
|
48868
|
+
* "cost_clp": 0,
|
|
48869
|
+
* "owner_payout_clp": 9200000,
|
|
48870
|
+
* "commission_iva_clp": 0,
|
|
48871
|
+
* "projected": false,
|
|
48872
|
+
* "basis": "sin_iva"
|
|
48873
|
+
* },
|
|
48862
48874
|
* "cost_rollup": {
|
|
48863
48875
|
* "acquisition_net_clp": 0,
|
|
48864
48876
|
* "expense_total_clp": 120000,
|
|
@@ -49266,6 +49278,16 @@ interface paths {
|
|
|
49266
49278
|
* },
|
|
49267
49279
|
* "margen_neto_clp": 1490000,
|
|
49268
49280
|
* "settlement": null,
|
|
49281
|
+
* "dealership_result": {
|
|
49282
|
+
* "result_clp": 2200000,
|
|
49283
|
+
* "price_net_clp": 11900000,
|
|
49284
|
+
* "add_on_income_clp": 100000,
|
|
49285
|
+
* "cost_clp": 9800000,
|
|
49286
|
+
* "owner_payout_clp": null,
|
|
49287
|
+
* "commission_iva_clp": 0,
|
|
49288
|
+
* "projected": false,
|
|
49289
|
+
* "basis": "sin_iva"
|
|
49290
|
+
* },
|
|
49269
49291
|
* "cost_rollup": {
|
|
49270
49292
|
* "acquisition_net_clp": 9800000,
|
|
49271
49293
|
* "expense_total_clp": 735000,
|
|
@@ -149476,6 +149498,8 @@ interface paths {
|
|
|
149476
149498
|
* It carries how the owner was paid (`payout_*`, with `payout_paid_by_name` resolved for display). On a liquidación registered before the payout fields existed they are all `null`; since then `payout_method` is always set and each of the others is `null` when it was not recorded.
|
|
149477
149499
|
*
|
|
149478
149500
|
* `deducciones_clp` is the Σ of the dueño share of every retained cost line the settlement discharged, and `deductions` lists them one by one (`cost_entry_id`, `label`, `entry_date`, `dueno_clp`). Selling a consigned car deducts them all: `monto_owner_clp` is `amount_venta_clp` minus the comisión minus `deducciones_clp`.
|
|
149501
|
+
*
|
|
149502
|
+
* `sends` is the log of `POST /consignments/{id}/liquidacion/send`, newest first (last 10): `channel`, `to`, `sent_at`, `by` (member or API key id) and `by_name`. `whatsapp_send_enabled` says whether the workspace may send it on WhatsApp (its staff-WhatsApp switch is on); when false, offer email only.
|
|
149479
149503
|
*/
|
|
149480
149504
|
get: {
|
|
149481
149505
|
parameters: {
|
|
@@ -149520,7 +149544,17 @@ interface paths {
|
|
|
149520
149544
|
* "payout_paid_by_name": "Ana Pérez",
|
|
149521
149545
|
* "paid_at": "2026-09-18T15:00:00.000Z",
|
|
149522
149546
|
* "created_at": "2026-09-18T15:00:05.000Z",
|
|
149523
|
-
* "updated_at": "2026-09-18T15:00:05.000Z"
|
|
149547
|
+
* "updated_at": "2026-09-18T15:00:05.000Z",
|
|
149548
|
+
* "sends": [
|
|
149549
|
+
* {
|
|
149550
|
+
* "channel": "email",
|
|
149551
|
+
* "to": "dueno@example.com",
|
|
149552
|
+
* "sent_at": "2026-11-14T15:20:00.000Z",
|
|
149553
|
+
* "by": "11111111-0000-4000-8000-000000000001",
|
|
149554
|
+
* "by_name": "Camila Rojas"
|
|
149555
|
+
* }
|
|
149556
|
+
* ],
|
|
149557
|
+
* "whatsapp_send_enabled": false
|
|
149524
149558
|
* }
|
|
149525
149559
|
* }
|
|
149526
149560
|
*/
|
|
@@ -282219,6 +282253,12 @@ interface components {
|
|
|
282219
282253
|
template_name?: string;
|
|
282220
282254
|
template_language?: string;
|
|
282221
282255
|
change_template_name?: string;
|
|
282256
|
+
/** @description The template for a visit booked on the website (aviso_visita_web_v1, no button), wired on approval. */
|
|
282257
|
+
web_template_name?: string;
|
|
282258
|
+
/** @description The day's visits template (aviso_visitas_del_dia_v1), wired on approval. */
|
|
282259
|
+
digest_template_name?: string;
|
|
282260
|
+
/** @description The visit-about-to-start template (aviso_visita_pronto_v1), wired on approval. */
|
|
282261
|
+
reminder_template_name?: string;
|
|
282222
282262
|
};
|
|
282223
282263
|
visit_watchers_whatsapp?: {
|
|
282224
282264
|
user_ids: string[];
|
|
@@ -282569,6 +282609,12 @@ interface components {
|
|
|
282569
282609
|
template_name?: string;
|
|
282570
282610
|
template_language?: string;
|
|
282571
282611
|
change_template_name?: string;
|
|
282612
|
+
/** @description The template for a visit booked on the website (aviso_visita_web_v1, no button), wired on approval. */
|
|
282613
|
+
web_template_name?: string;
|
|
282614
|
+
/** @description The day's visits template (aviso_visitas_del_dia_v1), wired on approval. */
|
|
282615
|
+
digest_template_name?: string;
|
|
282616
|
+
/** @description The visit-about-to-start template (aviso_visita_pronto_v1), wired on approval. */
|
|
282617
|
+
reminder_template_name?: string;
|
|
282572
282618
|
};
|
|
282573
282619
|
visit_watchers_whatsapp?: {
|
|
282574
282620
|
user_ids: string[];
|
package/dist/index.d.ts
CHANGED
|
@@ -48777,6 +48777,8 @@ interface paths {
|
|
|
48777
48777
|
* **A consigned unit is previewed on its contract’s economics**: the split is projected from the active contract’s comisión exactly as the liquidación will compute it (`settlement` carries the projection), so the dealership’s revenue is the comisión, never the whole price. A contract with no comisión on file has no split to project: its revenue is `null` with a `liquidacion` gap.
|
|
48778
48778
|
*
|
|
48779
48779
|
* `net_clp` is NET of IVA (cifras del negocio, ADR 0114 §2.2). The price a buyer agrees to on an afecto sale includes IVA, like the published price: send `round(price / 1,19)`. Writes nothing. Requires `dealership_economics:read`; 404 for a unit outside the workspace.
|
|
48780
|
+
*
|
|
48781
|
+
* **`dealership_result` is the card’s one figure** («Queda en la automotora, sin IVA»), the SAME object on `POST /margin/preview` and `GET /margin/deals/{id}`: `result_clp` (= `margen_bruto_clp`) and the terms it is made of, all net of IVA — `price_net_clp`, `add_on_income_clp`, `cost_clp` (owned car; 0 on a consigned one), `owner_payout_clp` (consigned: payout incl. deducted costs) and `commission_iva_clp` (the IVA of a «+ IVA» comisión, taken out), with `result = price_net + add_on_income − cost − owner_payout − commission_iva` exact whenever `result_clp` is a number; `basis` is always `sin_iva`. `projected: true` while a consigned split is the contract’s projection (the form, and an issued note not settled yet, read the same projection); a liquidación replaces it. `null` `result_clp` = not computable (no cost recorded, no comisión).
|
|
48780
48782
|
*/
|
|
48781
48783
|
post: {
|
|
48782
48784
|
parameters: {
|
|
@@ -48859,6 +48861,16 @@ interface paths {
|
|
|
48859
48861
|
* "monto_owner_clp": 9200000,
|
|
48860
48862
|
* "deducciones_clp": 0
|
|
48861
48863
|
* },
|
|
48864
|
+
* "dealership_result": {
|
|
48865
|
+
* "result_clp": 800000,
|
|
48866
|
+
* "price_net_clp": 10000000,
|
|
48867
|
+
* "add_on_income_clp": 0,
|
|
48868
|
+
* "cost_clp": 0,
|
|
48869
|
+
* "owner_payout_clp": 9200000,
|
|
48870
|
+
* "commission_iva_clp": 0,
|
|
48871
|
+
* "projected": false,
|
|
48872
|
+
* "basis": "sin_iva"
|
|
48873
|
+
* },
|
|
48862
48874
|
* "cost_rollup": {
|
|
48863
48875
|
* "acquisition_net_clp": 0,
|
|
48864
48876
|
* "expense_total_clp": 120000,
|
|
@@ -49266,6 +49278,16 @@ interface paths {
|
|
|
49266
49278
|
* },
|
|
49267
49279
|
* "margen_neto_clp": 1490000,
|
|
49268
49280
|
* "settlement": null,
|
|
49281
|
+
* "dealership_result": {
|
|
49282
|
+
* "result_clp": 2200000,
|
|
49283
|
+
* "price_net_clp": 11900000,
|
|
49284
|
+
* "add_on_income_clp": 100000,
|
|
49285
|
+
* "cost_clp": 9800000,
|
|
49286
|
+
* "owner_payout_clp": null,
|
|
49287
|
+
* "commission_iva_clp": 0,
|
|
49288
|
+
* "projected": false,
|
|
49289
|
+
* "basis": "sin_iva"
|
|
49290
|
+
* },
|
|
49269
49291
|
* "cost_rollup": {
|
|
49270
49292
|
* "acquisition_net_clp": 9800000,
|
|
49271
49293
|
* "expense_total_clp": 735000,
|
|
@@ -149476,6 +149498,8 @@ interface paths {
|
|
|
149476
149498
|
* It carries how the owner was paid (`payout_*`, with `payout_paid_by_name` resolved for display). On a liquidación registered before the payout fields existed they are all `null`; since then `payout_method` is always set and each of the others is `null` when it was not recorded.
|
|
149477
149499
|
*
|
|
149478
149500
|
* `deducciones_clp` is the Σ of the dueño share of every retained cost line the settlement discharged, and `deductions` lists them one by one (`cost_entry_id`, `label`, `entry_date`, `dueno_clp`). Selling a consigned car deducts them all: `monto_owner_clp` is `amount_venta_clp` minus the comisión minus `deducciones_clp`.
|
|
149501
|
+
*
|
|
149502
|
+
* `sends` is the log of `POST /consignments/{id}/liquidacion/send`, newest first (last 10): `channel`, `to`, `sent_at`, `by` (member or API key id) and `by_name`. `whatsapp_send_enabled` says whether the workspace may send it on WhatsApp (its staff-WhatsApp switch is on); when false, offer email only.
|
|
149479
149503
|
*/
|
|
149480
149504
|
get: {
|
|
149481
149505
|
parameters: {
|
|
@@ -149520,7 +149544,17 @@ interface paths {
|
|
|
149520
149544
|
* "payout_paid_by_name": "Ana Pérez",
|
|
149521
149545
|
* "paid_at": "2026-09-18T15:00:00.000Z",
|
|
149522
149546
|
* "created_at": "2026-09-18T15:00:05.000Z",
|
|
149523
|
-
* "updated_at": "2026-09-18T15:00:05.000Z"
|
|
149547
|
+
* "updated_at": "2026-09-18T15:00:05.000Z",
|
|
149548
|
+
* "sends": [
|
|
149549
|
+
* {
|
|
149550
|
+
* "channel": "email",
|
|
149551
|
+
* "to": "dueno@example.com",
|
|
149552
|
+
* "sent_at": "2026-11-14T15:20:00.000Z",
|
|
149553
|
+
* "by": "11111111-0000-4000-8000-000000000001",
|
|
149554
|
+
* "by_name": "Camila Rojas"
|
|
149555
|
+
* }
|
|
149556
|
+
* ],
|
|
149557
|
+
* "whatsapp_send_enabled": false
|
|
149524
149558
|
* }
|
|
149525
149559
|
* }
|
|
149526
149560
|
*/
|
|
@@ -282219,6 +282253,12 @@ interface components {
|
|
|
282219
282253
|
template_name?: string;
|
|
282220
282254
|
template_language?: string;
|
|
282221
282255
|
change_template_name?: string;
|
|
282256
|
+
/** @description The template for a visit booked on the website (aviso_visita_web_v1, no button), wired on approval. */
|
|
282257
|
+
web_template_name?: string;
|
|
282258
|
+
/** @description The day's visits template (aviso_visitas_del_dia_v1), wired on approval. */
|
|
282259
|
+
digest_template_name?: string;
|
|
282260
|
+
/** @description The visit-about-to-start template (aviso_visita_pronto_v1), wired on approval. */
|
|
282261
|
+
reminder_template_name?: string;
|
|
282222
282262
|
};
|
|
282223
282263
|
visit_watchers_whatsapp?: {
|
|
282224
282264
|
user_ids: string[];
|
|
@@ -282569,6 +282609,12 @@ interface components {
|
|
|
282569
282609
|
template_name?: string;
|
|
282570
282610
|
template_language?: string;
|
|
282571
282611
|
change_template_name?: string;
|
|
282612
|
+
/** @description The template for a visit booked on the website (aviso_visita_web_v1, no button), wired on approval. */
|
|
282613
|
+
web_template_name?: string;
|
|
282614
|
+
/** @description The day's visits template (aviso_visitas_del_dia_v1), wired on approval. */
|
|
282615
|
+
digest_template_name?: string;
|
|
282616
|
+
/** @description The visit-about-to-start template (aviso_visita_pronto_v1), wired on approval. */
|
|
282617
|
+
reminder_template_name?: string;
|
|
282572
282618
|
};
|
|
282573
282619
|
visit_watchers_whatsapp?: {
|
|
282574
282620
|
user_ids: string[];
|
package/package.json
CHANGED