@timbro/invoices 0.10.0 → 0.10.1-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: {
|
|
@@ -10554,6 +10578,7 @@ export const invoiceApiContract = {
|
|
|
10554
10578
|
},
|
|
10555
10579
|
{
|
|
10556
10580
|
type: "object",
|
|
10581
|
+
title: "PendingStatus",
|
|
10557
10582
|
description: "Received and awaiting the administrator's review.",
|
|
10558
10583
|
required: ["status"],
|
|
10559
10584
|
properties: {
|
|
@@ -10732,6 +10757,7 @@ export const invoiceApiContract = {
|
|
|
10732
10757
|
oneOf: [
|
|
10733
10758
|
{
|
|
10734
10759
|
type: "object",
|
|
10760
|
+
title: "InvoiceAcceptedEvent",
|
|
10735
10761
|
required: [
|
|
10736
10762
|
"data",
|
|
10737
10763
|
"type",
|
|
@@ -10750,6 +10776,7 @@ export const invoiceApiContract = {
|
|
|
10750
10776
|
},
|
|
10751
10777
|
data: {
|
|
10752
10778
|
type: "object",
|
|
10779
|
+
title: "InvoiceEventData",
|
|
10753
10780
|
required: ["id", "sourceConnectionId"],
|
|
10754
10781
|
properties: {
|
|
10755
10782
|
id: {
|
|
@@ -10794,6 +10821,7 @@ export const invoiceApiContract = {
|
|
|
10794
10821
|
},
|
|
10795
10822
|
{
|
|
10796
10823
|
type: "object",
|
|
10824
|
+
title: "InvoiceRejectedEvent",
|
|
10797
10825
|
required: [
|
|
10798
10826
|
"data",
|
|
10799
10827
|
"type",
|
|
@@ -10812,6 +10840,7 @@ export const invoiceApiContract = {
|
|
|
10812
10840
|
},
|
|
10813
10841
|
data: {
|
|
10814
10842
|
type: "object",
|
|
10843
|
+
title: "InvoiceEventData",
|
|
10815
10844
|
required: ["id", "sourceConnectionId"],
|
|
10816
10845
|
properties: {
|
|
10817
10846
|
id: {
|
|
@@ -10856,6 +10885,7 @@ export const invoiceApiContract = {
|
|
|
10856
10885
|
},
|
|
10857
10886
|
{
|
|
10858
10887
|
type: "object",
|
|
10888
|
+
title: "InvoiceOperatorRequiredEvent",
|
|
10859
10889
|
required: [
|
|
10860
10890
|
"data",
|
|
10861
10891
|
"type",
|
|
@@ -10874,6 +10904,7 @@ export const invoiceApiContract = {
|
|
|
10874
10904
|
},
|
|
10875
10905
|
data: {
|
|
10876
10906
|
type: "object",
|
|
10907
|
+
title: "InvoiceEventData",
|
|
10877
10908
|
required: ["id", "sourceConnectionId"],
|
|
10878
10909
|
properties: {
|
|
10879
10910
|
id: {
|
|
@@ -10918,6 +10949,7 @@ export const invoiceApiContract = {
|
|
|
10918
10949
|
},
|
|
10919
10950
|
{
|
|
10920
10951
|
type: "object",
|
|
10952
|
+
title: "InvoiceReadyEvent",
|
|
10921
10953
|
required: [
|
|
10922
10954
|
"data",
|
|
10923
10955
|
"type",
|
|
@@ -10936,6 +10968,7 @@ export const invoiceApiContract = {
|
|
|
10936
10968
|
},
|
|
10937
10969
|
data: {
|
|
10938
10970
|
type: "object",
|
|
10971
|
+
title: "InvoiceEventData",
|
|
10939
10972
|
required: ["id", "sourceConnectionId"],
|
|
10940
10973
|
properties: {
|
|
10941
10974
|
id: {
|
|
@@ -1104,6 +1104,9 @@ export type InvoiceExpectedTotals = {
|
|
|
1104
1104
|
tax: string;
|
|
1105
1105
|
total: string;
|
|
1106
1106
|
};
|
|
1107
|
+
/**
|
|
1108
|
+
* ForeignBuyer
|
|
1109
|
+
*/
|
|
1107
1110
|
export type InvoiceExportBuyer = {
|
|
1108
1111
|
foreignId: string;
|
|
1109
1112
|
kind: "foreign";
|
|
@@ -1850,24 +1853,36 @@ export type InvoiceTotals = {
|
|
|
1850
1853
|
};
|
|
1851
1854
|
export type InvoiceType = "E31" | "E32" | "E33" | "E34" | "E41" | "E43" | "E44" | "E45" | "E46" | "E47";
|
|
1852
1855
|
export type InvoiceWebhookEvent = {
|
|
1856
|
+
/**
|
|
1857
|
+
* InvoiceEventData
|
|
1858
|
+
*/
|
|
1853
1859
|
data: {
|
|
1854
1860
|
id: string;
|
|
1855
1861
|
sourceConnectionId: string;
|
|
1856
1862
|
};
|
|
1857
1863
|
type: "invoice.accepted";
|
|
1858
1864
|
} | {
|
|
1865
|
+
/**
|
|
1866
|
+
* InvoiceEventData
|
|
1867
|
+
*/
|
|
1859
1868
|
data: {
|
|
1860
1869
|
id: string;
|
|
1861
1870
|
sourceConnectionId: string;
|
|
1862
1871
|
};
|
|
1863
1872
|
type: "invoice.rejected";
|
|
1864
1873
|
} | {
|
|
1874
|
+
/**
|
|
1875
|
+
* InvoiceEventData
|
|
1876
|
+
*/
|
|
1865
1877
|
data: {
|
|
1866
1878
|
id: string;
|
|
1867
1879
|
sourceConnectionId: string;
|
|
1868
1880
|
};
|
|
1869
1881
|
type: "invoice.operatorRequired";
|
|
1870
1882
|
} | {
|
|
1883
|
+
/**
|
|
1884
|
+
* InvoiceEventData
|
|
1885
|
+
*/
|
|
1871
1886
|
data: {
|
|
1872
1887
|
id: string;
|
|
1873
1888
|
sourceConnectionId: string;
|
|
@@ -1876,6 +1891,9 @@ export type InvoiceWebhookEvent = {
|
|
|
1876
1891
|
};
|
|
1877
1892
|
export type InvoiceWebhookEventEnvelope = {
|
|
1878
1893
|
apiVersion: string;
|
|
1894
|
+
/**
|
|
1895
|
+
* InvoiceEventData
|
|
1896
|
+
*/
|
|
1879
1897
|
data: {
|
|
1880
1898
|
id: string;
|
|
1881
1899
|
sourceConnectionId: string;
|
|
@@ -1889,6 +1907,9 @@ export type InvoiceWebhookEventEnvelope = {
|
|
|
1889
1907
|
type: "invoice.accepted";
|
|
1890
1908
|
} | {
|
|
1891
1909
|
apiVersion: string;
|
|
1910
|
+
/**
|
|
1911
|
+
* InvoiceEventData
|
|
1912
|
+
*/
|
|
1892
1913
|
data: {
|
|
1893
1914
|
id: string;
|
|
1894
1915
|
sourceConnectionId: string;
|
|
@@ -1902,6 +1923,9 @@ export type InvoiceWebhookEventEnvelope = {
|
|
|
1902
1923
|
type: "invoice.rejected";
|
|
1903
1924
|
} | {
|
|
1904
1925
|
apiVersion: string;
|
|
1926
|
+
/**
|
|
1927
|
+
* InvoiceEventData
|
|
1928
|
+
*/
|
|
1905
1929
|
data: {
|
|
1906
1930
|
id: string;
|
|
1907
1931
|
sourceConnectionId: string;
|
|
@@ -1915,6 +1939,9 @@ export type InvoiceWebhookEventEnvelope = {
|
|
|
1915
1939
|
type: "invoice.operatorRequired";
|
|
1916
1940
|
} | {
|
|
1917
1941
|
apiVersion: string;
|
|
1942
|
+
/**
|
|
1943
|
+
* InvoiceEventData
|
|
1944
|
+
*/
|
|
1918
1945
|
data: {
|
|
1919
1946
|
id: string;
|
|
1920
1947
|
sourceConnectionId: string;
|