@vitrina/api 17.19.1 → 17.21.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 CHANGED
@@ -75892,6 +75892,8 @@ interface paths {
75892
75892
  * "payer": null,
75893
75893
  * "comment_count": 0,
75894
75894
  * "ads_document_id": null,
75895
+ * "card_processor": null,
75896
+ * "generic_label": null,
75895
75897
  * "created_at": "2026-10-28T09:00:00.000Z"
75896
75898
  * }
75897
75899
  * },
@@ -76743,6 +76745,8 @@ interface paths {
76743
76745
  * "payer": null,
76744
76746
  * "comment_count": 1,
76745
76747
  * "ads_document_id": null,
76748
+ * "card_processor": null,
76749
+ * "generic_label": null,
76746
76750
  * "created_at": "2026-10-30T08:00:00.000Z"
76747
76751
  * }
76748
76752
  * ],
@@ -76906,6 +76910,8 @@ interface paths {
76906
76910
  * "payer": null,
76907
76911
  * "comment_count": 1,
76908
76912
  * "ads_document_id": null,
76913
+ * "card_processor": null,
76914
+ * "generic_label": null,
76909
76915
  * "created_at": "2026-10-30T08:00:00.000Z",
76910
76916
  * "comments": [
76911
76917
  * {
@@ -82622,6 +82628,8 @@ interface paths {
82622
82628
  * "payer": null,
82623
82629
  * "comment_count": 0,
82624
82630
  * "ads_document_id": null,
82631
+ * "card_processor": null,
82632
+ * "generic_label": null,
82625
82633
  * "created_at": "2026-10-30T08:00:00.000Z"
82626
82634
  * },
82627
82635
  * "money_mirrored": false,
@@ -82653,6 +82661,7 @@ interface paths {
82653
82661
  * "paired_movement": null,
82654
82662
  * "cash_day": null,
82655
82663
  * "contraparte": null,
82664
+ * "payout": null,
82656
82665
  * "undoable": true
82657
82666
  * }
82658
82667
  * ],
@@ -82936,6 +82945,7 @@ interface paths {
82936
82945
  * "paired_movement": null,
82937
82946
  * "cash_day": null,
82938
82947
  * "contraparte": null,
82948
+ * "payout": null,
82939
82949
  * "undoable": true
82940
82950
  * }
82941
82951
  * ],
@@ -83158,6 +83168,8 @@ interface paths {
83158
83168
  * "payer": null,
83159
83169
  * "comment_count": 0,
83160
83170
  * "ads_document_id": null,
83171
+ * "card_processor": null,
83172
+ * "generic_label": null,
83161
83173
  * "created_at": "2026-10-30T08:00:00.000Z"
83162
83174
  * },
83163
83175
  * "money_mirrored": false,
@@ -83189,6 +83201,7 @@ interface paths {
83189
83201
  * "paired_movement": null,
83190
83202
  * "cash_day": null,
83191
83203
  * "contraparte": null,
83204
+ * "payout": null,
83192
83205
  * "undoable": true
83193
83206
  * }
83194
83207
  * ],
@@ -92581,7 +92594,7 @@ interface paths {
92581
92594
  * }
92582
92595
  * },
92583
92596
  * "lines": [
92584
- * "Noviembre va en $6.100.000 de ingresos, de $9.800.000 para cubrir costos. Por ahora el mes pierde $1.200.000.",
92597
+ * "Noviembre va en $6.100.000 de ingresos, de $9.800.000 para cubrir costos.",
92585
92598
  * "3 casos te necesitan en Por resolver, por $840.000."
92586
92599
  * ],
92587
92600
  * "primary": {
@@ -280619,6 +280632,18 @@ interface components {
280619
280632
  * @description Finanzas 30: the ad document (`GET /finanzas/documents/{id}`, `origin = ads`) of this movement when it is an ad charge or refund; null otherwise.
280620
280633
  */
280621
280634
  ads_document_id: string | null;
280635
+ /** @description Finanzas 36: set when this is a known card processor's payout («Cobro con tarjeta»: PNOL / PAGOS Y SERVICIOS, Transbank, Getnet, Mercado Pago). It settles the month's boleta summary and never adds income. Null for any other movement and for money out. */
280636
+ card_processor: {
280637
+ /** @enum {string} */
280638
+ key: "pagos_y_servicios" | "transbank" | "getnet" | "mercado_pago";
280639
+ name: string;
280640
+ rut_formatted: string | null;
280641
+ } | null;
280642
+ /**
280643
+ * @description Finanzas 36: set when the bank text names nobody and the movement has no Contraparte: show it as the title with the sub-line «Sin contraparte».
280644
+ * @enum {string|null}
280645
+ */
280646
+ generic_label: "Depósito en efectivo" | "Pago recibido" | "Depósito con cheque" | null;
280622
280647
  created_at: string;
280623
280648
  };
280624
280649
  FinanzasDocument: {
@@ -281566,6 +281591,13 @@ interface components {
281566
281591
  id: string;
281567
281592
  name: string;
281568
281593
  } | null;
281594
+ /** @description Finanzas 36: set on a link with reason `payout_deduction`: the commission factura (`document`) was paid by deduction from this card payout (the processor kept it). Show «Pagada con descuento» and «Descontada del abono de {processor_name} del {day}», linking to `movement_id`. Such a link takes nothing from the payout's cash. Null otherwise. */
281595
+ payout: {
281596
+ movement_id: string;
281597
+ day: string;
281598
+ amount_clp: number;
281599
+ processor_name: string | null;
281600
+ } | null;
281569
281601
  own_transfer: components["schemas"]["FinanzasOwnTransfer"];
281570
281602
  undoable: boolean;
281571
281603
  };
@@ -283401,6 +283433,15 @@ interface components {
283401
283433
  month: string;
283402
283434
  label: string;
283403
283435
  proforma: boolean;
283436
+ /** @description «Mes incompleto»: a closed month whose dentist cost is $0 or that misses a large recurring cost. It never counts for `equilibrio`. Null otherwise; a proforma month is never tagged. */
283437
+ incompleto: {
283438
+ /** @enum {string} */
283439
+ reason: "dentist_cost_missing" | "recurring_cost_missing";
283440
+ /** @description Spanish, ready for the tooltip. */
283441
+ message: string;
283442
+ /** @description The missing recurring account (`recurring_cost_missing`), else null. */
283443
+ account_name: string | null;
283444
+ } | null;
283404
283445
  /** @description The Resultado’s «Ingresos» (net). */
283405
283446
  ingresos_clp: number;
283406
283447
  /** @description Costs on accounts flagged variable (documented or not) + «Egresos sin clasificar». */
@@ -283424,6 +283465,18 @@ interface components {
283424
283465
  /** @description ingresos − variables − fijos = the Resultado operacional. */
283425
283466
  resultado_clp: number;
283426
283467
  }[];
283468
+ /** @description The bar the current month is judged against; independent of the range asked for. Null when no complete month has a break-even. */
283469
+ equilibrio: {
283470
+ /** @description The average break-even of the last 3 complete months, «Mes incompleto» skipped. */
283471
+ equilibrio_clp: number;
283472
+ from: string;
283473
+ to: string;
283474
+ months: {
283475
+ month: string;
283476
+ label: string;
283477
+ equilibrio_clp: number;
283478
+ }[];
283479
+ } | null;
283427
283480
  /** @description Monthly averages over the range; equilibrio = average fijos ÷ the range’s margin %. */
283428
283481
  period: {
283429
283482
  /** @description The Resultado’s «Ingresos» (net). */
@@ -283621,17 +283674,41 @@ interface components {
283621
283674
  sin_clasificar_clp: number;
283622
283675
  /** @description The month’s Resultado operacional. */
283623
283676
  resultado_clp: number;
283624
- /** @description The break-even line: Costos y equilibrio’s punto de equilibrio of the last closed month (its headline). */
283677
+ /** @description Clinics with production data: the month’s producción (performed work in the clinic system). Null for the others. */
283678
+ produccion_clp: number | null;
283679
+ /**
283680
+ * @description What `basis_clp`, `cobertura_pct` and `brecha_clp` measure against the break-even: `produccion` mid-month for a clinic with production data (booked income reads near zero until the month’s summary boleta arrives), `ingresos` otherwise and once booked income covers 80 % of the month’s producción.
283681
+ * @enum {string}
283682
+ */
283683
+ basis: "produccion" | "ingresos";
283684
+ /** @description The amount on `basis`. */
283685
+ basis_clp: number;
283686
+ /** @description The break-even bar the month is judged against. Null when no complete month has a break-even yet. */
283625
283687
  equilibrio: {
283688
+ /** @description The newest month used. */
283626
283689
  month: string;
283627
283690
  label: string;
283691
+ /** @description The bar: the average break-even of the last 3 complete months, «Mes incompleto» skipped. Never null today (the whole `equilibrio` is null instead); kept nullable for compatibility. */
283628
283692
  equilibrio_clp: number | null;
283629
- /** @enum {string|null} */
283693
+ /**
283694
+ * @description Always null: only months with a break-even are averaged.
283695
+ * @enum {string|null}
283696
+ */
283630
283697
  sin_calculo: "sin_ingresos" | "margen_no_positivo" | null;
283698
+ /** @description First month of the average, `YYYY-MM`. */
283699
+ from: string;
283700
+ /** @description Last month of the average, `YYYY-MM`. */
283701
+ to: string;
283702
+ /** @description The trailing complete months used, oldest first (at most 3). */
283703
+ months: {
283704
+ month: string;
283705
+ label: string;
283706
+ equilibrio_clp: number;
283707
+ }[];
283631
283708
  } | null;
283632
- /** @description Percent, one decimal. */
283709
+ /** @description `basis_clp` ÷ equilibrio, one decimal. */
283633
283710
  cobertura_pct: number | null;
283634
- /** @description ingresos − equilibrio (negative: still short of it). */
283711
+ /** @description `basis_clp` − equilibrio (negative: still short of it). */
283635
283712
  brecha_clp: number | null;
283636
283713
  } | null;
283637
283714
  FinanzasResumen: {
package/dist/index.d.ts CHANGED
@@ -75892,6 +75892,8 @@ interface paths {
75892
75892
  * "payer": null,
75893
75893
  * "comment_count": 0,
75894
75894
  * "ads_document_id": null,
75895
+ * "card_processor": null,
75896
+ * "generic_label": null,
75895
75897
  * "created_at": "2026-10-28T09:00:00.000Z"
75896
75898
  * }
75897
75899
  * },
@@ -76743,6 +76745,8 @@ interface paths {
76743
76745
  * "payer": null,
76744
76746
  * "comment_count": 1,
76745
76747
  * "ads_document_id": null,
76748
+ * "card_processor": null,
76749
+ * "generic_label": null,
76746
76750
  * "created_at": "2026-10-30T08:00:00.000Z"
76747
76751
  * }
76748
76752
  * ],
@@ -76906,6 +76910,8 @@ interface paths {
76906
76910
  * "payer": null,
76907
76911
  * "comment_count": 1,
76908
76912
  * "ads_document_id": null,
76913
+ * "card_processor": null,
76914
+ * "generic_label": null,
76909
76915
  * "created_at": "2026-10-30T08:00:00.000Z",
76910
76916
  * "comments": [
76911
76917
  * {
@@ -82622,6 +82628,8 @@ interface paths {
82622
82628
  * "payer": null,
82623
82629
  * "comment_count": 0,
82624
82630
  * "ads_document_id": null,
82631
+ * "card_processor": null,
82632
+ * "generic_label": null,
82625
82633
  * "created_at": "2026-10-30T08:00:00.000Z"
82626
82634
  * },
82627
82635
  * "money_mirrored": false,
@@ -82653,6 +82661,7 @@ interface paths {
82653
82661
  * "paired_movement": null,
82654
82662
  * "cash_day": null,
82655
82663
  * "contraparte": null,
82664
+ * "payout": null,
82656
82665
  * "undoable": true
82657
82666
  * }
82658
82667
  * ],
@@ -82936,6 +82945,7 @@ interface paths {
82936
82945
  * "paired_movement": null,
82937
82946
  * "cash_day": null,
82938
82947
  * "contraparte": null,
82948
+ * "payout": null,
82939
82949
  * "undoable": true
82940
82950
  * }
82941
82951
  * ],
@@ -83158,6 +83168,8 @@ interface paths {
83158
83168
  * "payer": null,
83159
83169
  * "comment_count": 0,
83160
83170
  * "ads_document_id": null,
83171
+ * "card_processor": null,
83172
+ * "generic_label": null,
83161
83173
  * "created_at": "2026-10-30T08:00:00.000Z"
83162
83174
  * },
83163
83175
  * "money_mirrored": false,
@@ -83189,6 +83201,7 @@ interface paths {
83189
83201
  * "paired_movement": null,
83190
83202
  * "cash_day": null,
83191
83203
  * "contraparte": null,
83204
+ * "payout": null,
83192
83205
  * "undoable": true
83193
83206
  * }
83194
83207
  * ],
@@ -92581,7 +92594,7 @@ interface paths {
92581
92594
  * }
92582
92595
  * },
92583
92596
  * "lines": [
92584
- * "Noviembre va en $6.100.000 de ingresos, de $9.800.000 para cubrir costos. Por ahora el mes pierde $1.200.000.",
92597
+ * "Noviembre va en $6.100.000 de ingresos, de $9.800.000 para cubrir costos.",
92585
92598
  * "3 casos te necesitan en Por resolver, por $840.000."
92586
92599
  * ],
92587
92600
  * "primary": {
@@ -280619,6 +280632,18 @@ interface components {
280619
280632
  * @description Finanzas 30: the ad document (`GET /finanzas/documents/{id}`, `origin = ads`) of this movement when it is an ad charge or refund; null otherwise.
280620
280633
  */
280621
280634
  ads_document_id: string | null;
280635
+ /** @description Finanzas 36: set when this is a known card processor's payout («Cobro con tarjeta»: PNOL / PAGOS Y SERVICIOS, Transbank, Getnet, Mercado Pago). It settles the month's boleta summary and never adds income. Null for any other movement and for money out. */
280636
+ card_processor: {
280637
+ /** @enum {string} */
280638
+ key: "pagos_y_servicios" | "transbank" | "getnet" | "mercado_pago";
280639
+ name: string;
280640
+ rut_formatted: string | null;
280641
+ } | null;
280642
+ /**
280643
+ * @description Finanzas 36: set when the bank text names nobody and the movement has no Contraparte: show it as the title with the sub-line «Sin contraparte».
280644
+ * @enum {string|null}
280645
+ */
280646
+ generic_label: "Depósito en efectivo" | "Pago recibido" | "Depósito con cheque" | null;
280622
280647
  created_at: string;
280623
280648
  };
280624
280649
  FinanzasDocument: {
@@ -281566,6 +281591,13 @@ interface components {
281566
281591
  id: string;
281567
281592
  name: string;
281568
281593
  } | null;
281594
+ /** @description Finanzas 36: set on a link with reason `payout_deduction`: the commission factura (`document`) was paid by deduction from this card payout (the processor kept it). Show «Pagada con descuento» and «Descontada del abono de {processor_name} del {day}», linking to `movement_id`. Such a link takes nothing from the payout's cash. Null otherwise. */
281595
+ payout: {
281596
+ movement_id: string;
281597
+ day: string;
281598
+ amount_clp: number;
281599
+ processor_name: string | null;
281600
+ } | null;
281569
281601
  own_transfer: components["schemas"]["FinanzasOwnTransfer"];
281570
281602
  undoable: boolean;
281571
281603
  };
@@ -283401,6 +283433,15 @@ interface components {
283401
283433
  month: string;
283402
283434
  label: string;
283403
283435
  proforma: boolean;
283436
+ /** @description «Mes incompleto»: a closed month whose dentist cost is $0 or that misses a large recurring cost. It never counts for `equilibrio`. Null otherwise; a proforma month is never tagged. */
283437
+ incompleto: {
283438
+ /** @enum {string} */
283439
+ reason: "dentist_cost_missing" | "recurring_cost_missing";
283440
+ /** @description Spanish, ready for the tooltip. */
283441
+ message: string;
283442
+ /** @description The missing recurring account (`recurring_cost_missing`), else null. */
283443
+ account_name: string | null;
283444
+ } | null;
283404
283445
  /** @description The Resultado’s «Ingresos» (net). */
283405
283446
  ingresos_clp: number;
283406
283447
  /** @description Costs on accounts flagged variable (documented or not) + «Egresos sin clasificar». */
@@ -283424,6 +283465,18 @@ interface components {
283424
283465
  /** @description ingresos − variables − fijos = the Resultado operacional. */
283425
283466
  resultado_clp: number;
283426
283467
  }[];
283468
+ /** @description The bar the current month is judged against; independent of the range asked for. Null when no complete month has a break-even. */
283469
+ equilibrio: {
283470
+ /** @description The average break-even of the last 3 complete months, «Mes incompleto» skipped. */
283471
+ equilibrio_clp: number;
283472
+ from: string;
283473
+ to: string;
283474
+ months: {
283475
+ month: string;
283476
+ label: string;
283477
+ equilibrio_clp: number;
283478
+ }[];
283479
+ } | null;
283427
283480
  /** @description Monthly averages over the range; equilibrio = average fijos ÷ the range’s margin %. */
283428
283481
  period: {
283429
283482
  /** @description The Resultado’s «Ingresos» (net). */
@@ -283621,17 +283674,41 @@ interface components {
283621
283674
  sin_clasificar_clp: number;
283622
283675
  /** @description The month’s Resultado operacional. */
283623
283676
  resultado_clp: number;
283624
- /** @description The break-even line: Costos y equilibrio’s punto de equilibrio of the last closed month (its headline). */
283677
+ /** @description Clinics with production data: the month’s producción (performed work in the clinic system). Null for the others. */
283678
+ produccion_clp: number | null;
283679
+ /**
283680
+ * @description What `basis_clp`, `cobertura_pct` and `brecha_clp` measure against the break-even: `produccion` mid-month for a clinic with production data (booked income reads near zero until the month’s summary boleta arrives), `ingresos` otherwise and once booked income covers 80 % of the month’s producción.
283681
+ * @enum {string}
283682
+ */
283683
+ basis: "produccion" | "ingresos";
283684
+ /** @description The amount on `basis`. */
283685
+ basis_clp: number;
283686
+ /** @description The break-even bar the month is judged against. Null when no complete month has a break-even yet. */
283625
283687
  equilibrio: {
283688
+ /** @description The newest month used. */
283626
283689
  month: string;
283627
283690
  label: string;
283691
+ /** @description The bar: the average break-even of the last 3 complete months, «Mes incompleto» skipped. Never null today (the whole `equilibrio` is null instead); kept nullable for compatibility. */
283628
283692
  equilibrio_clp: number | null;
283629
- /** @enum {string|null} */
283693
+ /**
283694
+ * @description Always null: only months with a break-even are averaged.
283695
+ * @enum {string|null}
283696
+ */
283630
283697
  sin_calculo: "sin_ingresos" | "margen_no_positivo" | null;
283698
+ /** @description First month of the average, `YYYY-MM`. */
283699
+ from: string;
283700
+ /** @description Last month of the average, `YYYY-MM`. */
283701
+ to: string;
283702
+ /** @description The trailing complete months used, oldest first (at most 3). */
283703
+ months: {
283704
+ month: string;
283705
+ label: string;
283706
+ equilibrio_clp: number;
283707
+ }[];
283631
283708
  } | null;
283632
- /** @description Percent, one decimal. */
283709
+ /** @description `basis_clp` ÷ equilibrio, one decimal. */
283633
283710
  cobertura_pct: number | null;
283634
- /** @description ingresos − equilibrio (negative: still short of it). */
283711
+ /** @description `basis_clp` − equilibrio (negative: still short of it). */
283635
283712
  brecha_clp: number | null;
283636
283713
  } | null;
283637
283714
  FinanzasResumen: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitrina/api",
3
- "version": "17.19.1",
3
+ "version": "17.21.0",
4
4
  "description": "Typed TypeScript SDK for the Vitrina API pública — generated from the committed openapi.public.json (ADR 0106).",
5
5
  "type": "module",
6
6
  "license": "MIT",