@vitrina/api 15.28.2 → 15.28.3
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 +91 -21
- package/dist/index.d.ts +91 -21
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -86189,24 +86189,41 @@ interface paths {
|
|
|
86189
86189
|
* "totals_check": {
|
|
86190
86190
|
* "available": true,
|
|
86191
86191
|
* "mismatches": 1,
|
|
86192
|
+
* "explained": 1,
|
|
86193
|
+
* "explained_by_code": {
|
|
86194
|
+
* "redondeo": -1
|
|
86195
|
+
* },
|
|
86192
86196
|
* "rows": [
|
|
86193
86197
|
* {
|
|
86194
|
-
* "chipax_account": 5101,
|
|
86195
|
-
* "account_id": "0190a3c2-5d1e-7b6a-9f20-4c1d2e3f4c11",
|
|
86196
|
-
* "month": "2026-09",
|
|
86197
|
-
* "chipax_clp": 2380000,
|
|
86198
|
-
* "imported_chipax_clp": 2380000,
|
|
86199
|
-
* "vitrina_clp": 2832200,
|
|
86200
|
-
* "matches": true
|
|
86201
|
-
* },
|
|
86202
|
-
* {
|
|
86203
86198
|
* "chipax_account": 5110,
|
|
86204
86199
|
* "account_id": null,
|
|
86205
86200
|
* "month": "2026-09",
|
|
86206
86201
|
* "chipax_clp": 6120000,
|
|
86207
86202
|
* "imported_chipax_clp": 0,
|
|
86208
86203
|
* "vitrina_clp": 0,
|
|
86204
|
+
* "difference_clp": -6120000,
|
|
86205
|
+
* "explanations": [],
|
|
86206
|
+
* "unexplained_clp": -6120000,
|
|
86207
|
+
* "status": "mismatch",
|
|
86209
86208
|
* "matches": false
|
|
86209
|
+
* },
|
|
86210
|
+
* {
|
|
86211
|
+
* "chipax_account": 5101,
|
|
86212
|
+
* "account_id": "0190a3c2-5d1e-7b6a-9f20-4c1d2e3f4c11",
|
|
86213
|
+
* "month": "2026-09",
|
|
86214
|
+
* "chipax_clp": 2380000,
|
|
86215
|
+
* "imported_chipax_clp": 2380000,
|
|
86216
|
+
* "vitrina_clp": 2379999,
|
|
86217
|
+
* "difference_clp": -1,
|
|
86218
|
+
* "explanations": [
|
|
86219
|
+
* {
|
|
86220
|
+
* "code": "redondeo",
|
|
86221
|
+
* "amount_clp": -1
|
|
86222
|
+
* }
|
|
86223
|
+
* ],
|
|
86224
|
+
* "unexplained_clp": 0,
|
|
86225
|
+
* "status": "explained",
|
|
86226
|
+
* "matches": true
|
|
86210
86227
|
* }
|
|
86211
86228
|
* ]
|
|
86212
86229
|
* },
|
|
@@ -261306,7 +261323,7 @@ interface components {
|
|
|
261306
261323
|
/** @description Imported by an earlier run: nothing to do. */
|
|
261307
261324
|
already: number;
|
|
261308
261325
|
skip: number;
|
|
261309
|
-
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (
|
|
261326
|
+
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (the line names no account at all; a line Chipax books on its «no account» bucket, cuenta_corriente_id 0, lands on a manual account «Chipax: movimientos sin cuenta bancaria» since 2026-11-03), bank_account_not_imported, currency_unsupported, unreadable, ingest_failed, usd_rate_missing (no dólar observado for the day: that line alone). */
|
|
261310
261327
|
skip_reasons: {
|
|
261311
261328
|
[key: string]: number;
|
|
261312
261329
|
};
|
|
@@ -261350,7 +261367,7 @@ interface components {
|
|
|
261350
261367
|
/** @description Imported by an earlier run: nothing to do. */
|
|
261351
261368
|
already: number;
|
|
261352
261369
|
skip: number;
|
|
261353
|
-
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (
|
|
261370
|
+
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (the line names no account at all; a line Chipax books on its «no account» bucket, cuenta_corriente_id 0, lands on a manual account «Chipax: movimientos sin cuenta bancaria» since 2026-11-03), bank_account_not_imported, currency_unsupported, unreadable, ingest_failed, usd_rate_missing (no dólar observado for the day: that line alone). */
|
|
261354
261371
|
skip_reasons: {
|
|
261355
261372
|
[key: string]: number;
|
|
261356
261373
|
};
|
|
@@ -261363,7 +261380,7 @@ interface components {
|
|
|
261363
261380
|
/** @description Imported by an earlier run: nothing to do. */
|
|
261364
261381
|
already: number;
|
|
261365
261382
|
skip: number;
|
|
261366
|
-
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (
|
|
261383
|
+
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (the line names no account at all; a line Chipax books on its «no account» bucket, cuenta_corriente_id 0, lands on a manual account «Chipax: movimientos sin cuenta bancaria» since 2026-11-03), bank_account_not_imported, currency_unsupported, unreadable, ingest_failed, usd_rate_missing (no dólar observado for the day: that line alone). */
|
|
261367
261384
|
skip_reasons: {
|
|
261368
261385
|
[key: string]: number;
|
|
261369
261386
|
};
|
|
@@ -261379,13 +261396,30 @@ interface components {
|
|
|
261379
261396
|
/** @description Imported by an earlier run: nothing to do. */
|
|
261380
261397
|
already: number;
|
|
261381
261398
|
skip: number;
|
|
261382
|
-
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (
|
|
261399
|
+
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (the line names no account at all; a line Chipax books on its «no account» bucket, cuenta_corriente_id 0, lands on a manual account «Chipax: movimientos sin cuenta bancaria» since 2026-11-03), bank_account_not_imported, currency_unsupported, unreadable, ingest_failed, usd_rate_missing (no dólar observado for the day: that line alone). */
|
|
261383
261400
|
skip_reasons: {
|
|
261384
261401
|
[key: string]: number;
|
|
261385
261402
|
};
|
|
261386
261403
|
/** @description Documents whose Chipax amounts were spread over the document total (Chipax classified the net). */
|
|
261387
261404
|
scaled: number;
|
|
261405
|
+
/** @description Facturas Chipax classified only in part: Vitrina takes exactly the classified amounts and leaves the rest unclassified (it surfaces in Por resolver). Absent on runs before 2026-11-03. */
|
|
261406
|
+
partial?: number;
|
|
261407
|
+
partial_items?: {
|
|
261408
|
+
chipax_ref: string;
|
|
261409
|
+
label: string;
|
|
261410
|
+
total_clp: number;
|
|
261411
|
+
unclassified_clp: number;
|
|
261412
|
+
}[];
|
|
261388
261413
|
};
|
|
261414
|
+
/** @description Every nota de crédito of sales and how it got its accounts: summary = Chipax hangs it on a monthly boleta summary (it takes the summary's income accounts); boleta_reference = it references a boleta (the summary of that month); none = neither, left unclassified («Ingresos sin clasificar»). Absent on runs before 2026-11-03. */
|
|
261415
|
+
credit_notes?: {
|
|
261416
|
+
chipax_ref: string;
|
|
261417
|
+
folio: string | null;
|
|
261418
|
+
day: string;
|
|
261419
|
+
amount_clp: number;
|
|
261420
|
+
/** @enum {string} */
|
|
261421
|
+
path: "summary" | "boleta_reference" | "none";
|
|
261422
|
+
}[];
|
|
261389
261423
|
links: {
|
|
261390
261424
|
/** @description New in Vitrina (dry run: would be created). */
|
|
261391
261425
|
create: number;
|
|
@@ -261394,7 +261428,7 @@ interface components {
|
|
|
261394
261428
|
/** @description Imported by an earlier run: nothing to do. */
|
|
261395
261429
|
already: number;
|
|
261396
261430
|
skip: number;
|
|
261397
|
-
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (
|
|
261431
|
+
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (the line names no account at all; a line Chipax books on its «no account» bucket, cuenta_corriente_id 0, lands on a manual account «Chipax: movimientos sin cuenta bancaria» since 2026-11-03), bank_account_not_imported, currency_unsupported, unreadable, ingest_failed, usd_rate_missing (no dólar observado for the day: that line alone). */
|
|
261398
261432
|
skip_reasons: {
|
|
261399
261433
|
[key: string]: number;
|
|
261400
261434
|
};
|
|
@@ -261407,7 +261441,7 @@ interface components {
|
|
|
261407
261441
|
/** @description Imported by an earlier run: nothing to do. */
|
|
261408
261442
|
already: number;
|
|
261409
261443
|
skip: number;
|
|
261410
|
-
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (
|
|
261444
|
+
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (the line names no account at all; a line Chipax books on its «no account» bucket, cuenta_corriente_id 0, lands on a manual account «Chipax: movimientos sin cuenta bancaria» since 2026-11-03), bank_account_not_imported, currency_unsupported, unreadable, ingest_failed, usd_rate_missing (no dólar observado for the day: that line alone). */
|
|
261411
261445
|
skip_reasons: {
|
|
261412
261446
|
[key: string]: number;
|
|
261413
261447
|
};
|
|
@@ -261420,7 +261454,7 @@ interface components {
|
|
|
261420
261454
|
/** @description Imported by an earlier run: nothing to do. */
|
|
261421
261455
|
already: number;
|
|
261422
261456
|
skip: number;
|
|
261423
|
-
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (
|
|
261457
|
+
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (the line names no account at all; a line Chipax books on its «no account» bucket, cuenta_corriente_id 0, lands on a manual account «Chipax: movimientos sin cuenta bancaria» since 2026-11-03), bank_account_not_imported, currency_unsupported, unreadable, ingest_failed, usd_rate_missing (no dólar observado for the day: that line alone). */
|
|
261424
261458
|
skip_reasons: {
|
|
261425
261459
|
[key: string]: number;
|
|
261426
261460
|
};
|
|
@@ -261441,7 +261475,7 @@ interface components {
|
|
|
261441
261475
|
/** @description Imported by an earlier run: nothing to do. */
|
|
261442
261476
|
already: number;
|
|
261443
261477
|
skip: number;
|
|
261444
|
-
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (
|
|
261478
|
+
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (the line names no account at all; a line Chipax books on its «no account» bucket, cuenta_corriente_id 0, lands on a manual account «Chipax: movimientos sin cuenta bancaria» since 2026-11-03), bank_account_not_imported, currency_unsupported, unreadable, ingest_failed, usd_rate_missing (no dólar observado for the day: that line alone). */
|
|
261445
261479
|
skip_reasons: {
|
|
261446
261480
|
[key: string]: number;
|
|
261447
261481
|
};
|
|
@@ -261459,7 +261493,7 @@ interface components {
|
|
|
261459
261493
|
/** @description Imported by an earlier run: nothing to do. */
|
|
261460
261494
|
already: number;
|
|
261461
261495
|
skip: number;
|
|
261462
|
-
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (
|
|
261496
|
+
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (the line names no account at all; a line Chipax books on its «no account» bucket, cuenta_corriente_id 0, lands on a manual account «Chipax: movimientos sin cuenta bancaria» since 2026-11-03), bank_account_not_imported, currency_unsupported, unreadable, ingest_failed, usd_rate_missing (no dólar observado for the day: that line alone). */
|
|
261463
261497
|
skip_reasons: {
|
|
261464
261498
|
[key: string]: number;
|
|
261465
261499
|
};
|
|
@@ -261473,7 +261507,7 @@ interface components {
|
|
|
261473
261507
|
/** @description Imported by an earlier run: nothing to do. */
|
|
261474
261508
|
already: number;
|
|
261475
261509
|
skip: number;
|
|
261476
|
-
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (
|
|
261510
|
+
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (the line names no account at all; a line Chipax books on its «no account» bucket, cuenta_corriente_id 0, lands on a manual account «Chipax: movimientos sin cuenta bancaria» since 2026-11-03), bank_account_not_imported, currency_unsupported, unreadable, ingest_failed, usd_rate_missing (no dólar observado for the day: that line alone). */
|
|
261477
261511
|
skip_reasons: {
|
|
261478
261512
|
[key: string]: number;
|
|
261479
261513
|
};
|
|
@@ -261505,11 +261539,24 @@ interface components {
|
|
|
261505
261539
|
/** @description Imported by an earlier run: nothing to do. */
|
|
261506
261540
|
already: number;
|
|
261507
261541
|
skip: number;
|
|
261508
|
-
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (
|
|
261542
|
+
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (the line names no account at all; a line Chipax books on its «no account» bucket, cuenta_corriente_id 0, lands on a manual account «Chipax: movimientos sin cuenta bancaria» since 2026-11-03), bank_account_not_imported, currency_unsupported, unreadable, ingest_failed, usd_rate_missing (no dólar observado for the day: that line alone). */
|
|
261509
261543
|
skip_reasons: {
|
|
261510
261544
|
[key: string]: number;
|
|
261511
261545
|
};
|
|
261512
261546
|
};
|
|
261547
|
+
/** @description Chipax's USD lines (a dollar card) and their CLP at each day's dólar observado, a dry run included. The rate cache is filled first, one mindicador call per year; a day still without a rate fails that line alone (skip reason usd_rate_missing). Absent when there are none, and on runs before 2026-11-03. */
|
|
261548
|
+
usd_movements?: {
|
|
261549
|
+
lines: number;
|
|
261550
|
+
converted: number;
|
|
261551
|
+
failed: number;
|
|
261552
|
+
/** @description In cents. */
|
|
261553
|
+
usd_total: number;
|
|
261554
|
+
clp_total: number;
|
|
261555
|
+
rate_years: {
|
|
261556
|
+
[key: string]: "cached" | "fetched" | "failed";
|
|
261557
|
+
};
|
|
261558
|
+
missing_days: string[];
|
|
261559
|
+
};
|
|
261513
261560
|
unmapped: {
|
|
261514
261561
|
/** @enum {string} */
|
|
261515
261562
|
type: "account" | "document" | "link" | "classification";
|
|
@@ -261519,7 +261566,14 @@ interface components {
|
|
|
261519
261566
|
}[];
|
|
261520
261567
|
totals_check: {
|
|
261521
261568
|
available: boolean;
|
|
261569
|
+
/** @description Rows with a difference no reason covers. */
|
|
261522
261570
|
mismatches: number;
|
|
261571
|
+
/** @description Rows whose whole difference has a reason. Absent on runs before 2026-11-03. */
|
|
261572
|
+
explained?: number;
|
|
261573
|
+
/** @description The explained pesos per reason over every row. Absent on runs before 2026-11-03. */
|
|
261574
|
+
explained_by_code?: {
|
|
261575
|
+
[key: string]: number;
|
|
261576
|
+
};
|
|
261523
261577
|
rows: {
|
|
261524
261578
|
chipax_account: number;
|
|
261525
261579
|
account_id: string | null;
|
|
@@ -261528,8 +261582,24 @@ interface components {
|
|
|
261528
261582
|
chipax_clp: number;
|
|
261529
261583
|
/** @description What Chipax classified on the documents now classified in Vitrina. */
|
|
261530
261584
|
imported_chipax_clp: number;
|
|
261531
|
-
/** @description Vitrina
|
|
261585
|
+
/** @description What Vitrina will book in that account and month for those documents, at the Resultado basis: net of IVA, a nota de crédito subtracts (runs before 2026-11-03: the lines on the document total). */
|
|
261532
261586
|
vitrina_clp: number;
|
|
261587
|
+
/** @description vitrina_clp − chipax_clp. Absent on runs before 2026-11-03. */
|
|
261588
|
+
difference_clp?: number;
|
|
261589
|
+
/** @description The explained part of the difference, per reason: boletas_sin_nota_de_venta (a boleta summary books the month's boletas; Chipax's RO counts only its notas de venta), nota_de_credito_de_boletas (a nota de crédito of boletas subtracts in Vitrina; Chipax's RO leaves it out), redondeo (a split line prorated to the net books at most ±1 peso off Chipax). Absent on runs before 2026-11-03. */
|
|
261590
|
+
explanations?: {
|
|
261591
|
+
/** @enum {string} */
|
|
261592
|
+
code: "boletas_sin_nota_de_venta" | "nota_de_credito_de_boletas" | "redondeo";
|
|
261593
|
+
amount_clp: number;
|
|
261594
|
+
}[];
|
|
261595
|
+
/** @description The part of the difference no reason covers. Absent on runs before 2026-11-03. */
|
|
261596
|
+
unexplained_clp?: number;
|
|
261597
|
+
/**
|
|
261598
|
+
* @description match = no difference; explained = every peso of the difference has a reason; mismatch = some does not. Absent on runs before 2026-11-03.
|
|
261599
|
+
* @enum {string}
|
|
261600
|
+
*/
|
|
261601
|
+
status?: "match" | "explained" | "mismatch";
|
|
261602
|
+
/** @description No unexplained peso (status is not mismatch). */
|
|
261533
261603
|
matches: boolean;
|
|
261534
261604
|
}[];
|
|
261535
261605
|
/** @description Account × month rows left out of the check: balance accounts (activo, pasivo, patrimonio), which Chipax's Resultado Operacional does not cover. Absent on runs before 2026-11-02. */
|
package/dist/index.d.ts
CHANGED
|
@@ -86189,24 +86189,41 @@ interface paths {
|
|
|
86189
86189
|
* "totals_check": {
|
|
86190
86190
|
* "available": true,
|
|
86191
86191
|
* "mismatches": 1,
|
|
86192
|
+
* "explained": 1,
|
|
86193
|
+
* "explained_by_code": {
|
|
86194
|
+
* "redondeo": -1
|
|
86195
|
+
* },
|
|
86192
86196
|
* "rows": [
|
|
86193
86197
|
* {
|
|
86194
|
-
* "chipax_account": 5101,
|
|
86195
|
-
* "account_id": "0190a3c2-5d1e-7b6a-9f20-4c1d2e3f4c11",
|
|
86196
|
-
* "month": "2026-09",
|
|
86197
|
-
* "chipax_clp": 2380000,
|
|
86198
|
-
* "imported_chipax_clp": 2380000,
|
|
86199
|
-
* "vitrina_clp": 2832200,
|
|
86200
|
-
* "matches": true
|
|
86201
|
-
* },
|
|
86202
|
-
* {
|
|
86203
86198
|
* "chipax_account": 5110,
|
|
86204
86199
|
* "account_id": null,
|
|
86205
86200
|
* "month": "2026-09",
|
|
86206
86201
|
* "chipax_clp": 6120000,
|
|
86207
86202
|
* "imported_chipax_clp": 0,
|
|
86208
86203
|
* "vitrina_clp": 0,
|
|
86204
|
+
* "difference_clp": -6120000,
|
|
86205
|
+
* "explanations": [],
|
|
86206
|
+
* "unexplained_clp": -6120000,
|
|
86207
|
+
* "status": "mismatch",
|
|
86209
86208
|
* "matches": false
|
|
86209
|
+
* },
|
|
86210
|
+
* {
|
|
86211
|
+
* "chipax_account": 5101,
|
|
86212
|
+
* "account_id": "0190a3c2-5d1e-7b6a-9f20-4c1d2e3f4c11",
|
|
86213
|
+
* "month": "2026-09",
|
|
86214
|
+
* "chipax_clp": 2380000,
|
|
86215
|
+
* "imported_chipax_clp": 2380000,
|
|
86216
|
+
* "vitrina_clp": 2379999,
|
|
86217
|
+
* "difference_clp": -1,
|
|
86218
|
+
* "explanations": [
|
|
86219
|
+
* {
|
|
86220
|
+
* "code": "redondeo",
|
|
86221
|
+
* "amount_clp": -1
|
|
86222
|
+
* }
|
|
86223
|
+
* ],
|
|
86224
|
+
* "unexplained_clp": 0,
|
|
86225
|
+
* "status": "explained",
|
|
86226
|
+
* "matches": true
|
|
86210
86227
|
* }
|
|
86211
86228
|
* ]
|
|
86212
86229
|
* },
|
|
@@ -261306,7 +261323,7 @@ interface components {
|
|
|
261306
261323
|
/** @description Imported by an earlier run: nothing to do. */
|
|
261307
261324
|
already: number;
|
|
261308
261325
|
skip: number;
|
|
261309
|
-
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (
|
|
261326
|
+
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (the line names no account at all; a line Chipax books on its «no account» bucket, cuenta_corriente_id 0, lands on a manual account «Chipax: movimientos sin cuenta bancaria» since 2026-11-03), bank_account_not_imported, currency_unsupported, unreadable, ingest_failed, usd_rate_missing (no dólar observado for the day: that line alone). */
|
|
261310
261327
|
skip_reasons: {
|
|
261311
261328
|
[key: string]: number;
|
|
261312
261329
|
};
|
|
@@ -261350,7 +261367,7 @@ interface components {
|
|
|
261350
261367
|
/** @description Imported by an earlier run: nothing to do. */
|
|
261351
261368
|
already: number;
|
|
261352
261369
|
skip: number;
|
|
261353
|
-
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (
|
|
261370
|
+
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (the line names no account at all; a line Chipax books on its «no account» bucket, cuenta_corriente_id 0, lands on a manual account «Chipax: movimientos sin cuenta bancaria» since 2026-11-03), bank_account_not_imported, currency_unsupported, unreadable, ingest_failed, usd_rate_missing (no dólar observado for the day: that line alone). */
|
|
261354
261371
|
skip_reasons: {
|
|
261355
261372
|
[key: string]: number;
|
|
261356
261373
|
};
|
|
@@ -261363,7 +261380,7 @@ interface components {
|
|
|
261363
261380
|
/** @description Imported by an earlier run: nothing to do. */
|
|
261364
261381
|
already: number;
|
|
261365
261382
|
skip: number;
|
|
261366
|
-
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (
|
|
261383
|
+
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (the line names no account at all; a line Chipax books on its «no account» bucket, cuenta_corriente_id 0, lands on a manual account «Chipax: movimientos sin cuenta bancaria» since 2026-11-03), bank_account_not_imported, currency_unsupported, unreadable, ingest_failed, usd_rate_missing (no dólar observado for the day: that line alone). */
|
|
261367
261384
|
skip_reasons: {
|
|
261368
261385
|
[key: string]: number;
|
|
261369
261386
|
};
|
|
@@ -261379,13 +261396,30 @@ interface components {
|
|
|
261379
261396
|
/** @description Imported by an earlier run: nothing to do. */
|
|
261380
261397
|
already: number;
|
|
261381
261398
|
skip: number;
|
|
261382
|
-
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (
|
|
261399
|
+
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (the line names no account at all; a line Chipax books on its «no account» bucket, cuenta_corriente_id 0, lands on a manual account «Chipax: movimientos sin cuenta bancaria» since 2026-11-03), bank_account_not_imported, currency_unsupported, unreadable, ingest_failed, usd_rate_missing (no dólar observado for the day: that line alone). */
|
|
261383
261400
|
skip_reasons: {
|
|
261384
261401
|
[key: string]: number;
|
|
261385
261402
|
};
|
|
261386
261403
|
/** @description Documents whose Chipax amounts were spread over the document total (Chipax classified the net). */
|
|
261387
261404
|
scaled: number;
|
|
261405
|
+
/** @description Facturas Chipax classified only in part: Vitrina takes exactly the classified amounts and leaves the rest unclassified (it surfaces in Por resolver). Absent on runs before 2026-11-03. */
|
|
261406
|
+
partial?: number;
|
|
261407
|
+
partial_items?: {
|
|
261408
|
+
chipax_ref: string;
|
|
261409
|
+
label: string;
|
|
261410
|
+
total_clp: number;
|
|
261411
|
+
unclassified_clp: number;
|
|
261412
|
+
}[];
|
|
261388
261413
|
};
|
|
261414
|
+
/** @description Every nota de crédito of sales and how it got its accounts: summary = Chipax hangs it on a monthly boleta summary (it takes the summary's income accounts); boleta_reference = it references a boleta (the summary of that month); none = neither, left unclassified («Ingresos sin clasificar»). Absent on runs before 2026-11-03. */
|
|
261415
|
+
credit_notes?: {
|
|
261416
|
+
chipax_ref: string;
|
|
261417
|
+
folio: string | null;
|
|
261418
|
+
day: string;
|
|
261419
|
+
amount_clp: number;
|
|
261420
|
+
/** @enum {string} */
|
|
261421
|
+
path: "summary" | "boleta_reference" | "none";
|
|
261422
|
+
}[];
|
|
261389
261423
|
links: {
|
|
261390
261424
|
/** @description New in Vitrina (dry run: would be created). */
|
|
261391
261425
|
create: number;
|
|
@@ -261394,7 +261428,7 @@ interface components {
|
|
|
261394
261428
|
/** @description Imported by an earlier run: nothing to do. */
|
|
261395
261429
|
already: number;
|
|
261396
261430
|
skip: number;
|
|
261397
|
-
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (
|
|
261431
|
+
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (the line names no account at all; a line Chipax books on its «no account» bucket, cuenta_corriente_id 0, lands on a manual account «Chipax: movimientos sin cuenta bancaria» since 2026-11-03), bank_account_not_imported, currency_unsupported, unreadable, ingest_failed, usd_rate_missing (no dólar observado for the day: that line alone). */
|
|
261398
261432
|
skip_reasons: {
|
|
261399
261433
|
[key: string]: number;
|
|
261400
261434
|
};
|
|
@@ -261407,7 +261441,7 @@ interface components {
|
|
|
261407
261441
|
/** @description Imported by an earlier run: nothing to do. */
|
|
261408
261442
|
already: number;
|
|
261409
261443
|
skip: number;
|
|
261410
|
-
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (
|
|
261444
|
+
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (the line names no account at all; a line Chipax books on its «no account» bucket, cuenta_corriente_id 0, lands on a manual account «Chipax: movimientos sin cuenta bancaria» since 2026-11-03), bank_account_not_imported, currency_unsupported, unreadable, ingest_failed, usd_rate_missing (no dólar observado for the day: that line alone). */
|
|
261411
261445
|
skip_reasons: {
|
|
261412
261446
|
[key: string]: number;
|
|
261413
261447
|
};
|
|
@@ -261420,7 +261454,7 @@ interface components {
|
|
|
261420
261454
|
/** @description Imported by an earlier run: nothing to do. */
|
|
261421
261455
|
already: number;
|
|
261422
261456
|
skip: number;
|
|
261423
|
-
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (
|
|
261457
|
+
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (the line names no account at all; a line Chipax books on its «no account» bucket, cuenta_corriente_id 0, lands on a manual account «Chipax: movimientos sin cuenta bancaria» since 2026-11-03), bank_account_not_imported, currency_unsupported, unreadable, ingest_failed, usd_rate_missing (no dólar observado for the day: that line alone). */
|
|
261424
261458
|
skip_reasons: {
|
|
261425
261459
|
[key: string]: number;
|
|
261426
261460
|
};
|
|
@@ -261441,7 +261475,7 @@ interface components {
|
|
|
261441
261475
|
/** @description Imported by an earlier run: nothing to do. */
|
|
261442
261476
|
already: number;
|
|
261443
261477
|
skip: number;
|
|
261444
|
-
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (
|
|
261478
|
+
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (the line names no account at all; a line Chipax books on its «no account» bucket, cuenta_corriente_id 0, lands on a manual account «Chipax: movimientos sin cuenta bancaria» since 2026-11-03), bank_account_not_imported, currency_unsupported, unreadable, ingest_failed, usd_rate_missing (no dólar observado for the day: that line alone). */
|
|
261445
261479
|
skip_reasons: {
|
|
261446
261480
|
[key: string]: number;
|
|
261447
261481
|
};
|
|
@@ -261459,7 +261493,7 @@ interface components {
|
|
|
261459
261493
|
/** @description Imported by an earlier run: nothing to do. */
|
|
261460
261494
|
already: number;
|
|
261461
261495
|
skip: number;
|
|
261462
|
-
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (
|
|
261496
|
+
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (the line names no account at all; a line Chipax books on its «no account» bucket, cuenta_corriente_id 0, lands on a manual account «Chipax: movimientos sin cuenta bancaria» since 2026-11-03), bank_account_not_imported, currency_unsupported, unreadable, ingest_failed, usd_rate_missing (no dólar observado for the day: that line alone). */
|
|
261463
261497
|
skip_reasons: {
|
|
261464
261498
|
[key: string]: number;
|
|
261465
261499
|
};
|
|
@@ -261473,7 +261507,7 @@ interface components {
|
|
|
261473
261507
|
/** @description Imported by an earlier run: nothing to do. */
|
|
261474
261508
|
already: number;
|
|
261475
261509
|
skip: number;
|
|
261476
|
-
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (
|
|
261510
|
+
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (the line names no account at all; a line Chipax books on its «no account» bucket, cuenta_corriente_id 0, lands on a manual account «Chipax: movimientos sin cuenta bancaria» since 2026-11-03), bank_account_not_imported, currency_unsupported, unreadable, ingest_failed, usd_rate_missing (no dólar observado for the day: that line alone). */
|
|
261477
261511
|
skip_reasons: {
|
|
261478
261512
|
[key: string]: number;
|
|
261479
261513
|
};
|
|
@@ -261505,11 +261539,24 @@ interface components {
|
|
|
261505
261539
|
/** @description Imported by an earlier run: nothing to do. */
|
|
261506
261540
|
already: number;
|
|
261507
261541
|
skip: number;
|
|
261508
|
-
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (
|
|
261542
|
+
/** @description Why: unmapped_account, ambiguous, no_categories, voided, classified_in_vitrina (a person already classified it: kept), company_rut_unknown (connect the SII first), movement_not_found (the bank movement is not in Vitrina: connect the bank or upload the cartola), movement_ambiguous, document_not_imported, direction_mismatch, nothing_open, movement_to_income, linked_to_another_contraparte, rut_is_another_contraparte, non_positive, chosen_skip; bank movements: no_bank_account (the line names no account at all; a line Chipax books on its «no account» bucket, cuenta_corriente_id 0, lands on a manual account «Chipax: movimientos sin cuenta bancaria» since 2026-11-03), bank_account_not_imported, currency_unsupported, unreadable, ingest_failed, usd_rate_missing (no dólar observado for the day: that line alone). */
|
|
261509
261543
|
skip_reasons: {
|
|
261510
261544
|
[key: string]: number;
|
|
261511
261545
|
};
|
|
261512
261546
|
};
|
|
261547
|
+
/** @description Chipax's USD lines (a dollar card) and their CLP at each day's dólar observado, a dry run included. The rate cache is filled first, one mindicador call per year; a day still without a rate fails that line alone (skip reason usd_rate_missing). Absent when there are none, and on runs before 2026-11-03. */
|
|
261548
|
+
usd_movements?: {
|
|
261549
|
+
lines: number;
|
|
261550
|
+
converted: number;
|
|
261551
|
+
failed: number;
|
|
261552
|
+
/** @description In cents. */
|
|
261553
|
+
usd_total: number;
|
|
261554
|
+
clp_total: number;
|
|
261555
|
+
rate_years: {
|
|
261556
|
+
[key: string]: "cached" | "fetched" | "failed";
|
|
261557
|
+
};
|
|
261558
|
+
missing_days: string[];
|
|
261559
|
+
};
|
|
261513
261560
|
unmapped: {
|
|
261514
261561
|
/** @enum {string} */
|
|
261515
261562
|
type: "account" | "document" | "link" | "classification";
|
|
@@ -261519,7 +261566,14 @@ interface components {
|
|
|
261519
261566
|
}[];
|
|
261520
261567
|
totals_check: {
|
|
261521
261568
|
available: boolean;
|
|
261569
|
+
/** @description Rows with a difference no reason covers. */
|
|
261522
261570
|
mismatches: number;
|
|
261571
|
+
/** @description Rows whose whole difference has a reason. Absent on runs before 2026-11-03. */
|
|
261572
|
+
explained?: number;
|
|
261573
|
+
/** @description The explained pesos per reason over every row. Absent on runs before 2026-11-03. */
|
|
261574
|
+
explained_by_code?: {
|
|
261575
|
+
[key: string]: number;
|
|
261576
|
+
};
|
|
261523
261577
|
rows: {
|
|
261524
261578
|
chipax_account: number;
|
|
261525
261579
|
account_id: string | null;
|
|
@@ -261528,8 +261582,24 @@ interface components {
|
|
|
261528
261582
|
chipax_clp: number;
|
|
261529
261583
|
/** @description What Chipax classified on the documents now classified in Vitrina. */
|
|
261530
261584
|
imported_chipax_clp: number;
|
|
261531
|
-
/** @description Vitrina
|
|
261585
|
+
/** @description What Vitrina will book in that account and month for those documents, at the Resultado basis: net of IVA, a nota de crédito subtracts (runs before 2026-11-03: the lines on the document total). */
|
|
261532
261586
|
vitrina_clp: number;
|
|
261587
|
+
/** @description vitrina_clp − chipax_clp. Absent on runs before 2026-11-03. */
|
|
261588
|
+
difference_clp?: number;
|
|
261589
|
+
/** @description The explained part of the difference, per reason: boletas_sin_nota_de_venta (a boleta summary books the month's boletas; Chipax's RO counts only its notas de venta), nota_de_credito_de_boletas (a nota de crédito of boletas subtracts in Vitrina; Chipax's RO leaves it out), redondeo (a split line prorated to the net books at most ±1 peso off Chipax). Absent on runs before 2026-11-03. */
|
|
261590
|
+
explanations?: {
|
|
261591
|
+
/** @enum {string} */
|
|
261592
|
+
code: "boletas_sin_nota_de_venta" | "nota_de_credito_de_boletas" | "redondeo";
|
|
261593
|
+
amount_clp: number;
|
|
261594
|
+
}[];
|
|
261595
|
+
/** @description The part of the difference no reason covers. Absent on runs before 2026-11-03. */
|
|
261596
|
+
unexplained_clp?: number;
|
|
261597
|
+
/**
|
|
261598
|
+
* @description match = no difference; explained = every peso of the difference has a reason; mismatch = some does not. Absent on runs before 2026-11-03.
|
|
261599
|
+
* @enum {string}
|
|
261600
|
+
*/
|
|
261601
|
+
status?: "match" | "explained" | "mismatch";
|
|
261602
|
+
/** @description No unexplained peso (status is not mismatch). */
|
|
261533
261603
|
matches: boolean;
|
|
261534
261604
|
}[];
|
|
261535
261605
|
/** @description Account × month rows left out of the check: balance accounts (activo, pasivo, patrimonio), which Chipax's Resultado Operacional does not cover. Absent on runs before 2026-11-02. */
|
package/package.json
CHANGED