@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.
- package/db/schema/logistiek-engine.sql +16 -0
- package/dist-lib/integrations/supabase/client.js +1 -1
- package/dist-lib/integrations/supabase/client.server.js +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +664 -0
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/autoSend.functions.js +3 -3
- package/dist-lib/lib/cartCoverage.functions.js +1 -1
- package/dist-lib/lib/floridayDocuments.functions.js +1 -1
- package/dist-lib/lib/floridayPush.functions.js +1 -1
- package/dist-lib/lib/loadCarrierPlanning.functions.js +1 -1
- package/dist-lib/lib/logisticsRecalcJob.functions.js +1 -1
- package/dist-lib/lib/logisticsRecalculate.functions.js +2 -2
- package/dist-lib/lib/moduleVersion.d.ts +1 -1
- package/dist-lib/lib/moduleVersion.js +1 -1
- package/dist-lib/lib/planPreview.functions.js +1 -1
- package/dist-lib/lib/plannerDiff.functions.js +1 -1
- package/dist-lib/lib/shellAdres.functions.js +2 -2
- package/package.json +1 -1
|
@@ -29651,6 +29651,14 @@ AS $function$
|
|
|
29651
29651
|
DECLARE c text; f text; t text; v_fav text; n bigint; s record;
|
|
29652
29652
|
BEGIN
|
|
29653
29653
|
PERFORM public.logistics_acc_guard('ingelogd', 'logistics_install_check');
|
|
29654
|
+
-- Alleen bestaan controleren: herberekenen nooit tijdens installatie uitvoeren.
|
|
29655
|
+
FOREACH f IN ARRAY ARRAY['logistics_pickup_at(text,date)',
|
|
29656
|
+
'logistics_pickup_ts(text,date)', 'logistics_pickup_herbereken()'] LOOP
|
|
29657
|
+
onderdeel := 'functie ' || f;
|
|
29658
|
+
ok := to_regprocedure('public.' || f) IS NOT NULL;
|
|
29659
|
+
toelichting := CASE WHEN ok THEN 'aanwezig' ELSE 'ontbreekt: werk de Engine bij via Supabase bijwerken' END;
|
|
29660
|
+
RETURN NEXT;
|
|
29661
|
+
END LOOP;
|
|
29654
29662
|
FOREACH f IN ARRAY ARRAY[
|
|
29655
29663
|
'f:logistics_try_uuid','f:logistics_tz','f:logistics_is_beheer','f:logistics_buffer_payload','f:logistics_apply_order_buffer',
|
|
29656
29664
|
'f:logistics_apply_buffer_decision','f:logistics_rebuffer_pending','f:logistics_departure_calc','f:logistics_own_transport_departure',
|
|
@@ -33492,6 +33500,14 @@ AS $function$
|
|
|
33492
33500
|
DECLARE c text; f text; t text; v_fav text; n bigint; s record;
|
|
33493
33501
|
BEGIN
|
|
33494
33502
|
PERFORM public.logistics_acc_guard('ingelogd', 'logistics_install_check');
|
|
33503
|
+
-- Alleen bestaan controleren: herberekenen nooit tijdens installatie uitvoeren.
|
|
33504
|
+
FOREACH f IN ARRAY ARRAY['logistics_pickup_at(text,date)',
|
|
33505
|
+
'logistics_pickup_ts(text,date)', 'logistics_pickup_herbereken()'] LOOP
|
|
33506
|
+
onderdeel := 'functie ' || f;
|
|
33507
|
+
ok := to_regprocedure('public.' || f) IS NOT NULL;
|
|
33508
|
+
toelichting := CASE WHEN ok THEN 'aanwezig' ELSE 'ontbreekt: werk de Engine bij via Supabase bijwerken' END;
|
|
33509
|
+
RETURN NEXT;
|
|
33510
|
+
END LOOP;
|
|
33495
33511
|
FOREACH f IN ARRAY ARRAY[
|
|
33496
33512
|
'f:logistics_try_uuid','f:logistics_tz','f:logistics_is_beheer','f:logistics_buffer_payload','f:logistics_apply_order_buffer',
|
|
33497
33513
|
'f:logistics_apply_buffer_decision','f:logistics_rebuffer_pending','f:logistics_departure_calc','f:logistics_own_transport_departure',
|
|
@@ -45,7 +45,7 @@ function createSupabaseClient() {
|
|
|
45
45
|
}
|
|
46
46
|
let _supabase;
|
|
47
47
|
// Import the supabase client like this:
|
|
48
|
-
// import { supabase } from "
|
|
48
|
+
// import { supabase } from "./client.js";
|
|
49
49
|
export const supabase = new Proxy({}, {
|
|
50
50
|
get(_, prop, receiver) {
|
|
51
51
|
if (!_supabase)
|
|
@@ -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 "
|
|
23
|
+
// Import like: import { supabaseAdmin } from "./client.server.js";
|
|
24
24
|
export const supabaseAdmin = new Proxy({}, {
|
|
25
25
|
get(_, prop, receiver) {
|
|
26
26
|
if (!_supabaseAdmin)
|