@timbro/invoices 0.10.2 → 0.10.3-next.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/generated/invoice-api-contract.d.ts +33 -0
- package/dist/generated/invoice-api-contract.d.ts.map +1 -1
- package/dist/generated/invoice-api-contract.js +33 -0
- package/dist/generated/types.gen.d.ts +27 -0
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/generated/zod.gen.d.ts +3 -0
- package/dist/generated/zod.gen.d.ts.map +1 -1
- package/dist/generated/zod.gen.js +3 -0
- package/package.json +1 -1
|
@@ -1821,6 +1821,7 @@ export const invoiceApiContract = {
|
|
|
1821
1821
|
oneOf: [
|
|
1822
1822
|
{
|
|
1823
1823
|
type: "object",
|
|
1824
|
+
title: "AnonymousBuyer",
|
|
1824
1825
|
required: ["kind"],
|
|
1825
1826
|
properties: {
|
|
1826
1827
|
kind: {
|
|
@@ -1832,6 +1833,7 @@ export const invoiceApiContract = {
|
|
|
1832
1833
|
},
|
|
1833
1834
|
{
|
|
1834
1835
|
type: "object",
|
|
1836
|
+
title: "DomesticBuyer",
|
|
1835
1837
|
required: ["taxId", "legalName", "kind"],
|
|
1836
1838
|
properties: {
|
|
1837
1839
|
kind: {
|
|
@@ -1855,6 +1857,7 @@ export const invoiceApiContract = {
|
|
|
1855
1857
|
},
|
|
1856
1858
|
{
|
|
1857
1859
|
type: "object",
|
|
1860
|
+
title: "ForeignBuyer",
|
|
1858
1861
|
required: ["foreignId", "legalName", "kind"],
|
|
1859
1862
|
properties: {
|
|
1860
1863
|
foreignId: {
|
|
@@ -1906,6 +1909,7 @@ export const invoiceApiContract = {
|
|
|
1906
1909
|
oneOf: [
|
|
1907
1910
|
{
|
|
1908
1911
|
type: "object",
|
|
1912
|
+
title: "NotApplicableReadiness",
|
|
1909
1913
|
required: ["status"],
|
|
1910
1914
|
properties: {
|
|
1911
1915
|
status: {
|
|
@@ -2329,6 +2333,7 @@ export const invoiceApiContract = {
|
|
|
2329
2333
|
},
|
|
2330
2334
|
{
|
|
2331
2335
|
type: "object",
|
|
2336
|
+
title: "ZeroRatedTax",
|
|
2332
2337
|
required: ["kind"],
|
|
2333
2338
|
properties: {
|
|
2334
2339
|
kind: {
|
|
@@ -2340,6 +2345,7 @@ export const invoiceApiContract = {
|
|
|
2340
2345
|
},
|
|
2341
2346
|
{
|
|
2342
2347
|
type: "object",
|
|
2348
|
+
title: "ExemptTax",
|
|
2343
2349
|
required: ["kind"],
|
|
2344
2350
|
properties: {
|
|
2345
2351
|
kind: {
|
|
@@ -2445,6 +2451,7 @@ export const invoiceApiContract = {
|
|
|
2445
2451
|
},
|
|
2446
2452
|
{
|
|
2447
2453
|
type: "object",
|
|
2454
|
+
title: "CreditPaymentTerms",
|
|
2448
2455
|
required: ["dueOn", "type"],
|
|
2449
2456
|
properties: {
|
|
2450
2457
|
dueOn: {
|
|
@@ -2462,6 +2469,7 @@ export const invoiceApiContract = {
|
|
|
2462
2469
|
},
|
|
2463
2470
|
{
|
|
2464
2471
|
type: "object",
|
|
2472
|
+
title: "FreePaymentTerms",
|
|
2465
2473
|
required: ["type"],
|
|
2466
2474
|
properties: {
|
|
2467
2475
|
type: {
|
|
@@ -5306,6 +5314,7 @@ export const invoiceApiContract = {
|
|
|
5306
5314
|
oneOf: [
|
|
5307
5315
|
{
|
|
5308
5316
|
type: "object",
|
|
5317
|
+
title: "NotApplicableReadiness",
|
|
5309
5318
|
required: ["status"],
|
|
5310
5319
|
properties: {
|
|
5311
5320
|
status: {
|
|
@@ -5509,6 +5518,7 @@ export const invoiceApiContract = {
|
|
|
5509
5518
|
oneOf: [
|
|
5510
5519
|
{
|
|
5511
5520
|
type: "object",
|
|
5521
|
+
title: "NotApplicableReadiness",
|
|
5512
5522
|
required: ["status"],
|
|
5513
5523
|
properties: {
|
|
5514
5524
|
status: {
|
|
@@ -5520,6 +5530,7 @@ export const invoiceApiContract = {
|
|
|
5520
5530
|
},
|
|
5521
5531
|
{
|
|
5522
5532
|
type: "object",
|
|
5533
|
+
title: "PendingStatus",
|
|
5523
5534
|
required: ["status"],
|
|
5524
5535
|
properties: {
|
|
5525
5536
|
status: {
|
|
@@ -9391,6 +9402,7 @@ export const invoiceApiContract = {
|
|
|
9391
9402
|
},
|
|
9392
9403
|
{
|
|
9393
9404
|
type: "object",
|
|
9405
|
+
title: "CreditPaymentTerms",
|
|
9394
9406
|
required: ["dueOn", "type"],
|
|
9395
9407
|
properties: {
|
|
9396
9408
|
dueOn: {
|
|
@@ -9408,6 +9420,7 @@ export const invoiceApiContract = {
|
|
|
9408
9420
|
},
|
|
9409
9421
|
{
|
|
9410
9422
|
type: "object",
|
|
9423
|
+
title: "FreePaymentTerms",
|
|
9411
9424
|
required: ["type"],
|
|
9412
9425
|
properties: {
|
|
9413
9426
|
type: {
|
|
@@ -9448,6 +9461,7 @@ export const invoiceApiContract = {
|
|
|
9448
9461
|
oneOf: [
|
|
9449
9462
|
{
|
|
9450
9463
|
type: "object",
|
|
9464
|
+
title: "DomesticBuyer",
|
|
9451
9465
|
required: ["taxId", "legalName", "kind"],
|
|
9452
9466
|
properties: {
|
|
9453
9467
|
kind: {
|
|
@@ -9471,6 +9485,7 @@ export const invoiceApiContract = {
|
|
|
9471
9485
|
},
|
|
9472
9486
|
{
|
|
9473
9487
|
type: "object",
|
|
9488
|
+
title: "ForeignBuyer",
|
|
9474
9489
|
required: ["foreignId", "legalName", "kind"],
|
|
9475
9490
|
properties: {
|
|
9476
9491
|
foreignId: {
|
|
@@ -9598,6 +9613,7 @@ export const invoiceApiContract = {
|
|
|
9598
9613
|
},
|
|
9599
9614
|
{
|
|
9600
9615
|
type: "object",
|
|
9616
|
+
title: "ZeroRatedTax",
|
|
9601
9617
|
required: ["kind"],
|
|
9602
9618
|
properties: {
|
|
9603
9619
|
kind: {
|
|
@@ -9609,6 +9625,7 @@ export const invoiceApiContract = {
|
|
|
9609
9625
|
},
|
|
9610
9626
|
{
|
|
9611
9627
|
type: "object",
|
|
9628
|
+
title: "ExemptTax",
|
|
9612
9629
|
required: ["kind"],
|
|
9613
9630
|
properties: {
|
|
9614
9631
|
kind: {
|
|
@@ -9818,6 +9835,7 @@ export const invoiceApiContract = {
|
|
|
9818
9835
|
oneOf: [
|
|
9819
9836
|
{
|
|
9820
9837
|
type: "object",
|
|
9838
|
+
title: "ImmediatePaymentTerms",
|
|
9821
9839
|
required: ["type"],
|
|
9822
9840
|
properties: {
|
|
9823
9841
|
type: {
|
|
@@ -9829,6 +9847,7 @@ export const invoiceApiContract = {
|
|
|
9829
9847
|
},
|
|
9830
9848
|
{
|
|
9831
9849
|
type: "object",
|
|
9850
|
+
title: "FreePaymentTerms",
|
|
9832
9851
|
required: ["type"],
|
|
9833
9852
|
properties: {
|
|
9834
9853
|
type: {
|
|
@@ -9936,6 +9955,7 @@ export const invoiceApiContract = {
|
|
|
9936
9955
|
oneOf: [
|
|
9937
9956
|
{
|
|
9938
9957
|
type: "object",
|
|
9958
|
+
title: "DomesticBuyer",
|
|
9939
9959
|
required: ["taxId", "legalName", "kind"],
|
|
9940
9960
|
properties: {
|
|
9941
9961
|
kind: {
|
|
@@ -10127,6 +10147,7 @@ export const invoiceApiContract = {
|
|
|
10127
10147
|
oneOf: [
|
|
10128
10148
|
{
|
|
10129
10149
|
type: "object",
|
|
10150
|
+
title: "ForeignBuyer",
|
|
10130
10151
|
required: ["foreignId", "legalName", "kind"],
|
|
10131
10152
|
properties: {
|
|
10132
10153
|
foreignId: {
|
|
@@ -10268,6 +10289,7 @@ export const invoiceApiContract = {
|
|
|
10268
10289
|
oneOf: [
|
|
10269
10290
|
{
|
|
10270
10291
|
type: "object",
|
|
10292
|
+
title: "ImmediatePaymentTerms",
|
|
10271
10293
|
required: ["type"],
|
|
10272
10294
|
properties: {
|
|
10273
10295
|
type: {
|
|
@@ -10279,6 +10301,7 @@ export const invoiceApiContract = {
|
|
|
10279
10301
|
},
|
|
10280
10302
|
{
|
|
10281
10303
|
type: "object",
|
|
10304
|
+
title: "CreditPaymentTerms",
|
|
10282
10305
|
required: ["dueOn", "type"],
|
|
10283
10306
|
properties: {
|
|
10284
10307
|
dueOn: {
|
|
@@ -10296,6 +10319,7 @@ export const invoiceApiContract = {
|
|
|
10296
10319
|
},
|
|
10297
10320
|
{
|
|
10298
10321
|
type: "object",
|
|
10322
|
+
title: "FreePaymentTerms",
|
|
10299
10323
|
required: ["type"],
|
|
10300
10324
|
properties: {
|
|
10301
10325
|
type: {
|
|
@@ -10562,6 +10586,7 @@ export const invoiceApiContract = {
|
|
|
10562
10586
|
},
|
|
10563
10587
|
{
|
|
10564
10588
|
type: "object",
|
|
10589
|
+
title: "PendingStatus",
|
|
10565
10590
|
description: "Received and awaiting the administrator's review.",
|
|
10566
10591
|
required: ["status"],
|
|
10567
10592
|
properties: {
|
|
@@ -10748,6 +10773,7 @@ export const invoiceApiContract = {
|
|
|
10748
10773
|
oneOf: [
|
|
10749
10774
|
{
|
|
10750
10775
|
type: "object",
|
|
10776
|
+
title: "InvoiceAcceptedEvent",
|
|
10751
10777
|
required: [
|
|
10752
10778
|
"data",
|
|
10753
10779
|
"type",
|
|
@@ -10766,6 +10792,7 @@ export const invoiceApiContract = {
|
|
|
10766
10792
|
},
|
|
10767
10793
|
data: {
|
|
10768
10794
|
type: "object",
|
|
10795
|
+
title: "InvoiceEventData",
|
|
10769
10796
|
required: ["id", "sourceConnectionId"],
|
|
10770
10797
|
properties: {
|
|
10771
10798
|
id: {
|
|
@@ -10810,6 +10837,7 @@ export const invoiceApiContract = {
|
|
|
10810
10837
|
},
|
|
10811
10838
|
{
|
|
10812
10839
|
type: "object",
|
|
10840
|
+
title: "InvoiceRejectedEvent",
|
|
10813
10841
|
required: [
|
|
10814
10842
|
"data",
|
|
10815
10843
|
"type",
|
|
@@ -10828,6 +10856,7 @@ export const invoiceApiContract = {
|
|
|
10828
10856
|
},
|
|
10829
10857
|
data: {
|
|
10830
10858
|
type: "object",
|
|
10859
|
+
title: "InvoiceEventData",
|
|
10831
10860
|
required: ["id", "sourceConnectionId"],
|
|
10832
10861
|
properties: {
|
|
10833
10862
|
id: {
|
|
@@ -10872,6 +10901,7 @@ export const invoiceApiContract = {
|
|
|
10872
10901
|
},
|
|
10873
10902
|
{
|
|
10874
10903
|
type: "object",
|
|
10904
|
+
title: "InvoiceOperatorRequiredEvent",
|
|
10875
10905
|
required: [
|
|
10876
10906
|
"data",
|
|
10877
10907
|
"type",
|
|
@@ -10890,6 +10920,7 @@ export const invoiceApiContract = {
|
|
|
10890
10920
|
},
|
|
10891
10921
|
data: {
|
|
10892
10922
|
type: "object",
|
|
10923
|
+
title: "InvoiceEventData",
|
|
10893
10924
|
required: ["id", "sourceConnectionId"],
|
|
10894
10925
|
properties: {
|
|
10895
10926
|
id: {
|
|
@@ -10934,6 +10965,7 @@ export const invoiceApiContract = {
|
|
|
10934
10965
|
},
|
|
10935
10966
|
{
|
|
10936
10967
|
type: "object",
|
|
10968
|
+
title: "InvoiceReadyEvent",
|
|
10937
10969
|
required: [
|
|
10938
10970
|
"data",
|
|
10939
10971
|
"type",
|
|
@@ -10952,6 +10984,7 @@ export const invoiceApiContract = {
|
|
|
10952
10984
|
},
|
|
10953
10985
|
data: {
|
|
10954
10986
|
type: "object",
|
|
10987
|
+
title: "InvoiceEventData",
|
|
10955
10988
|
required: ["id", "sourceConnectionId"],
|
|
10956
10989
|
properties: {
|
|
10957
10990
|
id: {
|
|
@@ -1125,6 +1125,9 @@ export type InvoiceExpectedTotals = {
|
|
|
1125
1125
|
tax: string;
|
|
1126
1126
|
total: string;
|
|
1127
1127
|
};
|
|
1128
|
+
/**
|
|
1129
|
+
* ForeignBuyer
|
|
1130
|
+
*/
|
|
1128
1131
|
export type InvoiceExportBuyer = {
|
|
1129
1132
|
foreignId: string;
|
|
1130
1133
|
kind: "foreign";
|
|
@@ -1871,24 +1874,36 @@ export type InvoiceTotals = {
|
|
|
1871
1874
|
};
|
|
1872
1875
|
export type InvoiceType = "E31" | "E32" | "E33" | "E34" | "E41" | "E43" | "E44" | "E45" | "E46" | "E47";
|
|
1873
1876
|
export type InvoiceWebhookEvent = {
|
|
1877
|
+
/**
|
|
1878
|
+
* InvoiceEventData
|
|
1879
|
+
*/
|
|
1874
1880
|
data: {
|
|
1875
1881
|
id: string;
|
|
1876
1882
|
sourceConnectionId: string;
|
|
1877
1883
|
};
|
|
1878
1884
|
type: "invoice.accepted";
|
|
1879
1885
|
} | {
|
|
1886
|
+
/**
|
|
1887
|
+
* InvoiceEventData
|
|
1888
|
+
*/
|
|
1880
1889
|
data: {
|
|
1881
1890
|
id: string;
|
|
1882
1891
|
sourceConnectionId: string;
|
|
1883
1892
|
};
|
|
1884
1893
|
type: "invoice.rejected";
|
|
1885
1894
|
} | {
|
|
1895
|
+
/**
|
|
1896
|
+
* InvoiceEventData
|
|
1897
|
+
*/
|
|
1886
1898
|
data: {
|
|
1887
1899
|
id: string;
|
|
1888
1900
|
sourceConnectionId: string;
|
|
1889
1901
|
};
|
|
1890
1902
|
type: "invoice.operatorRequired";
|
|
1891
1903
|
} | {
|
|
1904
|
+
/**
|
|
1905
|
+
* InvoiceEventData
|
|
1906
|
+
*/
|
|
1892
1907
|
data: {
|
|
1893
1908
|
id: string;
|
|
1894
1909
|
sourceConnectionId: string;
|
|
@@ -1897,6 +1912,9 @@ export type InvoiceWebhookEvent = {
|
|
|
1897
1912
|
};
|
|
1898
1913
|
export type InvoiceWebhookEventEnvelope = {
|
|
1899
1914
|
apiVersion: string;
|
|
1915
|
+
/**
|
|
1916
|
+
* InvoiceEventData
|
|
1917
|
+
*/
|
|
1900
1918
|
data: {
|
|
1901
1919
|
id: string;
|
|
1902
1920
|
sourceConnectionId: string;
|
|
@@ -1910,6 +1928,9 @@ export type InvoiceWebhookEventEnvelope = {
|
|
|
1910
1928
|
type: "invoice.accepted";
|
|
1911
1929
|
} | {
|
|
1912
1930
|
apiVersion: string;
|
|
1931
|
+
/**
|
|
1932
|
+
* InvoiceEventData
|
|
1933
|
+
*/
|
|
1913
1934
|
data: {
|
|
1914
1935
|
id: string;
|
|
1915
1936
|
sourceConnectionId: string;
|
|
@@ -1923,6 +1944,9 @@ export type InvoiceWebhookEventEnvelope = {
|
|
|
1923
1944
|
type: "invoice.rejected";
|
|
1924
1945
|
} | {
|
|
1925
1946
|
apiVersion: string;
|
|
1947
|
+
/**
|
|
1948
|
+
* InvoiceEventData
|
|
1949
|
+
*/
|
|
1926
1950
|
data: {
|
|
1927
1951
|
id: string;
|
|
1928
1952
|
sourceConnectionId: string;
|
|
@@ -1936,6 +1960,9 @@ export type InvoiceWebhookEventEnvelope = {
|
|
|
1936
1960
|
type: "invoice.operatorRequired";
|
|
1937
1961
|
} | {
|
|
1938
1962
|
apiVersion: string;
|
|
1963
|
+
/**
|
|
1964
|
+
* InvoiceEventData
|
|
1965
|
+
*/
|
|
1939
1966
|
data: {
|
|
1940
1967
|
id: string;
|
|
1941
1968
|
sourceConnectionId: string;
|