@flowselections/floriday-afhandeling-module 1.0.114 → 1.0.115
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/ControlePage.js +1 -1
- package/dist-lib/components/afhandeling/DagDetailDialog.js +1 -1
- package/dist-lib/components/afhandeling/VervoerdersPage.js +1 -1
- package/dist-lib/components/afhandeling/VerzetOrderDialog.js +1 -1
- package/dist-lib/components/afhandeling/WerkplekWaarschuwing.d.ts +9 -9
- package/dist-lib/hooks/useCapacityDayOrders.d.ts +1 -1
- package/dist-lib/hooks/useCapacityDayOrders.d.ts.map +1 -1
- package/dist-lib/hooks/useOrderBuffers.d.ts +2 -2
- package/dist-lib/hooks/useOrderBuffers.d.ts.map +1 -1
- package/dist-lib/hooks/useOrderMeldingen.d.ts +1 -1
- package/dist-lib/hooks/useOrderMeldingen.d.ts.map +1 -1
- package/dist-lib/hooks/usePickMode.d.ts +1 -1
- package/dist-lib/integrations/supabase/client.server.js +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +60 -0
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/deliveryNotePrint.d.ts +33 -33
- package/package.json +1 -1
|
@@ -16,7 +16,7 @@ import { UpdatedAt } from "../fs-ui/UpdatedAt.js";
|
|
|
16
16
|
import { PillTabs } from "../fs-ui/PillTabs.js";
|
|
17
17
|
import { KpiRow } from "../fs-ui/KpiRow.js";
|
|
18
18
|
import { KpiTile } from "../fs-ui/KpiTile.js";
|
|
19
|
-
import { ResponsiveDialogBody, ResponsiveDialogContent, ResponsiveDialogFooter, ResponsiveDialogHeader, } from "
|
|
19
|
+
import { ResponsiveDialogBody, ResponsiveDialogContent, ResponsiveDialogFooter, ResponsiveDialogHeader, } from "../ui/responsive-dialog.js";
|
|
20
20
|
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
|
|
21
21
|
import { useServerFn } from "@tanstack/react-start";
|
|
22
22
|
import { getTodaysControlCarts, getControlRescheduleProposals, submitControlSession, listControlHistory, getControlSessionDetail, getControlDraft, listDeliveredToday, saveControlDraft, } from "../../lib/cartControl.functions.js";
|
|
@@ -8,7 +8,7 @@ import { Checkbox, Button, Dialog, DialogTitle, DialogDescription, Input, Tabs,
|
|
|
8
8
|
import { AlertTriangle, CalendarClock, CheckCircle2, ChevronDown, ChevronRight, MoreVertical, Printer, Users } from "lucide-react";
|
|
9
9
|
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "@flowselections/core";
|
|
10
10
|
import { useStickerMeldingen, useOrderArchived } from "../../hooks/useOrderMeldingen.js";
|
|
11
|
-
import { ResponsiveDialogBody, ResponsiveDialogContent, ResponsiveDialogFooter, ResponsiveDialogHeader, } from "
|
|
11
|
+
import { ResponsiveDialogBody, ResponsiveDialogContent, ResponsiveDialogFooter, ResponsiveDialogHeader, } from "../ui/responsive-dialog.js";
|
|
12
12
|
import { usePickAgenda } from "../../hooks/usePickAgenda.js";
|
|
13
13
|
import { useCapacityDayOrders } from "../../hooks/useCapacityDayOrders.js";
|
|
14
14
|
import { ZONDER_KAR_TERUGVAL } from "../../lib/dayOrders.js";
|
|
@@ -20,7 +20,7 @@ import { MobilePrimaryAction } from "../fs-ui/MobilePrimaryAction.js";
|
|
|
20
20
|
import { useShortcuts } from "../fs-ui/useShortcuts.js";
|
|
21
21
|
import { ShortcutHelp } from "../fs-ui/ShortcutHelp.js";
|
|
22
22
|
import { Plus, Pencil, Archive, Truck, ArrowUp, ArrowDown, Star, AlertTriangle, Mail, MoreVertical, GripVertical } from "lucide-react";
|
|
23
|
-
import { ResponsiveAlertDialogBody, ResponsiveAlertDialogContent, ResponsiveAlertDialogFooter, ResponsiveAlertDialogHeader, } from "
|
|
23
|
+
import { ResponsiveAlertDialogBody, ResponsiveAlertDialogContent, ResponsiveAlertDialogFooter, ResponsiveAlertDialogHeader, } from "../ui/responsive-dialog.js";
|
|
24
24
|
import { Link, useLocation, useNavigate, useRouter } from "@tanstack/react-router";
|
|
25
25
|
import { useServerFn } from "@tanstack/react-start";
|
|
26
26
|
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
|
|
@@ -4,7 +4,7 @@ import { fmtDayTime } from "../../lib/dateLabels.js";
|
|
|
4
4
|
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
|
5
5
|
import { useServerFn } from "@tanstack/react-start";
|
|
6
6
|
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, Badge, Button, Dialog, DialogTitle, DialogDescription, Input, Label, Textarea, toast, } from "@flowselections/core";
|
|
7
|
-
import { ResponsiveDialogBody, ResponsiveDialogContent, ResponsiveDialogFooter, ResponsiveDialogHeader, } from "
|
|
7
|
+
import { ResponsiveDialogBody, ResponsiveDialogContent, ResponsiveDialogFooter, ResponsiveDialogHeader, } from "../ui/responsive-dialog.js";
|
|
8
8
|
import { applyReschedule, listRescheduleHistory, previewReschedule, getPickMoments, setPickDay, } from "../../lib/logisticsEngine/reschedule.js";
|
|
9
9
|
import { ENGINE_TASKS_KEY } from "../../hooks/useEngineTasks.js";
|
|
10
10
|
import { listCarriers } from "../../lib/carriers.functions.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/** Leest de ingestelde werkplek client-side (SSR-veilig). */
|
|
2
|
-
export declare function useWerkplek(): string | null;
|
|
3
|
-
/**
|
|
4
|
-
* Eén melding bovenaan een printscherm zolang er geen werkplek is ingesteld.
|
|
5
|
-
* Printknoppen zijn dan uitgeschakeld, zodat er geen fout per printactie komt.
|
|
6
|
-
*/
|
|
7
|
-
export declare function WerkplekWaarschuwing({ werkplek }: {
|
|
8
|
-
werkplek: string | null;
|
|
9
|
-
}): import("react").JSX.Element | null;
|
|
1
|
+
/** Leest de ingestelde werkplek client-side (SSR-veilig). */
|
|
2
|
+
export declare function useWerkplek(): string | null;
|
|
3
|
+
/**
|
|
4
|
+
* Eén melding bovenaan een printscherm zolang er geen werkplek is ingesteld.
|
|
5
|
+
* Printknoppen zijn dan uitgeschakeld, zodat er geen fout per printactie komt.
|
|
6
|
+
*/
|
|
7
|
+
export declare function WerkplekWaarschuwing({ werkplek }: {
|
|
8
|
+
werkplek: string | null;
|
|
9
|
+
}): import("react").JSX.Element | null;
|
|
10
10
|
//# sourceMappingURL=WerkplekWaarschuwing.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type EngineDayOrder } from "../lib/dayOrders.js";
|
|
2
2
|
/** Engine-lijst van orders op een pickdag; null = functie ontbreekt (oudere Engine). */
|
|
3
|
-
export declare function useCapacityDayOrders(dayKey: string, enabled: boolean): import("@tanstack/react-query").UseQueryResult<
|
|
3
|
+
export declare function useCapacityDayOrders(dayKey: string, enabled: boolean): import("@tanstack/react-query").UseQueryResult<EngineDayOrder[] | null, Error>;
|
|
4
4
|
//# sourceMappingURL=useCapacityDayOrders.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCapacityDayOrders.d.ts","sourceRoot":"","sources":["../../src/hooks/useCapacityDayOrders.ts"],"names":[],"mappings":"AAEA,OAAO,EAAqC,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAE1F,wFAAwF;AACxF,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"useCapacityDayOrders.d.ts","sourceRoot":"","sources":["../../src/hooks/useCapacityDayOrders.ts"],"names":[],"mappings":"AAEA,OAAO,EAAqC,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAE1F,wFAAwF;AACxF,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,kFAepE"}
|
|
@@ -15,9 +15,9 @@ export declare function useOrderBuffers(orderRefs: string[]): {
|
|
|
15
15
|
isLoading: boolean;
|
|
16
16
|
};
|
|
17
17
|
/** Alle orders van één buffer (koppeling op buffer-id), ook van andere dagen. */
|
|
18
|
-
export declare function useBufferMembers(bufferId: string | null): import("@tanstack/react-query").UseQueryResult<
|
|
18
|
+
export declare function useBufferMembers(bufferId: string | null): import("@tanstack/react-query").UseQueryResult<{
|
|
19
19
|
id: string;
|
|
20
20
|
orderNumber: string;
|
|
21
21
|
status: string | null;
|
|
22
|
-
}[]
|
|
22
|
+
}[], Error>;
|
|
23
23
|
//# sourceMappingURL=useOrderBuffers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useOrderBuffers.d.ts","sourceRoot":"","sources":["../../src/hooks/useOrderBuffers.ts"],"names":[],"mappings":"AAIA,0EAA0E;AAC1E,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,MAAM,EAAE,OAAO,CAAC;CACjB;AAMD;;;GAGG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE;;qBA2C9B,MAAM,GAAG,IAAI,GAAG,SAAS,KAAG,eAAe,GAAG,IAAI;;EAItE;AAED,iFAAiF;AACjF,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;QAMnB,MAAM;iBAAe,MAAM;YAAU,MAAM,GAAG,IAAI;
|
|
1
|
+
{"version":3,"file":"useOrderBuffers.d.ts","sourceRoot":"","sources":["../../src/hooks/useOrderBuffers.ts"],"names":[],"mappings":"AAIA,0EAA0E;AAC1E,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,MAAM,EAAE,OAAO,CAAC;CACjB;AAMD;;;GAGG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE;;qBA2C9B,MAAM,GAAG,IAAI,GAAG,SAAS,KAAG,eAAe,GAAG,IAAI;;EAItE;AAED,iFAAiF;AACjF,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;QAMnB,MAAM;iBAAe,MAAM;YAAU,MAAM,GAAG,IAAI;YAYtF"}
|
|
@@ -6,7 +6,7 @@ export interface StickerMelding {
|
|
|
6
6
|
sinds: string | null;
|
|
7
7
|
}
|
|
8
8
|
/** Actuele stickermeldingen van de Engine; null = leesfout (stickercontrole onbekend). */
|
|
9
|
-
export declare function useStickerMeldingen(orderId: string | null | undefined): import("@tanstack/react-query").UseQueryResult<
|
|
9
|
+
export declare function useStickerMeldingen(orderId: string | null | undefined): import("@tanstack/react-query").UseQueryResult<StickerMelding[] | null, Error>;
|
|
10
10
|
/** Archiefstatus uit de Engine; null = onbekend (leesfout). */
|
|
11
11
|
export declare function useOrderArchived(orderId: string | null | undefined): import("@tanstack/react-query").UseQueryResult<boolean | null, Error>;
|
|
12
12
|
//# sourceMappingURL=useOrderMeldingen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useOrderMeldingen.d.ts","sourceRoot":"","sources":["../../src/hooks/useOrderMeldingen.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAID,0FAA0F;AAC1F,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"useOrderMeldingen.d.ts","sourceRoot":"","sources":["../../src/hooks/useOrderMeldingen.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAID,0FAA0F;AAC1F,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,kFAmBrE;AAED,+DAA+D;AAC/D,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,yEAUlE"}
|
|
@@ -11,6 +11,6 @@ export declare function usePickMode(): {
|
|
|
11
11
|
isError: boolean;
|
|
12
12
|
isUnknown: boolean;
|
|
13
13
|
error: string | undefined;
|
|
14
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
14
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<PickModeInfo, Error>>;
|
|
15
15
|
};
|
|
16
16
|
//# sourceMappingURL=usePickMode.d.ts.map
|
|
@@ -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)
|
|
@@ -8942,6 +8942,47 @@ export type Database = {
|
|
|
8942
8942
|
}
|
|
8943
8943
|
];
|
|
8944
8944
|
};
|
|
8945
|
+
floriday_continuous_stock_accepted: {
|
|
8946
|
+
Row: {
|
|
8947
|
+
accepted_at: string;
|
|
8948
|
+
attempt_id: string | null;
|
|
8949
|
+
available: boolean;
|
|
8950
|
+
connection_id: string;
|
|
8951
|
+
created_at: string;
|
|
8952
|
+
trade_item_id: string;
|
|
8953
|
+
updated_at: string;
|
|
8954
|
+
warehouse_id: string;
|
|
8955
|
+
};
|
|
8956
|
+
Insert: {
|
|
8957
|
+
accepted_at?: string;
|
|
8958
|
+
attempt_id?: string | null;
|
|
8959
|
+
available: boolean;
|
|
8960
|
+
connection_id: string;
|
|
8961
|
+
created_at?: string;
|
|
8962
|
+
trade_item_id: string;
|
|
8963
|
+
updated_at?: string;
|
|
8964
|
+
warehouse_id: string;
|
|
8965
|
+
};
|
|
8966
|
+
Update: {
|
|
8967
|
+
accepted_at?: string;
|
|
8968
|
+
attempt_id?: string | null;
|
|
8969
|
+
available?: boolean;
|
|
8970
|
+
connection_id?: string;
|
|
8971
|
+
created_at?: string;
|
|
8972
|
+
trade_item_id?: string;
|
|
8973
|
+
updated_at?: string;
|
|
8974
|
+
warehouse_id?: string;
|
|
8975
|
+
};
|
|
8976
|
+
Relationships: [
|
|
8977
|
+
{
|
|
8978
|
+
foreignKeyName: "floriday_continuous_stock_accepted_connection_id_fkey";
|
|
8979
|
+
columns: ["connection_id"];
|
|
8980
|
+
isOneToOne: false;
|
|
8981
|
+
referencedRelation: "floriday_connections";
|
|
8982
|
+
referencedColumns: ["id"];
|
|
8983
|
+
}
|
|
8984
|
+
];
|
|
8985
|
+
};
|
|
8945
8986
|
floriday_continuous_stock_cache: {
|
|
8946
8987
|
Row: {
|
|
8947
8988
|
connection_id: string;
|
|
@@ -11838,6 +11879,7 @@ export type Database = {
|
|
|
11838
11879
|
detail: string | null;
|
|
11839
11880
|
id: number;
|
|
11840
11881
|
path: string | null;
|
|
11882
|
+
request_id: number | null;
|
|
11841
11883
|
status: string;
|
|
11842
11884
|
ts: string;
|
|
11843
11885
|
};
|
|
@@ -11845,6 +11887,7 @@ export type Database = {
|
|
|
11845
11887
|
detail?: string | null;
|
|
11846
11888
|
id?: never;
|
|
11847
11889
|
path?: string | null;
|
|
11890
|
+
request_id?: number | null;
|
|
11848
11891
|
status: string;
|
|
11849
11892
|
ts?: string;
|
|
11850
11893
|
};
|
|
@@ -11852,6 +11895,7 @@ export type Database = {
|
|
|
11852
11895
|
detail?: string | null;
|
|
11853
11896
|
id?: never;
|
|
11854
11897
|
path?: string | null;
|
|
11898
|
+
request_id?: number | null;
|
|
11855
11899
|
status?: string;
|
|
11856
11900
|
ts?: string;
|
|
11857
11901
|
};
|
|
@@ -48263,6 +48307,10 @@ export type Database = {
|
|
|
48263
48307
|
Args: never;
|
|
48264
48308
|
Returns: boolean;
|
|
48265
48309
|
};
|
|
48310
|
+
logistics_mag_werkwijze_beheren: {
|
|
48311
|
+
Args: never;
|
|
48312
|
+
Returns: boolean;
|
|
48313
|
+
};
|
|
48266
48314
|
logistics_mark_cart_delivered_core: {
|
|
48267
48315
|
Args: {
|
|
48268
48316
|
p_bron: string;
|
|
@@ -51555,6 +51603,12 @@ export type Database = {
|
|
|
51555
51603
|
};
|
|
51556
51604
|
Returns: Json;
|
|
51557
51605
|
};
|
|
51606
|
+
logistics_werkwijze_activeren: {
|
|
51607
|
+
Args: {
|
|
51608
|
+
p_config_id: string;
|
|
51609
|
+
};
|
|
51610
|
+
Returns: Json;
|
|
51611
|
+
};
|
|
51558
51612
|
logistics_werkwijze_standaarden_golf3: {
|
|
51559
51613
|
Args: never;
|
|
51560
51614
|
Returns: string[];
|
|
@@ -57931,6 +57985,12 @@ export type Database = {
|
|
|
57931
57985
|
};
|
|
57932
57986
|
Returns: Json;
|
|
57933
57987
|
};
|
|
57988
|
+
voorraad_correctie_1152: {
|
|
57989
|
+
Args: {
|
|
57990
|
+
p_uitvoeren?: boolean;
|
|
57991
|
+
};
|
|
57992
|
+
Returns: Json;
|
|
57993
|
+
};
|
|
57934
57994
|
voorraad_correctie_status: {
|
|
57935
57995
|
Args: {
|
|
57936
57996
|
p_correctie?: string;
|