@timbro/invoices 0.9.0-next.0 → 0.9.0-next.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/dist/generated/hosted/sdk.gen.d.ts.map +1 -1
- package/dist/generated/hosted/sdk.gen.js +1 -1
- package/dist/generated/hosted/zod.gen.js +2 -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/types.gen.d.ts +1 -0
- package/dist/generated/types.gen.d.ts.map +1 -1
- 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/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.gen.d.ts","sourceRoot":"","sources":["../../../src/generated/hosted/sdk.gen.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,MAAM,EACN,UAAU,EACV,OAAO,IAAI,QAAQ,EACnB,aAAa,EACb,UAAU,EACX,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"sdk.gen.d.ts","sourceRoot":"","sources":["../../../src/generated/hosted/sdk.gen.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,MAAM,EACN,UAAU,EACV,OAAO,IAAI,QAAQ,EACnB,aAAa,EACb,UAAU,EACX,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EACV,sBAAsB,EACtB,wBAAwB,EACxB,2BAA2B,EAC3B,yBAAyB,EACzB,2BAA2B,EAC3B,8BAA8B,EAC9B,yBAAyB,EACzB,2BAA2B,EAC3B,8BAA8B,EAC9B,4BAA4B,EAC5B,8BAA8B,EAC9B,iCAAiC,EACjC,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACtB,yBAAyB,EACzB,yBAAyB,EACzB,2BAA2B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KAC3C,aAAa,CAAC,+BAA+B,EAAE,4BAA4B,CA2D1E,CAAC;AAEL;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,YAC3B,OAAO,CAAC,6BAA6B,CAAC,KAC9C,aAAa,CAAC,kCAAkC,EAAE,+BAA+B,CA2DhF,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { zConfigureInvoicingResponse, zCreateWebhookEndpointResponse, zDeleteWebhookEndpointResponse, zImportSigningCertificateResponse, zIssueInvoiceKeyResponse, zIssueTestInvoiceResponse, zListWebhookDeliveriesResponse, zListWebhookEndpointsResponse, zProblem, zReactivateWebhookEndpointResponse, zReplayWebhookEventsResponse, zRetrieveBusinessResponse, zRetrieveWebhookEndpointResponse, zRotateWebhookEndpointSecretResponse, zSuspendWebhookEndpointResponse, zUpdateBusinessResponse, } from "./zod.gen.js";
|
|
2
2
|
/**
|
|
3
3
|
* Retrieve the merchant business
|
|
4
4
|
*
|
|
@@ -2053,7 +2053,7 @@ export const zCreateWebhookEndpointResponse = z.strictObject({
|
|
|
2053
2053
|
secretCreatedAt: z.iso.datetime(),
|
|
2054
2054
|
previousSecretExpiresAt: z.iso.datetime().nullable(),
|
|
2055
2055
|
createdAt: z.iso.datetime(),
|
|
2056
|
-
secret: z.string().regex(/^whsec_[A-Za-z0-9
|
|
2056
|
+
secret: z.string().regex(/^whsec_[A-Za-z0-9+/]+={0,2}$/),
|
|
2057
2057
|
});
|
|
2058
2058
|
export const zDeleteWebhookEndpointPath = z.object({
|
|
2059
2059
|
webhookEndpointId: z.string().regex(/^webhook_endpoint_[0-9a-hjkmnp-tv-z]{24,}$/),
|
|
@@ -2219,7 +2219,7 @@ export const zRotateWebhookEndpointSecretResponse = z.strictObject({
|
|
|
2219
2219
|
secretCreatedAt: z.iso.datetime(),
|
|
2220
2220
|
previousSecretExpiresAt: z.iso.datetime().nullable(),
|
|
2221
2221
|
createdAt: z.iso.datetime(),
|
|
2222
|
-
secret: z.string().regex(/^whsec_[A-Za-z0-9
|
|
2222
|
+
secret: z.string().regex(/^whsec_[A-Za-z0-9+/]+={0,2}$/),
|
|
2223
2223
|
});
|
|
2224
2224
|
export const zSuspendWebhookEndpointPath = z.object({
|
|
2225
2225
|
webhookEndpointId: z.string().regex(/^webhook_endpoint_[0-9a-hjkmnp-tv-z]{24,}$/),
|
|
@@ -721,13 +721,6 @@ export declare const invoiceApiContract: {
|
|
|
721
721
|
readonly "200": {
|
|
722
722
|
readonly description: "The retained authoritative PDF, with verified digest and signed-source identity.";
|
|
723
723
|
readonly headers: {
|
|
724
|
-
readonly "timbro-certificate-sha256": {
|
|
725
|
-
readonly schema: {
|
|
726
|
-
readonly type: "string";
|
|
727
|
-
readonly pattern: "^[0-9a-f]{64}$";
|
|
728
|
-
};
|
|
729
|
-
readonly description: "The signing certificate SHA-256, on a signed artifact";
|
|
730
|
-
};
|
|
731
724
|
readonly "timbro-encf": {
|
|
732
725
|
readonly schema: {
|
|
733
726
|
readonly type: "string";
|
|
@@ -786,14 +779,6 @@ export declare const invoiceApiContract: {
|
|
|
786
779
|
};
|
|
787
780
|
readonly description: "The retained PDF SHA-256, on a printed representation";
|
|
788
781
|
};
|
|
789
|
-
readonly "timbro-security-code": {
|
|
790
|
-
readonly schema: {
|
|
791
|
-
readonly type: "string";
|
|
792
|
-
readonly maxLength: 6;
|
|
793
|
-
readonly minLength: 6;
|
|
794
|
-
};
|
|
795
|
-
readonly description: "The DGII security code, on a signed artifact";
|
|
796
|
-
};
|
|
797
782
|
readonly "timbro-signed-source-sha256": {
|
|
798
783
|
readonly schema: {
|
|
799
784
|
readonly type: "string";
|
|
@@ -4853,6 +4838,19 @@ export declare const invoiceApiContract: {
|
|
|
4853
4838
|
readonly "x-timbro-submission-validation": readonly ["minLength", "maxLength", "pattern"];
|
|
4854
4839
|
}];
|
|
4855
4840
|
};
|
|
4841
|
+
readonly itemCodes: {
|
|
4842
|
+
readonly oneOf: readonly [{
|
|
4843
|
+
readonly type: "null";
|
|
4844
|
+
}, {
|
|
4845
|
+
readonly type: "array";
|
|
4846
|
+
readonly items: {
|
|
4847
|
+
readonly $ref: "#/components/schemas/InvoiceItemCode";
|
|
4848
|
+
};
|
|
4849
|
+
readonly maxItems: 5;
|
|
4850
|
+
readonly minItems: 0;
|
|
4851
|
+
readonly "x-timbro-submission-validation": readonly ["minItems", "maxItems"];
|
|
4852
|
+
}];
|
|
4853
|
+
};
|
|
4856
4854
|
readonly kind: {
|
|
4857
4855
|
readonly $ref: "#/components/schemas/SourceItemKind";
|
|
4858
4856
|
};
|
|
@@ -4878,6 +4876,27 @@ export declare const invoiceApiContract: {
|
|
|
4878
4876
|
};
|
|
4879
4877
|
readonly additionalProperties: false;
|
|
4880
4878
|
};
|
|
4879
|
+
readonly InvoiceItemCode: {
|
|
4880
|
+
readonly type: "object";
|
|
4881
|
+
readonly required: readonly ["typeCode", "code"];
|
|
4882
|
+
readonly properties: {
|
|
4883
|
+
readonly code: {
|
|
4884
|
+
readonly type: "string";
|
|
4885
|
+
readonly maxLength: 35;
|
|
4886
|
+
readonly minLength: 1;
|
|
4887
|
+
readonly pattern: "^[^\\p{White_Space}](?:[\\s\\S]*[^\\p{White_Space}])?$";
|
|
4888
|
+
readonly "x-timbro-submission-validation": readonly ["minLength", "maxLength", "pattern"];
|
|
4889
|
+
};
|
|
4890
|
+
readonly typeCode: {
|
|
4891
|
+
readonly type: "string";
|
|
4892
|
+
readonly maxLength: 14;
|
|
4893
|
+
readonly minLength: 1;
|
|
4894
|
+
readonly pattern: "^[^\\p{White_Space}](?:[\\s\\S]*[^\\p{White_Space}])?$";
|
|
4895
|
+
readonly "x-timbro-submission-validation": readonly ["minLength", "maxLength", "pattern"];
|
|
4896
|
+
};
|
|
4897
|
+
};
|
|
4898
|
+
readonly additionalProperties: false;
|
|
4899
|
+
};
|
|
4881
4900
|
readonly SourceMeasurementUnit: {
|
|
4882
4901
|
readonly type: "string";
|
|
4883
4902
|
readonly description: "Common semantic measurement units mapped to official DGII catalog codes by fiscal-document.";
|
|
@@ -5090,27 +5109,6 @@ export declare const invoiceApiContract: {
|
|
|
5090
5109
|
};
|
|
5091
5110
|
readonly additionalProperties: false;
|
|
5092
5111
|
};
|
|
5093
|
-
readonly InvoiceItemCode: {
|
|
5094
|
-
readonly type: "object";
|
|
5095
|
-
readonly required: readonly ["typeCode", "code"];
|
|
5096
|
-
readonly properties: {
|
|
5097
|
-
readonly code: {
|
|
5098
|
-
readonly type: "string";
|
|
5099
|
-
readonly maxLength: 35;
|
|
5100
|
-
readonly minLength: 1;
|
|
5101
|
-
readonly pattern: "^[^\\p{White_Space}](?:[\\s\\S]*[^\\p{White_Space}])?$";
|
|
5102
|
-
readonly "x-timbro-submission-validation": readonly ["minLength", "maxLength", "pattern"];
|
|
5103
|
-
};
|
|
5104
|
-
readonly typeCode: {
|
|
5105
|
-
readonly type: "string";
|
|
5106
|
-
readonly maxLength: 14;
|
|
5107
|
-
readonly minLength: 1;
|
|
5108
|
-
readonly pattern: "^[^\\p{White_Space}](?:[\\s\\S]*[^\\p{White_Space}])?$";
|
|
5109
|
-
readonly "x-timbro-submission-validation": readonly ["minLength", "maxLength", "pattern"];
|
|
5110
|
-
};
|
|
5111
|
-
};
|
|
5112
|
-
readonly additionalProperties: false;
|
|
5113
|
-
};
|
|
5114
5112
|
readonly InvoicePurchaseTax: {
|
|
5115
5113
|
readonly oneOf: readonly [{
|
|
5116
5114
|
readonly type: "object";
|