@vitrina/api 17.124.0 → 17.125.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 +38 -2
- package/dist/index.d.ts +38 -2
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -341714,14 +341714,50 @@ interface components {
|
|
|
341714
341714
|
}[];
|
|
341715
341715
|
};
|
|
341716
341716
|
status: {
|
|
341717
|
-
/** @description
|
|
341717
|
+
/** @description The DRAFT is done: the year is ready (`year_complete`) AND no line that counts waits on a person (`blocking_lines` is 0). Limits do not stop it: see `has_limits`. Two separate notions: YEAR READINESS (`year_*`, `incomplete`, `limits`: the same rule and the same sentences as the Paquete anual) and DRAFT LINES PENDING (`blocking_lines`, `state_counts`). */
|
|
341718
341718
|
complete: boolean;
|
|
341719
|
+
/** @description «Completo», «Completo, con límites» (complete, and `has_limits`), «Incompleto» or «Año en curso: incompleto». Render as is; an unknown value gets a neutral badge. */
|
|
341719
341720
|
label: string;
|
|
341721
|
+
/** @description YEAR READINESS: the year is over and no ACTIONABLE reason remains (`actionable_count` is 0). Same rule as the Paquete anual `complete`. Says nothing about the lines. */
|
|
341722
|
+
year_complete: boolean;
|
|
341723
|
+
/**
|
|
341724
|
+
* @description YEAR READINESS, the Paquete anual `status`: «Completo», «Completo, con límites», «Incompleto», «En curso: incompleto».
|
|
341725
|
+
* @enum {string}
|
|
341726
|
+
*/
|
|
341727
|
+
year_status: "complete" | "complete_with_limits" | "incomplete" | "in_progress";
|
|
341728
|
+
/** @description The Spanish label of `year_status`. */
|
|
341729
|
+
year_status_label: string;
|
|
341730
|
+
/** @description The year has limits: things Vitrina does not hold or cannot confirm, and no action in Vitrina clears. They never keep the year or the draft from being complete. */
|
|
341731
|
+
has_limits: boolean;
|
|
341732
|
+
/** @description How many `incomplete` items have `actionable: true`. */
|
|
341733
|
+
actionable_count: number;
|
|
341734
|
+
/** @description Every reason, actionable or not. Group by `actionable` to render «Por revisar» and «Lo que este paquete no trae». */
|
|
341720
341735
|
incomplete: {
|
|
341721
|
-
|
|
341736
|
+
/** @enum {string} */
|
|
341737
|
+
code: "month_not_closed" | "month_in_progress" | "month_not_started" | "sii_not_connected" | "sii_backfill_pending" | "sii_not_read" | "sii_not_read_previous_year" | "unclassified" | "incomplete_month" | "f29_missing" | "f29_not_filed" | "undated_collections" | "undated_payments" | "unexplained_outflows" | "rows_truncated";
|
|
341738
|
+
/** @description `YYYY-MM`, or null for an item about the whole year. */
|
|
341722
341739
|
month: string | null;
|
|
341740
|
+
/** @description Spanish, ready to show. */
|
|
341723
341741
|
message: string;
|
|
341742
|
+
/** @description A person can clear it in Vitrina. False: Vitrina does not hold the data or it only needs time; it is also summarised in `limits`. An undated-payments or undated-collections reason is split into an actionable item and a non-actionable one (documents marked paid before Vitrina have no date to give). */
|
|
341743
|
+
actionable: boolean;
|
|
341744
|
+
}[];
|
|
341745
|
+
/** @description The non-actionable reasons, ONE entry per kind for the year (not one per month). Nothing a person does in Vitrina clears them. */
|
|
341746
|
+
limits: {
|
|
341747
|
+
/** @enum {string} */
|
|
341748
|
+
kind: "sii_not_read_previous_year" | "sii_not_read" | "f29_not_readable" | "undated_collections_before_vitrina" | "undated_payments_before_vitrina" | "month_in_progress" | "month_not_started" | "rows_truncated";
|
|
341749
|
+
/** @description The reason codes collapsed into this limit. */
|
|
341750
|
+
codes: ("month_not_closed" | "month_in_progress" | "month_not_started" | "sii_not_connected" | "sii_backfill_pending" | "sii_not_read" | "sii_not_read_previous_year" | "unclassified" | "incomplete_month" | "f29_missing" | "f29_not_filed" | "undated_collections" | "undated_payments" | "unexplained_outflows" | "rows_truncated")[];
|
|
341751
|
+
/** @description Spanish, neutral register: what the package does not contain or cannot confirm. */
|
|
341752
|
+
message: string;
|
|
341753
|
+
/** @description Months for the month kinds, documents for the undated kinds, files for `rows_truncated`. */
|
|
341754
|
+
count: number;
|
|
341755
|
+
/** @description In base de caja, for the undated kinds; null otherwise. */
|
|
341756
|
+
amount_clp: number | null;
|
|
341757
|
+
/** @description `YYYY-MM` months it covers; empty for a year-wide limit. */
|
|
341758
|
+
months: string[];
|
|
341724
341759
|
}[];
|
|
341760
|
+
/** @description DRAFT LINES PENDING: lines that count for completeness and still wait on a person (a «needs» state, an incomplete formula, a figure only the SII holds). */
|
|
341725
341761
|
blocking_lines: number;
|
|
341726
341762
|
state_counts: {
|
|
341727
341763
|
[key: string]: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -341714,14 +341714,50 @@ interface components {
|
|
|
341714
341714
|
}[];
|
|
341715
341715
|
};
|
|
341716
341716
|
status: {
|
|
341717
|
-
/** @description
|
|
341717
|
+
/** @description The DRAFT is done: the year is ready (`year_complete`) AND no line that counts waits on a person (`blocking_lines` is 0). Limits do not stop it: see `has_limits`. Two separate notions: YEAR READINESS (`year_*`, `incomplete`, `limits`: the same rule and the same sentences as the Paquete anual) and DRAFT LINES PENDING (`blocking_lines`, `state_counts`). */
|
|
341718
341718
|
complete: boolean;
|
|
341719
|
+
/** @description «Completo», «Completo, con límites» (complete, and `has_limits`), «Incompleto» or «Año en curso: incompleto». Render as is; an unknown value gets a neutral badge. */
|
|
341719
341720
|
label: string;
|
|
341721
|
+
/** @description YEAR READINESS: the year is over and no ACTIONABLE reason remains (`actionable_count` is 0). Same rule as the Paquete anual `complete`. Says nothing about the lines. */
|
|
341722
|
+
year_complete: boolean;
|
|
341723
|
+
/**
|
|
341724
|
+
* @description YEAR READINESS, the Paquete anual `status`: «Completo», «Completo, con límites», «Incompleto», «En curso: incompleto».
|
|
341725
|
+
* @enum {string}
|
|
341726
|
+
*/
|
|
341727
|
+
year_status: "complete" | "complete_with_limits" | "incomplete" | "in_progress";
|
|
341728
|
+
/** @description The Spanish label of `year_status`. */
|
|
341729
|
+
year_status_label: string;
|
|
341730
|
+
/** @description The year has limits: things Vitrina does not hold or cannot confirm, and no action in Vitrina clears. They never keep the year or the draft from being complete. */
|
|
341731
|
+
has_limits: boolean;
|
|
341732
|
+
/** @description How many `incomplete` items have `actionable: true`. */
|
|
341733
|
+
actionable_count: number;
|
|
341734
|
+
/** @description Every reason, actionable or not. Group by `actionable` to render «Por revisar» and «Lo que este paquete no trae». */
|
|
341720
341735
|
incomplete: {
|
|
341721
|
-
|
|
341736
|
+
/** @enum {string} */
|
|
341737
|
+
code: "month_not_closed" | "month_in_progress" | "month_not_started" | "sii_not_connected" | "sii_backfill_pending" | "sii_not_read" | "sii_not_read_previous_year" | "unclassified" | "incomplete_month" | "f29_missing" | "f29_not_filed" | "undated_collections" | "undated_payments" | "unexplained_outflows" | "rows_truncated";
|
|
341738
|
+
/** @description `YYYY-MM`, or null for an item about the whole year. */
|
|
341722
341739
|
month: string | null;
|
|
341740
|
+
/** @description Spanish, ready to show. */
|
|
341723
341741
|
message: string;
|
|
341742
|
+
/** @description A person can clear it in Vitrina. False: Vitrina does not hold the data or it only needs time; it is also summarised in `limits`. An undated-payments or undated-collections reason is split into an actionable item and a non-actionable one (documents marked paid before Vitrina have no date to give). */
|
|
341743
|
+
actionable: boolean;
|
|
341744
|
+
}[];
|
|
341745
|
+
/** @description The non-actionable reasons, ONE entry per kind for the year (not one per month). Nothing a person does in Vitrina clears them. */
|
|
341746
|
+
limits: {
|
|
341747
|
+
/** @enum {string} */
|
|
341748
|
+
kind: "sii_not_read_previous_year" | "sii_not_read" | "f29_not_readable" | "undated_collections_before_vitrina" | "undated_payments_before_vitrina" | "month_in_progress" | "month_not_started" | "rows_truncated";
|
|
341749
|
+
/** @description The reason codes collapsed into this limit. */
|
|
341750
|
+
codes: ("month_not_closed" | "month_in_progress" | "month_not_started" | "sii_not_connected" | "sii_backfill_pending" | "sii_not_read" | "sii_not_read_previous_year" | "unclassified" | "incomplete_month" | "f29_missing" | "f29_not_filed" | "undated_collections" | "undated_payments" | "unexplained_outflows" | "rows_truncated")[];
|
|
341751
|
+
/** @description Spanish, neutral register: what the package does not contain or cannot confirm. */
|
|
341752
|
+
message: string;
|
|
341753
|
+
/** @description Months for the month kinds, documents for the undated kinds, files for `rows_truncated`. */
|
|
341754
|
+
count: number;
|
|
341755
|
+
/** @description In base de caja, for the undated kinds; null otherwise. */
|
|
341756
|
+
amount_clp: number | null;
|
|
341757
|
+
/** @description `YYYY-MM` months it covers; empty for a year-wide limit. */
|
|
341758
|
+
months: string[];
|
|
341724
341759
|
}[];
|
|
341760
|
+
/** @description DRAFT LINES PENDING: lines that count for completeness and still wait on a person (a «needs» state, an incomplete formula, a figure only the SII holds). */
|
|
341725
341761
|
blocking_lines: number;
|
|
341726
341762
|
state_counts: {
|
|
341727
341763
|
[key: string]: number;
|
package/package.json
CHANGED