@flowselections/logistiek-engine 1.0.234 → 1.0.236

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,13 +1,13 @@
1
1
  // src/lib/autoSend.functions.ts — Beheer: is de sleutel op te halen en is er een Shell-adres? (alleen ja/nee)
2
2
  import { createServerFn } from "@tanstack/react-start";
3
3
  import { requireSupabaseAuth } from "../integrations/supabase/auth-middleware.js";
4
- import { readableServerErrors } from "../lib/readableServerErrors.js";
4
+ import { readableServerErrors } from "./readableServerErrors.js";
5
5
  export const getAutoSendConfig = createServerFn({ method: "GET" })
6
6
  .middleware([readableServerErrors, requireSupabaseAuth])
7
7
  .handler(async () => {
8
8
  const { supabaseAdmin } = await import("../integrations/supabase/client.server.js");
9
- const { leesShellAdres } = await import("../lib/autoSend.server.js");
10
- const { haalAutoSendSleutel } = await import("../lib/centralSecrets.server.js");
9
+ const { leesShellAdres } = await import("./autoSend.server.js");
10
+ const { haalAutoSendSleutel } = await import("./centralSecrets.server.js");
11
11
  const s = await haalAutoSendSleutel();
12
12
  const adres = await leesShellAdres(supabaseAdmin);
13
13
  const { data: ontbreekt } = await supabaseAdmin.rpc("logistics_auto_send_route_missing");
@@ -1,7 +1,7 @@
1
1
  // Alleen-lezen controle: staat elke bestelregel correct op een kar?
2
2
  import { createServerFn } from "@tanstack/react-start";
3
3
  import { requireSupabaseAuth } from "../integrations/supabase/auth-middleware.js";
4
- import { readableServerErrors } from "../lib/readableServerErrors.js";
4
+ import { readableServerErrors } from "./readableServerErrors.js";
5
5
  export const getCartCoverage = createServerFn({ method: "GET" })
6
6
  .middleware([readableServerErrors, requireSupabaseAuth])
7
7
  .handler(async () => {
@@ -5,7 +5,7 @@
5
5
  // ============================================================================
6
6
  import { createServerFn } from "@tanstack/react-start";
7
7
  import { requireSupabaseAuth } from "../integrations/supabase/auth-middleware.js";
8
- import { readableServerErrors } from "../lib/readableServerErrors.js";
8
+ import { readableServerErrors } from "./readableServerErrors.js";
9
9
  /** Actieve Floriday-koppeling voor de banner in het instellingenscherm. */
10
10
  export const getFloridayConnection = createServerFn({ method: "GET" })
11
11
  .middleware([readableServerErrors, requireSupabaseAuth])
@@ -3,7 +3,7 @@
3
3
  // ============================================================================
4
4
  import { createServerFn } from "@tanstack/react-start";
5
5
  import { requireSupabaseAuth } from "../integrations/supabase/auth-middleware.js";
6
- import { readableServerErrors } from "../lib/readableServerErrors.js";
6
+ import { readableServerErrors } from "./readableServerErrors.js";
7
7
  /** Zet een order opnieuw in de wachtrij (handmatig opnieuw proberen). */
8
8
  export const retryFloridayPush = createServerFn({ method: "POST" })
9
9
  .middleware([readableServerErrors, requireSupabaseAuth])
@@ -3,7 +3,7 @@
3
3
  // ============================================================================
4
4
  import { createServerFn } from "@tanstack/react-start";
5
5
  import { requireSupabaseAuth } from "../integrations/supabase/auth-middleware.js";
6
- import { readableServerErrors } from "../lib/readableServerErrors.js";
6
+ import { readableServerErrors } from "./readableServerErrors.js";
7
7
  export const replanOrderLoadCarriers = createServerFn({ method: "POST" })
8
8
  .middleware([readableServerErrors, requireSupabaseAuth])
9
9
  .inputValidator((data) => {
@@ -3,7 +3,7 @@
3
3
  // ============================================================================
4
4
  import { createServerFn } from "@tanstack/react-start";
5
5
  import { requireSupabaseAuth } from "../integrations/supabase/auth-middleware.js";
6
- import { readableServerErrors } from "../lib/readableServerErrors.js";
6
+ import { readableServerErrors } from "./readableServerErrors.js";
7
7
  export const startRecalcJob = createServerFn({ method: "POST" })
8
8
  .middleware([readableServerErrors, requireSupabaseAuth])
9
9
  .inputValidator((data) => data ?? {})
@@ -7,7 +7,7 @@
7
7
  // ============================================================================
8
8
  import { createServerFn } from "@tanstack/react-start";
9
9
  import { requireSupabaseAuth } from "../integrations/supabase/auth-middleware.js";
10
- import { readableServerErrors } from "../lib/readableServerErrors.js";
10
+ import { readableServerErrors } from "./readableServerErrors.js";
11
11
  export const recalculateLogistics = createServerFn({ method: "POST" })
12
12
  .middleware([readableServerErrors, requireSupabaseAuth])
13
13
  .inputValidator((data) => data ?? {})
@@ -27,7 +27,7 @@ export const recalculateLogistics = createServerFn({ method: "POST" })
27
27
  args: { p_from: iso(today), p_to: iso(until) },
28
28
  },
29
29
  ];
30
- const { scheduleTasksPerOrder } = await import("../lib/scheduleTasks.server.js");
30
+ const { scheduleTasksPerOrder } = await import("./scheduleTasks.server.js");
31
31
  const steps = [await scheduleTasksPerOrder(context.supabase)];
32
32
  for (const call of calls) {
33
33
  const { error } = await context.supabase.rpc(call.fn, call.args);
@@ -1,2 +1,2 @@
1
- export declare const MODULE_VERSION = "1.0.234";
1
+ export declare const MODULE_VERSION = "1.0.236";
2
2
  //# sourceMappingURL=moduleVersion.d.ts.map
@@ -1,2 +1,2 @@
1
1
  // Automatisch gegenereerd door prebuild:lib; niet handmatig aanpassen.
2
- export const MODULE_VERSION = "1.0.234";
2
+ export const MODULE_VERSION = "1.0.236";
@@ -3,7 +3,7 @@
3
3
  // geen karren, geen wachtrij, geen events, geen blokkades, geen bufferbesluit.
4
4
  import { createServerFn } from "@tanstack/react-start";
5
5
  import { requireSupabaseAuth } from "../integrations/supabase/auth-middleware.js";
6
- import { readableServerErrors } from "../lib/readableServerErrors.js";
6
+ import { readableServerErrors } from "./readableServerErrors.js";
7
7
  import { bouwPlanPreview } from "./planPreview.js";
8
8
  const UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
9
9
  export const logisticsPlanPreview = createServerFn({ method: "POST" })
@@ -1,7 +1,7 @@
1
1
  // Alleen-lezen overzicht van de vergelijkende planner (dry-run).
2
2
  import { createServerFn } from "@tanstack/react-start";
3
3
  import { requireSupabaseAuth } from "../integrations/supabase/auth-middleware.js";
4
- import { readableServerErrors } from "../lib/readableServerErrors.js";
4
+ import { readableServerErrors } from "./readableServerErrors.js";
5
5
  import { summarizeDiffRuns } from "./plannerDiff.js";
6
6
  export const getPlannerDiffOverview = createServerFn({ method: "GET" })
7
7
  .middleware([readableServerErrors, requireSupabaseAuth])
@@ -6,7 +6,7 @@
6
6
  // ============================================================================
7
7
  import { createServerFn } from "@tanstack/react-start";
8
8
  import { requireSupabaseAuth } from "../integrations/supabase/auth-middleware.js";
9
- import { readableServerErrors } from "../lib/readableServerErrors.js";
9
+ import { readableServerErrors } from "./readableServerErrors.js";
10
10
  const ROLLEN = ["admin", "superadmin", "developer"];
11
11
  async function magBeheren(sb, userId) {
12
12
  for (const rol of ROLLEN) {
@@ -48,7 +48,7 @@ export const startShellAdresControle = createServerFn({ method: "POST" })
48
48
  export const registreerMinuutrondeSleutel = createServerFn({ method: "POST" })
49
49
  .middleware([readableServerErrors, requireSupabaseAuth])
50
50
  .handler(async () => {
51
- const { minuutrondeStartProbleem } = await import("../lib/shellAdres.js");
51
+ const { minuutrondeStartProbleem } = await import("./shellAdres.js");
52
52
  const { supabaseAdmin } = await import("../integrations/supabase/client.server.js");
53
53
  const sleutel = (process.env["SUPABASE_PUBLISHABLE_KEY"] ?? process.env["SUPABASE_ANON_KEY"] ?? "")
54
54
  .replace(/^["']|["']$/g, "")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowselections/logistiek-engine",
3
- "version": "1.0.234",
3
+ "version": "1.0.236",
4
4
  "flowselections": {
5
5
  "moduleId": "logistiek-engine",
6
6
  "pages": [