@timbro/invoices 0.12.0 → 0.14.0-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/README.md +27 -1
- package/dist/admin.d.ts +1 -0
- package/dist/admin.d.ts.map +1 -1
- package/dist/admin.js +1 -0
- package/dist/certification-workbook.d.ts +9 -0
- package/dist/certification-workbook.d.ts.map +1 -0
- package/dist/certification-workbook.js +13 -0
- package/dist/fiscal-engine-runtime.manifest.json +121 -116
- package/dist/fiscal-engine-runtime.provenance.json +198 -193
- package/dist/generated/certification-api-contract.d.ts +430 -0
- package/dist/generated/certification-api-contract.d.ts.map +1 -0
- package/dist/generated/certification-api-contract.js +483 -0
- 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 +13 -1
- package/dist/generated/hosted/sdk.gen.d.ts.map +1 -1
- package/dist/generated/hosted/sdk.gen.js +165 -1
- package/dist/generated/hosted/types.gen.d.ts +308 -6
- package/dist/generated/hosted/types.gen.d.ts.map +1 -1
- package/dist/generated/hosted/zod-response.gen.d.ts +322 -20
- package/dist/generated/hosted/zod-response.gen.d.ts.map +1 -1
- package/dist/generated/hosted/zod-response.gen.js +113 -5
- package/dist/generated/hosted/zod.gen.d.ts +221 -5
- package/dist/generated/hosted/zod.gen.d.ts.map +1 -1
- package/dist/generated/hosted/zod.gen.js +133 -5
- 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 +1346 -106
- package/dist/generated/invoice-api-contract.d.ts.map +1 -1
- package/dist/generated/invoice-api-contract.js +1756 -164
- package/dist/generated/problem-catalog.d.ts.map +1 -1
- package/dist/generated/problem-catalog.js +2 -0
- package/dist/generated/sdk.gen.d.ts +5 -1
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/sdk.gen.js +109 -1
- package/dist/generated/types.gen.d.ts +544 -55
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/generated/zod-response.gen.d.ts +20971 -3786
- package/dist/generated/zod-response.gen.d.ts.map +1 -1
- package/dist/generated/zod-response.gen.js +228 -6
- package/dist/generated/zod.gen.d.ts +17521 -2762
- package/dist/generated/zod.gen.d.ts.map +1 -1
- package/dist/generated/zod.gen.js +2328 -1438
- package/dist/generated-operation-client.d.ts +2 -2
- package/dist/generated-operation-client.d.ts.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/invoice-hosted-controls.d.ts +11 -2
- package/dist/invoice-hosted-controls.d.ts.map +1 -1
- package/dist/invoice-hosted-controls.js +26 -1
- package/dist/problem-contract.d.ts +3 -1
- package/dist/problem-contract.d.ts.map +1 -1
- package/dist/timbro_fiscal_engine_bg.wasm +0 -0
- package/package.json +2 -2
|
@@ -102,6 +102,19 @@ export const zBuyerDeliveryTerminalResultCode = z.enum([
|
|
|
102
102
|
* Exporter classification retained as a caller declaration, not authority confirmation.
|
|
103
103
|
*/
|
|
104
104
|
export const zCertificateCustodySignatureAlgorithm = z.enum(["rsa_sha256"]);
|
|
105
|
+
export const zCertificationTestSetKind = z.enum(["ecf"]);
|
|
106
|
+
export const zCertificationTestSetObject = z.enum(["certification_test_set"]);
|
|
107
|
+
export const zCertificationTestSetRequirement = z.enum(["case_mapping_pending"]);
|
|
108
|
+
export const zCertificationWorksheetName = z.enum(["ECF", "RFCE"]);
|
|
109
|
+
export const zCertificationWorksheetSummary = z.object({
|
|
110
|
+
caseCount: z.int().gte(1).lte(1000),
|
|
111
|
+
name: zCertificationWorksheetName,
|
|
112
|
+
});
|
|
113
|
+
export const zCertificationTestSetReview = z.object({
|
|
114
|
+
requirements: z.array(zCertificationTestSetRequirement),
|
|
115
|
+
status: z.enum(["review_required"]),
|
|
116
|
+
worksheets: z.array(zCertificationWorksheetSummary),
|
|
117
|
+
});
|
|
105
118
|
/**
|
|
106
119
|
* The wire family a Collection page announces.
|
|
107
120
|
*/
|
|
@@ -506,7 +519,7 @@ export const zFiscalLifecycleResultCode = z.enum([
|
|
|
506
519
|
"fiscal_signing_retry_requested",
|
|
507
520
|
]);
|
|
508
521
|
/**
|
|
509
|
-
*
|
|
522
|
+
* Deterministic totals calculated for one fiscal line.
|
|
510
523
|
*/
|
|
511
524
|
export const zFiscalLineTotal = z.object({
|
|
512
525
|
net: z.string().regex(/^-?[0-9]+\.[0-9]{2}$/),
|
|
@@ -517,7 +530,7 @@ export const zFiscalLineTotal = z.object({
|
|
|
517
530
|
/**
|
|
518
531
|
* One ordinary fiscal line whose profile admits only the legal-tip code.
|
|
519
532
|
*/
|
|
520
|
-
export const zFiscalNumberAuthorizationKnowledge = z.enum(["verified", "reported"]);
|
|
533
|
+
export const zFiscalNumberAuthorizationKnowledge = z.enum(["verified", "reported", "disputed"]);
|
|
521
534
|
/**
|
|
522
535
|
* Origin of a fiscal-number authorization fact.
|
|
523
536
|
*/
|
|
@@ -525,6 +538,7 @@ export const zFiscalNumberAuthorizationSourceKind = z.enum([
|
|
|
525
538
|
"official_source_manifest",
|
|
526
539
|
"operator_attested",
|
|
527
540
|
"caller_reported",
|
|
541
|
+
"dgii_response",
|
|
528
542
|
]);
|
|
529
543
|
/**
|
|
530
544
|
* Lifecycle state of a fiscal-number authorization fact.
|
|
@@ -753,6 +767,10 @@ export const zInvoiceBuyerIdentity = lenientUnion([
|
|
|
753
767
|
kind: z.enum(["anonymous"]),
|
|
754
768
|
}),
|
|
755
769
|
z.object({
|
|
770
|
+
deliveryPhone: z
|
|
771
|
+
.string()
|
|
772
|
+
.regex(/^[0-9]{3}-[0-9]{3}-[0-9]{4}$/)
|
|
773
|
+
.optional(),
|
|
756
774
|
kind: z.enum(["domestic"]),
|
|
757
775
|
legalName: z
|
|
758
776
|
.string()
|
|
@@ -762,6 +780,10 @@ export const zInvoiceBuyerIdentity = lenientUnion([
|
|
|
762
780
|
taxId: z.string().regex(/^[0-9]{9}([0-9]{2})?$/),
|
|
763
781
|
}),
|
|
764
782
|
z.object({
|
|
783
|
+
deliveryPhone: z
|
|
784
|
+
.string()
|
|
785
|
+
.regex(/^[0-9]{3}-[0-9]{3}-[0-9]{4}$/)
|
|
786
|
+
.optional(),
|
|
765
787
|
foreignId: z
|
|
766
788
|
.string()
|
|
767
789
|
.refine((text) => Array.from(text).length >= 1)
|
|
@@ -946,6 +968,34 @@ export const zInvoiceLatestEvent = z.object({
|
|
|
946
968
|
occurredAt: z.iso.datetime(),
|
|
947
969
|
sequence: z.string().regex(/^[1-9][0-9]*$/),
|
|
948
970
|
});
|
|
971
|
+
export const zInvoiceLinePriceAdjustmentResource = lenientUnion([
|
|
972
|
+
z.object({
|
|
973
|
+
amount: z.string().regex(/^[0-9]{1,16}(\.[0-9]{1,2})?$/),
|
|
974
|
+
kind: z.enum(["fixed_amount"]),
|
|
975
|
+
}),
|
|
976
|
+
z.object({
|
|
977
|
+
kind: z.enum(["percentage"]),
|
|
978
|
+
percentage: z.string().regex(/^(?=[0-9.]*[1-9])[0-9]{1,3}(\.[0-9]{1,2})?$/),
|
|
979
|
+
}),
|
|
980
|
+
]);
|
|
981
|
+
export const zInvoiceLinePriceAdjustmentsResource = z.object({
|
|
982
|
+
discounts: z.array(zInvoiceLinePriceAdjustmentResource),
|
|
983
|
+
surcharges: z.array(zInvoiceLinePriceAdjustmentResource),
|
|
984
|
+
});
|
|
985
|
+
export const zInvoicePaymentAccountResource = z.object({
|
|
986
|
+
accountNumber: z
|
|
987
|
+
.string()
|
|
988
|
+
.refine((text) => Array.from(text).length >= 1)
|
|
989
|
+
.refine((text) => Array.from(text).length <= 28)
|
|
990
|
+
.regex(/^(?=.*[^\p{White_Space}])[\s\S]+$/u)
|
|
991
|
+
.nullable(),
|
|
992
|
+
bankName: z
|
|
993
|
+
.string()
|
|
994
|
+
.refine((text) => Array.from(text).length >= 1)
|
|
995
|
+
.refine((text) => Array.from(text).length <= 75)
|
|
996
|
+
.regex(/^(?=.*[^\p{White_Space}])[\s\S]+$/u)
|
|
997
|
+
.nullable(),
|
|
998
|
+
});
|
|
949
999
|
export const zInvoicePdfLayout = z.enum(["a4", "receipt80mm"]);
|
|
950
1000
|
export const zInvoicePdfStage = z.enum([
|
|
951
1001
|
"awaitingSignedSource",
|
|
@@ -971,6 +1021,131 @@ export const zInvoiceReceiptAccess = z.object({
|
|
|
971
1021
|
});
|
|
972
1022
|
export const zInvoiceReceiptCurrency = z.enum(["DOP"]);
|
|
973
1023
|
export const zInvoiceReceiptStatus = z.enum(["accepted", "acceptedWithObservations"]);
|
|
1024
|
+
export const zInvoiceReferenceAttributionResource = lenientUnion([
|
|
1025
|
+
z.object({
|
|
1026
|
+
fiscalOperationId: z
|
|
1027
|
+
.string()
|
|
1028
|
+
.regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/),
|
|
1029
|
+
kind: z.enum(["internal_operation"]),
|
|
1030
|
+
}),
|
|
1031
|
+
z.object({
|
|
1032
|
+
environment: zFiscalEnvironment,
|
|
1033
|
+
issuerTaxId: z.string().regex(/^[0-9]{9}([0-9]{2})?$/),
|
|
1034
|
+
kind: z.enum(["external_document"]),
|
|
1035
|
+
sourceReference: z
|
|
1036
|
+
.string()
|
|
1037
|
+
.refine((text) => Array.from(text).length >= 1)
|
|
1038
|
+
.refine((text) => Array.from(text).length <= 250)
|
|
1039
|
+
.regex(/^(?=.*[^\p{White_Space}])[\s\S]+$/u),
|
|
1040
|
+
}),
|
|
1041
|
+
]);
|
|
1042
|
+
export const zInvoiceReferenceInformationResource = z.object({
|
|
1043
|
+
attribution: zInvoiceReferenceAttributionResource,
|
|
1044
|
+
fiscalNumber: z.string().regex(/^(B[0-9]{10}|E[0-9]{12}|[AP][0-9]{18})$/),
|
|
1045
|
+
issuedOn: z
|
|
1046
|
+
.string()
|
|
1047
|
+
.regex(/^(?:(?:31-(?:0?[13578]|1[02])|(?:29|30)-(?:0?[13-9]|1[0-2])|(?:0?[1-9]|1[0-9]|2[0-8])-(?:0?[1-9]|1[0-2]))-(?:19|20)[0-9]{2}|29-0?2-(?:(?:19|20)(?:0[48]|[2468][048]|[13579][26])|2000))$/),
|
|
1048
|
+
modificationCode: z.enum(["4", "5"]),
|
|
1049
|
+
});
|
|
1050
|
+
export const zInvoiceShipmentInformationResource = z.object({
|
|
1051
|
+
containerNumber: z
|
|
1052
|
+
.string()
|
|
1053
|
+
.refine((text) => Array.from(text).length >= 1)
|
|
1054
|
+
.refine((text) => Array.from(text).length <= 100)
|
|
1055
|
+
.regex(/^(?=.*[^\p{White_Space}])[\s\S]+$/u)
|
|
1056
|
+
.nullable(),
|
|
1057
|
+
deliveryNoteNumber: z
|
|
1058
|
+
.string()
|
|
1059
|
+
.refine((text) => Array.from(text).length >= 1)
|
|
1060
|
+
.refine((text) => Array.from(text).length <= 20)
|
|
1061
|
+
.regex(/^(?=.*[^\p{White_Space}])[\s\S]+$/u)
|
|
1062
|
+
.nullable(),
|
|
1063
|
+
driver: z
|
|
1064
|
+
.string()
|
|
1065
|
+
.refine((text) => Array.from(text).length >= 1)
|
|
1066
|
+
.refine((text) => Array.from(text).length <= 20)
|
|
1067
|
+
.regex(/^(?=.*[^\p{White_Space}])[\s\S]+$/u)
|
|
1068
|
+
.nullable(),
|
|
1069
|
+
grossWeight: z
|
|
1070
|
+
.string()
|
|
1071
|
+
.regex(/^[0-9]{1,16}(\.[0-9]{1,2})?$/)
|
|
1072
|
+
.nullable(),
|
|
1073
|
+
grossWeightUnit: z
|
|
1074
|
+
.string()
|
|
1075
|
+
.regex(/^([1-9]|[1-5][0-9]|6[0-2])$/)
|
|
1076
|
+
.nullable(),
|
|
1077
|
+
netWeight: z
|
|
1078
|
+
.string()
|
|
1079
|
+
.regex(/^[0-9]{1,16}(\.[0-9]{1,2})?$/)
|
|
1080
|
+
.nullable(),
|
|
1081
|
+
netWeightUnit: z
|
|
1082
|
+
.string()
|
|
1083
|
+
.regex(/^([1-9]|[1-5][0-9]|6[0-2])$/)
|
|
1084
|
+
.nullable(),
|
|
1085
|
+
packageCount: z
|
|
1086
|
+
.string()
|
|
1087
|
+
.regex(/^[0-9]{1,16}(\.[0-9]{1,2})?$/)
|
|
1088
|
+
.nullable(),
|
|
1089
|
+
packageUnit: z
|
|
1090
|
+
.string()
|
|
1091
|
+
.regex(/^([1-9]|[1-5][0-9]|6[0-2])$/)
|
|
1092
|
+
.nullable(),
|
|
1093
|
+
packageVolume: z
|
|
1094
|
+
.string()
|
|
1095
|
+
.regex(/^(?=[0-9.]*[1-9])[0-9]{1,16}(\.[0-9]{1,2})?$/)
|
|
1096
|
+
.nullable(),
|
|
1097
|
+
route: z
|
|
1098
|
+
.string()
|
|
1099
|
+
.refine((text) => Array.from(text).length >= 1)
|
|
1100
|
+
.refine((text) => Array.from(text).length <= 20)
|
|
1101
|
+
.regex(/^(?=.*[^\p{White_Space}])[\s\S]+$/u)
|
|
1102
|
+
.nullable(),
|
|
1103
|
+
shipmentDate: z
|
|
1104
|
+
.string()
|
|
1105
|
+
.regex(/^(?:(?:31-(?:0?[13578]|1[02])|(?:29|30)-(?:0?[13-9]|1[0-2])|(?:0?[1-9]|1[0-9]|2[0-8])-(?:0?[1-9]|1[0-2]))-(?:19|20)[0-9]{2}|29-0?2-(?:(?:19|20)(?:0[48]|[2468][048]|[13579][26])|2000))$/)
|
|
1106
|
+
.nullable(),
|
|
1107
|
+
shipmentNumber: z
|
|
1108
|
+
.string()
|
|
1109
|
+
.refine((text) => Array.from(text).length >= 1)
|
|
1110
|
+
.refine((text) => Array.from(text).length <= 25)
|
|
1111
|
+
.regex(/^(?=.*[^\p{White_Space}])[\s\S]+$/u)
|
|
1112
|
+
.nullable(),
|
|
1113
|
+
transportDocumentNumber: z
|
|
1114
|
+
.string()
|
|
1115
|
+
.refine((text) => Array.from(text).length >= 1)
|
|
1116
|
+
.refine((text) => Array.from(text).length <= 20)
|
|
1117
|
+
.regex(/^[0-9]+$/)
|
|
1118
|
+
.nullable(),
|
|
1119
|
+
transportZone: z
|
|
1120
|
+
.string()
|
|
1121
|
+
.refine((text) => Array.from(text).length >= 1)
|
|
1122
|
+
.refine((text) => Array.from(text).length <= 20)
|
|
1123
|
+
.regex(/^(?=.*[^\p{White_Space}])[\s\S]+$/u)
|
|
1124
|
+
.nullable(),
|
|
1125
|
+
vehicleFiche: z
|
|
1126
|
+
.string()
|
|
1127
|
+
.refine((text) => Array.from(text).length >= 1)
|
|
1128
|
+
.refine((text) => Array.from(text).length <= 10)
|
|
1129
|
+
.regex(/^(?=.*[^\p{White_Space}])[\s\S]+$/u)
|
|
1130
|
+
.nullable(),
|
|
1131
|
+
vehiclePlate: z
|
|
1132
|
+
.string()
|
|
1133
|
+
.refine((text) => Array.from(text).length >= 1)
|
|
1134
|
+
.refine((text) => Array.from(text).length <= 7)
|
|
1135
|
+
.regex(/^(?=.*[^\p{White_Space}])[\s\S]+$/u)
|
|
1136
|
+
.nullable(),
|
|
1137
|
+
volumeUnit: z
|
|
1138
|
+
.string()
|
|
1139
|
+
.regex(/^([1-9]|[1-5][0-9]|6[0-2])$/)
|
|
1140
|
+
.nullable(),
|
|
1141
|
+
});
|
|
1142
|
+
export const zInvoiceAdditionalInformationResource = z.object({
|
|
1143
|
+
referenceNumber: z
|
|
1144
|
+
.string()
|
|
1145
|
+
.refine((text) => Array.from(text).length <= 20)
|
|
1146
|
+
.nullable(),
|
|
1147
|
+
shipment: zInvoiceShipmentInformationResource.nullable(),
|
|
1148
|
+
});
|
|
974
1149
|
/**
|
|
975
1150
|
* The signature facts DGII requires on every printed e-CF, read from the signed document.
|
|
976
1151
|
*
|
|
@@ -2322,7 +2497,7 @@ export const zIssuanceBlocker = z.enum([
|
|
|
2322
2497
|
"authorization_exhausted",
|
|
2323
2498
|
"authorization_conflicting",
|
|
2324
2499
|
"authorization_document_type_mismatch",
|
|
2325
|
-
"
|
|
2500
|
+
"sequence_rejected_by_dgii",
|
|
2326
2501
|
"authorization_expired",
|
|
2327
2502
|
"authorization_range_overlap",
|
|
2328
2503
|
"fiscal_number_capacity_exhausted",
|
|
@@ -2338,7 +2513,7 @@ export const zIssuanceReadinessReason = z.enum([
|
|
|
2338
2513
|
"signing_certificate_not_yet_valid",
|
|
2339
2514
|
"authorization_missing",
|
|
2340
2515
|
"authorization_not_active",
|
|
2341
|
-
"
|
|
2516
|
+
"sequence_rejected_by_dgii",
|
|
2342
2517
|
"authorization_not_observed",
|
|
2343
2518
|
"range_exhausted",
|
|
2344
2519
|
"authorization_expiration_invalid",
|
|
@@ -2494,6 +2669,9 @@ export const zLegalIssuerPage = z.object({
|
|
|
2494
2669
|
export const zLegalIssuerResource = z.object({
|
|
2495
2670
|
legal_issuer: zLegalIssuer,
|
|
2496
2671
|
});
|
|
2672
|
+
/**
|
|
2673
|
+
* One fixed-amount or percentage discount or surcharge on a fiscal line.
|
|
2674
|
+
*/
|
|
2497
2675
|
export const zMembershipRole = z.enum(["administrator", "operator"]);
|
|
2498
2676
|
export const zAcceptedMembership = z.object({
|
|
2499
2677
|
organization_id: z.uuid(),
|
|
@@ -2552,7 +2730,12 @@ export const zNotReceivedReason = z.enum([
|
|
|
2552
2730
|
/**
|
|
2553
2731
|
* Numbering values resolved before deterministic fiscal-document construction.
|
|
2554
2732
|
*/
|
|
2733
|
+
export const zNumberingConfirmation = z.enum(["confirmed", "not_yet_confirmed"]);
|
|
2734
|
+
/**
|
|
2735
|
+
* The range Timbro assigns the next fiscal number of this type from.
|
|
2736
|
+
*/
|
|
2555
2737
|
export const zNumberingRange = z.object({
|
|
2738
|
+
confirmation: zNumberingConfirmation,
|
|
2556
2739
|
expiresOn: z.iso.date().nullable(),
|
|
2557
2740
|
remaining: z.int().gte(1).lte(9999999999),
|
|
2558
2741
|
});
|
|
@@ -2633,7 +2816,7 @@ export const zOrganizationResource = z.object({
|
|
|
2633
2816
|
organization: zOrganizationIdentity,
|
|
2634
2817
|
});
|
|
2635
2818
|
/**
|
|
2636
|
-
*
|
|
2819
|
+
* Bank details that accompany an optional payment method table.
|
|
2637
2820
|
*/
|
|
2638
2821
|
export const zPrintedRepresentationA4ProfileVersion = z.enum(["a4.v1"]);
|
|
2639
2822
|
/**
|
|
@@ -2945,6 +3128,24 @@ export const zRequirementId = z.enum([
|
|
|
2945
3128
|
"first_fiscal_operation",
|
|
2946
3129
|
]);
|
|
2947
3130
|
export const zRequirementStatus = z.enum(["complete", "pending", "blocked", "action_required"]);
|
|
3131
|
+
export const zRetainedCertificationWorkbook = z.object({
|
|
3132
|
+
name: z.string(),
|
|
3133
|
+
sha256: z.string().regex(/^[0-9a-f]{64}$/),
|
|
3134
|
+
sizeBytes: z.int().gte(1).lte(3145728),
|
|
3135
|
+
});
|
|
3136
|
+
export const zCertificationTestSetResource = z.object({
|
|
3137
|
+
attemptReference: z.string(),
|
|
3138
|
+
createdAt: z.iso.datetime(),
|
|
3139
|
+
file: zRetainedCertificationWorkbook,
|
|
3140
|
+
generation: z.string().regex(/^[1-9][0-9]*$/),
|
|
3141
|
+
id: z.uuid(),
|
|
3142
|
+
kind: zCertificationTestSetKind,
|
|
3143
|
+
object: zCertificationTestSetObject,
|
|
3144
|
+
review: zCertificationTestSetReview,
|
|
3145
|
+
});
|
|
3146
|
+
export const zCurrentCertificationTestSet = z.object({
|
|
3147
|
+
current: zCertificationTestSetResource.nullable(),
|
|
3148
|
+
});
|
|
2948
3149
|
export const zSchemaValidationDiagnosticCode = z.enum([
|
|
2949
3150
|
"document_xml_unreadable",
|
|
2950
3151
|
"document_schema_rejected",
|
|
@@ -2957,6 +3158,9 @@ export const zSchemaValidationOutcome = z.enum(["succeeded", "failed"]);
|
|
|
2957
3158
|
* Stage at which a fiscal XML artifact was validated.
|
|
2958
3159
|
*/
|
|
2959
3160
|
export const zSchemaValidationStage = z.enum(["unsigned", "signed"]);
|
|
3161
|
+
/**
|
|
3162
|
+
* Typed shipping and transport facts admitted by the official `InformacionesAdicionales` area.
|
|
3163
|
+
*/
|
|
2960
3164
|
export const zSignedDocumentReadinessResource = lenientUnion([
|
|
2961
3165
|
z.object({
|
|
2962
3166
|
status: z.enum(["not_applicable"]),
|
|
@@ -3128,6 +3332,7 @@ export const zSourceFiscalOperationPage = z.object({
|
|
|
3128
3332
|
export const zSourceItemKind = z.enum(["good", "service"]);
|
|
3129
3333
|
export const zInvoiceItemResource = z.object({
|
|
3130
3334
|
additionalTaxCodes: z.array(z.string()),
|
|
3335
|
+
adjustments: zInvoiceLinePriceAdjustmentsResource.nullable(),
|
|
3131
3336
|
description: z.string(),
|
|
3132
3337
|
id: z.string(),
|
|
3133
3338
|
itemCodes: z.array(zInvoiceItemCodeResource),
|
|
@@ -3159,6 +3364,7 @@ export const zInvoicePaymentAllocation = z.object({
|
|
|
3159
3364
|
export const zInvoicePaymentTermsResource = lenientUnion([
|
|
3160
3365
|
z.object({
|
|
3161
3366
|
allocations: z.array(zInvoicePaymentAllocation).max(7),
|
|
3367
|
+
paymentAccount: zInvoicePaymentAccountResource.optional(),
|
|
3162
3368
|
type: z.enum(["immediate"]),
|
|
3163
3369
|
}),
|
|
3164
3370
|
z.object({
|
|
@@ -3194,6 +3400,7 @@ export const zInvoiceReceipt = z.object({
|
|
|
3194
3400
|
export const zInvoiceResource = lenientUnion([
|
|
3195
3401
|
z.object({
|
|
3196
3402
|
acceptedAt: z.iso.datetime().nullable(),
|
|
3403
|
+
additionalInformation: zInvoiceAdditionalInformationResource.nullable(),
|
|
3197
3404
|
buyer: zInvoiceBuyerIdentity.nullable(),
|
|
3198
3405
|
buyerDeliveryReadiness: zInvoiceBuyerDeliveryReadiness,
|
|
3199
3406
|
corrections: z.array(zInvoiceCorrection),
|
|
@@ -3212,6 +3419,7 @@ export const zInvoiceResource = lenientUnion([
|
|
|
3212
3419
|
latestEvent: zInvoiceLatestEvent.nullable(),
|
|
3213
3420
|
originalInvoiceId: z.uuid().nullable(),
|
|
3214
3421
|
paymentTerms: zInvoicePaymentTermsResource.nullable(),
|
|
3422
|
+
referenceInformation: zInvoiceReferenceInformationResource.nullable(),
|
|
3215
3423
|
replacesInvoiceId: z.uuid().nullable(),
|
|
3216
3424
|
source: zInvoiceSource,
|
|
3217
3425
|
status: z.enum(["rejected"]),
|
|
@@ -3222,6 +3430,7 @@ export const zInvoiceResource = lenientUnion([
|
|
|
3222
3430
|
}),
|
|
3223
3431
|
z.object({
|
|
3224
3432
|
acceptedAt: z.iso.datetime().nullable(),
|
|
3433
|
+
additionalInformation: zInvoiceAdditionalInformationResource.nullable(),
|
|
3225
3434
|
buyer: zInvoiceBuyerIdentity.nullable(),
|
|
3226
3435
|
buyerDeliveryReadiness: zInvoiceBuyerDeliveryReadiness,
|
|
3227
3436
|
corrections: z.array(zInvoiceCorrection),
|
|
@@ -3241,6 +3450,7 @@ export const zInvoiceResource = lenientUnion([
|
|
|
3241
3450
|
latestEvent: zInvoiceLatestEvent.nullable(),
|
|
3242
3451
|
originalInvoiceId: z.uuid().nullable(),
|
|
3243
3452
|
paymentTerms: zInvoicePaymentTermsResource.nullable(),
|
|
3453
|
+
referenceInformation: zInvoiceReferenceInformationResource.nullable(),
|
|
3244
3454
|
replacesInvoiceId: z.uuid().nullable(),
|
|
3245
3455
|
source: zInvoiceSource,
|
|
3246
3456
|
stage: zInvoiceProcessingStage,
|
|
@@ -3252,6 +3462,7 @@ export const zInvoiceResource = lenientUnion([
|
|
|
3252
3462
|
}),
|
|
3253
3463
|
z.object({
|
|
3254
3464
|
acceptedAt: z.iso.datetime().nullable(),
|
|
3465
|
+
additionalInformation: zInvoiceAdditionalInformationResource.nullable(),
|
|
3255
3466
|
buyer: zInvoiceBuyerIdentity.nullable(),
|
|
3256
3467
|
buyerDeliveryReadiness: zInvoiceBuyerDeliveryReadiness,
|
|
3257
3468
|
corrections: z.array(zInvoiceCorrection),
|
|
@@ -3271,6 +3482,7 @@ export const zInvoiceResource = lenientUnion([
|
|
|
3271
3482
|
latestEvent: zInvoiceLatestEvent.nullable(),
|
|
3272
3483
|
originalInvoiceId: z.uuid().nullable(),
|
|
3273
3484
|
paymentTerms: zInvoicePaymentTermsResource.nullable(),
|
|
3485
|
+
referenceInformation: zInvoiceReferenceInformationResource.nullable(),
|
|
3274
3486
|
replacesInvoiceId: z.uuid().nullable(),
|
|
3275
3487
|
source: zInvoiceSource,
|
|
3276
3488
|
status: z.enum(["verifying"]),
|
|
@@ -3281,6 +3493,7 @@ export const zInvoiceResource = lenientUnion([
|
|
|
3281
3493
|
}),
|
|
3282
3494
|
z.object({
|
|
3283
3495
|
acceptedAt: z.iso.datetime().nullable(),
|
|
3496
|
+
additionalInformation: zInvoiceAdditionalInformationResource.nullable(),
|
|
3284
3497
|
buyer: zInvoiceBuyerIdentity.nullable(),
|
|
3285
3498
|
buyerDeliveryReadiness: zInvoiceBuyerDeliveryReadiness,
|
|
3286
3499
|
corrections: z.array(zInvoiceCorrection),
|
|
@@ -3300,6 +3513,7 @@ export const zInvoiceResource = lenientUnion([
|
|
|
3300
3513
|
latestEvent: zInvoiceLatestEvent.nullable(),
|
|
3301
3514
|
originalInvoiceId: z.uuid().nullable(),
|
|
3302
3515
|
paymentTerms: zInvoicePaymentTermsResource.nullable(),
|
|
3516
|
+
referenceInformation: zInvoiceReferenceInformationResource.nullable(),
|
|
3303
3517
|
replacesInvoiceId: z.uuid().nullable(),
|
|
3304
3518
|
source: zInvoiceSource,
|
|
3305
3519
|
status: z.enum(["accepted"]),
|
|
@@ -3310,6 +3524,7 @@ export const zInvoiceResource = lenientUnion([
|
|
|
3310
3524
|
}),
|
|
3311
3525
|
z.object({
|
|
3312
3526
|
acceptedAt: z.iso.datetime().nullable(),
|
|
3527
|
+
additionalInformation: zInvoiceAdditionalInformationResource.nullable(),
|
|
3313
3528
|
buyer: zInvoiceBuyerIdentity.nullable(),
|
|
3314
3529
|
buyerDeliveryReadiness: zInvoiceBuyerDeliveryReadiness,
|
|
3315
3530
|
corrections: z.array(zInvoiceCorrection),
|
|
@@ -3329,6 +3544,7 @@ export const zInvoiceResource = lenientUnion([
|
|
|
3329
3544
|
latestEvent: zInvoiceLatestEvent.nullable(),
|
|
3330
3545
|
originalInvoiceId: z.uuid().nullable(),
|
|
3331
3546
|
paymentTerms: zInvoicePaymentTermsResource.nullable(),
|
|
3547
|
+
referenceInformation: zInvoiceReferenceInformationResource.nullable(),
|
|
3332
3548
|
replacesInvoiceId: z.uuid().nullable(),
|
|
3333
3549
|
source: zInvoiceSource,
|
|
3334
3550
|
status: z.enum(["acceptedWithObservations"]),
|
|
@@ -3339,6 +3555,7 @@ export const zInvoiceResource = lenientUnion([
|
|
|
3339
3555
|
}),
|
|
3340
3556
|
z.object({
|
|
3341
3557
|
acceptedAt: z.iso.datetime().nullable(),
|
|
3558
|
+
additionalInformation: zInvoiceAdditionalInformationResource.nullable(),
|
|
3342
3559
|
buyer: zInvoiceBuyerIdentity.nullable(),
|
|
3343
3560
|
buyerDeliveryReadiness: zInvoiceBuyerDeliveryReadiness,
|
|
3344
3561
|
corrections: z.array(zInvoiceCorrection),
|
|
@@ -3358,6 +3575,7 @@ export const zInvoiceResource = lenientUnion([
|
|
|
3358
3575
|
latestEvent: zInvoiceLatestEvent.nullable(),
|
|
3359
3576
|
originalInvoiceId: z.uuid().nullable(),
|
|
3360
3577
|
paymentTerms: zInvoicePaymentTermsResource.nullable(),
|
|
3578
|
+
referenceInformation: zInvoiceReferenceInformationResource.nullable(),
|
|
3361
3579
|
replacesInvoiceId: z.uuid().nullable(),
|
|
3362
3580
|
source: zInvoiceSource,
|
|
3363
3581
|
status: z.enum(["authorityRejected"]),
|
|
@@ -3368,6 +3586,7 @@ export const zInvoiceResource = lenientUnion([
|
|
|
3368
3586
|
}),
|
|
3369
3587
|
z.object({
|
|
3370
3588
|
acceptedAt: z.iso.datetime().nullable(),
|
|
3589
|
+
additionalInformation: zInvoiceAdditionalInformationResource.nullable(),
|
|
3371
3590
|
buyer: zInvoiceBuyerIdentity.nullable(),
|
|
3372
3591
|
buyerDeliveryReadiness: zInvoiceBuyerDeliveryReadiness,
|
|
3373
3592
|
corrections: z.array(zInvoiceCorrection),
|
|
@@ -3387,6 +3606,7 @@ export const zInvoiceResource = lenientUnion([
|
|
|
3387
3606
|
latestEvent: zInvoiceLatestEvent.nullable(),
|
|
3388
3607
|
originalInvoiceId: z.uuid().nullable(),
|
|
3389
3608
|
paymentTerms: zInvoicePaymentTermsResource.nullable(),
|
|
3609
|
+
referenceInformation: zInvoiceReferenceInformationResource.nullable(),
|
|
3390
3610
|
replacesInvoiceId: z.uuid().nullable(),
|
|
3391
3611
|
source: zInvoiceSource,
|
|
3392
3612
|
status: z.enum(["operatorRequired"]),
|
|
@@ -4181,7 +4401,7 @@ export const zTimingWork = z.object({
|
|
|
4181
4401
|
work_id: z.string().regex(/^[0-9a-f]{64}$/),
|
|
4182
4402
|
});
|
|
4183
4403
|
/**
|
|
4184
|
-
*
|
|
4404
|
+
* A Type 31 line with its profile-permitted line-level discounts and surcharges.
|
|
4185
4405
|
*/
|
|
4186
4406
|
export const zUserAccountIdentity = z.object({
|
|
4187
4407
|
created_at: z.iso.datetime(),
|
|
@@ -4949,6 +5169,8 @@ export const zWorkspaceFiscalOperationResource = z.object({
|
|
|
4949
5169
|
export const zCreateHostedTenantResponse = zHostedTenantResource;
|
|
4950
5170
|
export const zReleaseHostedTenantResponse = zReleasedHostedTenant;
|
|
4951
5171
|
export const zCreateHostedTenantWebhookSecretRotationResponse = zHostedWebhookSecretRotation;
|
|
5172
|
+
export const zUploadHostedCertificationTestSetResponse = zCertificationTestSetResource;
|
|
5173
|
+
export const zRetrieveHostedCertificationTestSetResponse = zCurrentCertificationTestSet;
|
|
4952
5174
|
export const zListHostedInvoicesResponse = zInvoicePage;
|
|
4953
5175
|
export const zCreateHostedInvoiceResponse = zInvoiceResource;
|
|
4954
5176
|
export const zPreviewHostedInvoiceResponse = zInvoicePreview;
|