@flowselections/floriday-afhandeling-module 1.0.40 → 1.0.41
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/afhandeling/ControleLijstPrint.js +54 -54
- package/dist-lib/components/afhandeling/ControlePage.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/ControlePage.js +36 -2
- package/dist-lib/components/afhandeling/DagDetailDialog.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/DagDetailDialog.js +3 -2
- package/dist-lib/components/afhandeling/WeekAgendaView.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/WeekAgendaView.js +38 -45
- package/dist-lib/components/pickstation/PakbonTemplate.js +70 -70
- package/dist-lib/hooks/useCartIndex.d.ts +11 -0
- package/dist-lib/hooks/useCartIndex.d.ts.map +1 -0
- package/dist-lib/hooks/useCartIndex.js +56 -0
- package/dist-lib/hooks/useConsistencyCheck.d.ts +8 -0
- package/dist-lib/hooks/useConsistencyCheck.d.ts.map +1 -0
- package/dist-lib/hooks/useConsistencyCheck.js +22 -0
- package/dist-lib/hooks/useOrderPlanning.d.ts.map +1 -1
- package/dist-lib/hooks/useOrderPlanning.js +6 -2
- package/dist-lib/hooks/usePickAgenda.d.ts +32 -0
- package/dist-lib/hooks/usePickAgenda.d.ts.map +1 -0
- package/dist-lib/hooks/usePickAgenda.js +75 -0
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +164 -1
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +164 -1
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/moduleClient.d.ts +164 -1
- package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +164 -1
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/afhandelingSettings.functions.d.ts +330 -4
- package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
- package/dist-lib/lib/carrierSignupMail.server.js +26 -26
- package/dist-lib/lib/carriers.functions.d.ts +820 -5
- package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
- package/dist-lib/lib/cartAssignments.functions.d.ts +820 -5
- package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
- package/dist-lib/lib/cartControl.functions.d.ts +1743 -124
- package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
- package/dist-lib/lib/cartControl.functions.js +92 -127
- package/dist-lib/lib/floriday.functions.d.ts +165 -2
- package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Eenmalige controle bij het laden van de agenda. Deze module corrigeert niets
|
|
3
|
+
* zelf: bij een afwijking tonen we alleen een discrete melding.
|
|
4
|
+
*/
|
|
5
|
+
export declare function useConsistencyCheck(): {
|
|
6
|
+
misaligned: boolean;
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=useConsistencyCheck.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useConsistencyCheck.d.ts","sourceRoot":"","sources":["../../src/hooks/useConsistencyCheck.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,wBAAgB,mBAAmB;;EAelC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { useQuery } from "@tanstack/react-query";
|
|
2
|
+
import { supabase } from "../integrations/supabase/moduleClient";
|
|
3
|
+
/**
|
|
4
|
+
* Eenmalige controle bij het laden van de agenda. Deze module corrigeert niets
|
|
5
|
+
* zelf: bij een afwijking tonen we alleen een discrete melding.
|
|
6
|
+
*/
|
|
7
|
+
export function useConsistencyCheck() {
|
|
8
|
+
const query = useQuery({
|
|
9
|
+
queryKey: ["logistics-consistency-check"],
|
|
10
|
+
staleTime: Infinity,
|
|
11
|
+
retry: false,
|
|
12
|
+
refetchOnWindowFocus: false,
|
|
13
|
+
queryFn: async () => {
|
|
14
|
+
const { data, error } = await supabase.rpc("logistics_consistency_check");
|
|
15
|
+
if (error)
|
|
16
|
+
return true; // Geen melding tonen als de controle zelf faalt.
|
|
17
|
+
const rows = Array.isArray(data) ? data : [];
|
|
18
|
+
return rows.every((r) => r.ok !== false);
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
return { misaligned: query.data === false };
|
|
22
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useOrderPlanning.d.ts","sourceRoot":"","sources":["../../src/hooks/useOrderPlanning.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAK/D,OAAO,EAGL,KAAK,aAAa,EAEnB,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"useOrderPlanning.d.ts","sourceRoot":"","sources":["../../src/hooks/useOrderPlanning.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAK/D,OAAO,EAGL,KAAK,aAAa,EAEnB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAwC,KAAK,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAWtG;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GACrB,SAAS,GACT,iBAAiB,GACjB,gBAAgB,GAChB,cAAc,GACd,oBAAoB,CAAC;AAEzB,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,aAAa,CAAC;IACrB,6EAA6E;IAC7E,QAAQ,EAAE,aAAa,GAAG,IAAI,CAAC;IAC/B,qEAAqE;IACrE,UAAU,EAAE,UAAU,GAAG,IAAI,CAAC;IAC9B,gFAAgF;IAChF,cAAc,EAAE,OAAO,CAAC;IACxB,iDAAiD;IACjD,KAAK,EAAE,aAAa,CAAC;IACrB,uEAAuE;IACvE,cAAc,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,iFAAiF;IACjF,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,6EAA6E;IAC7E,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB,wEAAwE;IACxE,aAAa,EAAE,YAAY,EAAE,CAAC;IAC9B,8EAA8E;IAC9E,WAAW,EAAE,YAAY,EAAE,CAAC;IAC5B,wDAAwD;IACxD,iBAAiB,EAAE,YAAY,EAAE,CAAC;IAClC,4EAA4E;IAC5E,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,mEAAmE;IACnE,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAGD,MAAM,WAAW,uBAAuB;IACtC,8EAA8E;IAC9E,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,wBAAgB,gBAAgB,CAAC,KAAK,CAAC,EAAE,uBAAuB,GAAG,sBAAsB,CAqTxF"}
|
|
@@ -7,6 +7,7 @@ import { safeServerCall } from "../lib/serverFnError";
|
|
|
7
7
|
import { normalizePickupMoments, sanitizeWeekdays, selectCarrierForTarget } from "../lib/carrierPlanning";
|
|
8
8
|
import { calculateOrderPlanning, DEFAULT_PICKUP_MOMENT, } from "../lib/planning";
|
|
9
9
|
import { useEngineTasks } from "./useEngineTasks";
|
|
10
|
+
import { useCartIndex } from "./useCartIndex";
|
|
10
11
|
import { emitEngineEvent, listComposeTaskRefs } from "../lib/logisticsEngine/engine";
|
|
11
12
|
import { orderRefsFor } from "../lib/orderRefs";
|
|
12
13
|
import { MAX_ATTEMPTS, emitQueueStatus, markInFlight, markResult, resetEmitQueue, selectEmitBatch, } from "../lib/logisticsEngine/emitQueue";
|
|
@@ -102,6 +103,8 @@ export function useOrderPlanning(range) {
|
|
|
102
103
|
refetchOnWindowFocus: true,
|
|
103
104
|
});
|
|
104
105
|
const composeExists = composeExistsQuery.data;
|
|
106
|
+
// Karrentelling komt uit de gedeelde karindex van de Engine.
|
|
107
|
+
const { cartsForOrder } = useCartIndex(from, to);
|
|
105
108
|
const planned = useMemo(() => {
|
|
106
109
|
const orders = orderList;
|
|
107
110
|
const carriers = carriersQuery.data?.carriers ?? [];
|
|
@@ -169,7 +172,8 @@ export function useOrderPlanning(range) {
|
|
|
169
172
|
// Order zonder bruikbare leverdatum: taak bestaat, planning niet.
|
|
170
173
|
return fallback("task_without_start");
|
|
171
174
|
}
|
|
172
|
-
|
|
175
|
+
// Karren komen uitsluitend uit de gedeelde karindex van de Engine.
|
|
176
|
+
const carrierCount = cartsForOrder(order.orderNumber, order.id) ?? 0;
|
|
173
177
|
const planning = {
|
|
174
178
|
...base,
|
|
175
179
|
pickStartDate: start,
|
|
@@ -187,7 +191,7 @@ export function useOrderPlanning(range) {
|
|
|
187
191
|
};
|
|
188
192
|
return { order, planning, engineTask: task, awaitingEngine: false, state: "planned", hasComposeTask: true };
|
|
189
193
|
});
|
|
190
|
-
}, [orderList, carriersQuery.data, composeByRef, pickByRef, composeExists]);
|
|
194
|
+
}, [orderList, carriersQuery.data, composeByRef, pickByRef, composeExists, cartsForOrder]);
|
|
191
195
|
// Orders zonder taak melden we bij de Engine; zelf indelen mag niet.
|
|
192
196
|
// De meldlus is begrensd: max MAX_PER_ROUND orders per ronde, pogingenteller
|
|
193
197
|
// met backoff per order, en na MAX_ATTEMPTS definitief opgeven met melding.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/** Eén order op een pickdag volgens de Engine. */
|
|
2
|
+
export interface PickAgendaOrder {
|
|
3
|
+
taskId: string;
|
|
4
|
+
orderRef: string;
|
|
5
|
+
status: string;
|
|
6
|
+
carts: number;
|
|
7
|
+
plants: number;
|
|
8
|
+
shifted: boolean;
|
|
9
|
+
}
|
|
10
|
+
/** Eén dagregel uit `logistics_pick_agenda`. */
|
|
11
|
+
export interface PickAgendaDay {
|
|
12
|
+
pickDate: string;
|
|
13
|
+
orderCount: number;
|
|
14
|
+
cartCount: number;
|
|
15
|
+
plantCount: number;
|
|
16
|
+
inPreparation: number;
|
|
17
|
+
ready: number;
|
|
18
|
+
shiftedCount: number;
|
|
19
|
+
orders: PickAgendaOrder[];
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Pickagenda van de Logistics Engine. De RPC is de enige bron: deze module
|
|
23
|
+
* berekent zelf geen pickdagen meer en doet geen datum- of tijdzonelogica.
|
|
24
|
+
* Dagen zonder rij tonen simpelweg nullen.
|
|
25
|
+
*/
|
|
26
|
+
export declare function usePickAgenda(from: string | null, to: string | null): {
|
|
27
|
+
days: NoInfer<PickAgendaDay[]>;
|
|
28
|
+
byDate: Map<string, PickAgendaDay>;
|
|
29
|
+
isLoading: boolean;
|
|
30
|
+
error: string | null;
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=usePickAgenda.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePickAgenda.d.ts","sourceRoot":"","sources":["../../src/hooks/usePickAgenda.ts"],"names":[],"mappings":"AAIA,kDAAkD;AAClD,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,gDAAgD;AAChD,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,eAAe,EAAE,CAAC;CAC3B;AA4BD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI;;;;;EAyDnE"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { useEffect } from "react";
|
|
2
|
+
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
|
3
|
+
import { supabase } from "../integrations/supabase/moduleClient";
|
|
4
|
+
function toOrders(value) {
|
|
5
|
+
if (!Array.isArray(value))
|
|
6
|
+
return [];
|
|
7
|
+
return value.map((o) => {
|
|
8
|
+
const r = (o ?? {});
|
|
9
|
+
return {
|
|
10
|
+
taskId: String(r.taskId ?? ""),
|
|
11
|
+
orderRef: String(r.orderRef ?? ""),
|
|
12
|
+
status: String(r.status ?? ""),
|
|
13
|
+
carts: Number(r.carts ?? 0),
|
|
14
|
+
plants: Number(r.plants ?? 0),
|
|
15
|
+
shifted: Boolean(r.shifted),
|
|
16
|
+
};
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Pickagenda van de Logistics Engine. De RPC is de enige bron: deze module
|
|
21
|
+
* berekent zelf geen pickdagen meer en doet geen datum- of tijdzonelogica.
|
|
22
|
+
* Dagen zonder rij tonen simpelweg nullen.
|
|
23
|
+
*/
|
|
24
|
+
export function usePickAgenda(from, to) {
|
|
25
|
+
const queryClient = useQueryClient();
|
|
26
|
+
const queryKey = ["logistics-pick-agenda", from, to];
|
|
27
|
+
const query = useQuery({
|
|
28
|
+
queryKey,
|
|
29
|
+
enabled: !!from && !!to,
|
|
30
|
+
staleTime: 30000,
|
|
31
|
+
retry: false,
|
|
32
|
+
refetchInterval: 60000,
|
|
33
|
+
refetchOnWindowFocus: true,
|
|
34
|
+
queryFn: async () => {
|
|
35
|
+
const { data, error } = await supabase.rpc("logistics_pick_agenda", {
|
|
36
|
+
p_from: from,
|
|
37
|
+
p_to: to,
|
|
38
|
+
});
|
|
39
|
+
if (error)
|
|
40
|
+
throw new Error(error.message);
|
|
41
|
+
const dagen = Array.isArray(data) ? data : [];
|
|
42
|
+
return dagen.map((d) => ({
|
|
43
|
+
pickDate: d.pick_date,
|
|
44
|
+
orderCount: Number(d.order_count ?? 0),
|
|
45
|
+
cartCount: Number(d.cart_count ?? 0),
|
|
46
|
+
plantCount: Number(d.plant_count ?? 0),
|
|
47
|
+
inPreparation: Number(d.in_preparation ?? 0),
|
|
48
|
+
ready: Number(d.ready ?? 0),
|
|
49
|
+
shiftedCount: Number(d.shifted_count ?? 0),
|
|
50
|
+
orders: toOrders(d.orders),
|
|
51
|
+
}));
|
|
52
|
+
},
|
|
53
|
+
});
|
|
54
|
+
// Ververs zodra de Engine taken wijzigt.
|
|
55
|
+
useEffect(() => {
|
|
56
|
+
const channel = supabase
|
|
57
|
+
.channel("pick-agenda-logistics-tasks")
|
|
58
|
+
.on("postgres_changes", { event: "*", schema: "public", table: "logistics_tasks" }, () => {
|
|
59
|
+
queryClient.invalidateQueries({ queryKey: ["logistics-pick-agenda"] });
|
|
60
|
+
})
|
|
61
|
+
.subscribe();
|
|
62
|
+
return () => {
|
|
63
|
+
supabase.removeChannel(channel);
|
|
64
|
+
};
|
|
65
|
+
}, [queryClient]);
|
|
66
|
+
const byDate = new Map();
|
|
67
|
+
for (const d of query.data ?? [])
|
|
68
|
+
byDate.set(d.pickDate, d);
|
|
69
|
+
return {
|
|
70
|
+
days: query.data ?? [],
|
|
71
|
+
byDate,
|
|
72
|
+
isLoading: query.isLoading,
|
|
73
|
+
error: query.error instanceof Error ? query.error.message : null,
|
|
74
|
+
};
|
|
75
|
+
}
|
|
@@ -13660,6 +13660,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
13660
13660
|
is_herprint: boolean;
|
|
13661
13661
|
kopieen: number;
|
|
13662
13662
|
layout_id: string | null;
|
|
13663
|
+
lokaal_opgeslagen_op: string | null;
|
|
13664
|
+
lokale_pdf_fout: string | null;
|
|
13665
|
+
lokale_pdf_status: string | null;
|
|
13663
13666
|
opgepakt_op: string | null;
|
|
13664
13667
|
paginas: number;
|
|
13665
13668
|
payload: import("./types").Json;
|
|
@@ -13668,6 +13671,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
13668
13671
|
pogingen: number;
|
|
13669
13672
|
printer_id: string | null;
|
|
13670
13673
|
render_html: string | null;
|
|
13674
|
+
resultaat_pdf_base64: string | null;
|
|
13671
13675
|
status: Database["public"]["Enums"]["print_job_status"];
|
|
13672
13676
|
updated_at: string;
|
|
13673
13677
|
volgende_poging: string | null;
|
|
@@ -13692,6 +13696,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
13692
13696
|
is_herprint?: boolean;
|
|
13693
13697
|
kopieen?: number;
|
|
13694
13698
|
layout_id?: string | null;
|
|
13699
|
+
lokaal_opgeslagen_op?: string | null;
|
|
13700
|
+
lokale_pdf_fout?: string | null;
|
|
13701
|
+
lokale_pdf_status?: string | null;
|
|
13695
13702
|
opgepakt_op?: string | null;
|
|
13696
13703
|
paginas?: number;
|
|
13697
13704
|
payload?: import("./types").Json;
|
|
@@ -13700,6 +13707,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
13700
13707
|
pogingen?: number;
|
|
13701
13708
|
printer_id?: string | null;
|
|
13702
13709
|
render_html?: string | null;
|
|
13710
|
+
resultaat_pdf_base64?: string | null;
|
|
13703
13711
|
status?: Database["public"]["Enums"]["print_job_status"];
|
|
13704
13712
|
updated_at?: string;
|
|
13705
13713
|
volgende_poging?: string | null;
|
|
@@ -13724,6 +13732,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
13724
13732
|
is_herprint?: boolean;
|
|
13725
13733
|
kopieen?: number;
|
|
13726
13734
|
layout_id?: string | null;
|
|
13735
|
+
lokaal_opgeslagen_op?: string | null;
|
|
13736
|
+
lokale_pdf_fout?: string | null;
|
|
13737
|
+
lokale_pdf_status?: string | null;
|
|
13727
13738
|
opgepakt_op?: string | null;
|
|
13728
13739
|
paginas?: number;
|
|
13729
13740
|
payload?: import("./types").Json;
|
|
@@ -13732,6 +13743,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
13732
13743
|
pogingen?: number;
|
|
13733
13744
|
printer_id?: string | null;
|
|
13734
13745
|
render_html?: string | null;
|
|
13746
|
+
resultaat_pdf_base64?: string | null;
|
|
13735
13747
|
status?: Database["public"]["Enums"]["print_job_status"];
|
|
13736
13748
|
updated_at?: string;
|
|
13737
13749
|
volgende_poging?: string | null;
|
|
@@ -14122,6 +14134,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
14122
14134
|
ondersteunde_laden: import("./types").Json | null;
|
|
14123
14135
|
online: boolean;
|
|
14124
14136
|
papierformaat: string;
|
|
14137
|
+
pdf_map: string | null;
|
|
14125
14138
|
poort: number | null;
|
|
14126
14139
|
soort: Database["public"]["Enums"]["printer_kind"];
|
|
14127
14140
|
systeemnaam: string;
|
|
@@ -14147,6 +14160,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
14147
14160
|
ondersteunde_laden?: import("./types").Json | null;
|
|
14148
14161
|
online?: boolean;
|
|
14149
14162
|
papierformaat?: string;
|
|
14163
|
+
pdf_map?: string | null;
|
|
14150
14164
|
poort?: number | null;
|
|
14151
14165
|
soort?: Database["public"]["Enums"]["printer_kind"];
|
|
14152
14166
|
systeemnaam?: string;
|
|
@@ -14172,6 +14186,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
14172
14186
|
ondersteunde_laden?: import("./types").Json | null;
|
|
14173
14187
|
online?: boolean;
|
|
14174
14188
|
papierformaat?: string;
|
|
14189
|
+
pdf_map?: string | null;
|
|
14175
14190
|
poort?: number | null;
|
|
14176
14191
|
soort?: Database["public"]["Enums"]["printer_kind"];
|
|
14177
14192
|
systeemnaam?: string;
|
|
@@ -20428,6 +20443,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
20428
20443
|
is_herprint: boolean;
|
|
20429
20444
|
kopieen: number;
|
|
20430
20445
|
layout_id: string | null;
|
|
20446
|
+
lokaal_opgeslagen_op: string | null;
|
|
20447
|
+
lokale_pdf_fout: string | null;
|
|
20448
|
+
lokale_pdf_status: string | null;
|
|
20431
20449
|
opgepakt_op: string | null;
|
|
20432
20450
|
paginas: number;
|
|
20433
20451
|
payload: import("./types").Json;
|
|
@@ -20436,6 +20454,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
20436
20454
|
pogingen: number;
|
|
20437
20455
|
printer_id: string | null;
|
|
20438
20456
|
render_html: string | null;
|
|
20457
|
+
resultaat_pdf_base64: string | null;
|
|
20439
20458
|
status: Database["public"]["Enums"]["print_job_status"];
|
|
20440
20459
|
updated_at: string;
|
|
20441
20460
|
volgende_poging: string | null;
|
|
@@ -20527,6 +20546,53 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
20527
20546
|
isSetofReturn: true;
|
|
20528
20547
|
};
|
|
20529
20548
|
};
|
|
20549
|
+
claim_pdf_print_jobs: {
|
|
20550
|
+
Args: {
|
|
20551
|
+
_max?: number;
|
|
20552
|
+
};
|
|
20553
|
+
Returns: {
|
|
20554
|
+
agent_id: string | null;
|
|
20555
|
+
bron_job_id: string | null;
|
|
20556
|
+
created_at: string;
|
|
20557
|
+
documentnaam: string;
|
|
20558
|
+
documenttype: Database["public"]["Enums"]["doc_layout_type"];
|
|
20559
|
+
extern_job_id: string | null;
|
|
20560
|
+
foutmelding: string | null;
|
|
20561
|
+
gebruiker_id: string | null;
|
|
20562
|
+
gebruiker_naam: string;
|
|
20563
|
+
gebruikte_bron: string | null;
|
|
20564
|
+
gebruikte_layout_id: string | null;
|
|
20565
|
+
gestart_op: string | null;
|
|
20566
|
+
herkomst: string | null;
|
|
20567
|
+
id: string;
|
|
20568
|
+
idempotentie_sleutel: string | null;
|
|
20569
|
+
is_herprint: boolean;
|
|
20570
|
+
kopieen: number;
|
|
20571
|
+
layout_id: string | null;
|
|
20572
|
+
lokaal_opgeslagen_op: string | null;
|
|
20573
|
+
lokale_pdf_fout: string | null;
|
|
20574
|
+
lokale_pdf_status: string | null;
|
|
20575
|
+
opgepakt_op: string | null;
|
|
20576
|
+
paginas: number;
|
|
20577
|
+
payload: import("./types").Json;
|
|
20578
|
+
pdf_base64: string | null;
|
|
20579
|
+
pdf_url: string | null;
|
|
20580
|
+
pogingen: number;
|
|
20581
|
+
printer_id: string | null;
|
|
20582
|
+
render_html: string | null;
|
|
20583
|
+
resultaat_pdf_base64: string | null;
|
|
20584
|
+
status: Database["public"]["Enums"]["print_job_status"];
|
|
20585
|
+
updated_at: string;
|
|
20586
|
+
volgende_poging: string | null;
|
|
20587
|
+
voltooid_op: string | null;
|
|
20588
|
+
}[];
|
|
20589
|
+
SetofOptions: {
|
|
20590
|
+
from: "*";
|
|
20591
|
+
to: "print_jobs";
|
|
20592
|
+
isOneToOne: false;
|
|
20593
|
+
isSetofReturn: true;
|
|
20594
|
+
};
|
|
20595
|
+
};
|
|
20530
20596
|
claim_print_jobs: {
|
|
20531
20597
|
Args: {
|
|
20532
20598
|
_agent_id: string;
|
|
@@ -20551,6 +20617,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
20551
20617
|
is_herprint: boolean;
|
|
20552
20618
|
kopieen: number;
|
|
20553
20619
|
layout_id: string | null;
|
|
20620
|
+
lokaal_opgeslagen_op: string | null;
|
|
20621
|
+
lokale_pdf_fout: string | null;
|
|
20622
|
+
lokale_pdf_status: string | null;
|
|
20554
20623
|
opgepakt_op: string | null;
|
|
20555
20624
|
paginas: number;
|
|
20556
20625
|
payload: import("./types").Json;
|
|
@@ -20559,6 +20628,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
20559
20628
|
pogingen: number;
|
|
20560
20629
|
printer_id: string | null;
|
|
20561
20630
|
render_html: string | null;
|
|
20631
|
+
resultaat_pdf_base64: string | null;
|
|
20562
20632
|
status: Database["public"]["Enums"]["print_job_status"];
|
|
20563
20633
|
updated_at: string;
|
|
20564
20634
|
volgende_poging: string | null;
|
|
@@ -20699,6 +20769,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
20699
20769
|
order_id: string;
|
|
20700
20770
|
order_source: string;
|
|
20701
20771
|
pick_date: string;
|
|
20772
|
+
printed_at: string;
|
|
20773
|
+
printed_today: boolean;
|
|
20702
20774
|
status: string;
|
|
20703
20775
|
}[];
|
|
20704
20776
|
};
|
|
@@ -21407,6 +21479,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
21407
21479
|
};
|
|
21408
21480
|
Returns: number;
|
|
21409
21481
|
};
|
|
21482
|
+
logistics_cancel_orphan_tasks: {
|
|
21483
|
+
Args: never;
|
|
21484
|
+
Returns: number;
|
|
21485
|
+
};
|
|
21410
21486
|
logistics_capacity_day_check: {
|
|
21411
21487
|
Args: {
|
|
21412
21488
|
p_from?: string;
|
|
@@ -21427,6 +21503,25 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
21427
21503
|
};
|
|
21428
21504
|
Returns: number;
|
|
21429
21505
|
};
|
|
21506
|
+
logistics_cart_index: {
|
|
21507
|
+
Args: {
|
|
21508
|
+
p_from?: string;
|
|
21509
|
+
p_to?: string;
|
|
21510
|
+
};
|
|
21511
|
+
Returns: {
|
|
21512
|
+
cart_id: string;
|
|
21513
|
+
cart_index: number;
|
|
21514
|
+
cart_label: string;
|
|
21515
|
+
is_shared: boolean;
|
|
21516
|
+
order_number: string;
|
|
21517
|
+
order_source: string;
|
|
21518
|
+
order_uuid: string;
|
|
21519
|
+
pick_date: string;
|
|
21520
|
+
printed_at: string;
|
|
21521
|
+
shifted: boolean;
|
|
21522
|
+
task_status: string;
|
|
21523
|
+
}[];
|
|
21524
|
+
};
|
|
21430
21525
|
logistics_check_order_allowed: {
|
|
21431
21526
|
Args: {
|
|
21432
21527
|
p_lines: import("./types").Json;
|
|
@@ -21575,6 +21670,17 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
21575
21670
|
isSetofReturn: false;
|
|
21576
21671
|
};
|
|
21577
21672
|
};
|
|
21673
|
+
logistics_consistency_check: {
|
|
21674
|
+
Args: never;
|
|
21675
|
+
Returns: {
|
|
21676
|
+
agenda_carts: number;
|
|
21677
|
+
control_carts: number;
|
|
21678
|
+
ok: boolean;
|
|
21679
|
+
orphan_tasks: number;
|
|
21680
|
+
pick_date: string;
|
|
21681
|
+
raw_carts: number;
|
|
21682
|
+
}[];
|
|
21683
|
+
};
|
|
21578
21684
|
logistics_delay_customer_email: {
|
|
21579
21685
|
Args: {
|
|
21580
21686
|
p_customer: string;
|
|
@@ -21768,6 +21874,25 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
21768
21874
|
};
|
|
21769
21875
|
Returns: number;
|
|
21770
21876
|
};
|
|
21877
|
+
logistics_order_overview: {
|
|
21878
|
+
Args: {
|
|
21879
|
+
p_from?: string;
|
|
21880
|
+
p_to?: string;
|
|
21881
|
+
};
|
|
21882
|
+
Returns: {
|
|
21883
|
+
cart_count: number;
|
|
21884
|
+
customer_name: string;
|
|
21885
|
+
delivery_date: string;
|
|
21886
|
+
order_number: string;
|
|
21887
|
+
order_source: string;
|
|
21888
|
+
order_uuid: string;
|
|
21889
|
+
pick_date: string;
|
|
21890
|
+
plant_count: number;
|
|
21891
|
+
printed_at: string;
|
|
21892
|
+
shifted: boolean;
|
|
21893
|
+
status: string;
|
|
21894
|
+
}[];
|
|
21895
|
+
};
|
|
21771
21896
|
logistics_order_pick_day: {
|
|
21772
21897
|
Args: {
|
|
21773
21898
|
p_order_ref: string;
|
|
@@ -21780,6 +21905,22 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
21780
21905
|
};
|
|
21781
21906
|
Returns: string;
|
|
21782
21907
|
};
|
|
21908
|
+
logistics_pick_agenda: {
|
|
21909
|
+
Args: {
|
|
21910
|
+
p_from?: string;
|
|
21911
|
+
p_to?: string;
|
|
21912
|
+
};
|
|
21913
|
+
Returns: {
|
|
21914
|
+
cart_count: number;
|
|
21915
|
+
in_preparation: number;
|
|
21916
|
+
order_count: number;
|
|
21917
|
+
orders: import("./types").Json;
|
|
21918
|
+
pick_date: string;
|
|
21919
|
+
plant_count: number;
|
|
21920
|
+
ready: number;
|
|
21921
|
+
shifted_count: number;
|
|
21922
|
+
}[];
|
|
21923
|
+
};
|
|
21783
21924
|
logistics_pick_email_purpose: {
|
|
21784
21925
|
Args: never;
|
|
21785
21926
|
Returns: string;
|
|
@@ -21939,6 +22080,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
21939
22080
|
};
|
|
21940
22081
|
Returns: import("./types").Json;
|
|
21941
22082
|
};
|
|
22083
|
+
logistics_resolve_pick_document: {
|
|
22084
|
+
Args: {
|
|
22085
|
+
_is_herprint: boolean;
|
|
22086
|
+
_queue_item_id: string;
|
|
22087
|
+
_session_id: string;
|
|
22088
|
+
_voorbeeld: boolean;
|
|
22089
|
+
};
|
|
22090
|
+
Returns: import("./types").Json;
|
|
22091
|
+
};
|
|
21942
22092
|
logistics_resolve_settings: {
|
|
21943
22093
|
Args: {
|
|
21944
22094
|
p_config_id: string;
|
|
@@ -22393,6 +22543,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
22393
22543
|
};
|
|
22394
22544
|
Returns: import("./types").Json;
|
|
22395
22545
|
};
|
|
22546
|
+
pick_preview_job: {
|
|
22547
|
+
Args: {
|
|
22548
|
+
_queue_item_id: string;
|
|
22549
|
+
_station_slug: string;
|
|
22550
|
+
};
|
|
22551
|
+
Returns: import("./types").Json;
|
|
22552
|
+
};
|
|
22396
22553
|
pick_print_job_status: {
|
|
22397
22554
|
Args: {
|
|
22398
22555
|
_job_id: string;
|
|
@@ -22742,6 +22899,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
22742
22899
|
};
|
|
22743
22900
|
Returns: string;
|
|
22744
22901
|
};
|
|
22902
|
+
resolve_print_job_printer_id: {
|
|
22903
|
+
Args: {
|
|
22904
|
+
_job: Database["public"]["Tables"]["print_jobs"]["Row"];
|
|
22905
|
+
};
|
|
22906
|
+
Returns: string;
|
|
22907
|
+
};
|
|
22745
22908
|
resolve_product_id_for_item: {
|
|
22746
22909
|
Args: {
|
|
22747
22910
|
p_product_name: string;
|
|
@@ -23333,7 +23496,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
23333
23496
|
};
|
|
23334
23497
|
CompositeTypes: { [_ in never]: never; };
|
|
23335
23498
|
}, {
|
|
23336
|
-
PostgrestVersion: "14.
|
|
23499
|
+
PostgrestVersion: "14.5";
|
|
23337
23500
|
}>;
|
|
23338
23501
|
userId: string;
|
|
23339
23502
|
claims: import("@supabase/auth-js").JwtPayload;
|