@flowselections/layout-maker 1.69.51 → 1.69.53
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-lib/components/AfleverbriefBuilderPage.d.ts.map +1 -1
- package/dist-lib/components/AfleverbriefBuilderPage.js +3 -3
- package/dist-lib/components/BlokOntwerperPage.d.ts.map +1 -1
- package/dist-lib/components/BlokOntwerperPage.js +4 -2
- package/dist-lib/components/LayoutsPage.d.ts.map +1 -1
- package/dist-lib/components/LayoutsPage.js +21 -4
- package/dist-lib/components/PakbonBuilderPage.d.ts.map +1 -1
- package/dist-lib/components/PakbonBuilderPage.js +3 -3
- package/dist-lib/components/PakbonPreview.d.ts +4 -1
- package/dist-lib/components/PakbonPreview.d.ts.map +1 -1
- package/dist-lib/components/PakbonPreview.js +6 -2
- package/dist-lib/components/PrintbestandVoorbeeld.d.ts +18 -0
- package/dist-lib/components/PrintbestandVoorbeeld.d.ts.map +1 -0
- package/dist-lib/components/PrintbestandVoorbeeld.js +88 -0
- package/dist-lib/components/PrintenPage.d.ts.map +1 -1
- package/dist-lib/components/PrintenPage.js +0 -5
- package/dist-lib/components/ProductiebonBuilderPage.d.ts.map +1 -1
- package/dist-lib/components/ProductiebonBuilderPage.js +3 -3
- package/dist-lib/components/StickerOntwerpPage.d.ts.map +1 -1
- package/dist-lib/components/StickerOntwerpPage.js +4 -4
- package/dist-lib/integrations/supabase/types.d.ts +446 -201
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/bewerkvlak.d.ts +14 -0
- package/dist-lib/lib/bewerkvlak.d.ts.map +1 -0
- package/dist-lib/lib/bewerkvlak.js +20 -0
- package/dist-lib/lib/inhoudsControle.d.ts +68 -0
- package/dist-lib/lib/inhoudsControle.d.ts.map +1 -0
- package/dist-lib/lib/inhoudsControle.js +152 -0
- package/dist-lib/lib/layoutOpslaan.d.ts.map +1 -1
- package/dist-lib/lib/layoutOpslaan.js +11 -0
- package/dist-lib/lib/printQueue.server.d.ts +77 -1
- package/dist-lib/lib/printQueue.server.d.ts.map +1 -1
- package/dist-lib/lib/printQueue.server.js +415 -23
- package/dist-lib/lib/printbestand.functions.d.ts +55 -0
- package/dist-lib/lib/printbestand.functions.d.ts.map +1 -0
- package/dist-lib/lib/printbestand.functions.js +105 -0
- package/dist-lib/lib/queueTick.d.ts.map +1 -1
- package/dist-lib/lib/queueTick.js +3 -2
- package/dist-lib/lib/standaardLayouts.server.d.ts +9 -0
- package/dist-lib/lib/standaardLayouts.server.d.ts.map +1 -1
- package/dist-lib/lib/standaardLayouts.server.js +29 -0
- package/dist-lib/lib/standaardenBron.d.ts +4 -0
- package/dist-lib/lib/standaardenBron.d.ts.map +1 -1
- package/dist-lib/lib/standaardenBron.js +17 -0
- package/dist-lib/lib/useDocumentData.d.ts +10 -0
- package/dist-lib/lib/useDocumentData.d.ts.map +1 -1
- package/dist-lib/lib/useDocumentData.js +63 -10
- package/dist-lib/lib/versie.generated.d.ts +1 -1
- package/dist-lib/lib/versie.generated.js +1 -1
- package/dist-lib/lib/voorbeeldPrint.d.ts +6 -1
- package/dist-lib/lib/voorbeeldPrint.d.ts.map +1 -1
- package/dist-lib/lib/voorbeeldPrint.js +57 -3
- package/package.json +1 -1
- package/sql/print-schema.sql +1351 -695
- package/sql/print-schema.verslag.md +75 -2
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** Systeemletters met dezelfde tekenbreedtes als Helvetica. */
|
|
2
|
+
export declare const BEWERKVLAK_LETTER = "Helvetica, Arial, 'Liberation Sans', sans-serif";
|
|
3
|
+
/** 1 pt = 25,4/72 mm, gelijk aan de PDF-motor. */
|
|
4
|
+
export declare const MM_PER_PT: number;
|
|
5
|
+
/** Standaard lettergrootte van pakbon en afleverbrief in het printbestand (pt). */
|
|
6
|
+
export declare const PAKBON_LETTER_PT = 8.5;
|
|
7
|
+
/** Breedte van het bedrukbare vlak in mm (paginabreedte min de marge aan beide kanten). */
|
|
8
|
+
export declare function binnenBreedteMm(layout: {
|
|
9
|
+
breedte_mm?: unknown;
|
|
10
|
+
hoogte_mm?: unknown;
|
|
11
|
+
orientatie?: unknown;
|
|
12
|
+
marge_boven?: unknown;
|
|
13
|
+
}): number;
|
|
14
|
+
//# sourceMappingURL=bewerkvlak.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bewerkvlak.d.ts","sourceRoot":"","sources":["../../src/lib/bewerkvlak.ts"],"names":[],"mappings":"AAQA,+DAA+D;AAC/D,eAAO,MAAM,iBAAiB,oDAAoD,CAAC;AAEnF,kDAAkD;AAClD,eAAO,MAAM,SAAS,QAAY,CAAC;AAEnC,mFAAmF;AACnF,eAAO,MAAM,gBAAgB,MAAM,CAAC;AAEpC,2FAA2F;AAC3F,wBAAgB,eAAe,CAAC,MAAM,EAAE;IAAE,UAAU,CAAC,EAAE,OAAO,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,MAAM,CAK1I"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fase 1b — bewerkvlak gelijk aan het printbestand (keuze a).
|
|
3
|
+
* Het printbestand tekent met de ingebouwde Helvetica-maten; het bewerkvlak
|
|
4
|
+
* gebruikt alleen een systeemletter met dezelfde tekenbreedtes (geen
|
|
5
|
+
* lettertypebestand) en rekent in dezelfde mm-maat.
|
|
6
|
+
*/
|
|
7
|
+
import { afdrukMaat } from "./formaatWeergave.js";
|
|
8
|
+
/** Systeemletters met dezelfde tekenbreedtes als Helvetica. */
|
|
9
|
+
export const BEWERKVLAK_LETTER = "Helvetica, Arial, 'Liberation Sans', sans-serif";
|
|
10
|
+
/** 1 pt = 25,4/72 mm, gelijk aan de PDF-motor. */
|
|
11
|
+
export const MM_PER_PT = 25.4 / 72;
|
|
12
|
+
/** Standaard lettergrootte van pakbon en afleverbrief in het printbestand (pt). */
|
|
13
|
+
export const PAKBON_LETTER_PT = 8.5;
|
|
14
|
+
/** Breedte van het bedrukbare vlak in mm (paginabreedte min de marge aan beide kanten). */
|
|
15
|
+
export function binnenBreedteMm(layout) {
|
|
16
|
+
const { breedte_mm } = afdrukMaat(layout);
|
|
17
|
+
const marge = Number(layout.marge_boven ?? 10);
|
|
18
|
+
const b = Number(breedte_mm) - 2 * (Number.isFinite(marge) ? marge : 10);
|
|
19
|
+
return b > 0 ? Math.round(b * 100) / 100 : 0;
|
|
20
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fase 1b — inhoudscontrole na het opmaken (één plek).
|
|
3
|
+
*
|
|
4
|
+
* Na het opmaken kijkt de wachtrij of de verplichte gegevens van die order
|
|
5
|
+
* echt op het document staan. Niet op bestandsgrootte: een versie die een
|
|
6
|
+
* (vrijwel) lege bon geeft, zakt hier. Een gegeven dat de order zelf niet
|
|
7
|
+
* heeft, wordt niet geëist (nooit strenger dan nodig).
|
|
8
|
+
*/
|
|
9
|
+
export type VerplichtGegeven = "ordernummer" | "klant" | "orderregel" | "kar_barcode" | "afleveradres" | "productieordernummer_of_barcode" | "productieregel" | "stickerinhoud";
|
|
10
|
+
/** De vaste lijst per documentsoort. Soorten zonder lijst: geen extra controle. */
|
|
11
|
+
export declare const VERPLICHTE_INHOUD: Readonly<Record<string, readonly VerplichtGegeven[]>>;
|
|
12
|
+
export declare const GEGEVEN_NL: Record<VerplichtGegeven, string>;
|
|
13
|
+
/** Wat de order zelf heeft; leeg/afwezig = niet eisen. */
|
|
14
|
+
export type VerwachteInhoud = {
|
|
15
|
+
ordernummers?: string[];
|
|
16
|
+
klant?: string | null;
|
|
17
|
+
regels?: string[];
|
|
18
|
+
barcode?: string | null;
|
|
19
|
+
afleveradres?: string[];
|
|
20
|
+
productieordernummer?: string | null;
|
|
21
|
+
stickerVelden?: string[];
|
|
22
|
+
};
|
|
23
|
+
export type InhoudUitkomst = {
|
|
24
|
+
ok: true;
|
|
25
|
+
} | {
|
|
26
|
+
ok: false;
|
|
27
|
+
ontbreekt: VerplichtGegeven[];
|
|
28
|
+
};
|
|
29
|
+
/** Combinatienummers ("HO-1, HO-2" of "HO-1+HO-2") tellen per deel. */
|
|
30
|
+
export declare function splitsNummers(n: string | null | undefined): string[];
|
|
31
|
+
/**
|
|
32
|
+
* streng: alle verplichte gegevens zijn altijd verplicht, ook als de order ze
|
|
33
|
+
* niet heeft (testorder bij activeren; eigen afleverbrief altijd voor
|
|
34
|
+
* ordernummer en afleveradres).
|
|
35
|
+
*/
|
|
36
|
+
export declare function controleerInhoud(documenttype: string, html: string, v: VerwachteInhoud, opties?: {
|
|
37
|
+
streng?: boolean | readonly VerplichtGegeven[];
|
|
38
|
+
}): InhoudUitkomst;
|
|
39
|
+
export declare function ontbreektTekst(ontbreekt: VerplichtGegeven[]): string;
|
|
40
|
+
export declare class InhoudOntbreektFout extends Error {
|
|
41
|
+
ontbreekt: VerplichtGegeven[];
|
|
42
|
+
name: string;
|
|
43
|
+
constructor(ontbreekt: VerplichtGegeven[]);
|
|
44
|
+
}
|
|
45
|
+
/** Eigen afleverbrief: ordernummer en afleveradres zijn altijd verplicht. */
|
|
46
|
+
export declare const ALTIJD_VERPLICHT: Readonly<Record<string, readonly VerplichtGegeven[]>>;
|
|
47
|
+
/** Testorder voor de controle bij activeren: minimaal deze gegevens. */
|
|
48
|
+
export declare const TESTORDER_MIN_REGELS = 2;
|
|
49
|
+
export declare class OntwerpOnleesbaarFout extends Error {
|
|
50
|
+
name: string;
|
|
51
|
+
constructor(reden: string);
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Fase 1b: de opmaak gebruikt nooit stil een eigen ingebouwd ontwerp. Een
|
|
55
|
+
* eigen versie van pakbon, afleverbrief of productiebon moet een leesbaar
|
|
56
|
+
* ontwerp hebben. Standaarden van Flow Selections (sleutel "fs.") en Floriday
|
|
57
|
+
* vallen erbuiten: hun ontwerp is bewust het ingebouwde.
|
|
58
|
+
*/
|
|
59
|
+
export declare function ontwerpLeesbaar(documenttype: string, config: unknown, layout?: {
|
|
60
|
+
bron?: unknown;
|
|
61
|
+
standaard_sleutel?: unknown;
|
|
62
|
+
}): {
|
|
63
|
+
ok: true;
|
|
64
|
+
} | {
|
|
65
|
+
ok: false;
|
|
66
|
+
reden: string;
|
|
67
|
+
};
|
|
68
|
+
//# sourceMappingURL=inhoudsControle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inhoudsControle.d.ts","sourceRoot":"","sources":["../../src/lib/inhoudsControle.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,MAAM,gBAAgB,GACxB,aAAa,GACb,OAAO,GACP,YAAY,GACZ,aAAa,GACb,cAAc,GACd,iCAAiC,GACjC,gBAAgB,GAChB,eAAe,CAAC;AAEpB,mFAAmF;AACnF,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,gBAAgB,EAAE,CAAC,CAQnF,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,gBAAgB,EAAE,MAAM,CASvD,CAAC;AAEF,0DAA0D;AAC1D,MAAM,MAAM,eAAe,GAAG;IAC5B,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAAE,EAAE,EAAE,IAAI,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,K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role na het opmaken (één plek).
|
|
3
|
+
*
|
|
4
|
+
* Na het opmaken kijkt de wachtrij of de verplichte gegevens van die order
|
|
5
|
+
* echt op het document staan. Niet op bestandsgrootte: een versie die een
|
|
6
|
+
* (vrijwel) lege bon geeft, zakt hier. Een gegeven dat de order zelf niet
|
|
7
|
+
* heeft, wordt niet geëist (nooit strenger dan nodig).
|
|
8
|
+
*/
|
|
9
|
+
/** De vaste lijst per documentsoort. Soorten zonder lijst: geen extra controle. */
|
|
10
|
+
export const VERPLICHTE_INHOUD = {
|
|
11
|
+
pakbon: ["ordernummer", "klant", "orderregel", "kar_barcode"],
|
|
12
|
+
afleverbrief: ["ordernummer", "afleveradres"],
|
|
13
|
+
productiebon: ["productieordernummer_of_barcode", "productieregel"],
|
|
14
|
+
sticker: ["stickerinhoud"],
|
|
15
|
+
eigen_sticker: ["stickerinhoud"],
|
|
16
|
+
traysticker: ["stickerinhoud"],
|
|
17
|
+
fuststicker: ["stickerinhoud"],
|
|
18
|
+
};
|
|
19
|
+
export const GEGEVEN_NL = {
|
|
20
|
+
ordernummer: "ordernummer",
|
|
21
|
+
klant: "klant",
|
|
22
|
+
orderregel: "orderregels",
|
|
23
|
+
kar_barcode: "kar-barcode",
|
|
24
|
+
afleveradres: "afleveradres",
|
|
25
|
+
productieordernummer_of_barcode: "productieordernummer of barcode",
|
|
26
|
+
productieregel: "productieregels",
|
|
27
|
+
stickerinhoud: "stickerinhoud",
|
|
28
|
+
};
|
|
29
|
+
const norm = (s) => s
|
|
30
|
+
.replace(/ /g, " ")
|
|
31
|
+
.replace(/&/g, "&")
|
|
32
|
+
.replace(/</g, "<")
|
|
33
|
+
.replace(/>/g, ">")
|
|
34
|
+
.replace(/"/g, '"')
|
|
35
|
+
.replace(/'|'/g, "'")
|
|
36
|
+
.replace(/\s+/g, " ")
|
|
37
|
+
.trim()
|
|
38
|
+
.toLowerCase();
|
|
39
|
+
function documentTekst(html) {
|
|
40
|
+
const body = /<body[^>]*>([\s\S]*?)<\/body>/i.exec(html)?.[1] ?? html;
|
|
41
|
+
const ruw = body.replace(/<style[\s\S]*?<\/style>/gi, "").replace(/<script[\s\S]*?<\/script>/gi, "");
|
|
42
|
+
return { tekst: norm(ruw.replace(/<[^>]+>/g, " ")), ruw };
|
|
43
|
+
}
|
|
44
|
+
const schoon = (l) => (l ?? []).map((v) => String(v ?? "").trim()).filter((v) => v.length > 0);
|
|
45
|
+
/** Combinatienummers ("HO-1, HO-2" of "HO-1+HO-2") tellen per deel. */
|
|
46
|
+
export function splitsNummers(n) {
|
|
47
|
+
return schoon(String(n ?? "").split(/[,+]/));
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* streng: alle verplichte gegevens zijn altijd verplicht, ook als de order ze
|
|
51
|
+
* niet heeft (testorder bij activeren; eigen afleverbrief altijd voor
|
|
52
|
+
* ordernummer en afleveradres).
|
|
53
|
+
*/
|
|
54
|
+
export function controleerInhoud(documenttype, html, v, opties = {}) {
|
|
55
|
+
const lijst = VERPLICHTE_INHOUD[documenttype];
|
|
56
|
+
if (!lijst)
|
|
57
|
+
return { ok: true };
|
|
58
|
+
const { tekst, ruw } = documentTekst(html);
|
|
59
|
+
const staatEr = (w) => tekst.includes(norm(w));
|
|
60
|
+
let streng = false;
|
|
61
|
+
const eenVan = (l) => (l.length === 0 ? !streng : l.some(staatEr));
|
|
62
|
+
const ontbreekt = [];
|
|
63
|
+
for (const g of lijst) {
|
|
64
|
+
streng = opties.streng === true || (Array.isArray(opties.streng) && opties.streng.includes(g));
|
|
65
|
+
let ok = true;
|
|
66
|
+
if (g === "ordernummer")
|
|
67
|
+
ok = eenVan(schoon(v.ordernummers));
|
|
68
|
+
else if (g === "klant")
|
|
69
|
+
ok = !v.klant?.trim() ? !streng : staatEr(v.klant);
|
|
70
|
+
else if (g === "orderregel" || g === "productieregel")
|
|
71
|
+
ok = eenVan(schoon(v.regels));
|
|
72
|
+
else if (g === "kar_barcode") {
|
|
73
|
+
const b = String(v.barcode ?? "").trim();
|
|
74
|
+
ok = !b ? !streng : staatEr(b) || ruw.includes(`data-barcode="${b.replace(/&/g, "&").replace(/"/g, """)}"`);
|
|
75
|
+
}
|
|
76
|
+
else if (g === "afleveradres") {
|
|
77
|
+
// Straat en plaats, niet alleen de naam (die staat vaak ook bij de klant).
|
|
78
|
+
const delen = schoon(v.afleveradres);
|
|
79
|
+
const kern = delen.length > 1 ? delen.slice(1) : delen;
|
|
80
|
+
ok = kern.length === 0 ? !streng : kern.every(staatEr);
|
|
81
|
+
}
|
|
82
|
+
else if (g === "productieordernummer_of_barcode") {
|
|
83
|
+
const n = String(v.productieordernummer ?? "").trim();
|
|
84
|
+
ok = !n ? !streng : staatEr(n) || ruw.includes(`data-barcode="${n}"`);
|
|
85
|
+
}
|
|
86
|
+
else if (g === "stickerinhoud") {
|
|
87
|
+
const velden = schoon(v.stickerVelden);
|
|
88
|
+
ok = /<img\b|<svg\b/i.test(ruw) || (velden.length > 0 ? velden.some(staatEr) : tekst.length >= 3);
|
|
89
|
+
}
|
|
90
|
+
if (!ok)
|
|
91
|
+
ontbreekt.push(g);
|
|
92
|
+
}
|
|
93
|
+
return ontbreekt.length ? { ok: false, ontbreekt } : { ok: true };
|
|
94
|
+
}
|
|
95
|
+
export function ontbreektTekst(ontbreekt) {
|
|
96
|
+
return ontbreekt.map((g) => GEGEVEN_NL[g]).join(", ");
|
|
97
|
+
}
|
|
98
|
+
export class InhoudOntbreektFout extends Error {
|
|
99
|
+
constructor(ontbreekt) {
|
|
100
|
+
super(`Op het document ontbreekt: ${ontbreektTekst(ontbreekt)}.`);
|
|
101
|
+
this.ontbreekt = ontbreekt;
|
|
102
|
+
this.name = "InhoudOntbreektFout";
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
/** Eigen afleverbrief: ordernummer en afleveradres zijn altijd verplicht. */
|
|
106
|
+
export const ALTIJD_VERPLICHT = {
|
|
107
|
+
afleverbrief: ["ordernummer", "afleveradres"],
|
|
108
|
+
};
|
|
109
|
+
/** Testorder voor de controle bij activeren: minimaal deze gegevens. */
|
|
110
|
+
export const TESTORDER_MIN_REGELS = 2;
|
|
111
|
+
export class OntwerpOnleesbaarFout extends Error {
|
|
112
|
+
constructor(reden) {
|
|
113
|
+
super(`Het ontwerp van deze versie is niet te lezen: ${reden}`);
|
|
114
|
+
this.name = "OntwerpOnleesbaarFout";
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
const isObj = (x) => !!x && typeof x === "object" && !Array.isArray(x);
|
|
118
|
+
const geldigeLijst = (x) => Array.isArray(x) && x.length > 0 && x.every((e) => isObj(e) && typeof e["type"] === "string" && e["type"].trim().length > 0);
|
|
119
|
+
/**
|
|
120
|
+
* Fase 1b: de opmaak gebruikt nooit stil een eigen ingebouwd ontwerp. Een
|
|
121
|
+
* eigen versie van pakbon, afleverbrief of productiebon moet een leesbaar
|
|
122
|
+
* ontwerp hebben. Standaarden van Flow Selections (sleutel "fs.") en Floriday
|
|
123
|
+
* vallen erbuiten: hun ontwerp is bewust het ingebouwde.
|
|
124
|
+
*/
|
|
125
|
+
export function ontwerpLeesbaar(documenttype, config, layout = {}) {
|
|
126
|
+
if (String(layout.standaard_sleutel ?? "").startsWith("fs."))
|
|
127
|
+
return { ok: true };
|
|
128
|
+
if (["floriday", "flowselections"].includes(String(layout.bron ?? "")))
|
|
129
|
+
return { ok: true };
|
|
130
|
+
const soort = documenttype === "veilingbrief" ? "afleverbrief" : documenttype;
|
|
131
|
+
if (!["pakbon", "afleverbrief", "productiebon"].includes(soort))
|
|
132
|
+
return { ok: true };
|
|
133
|
+
if (!isObj(config))
|
|
134
|
+
return { ok: false, reden: "er staat geen geldige indeling in." };
|
|
135
|
+
const sub = (k) => (isObj(config[k]) ? config[k] : {});
|
|
136
|
+
if (soort === "productiebon") {
|
|
137
|
+
return geldigeLijst(sub("productiebon")["blokken"])
|
|
138
|
+
? { ok: true }
|
|
139
|
+
: { ok: false, reden: "er staan geen leesbare blokken in." };
|
|
140
|
+
}
|
|
141
|
+
const secties = Array.isArray(config["secties"])
|
|
142
|
+
? config["secties"]
|
|
143
|
+
: soort === "afleverbrief"
|
|
144
|
+
? (sub("afleverbrief")["secties"] ?? sub("pakbon")["secties"])
|
|
145
|
+
: sub("pakbon")["secties"];
|
|
146
|
+
if (geldigeLijst(secties))
|
|
147
|
+
return { ok: true };
|
|
148
|
+
// Oudere afleverbriefvorm met afzender-, ontvanger- en verzendingkeuzes.
|
|
149
|
+
if (soort === "afleverbrief" && secties === undefined && isObj(config["afzender"]))
|
|
150
|
+
return { ok: true };
|
|
151
|
+
return { ok: false, reden: "er staan geen leesbare blokken in." };
|
|
152
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layoutOpslaan.d.ts","sourceRoot":"","sources":["../../src/lib/layoutOpslaan.ts"],"names":[],"mappings":"AAGA,wFAAwF;AACxF,wBAAgB,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,CAetD;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG,OAAO,CAE9D;AAED,eAAO,MAAM,cAAc,2DAA2D,CAAC;AAEvF;;;GAGG;AACH,wBAAsB,cAAc,CAClC,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,EACzD,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,OAAO,GAChB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"layoutOpslaan.d.ts","sourceRoot":"","sources":["../../src/lib/layoutOpslaan.ts"],"names":[],"mappings":"AAGA,wFAAwF;AACxF,wBAAgB,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,CAetD;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG,OAAO,CAE9D;AAED,eAAO,MAAM,cAAc,2DAA2D,CAAC;AAEvF;;;GAGG;AACH,wBAAsB,cAAc,CAClC,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,EACzD,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,OAAO,GAChB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAoBlC;AAED,kFAAkF;AAClF,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,aAAa,GAAG,QAAQ,GAAG,WAAW,EAChD,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GACnB;IAAE,KAAK,EAAE,QAAQ,GAAG,cAAc,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAKrD;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,OAAO,EAAE,SAAS,SAAoB,GAAG,MAAM,CAI9E"}
|
|
@@ -28,6 +28,17 @@ export const NIET_BEVESTIGD = "Opslaan niet bevestigd: database gaf iets anders
|
|
|
28
28
|
* de database en geeft pas succes als de teruggelezen indeling gelijk is.
|
|
29
29
|
*/
|
|
30
30
|
export async function bewaarIndeling(layoutId, huidigeConfig, sleutel, indeling) {
|
|
31
|
+
// Fase 1b: een wijziging aan de actieve versie wordt alleen opgeslagen als
|
|
32
|
+
// het printbestand op de testorder lukt en de inhoudscontrole slaagt.
|
|
33
|
+
const { data: rij, error: leesFout } = await supabase.from("document_layouts").select("actief").eq("id", layoutId).maybeSingle();
|
|
34
|
+
if (leesFout)
|
|
35
|
+
throw leesFout;
|
|
36
|
+
if (rij?.actief === true) {
|
|
37
|
+
const { controleerVersie } = await import("./printbestand.functions.js");
|
|
38
|
+
const controle = await controleerVersie({ data: { layoutId, sleutel, indeling } });
|
|
39
|
+
if (!controle.ok)
|
|
40
|
+
throw new Error(controle.reden);
|
|
41
|
+
}
|
|
31
42
|
await updateLayout(layoutId, { config: { ...(huidigeConfig ?? {}), [sleutel]: indeling } });
|
|
32
43
|
const { data, error } = await supabase
|
|
33
44
|
.from("document_layouts")
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type LabelPaginaUitkomst } from "./labelPagina.js";
|
|
2
2
|
import type { SupabaseClient } from "@supabase/supabase-js";
|
|
3
|
+
import { type VerwachteInhoud } from "./inhoudsControle.js";
|
|
3
4
|
import { type FustStickerMaat } from "./eigenDocumenten.js";
|
|
4
5
|
import { type EigenStickerMaat } from "./eigenDocumenten.js";
|
|
5
6
|
import { type GeladenEtiket } from "./etiketControle.js";
|
|
@@ -24,6 +25,38 @@ export type PrintDb = SupabaseClient<any, any, any>;
|
|
|
24
25
|
* meer nu de shell de client levert.
|
|
25
26
|
*/
|
|
26
27
|
export declare function controleerClient(db: PrintDb): Promise<string | null>;
|
|
28
|
+
export declare const TERUGVAL_MELDING: (naam: string) => string;
|
|
29
|
+
export declare const TERUGVAL_OOK_MISLUKT = "De standaard van Flow Selections kon dit document ook niet opmaken. Waarschijnlijk zijn de ordergegevens onvolledig. Er is niets geprint; controleer de order.";
|
|
30
|
+
/** In een droge ronde: de reden waarom er niets geprint zou worden. */
|
|
31
|
+
export declare class DroogStopFout extends Error {
|
|
32
|
+
readonly code: string;
|
|
33
|
+
constructor(code: string, bericht: string);
|
|
34
|
+
}
|
|
35
|
+
export interface PrintbestandUitkomst {
|
|
36
|
+
/** De PDF die naar de printer gaat, of waaruit de TSPL-opdracht wordt gemaakt. */
|
|
37
|
+
pdfBase64: string;
|
|
38
|
+
/** TSPL-opdracht (alleen bij een TSPL-printer). */
|
|
39
|
+
tsplBase64: string | null;
|
|
40
|
+
printerId: string;
|
|
41
|
+
printerNaam: string;
|
|
42
|
+
layoutId: string | null;
|
|
43
|
+
bron: string;
|
|
44
|
+
paper: string | null;
|
|
45
|
+
kopieen: number;
|
|
46
|
+
/** Naam van de terugvalstandaard als de eigen versie niet lukte. */
|
|
47
|
+
terugval: string | null;
|
|
48
|
+
/** Rand die de printer niet kan printen (mm), als die bekend is. */
|
|
49
|
+
randMm: number | null;
|
|
50
|
+
}
|
|
51
|
+
/** Alleen voor tests en proeven: meldingen van een droge opmaak (niets opgeslagen). */
|
|
52
|
+
export declare const DROOG_LOGBOEK: {
|
|
53
|
+
aan: boolean;
|
|
54
|
+
regels: {
|
|
55
|
+
jobId: string;
|
|
56
|
+
gebeurtenis: string;
|
|
57
|
+
detail?: string;
|
|
58
|
+
}[];
|
|
59
|
+
};
|
|
27
60
|
/** Fout waarbij opnieuw proberen zinloos is (er valt niets te printen). */
|
|
28
61
|
export declare class GeenDocumentFout extends Error {
|
|
29
62
|
name: string;
|
|
@@ -64,6 +97,7 @@ export type GebruikteBron = "extern_pdf" | "eigen_layout" | "render_html" | "kla
|
|
|
64
97
|
/** Meelifter waarin `bouwHtml` vastlegt welke bron het uiteindelijk werd. */
|
|
65
98
|
export type BronUitkomst = {
|
|
66
99
|
bron: GebruikteBron;
|
|
100
|
+
verwacht?: VerwachteInhoud;
|
|
67
101
|
};
|
|
68
102
|
/**
|
|
69
103
|
* Oudere/andere benamingen voor hetzelfde document. De Logistiek Engine noemt
|
|
@@ -74,6 +108,16 @@ export type BronUitkomst = {
|
|
|
74
108
|
export declare function normaliseerDocumenttype(type: unknown): string;
|
|
75
109
|
/** Het layout-id zoals de Engine het aanlevert (kolom of payload). */
|
|
76
110
|
export declare function leesEngineLayoutId(job: Job): string;
|
|
111
|
+
/**
|
|
112
|
+
* Alleen voor tests (fase 1b): geforceerde fout in een stap vóór het opmaken,
|
|
113
|
+
* zoals een kapotte eigen versie die zou geven. Op de terugvalstandaard nooit.
|
|
114
|
+
*/
|
|
115
|
+
export type TestFoutStap = "versie_kiezen" | "gegevens_ophalen" | "voorbereiden";
|
|
116
|
+
export declare const TEST_FOUT_STAP: Set<TestFoutStap>;
|
|
117
|
+
/** Fase 1b: controle bij activeren — testorder met volledige gegevens, ook de kar-barcode. Nooit geregistreerd of verstuurd. */
|
|
118
|
+
export declare function isVersiecontrole(job: {
|
|
119
|
+
payload?: unknown;
|
|
120
|
+
}): boolean;
|
|
77
121
|
/** Testprint: alleen de eigen testvlag telt (geen kar, geen barcode). */
|
|
78
122
|
export declare function isTestprintJob(job: {
|
|
79
123
|
payload?: unknown;
|
|
@@ -269,15 +313,47 @@ export interface LabelInfo {
|
|
|
269
313
|
export declare function labelInfoVoor(printer: Job): LabelInfo;
|
|
270
314
|
/** Geldt de keuzeregel? Niet voor een testprint op één printer en niet voor een testpagina. */
|
|
271
315
|
export declare function keuzeRegelGeldt(job: Job): boolean;
|
|
316
|
+
/**
|
|
317
|
+
* Fase 1b: mag een eigen versie terugvallen op de standaard van Flow Selections?
|
|
318
|
+
* Alleen een eigen (niet-Floriday, niet-standaard) versie bij een echte opdracht;
|
|
319
|
+
* een proefprint of ontwerpervoorbeeld toont de fout juist wél.
|
|
320
|
+
*/
|
|
321
|
+
export declare function magTerugvallen(job: Job, layout: Job | null): boolean;
|
|
322
|
+
/**
|
|
323
|
+
* Fase 1b — het printbestand zoals de printer het krijgt, zonder te printen.
|
|
324
|
+
* Exact dezelfde code als de printwachtrij (verwerkJob), die vlak vóór het
|
|
325
|
+
* versturen stopt; er wordt niets opgeslagen of verstuurd.
|
|
326
|
+
*/
|
|
327
|
+
export declare function printbestandMaken(db: PrintDb, job: Job, opties?: {
|
|
328
|
+
layoutOverride?: Job | null;
|
|
329
|
+
}): Promise<PrintbestandUitkomst>;
|
|
272
330
|
/**
|
|
273
331
|
* 1.69.47 — voorbeeld op verzoek (zonder printopdracht). Exact dezelfde keuze,
|
|
274
332
|
* renderer, paginamaat en marge als de printwachtrij voor een PDF-printer; de
|
|
275
333
|
* layout wordt telkens vers gelezen (geen cache). Wordt gebruikt door
|
|
276
334
|
* /api/public/print/preview-pdf en door de 1-op-1-test.
|
|
277
335
|
*/
|
|
278
|
-
export declare function documentPdfVoorbeeld(db: PrintDb, job: Job
|
|
336
|
+
export declare function documentPdfVoorbeeld(db: PrintDb, job: Job, opties?: {
|
|
337
|
+
layoutOverride?: Job | null;
|
|
338
|
+
}): Promise<{
|
|
279
339
|
pdfBase64: string;
|
|
280
340
|
layoutId: string | null;
|
|
281
341
|
bron: string;
|
|
342
|
+
opPrinter?: boolean;
|
|
343
|
+
printerNaam?: string;
|
|
344
|
+
tsplBase64?: string | null;
|
|
345
|
+
terugval?: string | null;
|
|
346
|
+
randMm?: number | null;
|
|
347
|
+
}>;
|
|
348
|
+
/**
|
|
349
|
+
* Fase 1b: kan deze versie actief worden? Maakt het printbestand op de
|
|
350
|
+
* testorder (zelfde weg als de print, zonder te versturen) en doet dezelfde
|
|
351
|
+
* inhoudscontrole als de printwachtrij. Alleen lezen.
|
|
352
|
+
*/
|
|
353
|
+
export declare function controleerVersieOpTestorder(db: PrintDb, job: Job, layoutOverride: Job | null): Promise<{
|
|
354
|
+
ok: true;
|
|
355
|
+
} | {
|
|
356
|
+
ok: false;
|
|
357
|
+
reden: string;
|
|
282
358
|
}>;
|
|
283
359
|
//# sourceMappingURL=printQueue.server.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"printQueue.server.d.ts","sourceRoot":"","sources":["../../src/lib/printQueue.server.ts"],"names":[],"mappings":"AAQA,OAAO,EAA0C,KAAK,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAGjG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"printQueue.server.d.ts","sourceRoot":"","sources":["../../src/lib/printQueue.server.ts"],"names":[],"mappings":"AAQA,OAAO,EAA0C,KAAK,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAGjG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAwB5D,OAAO,EAAkH,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAezK,OAAO,EAAqF,KAAK,eAAe,EAAmK,MAAM,mBAAmB,CAAC;AAC7S,OAAO,EAA+H,K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