@timbro/invoices 0.10.3 → 0.12.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/README.md +58 -2
- package/dist/admin.d.ts +2 -3
- package/dist/admin.d.ts.map +1 -1
- package/dist/generated/hosted/index.d.ts +3 -3
- package/dist/generated/hosted/index.d.ts.map +1 -1
- package/dist/generated/hosted/index.js +2 -2
- package/dist/generated/hosted/sdk.gen.d.ts +19 -1
- package/dist/generated/hosted/sdk.gen.d.ts.map +1 -1
- package/dist/generated/hosted/sdk.gen.js +225 -1
- package/dist/generated/hosted/types.gen.d.ts +583 -5
- package/dist/generated/hosted/types.gen.d.ts.map +1 -1
- package/dist/generated/hosted/zod-response.gen.d.ts +6678 -208
- package/dist/generated/hosted/zod-response.gen.d.ts.map +1 -1
- package/dist/generated/hosted/zod-response.gen.js +694 -207
- package/dist/generated/hosted/zod.gen.d.ts +1661 -14
- package/dist/generated/hosted/zod.gen.d.ts.map +1 -1
- package/dist/generated/hosted/zod.gen.js +772 -222
- package/dist/generated/index.d.ts +3 -3
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +2 -2
- package/dist/generated/invoice-api-contract.d.ts +186 -2
- package/dist/generated/invoice-api-contract.d.ts.map +1 -1
- package/dist/generated/invoice-api-contract.js +211 -1
- package/dist/generated/sdk.gen.d.ts +5 -5
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/sdk.gen.js +93 -93
- package/dist/generated/types.gen.d.ts +288 -139
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/generated/zod-response.gen.d.ts +2304 -2548
- package/dist/generated/zod-response.gen.d.ts.map +1 -1
- package/dist/generated/zod-response.gen.js +179 -109
- package/dist/generated/zod.gen.d.ts +1252 -2188
- package/dist/generated/zod.gen.d.ts.map +1 -1
- package/dist/generated/zod.gen.js +215 -115
- package/dist/hosted-tenant.d.ts +9 -0
- package/dist/hosted-tenant.d.ts.map +1 -1
- package/dist/hosted-tenant.js +7 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/invoice-hosted-controls.d.ts +22 -3
- package/dist/invoice-hosted-controls.d.ts.map +1 -1
- package/dist/invoice-hosted-controls.js +48 -12
- package/dist/invoice.d.ts +5 -0
- package/dist/invoice.d.ts.map +1 -1
- package/dist/invoice.js +1 -0
- package/dist/issuance-readiness.d.ts +9 -0
- package/dist/issuance-readiness.d.ts.map +1 -0
- package/dist/issuance-readiness.js +19 -0
- package/dist/timbro-client.d.ts +6 -8
- package/dist/timbro-client.d.ts.map +1 -1
- package/dist/timbro-client.js +3 -5
- package/dist/webhook-event.d.ts +392 -0
- package/dist/webhook-event.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/certificate-custody-readiness.d.ts +0 -6
- package/dist/certificate-custody-readiness.d.ts.map +0 -1
- package/dist/certificate-custody-readiness.js +0 -13
- package/dist/fiscal-numbering-readiness.d.ts +0 -6
- package/dist/fiscal-numbering-readiness.d.ts.map +0 -1
- package/dist/fiscal-numbering-readiness.js +0 -13
|
@@ -1869,18 +1869,50 @@ export declare const invoiceApiContract: {
|
|
|
1869
1869
|
};
|
|
1870
1870
|
readonly InvoiceFiscalIdentity: {
|
|
1871
1871
|
readonly type: "object";
|
|
1872
|
-
readonly required: readonly ["type", "eNcf"];
|
|
1872
|
+
readonly required: readonly ["type", "eNcf", "signature"];
|
|
1873
1873
|
readonly properties: {
|
|
1874
1874
|
readonly eNcf: {
|
|
1875
1875
|
readonly type: "string";
|
|
1876
1876
|
readonly pattern: "^E(31|32|33|34|41|43|44|45|46|47)[0-9]{10}$";
|
|
1877
1877
|
};
|
|
1878
|
+
readonly signature: {
|
|
1879
|
+
readonly oneOf: readonly [{
|
|
1880
|
+
readonly type: "null";
|
|
1881
|
+
}, {
|
|
1882
|
+
readonly $ref: "#/components/schemas/InvoiceSignature";
|
|
1883
|
+
readonly description: "The facts every printed e-CF must show, `null` until the complete e-CF is signed.";
|
|
1884
|
+
}];
|
|
1885
|
+
};
|
|
1878
1886
|
readonly type: {
|
|
1879
1887
|
readonly $ref: "#/components/schemas/InvoiceType";
|
|
1880
1888
|
};
|
|
1881
1889
|
};
|
|
1882
1890
|
readonly additionalProperties: false;
|
|
1883
1891
|
};
|
|
1892
|
+
readonly InvoiceSignature: {
|
|
1893
|
+
readonly type: "object";
|
|
1894
|
+
readonly description: "The signature facts DGII requires on every printed e-CF, read from the signed document.\n\nPrint the buyer's copy after DGII accepts the Invoice; DGII sequences the printed e-CF after\nits validation result, including the Type 32 below DOP 250,000 it validates by RFCE summary.";
|
|
1895
|
+
readonly required: readonly ["signedAt", "securityCode", "verificationUrl"];
|
|
1896
|
+
readonly properties: {
|
|
1897
|
+
readonly securityCode: {
|
|
1898
|
+
readonly type: "string";
|
|
1899
|
+
readonly description: "The first six characters of the signature value, printed below the QR code.";
|
|
1900
|
+
readonly pattern: "^[A-Za-z0-9+/]{6}$";
|
|
1901
|
+
};
|
|
1902
|
+
readonly signedAt: {
|
|
1903
|
+
readonly type: "string";
|
|
1904
|
+
readonly description: "The exact `FechaHoraFirma` instant as RFC 3339 in DGII's fixed GMT-4, so its date and\ntime read as the printed `dd-MM-aaaa HH:mm:ss`.";
|
|
1905
|
+
readonly pattern: "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}-04:00$";
|
|
1906
|
+
};
|
|
1907
|
+
readonly verificationUrl: {
|
|
1908
|
+
readonly type: "string";
|
|
1909
|
+
readonly format: "uri";
|
|
1910
|
+
readonly description: "The DGII consultation URL the printed QR code encodes.";
|
|
1911
|
+
readonly pattern: "^https://(ecf|fc)\\.dgii\\.gov\\.do/";
|
|
1912
|
+
};
|
|
1913
|
+
};
|
|
1914
|
+
readonly additionalProperties: false;
|
|
1915
|
+
};
|
|
1884
1916
|
readonly InvoiceType: {
|
|
1885
1917
|
readonly type: "string";
|
|
1886
1918
|
readonly enum: readonly ["E31", "E32", "E33", "E34", "E41", "E43", "E44", "E45", "E46", "E47"];
|
|
@@ -3559,6 +3591,7 @@ export declare const invoiceApiContract: {
|
|
|
3559
3591
|
};
|
|
3560
3592
|
readonly additionalProperties: false;
|
|
3561
3593
|
}];
|
|
3594
|
+
readonly description: "Whether the buyer may receive the e-CF: `ready` once DGII received it and answered `Aceptado`\nor `Aceptado Condicional`, never at signing or submission alone.";
|
|
3562
3595
|
readonly discriminator: {
|
|
3563
3596
|
readonly propertyName: "status";
|
|
3564
3597
|
};
|
|
@@ -5841,6 +5874,10 @@ export declare const invoiceApiContract: {
|
|
|
5841
5874
|
readonly maxLength: 2048;
|
|
5842
5875
|
readonly pattern: "^https://";
|
|
5843
5876
|
};
|
|
5877
|
+
readonly attachments: {
|
|
5878
|
+
readonly $ref: "#/components/schemas/InvoiceDeliveryAttachmentSelection";
|
|
5879
|
+
readonly description: "Files attached to the email beside its link. Omitted, the email attaches nothing.";
|
|
5880
|
+
};
|
|
5844
5881
|
readonly recipientEmail: {
|
|
5845
5882
|
readonly type: "string";
|
|
5846
5883
|
readonly format: "email";
|
|
@@ -5850,10 +5887,27 @@ export declare const invoiceApiContract: {
|
|
|
5850
5887
|
};
|
|
5851
5888
|
readonly additionalProperties: false;
|
|
5852
5889
|
};
|
|
5890
|
+
readonly InvoiceDeliveryAttachmentSelection: {
|
|
5891
|
+
readonly type: "object";
|
|
5892
|
+
readonly properties: {
|
|
5893
|
+
readonly pdf: {
|
|
5894
|
+
readonly type: "boolean";
|
|
5895
|
+
readonly description: "Attach the printed representation as `{RNC}{e-NCF}.pdf`.";
|
|
5896
|
+
};
|
|
5897
|
+
readonly xml: {
|
|
5898
|
+
readonly type: "boolean";
|
|
5899
|
+
readonly description: "Attach the signed e-CF as `{RNC}{e-NCF}.xml`, DGII's file-name standard.";
|
|
5900
|
+
};
|
|
5901
|
+
};
|
|
5902
|
+
readonly additionalProperties: false;
|
|
5903
|
+
};
|
|
5853
5904
|
readonly InvoiceDeliveryResource: {
|
|
5854
5905
|
readonly type: "object";
|
|
5855
|
-
readonly required: readonly ["id", "invoiceId", "recipientEmail", "state", "link", "lastResultCode", "providerDeliveryId", "createdAt", "updatedAt"];
|
|
5906
|
+
readonly required: readonly ["id", "invoiceId", "recipientEmail", "attachments", "state", "link", "lastResultCode", "providerDeliveryId", "createdAt", "updatedAt"];
|
|
5856
5907
|
readonly properties: {
|
|
5908
|
+
readonly attachments: {
|
|
5909
|
+
readonly $ref: "#/components/schemas/InvoiceDeliveryAttachments";
|
|
5910
|
+
};
|
|
5857
5911
|
readonly createdAt: {
|
|
5858
5912
|
readonly type: "string";
|
|
5859
5913
|
readonly format: "date-time";
|
|
@@ -5888,6 +5942,20 @@ export declare const invoiceApiContract: {
|
|
|
5888
5942
|
};
|
|
5889
5943
|
readonly additionalProperties: false;
|
|
5890
5944
|
};
|
|
5945
|
+
readonly InvoiceDeliveryAttachments: {
|
|
5946
|
+
readonly type: "object";
|
|
5947
|
+
readonly description: "The files this email attaches beside its link.";
|
|
5948
|
+
readonly required: readonly ["pdf", "xml"];
|
|
5949
|
+
readonly properties: {
|
|
5950
|
+
readonly pdf: {
|
|
5951
|
+
readonly type: "boolean";
|
|
5952
|
+
};
|
|
5953
|
+
readonly xml: {
|
|
5954
|
+
readonly type: "boolean";
|
|
5955
|
+
};
|
|
5956
|
+
};
|
|
5957
|
+
readonly additionalProperties: false;
|
|
5958
|
+
};
|
|
5891
5959
|
readonly FiscalDeliveryState: {
|
|
5892
5960
|
readonly type: "string";
|
|
5893
5961
|
readonly enum: readonly ["pending", "submitted", "delivered", "bounced", "failed", "suppressed"];
|
|
@@ -6365,6 +6433,122 @@ export declare const invoiceApiContract: {
|
|
|
6365
6433
|
};
|
|
6366
6434
|
};
|
|
6367
6435
|
readonly additionalProperties: false;
|
|
6436
|
+
}, {
|
|
6437
|
+
readonly type: "object";
|
|
6438
|
+
readonly title: "InvoiceDeliverySentEvent";
|
|
6439
|
+
readonly required: readonly ["data", "type", "apiVersion", "object", "id", "sequence", "occurredAt", "organizationId", "environment"];
|
|
6440
|
+
readonly properties: {
|
|
6441
|
+
readonly apiVersion: {
|
|
6442
|
+
readonly type: "string";
|
|
6443
|
+
readonly minLength: 1;
|
|
6444
|
+
};
|
|
6445
|
+
readonly data: {
|
|
6446
|
+
readonly type: "object";
|
|
6447
|
+
readonly title: "InvoiceDeliveryEventData";
|
|
6448
|
+
readonly description: "The Invoice and the buyer email whose sent or failed outcome the event announces.";
|
|
6449
|
+
readonly required: readonly ["id", "sourceConnectionId", "deliveryId"];
|
|
6450
|
+
readonly properties: {
|
|
6451
|
+
readonly deliveryId: {
|
|
6452
|
+
readonly type: "string";
|
|
6453
|
+
readonly format: "uuid";
|
|
6454
|
+
};
|
|
6455
|
+
readonly id: {
|
|
6456
|
+
readonly type: "string";
|
|
6457
|
+
readonly format: "uuid";
|
|
6458
|
+
};
|
|
6459
|
+
readonly sourceConnectionId: {
|
|
6460
|
+
readonly type: "string";
|
|
6461
|
+
readonly format: "uuid";
|
|
6462
|
+
};
|
|
6463
|
+
};
|
|
6464
|
+
readonly additionalProperties: false;
|
|
6465
|
+
};
|
|
6466
|
+
readonly environment: {
|
|
6467
|
+
readonly $ref: "#/components/schemas/FiscalEnvironment";
|
|
6468
|
+
};
|
|
6469
|
+
readonly id: {
|
|
6470
|
+
readonly type: "string";
|
|
6471
|
+
readonly format: "uuid";
|
|
6472
|
+
};
|
|
6473
|
+
readonly object: {
|
|
6474
|
+
readonly $ref: "#/components/schemas/WebhookEventObject";
|
|
6475
|
+
};
|
|
6476
|
+
readonly occurredAt: {
|
|
6477
|
+
readonly type: "string";
|
|
6478
|
+
readonly format: "date-time";
|
|
6479
|
+
};
|
|
6480
|
+
readonly organizationId: {
|
|
6481
|
+
readonly type: "string";
|
|
6482
|
+
readonly format: "uuid";
|
|
6483
|
+
};
|
|
6484
|
+
readonly sequence: {
|
|
6485
|
+
readonly type: "string";
|
|
6486
|
+
readonly pattern: "^[1-9][0-9]*$";
|
|
6487
|
+
};
|
|
6488
|
+
readonly type: {
|
|
6489
|
+
readonly type: "string";
|
|
6490
|
+
readonly enum: readonly ["invoice.deliverySent"];
|
|
6491
|
+
};
|
|
6492
|
+
};
|
|
6493
|
+
readonly additionalProperties: false;
|
|
6494
|
+
}, {
|
|
6495
|
+
readonly type: "object";
|
|
6496
|
+
readonly title: "InvoiceDeliveryFailedEvent";
|
|
6497
|
+
readonly required: readonly ["data", "type", "apiVersion", "object", "id", "sequence", "occurredAt", "organizationId", "environment"];
|
|
6498
|
+
readonly properties: {
|
|
6499
|
+
readonly apiVersion: {
|
|
6500
|
+
readonly type: "string";
|
|
6501
|
+
readonly minLength: 1;
|
|
6502
|
+
};
|
|
6503
|
+
readonly data: {
|
|
6504
|
+
readonly type: "object";
|
|
6505
|
+
readonly title: "InvoiceDeliveryEventData";
|
|
6506
|
+
readonly description: "The Invoice and the buyer email whose sent or failed outcome the event announces.";
|
|
6507
|
+
readonly required: readonly ["id", "sourceConnectionId", "deliveryId"];
|
|
6508
|
+
readonly properties: {
|
|
6509
|
+
readonly deliveryId: {
|
|
6510
|
+
readonly type: "string";
|
|
6511
|
+
readonly format: "uuid";
|
|
6512
|
+
};
|
|
6513
|
+
readonly id: {
|
|
6514
|
+
readonly type: "string";
|
|
6515
|
+
readonly format: "uuid";
|
|
6516
|
+
};
|
|
6517
|
+
readonly sourceConnectionId: {
|
|
6518
|
+
readonly type: "string";
|
|
6519
|
+
readonly format: "uuid";
|
|
6520
|
+
};
|
|
6521
|
+
};
|
|
6522
|
+
readonly additionalProperties: false;
|
|
6523
|
+
};
|
|
6524
|
+
readonly environment: {
|
|
6525
|
+
readonly $ref: "#/components/schemas/FiscalEnvironment";
|
|
6526
|
+
};
|
|
6527
|
+
readonly id: {
|
|
6528
|
+
readonly type: "string";
|
|
6529
|
+
readonly format: "uuid";
|
|
6530
|
+
};
|
|
6531
|
+
readonly object: {
|
|
6532
|
+
readonly $ref: "#/components/schemas/WebhookEventObject";
|
|
6533
|
+
};
|
|
6534
|
+
readonly occurredAt: {
|
|
6535
|
+
readonly type: "string";
|
|
6536
|
+
readonly format: "date-time";
|
|
6537
|
+
};
|
|
6538
|
+
readonly organizationId: {
|
|
6539
|
+
readonly type: "string";
|
|
6540
|
+
readonly format: "uuid";
|
|
6541
|
+
};
|
|
6542
|
+
readonly sequence: {
|
|
6543
|
+
readonly type: "string";
|
|
6544
|
+
readonly pattern: "^[1-9][0-9]*$";
|
|
6545
|
+
};
|
|
6546
|
+
readonly type: {
|
|
6547
|
+
readonly type: "string";
|
|
6548
|
+
readonly enum: readonly ["invoice.deliveryFailed"];
|
|
6549
|
+
};
|
|
6550
|
+
};
|
|
6551
|
+
readonly additionalProperties: false;
|
|
6368
6552
|
}];
|
|
6369
6553
|
readonly discriminator: {
|
|
6370
6554
|
readonly propertyName: "type";
|