@timbro/invoices 0.10.1-next.0 → 0.10.1
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/README.md +2 -2
- package/dist/document-worker-protocol.js +1 -1
- package/dist/fiscal-engine-runtime.manifest.json +83 -63
- package/dist/fiscal-engine-runtime.provenance.json +139 -109
- package/dist/generated/invoice-api-contract.d.ts +0 -33
- package/dist/generated/invoice-api-contract.d.ts.map +1 -1
- package/dist/generated/invoice-api-contract.js +0 -33
- package/dist/generated/types.gen.d.ts +10 -27
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/generated/zod-response.gen.d.ts +8 -0
- package/dist/generated/zod-response.gen.d.ts.map +1 -1
- package/dist/generated/zod-response.gen.js +1 -0
- package/dist/generated/zod.gen.d.ts +173 -3
- package/dist/generated/zod.gen.d.ts.map +1 -1
- package/dist/generated/zod.gen.js +2 -3
- package/dist/timbro_fiscal_engine_bg.wasm +0 -0
- package/package.json +1 -1
|
@@ -1821,7 +1821,6 @@ export const invoiceApiContract = {
|
|
|
1821
1821
|
oneOf: [
|
|
1822
1822
|
{
|
|
1823
1823
|
type: "object",
|
|
1824
|
-
title: "AnonymousBuyer",
|
|
1825
1824
|
required: ["kind"],
|
|
1826
1825
|
properties: {
|
|
1827
1826
|
kind: {
|
|
@@ -1833,7 +1832,6 @@ export const invoiceApiContract = {
|
|
|
1833
1832
|
},
|
|
1834
1833
|
{
|
|
1835
1834
|
type: "object",
|
|
1836
|
-
title: "DomesticBuyer",
|
|
1837
1835
|
required: ["taxId", "legalName", "kind"],
|
|
1838
1836
|
properties: {
|
|
1839
1837
|
kind: {
|
|
@@ -1857,7 +1855,6 @@ export const invoiceApiContract = {
|
|
|
1857
1855
|
},
|
|
1858
1856
|
{
|
|
1859
1857
|
type: "object",
|
|
1860
|
-
title: "ForeignBuyer",
|
|
1861
1858
|
required: ["foreignId", "legalName", "kind"],
|
|
1862
1859
|
properties: {
|
|
1863
1860
|
foreignId: {
|
|
@@ -1909,7 +1906,6 @@ export const invoiceApiContract = {
|
|
|
1909
1906
|
oneOf: [
|
|
1910
1907
|
{
|
|
1911
1908
|
type: "object",
|
|
1912
|
-
title: "NotApplicableReadiness",
|
|
1913
1909
|
required: ["status"],
|
|
1914
1910
|
properties: {
|
|
1915
1911
|
status: {
|
|
@@ -2333,7 +2329,6 @@ export const invoiceApiContract = {
|
|
|
2333
2329
|
},
|
|
2334
2330
|
{
|
|
2335
2331
|
type: "object",
|
|
2336
|
-
title: "ZeroRatedTax",
|
|
2337
2332
|
required: ["kind"],
|
|
2338
2333
|
properties: {
|
|
2339
2334
|
kind: {
|
|
@@ -2345,7 +2340,6 @@ export const invoiceApiContract = {
|
|
|
2345
2340
|
},
|
|
2346
2341
|
{
|
|
2347
2342
|
type: "object",
|
|
2348
|
-
title: "ExemptTax",
|
|
2349
2343
|
required: ["kind"],
|
|
2350
2344
|
properties: {
|
|
2351
2345
|
kind: {
|
|
@@ -2451,7 +2445,6 @@ export const invoiceApiContract = {
|
|
|
2451
2445
|
},
|
|
2452
2446
|
{
|
|
2453
2447
|
type: "object",
|
|
2454
|
-
title: "CreditPaymentTerms",
|
|
2455
2448
|
required: ["dueOn", "type"],
|
|
2456
2449
|
properties: {
|
|
2457
2450
|
dueOn: {
|
|
@@ -2469,7 +2462,6 @@ export const invoiceApiContract = {
|
|
|
2469
2462
|
},
|
|
2470
2463
|
{
|
|
2471
2464
|
type: "object",
|
|
2472
|
-
title: "FreePaymentTerms",
|
|
2473
2465
|
required: ["type"],
|
|
2474
2466
|
properties: {
|
|
2475
2467
|
type: {
|
|
@@ -5314,7 +5306,6 @@ export const invoiceApiContract = {
|
|
|
5314
5306
|
oneOf: [
|
|
5315
5307
|
{
|
|
5316
5308
|
type: "object",
|
|
5317
|
-
title: "NotApplicableReadiness",
|
|
5318
5309
|
required: ["status"],
|
|
5319
5310
|
properties: {
|
|
5320
5311
|
status: {
|
|
@@ -5518,7 +5509,6 @@ export const invoiceApiContract = {
|
|
|
5518
5509
|
oneOf: [
|
|
5519
5510
|
{
|
|
5520
5511
|
type: "object",
|
|
5521
|
-
title: "NotApplicableReadiness",
|
|
5522
5512
|
required: ["status"],
|
|
5523
5513
|
properties: {
|
|
5524
5514
|
status: {
|
|
@@ -5530,7 +5520,6 @@ export const invoiceApiContract = {
|
|
|
5530
5520
|
},
|
|
5531
5521
|
{
|
|
5532
5522
|
type: "object",
|
|
5533
|
-
title: "PendingStatus",
|
|
5534
5523
|
required: ["status"],
|
|
5535
5524
|
properties: {
|
|
5536
5525
|
status: {
|
|
@@ -9402,7 +9391,6 @@ export const invoiceApiContract = {
|
|
|
9402
9391
|
},
|
|
9403
9392
|
{
|
|
9404
9393
|
type: "object",
|
|
9405
|
-
title: "CreditPaymentTerms",
|
|
9406
9394
|
required: ["dueOn", "type"],
|
|
9407
9395
|
properties: {
|
|
9408
9396
|
dueOn: {
|
|
@@ -9420,7 +9408,6 @@ export const invoiceApiContract = {
|
|
|
9420
9408
|
},
|
|
9421
9409
|
{
|
|
9422
9410
|
type: "object",
|
|
9423
|
-
title: "FreePaymentTerms",
|
|
9424
9411
|
required: ["type"],
|
|
9425
9412
|
properties: {
|
|
9426
9413
|
type: {
|
|
@@ -9461,7 +9448,6 @@ export const invoiceApiContract = {
|
|
|
9461
9448
|
oneOf: [
|
|
9462
9449
|
{
|
|
9463
9450
|
type: "object",
|
|
9464
|
-
title: "DomesticBuyer",
|
|
9465
9451
|
required: ["taxId", "legalName", "kind"],
|
|
9466
9452
|
properties: {
|
|
9467
9453
|
kind: {
|
|
@@ -9485,7 +9471,6 @@ export const invoiceApiContract = {
|
|
|
9485
9471
|
},
|
|
9486
9472
|
{
|
|
9487
9473
|
type: "object",
|
|
9488
|
-
title: "ForeignBuyer",
|
|
9489
9474
|
required: ["foreignId", "legalName", "kind"],
|
|
9490
9475
|
properties: {
|
|
9491
9476
|
foreignId: {
|
|
@@ -9613,7 +9598,6 @@ export const invoiceApiContract = {
|
|
|
9613
9598
|
},
|
|
9614
9599
|
{
|
|
9615
9600
|
type: "object",
|
|
9616
|
-
title: "ZeroRatedTax",
|
|
9617
9601
|
required: ["kind"],
|
|
9618
9602
|
properties: {
|
|
9619
9603
|
kind: {
|
|
@@ -9625,7 +9609,6 @@ export const invoiceApiContract = {
|
|
|
9625
9609
|
},
|
|
9626
9610
|
{
|
|
9627
9611
|
type: "object",
|
|
9628
|
-
title: "ExemptTax",
|
|
9629
9612
|
required: ["kind"],
|
|
9630
9613
|
properties: {
|
|
9631
9614
|
kind: {
|
|
@@ -9835,7 +9818,6 @@ export const invoiceApiContract = {
|
|
|
9835
9818
|
oneOf: [
|
|
9836
9819
|
{
|
|
9837
9820
|
type: "object",
|
|
9838
|
-
title: "ImmediatePaymentTerms",
|
|
9839
9821
|
required: ["type"],
|
|
9840
9822
|
properties: {
|
|
9841
9823
|
type: {
|
|
@@ -9847,7 +9829,6 @@ export const invoiceApiContract = {
|
|
|
9847
9829
|
},
|
|
9848
9830
|
{
|
|
9849
9831
|
type: "object",
|
|
9850
|
-
title: "FreePaymentTerms",
|
|
9851
9832
|
required: ["type"],
|
|
9852
9833
|
properties: {
|
|
9853
9834
|
type: {
|
|
@@ -9955,7 +9936,6 @@ export const invoiceApiContract = {
|
|
|
9955
9936
|
oneOf: [
|
|
9956
9937
|
{
|
|
9957
9938
|
type: "object",
|
|
9958
|
-
title: "DomesticBuyer",
|
|
9959
9939
|
required: ["taxId", "legalName", "kind"],
|
|
9960
9940
|
properties: {
|
|
9961
9941
|
kind: {
|
|
@@ -10147,7 +10127,6 @@ export const invoiceApiContract = {
|
|
|
10147
10127
|
oneOf: [
|
|
10148
10128
|
{
|
|
10149
10129
|
type: "object",
|
|
10150
|
-
title: "ForeignBuyer",
|
|
10151
10130
|
required: ["foreignId", "legalName", "kind"],
|
|
10152
10131
|
properties: {
|
|
10153
10132
|
foreignId: {
|
|
@@ -10289,7 +10268,6 @@ export const invoiceApiContract = {
|
|
|
10289
10268
|
oneOf: [
|
|
10290
10269
|
{
|
|
10291
10270
|
type: "object",
|
|
10292
|
-
title: "ImmediatePaymentTerms",
|
|
10293
10271
|
required: ["type"],
|
|
10294
10272
|
properties: {
|
|
10295
10273
|
type: {
|
|
@@ -10301,7 +10279,6 @@ export const invoiceApiContract = {
|
|
|
10301
10279
|
},
|
|
10302
10280
|
{
|
|
10303
10281
|
type: "object",
|
|
10304
|
-
title: "CreditPaymentTerms",
|
|
10305
10282
|
required: ["dueOn", "type"],
|
|
10306
10283
|
properties: {
|
|
10307
10284
|
dueOn: {
|
|
@@ -10319,7 +10296,6 @@ export const invoiceApiContract = {
|
|
|
10319
10296
|
},
|
|
10320
10297
|
{
|
|
10321
10298
|
type: "object",
|
|
10322
|
-
title: "FreePaymentTerms",
|
|
10323
10299
|
required: ["type"],
|
|
10324
10300
|
properties: {
|
|
10325
10301
|
type: {
|
|
@@ -10578,7 +10554,6 @@ export const invoiceApiContract = {
|
|
|
10578
10554
|
},
|
|
10579
10555
|
{
|
|
10580
10556
|
type: "object",
|
|
10581
|
-
title: "PendingStatus",
|
|
10582
10557
|
description: "Received and awaiting the administrator's review.",
|
|
10583
10558
|
required: ["status"],
|
|
10584
10559
|
properties: {
|
|
@@ -10757,7 +10732,6 @@ export const invoiceApiContract = {
|
|
|
10757
10732
|
oneOf: [
|
|
10758
10733
|
{
|
|
10759
10734
|
type: "object",
|
|
10760
|
-
title: "InvoiceAcceptedEvent",
|
|
10761
10735
|
required: [
|
|
10762
10736
|
"data",
|
|
10763
10737
|
"type",
|
|
@@ -10776,7 +10750,6 @@ export const invoiceApiContract = {
|
|
|
10776
10750
|
},
|
|
10777
10751
|
data: {
|
|
10778
10752
|
type: "object",
|
|
10779
|
-
title: "InvoiceEventData",
|
|
10780
10753
|
required: ["id", "sourceConnectionId"],
|
|
10781
10754
|
properties: {
|
|
10782
10755
|
id: {
|
|
@@ -10821,7 +10794,6 @@ export const invoiceApiContract = {
|
|
|
10821
10794
|
},
|
|
10822
10795
|
{
|
|
10823
10796
|
type: "object",
|
|
10824
|
-
title: "InvoiceRejectedEvent",
|
|
10825
10797
|
required: [
|
|
10826
10798
|
"data",
|
|
10827
10799
|
"type",
|
|
@@ -10840,7 +10812,6 @@ export const invoiceApiContract = {
|
|
|
10840
10812
|
},
|
|
10841
10813
|
data: {
|
|
10842
10814
|
type: "object",
|
|
10843
|
-
title: "InvoiceEventData",
|
|
10844
10815
|
required: ["id", "sourceConnectionId"],
|
|
10845
10816
|
properties: {
|
|
10846
10817
|
id: {
|
|
@@ -10885,7 +10856,6 @@ export const invoiceApiContract = {
|
|
|
10885
10856
|
},
|
|
10886
10857
|
{
|
|
10887
10858
|
type: "object",
|
|
10888
|
-
title: "InvoiceOperatorRequiredEvent",
|
|
10889
10859
|
required: [
|
|
10890
10860
|
"data",
|
|
10891
10861
|
"type",
|
|
@@ -10904,7 +10874,6 @@ export const invoiceApiContract = {
|
|
|
10904
10874
|
},
|
|
10905
10875
|
data: {
|
|
10906
10876
|
type: "object",
|
|
10907
|
-
title: "InvoiceEventData",
|
|
10908
10877
|
required: ["id", "sourceConnectionId"],
|
|
10909
10878
|
properties: {
|
|
10910
10879
|
id: {
|
|
@@ -10949,7 +10918,6 @@ export const invoiceApiContract = {
|
|
|
10949
10918
|
},
|
|
10950
10919
|
{
|
|
10951
10920
|
type: "object",
|
|
10952
|
-
title: "InvoiceReadyEvent",
|
|
10953
10921
|
required: [
|
|
10954
10922
|
"data",
|
|
10955
10923
|
"type",
|
|
@@ -10968,7 +10936,6 @@ export const invoiceApiContract = {
|
|
|
10968
10936
|
},
|
|
10969
10937
|
data: {
|
|
10970
10938
|
type: "object",
|
|
10971
|
-
title: "InvoiceEventData",
|
|
10972
10939
|
required: ["id", "sourceConnectionId"],
|
|
10973
10940
|
properties: {
|
|
10974
10941
|
id: {
|
|
@@ -632,6 +632,12 @@ export type FiscalLineWithLegalTip = {
|
|
|
632
632
|
name: string;
|
|
633
633
|
quantity: string;
|
|
634
634
|
source_line_id: string;
|
|
635
|
+
/**
|
|
636
|
+
* `"1"` on an 18% or 16% line whose `unit_price` excludes ITBIS in a document whose
|
|
637
|
+
* `tax_inclusive_amounts` is `"1"`. The evaluator states that line's `MontoItem` and
|
|
638
|
+
* `PrecioUnitarioItem` with ITBIS included.
|
|
639
|
+
*/
|
|
640
|
+
tax_exclusive_unit_price?: "1" | undefined;
|
|
635
641
|
unit_price: string;
|
|
636
642
|
};
|
|
637
643
|
export type FiscalNumberAuthorizationDocumentReadiness = {
|
|
@@ -1104,9 +1110,6 @@ export type InvoiceExpectedTotals = {
|
|
|
1104
1110
|
tax: string;
|
|
1105
1111
|
total: string;
|
|
1106
1112
|
};
|
|
1107
|
-
/**
|
|
1108
|
-
* ForeignBuyer
|
|
1109
|
-
*/
|
|
1110
1113
|
export type InvoiceExportBuyer = {
|
|
1111
1114
|
foreignId: string;
|
|
1112
1115
|
kind: "foreign";
|
|
@@ -1853,36 +1856,24 @@ export type InvoiceTotals = {
|
|
|
1853
1856
|
};
|
|
1854
1857
|
export type InvoiceType = "E31" | "E32" | "E33" | "E34" | "E41" | "E43" | "E44" | "E45" | "E46" | "E47";
|
|
1855
1858
|
export type InvoiceWebhookEvent = {
|
|
1856
|
-
/**
|
|
1857
|
-
* InvoiceEventData
|
|
1858
|
-
*/
|
|
1859
1859
|
data: {
|
|
1860
1860
|
id: string;
|
|
1861
1861
|
sourceConnectionId: string;
|
|
1862
1862
|
};
|
|
1863
1863
|
type: "invoice.accepted";
|
|
1864
1864
|
} | {
|
|
1865
|
-
/**
|
|
1866
|
-
* InvoiceEventData
|
|
1867
|
-
*/
|
|
1868
1865
|
data: {
|
|
1869
1866
|
id: string;
|
|
1870
1867
|
sourceConnectionId: string;
|
|
1871
1868
|
};
|
|
1872
1869
|
type: "invoice.rejected";
|
|
1873
1870
|
} | {
|
|
1874
|
-
/**
|
|
1875
|
-
* InvoiceEventData
|
|
1876
|
-
*/
|
|
1877
1871
|
data: {
|
|
1878
1872
|
id: string;
|
|
1879
1873
|
sourceConnectionId: string;
|
|
1880
1874
|
};
|
|
1881
1875
|
type: "invoice.operatorRequired";
|
|
1882
1876
|
} | {
|
|
1883
|
-
/**
|
|
1884
|
-
* InvoiceEventData
|
|
1885
|
-
*/
|
|
1886
1877
|
data: {
|
|
1887
1878
|
id: string;
|
|
1888
1879
|
sourceConnectionId: string;
|
|
@@ -1891,9 +1882,6 @@ export type InvoiceWebhookEvent = {
|
|
|
1891
1882
|
};
|
|
1892
1883
|
export type InvoiceWebhookEventEnvelope = {
|
|
1893
1884
|
apiVersion: string;
|
|
1894
|
-
/**
|
|
1895
|
-
* InvoiceEventData
|
|
1896
|
-
*/
|
|
1897
1885
|
data: {
|
|
1898
1886
|
id: string;
|
|
1899
1887
|
sourceConnectionId: string;
|
|
@@ -1907,9 +1895,6 @@ export type InvoiceWebhookEventEnvelope = {
|
|
|
1907
1895
|
type: "invoice.accepted";
|
|
1908
1896
|
} | {
|
|
1909
1897
|
apiVersion: string;
|
|
1910
|
-
/**
|
|
1911
|
-
* InvoiceEventData
|
|
1912
|
-
*/
|
|
1913
1898
|
data: {
|
|
1914
1899
|
id: string;
|
|
1915
1900
|
sourceConnectionId: string;
|
|
@@ -1923,9 +1908,6 @@ export type InvoiceWebhookEventEnvelope = {
|
|
|
1923
1908
|
type: "invoice.rejected";
|
|
1924
1909
|
} | {
|
|
1925
1910
|
apiVersion: string;
|
|
1926
|
-
/**
|
|
1927
|
-
* InvoiceEventData
|
|
1928
|
-
*/
|
|
1929
1911
|
data: {
|
|
1930
1912
|
id: string;
|
|
1931
1913
|
sourceConnectionId: string;
|
|
@@ -1939,9 +1921,6 @@ export type InvoiceWebhookEventEnvelope = {
|
|
|
1939
1921
|
type: "invoice.operatorRequired";
|
|
1940
1922
|
} | {
|
|
1941
1923
|
apiVersion: string;
|
|
1942
|
-
/**
|
|
1943
|
-
* InvoiceEventData
|
|
1944
|
-
*/
|
|
1945
1924
|
data: {
|
|
1946
1925
|
id: string;
|
|
1947
1926
|
sourceConnectionId: string;
|
|
@@ -2125,6 +2104,10 @@ export type PrintedRepresentationPagePlan = {
|
|
|
2125
2104
|
itbis_16_subtotal: string;
|
|
2126
2105
|
itbis_18_subtotal: string;
|
|
2127
2106
|
last_line_number: number;
|
|
2107
|
+
/**
|
|
2108
|
+
* Each line's ITBIS on this page, in line order, as the fiscal calculation allocated it.
|
|
2109
|
+
*/
|
|
2110
|
+
line_itbis: Array<string>;
|
|
2128
2111
|
non_billable_subtotal: string;
|
|
2129
2112
|
page_number: number;
|
|
2130
2113
|
page_total: string;
|