@vitrina/api 17.19.1 → 17.20.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
@@ -92581,7 +92581,7 @@ interface paths {
92581
92581
  * }
92582
92582
  * },
92583
92583
  * "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.",
92584
+ * "Noviembre va en $6.100.000 de ingresos, de $9.800.000 para cubrir costos.",
92585
92585
  * "3 casos te necesitan en Por resolver, por $840.000."
92586
92586
  * ],
92587
92587
  * "primary": {
@@ -283401,6 +283401,15 @@ interface components {
283401
283401
  month: string;
283402
283402
  label: string;
283403
283403
  proforma: boolean;
283404
+ /** @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. */
283405
+ incompleto: {
283406
+ /** @enum {string} */
283407
+ reason: "dentist_cost_missing" | "recurring_cost_missing";
283408
+ /** @description Spanish, ready for the tooltip. */
283409
+ message: string;
283410
+ /** @description The missing recurring account (`recurring_cost_missing`), else null. */
283411
+ account_name: string | null;
283412
+ } | null;
283404
283413
  /** @description The Resultado’s «Ingresos» (net). */
283405
283414
  ingresos_clp: number;
283406
283415
  /** @description Costs on accounts flagged variable (documented or not) + «Egresos sin clasificar». */
@@ -283424,6 +283433,18 @@ interface components {
283424
283433
  /** @description ingresos − variables − fijos = the Resultado operacional. */
283425
283434
  resultado_clp: number;
283426
283435
  }[];
283436
+ /** @description The bar the current month is judged against; independent of the range asked for. Null when no complete month has a break-even. */
283437
+ equilibrio: {
283438
+ /** @description The average break-even of the last 3 complete months, «Mes incompleto» skipped. */
283439
+ equilibrio_clp: number;
283440
+ from: string;
283441
+ to: string;
283442
+ months: {
283443
+ month: string;
283444
+ label: string;
283445
+ equilibrio_clp: number;
283446
+ }[];
283447
+ } | null;
283427
283448
  /** @description Monthly averages over the range; equilibrio = average fijos ÷ the range’s margin %. */
283428
283449
  period: {
283429
283450
  /** @description The Resultado’s «Ingresos» (net). */
@@ -283621,17 +283642,41 @@ interface components {
283621
283642
  sin_clasificar_clp: number;
283622
283643
  /** @description The month’s Resultado operacional. */
283623
283644
  resultado_clp: number;
283624
- /** @description The break-even line: Costos y equilibrio’s punto de equilibrio of the last closed month (its headline). */
283645
+ /** @description Clinics with production data: the month’s producción (performed work in the clinic system). Null for the others. */
283646
+ produccion_clp: number | null;
283647
+ /**
283648
+ * @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.
283649
+ * @enum {string}
283650
+ */
283651
+ basis: "produccion" | "ingresos";
283652
+ /** @description The amount on `basis`. */
283653
+ basis_clp: number;
283654
+ /** @description The break-even bar the month is judged against. Null when no complete month has a break-even yet. */
283625
283655
  equilibrio: {
283656
+ /** @description The newest month used. */
283626
283657
  month: string;
283627
283658
  label: string;
283659
+ /** @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
283660
  equilibrio_clp: number | null;
283629
- /** @enum {string|null} */
283661
+ /**
283662
+ * @description Always null: only months with a break-even are averaged.
283663
+ * @enum {string|null}
283664
+ */
283630
283665
  sin_calculo: "sin_ingresos" | "margen_no_positivo" | null;
283666
+ /** @description First month of the average, `YYYY-MM`. */
283667
+ from: string;
283668
+ /** @description Last month of the average, `YYYY-MM`. */
283669
+ to: string;
283670
+ /** @description The trailing complete months used, oldest first (at most 3). */
283671
+ months: {
283672
+ month: string;
283673
+ label: string;
283674
+ equilibrio_clp: number;
283675
+ }[];
283631
283676
  } | null;
283632
- /** @description Percent, one decimal. */
283677
+ /** @description `basis_clp` ÷ equilibrio, one decimal. */
283633
283678
  cobertura_pct: number | null;
283634
- /** @description ingresos − equilibrio (negative: still short of it). */
283679
+ /** @description `basis_clp` − equilibrio (negative: still short of it). */
283635
283680
  brecha_clp: number | null;
283636
283681
  } | null;
283637
283682
  FinanzasResumen: {
package/dist/index.d.ts CHANGED
@@ -92581,7 +92581,7 @@ interface paths {
92581
92581
  * }
92582
92582
  * },
92583
92583
  * "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.",
92584
+ * "Noviembre va en $6.100.000 de ingresos, de $9.800.000 para cubrir costos.",
92585
92585
  * "3 casos te necesitan en Por resolver, por $840.000."
92586
92586
  * ],
92587
92587
  * "primary": {
@@ -283401,6 +283401,15 @@ interface components {
283401
283401
  month: string;
283402
283402
  label: string;
283403
283403
  proforma: boolean;
283404
+ /** @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. */
283405
+ incompleto: {
283406
+ /** @enum {string} */
283407
+ reason: "dentist_cost_missing" | "recurring_cost_missing";
283408
+ /** @description Spanish, ready for the tooltip. */
283409
+ message: string;
283410
+ /** @description The missing recurring account (`recurring_cost_missing`), else null. */
283411
+ account_name: string | null;
283412
+ } | null;
283404
283413
  /** @description The Resultado’s «Ingresos» (net). */
283405
283414
  ingresos_clp: number;
283406
283415
  /** @description Costs on accounts flagged variable (documented or not) + «Egresos sin clasificar». */
@@ -283424,6 +283433,18 @@ interface components {
283424
283433
  /** @description ingresos − variables − fijos = the Resultado operacional. */
283425
283434
  resultado_clp: number;
283426
283435
  }[];
283436
+ /** @description The bar the current month is judged against; independent of the range asked for. Null when no complete month has a break-even. */
283437
+ equilibrio: {
283438
+ /** @description The average break-even of the last 3 complete months, «Mes incompleto» skipped. */
283439
+ equilibrio_clp: number;
283440
+ from: string;
283441
+ to: string;
283442
+ months: {
283443
+ month: string;
283444
+ label: string;
283445
+ equilibrio_clp: number;
283446
+ }[];
283447
+ } | null;
283427
283448
  /** @description Monthly averages over the range; equilibrio = average fijos ÷ the range’s margin %. */
283428
283449
  period: {
283429
283450
  /** @description The Resultado’s «Ingresos» (net). */
@@ -283621,17 +283642,41 @@ interface components {
283621
283642
  sin_clasificar_clp: number;
283622
283643
  /** @description The month’s Resultado operacional. */
283623
283644
  resultado_clp: number;
283624
- /** @description The break-even line: Costos y equilibrio’s punto de equilibrio of the last closed month (its headline). */
283645
+ /** @description Clinics with production data: the month’s producción (performed work in the clinic system). Null for the others. */
283646
+ produccion_clp: number | null;
283647
+ /**
283648
+ * @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.
283649
+ * @enum {string}
283650
+ */
283651
+ basis: "produccion" | "ingresos";
283652
+ /** @description The amount on `basis`. */
283653
+ basis_clp: number;
283654
+ /** @description The break-even bar the month is judged against. Null when no complete month has a break-even yet. */
283625
283655
  equilibrio: {
283656
+ /** @description The newest month used. */
283626
283657
  month: string;
283627
283658
  label: string;
283659
+ /** @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
283660
  equilibrio_clp: number | null;
283629
- /** @enum {string|null} */
283661
+ /**
283662
+ * @description Always null: only months with a break-even are averaged.
283663
+ * @enum {string|null}
283664
+ */
283630
283665
  sin_calculo: "sin_ingresos" | "margen_no_positivo" | null;
283666
+ /** @description First month of the average, `YYYY-MM`. */
283667
+ from: string;
283668
+ /** @description Last month of the average, `YYYY-MM`. */
283669
+ to: string;
283670
+ /** @description The trailing complete months used, oldest first (at most 3). */
283671
+ months: {
283672
+ month: string;
283673
+ label: string;
283674
+ equilibrio_clp: number;
283675
+ }[];
283631
283676
  } | null;
283632
- /** @description Percent, one decimal. */
283677
+ /** @description `basis_clp` ÷ equilibrio, one decimal. */
283633
283678
  cobertura_pct: number | null;
283634
- /** @description ingresos − equilibrio (negative: still short of it). */
283679
+ /** @description `basis_clp` − equilibrio (negative: still short of it). */
283635
283680
  brecha_clp: number | null;
283636
283681
  } | null;
283637
283682
  FinanzasResumen: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitrina/api",
3
- "version": "17.19.1",
3
+ "version": "17.20.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",