@flowselections/scan-module 1.0.58 → 1.0.60

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.
@@ -1 +1 @@
1
- {"version":3,"file":"ScanModulePage.d.ts","sourceRoot":"","sources":["../../src/components/ScanModulePage.tsx"],"names":[],"mappings":"AAwWA,wBAAgB,cAAc,CAAC,EAAE,SAAS,EAAE,GAAE;IAAE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAO,+BA8H/E"}
1
+ {"version":3,"file":"ScanModulePage.d.ts","sourceRoot":"","sources":["../../src/components/ScanModulePage.tsx"],"names":[],"mappings":"AA+cA,wBAAgB,cAAc,CAAC,EAAE,SAAS,EAAE,GAAE;IAAE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAO,+BA2H/E"}
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  // ============================================================================
3
3
  // src/components/ScanModulePage.tsx — SCANNERS (zoals Printen › Printplekken)
4
4
  // ============================================================================
@@ -8,8 +8,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
8
  // ============================================================================
9
9
  import { useCallback, useEffect, useMemo, useRef, useState } from "react";
10
10
  import { useRouter } from "@tanstack/react-router";
11
+ import { moduleKey } from "@flowselections/core";
11
12
  import { Button, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, Input, Label, PageContainer, cn, formatTijd, meldFout, meldSucces, } from "@flowselections/core";
12
- import { AlertTriangle, Check, Copy, ExternalLink, KeyRound, Loader2, MoreHorizontal, Pencil, Printer, Search } from "lucide-react";
13
+ import { AlertTriangle, Check, Copy, ExternalLink, FileText, KeyRound, Loader2, MoreHorizontal, Pencil, Printer, Search } from "lucide-react";
13
14
  import { supabase } from "../integrations/supabase/client.js";
14
15
  import { useScanners } from "../hooks/useScanners.js";
15
16
  import { scannerType, normaliseerScannerType } from "../lib/scannerTypes.js";
@@ -30,6 +31,22 @@ function useScannerRoutePad() {
30
31
  return hit ? String(hit.fullPath).replace(/\/?\$slug\/?$/, "") : "/scanner";
31
32
  }, [router]);
32
33
  }
34
+ /** Rijen zoals Scan ze noemt, gekoppeld aan de soort van de Layout-maker. */
35
+ const PRINT_RIJEN = {
36
+ eind: [
37
+ { naam: "Afleverbrief", soort: "afleverbrief" },
38
+ { naam: "Controlelijst", soort: "controlelijst" },
39
+ { naam: "Pakbon (opnieuw)", soort: "pakbon" },
40
+ { naam: "Veilingbrief", soort: "veilingbrief", alleenAlsLayoutMaker: true },
41
+ ],
42
+ kar: [
43
+ { naam: "Verzendbrief", soort: "afleverbrief" },
44
+ { naam: "Restpakbon", soort: "pakbon" },
45
+ ],
46
+ };
47
+ function safeKey(m) {
48
+ return m && typeof m === "object" ? moduleKey(m) : "";
49
+ }
33
50
  /** Pad van de pagina Printplekken uit de geregistreerde routes; null als die er niet is. */
34
51
  function usePrintplekkenPad() {
35
52
  const router = useRouter();
@@ -39,57 +56,142 @@ function usePrintplekkenPad() {
39
56
  return hit ? String(hit.fullPath).replace(/\/$/, "") : null;
40
57
  }, [router]);
41
58
  }
42
- function PrintplekkenLink({ pad }) {
43
- if (!pad)
44
- return _jsx("span", { className: "text-muted-foreground", children: "Wijzig dit in Printen \u203A Printplekken." });
45
- return (_jsxs("a", { href: pad, className: "inline-flex items-center gap-1 font-semibold text-primary underline-offset-2 hover:underline", children: ["Aanpassen ", _jsx(ExternalLink, { className: "h-3.5 w-3.5", "aria-hidden": true })] }));
59
+ function tekst(v) {
60
+ return typeof v === "string" && v.trim() ? v.trim() : null;
61
+ }
62
+ function isFunctieOnbekend(error) {
63
+ return error?.code === "PGRST202" || error?.code === "42883";
46
64
  }
65
+ const LEEG = { laden: true, fout: false, plekId: null, plek: null, klaar: null, reden: null, melding: null, docs: null };
66
+ /** Plek, stand en documenten komen telkens uit de Layout-maker; elke 30 s en bij terugkomen ververst, zonder knipperen. */
47
67
  function usePrintStand(scanner) {
48
- const [stand, setStand] = useState({ laden: true, plek: null, probleem: null, fout: false });
68
+ const [stand, setStand] = useState(LEEG);
69
+ const scannerId = scanner?.id ?? null;
70
+ const eind = scanner ? normaliseerScannerType(scanner.type) === "eindcontrole" : false;
49
71
  useEffect(() => {
50
- if (!scanner)
72
+ if (!scannerId)
51
73
  return;
52
74
  let actief = true;
53
- setStand({ laden: true, plek: null, probleem: null, fout: false });
54
- void (async () => {
55
- const eind = normaliseerScannerType(scanner.type) === "eindcontrole";
56
- const { data, error } = eind
75
+ setStand(LEEG);
76
+ const lees = async () => {
77
+ const basis = eind
57
78
  ? await db.rpc("layouts_controleplek")
58
- : await db.rpc("print_plek_status_v1", { p_soort: "scanner", p_sleutel: scanner.id });
79
+ : await db.rpc("print_plek_status_v1", { p_soort: "scanner", p_sleutel: scannerId });
59
80
  if (!actief)
60
81
  return;
61
- if (error) {
62
- console.error("[scanners] printplek lezen", error);
63
- setStand({ laden: false, plek: null, probleem: null, fout: true });
82
+ if (basis.error) {
83
+ console.error("[scanners] printplek lezen", basis.error);
84
+ setStand((oud) => (oud.laden ? { ...LEEG, laden: false, fout: true } : oud));
64
85
  return;
65
86
  }
66
- const d = data ?? {};
67
- if (eind) {
68
- setStand({ laden: false, plek: d.print_plek_id ? (d.naam ?? null) : null, probleem: null, fout: false });
69
- }
70
- else {
71
- const werkt = d.status === "werkt";
72
- setStand({ laden: false, plek: d.plek_naam ?? null, probleem: d.plek_naam && !werkt ? "Deze plek heeft een probleem" : null, fout: false });
87
+ const d = basis.data ?? {};
88
+ const plekId = eind ? tekst(d.print_plek_id) : tekst(d.plek_id);
89
+ const plekNaam = eind ? (plekId ? tekst(d.naam) : null) : tekst(d.plek_naam);
90
+ const melding = eind ? null : tekst(d.melding);
91
+ let klaar = eind ? null : (plekId ? d.status === "werkt" : null);
92
+ let reden = null;
93
+ let docs = null;
94
+ let naam = plekNaam;
95
+ if (plekId) {
96
+ const v2 = await db.rpc("print_plek_documenten_v2", { p_plek: plekId });
97
+ if (!actief)
98
+ return;
99
+ if (v2.error) {
100
+ if (!isFunctieOnbekend(v2.error))
101
+ console.error("[scanners] documenten van printplek", v2.error);
102
+ }
103
+ else {
104
+ const r = v2.data ?? {};
105
+ const plek = r.plek ?? r;
106
+ naam = tekst(plek?.naam) ?? naam;
107
+ if (typeof plek?.kan_printen === "boolean")
108
+ klaar = plek.kan_printen;
109
+ else if (typeof plek?.status === "string")
110
+ klaar = /klaar|werkt|^ok$/i.test(plek.status);
111
+ reden = tekst(plek?.reden) ?? (klaar === false ? tekst(plek?.status) : null);
112
+ const lijst = Array.isArray(r.documenten) ? r.documenten : [];
113
+ docs = lijst.map((x) => ({
114
+ soort: String(x?.documenttype ?? x?.soort ?? ""),
115
+ versie: x?.versie == null ? null : String(x.versie),
116
+ formaat: tekst(x?.papierformaat),
117
+ kanPrinten: typeof x?.kan_printen === "boolean" ? x.kan_printen : null,
118
+ reden: tekst(x?.reden),
119
+ }));
120
+ }
73
121
  }
74
- })();
75
- return () => { actief = false; };
76
- }, [scanner]);
122
+ if (!actief)
123
+ return;
124
+ if (klaar === false && !reden)
125
+ reden = "Deze plek kan nu niet printen. Kijk bij Printen › Printplekken.";
126
+ setStand({ laden: false, fout: false, plekId, plek: naam, klaar, reden, melding, docs });
127
+ };
128
+ void lees();
129
+ const timer = window.setInterval(() => { if (document.visibilityState === "visible")
130
+ void lees(); }, 30000);
131
+ const terug = () => { if (document.visibilityState === "visible")
132
+ void lees(); };
133
+ document.addEventListener("visibilitychange", terug);
134
+ window.addEventListener("focus", terug);
135
+ return () => {
136
+ actief = false;
137
+ window.clearInterval(timer);
138
+ document.removeEventListener("visibilitychange", terug);
139
+ window.removeEventListener("focus", terug);
140
+ };
141
+ }, [scannerId, eind]);
77
142
  return stand;
78
143
  }
79
- function NaamDialoog({ scanner, onClose, onOpslaan }) {
80
- const [naam, setNaam] = useState("");
144
+ /** Naam in de kop direct bewerken, zoals "Naam printplek wijzigen" bij Printplekken. */
145
+ function BewerkbareNaam({ naam, bewerken, onKlaar, onOpslaan }) {
146
+ const [waarde, setWaarde] = useState(naam);
81
147
  const [bezig, setBezig] = useState(false);
82
- useEffect(() => { if (scanner)
83
- setNaam(scanner.naam); }, [scanner]);
148
+ const ref = useRef(null);
149
+ const afgehandeld = useRef(false);
150
+ useEffect(() => {
151
+ if (bewerken) {
152
+ setWaarde(naam);
153
+ afgehandeld.current = false;
154
+ window.setTimeout(() => ref.current?.select(), 0);
155
+ }
156
+ }, [bewerken, naam]);
157
+ if (!bewerken)
158
+ return _jsx("p", { className: "truncate text-lg font-semibold text-card-foreground", children: naam });
84
159
  const opslaan = async () => {
85
- if (!naam.trim())
160
+ if (afgehandeld.current || bezig)
86
161
  return;
162
+ const nieuw = waarde.trim();
163
+ if (nieuw === naam.trim()) {
164
+ afgehandeld.current = true;
165
+ onKlaar();
166
+ return;
167
+ }
168
+ if (!nieuw) {
169
+ meldFout("Vul een naam in.");
170
+ ref.current?.focus();
171
+ return;
172
+ }
87
173
  setBezig(true);
88
- await onOpslaan(naam.trim());
174
+ const ok = await onOpslaan(nieuw);
89
175
  setBezig(false);
176
+ if (ok) {
177
+ afgehandeld.current = true;
178
+ onKlaar();
179
+ }
180
+ else
181
+ ref.current?.focus();
90
182
  };
91
- return (_jsx(Dialog, { open: !!scanner, onOpenChange: (o) => !o && onClose(), children: _jsxs(DialogContent, { className: "sm:max-w-md", children: [_jsxs(DialogHeader, { children: [_jsx(DialogTitle, { children: "Naam wijzigen" }), _jsx(DialogDescription, { children: "De link van de scanner blijft hetzelfde." })] }), _jsxs("div", { className: "space-y-1.5", children: [_jsx(Label, { htmlFor: "scanner-naam", required: true, children: "Naam" }), _jsx(Input, { id: "scanner-naam", value: naam, onChange: (e) => setNaam(e.target.value), onKeyDown: (e) => { if (e.key === "Enter")
92
- void opslaan(); } })] }), _jsxs(DialogFooter, { children: [_jsx(Button, { variant: "outline", onClick: onClose, children: "Annuleren" }), _jsxs(Button, { disabled: bezig || !naam.trim(), onClick: () => void opslaan(), children: [bezig ? _jsx(Loader2, { className: "mr-2 h-4 w-4 animate-spin" }) : null, "Opslaan"] })] })] }) }));
183
+ return (_jsx(Input, { ref: ref, value: waarde, disabled: bezig, "aria-label": "Naam scanner", maxLength: 80, className: "h-8 text-lg font-semibold", onChange: (e) => setWaarde(e.target.value), onBlur: () => void opslaan(), onKeyDown: (e) => {
184
+ if (e.key === "Enter") {
185
+ e.preventDefault();
186
+ void opslaan();
187
+ }
188
+ if (e.key === "Escape") {
189
+ e.preventDefault();
190
+ e.stopPropagation();
191
+ afgehandeld.current = true;
192
+ onKlaar();
193
+ }
194
+ } }));
93
195
  }
94
196
  function PincodeDialoog({ scanner, onClose, onKlaar }) {
95
197
  const [pin, setPin] = useState("");
@@ -120,7 +222,9 @@ function PincodeDialoog({ scanner, onClose, onKlaar }) {
120
222
  return (_jsx(Dialog, { open: !!scanner, onOpenChange: (o) => !o && onClose(), children: _jsxs(DialogContent, { className: "sm:max-w-md", children: [_jsxs(DialogHeader, { children: [_jsx(DialogTitle, { children: "Pincode wijzigen" }), _jsx(DialogDescription, { children: bevestigen ? "Na het wijzigen moeten alle telefoons van deze scanner de nieuwe pincode invoeren." : `Nieuwe pincode voor ${scanner?.naam ?? "deze scanner"}.` })] }), bevestigen ? null : (_jsxs("div", { className: "space-y-1.5", children: [_jsx(Label, { htmlFor: "scanner-pin", required: true, children: "Nieuwe pincode" }), _jsx(Input, { id: "scanner-pin", inputMode: "numeric", autoComplete: "off", value: pin, onChange: (e) => { setPin(e.target.value.replace(/\D/g, "").slice(0, 12)); setFout(null); }, onKeyDown: (e) => { if (e.key === "Enter")
121
223
  verder(); }, className: "font-mono tracking-[0.3em]" }), _jsx("p", { className: cn("text-sm", fout ? "text-destructive" : "text-muted-foreground"), children: fout ?? "Minimaal 4 cijfers." })] })), _jsxs(DialogFooter, { children: [_jsx(Button, { variant: "outline", onClick: onClose, children: "Annuleren" }), bevestigen ? (_jsxs(Button, { disabled: bezig, onClick: () => void opslaan(), children: [bezig ? _jsx(Loader2, { className: "mr-2 h-4 w-4 animate-spin" }) : null, "Pincode wijzigen"] })) : (_jsx(Button, { onClick: verder, children: "Verder" }))] })] }) }));
122
224
  }
123
- function ScannerDetail({ scanner, basis, pincode, onNaam, onPincode, onSlotOpheffen }) {
225
+ function ScannerDetail({ scanner, basis, pincode, onNaamOpslaan, onPincode, onSlotOpheffen }) {
226
+ const [naamBewerken, setNaamBewerken] = useState(false);
227
+ useEffect(() => { setNaamBewerken(false); }, [scanner.id]);
124
228
  const pad = usePrintplekkenPad();
125
229
  const print = usePrintStand(scanner);
126
230
  const [gekopieerd, setGekopieerd] = useState(false);
@@ -140,7 +244,11 @@ function ScannerDetail({ scanner, basis, pincode, onNaam, onPincode, onSlotOphef
140
244
  meldFout("Kopiëren lukt niet. Selecteer de link en kopieer hem zelf.", error);
141
245
  }
142
246
  };
143
- return (_jsxs("div", { children: [_jsxs("header", { className: "flex items-center gap-3 border-b border-border p-4", children: [_jsx("span", { className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-md bg-muted text-primary", children: _jsx(Icoon, { className: "h-5 w-5", "aria-hidden": true }) }), _jsxs("div", { className: "min-w-0 flex-1", children: [_jsx("p", { className: "truncate text-lg font-semibold text-card-foreground", children: scanner.naam }), _jsx("span", { className: "text-xs text-muted-foreground", children: scannerSoortLabel(scanner.type) })] }), _jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsx(Button, { variant: "ghost", size: "icon", "aria-label": `Meer voor ${scanner.naam}`, children: _jsx(MoreHorizontal, { className: "h-4 w-4" }) }) }), _jsxs(DropdownMenuContent, { align: "end", children: [_jsxs(DropdownMenuItem, { onSelect: onNaam, children: [_jsx(Pencil, { className: "mr-2 h-4 w-4" }), " Naam wijzigen"] }), _jsxs(DropdownMenuItem, { onSelect: onPincode, children: [_jsx(Pencil, { className: "mr-2 h-4 w-4" }), " Pincode wijzigen"] })] })] })] }), _jsxs("div", { className: "space-y-4 p-4", children: [_jsxs("section", { className: "space-y-2", children: [_jsx("h3", { className: "font-semibold text-card-foreground", children: "Openen" }), basis.staat === "laden" ? (_jsx("p", { className: "text-sm text-muted-foreground", children: "Link wordt opgehaald\u2026" })) : url ? (_jsxs("div", { className: "grid gap-4 sm:grid-cols-[auto_minmax(0,1fr)] sm:items-center", children: [_jsx(KoppelQr, { link: url, alt: `QR-code om ${scanner.naam} op een telefoon te openen` }), _jsxs("div", { className: "min-w-0 space-y-2", children: [_jsx("p", { className: "text-sm text-muted-foreground", children: "Scan de QR-code met de telefoon, of open of kopieer de link." }), _jsxs("div", { className: "relative", children: [_jsx(Input, { readOnly: true, value: url, onFocus: (e) => e.currentTarget.select(), "aria-label": "Scannerlink", className: "pr-11 text-sm" }), _jsx(Button, { type: "button", variant: "ghost", size: "icon", onClick: () => void kopieer(), "aria-label": gekopieerd ? "Link gekopieerd" : "Link kopiëren", title: gekopieerd ? "Gekopieerd" : "Link kopiëren", className: "absolute right-0.5 top-1/2 h-8 w-8 -translate-y-1/2", children: gekopieerd ? _jsx(Check, { className: "h-4 w-4" }) : _jsx(Copy, { className: "h-4 w-4" }) })] }), _jsx(Button, { asChild: true, className: "w-full", children: _jsxs("a", { href: url, target: "_blank", rel: "noreferrer", children: [_jsx(ExternalLink, { className: "mr-2 h-4 w-4" }), "Scanner openen"] }) })] })] })) : (_jsx("p", { className: "text-sm text-destructive", children: "De link kan nu niet worden gemaakt. Probeer het later opnieuw; blijft het misgaan, neem contact op met de beheerder." }))] }), _jsxs("section", { className: "space-y-2 border-t border-border pt-4", children: [_jsx("h3", { className: "font-semibold text-card-foreground", children: "Printen" }), _jsxs("div", { className: "flex flex-wrap items-center gap-x-3 gap-y-1 text-sm", children: [_jsx(Printer, { className: "h-4 w-4 shrink-0 text-muted-foreground", "aria-hidden": true }), print.laden ? (_jsx("span", { className: "text-muted-foreground", children: "Laden\u2026" })) : print.fout ? (_jsx("span", { className: "text-warning", children: "De printplek kan nu niet worden gelezen. Werk de Layout-maker bij of probeer het later opnieuw." })) : print.plek ? (_jsxs("span", { children: [eind ? "Afleverbrief, controlelijst en pakbon printen op: " : "Verzendbrief en restpakbon printen op: ", _jsx("strong", { children: print.plek }), print.probleem ? _jsxs("span", { className: "ml-2 inline-flex items-center gap-1 text-warning", children: [_jsx(AlertTriangle, { className: "h-3.5 w-3.5", "aria-hidden": true }), print.probleem] }) : null] })) : (_jsxs("span", { className: "inline-flex items-center gap-1 text-warning", children: [_jsx(AlertTriangle, { className: "h-3.5 w-3.5", "aria-hidden": true }), eind ? "Nog geen controleplek gekozen" : "Nog geen printplek gekozen"] })), _jsx(PrintplekkenLink, { pad: pad })] })] }), _jsxs("section", { className: "space-y-2 border-t border-border pt-4", children: [_jsx("h3", { className: "font-semibold text-card-foreground", children: "Pincode" }), _jsxs("div", { className: "flex flex-wrap items-center gap-2 text-sm", children: [_jsx(KeyRound, { className: "h-4 w-4 shrink-0 text-muted-foreground", "aria-hidden": true }), pincode === undefined ? (_jsx("span", { className: "text-muted-foreground", children: "Laden\u2026" })) : !pincode.ingesteld ? (_jsxs("span", { className: "inline-flex items-center gap-1 text-warning", children: [_jsx(AlertTriangle, { className: "h-4 w-4", "aria-hidden": true }), "Nog geen pincode: telefoons kunnen deze scanner nog niet openen"] })) : pincode.pincode ? (_jsxs("span", { children: ["Pincode ", _jsx("span", { className: "font-mono font-semibold tracking-widest", children: pincode.pincode })] })) : (_jsxs("span", { className: "inline-flex items-center gap-1 text-warning", children: [_jsx(AlertTriangle, { className: "h-4 w-4", "aria-hidden": true }), "Onbekend: stel opnieuw in"] })), _jsx(Button, { variant: "ghost", size: "icon", className: "h-8 w-8", onClick: onPincode, "aria-label": "Pincode wijzigen", title: "Pincode wijzigen", children: _jsx(Pencil, { className: "h-4 w-4" }) })] }), pincode?.standaard ? (_jsxs("div", { className: "flex flex-wrap items-center gap-x-3 gap-y-1 rounded-md bg-warning/10 p-3 text-sm text-warning", children: [_jsxs("span", { className: "inline-flex items-center gap-1", children: [_jsx(AlertTriangle, { className: "h-4 w-4 shrink-0", "aria-hidden": true }), "Standaardpincode 0000: wijzig hem, anders kan iedereen met de link scannen."] }), _jsx(Button, { variant: "link", className: "h-auto p-0", onClick: onPincode, children: "Pincode wijzigen" })] })) : null, pincode?.geblokkeerdTot ? (_jsxs("div", { className: "flex flex-wrap items-center gap-3 text-sm text-warning", children: [_jsxs("span", { children: ["Te vaak een verkeerde pincode: telefoons wachten tot ", formatTijd(pincode.geblokkeerdTot), "."] }), _jsx(Button, { variant: "outline", size: "sm", onClick: onSlotOpheffen, children: "Slot opheffen" })] })) : null] })] })] }));
247
+ return (_jsxs("div", { children: [_jsxs("header", { className: "flex items-center gap-3 border-b border-border p-4", children: [_jsx("span", { className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-md bg-muted text-primary", children: _jsx(Icoon, { className: "h-5 w-5", "aria-hidden": true }) }), _jsxs("div", { className: "min-w-0 flex-1", children: [_jsx(BewerkbareNaam, { naam: scanner.naam, bewerken: naamBewerken, onKlaar: () => setNaamBewerken(false), onOpslaan: onNaamOpslaan }), _jsx("span", { className: "text-xs text-muted-foreground", children: scannerSoortLabel(scanner.type) })] }), _jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsx(Button, { variant: "ghost", size: "icon", "aria-label": `Meer voor ${scanner.naam}`, children: _jsx(MoreHorizontal, { className: "h-4 w-4" }) }) }), _jsxs(DropdownMenuContent, { align: "end", children: [_jsxs(DropdownMenuItem, { onSelect: () => window.setTimeout(() => setNaamBewerken(true), 0), children: [_jsx(Pencil, { className: "mr-2 h-4 w-4" }), " Naam wijzigen"] }), _jsxs(DropdownMenuItem, { onSelect: onPincode, children: [_jsx(Pencil, { className: "mr-2 h-4 w-4" }), " Pincode wijzigen"] })] })] })] }), _jsxs("div", { className: "space-y-4 p-4", children: [_jsxs("section", { className: "space-y-2", children: [_jsx("h3", { className: "font-semibold text-card-foreground", children: "Openen" }), basis.staat === "laden" ? (_jsx("p", { className: "text-sm text-muted-foreground", children: "Link wordt opgehaald\u2026" })) : url ? (_jsxs("div", { className: "grid gap-4 sm:grid-cols-[auto_minmax(0,1fr)] sm:items-center", children: [_jsx(KoppelQr, { link: url, alt: `QR-code om ${scanner.naam} op een telefoon te openen` }), _jsxs("div", { className: "min-w-0 space-y-2", children: [_jsx("p", { className: "text-sm text-muted-foreground", children: "Scan de QR-code met de telefoon, of open of kopieer de link." }), _jsxs("div", { className: "relative", children: [_jsx(Input, { readOnly: true, value: url, onFocus: (e) => e.currentTarget.select(), "aria-label": "Scannerlink", className: "pr-11 text-sm" }), _jsx(Button, { type: "button", variant: "ghost", size: "icon", onClick: () => void kopieer(), "aria-label": gekopieerd ? "Link gekopieerd" : "Link kopiëren", title: gekopieerd ? "Gekopieerd" : "Link kopiëren", className: "absolute right-0.5 top-1/2 h-8 w-8 -translate-y-1/2", children: gekopieerd ? _jsx(Check, { className: "h-4 w-4" }) : _jsx(Copy, { className: "h-4 w-4" }) })] }), _jsx(Button, { asChild: true, className: "w-full", children: _jsxs("a", { href: url, target: "_blank", rel: "noreferrer", children: [_jsx(ExternalLink, { className: "mr-2 h-4 w-4" }), "Scanner openen"] }) })] })] })) : (_jsx("p", { className: "text-sm text-destructive", children: "De link kan nu niet worden gemaakt. Probeer het later opnieuw; blijft het misgaan, neem contact op met de beheerder." }))] }), _jsxs("section", { className: "space-y-3 border-t border-border pt-4", children: [_jsx("h3", { className: "font-semibold text-card-foreground", children: "Printen" }), _jsxs("div", { className: "flex flex-wrap items-start gap-3 text-sm", children: [_jsx(Printer, { className: "mt-0.5 h-4 w-4 shrink-0 text-muted-foreground", "aria-hidden": true }), _jsxs("div", { className: "min-w-0 flex-1", children: [_jsx("p", { className: "text-xs text-muted-foreground", children: "Printen via" }), print.laden ? (_jsx("p", { className: "text-muted-foreground", children: "Laden\u2026" })) : print.fout ? (_jsx("p", { className: "text-warning", children: "De printplek kan nu niet worden gelezen. Probeer het later opnieuw." })) : print.plek ? (_jsxs(_Fragment, { children: [_jsx("p", { className: "font-semibold text-card-foreground break-words", children: print.plek }), print.klaar === true ? (_jsxs("p", { className: "inline-flex items-center gap-1 text-primary", children: [_jsx(Check, { className: "h-3.5 w-3.5", "aria-hidden": true }), "Klaar om te printen"] })) : print.klaar === false ? (_jsxs("p", { className: "inline-flex items-start gap-1 text-warning", children: [_jsx(AlertTriangle, { className: "mt-0.5 h-3.5 w-3.5 shrink-0", "aria-hidden": true }), print.reden] })) : null, print.melding ? _jsx("p", { className: "text-xs text-muted-foreground", children: print.melding }) : null] })) : (_jsxs("p", { className: "inline-flex items-center gap-1 text-warning", children: [_jsx(AlertTriangle, { className: "h-3.5 w-3.5", "aria-hidden": true }), eind ? "Nog geen controleplek gekozen" : "Nog geen printplek gekozen"] }))] }), pad ? (_jsx("a", { href: print.plekId ? `${pad}?plek=${encodeURIComponent(print.plekId)}` : pad, className: "shrink-0 font-semibold text-primary underline-offset-2 hover:underline", children: "Wijzigen" })) : (_jsx("span", { className: "w-full text-muted-foreground sm:w-auto", children: "Wijzig dit in Printen \u203A Printplekken" }))] }), _jsxs("div", { className: "space-y-2", children: [_jsx("p", { className: "text-sm font-semibold text-card-foreground", children: "Deze documenten worden hier geprint" }), _jsx("ul", { className: "overflow-hidden rounded-lg border border-border", children: PRINT_RIJEN[eind ? "eind" : "kar"].filter((rij) => !rij.alleenAlsLayoutMaker || (Array.isArray(print.docs) && print.docs.some((d) => d.soort === rij.soort))).map((rij, i) => {
248
+ const doc = print.docs?.find((d) => d.soort === rij.soort) ?? null;
249
+ const extra = doc ? [doc.versie, doc.formaat].filter(Boolean).join(" · ") : "";
250
+ return (_jsxs("li", { className: cn("flex items-start gap-3 px-3 py-2 text-sm", i > 0 && "border-t border-border"), children: [_jsx(FileText, { className: "mt-0.5 h-4 w-4 shrink-0 text-muted-foreground", "aria-hidden": true }), _jsxs("div", { className: "min-w-0 flex-1", children: [_jsxs("p", { className: "break-words", children: [_jsx("span", { className: "text-card-foreground", children: rij.naam }), extra ? _jsxs("span", { className: "text-muted-foreground", children: [" \u00B7 ", extra] }) : null] }), doc && doc.kanPrinten === false ? (_jsxs("p", { className: "inline-flex items-start gap-1 text-warning", children: [_jsx(AlertTriangle, { className: "mt-0.5 h-3.5 w-3.5 shrink-0", "aria-hidden": true }), doc.reden ?? "Dit document kan hier nu niet printen."] })) : null] })] }, rij.naam));
251
+ }) })] })] }), _jsxs("section", { className: "space-y-2 border-t border-border pt-4", children: [_jsx("h3", { className: "font-semibold text-card-foreground", children: "Pincode" }), _jsxs("div", { className: "flex flex-wrap items-center gap-2 text-sm", children: [_jsx(KeyRound, { className: "h-4 w-4 shrink-0 text-muted-foreground", "aria-hidden": true }), pincode === undefined ? (_jsx("span", { className: "text-muted-foreground", children: "Laden\u2026" })) : !pincode.ingesteld ? (_jsxs("span", { className: "inline-flex items-center gap-1 text-warning", children: [_jsx(AlertTriangle, { className: "h-4 w-4", "aria-hidden": true }), "Nog geen pincode: telefoons kunnen deze scanner nog niet openen"] })) : pincode.pincode ? (_jsxs("span", { children: ["Pincode ", _jsx("span", { className: "font-mono font-semibold tracking-widest", children: pincode.pincode })] })) : (_jsxs("span", { className: "inline-flex items-center gap-1 text-warning", children: [_jsx(AlertTriangle, { className: "h-4 w-4", "aria-hidden": true }), "Onbekend: stel opnieuw in"] })), _jsx(Button, { variant: "ghost", size: "icon", className: "h-8 w-8", onClick: onPincode, "aria-label": "Pincode wijzigen", title: "Pincode wijzigen", children: _jsx(Pencil, { className: "h-4 w-4" }) })] }), pincode?.standaard ? (_jsxs("div", { className: "flex flex-wrap items-center gap-x-3 gap-y-1 rounded-md bg-warning/10 p-3 text-sm text-warning", children: [_jsxs("span", { className: "inline-flex items-center gap-1", children: [_jsx(AlertTriangle, { className: "h-4 w-4 shrink-0", "aria-hidden": true }), "Standaardpincode 0000: wijzig hem, anders kan iedereen met de link scannen."] }), _jsx(Button, { variant: "link", className: "h-auto p-0", onClick: onPincode, children: "Pincode wijzigen" })] })) : null, pincode?.geblokkeerdTot ? (_jsxs("div", { className: "flex flex-wrap items-center gap-3 text-sm text-warning", children: [_jsxs("span", { children: ["Te vaak een verkeerde pincode: telefoons wachten tot ", formatTijd(pincode.geblokkeerdTot), "."] }), _jsx(Button, { variant: "outline", size: "sm", onClick: onSlotOpheffen, children: "Slot opheffen" })] })) : null] })] })] }));
144
252
  }
145
253
  const KOLOMMEN = "grid grid-cols-1 items-center gap-3 @2xl:grid-cols-[minmax(10rem,1.3fr)_minmax(0,1fr)_10rem]";
146
254
  function PincodeLabel({ pin }) {
@@ -165,7 +273,6 @@ export function ScanModulePage({ linkBasis } = {}) {
165
273
  const zoekRef = useRef(null);
166
274
  const [basis, setBasis] = useState({ staat: "laden" });
167
275
  const [pincodes, setPincodes] = useState(null);
168
- const [naamVoor, setNaamVoor] = useState(null);
169
276
  const [pinVoor, setPinVoor] = useState(null);
170
277
  const lijst = useMemo(() => {
171
278
  const volgorde = (s) => (normaliseerScannerType(s.type) === "eindcontrole" ? 0 : 1);
@@ -222,13 +329,12 @@ export function ScanModulePage({ linkBasis } = {}) {
222
329
  await laadPincodes();
223
330
  };
224
331
  const lijstBlok = (_jsxs("div", { className: "@container", children: [_jsxs("div", { className: "hidden gap-3 px-4 py-3 pr-11 text-sm font-semibold text-card-foreground @2xl:grid @2xl:grid-cols-[minmax(10rem,1.3fr)_minmax(0,1fr)_10rem]", children: [_jsx("span", { children: "Scanner" }), _jsx("span", { children: "Printplek" }), _jsx("span", { children: "Pincode" })] }), laden ? (_jsx("div", { className: "border-t border-border", children: _jsx(TableSkeleton, { widths: [280], rows: 2 }) })) : (zichtbaar.map((s) => (_jsx(ScannerRij, { scanner: s, gekozen: s.id === gekozenId, pin: pincodes?.[s.id], onKies: () => { setKeuze(s.id); setDetailOpen(true); } }, s.id)))), !laden && zichtbaar.length === 0 ? (_jsx("p", { className: "border-t border-border px-4 py-6 text-sm text-muted-foreground", children: lijst.length === 0 ? "Er zijn nog geen scanners. Vraag je beheerder de installatie van Scan te controleren." : "Niets gevonden." })) : null] }));
225
- const detail = gekozen ? (_jsx(ScannerDetail, { scanner: gekozen, basis: basis, pincode: pincodes ? (pincodes[gekozen.id] ?? { ingesteld: false, standaard: false, pincode: null, geblokkeerdTot: null }) : undefined, onNaam: () => setNaamVoor(gekozen), onPincode: () => setPinVoor(gekozen), onSlotOpheffen: () => void slotOpheffen(gekozen) })) : (_jsx("p", { className: "p-4 text-sm text-muted-foreground", children: "Kies een scanner." }));
332
+ const detail = gekozen ? (_jsx(ScannerDetail, { scanner: gekozen, basis: basis, pincode: pincodes ? (pincodes[gekozen.id] ?? { ingesteld: false, standaard: false, pincode: null, geblokkeerdTot: null }) : undefined, onNaamOpslaan: (naam) => wijzigScanner(gekozen.id, { naam }), onPincode: () => setPinVoor(gekozen), onSlotOpheffen: () => void slotOpheffen(gekozen) })) : (_jsx("p", { className: "p-4 text-sm text-muted-foreground", children: "Kies een scanner." }));
226
333
  return (_jsxs(PageContainer, { children: [_jsx("div", { className: "mb-4 grid grid-cols-[minmax(0,1fr)_auto] items-center gap-3", children: _jsx("h1", { className: "truncate text-2xl font-semibold text-foreground", children: "Scanners" }) }), _jsxs("div", { className: "relative mb-4 w-full sm:max-w-sm", children: [_jsx(Search, { className: "pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground", "aria-hidden": true }), _jsx(Input, { ref: zoekRef, value: zoek, onChange: (e) => setZoek(e.target.value), placeholder: "Zoek scanner\u2026", className: "pl-9 pr-9", "aria-label": "Zoek scanner" }), _jsx("span", { className: "pointer-events-none absolute right-3 top-1/2 -translate-y-1/2", children: _jsx(Toetsje, { children: "/" }) })] }), _jsx(LijstDetail, { lijst: lijstBlok, detail: detail, detailOpen: detailOpen, onTerug: () => setDetailOpen(false), terugTekst: "Scanners" }), _jsx(ShortcutHelp, { open: hulp, onOpenChange: setHulp, shortcuts: [
227
334
  [["/"], "Zoeken"],
228
335
  [["J", "K"], "Volgende / vorige scanner"],
229
336
  [["Enter"], "Gekozen scanner openen"],
230
337
  [["Esc"], "Zoeken verlaten / sluiten"],
231
338
  [["?"], "Dit overzicht"],
232
- ] }), _jsx(NaamDialoog, { scanner: naamVoor, onClose: () => setNaamVoor(null), onOpslaan: async (naam) => { if (naamVoor && await wijzigScanner(naamVoor.id, { naam }))
233
- setNaamVoor(null); } }), _jsx(PincodeDialoog, { scanner: pinVoor, onClose: () => setPinVoor(null), onKlaar: () => { setPinVoor(null); void laadPincodes(); } })] }));
339
+ ] }), _jsx(PincodeDialoog, { scanner: pinVoor, onClose: () => setPinVoor(null), onKlaar: () => { setPinVoor(null); void laadPincodes(); } })] }));
234
340
  }
@@ -1 +1 @@
1
- {"version":3,"file":"useScanners.d.ts","sourceRoot":"","sources":["../../src/hooks/useScanners.ts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,OAAO,CAAC;IAChB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,wFAAwF;IACxF,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,gBAAgB,GAAG,OAAO,CACpC,IAAI,CACF,aAAa,EACX,MAAM,GACN,cAAc,GACd,QAAQ,GACR,MAAM,GACN,oBAAoB,GACpB,SAAS,GACT,uBAAuB,GACvB,UAAU,GACV,YAAY,CACf,CACF,CAAC;AAEF,wBAAgB,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAQ9C;AAED,wBAAgB,WAAW;;;;;0BAqBR;QACb,IAAI,EAAE,MAAM,CAAC;QACb,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,iEAAiE;QACjE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC3B;wBAqCU,MAAM,aAAa,gBAAgB,KAAG,OAAO,CAAC,OAAO,CAAC;2BAkBtD,MAAM;EAapB"}
1
+ {"version":3,"file":"useScanners.d.ts","sourceRoot":"","sources":["../../src/hooks/useScanners.ts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,OAAO,CAAC;IAChB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,wFAAwF;IACxF,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,gBAAgB,GAAG,OAAO,CACpC,IAAI,CACF,aAAa,EACX,MAAM,GACN,cAAc,GACd,QAAQ,GACR,MAAM,GACN,oBAAoB,GACpB,SAAS,GACT,uBAAuB,GACvB,UAAU,GACV,YAAY,CACf,CACF,CAAC;AAEF,wBAAgB,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAQ9C;AAED,wBAAgB,WAAW;;;;;0BAqBR;QACb,IAAI,EAAE,MAAM,CAAC;QACb,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,iEAAiE;QACjE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC3B;wBAqCU,MAAM,aAAa,gBAAgB,KAAG,OAAO,CAAC,OAAO,CAAC;2BAmBtD,MAAM;EAapB"}
@@ -78,7 +78,8 @@ export function useScanners() {
78
78
  const { data, error } = await db.rpc("scan_naam_wijzigen_v1", { p_scanner_id: id, p_naam: wijziging.naam });
79
79
  if (error || !data?.ok) {
80
80
  console.error("[scanners] naam wijzigen", error ?? data);
81
- toast.error("De naam kon niet worden opgeslagen. Probeer het opnieuw; blijft het misgaan, neem contact op met de beheerder.");
81
+ const melding = !error && typeof data?.melding === "string" && data.melding ? data.melding : null;
82
+ toast.error(melding ?? "De naam kon niet worden opgeslagen. Probeer het opnieuw; blijft het misgaan, neem contact op met de beheerder.");
82
83
  return false;
83
84
  }
84
85
  toast.success("Naam opgeslagen");
@@ -20,7 +20,7 @@ function createSupabaseAdminClient() {
20
20
  let _supabaseAdmin;
21
21
  // Server-side Supabase client with service role - bypasses RLS
22
22
  // SECURITY: Only use this for trusted server-side operations, never expose to client code
23
- // Import like: import { supabaseAdmin } from "./client.server.js";
23
+ // Import like: import { supabaseAdmin } from "../../integrations/supabase/client.server.js";
24
24
  export const supabaseAdmin = new Proxy({}, {
25
25
  get(_, prop, receiver) {
26
26
  if (!_supabaseAdmin)
@@ -17268,7 +17268,7 @@ export type Database = {
17268
17268
  };
17269
17269
  Relationships: [];
17270
17270
  };
17271
- logistics_logboek_2026w47: {
17271
+ logistics_logboek_2026w48: {
17272
17272
  Row: {
17273
17273
  actor: string | null;
17274
17274
  attempts: number | null;
@@ -17388,7 +17388,7 @@ export type Database = {
17388
17388
  };
17389
17389
  Relationships: [];
17390
17390
  };
17391
- logistics_logboek_2026w48: {
17391
+ logistics_logboek_2026w49: {
17392
17392
  Row: {
17393
17393
  actor: string | null;
17394
17394
  attempts: number | null;
@@ -17508,7 +17508,7 @@ export type Database = {
17508
17508
  };
17509
17509
  Relationships: [];
17510
17510
  };
17511
- logistics_logboek_2026w49: {
17511
+ logistics_logboek_2026w50: {
17512
17512
  Row: {
17513
17513
  actor: string | null;
17514
17514
  attempts: number | null;
@@ -17628,7 +17628,7 @@ export type Database = {
17628
17628
  };
17629
17629
  Relationships: [];
17630
17630
  };
17631
- logistics_logboek_2026w50: {
17631
+ logistics_logboek_2026w51: {
17632
17632
  Row: {
17633
17633
  actor: string | null;
17634
17634
  attempts: number | null;
@@ -17748,7 +17748,7 @@ export type Database = {
17748
17748
  };
17749
17749
  Relationships: [];
17750
17750
  };
17751
- logistics_logboek_2026w51: {
17751
+ logistics_logboek_2026w52: {
17752
17752
  Row: {
17753
17753
  actor: string | null;
17754
17754
  attempts: number | null;
@@ -17868,7 +17868,7 @@ export type Database = {
17868
17868
  };
17869
17869
  Relationships: [];
17870
17870
  };
17871
- logistics_logboek_2026w52: {
17871
+ logistics_logboek_2026w53: {
17872
17872
  Row: {
17873
17873
  actor: string | null;
17874
17874
  attempts: number | null;
@@ -17988,7 +17988,7 @@ export type Database = {
17988
17988
  };
17989
17989
  Relationships: [];
17990
17990
  };
17991
- logistics_logboek_2026w53: {
17991
+ logistics_logboek_2027w01: {
17992
17992
  Row: {
17993
17993
  actor: string | null;
17994
17994
  attempts: number | null;
@@ -18108,7 +18108,7 @@ export type Database = {
18108
18108
  };
18109
18109
  Relationships: [];
18110
18110
  };
18111
- logistics_logboek_2027w01: {
18111
+ logistics_logboek_2027w02: {
18112
18112
  Row: {
18113
18113
  actor: string | null;
18114
18114
  attempts: number | null;
@@ -18228,7 +18228,7 @@ export type Database = {
18228
18228
  };
18229
18229
  Relationships: [];
18230
18230
  };
18231
- logistics_logboek_2027w02: {
18231
+ logistics_logboek_2027w03: {
18232
18232
  Row: {
18233
18233
  actor: string | null;
18234
18234
  attempts: number | null;
@@ -18348,7 +18348,7 @@ export type Database = {
18348
18348
  };
18349
18349
  Relationships: [];
18350
18350
  };
18351
- logistics_logboek_2027w03: {
18351
+ logistics_logboek_2027w04: {
18352
18352
  Row: {
18353
18353
  actor: string | null;
18354
18354
  attempts: number | null;
@@ -18468,7 +18468,7 @@ export type Database = {
18468
18468
  };
18469
18469
  Relationships: [];
18470
18470
  };
18471
- logistics_logboek_2027w04: {
18471
+ logistics_logboek_2027w05: {
18472
18472
  Row: {
18473
18473
  actor: string | null;
18474
18474
  attempts: number | null;
@@ -18588,7 +18588,7 @@ export type Database = {
18588
18588
  };
18589
18589
  Relationships: [];
18590
18590
  };
18591
- logistics_logboek_2027w05: {
18591
+ logistics_logboek_2027w06: {
18592
18592
  Row: {
18593
18593
  actor: string | null;
18594
18594
  attempts: number | null;
@@ -18708,7 +18708,7 @@ export type Database = {
18708
18708
  };
18709
18709
  Relationships: [];
18710
18710
  };
18711
- logistics_logboek_2027w06: {
18711
+ logistics_logboek_2027w07: {
18712
18712
  Row: {
18713
18713
  actor: string | null;
18714
18714
  attempts: number | null;
@@ -18828,7 +18828,7 @@ export type Database = {
18828
18828
  };
18829
18829
  Relationships: [];
18830
18830
  };
18831
- logistics_logboek_2027w07: {
18831
+ logistics_logboek_2027w08: {
18832
18832
  Row: {
18833
18833
  actor: string | null;
18834
18834
  attempts: number | null;
@@ -18948,7 +18948,7 @@ export type Database = {
18948
18948
  };
18949
18949
  Relationships: [];
18950
18950
  };
18951
- logistics_logboek_2027w08: {
18951
+ logistics_logboek_2027w09: {
18952
18952
  Row: {
18953
18953
  actor: string | null;
18954
18954
  attempts: number | null;
@@ -41294,6 +41294,10 @@ export type Database = {
41294
41294
  };
41295
41295
  Returns: Json;
41296
41296
  };
41297
+ _print_floriday_actief: {
41298
+ Args: never;
41299
+ Returns: boolean;
41300
+ };
41297
41301
  _print_herdruk_kern: {
41298
41302
  Args: {
41299
41303
  p_bron: string;
@@ -41395,6 +41399,12 @@ export type Database = {
41395
41399
  };
41396
41400
  Returns: Json;
41397
41401
  };
41402
+ _print_plek_veilingbrief: {
41403
+ Args: {
41404
+ p_plek: string;
41405
+ };
41406
+ Returns: Json;
41407
+ };
41398
41408
  _print_plek_vervang_printer: {
41399
41409
  Args: {
41400
41410
  p_nieuw: string;
@@ -47024,6 +47034,23 @@ export type Database = {
47024
47034
  Args: never;
47025
47035
  Returns: string;
47026
47036
  };
47037
+ logistics_belading_vertrouwd_aanmelden: {
47038
+ Args: {
47039
+ p_budget_ms?: number;
47040
+ p_portie?: number;
47041
+ };
47042
+ Returns: Json;
47043
+ };
47044
+ logistics_belading_vertrouwd_kandidaten: {
47045
+ Args: {
47046
+ p_max?: number;
47047
+ };
47048
+ Returns: {
47049
+ order_id: string;
47050
+ order_number: string;
47051
+ reden: string;
47052
+ }[];
47053
+ };
47027
47054
  logistics_belading_waarschuwingen_zet: {
47028
47055
  Args: {
47029
47056
  p_items: Json;
@@ -56428,6 +56455,12 @@ export type Database = {
56428
56455
  Args: never;
56429
56456
  Returns: Json;
56430
56457
  };
56458
+ print_plek_documenten_v2: {
56459
+ Args: {
56460
+ p_plek: string;
56461
+ };
56462
+ Returns: Json;
56463
+ };
56431
56464
  print_plek_koppelen_v1: {
56432
56465
  Args: {
56433
56466
  p_bron: string;
@@ -56453,6 +56486,12 @@ export type Database = {
56453
56486
  };
56454
56487
  Returns: Json;
56455
56488
  };
56489
+ print_plek_veilingbrief_v1: {
56490
+ Args: {
56491
+ p_plek: string;
56492
+ };
56493
+ Returns: Json;
56494
+ };
56456
56495
  print_plek_verwijderen_v1: {
56457
56496
  Args: {
56458
56497
  p_plek: string;