@flowselections/floriday-authenticatie-module 1.0.75 → 1.0.77
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/floriday/FlorydayApiLogPage.d.ts.map +1 -1
- package/dist-lib/components/floriday/FlorydayApiLogPage.js +12 -1
- package/dist-lib/components/floriday/FlorydayConnectionPage.d.ts.map +1 -1
- package/dist-lib/components/floriday/FlorydayConnectionPage.js +2 -1
- package/dist-lib/components/floriday/FlorydayCronStallBanner.d.ts +3 -0
- package/dist-lib/components/floriday/FlorydayCronStallBanner.d.ts.map +1 -0
- package/dist-lib/components/floriday/FlorydayCronStallBanner.js +13 -0
- package/dist-lib/integrations/supabase/types.d.ts +897 -0
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/cron/process-stock-queue.d.ts +5 -0
- package/dist-lib/lib/cron/process-stock-queue.d.ts.map +1 -1
- package/dist-lib/lib/cron/process-stock-queue.js +31 -1
- package/dist-lib/lib/cron/retry-floriday-documents.d.ts.map +1 -1
- package/dist-lib/lib/cron/retry-floriday-documents.js +14 -1
- package/dist-lib/lib/document-version.d.ts +33 -0
- package/dist-lib/lib/document-version.d.ts.map +1 -0
- package/dist-lib/lib/document-version.js +55 -0
- package/dist-lib/lib/floriday-api-log.functions.d.ts +1 -0
- package/dist-lib/lib/floriday-api-log.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-api-log.functions.js +1 -1
- package/dist-lib/lib/floriday-api-log.server.js +1 -1
- package/dist-lib/lib/floriday-auction-letters.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-auction-letters.functions.js +5 -8
- package/dist-lib/lib/floriday-cron-status.functions.d.ts +11 -0
- package/dist-lib/lib/floriday-cron-status.functions.d.ts.map +1 -0
- package/dist-lib/lib/floriday-cron-status.functions.js +9 -0
- package/dist-lib/lib/floriday-labels.functions.d.ts +2 -0
- package/dist-lib/lib/floriday-labels.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-labels.functions.js +7 -8
- package/dist-lib/lib/floriday-stickers.functions.d.ts +2 -0
- package/dist-lib/lib/floriday-stickers.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-stickers.functions.js +7 -8
- package/dist-lib/lib/floriday-sync.functions.d.ts +690 -0
- package/dist-lib/lib/floriday-sync.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-sync.functions.js +16 -2
- package/dist-lib/lib/floriday-tray-stickers.functions.d.ts +29 -4
- package/dist-lib/lib/floriday-tray-stickers.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-tray-stickers.functions.js +61 -60
- package/dist-lib/lib/floriday.functions.d.ts +13 -4
- package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday.functions.js +70 -18
- package/dist-lib/lib/gateway/customer-stickers.d.ts +93 -0
- package/dist-lib/lib/gateway/customer-stickers.d.ts.map +1 -0
- package/dist-lib/lib/gateway/customer-stickers.js +279 -0
- package/dist-lib/lib/gateway/floriday-error-map.d.ts +11 -0
- package/dist-lib/lib/gateway/floriday-error-map.d.ts.map +1 -0
- package/dist-lib/lib/gateway/floriday-error-map.js +30 -0
- package/dist-lib/lib/gateway/fulfillment-order-send.d.ts.map +1 -1
- package/dist-lib/lib/gateway/fulfillment-order-send.js +19 -2
- package/dist-lib/lib/gateway/fulfillment-order-status.d.ts.map +1 -1
- package/dist-lib/lib/gateway/fulfillment-order-status.js +5 -3
- package/dist-lib/lib/gateway/fulfillment-order-validate.d.ts +8 -0
- package/dist-lib/lib/gateway/fulfillment-order-validate.d.ts.map +1 -0
- package/dist-lib/lib/gateway/fulfillment-order-validate.js +56 -0
- package/dist-lib/lib/gateway/index.d.ts +1 -0
- package/dist-lib/lib/gateway/index.d.ts.map +1 -1
- package/dist-lib/lib/gateway/index.js +1 -0
- package/dist-lib/lib/gateway/pdf.d.ts +4 -1
- package/dist-lib/lib/gateway/pdf.d.ts.map +1 -1
- package/dist-lib/lib/gateway/pdf.js +26 -4
- package/dist-lib/lib/module-version.d.ts +1 -1
- package/dist-lib/lib/module-version.js +1 -1
- package/dist-lib/lib/shell-routes.d.ts +1 -1
- package/dist-lib/lib/shell-routes.d.ts.map +1 -1
- package/dist-lib/lib/shell-routes.js +1 -0
- package/package.json +11 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlorydayApiLogPage.d.ts","sourceRoot":"","sources":["../../../src/components/floriday/FlorydayApiLogPage.tsx"],"names":[],"mappings":"AAgEA,wBAAgB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"FlorydayApiLogPage.d.ts","sourceRoot":"","sources":["../../../src/components/floriday/FlorydayApiLogPage.tsx"],"names":[],"mappings":"AAgEA,wBAAgB,kBAAkB,gCAuZjC"}
|
|
@@ -137,7 +137,7 @@ export function FlorydayApiLogPage() {
|
|
|
137
137
|
const floridayHref = !isPoll && tpl?.floriday_url_template && row.floriday_id
|
|
138
138
|
? fillTemplate(tpl.floriday_url_template, row)
|
|
139
139
|
: null;
|
|
140
|
-
return (_jsxs("tr", { className: "border-t border-border align-top", children: [_jsx("td", { className: "py-2 pr-3 whitespace-nowrap", children: new Date(row.created_at).toLocaleString("nl-NL") }), _jsx("td", { className: "py-2 pr-3", children: _jsx(Badge, { variant: row.direction === "outbound" ? "default" : "secondary", children: row.direction === "outbound" ? "Versturen" : "Ophalen" }) }), _jsxs("td", { className: "py-2 pr-3", children: [_jsx("div", { children: kind.label }), kind.hint ? (_jsx("div", { className: "text-xs text-muted-foreground", children: kind.hint })) : null] }), _jsx("td", { className: "py-2 pr-3", children: tpl?.label ?? row.resource_type ?? "—" }), _jsxs("td", { className: "py-2 pr-3", children: [_jsx("div", { children: row.action ?? `${row.method} ${row.path}` }), row.cursor_from != null ? (_jsxs("div", { className: "text-xs text-muted-foreground", children: ["vanaf volgnummer ", row.cursor_from] })) : null, row.error ?
|
|
140
|
+
return (_jsxs("tr", { className: "border-t border-border align-top", children: [_jsx("td", { className: "py-2 pr-3 whitespace-nowrap", children: new Date(row.created_at).toLocaleString("nl-NL") }), _jsx("td", { className: "py-2 pr-3", children: _jsx(Badge, { variant: row.direction === "outbound" ? "default" : "secondary", children: row.direction === "outbound" ? "Versturen" : "Ophalen" }) }), _jsxs("td", { className: "py-2 pr-3", children: [_jsx("div", { children: kind.label }), kind.hint ? (_jsx("div", { className: "text-xs text-muted-foreground", children: kind.hint })) : null] }), _jsx("td", { className: "py-2 pr-3", children: tpl?.label ?? row.resource_type ?? "—" }), _jsxs("td", { className: "py-2 pr-3", children: [_jsx("div", { children: row.action ?? `${row.method} ${row.path}` }), row.cursor_from != null ? (_jsxs("div", { className: "text-xs text-muted-foreground", children: ["vanaf volgnummer ", row.cursor_from] })) : null, row.error ? _jsx(FullErrorMessage, { error: row.error, response: row.response, createdAt: row.created_at }) : null] }), _jsx("td", { className: "py-2 pr-3", children: _jsxs(Badge, { variant: row.ok ? "secondary" : "destructive", children: [row.ok ? "Gelukt" : "Mislukt", " ", row.http_status || ""] }) }), _jsx("td", { className: "py-2 pr-3", children: isPoll ? (_jsx("span", { className: "text-xs text-muted-foreground", children: "Geen los item (routineronde)" })) : floridayShown ? (_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("span", { className: "font-mono text-xs", title: row.floriday_id ?? undefined, children: floridayShown }), _jsx(Button, { size: "sm", variant: "ghost", onClick: () => {
|
|
141
141
|
navigator.clipboard?.writeText(floridayShown);
|
|
142
142
|
toast.success("Referentie gekopieerd");
|
|
143
143
|
}, children: "Kopieer" }), floridayHref ? (_jsx("a", { className: "text-xs underline", href: floridayHref, target: "_blank", rel: "noreferrer", children: "Floriday" })) : null] })) : ("—") }), _jsx("td", { className: "py-2 pr-3", children: isPoll ? ("—") : localHref ? (_jsx("a", { href: localHref, className: "text-xs underline", title: localShown ?? undefined, children: localShown ?? "Openen" })) : localShown ? (_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("span", { className: "font-mono text-xs", title: row.local_id ?? undefined, children: localShown }), !tpl?.local_url_template ? (_jsx("span", { className: "text-xs text-muted-foreground", children: "(geen adres ingesteld)" })) : null] })) : tpl?.local_url_template ? (_jsx("span", { className: "text-xs text-muted-foreground", children: "Nog niet in onze cache" })) : (_jsx("span", { className: "text-xs text-muted-foreground", children: "Geen adres ingesteld" })) })] }, row.id));
|
|
@@ -171,3 +171,14 @@ function RetentionRow({ rule, onSave, }) {
|
|
|
171
171
|
const toNum = (v) => (v.trim() === "" ? null : Number(v));
|
|
172
172
|
return (_jsxs("div", { className: "grid gap-2 md:grid-cols-[16rem_1fr_1fr_auto] md:items-center", children: [_jsx("span", { className: "text-sm font-medium", children: label }), _jsx("input", { className: "h-9 rounded-md border border-input bg-background px-3 text-sm", placeholder: "Dagen bewaren bij gelukt (leeg = onbeperkt)", value: ok, onChange: (e) => setOk(e.target.value) }), _jsx("input", { className: "h-9 rounded-md border border-input bg-background px-3 text-sm", placeholder: "Dagen bewaren bij mislukt (leeg = onbeperkt)", value: failed, onChange: (e) => setFailed(e.target.value) }), _jsx(Button, { size: "sm", onClick: () => onSave(toNum(ok), toNum(failed)), children: "Opslaan" })] }));
|
|
173
173
|
}
|
|
174
|
+
// Uitklapbare volledige foutmelding. Regels van vóór 1.0.76 zijn bij het
|
|
175
|
+
// opslaan ingekort; het antwoord van Floriday staat dan vaak nog in `response`.
|
|
176
|
+
const LEGACY_LIMITS = [300, 2000];
|
|
177
|
+
function FullErrorMessage({ error, response }) {
|
|
178
|
+
const [open, setOpen] = useState(false);
|
|
179
|
+
const short = error.length > 160 ? `${error.slice(0, 160)}…` : error;
|
|
180
|
+
const maybeCut = LEGACY_LIMITS.some((n) => Math.abs(error.length - (n + 14)) <= 14 || error.length === n);
|
|
181
|
+
const hasResponse = response != null && !(typeof response === "object" && Object.keys(response).length === 0);
|
|
182
|
+
const expandable = error.length > 160 || hasResponse || maybeCut;
|
|
183
|
+
return (_jsxs("div", { className: "text-xs text-destructive", children: [_jsx("div", { className: "whitespace-pre-wrap break-words", children: open ? error : short }), expandable ? (_jsx("button", { type: "button", className: "mt-1 underline text-primary", onClick: () => setOpen((v) => !v), children: open ? "Verberg volledige melding" : "Toon volledige melding" })) : null, open && maybeCut ? (_jsx("div", { className: "mt-1 text-muted-foreground", children: "Opgeslagen v\u00F3\u00F3r 1.0.76: deze melding is bij het opslaan ingekort bewaard." })) : null, open && hasResponse ? (_jsx("pre", { className: "mt-1 max-h-96 overflow-auto rounded bg-muted p-2 text-foreground whitespace-pre-wrap break-words", children: JSON.stringify(response, null, 2) })) : null] }));
|
|
184
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlorydayConnectionPage.d.ts","sourceRoot":"","sources":["../../../src/components/floriday/FlorydayConnectionPage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FlorydayConnectionPage.d.ts","sourceRoot":"","sources":["../../../src/components/floriday/FlorydayConnectionPage.tsx"],"names":[],"mappings":"AAMA,wBAAgB,sBAAsB,gCAgBrC"}
|
|
@@ -3,6 +3,7 @@ import { FlorydaySettingsCard } from "../settings/FlorydaySettingsCard.js";
|
|
|
3
3
|
import { FloricodeSettingsCard } from "../settings/FloricodeSettingsCard.js";
|
|
4
4
|
import { FlorydayWebhooksCard } from "./FlorydayWebhooksCard.js";
|
|
5
5
|
import { FlorydayShellRoutesCard } from "./FlorydayShellRoutesCard.js";
|
|
6
|
+
import { FlorydayCronStallBanner } from "./FlorydayCronStallBanner.js";
|
|
6
7
|
export function FlorydayConnectionPage() {
|
|
7
|
-
return (_jsxs("main", { className: "p-6 max-w-4xl mx-auto space-y-6", children: [_jsxs("div", { children: [_jsx("h1", { className: "text-2xl font-bold", children: "Floriday koppeling" }), _jsx("p", { className: "text-sm text-muted-foreground mt-1", children: "Verbind je Floriday-account om automatisch gegevens uit te wisselen met het platform." })] }), _jsx(FlorydaySettingsCard, {}), _jsx(FlorydayWebhooksCard, {}), _jsx(FlorydayShellRoutesCard, {}), _jsx(FloricodeSettingsCard, {})] }));
|
|
8
|
+
return (_jsxs("main", { className: "p-6 max-w-4xl mx-auto space-y-6", children: [_jsxs("div", { children: [_jsx("h1", { className: "text-2xl font-bold", children: "Floriday koppeling" }), _jsx("p", { className: "text-sm text-muted-foreground mt-1", children: "Verbind je Floriday-account om automatisch gegevens uit te wisselen met het platform." })] }), _jsx(FlorydayCronStallBanner, {}), _jsx(FlorydaySettingsCard, {}), _jsx(FlorydayWebhooksCard, {}), _jsx(FlorydayShellRoutesCard, {}), _jsx(FloricodeSettingsCard, {})] }));
|
|
8
9
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlorydayCronStallBanner.d.ts","sourceRoot":"","sources":["../../../src/components/floriday/FlorydayCronStallBanner.tsx"],"names":[],"mappings":"AAKA,yEAAyE;AACzE,wBAAgB,uBAAuB,uCAkBtC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useQuery } from "@tanstack/react-query";
|
|
3
|
+
import { useServerFn } from "@tanstack/react-start";
|
|
4
|
+
import { AlertTriangle } from "lucide-react";
|
|
5
|
+
import { getFlorydayCronBaseStall } from "../../lib/floriday-cron-status.functions.js";
|
|
6
|
+
/** Toont zolang het Shell-adres ontbreekt: synchronisatie staat stil. */
|
|
7
|
+
export function FlorydayCronStallBanner() {
|
|
8
|
+
const fn = useServerFn(getFlorydayCronBaseStall);
|
|
9
|
+
const q = useQuery({ queryKey: ["floriday-cron-stall"], queryFn: () => fn(), refetchInterval: 60000 });
|
|
10
|
+
if (!q.data?.stalled)
|
|
11
|
+
return null;
|
|
12
|
+
return (_jsx("div", { role: "alert", className: "rounded-md border border-destructive bg-destructive/10 px-3 py-2 text-sm text-destructive", children: _jsxs("div", { className: "flex items-start gap-2", children: [_jsx(AlertTriangle, { className: "mt-0.5 h-4 w-4 shrink-0" }), _jsxs("div", { children: [_jsx("p", { className: "font-medium", children: "Synchronisatie staat stil: Shell-adres ontbreekt" }), _jsxs("p", { className: "text-xs mt-0.5", children: [q.data.message, " Sinds ", q.data.since ? new Date(q.data.since).toLocaleString("nl-NL") : "onbekend", ". Werk de module in de Shell bij; de melding verdwijnt zodra het adres weer bekend is."] })] })] }) }));
|
|
13
|
+
}
|