@updraft-solutions/mcrit-sdk 0.18.3 → 0.18.5
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/{chunk-BSIQZG5X.cjs → chunk-2EE42RYO.cjs} +20 -0
- package/dist/{chunk-DM2IA2QC.js → chunk-MGLQBVNH.js} +20 -0
- package/dist/{conversation-Y3SjMKFQ.d.cts → conversation-BD3Fqaoh.d.cts} +20757 -20274
- package/dist/{conversation-Y3SjMKFQ.d.ts → conversation-BD3Fqaoh.d.ts} +20757 -20274
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/schemas/index.cjs +2 -2
- package/dist/schemas/index.d.cts +196 -196
- package/dist/schemas/index.d.ts +196 -196
- package/dist/schemas/index.js +1 -1
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/schemas/common.ts +13 -0
- package/src/schemas/models.ts +9 -0
|
@@ -127,6 +127,17 @@ var companySchema = _zod.z.object({
|
|
|
127
127
|
// details (like `vat`); the VAT-exemption fields + `vat_exemption_codes`
|
|
128
128
|
// come from the super-admin AdminCompanyResource.
|
|
129
129
|
tax_number: _zod.z.string().nullable().optional(),
|
|
130
|
+
// Seller contact for e-invoices (EN 16931 BG-6, mandatory in XRechnung):
|
|
131
|
+
// the stored overrides and the resolved values after the company
|
|
132
|
+
// name/phone/email fallbacks. Fenced behind company.view like `vat`.
|
|
133
|
+
billing_contact_name: _zod.z.string().nullable().optional(),
|
|
134
|
+
billing_contact_phone: _zod.z.string().nullable().optional(),
|
|
135
|
+
billing_contact_email: _zod.z.string().nullable().optional(),
|
|
136
|
+
seller_contact: _zod.z.object({
|
|
137
|
+
name: _zod.z.string().nullable(),
|
|
138
|
+
phone: _zod.z.string().nullable(),
|
|
139
|
+
email: _zod.z.string().nullable()
|
|
140
|
+
}).optional(),
|
|
130
141
|
vat_exemption_code: _zod.z.string().nullable().optional(),
|
|
131
142
|
vat_exemption_text: _zod.z.string().nullable().optional(),
|
|
132
143
|
vat_exemption_codes: _zod.z.array(_zod.z.string()).optional()
|
|
@@ -1281,6 +1292,8 @@ var billingProfileSchema = _zod.z.object({
|
|
|
1281
1292
|
fax: _zod.z.string().nullable(),
|
|
1282
1293
|
iso_country: _zod.z.string().nullable(),
|
|
1283
1294
|
vat_id: _zod.z.string().nullable(),
|
|
1295
|
+
// EN 16931 BT-10 — a public body's Leitweg-ID or any buyer-assigned routing code.
|
|
1296
|
+
buyer_reference: _zod.z.string().nullable().optional(),
|
|
1284
1297
|
email: _zod.z.string().nullable(),
|
|
1285
1298
|
archived_at: _zod.z.string().nullable(),
|
|
1286
1299
|
source_billing_profile_id: _zod.z.number().nullable(),
|
|
@@ -1396,6 +1409,13 @@ var invoiceSchema = _zod.z.object({
|
|
|
1396
1409
|
recipient_state: _zod.z.string().nullable().optional(),
|
|
1397
1410
|
recipient_country: _zod.z.string().nullable().optional(),
|
|
1398
1411
|
recipient_vat_id: _zod.z.string().nullable().optional(),
|
|
1412
|
+
recipient_buyer_reference: _zod.z.string().nullable().optional(),
|
|
1413
|
+
// XRechnung routing: true when the buyer reference is a Leitweg-ID (the
|
|
1414
|
+
// e-invoice is built as XRechnung); `xrechnung_missing` lists the BR-DE
|
|
1415
|
+
// fields that still block a draft's release, keyed by invoice column.
|
|
1416
|
+
is_xrechnung: _zod.z.boolean().optional(),
|
|
1417
|
+
xrechnung_missing: _zod.z.record(_zod.z.string(), _zod.z.string()).optional(),
|
|
1418
|
+
issuer_contact_name: _zod.z.string().nullable().optional(),
|
|
1399
1419
|
// Always computed by InvoiceResource (billingProfile email, else the
|
|
1400
1420
|
// membership's user email) — used by InvoiceDialog today but was missing.
|
|
1401
1421
|
recipient_email: _zod.z.string().nullable().optional(),
|
|
@@ -127,6 +127,17 @@ var companySchema = z.object({
|
|
|
127
127
|
// details (like `vat`); the VAT-exemption fields + `vat_exemption_codes`
|
|
128
128
|
// come from the super-admin AdminCompanyResource.
|
|
129
129
|
tax_number: z.string().nullable().optional(),
|
|
130
|
+
// Seller contact for e-invoices (EN 16931 BG-6, mandatory in XRechnung):
|
|
131
|
+
// the stored overrides and the resolved values after the company
|
|
132
|
+
// name/phone/email fallbacks. Fenced behind company.view like `vat`.
|
|
133
|
+
billing_contact_name: z.string().nullable().optional(),
|
|
134
|
+
billing_contact_phone: z.string().nullable().optional(),
|
|
135
|
+
billing_contact_email: z.string().nullable().optional(),
|
|
136
|
+
seller_contact: z.object({
|
|
137
|
+
name: z.string().nullable(),
|
|
138
|
+
phone: z.string().nullable(),
|
|
139
|
+
email: z.string().nullable()
|
|
140
|
+
}).optional(),
|
|
130
141
|
vat_exemption_code: z.string().nullable().optional(),
|
|
131
142
|
vat_exemption_text: z.string().nullable().optional(),
|
|
132
143
|
vat_exemption_codes: z.array(z.string()).optional()
|
|
@@ -1281,6 +1292,8 @@ var billingProfileSchema = z4.object({
|
|
|
1281
1292
|
fax: z4.string().nullable(),
|
|
1282
1293
|
iso_country: z4.string().nullable(),
|
|
1283
1294
|
vat_id: z4.string().nullable(),
|
|
1295
|
+
// EN 16931 BT-10 — a public body's Leitweg-ID or any buyer-assigned routing code.
|
|
1296
|
+
buyer_reference: z4.string().nullable().optional(),
|
|
1284
1297
|
email: z4.string().nullable(),
|
|
1285
1298
|
archived_at: z4.string().nullable(),
|
|
1286
1299
|
source_billing_profile_id: z4.number().nullable(),
|
|
@@ -1396,6 +1409,13 @@ var invoiceSchema = z4.object({
|
|
|
1396
1409
|
recipient_state: z4.string().nullable().optional(),
|
|
1397
1410
|
recipient_country: z4.string().nullable().optional(),
|
|
1398
1411
|
recipient_vat_id: z4.string().nullable().optional(),
|
|
1412
|
+
recipient_buyer_reference: z4.string().nullable().optional(),
|
|
1413
|
+
// XRechnung routing: true when the buyer reference is a Leitweg-ID (the
|
|
1414
|
+
// e-invoice is built as XRechnung); `xrechnung_missing` lists the BR-DE
|
|
1415
|
+
// fields that still block a draft's release, keyed by invoice column.
|
|
1416
|
+
is_xrechnung: z4.boolean().optional(),
|
|
1417
|
+
xrechnung_missing: z4.record(z4.string(), z4.string()).optional(),
|
|
1418
|
+
issuer_contact_name: z4.string().nullable().optional(),
|
|
1399
1419
|
// Always computed by InvoiceResource (billingProfile email, else the
|
|
1400
1420
|
// membership's user email) — used by InvoiceDialog today but was missing.
|
|
1401
1421
|
recipient_email: z4.string().nullable().optional(),
|