@vitrina/api 17.126.0 → 17.127.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
@@ -114486,7 +114486,7 @@ interface paths {
114486
114486
  };
114487
114487
  /**
114488
114488
  * The Borrador de F22 of a sociedad for a commercial year
114489
- * @description A draft FOR THE ACCOUNTANT, by the sociedad's tax regime, on the cash basis of the Pro Pyme regimes (14 D N°3, 14 D N°8). Vitrina never files it. Every code of the regime's mapping is a line with exactly one `state` and what it was built from; an amount Vitrina cannot determine is `null`, never 0. Also: the cash base from the books and what stays outside it (accounts without tax meaning, non-deductible items, undated items), the reconciliation with the accrual Resultado, PPM by month brought to year end (with a warning while they come from SII proposals), the IDPC rate, the Pro Pyme income check, and for 14 D N°8 the attribution to owners (no owner's tax is computed). `available: false` with a `refusal` (no sociedad, more than one sociedad, no regime, regime 14 A, no mapping or no tax tables for the year). A future year answers 400. Requires the `finanzas` add-on (otherwise `402 ENTITLEMENT_NOT_ACTIVE`). Requires `finanzas_reports:read` (owner, admin, Contador seat).
114489
+ * @description A draft FOR THE ACCOUNTANT, by the sociedad's tax regime, on the cash basis of the Pro Pyme regimes (14 D N°3, 14 D N°8) or on the accrual result of the general regime (14 A), whose tax adjustments are left blank for the person filing (state `adjustment`) so the taxable income and the tax stay null until a person completes them. Vitrina never files it. Every code of the regime's mapping is a line with exactly one `state` and what it was built from; an amount Vitrina cannot determine is `null`, never 0. Also: the figure on the codes (`base.basis`: the cash base, or the accrual result in 14 A) and what stays outside it (accounts without tax meaning, non-deductible items, undated items), the reconciliation with the accrual Resultado, PPM by month brought to year end (with a warning while they come from SII proposals), the IDPC rate, the Pro Pyme income check, and for 14 D N°8 the attribution to owners (no owner's tax is computed). `available: false` with a `refusal` (no sociedad, more than one sociedad, no regime, no mapping or no tax tables for the year). A future year answers 400. Requires the `finanzas` add-on (otherwise `402 ENTITLEMENT_NOT_ACTIVE`). Requires `finanzas_reports:read` (owner, admin, Contador seat).
114490
114490
  */
114491
114491
  get: {
114492
114492
  parameters: {
@@ -116979,12 +116979,12 @@ interface paths {
116979
116979
  rows: number;
116980
116980
  size_bytes: number;
116981
116981
  }[];
116982
- /** @description The Borrador de F22 (#8088). Its full read is `GET /finanzas/f22-draft?year=`. */
116982
+ /** @description The Borrador de F22 (#8088, #8089). Its full read is `GET /finanzas/f22-draft?year=`. */
116983
116983
  f22_draft: {
116984
- /** @description True when the zip carries `08-borrador-f22-<year>.xlsx` (#8088): only for a sociedad in a Pro Pyme regime that year. */
116984
+ /** @description True when the zip carries `08-borrador-f22-<year>.xlsx` (#8088, #8089): for a sociedad with a tax regime set for that year (Pro Pyme or 14 A). */
116985
116985
  available: boolean;
116986
116986
  complete: boolean | null;
116987
- /** @description Why there is no draft: `no_sociedad`, `multi_sociedad`, `no_regime`, `regime_14a`, `no_mapping`, `no_tax_tables`. Spanish message ready to show. */
116987
+ /** @description Why there is no draft: `no_sociedad`, `multi_sociedad`, `no_regime`, `no_mapping`, `no_tax_tables`. Spanish message ready to show. */
116988
116988
  refusal: {
116989
116989
  code: string;
116990
116990
  message: string;
@@ -341613,10 +341613,10 @@ interface components {
341613
341613
  applies_from_year: number;
341614
341614
  };
341615
341615
  /**
341616
- * @description Exactly one per line. `books` computed from the books (with `built_from`); `formula` derived with the SII formula (with `inputs`); `formula_incomplete` a formula whose inputs are missing (`missing`, amount null); `entered` a person typed it (`entered`); `needs_input` a datum only a person has; `needs_prior_year` from last year's F22, not readable yet; `sii_only` held by the SII (may carry a `reference_amount_clp` that is NOT the amount); `not_held` Vitrina does not record it (or it belongs to an owner's own return); `not_evaluable` derived with no formula in the mapping.
341616
+ * @description Exactly one per line. `adjustment` (14 A only, #8089): a tax adjustment of the financial result (Recuadro 12) that the person filing completes; amount null, may carry a `reference_amount_clp` from Vitrina's non-deductible marks that is NOT the amount. `books` computed from the books (with `built_from`); `formula` derived with the SII formula (with `inputs`); `formula_incomplete` a formula whose inputs are missing (`missing`, amount null); `entered` a person typed it (`entered`); `needs_input` a datum only a person has; `needs_prior_year` from last year's F22, not readable yet; `sii_only` held by the SII (may carry a `reference_amount_clp` that is NOT the amount); `not_held` Vitrina does not record it (or it belongs to an owner's own return); `not_evaluable` derived with no formula in the mapping.
341617
341617
  * @enum {string}
341618
341618
  */
341619
- FinanzasF22LineState: "books" | "formula" | "formula_incomplete" | "entered" | "needs_input" | "needs_prior_year" | "sii_only" | "not_held" | "not_evaluable";
341619
+ FinanzasF22LineState: "books" | "formula" | "formula_incomplete" | "entered" | "needs_input" | "needs_prior_year" | "sii_only" | "not_held" | "not_evaluable" | "adjustment";
341620
341620
  FinanzasF22BuiltFrom: {
341621
341621
  /** @description Spanish, ready to show. */
341622
341622
  description: string;
@@ -341680,6 +341680,35 @@ interface components {
341680
341680
  mapping_status: string;
341681
341681
  counts_for_completeness: boolean;
341682
341682
  };
341683
+ /** @description 14 A only (#8089): the accrual result and what stands between it and the tax. `taxable_income` (1690) and `tax` (1113) stay null («no determinado») while an adjustment is blank; the draft never presents a tax computed without them. Null in Pro Pyme. */
341684
+ FinanzasF22Accrual: {
341685
+ /** @description Spanish, always shown on a 14 A draft. */
341686
+ statement: string;
341687
+ books_result_clp: number;
341688
+ financial_result: {
341689
+ code: number;
341690
+ label: string;
341691
+ amount_clp: number | null;
341692
+ state: components["schemas"]["FinanzasF22LineState"];
341693
+ };
341694
+ taxable_income: {
341695
+ code: number;
341696
+ label: string;
341697
+ amount_clp: number | null;
341698
+ state: components["schemas"]["FinanzasF22LineState"];
341699
+ };
341700
+ tax: {
341701
+ code: number;
341702
+ label: string;
341703
+ amount_clp: number | null;
341704
+ state: components["schemas"]["FinanzasF22LineState"];
341705
+ };
341706
+ pending_adjustments: {
341707
+ code: number;
341708
+ label: string;
341709
+ }[];
341710
+ undocumented_expenses_clp: number;
341711
+ } | null;
341683
341712
  FinanzasF22Draft: {
341684
341713
  title: string;
341685
341714
  audience: string;
@@ -341694,7 +341723,7 @@ interface components {
341694
341723
  };
341695
341724
  regime: {
341696
341725
  /** @enum {string} */
341697
- code: "14D3" | "14D8";
341726
+ code: "14D3" | "14D8" | "14A";
341698
341727
  name: string;
341699
341728
  article: string;
341700
341729
  label: string;
@@ -341787,6 +341816,14 @@ interface components {
341787
341816
  }[];
341788
341817
  } | null;
341789
341818
  base: {
341819
+ /**
341820
+ * @description `cash` in Pro Pyme; `accrual` in 14 A, where `untagged` holds income (`collection`) and costs or expenses (`payment`) by document date, and `excluded` is empty.
341821
+ * @enum {string}
341822
+ */
341823
+ basis: "cash" | "accrual";
341824
+ /** @description The figure the draft puts on its codes: the cash base (Pro Pyme) or the accrual result of Recuadro 12 (14 A). */
341825
+ books_result_clp: number;
341826
+ /** @description Pro Pyme: the cash base. 14 A: equals `books_result_clp`; read `basis`. */
341790
341827
  cash_base_from_books_clp: number;
341791
341828
  untagged: {
341792
341829
  /** @enum {string} */
@@ -341839,6 +341876,12 @@ interface components {
341839
341876
  }[];
341840
341877
  };
341841
341878
  reconciliation: {
341879
+ /**
341880
+ * @description `cash`: accrual Resultado → cash base (Pro Pyme). `accrual` (14 A): Resultado → accounts without tax meaning → the accrual result on the codes; the cash result is a reference line.
341881
+ * @enum {string}
341882
+ */
341883
+ basis: "cash" | "accrual";
341884
+ books_result_clp: number;
341842
341885
  accrual_result_clp: number;
341843
341886
  cash_result_clp: number;
341844
341887
  cash_base_from_books_clp: number;
@@ -341898,6 +341941,7 @@ interface components {
341898
341941
  [key: string]: unknown;
341899
341942
  } | null;
341900
341943
  };
341944
+ accrual: components["schemas"]["FinanzasF22Accrual"];
341901
341945
  warnings: {
341902
341946
  code: string;
341903
341947
  message: string;
@@ -341907,7 +341951,7 @@ interface components {
341907
341951
  available: boolean;
341908
341952
  year: number;
341909
341953
  tax_year: number;
341910
- /** @description Why there is no draft (Spanish message ready to show); null when `available`. */
341954
+ /** @description Why there is no draft (Spanish message ready to show); null when `available`. `regime_14a` is no longer produced since #8089 (14 A has its draft). */
341911
341955
  refusal: {
341912
341956
  /** @enum {string} */
341913
341957
  code: "no_sociedad" | "multi_sociedad" | "no_regime" | "regime_14a" | "no_mapping" | "no_tax_tables";
package/dist/index.d.ts CHANGED
@@ -114486,7 +114486,7 @@ interface paths {
114486
114486
  };
114487
114487
  /**
114488
114488
  * The Borrador de F22 of a sociedad for a commercial year
114489
- * @description A draft FOR THE ACCOUNTANT, by the sociedad's tax regime, on the cash basis of the Pro Pyme regimes (14 D N°3, 14 D N°8). Vitrina never files it. Every code of the regime's mapping is a line with exactly one `state` and what it was built from; an amount Vitrina cannot determine is `null`, never 0. Also: the cash base from the books and what stays outside it (accounts without tax meaning, non-deductible items, undated items), the reconciliation with the accrual Resultado, PPM by month brought to year end (with a warning while they come from SII proposals), the IDPC rate, the Pro Pyme income check, and for 14 D N°8 the attribution to owners (no owner's tax is computed). `available: false` with a `refusal` (no sociedad, more than one sociedad, no regime, regime 14 A, no mapping or no tax tables for the year). A future year answers 400. Requires the `finanzas` add-on (otherwise `402 ENTITLEMENT_NOT_ACTIVE`). Requires `finanzas_reports:read` (owner, admin, Contador seat).
114489
+ * @description A draft FOR THE ACCOUNTANT, by the sociedad's tax regime, on the cash basis of the Pro Pyme regimes (14 D N°3, 14 D N°8) or on the accrual result of the general regime (14 A), whose tax adjustments are left blank for the person filing (state `adjustment`) so the taxable income and the tax stay null until a person completes them. Vitrina never files it. Every code of the regime's mapping is a line with exactly one `state` and what it was built from; an amount Vitrina cannot determine is `null`, never 0. Also: the figure on the codes (`base.basis`: the cash base, or the accrual result in 14 A) and what stays outside it (accounts without tax meaning, non-deductible items, undated items), the reconciliation with the accrual Resultado, PPM by month brought to year end (with a warning while they come from SII proposals), the IDPC rate, the Pro Pyme income check, and for 14 D N°8 the attribution to owners (no owner's tax is computed). `available: false` with a `refusal` (no sociedad, more than one sociedad, no regime, no mapping or no tax tables for the year). A future year answers 400. Requires the `finanzas` add-on (otherwise `402 ENTITLEMENT_NOT_ACTIVE`). Requires `finanzas_reports:read` (owner, admin, Contador seat).
114490
114490
  */
114491
114491
  get: {
114492
114492
  parameters: {
@@ -116979,12 +116979,12 @@ interface paths {
116979
116979
  rows: number;
116980
116980
  size_bytes: number;
116981
116981
  }[];
116982
- /** @description The Borrador de F22 (#8088). Its full read is `GET /finanzas/f22-draft?year=`. */
116982
+ /** @description The Borrador de F22 (#8088, #8089). Its full read is `GET /finanzas/f22-draft?year=`. */
116983
116983
  f22_draft: {
116984
- /** @description True when the zip carries `08-borrador-f22-<year>.xlsx` (#8088): only for a sociedad in a Pro Pyme regime that year. */
116984
+ /** @description True when the zip carries `08-borrador-f22-<year>.xlsx` (#8088, #8089): for a sociedad with a tax regime set for that year (Pro Pyme or 14 A). */
116985
116985
  available: boolean;
116986
116986
  complete: boolean | null;
116987
- /** @description Why there is no draft: `no_sociedad`, `multi_sociedad`, `no_regime`, `regime_14a`, `no_mapping`, `no_tax_tables`. Spanish message ready to show. */
116987
+ /** @description Why there is no draft: `no_sociedad`, `multi_sociedad`, `no_regime`, `no_mapping`, `no_tax_tables`. Spanish message ready to show. */
116988
116988
  refusal: {
116989
116989
  code: string;
116990
116990
  message: string;
@@ -341613,10 +341613,10 @@ interface components {
341613
341613
  applies_from_year: number;
341614
341614
  };
341615
341615
  /**
341616
- * @description Exactly one per line. `books` computed from the books (with `built_from`); `formula` derived with the SII formula (with `inputs`); `formula_incomplete` a formula whose inputs are missing (`missing`, amount null); `entered` a person typed it (`entered`); `needs_input` a datum only a person has; `needs_prior_year` from last year's F22, not readable yet; `sii_only` held by the SII (may carry a `reference_amount_clp` that is NOT the amount); `not_held` Vitrina does not record it (or it belongs to an owner's own return); `not_evaluable` derived with no formula in the mapping.
341616
+ * @description Exactly one per line. `adjustment` (14 A only, #8089): a tax adjustment of the financial result (Recuadro 12) that the person filing completes; amount null, may carry a `reference_amount_clp` from Vitrina's non-deductible marks that is NOT the amount. `books` computed from the books (with `built_from`); `formula` derived with the SII formula (with `inputs`); `formula_incomplete` a formula whose inputs are missing (`missing`, amount null); `entered` a person typed it (`entered`); `needs_input` a datum only a person has; `needs_prior_year` from last year's F22, not readable yet; `sii_only` held by the SII (may carry a `reference_amount_clp` that is NOT the amount); `not_held` Vitrina does not record it (or it belongs to an owner's own return); `not_evaluable` derived with no formula in the mapping.
341617
341617
  * @enum {string}
341618
341618
  */
341619
- FinanzasF22LineState: "books" | "formula" | "formula_incomplete" | "entered" | "needs_input" | "needs_prior_year" | "sii_only" | "not_held" | "not_evaluable";
341619
+ FinanzasF22LineState: "books" | "formula" | "formula_incomplete" | "entered" | "needs_input" | "needs_prior_year" | "sii_only" | "not_held" | "not_evaluable" | "adjustment";
341620
341620
  FinanzasF22BuiltFrom: {
341621
341621
  /** @description Spanish, ready to show. */
341622
341622
  description: string;
@@ -341680,6 +341680,35 @@ interface components {
341680
341680
  mapping_status: string;
341681
341681
  counts_for_completeness: boolean;
341682
341682
  };
341683
+ /** @description 14 A only (#8089): the accrual result and what stands between it and the tax. `taxable_income` (1690) and `tax` (1113) stay null («no determinado») while an adjustment is blank; the draft never presents a tax computed without them. Null in Pro Pyme. */
341684
+ FinanzasF22Accrual: {
341685
+ /** @description Spanish, always shown on a 14 A draft. */
341686
+ statement: string;
341687
+ books_result_clp: number;
341688
+ financial_result: {
341689
+ code: number;
341690
+ label: string;
341691
+ amount_clp: number | null;
341692
+ state: components["schemas"]["FinanzasF22LineState"];
341693
+ };
341694
+ taxable_income: {
341695
+ code: number;
341696
+ label: string;
341697
+ amount_clp: number | null;
341698
+ state: components["schemas"]["FinanzasF22LineState"];
341699
+ };
341700
+ tax: {
341701
+ code: number;
341702
+ label: string;
341703
+ amount_clp: number | null;
341704
+ state: components["schemas"]["FinanzasF22LineState"];
341705
+ };
341706
+ pending_adjustments: {
341707
+ code: number;
341708
+ label: string;
341709
+ }[];
341710
+ undocumented_expenses_clp: number;
341711
+ } | null;
341683
341712
  FinanzasF22Draft: {
341684
341713
  title: string;
341685
341714
  audience: string;
@@ -341694,7 +341723,7 @@ interface components {
341694
341723
  };
341695
341724
  regime: {
341696
341725
  /** @enum {string} */
341697
- code: "14D3" | "14D8";
341726
+ code: "14D3" | "14D8" | "14A";
341698
341727
  name: string;
341699
341728
  article: string;
341700
341729
  label: string;
@@ -341787,6 +341816,14 @@ interface components {
341787
341816
  }[];
341788
341817
  } | null;
341789
341818
  base: {
341819
+ /**
341820
+ * @description `cash` in Pro Pyme; `accrual` in 14 A, where `untagged` holds income (`collection`) and costs or expenses (`payment`) by document date, and `excluded` is empty.
341821
+ * @enum {string}
341822
+ */
341823
+ basis: "cash" | "accrual";
341824
+ /** @description The figure the draft puts on its codes: the cash base (Pro Pyme) or the accrual result of Recuadro 12 (14 A). */
341825
+ books_result_clp: number;
341826
+ /** @description Pro Pyme: the cash base. 14 A: equals `books_result_clp`; read `basis`. */
341790
341827
  cash_base_from_books_clp: number;
341791
341828
  untagged: {
341792
341829
  /** @enum {string} */
@@ -341839,6 +341876,12 @@ interface components {
341839
341876
  }[];
341840
341877
  };
341841
341878
  reconciliation: {
341879
+ /**
341880
+ * @description `cash`: accrual Resultado → cash base (Pro Pyme). `accrual` (14 A): Resultado → accounts without tax meaning → the accrual result on the codes; the cash result is a reference line.
341881
+ * @enum {string}
341882
+ */
341883
+ basis: "cash" | "accrual";
341884
+ books_result_clp: number;
341842
341885
  accrual_result_clp: number;
341843
341886
  cash_result_clp: number;
341844
341887
  cash_base_from_books_clp: number;
@@ -341898,6 +341941,7 @@ interface components {
341898
341941
  [key: string]: unknown;
341899
341942
  } | null;
341900
341943
  };
341944
+ accrual: components["schemas"]["FinanzasF22Accrual"];
341901
341945
  warnings: {
341902
341946
  code: string;
341903
341947
  message: string;
@@ -341907,7 +341951,7 @@ interface components {
341907
341951
  available: boolean;
341908
341952
  year: number;
341909
341953
  tax_year: number;
341910
- /** @description Why there is no draft (Spanish message ready to show); null when `available`. */
341954
+ /** @description Why there is no draft (Spanish message ready to show); null when `available`. `regime_14a` is no longer produced since #8089 (14 A has its draft). */
341911
341955
  refusal: {
341912
341956
  /** @enum {string} */
341913
341957
  code: "no_sociedad" | "multi_sociedad" | "no_regime" | "regime_14a" | "no_mapping" | "no_tax_tables";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitrina/api",
3
- "version": "17.126.0",
3
+ "version": "17.127.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",