@timbro/invoices 0.9.0-next.0 → 0.9.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 +19 -0
- package/dist/admin.d.ts +2 -2
- package/dist/admin.d.ts.map +1 -1
- package/dist/admin.js +1 -1
- package/dist/generated/hosted/sdk.gen.d.ts.map +1 -1
- package/dist/generated/hosted/sdk.gen.js +1 -1
- package/dist/generated/hosted/types.gen.d.ts +2 -2
- package/dist/generated/hosted/types.gen.d.ts.map +1 -1
- package/dist/generated/hosted/zod-response.gen.d.ts +4007 -0
- package/dist/generated/hosted/zod-response.gen.d.ts.map +1 -0
- package/dist/generated/hosted/zod-response.gen.js +1967 -0
- package/dist/generated/hosted/zod.gen.d.ts +3 -0
- package/dist/generated/hosted/zod.gen.d.ts.map +1 -1
- package/dist/generated/hosted/zod.gen.js +5 -2
- package/dist/generated/invoice-api-contract.d.ts +34 -36
- package/dist/generated/invoice-api-contract.d.ts.map +1 -1
- package/dist/generated/invoice-api-contract.js +37 -36
- package/dist/generated/sdk.gen.js +1 -1
- package/dist/generated/types.gen.d.ts +1 -0
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/generated/zod-response.gen.d.ts +87940 -0
- package/dist/generated/zod-response.gen.d.ts.map +1 -0
- package/dist/generated/zod-response.gen.js +4946 -0
- package/dist/generated/zod.gen.d.ts +148 -0
- package/dist/generated/zod.gen.d.ts.map +1 -1
- package/dist/generated/zod.gen.js +1 -0
- package/dist/generated-problem.js +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/invoice-receipt.d.ts.map +1 -1
- package/dist/invoice-receipt.js +2 -1
- package/dist/invoice.d.ts +2 -2
- package/dist/invoice.d.ts.map +1 -1
- package/dist/invoice.js +1 -1
- package/dist/source-connection-activation.d.ts.map +1 -1
- package/dist/source-connection-activation.js +2 -1
- package/dist/timbro-client.d.ts +2 -2
- package/dist/timbro-client.d.ts.map +1 -1
- package/dist/webhook-event.d.ts +4680 -1983
- package/dist/webhook-event.d.ts.map +1 -1
- package/dist/webhook-event.js +27 -1
- package/dist/webhook-verification.d.ts +4 -2
- package/dist/webhook-verification.d.ts.map +1 -1
- package/dist/webhook-verification.js +4 -2
- package/package.json +6 -2
|
@@ -764,13 +764,6 @@ export const invoiceApiContract = {
|
|
|
764
764
|
"200": {
|
|
765
765
|
description: "The retained authoritative PDF, with verified digest and signed-source identity.",
|
|
766
766
|
headers: {
|
|
767
|
-
"timbro-certificate-sha256": {
|
|
768
|
-
schema: {
|
|
769
|
-
type: "string",
|
|
770
|
-
pattern: "^[0-9a-f]{64}$",
|
|
771
|
-
},
|
|
772
|
-
description: "The signing certificate SHA-256, on a signed artifact",
|
|
773
|
-
},
|
|
774
767
|
"timbro-encf": {
|
|
775
768
|
schema: {
|
|
776
769
|
type: "string",
|
|
@@ -829,14 +822,6 @@ export const invoiceApiContract = {
|
|
|
829
822
|
},
|
|
830
823
|
description: "The retained PDF SHA-256, on a printed representation",
|
|
831
824
|
},
|
|
832
|
-
"timbro-security-code": {
|
|
833
|
-
schema: {
|
|
834
|
-
type: "string",
|
|
835
|
-
maxLength: 6,
|
|
836
|
-
minLength: 6,
|
|
837
|
-
},
|
|
838
|
-
description: "The DGII security code, on a signed artifact",
|
|
839
|
-
},
|
|
840
825
|
"timbro-signed-source-sha256": {
|
|
841
826
|
schema: {
|
|
842
827
|
type: "string",
|
|
@@ -9294,6 +9279,22 @@ export const invoiceApiContract = {
|
|
|
9294
9279
|
},
|
|
9295
9280
|
],
|
|
9296
9281
|
},
|
|
9282
|
+
itemCodes: {
|
|
9283
|
+
oneOf: [
|
|
9284
|
+
{
|
|
9285
|
+
type: "null",
|
|
9286
|
+
},
|
|
9287
|
+
{
|
|
9288
|
+
type: "array",
|
|
9289
|
+
items: {
|
|
9290
|
+
$ref: "#/components/schemas/InvoiceItemCode",
|
|
9291
|
+
},
|
|
9292
|
+
maxItems: 5,
|
|
9293
|
+
minItems: 0,
|
|
9294
|
+
"x-timbro-submission-validation": ["minItems", "maxItems"],
|
|
9295
|
+
},
|
|
9296
|
+
],
|
|
9297
|
+
},
|
|
9297
9298
|
kind: {
|
|
9298
9299
|
$ref: "#/components/schemas/SourceItemKind",
|
|
9299
9300
|
},
|
|
@@ -9319,6 +9320,27 @@ export const invoiceApiContract = {
|
|
|
9319
9320
|
},
|
|
9320
9321
|
additionalProperties: false,
|
|
9321
9322
|
},
|
|
9323
|
+
InvoiceItemCode: {
|
|
9324
|
+
type: "object",
|
|
9325
|
+
required: ["typeCode", "code"],
|
|
9326
|
+
properties: {
|
|
9327
|
+
code: {
|
|
9328
|
+
type: "string",
|
|
9329
|
+
maxLength: 35,
|
|
9330
|
+
minLength: 1,
|
|
9331
|
+
pattern: "^[^\\p{White_Space}](?:[\\s\\S]*[^\\p{White_Space}])?$",
|
|
9332
|
+
"x-timbro-submission-validation": ["minLength", "maxLength", "pattern"],
|
|
9333
|
+
},
|
|
9334
|
+
typeCode: {
|
|
9335
|
+
type: "string",
|
|
9336
|
+
maxLength: 14,
|
|
9337
|
+
minLength: 1,
|
|
9338
|
+
pattern: "^[^\\p{White_Space}](?:[\\s\\S]*[^\\p{White_Space}])?$",
|
|
9339
|
+
"x-timbro-submission-validation": ["minLength", "maxLength", "pattern"],
|
|
9340
|
+
},
|
|
9341
|
+
},
|
|
9342
|
+
additionalProperties: false,
|
|
9343
|
+
},
|
|
9322
9344
|
SourceMeasurementUnit: {
|
|
9323
9345
|
type: "string",
|
|
9324
9346
|
description: "Common semantic measurement units mapped to official DGII catalog codes by fiscal-document.",
|
|
@@ -9550,27 +9572,6 @@ export const invoiceApiContract = {
|
|
|
9550
9572
|
},
|
|
9551
9573
|
additionalProperties: false,
|
|
9552
9574
|
},
|
|
9553
|
-
InvoiceItemCode: {
|
|
9554
|
-
type: "object",
|
|
9555
|
-
required: ["typeCode", "code"],
|
|
9556
|
-
properties: {
|
|
9557
|
-
code: {
|
|
9558
|
-
type: "string",
|
|
9559
|
-
maxLength: 35,
|
|
9560
|
-
minLength: 1,
|
|
9561
|
-
pattern: "^[^\\p{White_Space}](?:[\\s\\S]*[^\\p{White_Space}])?$",
|
|
9562
|
-
"x-timbro-submission-validation": ["minLength", "maxLength", "pattern"],
|
|
9563
|
-
},
|
|
9564
|
-
typeCode: {
|
|
9565
|
-
type: "string",
|
|
9566
|
-
maxLength: 14,
|
|
9567
|
-
minLength: 1,
|
|
9568
|
-
pattern: "^[^\\p{White_Space}](?:[\\s\\S]*[^\\p{White_Space}])?$",
|
|
9569
|
-
"x-timbro-submission-validation": ["minLength", "maxLength", "pattern"],
|
|
9570
|
-
},
|
|
9571
|
-
},
|
|
9572
|
-
additionalProperties: false,
|
|
9573
|
-
},
|
|
9574
9575
|
InvoicePurchaseTax: {
|
|
9575
9576
|
oneOf: [
|
|
9576
9577
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
import { zAcceptInvitationResponse, zApproveDirectConnectionRequestResponse, zAuthorizeAuthorityRejectedReplacementResponse, zBeginVercelSourceProviderInstallationResponse, zCancelDirectConnectionRequestResponse, zCloseWorkspaceSessionResponse, zCompleteLegalIssuerProfileResponse, zCompleteSourceConnectionActivationVerificationResponse, zCompleteVercelSourceProviderInstallationResponse, zConfirmDirectConnectionResponse, zCreateCertificateCustodyBindingResponse, zCreateDirectConnectionRequestResponse, zCreateFiscalOperationResponse, zCreateHostedInvoiceResponse, zCreateHostedTenantResponse, zCreateHostedTenantWebhookSecretRotationResponse, zCreateInvoiceDeliveryResponse, zCreateInvoiceResponse, zCreateOrganizationResponse, zCreateSourceConnectionResponse, zDeclareReceptionMountResponse, zDownloadHostedInvoicePdfResponse, zDownloadHostedInvoiceXmlResponse, zDownloadInvoicePdfResponse, zDownloadInvoiceReceiptPdfResponse, zDownloadInvoiceXmlResponse, zFindFiscalArtifactResponse, zFindFiscalOperationBySourceResponse, zFindFiscalOperationResponse, zGetSourceReceivedDocumentResponse, zHealthLiveResponse, zHealthReadyResponse, zImportHostedCertificateCustodyResponse, zInspectFiscalNumberAuthorizationHistoryResponse, zInviteMemberResponse, zIssueHostedInvoiceCredentialResponse, zListAuthorizedVercelProjectsResponse, zListCertificateCustodyBindingsResponse, zListFiscalOperationsResponse, zListHostedInvoicesResponse, zListInvitationsResponse, zListInvoicesResponse, zListLegalIssuersResponse, zListOrganizationFiscalOperationsResponse, zListReceivedDocumentsResponse, zListSourceConnectionsResponse, zListSourceProviderAuthorizationsResponse, zListSourceReceivedDocumentsResponse, zListWebhookDeliveriesResponse, zOpenWorkspaceSessionResponse, zPollDirectConnectionRequestResponse, zPreviewDirectConnectionRequestResponse, zPreviewHostedInvoiceResponse, zPreviewInvoiceResponse, zProblemBody, zReadAuditEventsResponse, zReadAuthorizedVercelProjectQualificationResponse, zReadCertificateCustodyBindingResponse, zReadCertificateCustodyReadinessResponse, zReadCurrentUserAccountResponse, zReadElectronicFiscalDocumentEligibilityResponse, zReadFiscalNumberAuthorizationReadinessResponse, zReadFiscalOperationTimingResponse, zReadOnboardingLegalIssuerIdentityResponse, zReadOnboardingReadinessResponse, zReadOnboardingServiceScopeResponse, zReadOrganizationFiscalOperationResponse, zReadReceivedDocumentResponse, zReadSourceConnectionResponse, zReadSourceProviderAuthorizationResponse, zRecordCommercialResponseResponse, zRecoverSourceConnectionActivationResponse, zRegisterFiscalNumberAuthorizationResponse, zRegisterLegalIssuerResponse, zRegisterUserAccountResponse, zRegisterWebhookEndpointResponse, zReleaseHostedTenantResponse, zReplaceHostedInvoiceResponse, zReplaceInvoiceResponse, zReplayWebhookEventsResponse, zRespondToReceivedDocumentResponse, zRetrieveFiscalDeliveryPrintedRepresentationResponse, zRetrieveHostedInvoiceResponse, zRetrieveInvoiceDeliveryResponse, zRetrieveInvoiceReceiptResponse, zRetrieveInvoiceResponse, zRetrieveWorkspaceFiscalArtifactResponse, zRevokeCertificateCustodyCertificateVersionResponse, zShareHostedInvoiceReceiptResponse, zShareInvoiceReceiptResponse, zUpdateOnboardingLegalIssuerIdentityResponse, zUpdateOnboardingServiceScopeResponse, } from "./zod.gen.js";
|
|
2
|
+
import { zAcceptInvitationResponse, zApproveDirectConnectionRequestResponse, zAuthorizeAuthorityRejectedReplacementResponse, zBeginVercelSourceProviderInstallationResponse, zCancelDirectConnectionRequestResponse, zCloseWorkspaceSessionResponse, zCompleteLegalIssuerProfileResponse, zCompleteSourceConnectionActivationVerificationResponse, zCompleteVercelSourceProviderInstallationResponse, zConfirmDirectConnectionResponse, zCreateCertificateCustodyBindingResponse, zCreateDirectConnectionRequestResponse, zCreateFiscalOperationResponse, zCreateHostedInvoiceResponse, zCreateHostedTenantResponse, zCreateHostedTenantWebhookSecretRotationResponse, zCreateInvoiceDeliveryResponse, zCreateInvoiceResponse, zCreateOrganizationResponse, zCreateSourceConnectionResponse, zDeclareReceptionMountResponse, zDownloadHostedInvoicePdfResponse, zDownloadHostedInvoiceXmlResponse, zDownloadInvoicePdfResponse, zDownloadInvoiceReceiptPdfResponse, zDownloadInvoiceXmlResponse, zFindFiscalArtifactResponse, zFindFiscalOperationBySourceResponse, zFindFiscalOperationResponse, zGetSourceReceivedDocumentResponse, zHealthLiveResponse, zHealthReadyResponse, zImportHostedCertificateCustodyResponse, zInspectFiscalNumberAuthorizationHistoryResponse, zInviteMemberResponse, zIssueHostedInvoiceCredentialResponse, zListAuthorizedVercelProjectsResponse, zListCertificateCustodyBindingsResponse, zListFiscalOperationsResponse, zListHostedInvoicesResponse, zListInvitationsResponse, zListInvoicesResponse, zListLegalIssuersResponse, zListOrganizationFiscalOperationsResponse, zListReceivedDocumentsResponse, zListSourceConnectionsResponse, zListSourceProviderAuthorizationsResponse, zListSourceReceivedDocumentsResponse, zListWebhookDeliveriesResponse, zOpenWorkspaceSessionResponse, zPollDirectConnectionRequestResponse, zPreviewDirectConnectionRequestResponse, zPreviewHostedInvoiceResponse, zPreviewInvoiceResponse, zProblemBody, zReadAuditEventsResponse, zReadAuthorizedVercelProjectQualificationResponse, zReadCertificateCustodyBindingResponse, zReadCertificateCustodyReadinessResponse, zReadCurrentUserAccountResponse, zReadElectronicFiscalDocumentEligibilityResponse, zReadFiscalNumberAuthorizationReadinessResponse, zReadFiscalOperationTimingResponse, zReadOnboardingLegalIssuerIdentityResponse, zReadOnboardingReadinessResponse, zReadOnboardingServiceScopeResponse, zReadOrganizationFiscalOperationResponse, zReadReceivedDocumentResponse, zReadSourceConnectionResponse, zReadSourceProviderAuthorizationResponse, zRecordCommercialResponseResponse, zRecoverSourceConnectionActivationResponse, zRegisterFiscalNumberAuthorizationResponse, zRegisterLegalIssuerResponse, zRegisterUserAccountResponse, zRegisterWebhookEndpointResponse, zReleaseHostedTenantResponse, zReplaceHostedInvoiceResponse, zReplaceInvoiceResponse, zReplayWebhookEventsResponse, zRespondToReceivedDocumentResponse, zRetrieveFiscalDeliveryPrintedRepresentationResponse, zRetrieveHostedInvoiceResponse, zRetrieveInvoiceDeliveryResponse, zRetrieveInvoiceReceiptResponse, zRetrieveInvoiceResponse, zRetrieveWorkspaceFiscalArtifactResponse, zRevokeCertificateCustodyCertificateVersionResponse, zShareHostedInvoiceReceiptResponse, zShareInvoiceReceiptResponse, zUpdateOnboardingLegalIssuerIdentityResponse, zUpdateOnboardingServiceScopeResponse, } from "./zod-response.gen.js";
|
|
3
3
|
export const healthLive = (options) => options.client.get({
|
|
4
4
|
response_decoder: (response) => {
|
|
5
5
|
switch (response.status) {
|
|
@@ -1194,6 +1194,7 @@ export type InvoiceGovernmentItem = {
|
|
|
1194
1194
|
export type InvoiceItem = {
|
|
1195
1195
|
description: string;
|
|
1196
1196
|
id?: null | string | undefined;
|
|
1197
|
+
itemCodes?: null | Array<InvoiceItemCode> | undefined;
|
|
1197
1198
|
kind: SourceItemKind;
|
|
1198
1199
|
legalTip?: boolean | null | undefined;
|
|
1199
1200
|
quantity: string;
|