@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.
Files changed (40) hide show
  1. package/dist-lib/components/afhandeling/ControleLijstPrint.js +54 -54
  2. package/dist-lib/components/afhandeling/ControlePage.d.ts.map +1 -1
  3. package/dist-lib/components/afhandeling/ControlePage.js +36 -2
  4. package/dist-lib/components/afhandeling/DagDetailDialog.d.ts.map +1 -1
  5. package/dist-lib/components/afhandeling/DagDetailDialog.js +3 -2
  6. package/dist-lib/components/afhandeling/WeekAgendaView.d.ts.map +1 -1
  7. package/dist-lib/components/afhandeling/WeekAgendaView.js +38 -45
  8. package/dist-lib/components/pickstation/PakbonTemplate.js +70 -70
  9. package/dist-lib/hooks/useCartIndex.d.ts +11 -0
  10. package/dist-lib/hooks/useCartIndex.d.ts.map +1 -0
  11. package/dist-lib/hooks/useCartIndex.js +56 -0
  12. package/dist-lib/hooks/useConsistencyCheck.d.ts +8 -0
  13. package/dist-lib/hooks/useConsistencyCheck.d.ts.map +1 -0
  14. package/dist-lib/hooks/useConsistencyCheck.js +22 -0
  15. package/dist-lib/hooks/useOrderPlanning.d.ts.map +1 -1
  16. package/dist-lib/hooks/useOrderPlanning.js +6 -2
  17. package/dist-lib/hooks/usePickAgenda.d.ts +32 -0
  18. package/dist-lib/hooks/usePickAgenda.d.ts.map +1 -0
  19. package/dist-lib/hooks/usePickAgenda.js +75 -0
  20. package/dist-lib/integrations/supabase/auth-middleware.d.ts +164 -1
  21. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  22. package/dist-lib/integrations/supabase/client.server.d.ts +164 -1
  23. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  24. package/dist-lib/integrations/supabase/moduleClient.d.ts +164 -1
  25. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  26. package/dist-lib/integrations/supabase/types.d.ts +164 -1
  27. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  28. package/dist-lib/lib/afhandelingSettings.functions.d.ts +330 -4
  29. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/carrierSignupMail.server.js +26 -26
  31. package/dist-lib/lib/carriers.functions.d.ts +820 -5
  32. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/cartAssignments.functions.d.ts +820 -5
  34. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/cartControl.functions.d.ts +1743 -124
  36. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  37. package/dist-lib/lib/cartControl.functions.js +92 -127
  38. package/dist-lib/lib/floriday.functions.d.ts +165 -2
  39. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  40. package/package.json +1 -1
@@ -18,6 +18,9 @@ export interface ControlCart {
18
18
  cratesOnCart: number | null;
19
19
  pickDate: string;
20
20
  printedCount: number;
21
+ /** Vandaag uitgeprint volgens de RPC. */
22
+ printedToday?: boolean;
23
+ printedAt?: string | null;
21
24
  status: string;
22
25
  }
23
26
  export interface ControlBlocked {
@@ -61,7 +64,13 @@ export interface SubmitResult {
61
64
  rescheduled: ControlRescheduled[];
62
65
  blocked: ControlBlocked[];
63
66
  }
64
- /** Haal alle karren op die vandaag gepickt / klaargezet hadden moeten worden. */
67
+ export declare function controlCartKey(cart: {
68
+ cartNumberId: string | null;
69
+ orderSource: string;
70
+ orderId: string;
71
+ cartIndex: number;
72
+ }): string;
73
+ /** Haal alle karren op die vandaag gecontroleerd moeten worden (RPC is leidend). */
65
74
  export declare const getTodaysControlCarts: import("@tanstack/start-client-core").OptionalFetcher<readonly [import("@tanstack/start-client-core").FunctionMiddlewareAfterServer<{}, unknown, undefined, {
66
75
  supabase: SupabaseClient<import("../integrations/supabase/types").Database, "public", "public", {
67
76
  Tables: {
@@ -228,9 +237,7 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
228
237
  notes?: string | null;
229
238
  recurrence?: string | null;
230
239
  reminders?: import("../integrations/supabase/types").Json;
231
- source_id
232
- /** Alle nog niet goedgekeurde karren van vandaag, gefilterd op de Engine. */
233
- ?: string | null;
240
+ source_id?: string | null;
234
241
  source_module?: string;
235
242
  source_type?: string | null;
236
243
  start_at?: string;
@@ -293,9 +300,7 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
293
300
  default_calendar_id?: string;
294
301
  default_view?: string;
295
302
  settings?: import("../integrations/supabase/types").Json;
296
- updated_at
297
- /** Haal alle karren op die vandaag gepickt / klaargezet hadden moeten worden. */
298
- ?: string;
303
+ updated_at?: string;
299
304
  user_id: string;
300
305
  };
301
306
  Update: {
@@ -305,7 +310,9 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
305
310
  default_view?: string;
306
311
  settings?: import("../integrations/supabase/types").Json;
307
312
  updated_at?: string;
308
- user_id?: string;
313
+ user_id
314
+ /** Haal alle karren op die vandaag gecontroleerd moeten worden (RPC is leidend). */
315
+ ?: string;
309
316
  };
310
317
  Relationships: [];
311
318
  };
@@ -13727,6 +13734,9 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
13727
13734
  is_herprint: boolean;
13728
13735
  kopieen: number;
13729
13736
  layout_id: string | null;
13737
+ lokaal_opgeslagen_op: string | null;
13738
+ lokale_pdf_fout: string | null;
13739
+ lokale_pdf_status: string | null;
13730
13740
  opgepakt_op: string | null;
13731
13741
  paginas: number;
13732
13742
  payload: import("../integrations/supabase/types").Json;
@@ -13735,6 +13745,7 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
13735
13745
  pogingen: number;
13736
13746
  printer_id: string | null;
13737
13747
  render_html: string | null;
13748
+ resultaat_pdf_base64: string | null;
13738
13749
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13739
13750
  updated_at: string;
13740
13751
  volgende_poging: string | null;
@@ -13759,6 +13770,9 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
13759
13770
  is_herprint?: boolean;
13760
13771
  kopieen?: number;
13761
13772
  layout_id?: string | null;
13773
+ lokaal_opgeslagen_op?: string | null;
13774
+ lokale_pdf_fout?: string | null;
13775
+ lokale_pdf_status?: string | null;
13762
13776
  opgepakt_op?: string | null;
13763
13777
  paginas?: number;
13764
13778
  payload?: import("../integrations/supabase/types").Json;
@@ -13767,6 +13781,7 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
13767
13781
  pogingen?: number;
13768
13782
  printer_id?: string | null;
13769
13783
  render_html?: string | null;
13784
+ resultaat_pdf_base64?: string | null;
13770
13785
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13771
13786
  updated_at?: string;
13772
13787
  volgende_poging?: string | null;
@@ -13791,6 +13806,9 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
13791
13806
  is_herprint?: boolean;
13792
13807
  kopieen?: number;
13793
13808
  layout_id?: string | null;
13809
+ lokaal_opgeslagen_op?: string | null;
13810
+ lokale_pdf_fout?: string | null;
13811
+ lokale_pdf_status?: string | null;
13794
13812
  opgepakt_op?: string | null;
13795
13813
  paginas?: number;
13796
13814
  payload?: import("../integrations/supabase/types").Json;
@@ -13799,6 +13817,7 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
13799
13817
  pogingen?: number;
13800
13818
  printer_id?: string | null;
13801
13819
  render_html?: string | null;
13820
+ resultaat_pdf_base64?: string | null;
13802
13821
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13803
13822
  updated_at?: string;
13804
13823
  volgende_poging?: string | null;
@@ -14189,6 +14208,7 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
14189
14208
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
14190
14209
  online: boolean;
14191
14210
  papierformaat: string;
14211
+ pdf_map: string | null;
14192
14212
  poort: number | null;
14193
14213
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14194
14214
  systeemnaam: string;
@@ -14214,6 +14234,7 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
14214
14234
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14215
14235
  online?: boolean;
14216
14236
  papierformaat?: string;
14237
+ pdf_map?: string | null;
14217
14238
  poort?: number | null;
14218
14239
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14219
14240
  systeemnaam?: string;
@@ -14239,6 +14260,7 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
14239
14260
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14240
14261
  online?: boolean;
14241
14262
  papierformaat?: string;
14263
+ pdf_map?: string | null;
14242
14264
  poort?: number | null;
14243
14265
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14244
14266
  systeemnaam?: string;
@@ -20495,6 +20517,9 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
20495
20517
  is_herprint: boolean;
20496
20518
  kopieen: number;
20497
20519
  layout_id: string | null;
20520
+ lokaal_opgeslagen_op: string | null;
20521
+ lokale_pdf_fout: string | null;
20522
+ lokale_pdf_status: string | null;
20498
20523
  opgepakt_op: string | null;
20499
20524
  paginas: number;
20500
20525
  payload: import("../integrations/supabase/types").Json;
@@ -20503,6 +20528,7 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
20503
20528
  pogingen: number;
20504
20529
  printer_id: string | null;
20505
20530
  render_html: string | null;
20531
+ resultaat_pdf_base64: string | null;
20506
20532
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20507
20533
  updated_at: string;
20508
20534
  volgende_poging: string | null;
@@ -20594,6 +20620,53 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
20594
20620
  isSetofReturn: true;
20595
20621
  };
20596
20622
  };
20623
+ claim_pdf_print_jobs: {
20624
+ Args: {
20625
+ _max?: number;
20626
+ };
20627
+ Returns: {
20628
+ agent_id: string | null;
20629
+ bron_job_id: string | null;
20630
+ created_at: string;
20631
+ documentnaam: string;
20632
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
20633
+ extern_job_id: string | null;
20634
+ foutmelding: string | null;
20635
+ gebruiker_id: string | null;
20636
+ gebruiker_naam: string;
20637
+ gebruikte_bron: string | null;
20638
+ gebruikte_layout_id: string | null;
20639
+ gestart_op: string | null;
20640
+ herkomst: string | null;
20641
+ id: string;
20642
+ idempotentie_sleutel: string | null;
20643
+ is_herprint: boolean;
20644
+ kopieen: number;
20645
+ layout_id: string | null;
20646
+ lokaal_opgeslagen_op: string | null;
20647
+ lokale_pdf_fout: string | null;
20648
+ lokale_pdf_status: string | null;
20649
+ opgepakt_op: string | null;
20650
+ paginas: number;
20651
+ payload: import("../integrations/supabase/types").Json;
20652
+ pdf_base64: string | null;
20653
+ pdf_url: string | null;
20654
+ pogingen: number;
20655
+ printer_id: string | null;
20656
+ render_html: string | null;
20657
+ resultaat_pdf_base64: string | null;
20658
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20659
+ updated_at: string;
20660
+ volgende_poging: string | null;
20661
+ voltooid_op: string | null;
20662
+ }[];
20663
+ SetofOptions: {
20664
+ from: "*";
20665
+ to: "print_jobs";
20666
+ isOneToOne: false;
20667
+ isSetofReturn: true;
20668
+ };
20669
+ };
20597
20670
  claim_print_jobs: {
20598
20671
  Args: {
20599
20672
  _agent_id: string;
@@ -20618,6 +20691,9 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
20618
20691
  is_herprint: boolean;
20619
20692
  kopieen: number;
20620
20693
  layout_id: string | null;
20694
+ lokaal_opgeslagen_op: string | null;
20695
+ lokale_pdf_fout: string | null;
20696
+ lokale_pdf_status: string | null;
20621
20697
  opgepakt_op: string | null;
20622
20698
  paginas: number;
20623
20699
  payload: import("../integrations/supabase/types").Json;
@@ -20626,6 +20702,7 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
20626
20702
  pogingen: number;
20627
20703
  printer_id: string | null;
20628
20704
  render_html: string | null;
20705
+ resultaat_pdf_base64: string | null;
20629
20706
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20630
20707
  updated_at: string;
20631
20708
  volgende_poging: string | null;
@@ -20766,6 +20843,8 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
20766
20843
  order_id: string;
20767
20844
  order_source: string;
20768
20845
  pick_date: string;
20846
+ printed_at: string;
20847
+ printed_today: boolean;
20769
20848
  status: string;
20770
20849
  }[];
20771
20850
  };
@@ -21474,6 +21553,10 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
21474
21553
  };
21475
21554
  Returns: number;
21476
21555
  };
21556
+ logistics_cancel_orphan_tasks: {
21557
+ Args: never;
21558
+ Returns: number;
21559
+ };
21477
21560
  logistics_capacity_day_check: {
21478
21561
  Args: {
21479
21562
  p_from?: string;
@@ -21494,6 +21577,25 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
21494
21577
  };
21495
21578
  Returns: number;
21496
21579
  };
21580
+ logistics_cart_index: {
21581
+ Args: {
21582
+ p_from?: string;
21583
+ p_to?: string;
21584
+ };
21585
+ Returns: {
21586
+ cart_id: string;
21587
+ cart_index: number;
21588
+ cart_label: string;
21589
+ is_shared: boolean;
21590
+ order_number: string;
21591
+ order_source: string;
21592
+ order_uuid: string;
21593
+ pick_date: string;
21594
+ printed_at: string;
21595
+ shifted: boolean;
21596
+ task_status: string;
21597
+ }[];
21598
+ };
21497
21599
  logistics_check_order_allowed: {
21498
21600
  Args: {
21499
21601
  p_lines: import("../integrations/supabase/types").Json;
@@ -21642,6 +21744,17 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
21642
21744
  isSetofReturn: false;
21643
21745
  };
21644
21746
  };
21747
+ logistics_consistency_check: {
21748
+ Args: never;
21749
+ Returns: {
21750
+ agenda_carts: number;
21751
+ control_carts: number;
21752
+ ok: boolean;
21753
+ orphan_tasks: number;
21754
+ pick_date: string;
21755
+ raw_carts: number;
21756
+ }[];
21757
+ };
21645
21758
  logistics_delay_customer_email: {
21646
21759
  Args: {
21647
21760
  p_customer: string;
@@ -21835,6 +21948,25 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
21835
21948
  };
21836
21949
  Returns: number;
21837
21950
  };
21951
+ logistics_order_overview: {
21952
+ Args: {
21953
+ p_from?: string;
21954
+ p_to?: string;
21955
+ };
21956
+ Returns: {
21957
+ cart_count: number;
21958
+ customer_name: string;
21959
+ delivery_date: string;
21960
+ order_number: string;
21961
+ order_source: string;
21962
+ order_uuid: string;
21963
+ pick_date: string;
21964
+ plant_count: number;
21965
+ printed_at: string;
21966
+ shifted: boolean;
21967
+ status: string;
21968
+ }[];
21969
+ };
21838
21970
  logistics_order_pick_day: {
21839
21971
  Args: {
21840
21972
  p_order_ref: string;
@@ -21847,6 +21979,22 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
21847
21979
  };
21848
21980
  Returns: string;
21849
21981
  };
21982
+ logistics_pick_agenda: {
21983
+ Args: {
21984
+ p_from?: string;
21985
+ p_to?: string;
21986
+ };
21987
+ Returns: {
21988
+ cart_count: number;
21989
+ in_preparation: number;
21990
+ order_count: number;
21991
+ orders: import("../integrations/supabase/types").Json;
21992
+ pick_date: string;
21993
+ plant_count: number;
21994
+ ready: number;
21995
+ shifted_count: number;
21996
+ }[];
21997
+ };
21850
21998
  logistics_pick_email_purpose: {
21851
21999
  Args: never;
21852
22000
  Returns: string;
@@ -22006,6 +22154,15 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
22006
22154
  };
22007
22155
  Returns: import("../integrations/supabase/types").Json;
22008
22156
  };
22157
+ logistics_resolve_pick_document: {
22158
+ Args: {
22159
+ _is_herprint: boolean;
22160
+ _queue_item_id: string;
22161
+ _session_id: string;
22162
+ _voorbeeld: boolean;
22163
+ };
22164
+ Returns: import("../integrations/supabase/types").Json;
22165
+ };
22009
22166
  logistics_resolve_settings: {
22010
22167
  Args: {
22011
22168
  p_config_id: string;
@@ -22460,6 +22617,13 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
22460
22617
  };
22461
22618
  Returns: import("../integrations/supabase/types").Json;
22462
22619
  };
22620
+ pick_preview_job: {
22621
+ Args: {
22622
+ _queue_item_id: string;
22623
+ _station_slug: string;
22624
+ };
22625
+ Returns: import("../integrations/supabase/types").Json;
22626
+ };
22463
22627
  pick_print_job_status: {
22464
22628
  Args: {
22465
22629
  _job_id: string;
@@ -22809,6 +22973,12 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
22809
22973
  };
22810
22974
  Returns: string;
22811
22975
  };
22976
+ resolve_print_job_printer_id: {
22977
+ Args: {
22978
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
22979
+ };
22980
+ Returns: string;
22981
+ };
22812
22982
  resolve_product_id_for_item: {
22813
22983
  Args: {
22814
22984
  p_product_name: string;
@@ -23400,7 +23570,7 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
23400
23570
  };
23401
23571
  CompositeTypes: { [_ in never]: never; };
23402
23572
  }, {
23403
- PostgrestVersion: "14.17";
23573
+ PostgrestVersion: "14.5";
23404
23574
  }>;
23405
23575
  userId: string;
23406
23576
  claims: import("@supabase/auth-js").JwtPayload;
@@ -23579,9 +23749,7 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
23579
23749
  notes?: string | null;
23580
23750
  recurrence?: string | null;
23581
23751
  reminders?: import("../integrations/supabase/types").Json;
23582
- source_id
23583
- /** Alle nog niet goedgekeurde karren van vandaag, gefilterd op de Engine. */
23584
- ?: string | null;
23752
+ source_id?: string | null;
23585
23753
  source_module?: string;
23586
23754
  source_type?: string | null;
23587
23755
  start_at?: string;
@@ -23644,9 +23812,7 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
23644
23812
  default_calendar_id?: string;
23645
23813
  default_view?: string;
23646
23814
  settings?: import("../integrations/supabase/types").Json;
23647
- updated_at
23648
- /** Haal alle karren op die vandaag gepickt / klaargezet hadden moeten worden. */
23649
- ?: string;
23815
+ updated_at?: string;
23650
23816
  user_id: string;
23651
23817
  };
23652
23818
  Update: {
@@ -23656,7 +23822,9 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
23656
23822
  default_view?: string;
23657
23823
  settings?: import("../integrations/supabase/types").Json;
23658
23824
  updated_at?: string;
23659
- user_id?: string;
23825
+ user_id
23826
+ /** Haal alle karren op die vandaag gecontroleerd moeten worden (RPC is leidend). */
23827
+ ?: string;
23660
23828
  };
23661
23829
  Relationships: [];
23662
23830
  };
@@ -37078,6 +37246,9 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
37078
37246
  is_herprint: boolean;
37079
37247
  kopieen: number;
37080
37248
  layout_id: string | null;
37249
+ lokaal_opgeslagen_op: string | null;
37250
+ lokale_pdf_fout: string | null;
37251
+ lokale_pdf_status: string | null;
37081
37252
  opgepakt_op: string | null;
37082
37253
  paginas: number;
37083
37254
  payload: import("../integrations/supabase/types").Json;
@@ -37086,6 +37257,7 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
37086
37257
  pogingen: number;
37087
37258
  printer_id: string | null;
37088
37259
  render_html: string | null;
37260
+ resultaat_pdf_base64: string | null;
37089
37261
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
37090
37262
  updated_at: string;
37091
37263
  volgende_poging: string | null;
@@ -37110,6 +37282,9 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
37110
37282
  is_herprint?: boolean;
37111
37283
  kopieen?: number;
37112
37284
  layout_id?: string | null;
37285
+ lokaal_opgeslagen_op?: string | null;
37286
+ lokale_pdf_fout?: string | null;
37287
+ lokale_pdf_status?: string | null;
37113
37288
  opgepakt_op?: string | null;
37114
37289
  paginas?: number;
37115
37290
  payload?: import("../integrations/supabase/types").Json;
@@ -37118,6 +37293,7 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
37118
37293
  pogingen?: number;
37119
37294
  printer_id?: string | null;
37120
37295
  render_html?: string | null;
37296
+ resultaat_pdf_base64?: string | null;
37121
37297
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
37122
37298
  updated_at?: string;
37123
37299
  volgende_poging?: string | null;
@@ -37142,6 +37318,9 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
37142
37318
  is_herprint?: boolean;
37143
37319
  kopieen?: number;
37144
37320
  layout_id?: string | null;
37321
+ lokaal_opgeslagen_op?: string | null;
37322
+ lokale_pdf_fout?: string | null;
37323
+ lokale_pdf_status?: string | null;
37145
37324
  opgepakt_op?: string | null;
37146
37325
  paginas?: number;
37147
37326
  payload?: import("../integrations/supabase/types").Json;
@@ -37150,6 +37329,7 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
37150
37329
  pogingen?: number;
37151
37330
  printer_id?: string | null;
37152
37331
  render_html?: string | null;
37332
+ resultaat_pdf_base64?: string | null;
37153
37333
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
37154
37334
  updated_at?: string;
37155
37335
  volgende_poging?: string | null;
@@ -37540,6 +37720,7 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
37540
37720
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
37541
37721
  online: boolean;
37542
37722
  papierformaat: string;
37723
+ pdf_map: string | null;
37543
37724
  poort: number | null;
37544
37725
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37545
37726
  systeemnaam: string;
@@ -37565,6 +37746,7 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
37565
37746
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37566
37747
  online?: boolean;
37567
37748
  papierformaat?: string;
37749
+ pdf_map?: string | null;
37568
37750
  poort?: number | null;
37569
37751
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37570
37752
  systeemnaam?: string;
@@ -37590,6 +37772,7 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
37590
37772
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37591
37773
  online?: boolean;
37592
37774
  papierformaat?: string;
37775
+ pdf_map?: string | null;
37593
37776
  poort?: number | null;
37594
37777
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37595
37778
  systeemnaam?: string;
@@ -43846,6 +44029,9 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
43846
44029
  is_herprint: boolean;
43847
44030
  kopieen: number;
43848
44031
  layout_id: string | null;
44032
+ lokaal_opgeslagen_op: string | null;
44033
+ lokale_pdf_fout: string | null;
44034
+ lokale_pdf_status: string | null;
43849
44035
  opgepakt_op: string | null;
43850
44036
  paginas: number;
43851
44037
  payload: import("../integrations/supabase/types").Json;
@@ -43854,6 +44040,7 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
43854
44040
  pogingen: number;
43855
44041
  printer_id: string | null;
43856
44042
  render_html: string | null;
44043
+ resultaat_pdf_base64: string | null;
43857
44044
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43858
44045
  updated_at: string;
43859
44046
  volgende_poging: string | null;
@@ -43945,6 +44132,53 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
43945
44132
  isSetofReturn: true;
43946
44133
  };
43947
44134
  };
44135
+ claim_pdf_print_jobs: {
44136
+ Args: {
44137
+ _max?: number;
44138
+ };
44139
+ Returns: {
44140
+ agent_id: string | null;
44141
+ bron_job_id: string | null;
44142
+ created_at: string;
44143
+ documentnaam: string;
44144
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
44145
+ extern_job_id: string | null;
44146
+ foutmelding: string | null;
44147
+ gebruiker_id: string | null;
44148
+ gebruiker_naam: string;
44149
+ gebruikte_bron: string | null;
44150
+ gebruikte_layout_id: string | null;
44151
+ gestart_op: string | null;
44152
+ herkomst: string | null;
44153
+ id: string;
44154
+ idempotentie_sleutel: string | null;
44155
+ is_herprint: boolean;
44156
+ kopieen: number;
44157
+ layout_id: string | null;
44158
+ lokaal_opgeslagen_op: string | null;
44159
+ lokale_pdf_fout: string | null;
44160
+ lokale_pdf_status: string | null;
44161
+ opgepakt_op: string | null;
44162
+ paginas: number;
44163
+ payload: import("../integrations/supabase/types").Json;
44164
+ pdf_base64: string | null;
44165
+ pdf_url: string | null;
44166
+ pogingen: number;
44167
+ printer_id: string | null;
44168
+ render_html: string | null;
44169
+ resultaat_pdf_base64: string | null;
44170
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
44171
+ updated_at: string;
44172
+ volgende_poging: string | null;
44173
+ voltooid_op: string | null;
44174
+ }[];
44175
+ SetofOptions: {
44176
+ from: "*";
44177
+ to: "print_jobs";
44178
+ isOneToOne: false;
44179
+ isSetofReturn: true;
44180
+ };
44181
+ };
43948
44182
  claim_print_jobs: {
43949
44183
  Args: {
43950
44184
  _agent_id: string;
@@ -43969,6 +44203,9 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
43969
44203
  is_herprint: boolean;
43970
44204
  kopieen: number;
43971
44205
  layout_id: string | null;
44206
+ lokaal_opgeslagen_op: string | null;
44207
+ lokale_pdf_fout: string | null;
44208
+ lokale_pdf_status: string | null;
43972
44209
  opgepakt_op: string | null;
43973
44210
  paginas: number;
43974
44211
  payload: import("../integrations/supabase/types").Json;
@@ -43977,6 +44214,7 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
43977
44214
  pogingen: number;
43978
44215
  printer_id: string | null;
43979
44216
  render_html: string | null;
44217
+ resultaat_pdf_base64: string | null;
43980
44218
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43981
44219
  updated_at: string;
43982
44220
  volgende_poging: string | null;
@@ -44117,6 +44355,8 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
44117
44355
  order_id: string;
44118
44356
  order_source: string;
44119
44357
  pick_date: string;
44358
+ printed_at: string;
44359
+ printed_today: boolean;
44120
44360
  status: string;
44121
44361
  }[];
44122
44362
  };
@@ -44825,6 +45065,10 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
44825
45065
  };
44826
45066
  Returns: number;
44827
45067
  };
45068
+ logistics_cancel_orphan_tasks: {
45069
+ Args: never;
45070
+ Returns: number;
45071
+ };
44828
45072
  logistics_capacity_day_check: {
44829
45073
  Args: {
44830
45074
  p_from?: string;
@@ -44845,6 +45089,25 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
44845
45089
  };
44846
45090
  Returns: number;
44847
45091
  };
45092
+ logistics_cart_index: {
45093
+ Args: {
45094
+ p_from?: string;
45095
+ p_to?: string;
45096
+ };
45097
+ Returns: {
45098
+ cart_id: string;
45099
+ cart_index: number;
45100
+ cart_label: string;
45101
+ is_shared: boolean;
45102
+ order_number: string;
45103
+ order_source: string;
45104
+ order_uuid: string;
45105
+ pick_date: string;
45106
+ printed_at: string;
45107
+ shifted: boolean;
45108
+ task_status: string;
45109
+ }[];
45110
+ };
44848
45111
  logistics_check_order_allowed: {
44849
45112
  Args: {
44850
45113
  p_lines: import("../integrations/supabase/types").Json;
@@ -44993,6 +45256,17 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
44993
45256
  isSetofReturn: false;
44994
45257
  };
44995
45258
  };
45259
+ logistics_consistency_check: {
45260
+ Args: never;
45261
+ Returns: {
45262
+ agenda_carts: number;
45263
+ control_carts: number;
45264
+ ok: boolean;
45265
+ orphan_tasks: number;
45266
+ pick_date: string;
45267
+ raw_carts: number;
45268
+ }[];
45269
+ };
44996
45270
  logistics_delay_customer_email: {
44997
45271
  Args: {
44998
45272
  p_customer: string;
@@ -45186,6 +45460,25 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
45186
45460
  };
45187
45461
  Returns: number;
45188
45462
  };
45463
+ logistics_order_overview: {
45464
+ Args: {
45465
+ p_from?: string;
45466
+ p_to?: string;
45467
+ };
45468
+ Returns: {
45469
+ cart_count: number;
45470
+ customer_name: string;
45471
+ delivery_date: string;
45472
+ order_number: string;
45473
+ order_source: string;
45474
+ order_uuid: string;
45475
+ pick_date: string;
45476
+ plant_count: number;
45477
+ printed_at: string;
45478
+ shifted: boolean;
45479
+ status: string;
45480
+ }[];
45481
+ };
45189
45482
  logistics_order_pick_day: {
45190
45483
  Args: {
45191
45484
  p_order_ref: string;
@@ -45198,6 +45491,22 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
45198
45491
  };
45199
45492
  Returns: string;
45200
45493
  };
45494
+ logistics_pick_agenda: {
45495
+ Args: {
45496
+ p_from?: string;
45497
+ p_to?: string;
45498
+ };
45499
+ Returns: {
45500
+ cart_count: number;
45501
+ in_preparation: number;
45502
+ order_count: number;
45503
+ orders: import("../integrations/supabase/types").Json;
45504
+ pick_date: string;
45505
+ plant_count: number;
45506
+ ready: number;
45507
+ shifted_count: number;
45508
+ }[];
45509
+ };
45201
45510
  logistics_pick_email_purpose: {
45202
45511
  Args: never;
45203
45512
  Returns: string;
@@ -45357,6 +45666,15 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
45357
45666
  };
45358
45667
  Returns: import("../integrations/supabase/types").Json;
45359
45668
  };
45669
+ logistics_resolve_pick_document: {
45670
+ Args: {
45671
+ _is_herprint: boolean;
45672
+ _queue_item_id: string;
45673
+ _session_id: string;
45674
+ _voorbeeld: boolean;
45675
+ };
45676
+ Returns: import("../integrations/supabase/types").Json;
45677
+ };
45360
45678
  logistics_resolve_settings: {
45361
45679
  Args: {
45362
45680
  p_config_id: string;
@@ -45811,6 +46129,13 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
45811
46129
  };
45812
46130
  Returns: import("../integrations/supabase/types").Json;
45813
46131
  };
46132
+ pick_preview_job: {
46133
+ Args: {
46134
+ _queue_item_id: string;
46135
+ _station_slug: string;
46136
+ };
46137
+ Returns: import("../integrations/supabase/types").Json;
46138
+ };
45814
46139
  pick_print_job_status: {
45815
46140
  Args: {
45816
46141
  _job_id: string;
@@ -46160,6 +46485,12 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
46160
46485
  };
46161
46486
  Returns: string;
46162
46487
  };
46488
+ resolve_print_job_printer_id: {
46489
+ Args: {
46490
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
46491
+ };
46492
+ Returns: string;
46493
+ };
46163
46494
  resolve_product_id_for_item: {
46164
46495
  Args: {
46165
46496
  p_product_name: string;
@@ -46751,7 +47082,7 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
46751
47082
  };
46752
47083
  CompositeTypes: { [_ in never]: never; };
46753
47084
  }, {
46754
- PostgrestVersion: "14.17";
47085
+ PostgrestVersion: "14.5";
46755
47086
  }>;
46756
47087
  userId: string;
46757
47088
  claims: import("@supabase/auth-js").JwtPayload;
@@ -46929,9 +47260,7 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
46929
47260
  notes?: string | null;
46930
47261
  recurrence?: string | null;
46931
47262
  reminders?: import("../integrations/supabase/types").Json;
46932
- source_id
46933
- /** Alle nog niet goedgekeurde karren van vandaag, gefilterd op de Engine. */
46934
- ?: string | null;
47263
+ source_id?: string | null;
46935
47264
  source_module?: string;
46936
47265
  source_type?: string | null;
46937
47266
  start_at?: string;
@@ -46994,9 +47323,7 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
46994
47323
  default_calendar_id?: string;
46995
47324
  default_view?: string;
46996
47325
  settings?: import("../integrations/supabase/types").Json;
46997
- updated_at
46998
- /** Haal alle karren op die vandaag gepickt / klaargezet hadden moeten worden. */
46999
- ?: string;
47326
+ updated_at?: string;
47000
47327
  user_id: string;
47001
47328
  };
47002
47329
  Update: {
@@ -47006,7 +47333,9 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
47006
47333
  default_view?: string;
47007
47334
  settings?: import("../integrations/supabase/types").Json;
47008
47335
  updated_at?: string;
47009
- user_id?: string;
47336
+ user_id
47337
+ /** Haal alle karren op die vandaag gecontroleerd moeten worden (RPC is leidend). */
47338
+ ?: string;
47010
47339
  };
47011
47340
  Relationships: [];
47012
47341
  };
@@ -60428,6 +60757,9 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
60428
60757
  is_herprint: boolean;
60429
60758
  kopieen: number;
60430
60759
  layout_id: string | null;
60760
+ lokaal_opgeslagen_op: string | null;
60761
+ lokale_pdf_fout: string | null;
60762
+ lokale_pdf_status: string | null;
60431
60763
  opgepakt_op: string | null;
60432
60764
  paginas: number;
60433
60765
  payload: import("../integrations/supabase/types").Json;
@@ -60436,6 +60768,7 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
60436
60768
  pogingen: number;
60437
60769
  printer_id: string | null;
60438
60770
  render_html: string | null;
60771
+ resultaat_pdf_base64: string | null;
60439
60772
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60440
60773
  updated_at: string;
60441
60774
  volgende_poging: string | null;
@@ -60460,6 +60793,9 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
60460
60793
  is_herprint?: boolean;
60461
60794
  kopieen?: number;
60462
60795
  layout_id?: string | null;
60796
+ lokaal_opgeslagen_op?: string | null;
60797
+ lokale_pdf_fout?: string | null;
60798
+ lokale_pdf_status?: string | null;
60463
60799
  opgepakt_op?: string | null;
60464
60800
  paginas?: number;
60465
60801
  payload?: import("../integrations/supabase/types").Json;
@@ -60468,6 +60804,7 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
60468
60804
  pogingen?: number;
60469
60805
  printer_id?: string | null;
60470
60806
  render_html?: string | null;
60807
+ resultaat_pdf_base64?: string | null;
60471
60808
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60472
60809
  updated_at?: string;
60473
60810
  volgende_poging?: string | null;
@@ -60492,6 +60829,9 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
60492
60829
  is_herprint?: boolean;
60493
60830
  kopieen?: number;
60494
60831
  layout_id?: string | null;
60832
+ lokaal_opgeslagen_op?: string | null;
60833
+ lokale_pdf_fout?: string | null;
60834
+ lokale_pdf_status?: string | null;
60495
60835
  opgepakt_op?: string | null;
60496
60836
  paginas?: number;
60497
60837
  payload?: import("../integrations/supabase/types").Json;
@@ -60500,6 +60840,7 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
60500
60840
  pogingen?: number;
60501
60841
  printer_id?: string | null;
60502
60842
  render_html?: string | null;
60843
+ resultaat_pdf_base64?: string | null;
60503
60844
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60504
60845
  updated_at?: string;
60505
60846
  volgende_poging?: string | null;
@@ -60890,6 +61231,7 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
60890
61231
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
60891
61232
  online: boolean;
60892
61233
  papierformaat: string;
61234
+ pdf_map: string | null;
60893
61235
  poort: number | null;
60894
61236
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60895
61237
  systeemnaam: string;
@@ -60915,6 +61257,7 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
60915
61257
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
60916
61258
  online?: boolean;
60917
61259
  papierformaat?: string;
61260
+ pdf_map?: string | null;
60918
61261
  poort?: number | null;
60919
61262
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60920
61263
  systeemnaam?: string;
@@ -60940,6 +61283,7 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
60940
61283
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
60941
61284
  online?: boolean;
60942
61285
  papierformaat?: string;
61286
+ pdf_map?: string | null;
60943
61287
  poort?: number | null;
60944
61288
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60945
61289
  systeemnaam?: string;
@@ -67196,6 +67540,9 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
67196
67540
  is_herprint: boolean;
67197
67541
  kopieen: number;
67198
67542
  layout_id: string | null;
67543
+ lokaal_opgeslagen_op: string | null;
67544
+ lokale_pdf_fout: string | null;
67545
+ lokale_pdf_status: string | null;
67199
67546
  opgepakt_op: string | null;
67200
67547
  paginas: number;
67201
67548
  payload: import("../integrations/supabase/types").Json;
@@ -67204,6 +67551,7 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
67204
67551
  pogingen: number;
67205
67552
  printer_id: string | null;
67206
67553
  render_html: string | null;
67554
+ resultaat_pdf_base64: string | null;
67207
67555
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
67208
67556
  updated_at: string;
67209
67557
  volgende_poging: string | null;
@@ -67295,6 +67643,53 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
67295
67643
  isSetofReturn: true;
67296
67644
  };
67297
67645
  };
67646
+ claim_pdf_print_jobs: {
67647
+ Args: {
67648
+ _max?: number;
67649
+ };
67650
+ Returns: {
67651
+ agent_id: string | null;
67652
+ bron_job_id: string | null;
67653
+ created_at: string;
67654
+ documentnaam: string;
67655
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
67656
+ extern_job_id: string | null;
67657
+ foutmelding: string | null;
67658
+ gebruiker_id: string | null;
67659
+ gebruiker_naam: string;
67660
+ gebruikte_bron: string | null;
67661
+ gebruikte_layout_id: string | null;
67662
+ gestart_op: string | null;
67663
+ herkomst: string | null;
67664
+ id: string;
67665
+ idempotentie_sleutel: string | null;
67666
+ is_herprint: boolean;
67667
+ kopieen: number;
67668
+ layout_id: string | null;
67669
+ lokaal_opgeslagen_op: string | null;
67670
+ lokale_pdf_fout: string | null;
67671
+ lokale_pdf_status: string | null;
67672
+ opgepakt_op: string | null;
67673
+ paginas: number;
67674
+ payload: import("../integrations/supabase/types").Json;
67675
+ pdf_base64: string | null;
67676
+ pdf_url: string | null;
67677
+ pogingen: number;
67678
+ printer_id: string | null;
67679
+ render_html: string | null;
67680
+ resultaat_pdf_base64: string | null;
67681
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
67682
+ updated_at: string;
67683
+ volgende_poging: string | null;
67684
+ voltooid_op: string | null;
67685
+ }[];
67686
+ SetofOptions: {
67687
+ from: "*";
67688
+ to: "print_jobs";
67689
+ isOneToOne: false;
67690
+ isSetofReturn: true;
67691
+ };
67692
+ };
67298
67693
  claim_print_jobs: {
67299
67694
  Args: {
67300
67695
  _agent_id: string;
@@ -67319,6 +67714,9 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
67319
67714
  is_herprint: boolean;
67320
67715
  kopieen: number;
67321
67716
  layout_id: string | null;
67717
+ lokaal_opgeslagen_op: string | null;
67718
+ lokale_pdf_fout: string | null;
67719
+ lokale_pdf_status: string | null;
67322
67720
  opgepakt_op: string | null;
67323
67721
  paginas: number;
67324
67722
  payload: import("../integrations/supabase/types").Json;
@@ -67327,6 +67725,7 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
67327
67725
  pogingen: number;
67328
67726
  printer_id: string | null;
67329
67727
  render_html: string | null;
67728
+ resultaat_pdf_base64: string | null;
67330
67729
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
67331
67730
  updated_at: string;
67332
67731
  volgende_poging: string | null;
@@ -67467,6 +67866,8 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
67467
67866
  order_id: string;
67468
67867
  order_source: string;
67469
67868
  pick_date: string;
67869
+ printed_at: string;
67870
+ printed_today: boolean;
67470
67871
  status: string;
67471
67872
  }[];
67472
67873
  };
@@ -68175,6 +68576,10 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
68175
68576
  };
68176
68577
  Returns: number;
68177
68578
  };
68579
+ logistics_cancel_orphan_tasks: {
68580
+ Args: never;
68581
+ Returns: number;
68582
+ };
68178
68583
  logistics_capacity_day_check: {
68179
68584
  Args: {
68180
68585
  p_from?: string;
@@ -68195,6 +68600,25 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
68195
68600
  };
68196
68601
  Returns: number;
68197
68602
  };
68603
+ logistics_cart_index: {
68604
+ Args: {
68605
+ p_from?: string;
68606
+ p_to?: string;
68607
+ };
68608
+ Returns: {
68609
+ cart_id: string;
68610
+ cart_index: number;
68611
+ cart_label: string;
68612
+ is_shared: boolean;
68613
+ order_number: string;
68614
+ order_source: string;
68615
+ order_uuid: string;
68616
+ pick_date: string;
68617
+ printed_at: string;
68618
+ shifted: boolean;
68619
+ task_status: string;
68620
+ }[];
68621
+ };
68198
68622
  logistics_check_order_allowed: {
68199
68623
  Args: {
68200
68624
  p_lines: import("../integrations/supabase/types").Json;
@@ -68343,6 +68767,17 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
68343
68767
  isSetofReturn: false;
68344
68768
  };
68345
68769
  };
68770
+ logistics_consistency_check: {
68771
+ Args: never;
68772
+ Returns: {
68773
+ agenda_carts: number;
68774
+ control_carts: number;
68775
+ ok: boolean;
68776
+ orphan_tasks: number;
68777
+ pick_date: string;
68778
+ raw_carts: number;
68779
+ }[];
68780
+ };
68346
68781
  logistics_delay_customer_email: {
68347
68782
  Args: {
68348
68783
  p_customer: string;
@@ -68536,6 +68971,25 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
68536
68971
  };
68537
68972
  Returns: number;
68538
68973
  };
68974
+ logistics_order_overview: {
68975
+ Args: {
68976
+ p_from?: string;
68977
+ p_to?: string;
68978
+ };
68979
+ Returns: {
68980
+ cart_count: number;
68981
+ customer_name: string;
68982
+ delivery_date: string;
68983
+ order_number: string;
68984
+ order_source: string;
68985
+ order_uuid: string;
68986
+ pick_date: string;
68987
+ plant_count: number;
68988
+ printed_at: string;
68989
+ shifted: boolean;
68990
+ status: string;
68991
+ }[];
68992
+ };
68539
68993
  logistics_order_pick_day: {
68540
68994
  Args: {
68541
68995
  p_order_ref: string;
@@ -68548,6 +69002,22 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
68548
69002
  };
68549
69003
  Returns: string;
68550
69004
  };
69005
+ logistics_pick_agenda: {
69006
+ Args: {
69007
+ p_from?: string;
69008
+ p_to?: string;
69009
+ };
69010
+ Returns: {
69011
+ cart_count: number;
69012
+ in_preparation: number;
69013
+ order_count: number;
69014
+ orders: import("../integrations/supabase/types").Json;
69015
+ pick_date: string;
69016
+ plant_count: number;
69017
+ ready: number;
69018
+ shifted_count: number;
69019
+ }[];
69020
+ };
68551
69021
  logistics_pick_email_purpose: {
68552
69022
  Args: never;
68553
69023
  Returns: string;
@@ -68707,6 +69177,15 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
68707
69177
  };
68708
69178
  Returns: import("../integrations/supabase/types").Json;
68709
69179
  };
69180
+ logistics_resolve_pick_document: {
69181
+ Args: {
69182
+ _is_herprint: boolean;
69183
+ _queue_item_id: string;
69184
+ _session_id: string;
69185
+ _voorbeeld: boolean;
69186
+ };
69187
+ Returns: import("../integrations/supabase/types").Json;
69188
+ };
68710
69189
  logistics_resolve_settings: {
68711
69190
  Args: {
68712
69191
  p_config_id: string;
@@ -69161,6 +69640,13 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
69161
69640
  };
69162
69641
  Returns: import("../integrations/supabase/types").Json;
69163
69642
  };
69643
+ pick_preview_job: {
69644
+ Args: {
69645
+ _queue_item_id: string;
69646
+ _station_slug: string;
69647
+ };
69648
+ Returns: import("../integrations/supabase/types").Json;
69649
+ };
69164
69650
  pick_print_job_status: {
69165
69651
  Args: {
69166
69652
  _job_id: string;
@@ -69510,6 +69996,12 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
69510
69996
  };
69511
69997
  Returns: string;
69512
69998
  };
69999
+ resolve_print_job_printer_id: {
70000
+ Args: {
70001
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
70002
+ };
70003
+ Returns: string;
70004
+ };
69513
70005
  resolve_product_id_for_item: {
69514
70006
  Args: {
69515
70007
  p_product_name: string;
@@ -70101,7 +70593,7 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
70101
70593
  };
70102
70594
  CompositeTypes: { [_ in never]: never; };
70103
70595
  }, {
70104
- PostgrestVersion: "14.17";
70596
+ PostgrestVersion: "14.5";
70105
70597
  }>;
70106
70598
  userId: string;
70107
70599
  claims: import("@supabase/auth-js").JwtPayload;
@@ -70282,9 +70774,7 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
70282
70774
  notes?: string | null;
70283
70775
  recurrence?: string | null;
70284
70776
  reminders?: import("../integrations/supabase/types").Json;
70285
- source_id
70286
- /** Alle nog niet goedgekeurde karren van vandaag, gefilterd op de Engine. */
70287
- ?: string | null;
70777
+ source_id?: string | null;
70288
70778
  source_module?: string;
70289
70779
  source_type?: string | null;
70290
70780
  start_at?: string;
@@ -70347,9 +70837,7 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
70347
70837
  default_calendar_id?: string;
70348
70838
  default_view?: string;
70349
70839
  settings?: import("../integrations/supabase/types").Json;
70350
- updated_at
70351
- /** Haal alle karren op die vandaag gepickt / klaargezet hadden moeten worden. */
70352
- ?: string;
70840
+ updated_at?: string;
70353
70841
  user_id: string;
70354
70842
  };
70355
70843
  Update: {
@@ -70359,7 +70847,9 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
70359
70847
  default_view?: string;
70360
70848
  settings?: import("../integrations/supabase/types").Json;
70361
70849
  updated_at?: string;
70362
- user_id?: string;
70850
+ user_id
70851
+ /** Haal alle karren op die vandaag gecontroleerd moeten worden (RPC is leidend). */
70852
+ ?: string;
70363
70853
  };
70364
70854
  Relationships: [];
70365
70855
  };
@@ -83781,6 +84271,9 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
83781
84271
  is_herprint: boolean;
83782
84272
  kopieen: number;
83783
84273
  layout_id: string | null;
84274
+ lokaal_opgeslagen_op: string | null;
84275
+ lokale_pdf_fout: string | null;
84276
+ lokale_pdf_status: string | null;
83784
84277
  opgepakt_op: string | null;
83785
84278
  paginas: number;
83786
84279
  payload: import("../integrations/supabase/types").Json;
@@ -83789,6 +84282,7 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
83789
84282
  pogingen: number;
83790
84283
  printer_id: string | null;
83791
84284
  render_html: string | null;
84285
+ resultaat_pdf_base64: string | null;
83792
84286
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
83793
84287
  updated_at: string;
83794
84288
  volgende_poging: string | null;
@@ -83813,6 +84307,9 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
83813
84307
  is_herprint?: boolean;
83814
84308
  kopieen?: number;
83815
84309
  layout_id?: string | null;
84310
+ lokaal_opgeslagen_op?: string | null;
84311
+ lokale_pdf_fout?: string | null;
84312
+ lokale_pdf_status?: string | null;
83816
84313
  opgepakt_op?: string | null;
83817
84314
  paginas?: number;
83818
84315
  payload?: import("../integrations/supabase/types").Json;
@@ -83821,6 +84318,7 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
83821
84318
  pogingen?: number;
83822
84319
  printer_id?: string | null;
83823
84320
  render_html?: string | null;
84321
+ resultaat_pdf_base64?: string | null;
83824
84322
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
83825
84323
  updated_at?: string;
83826
84324
  volgende_poging?: string | null;
@@ -83845,6 +84343,9 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
83845
84343
  is_herprint?: boolean;
83846
84344
  kopieen?: number;
83847
84345
  layout_id?: string | null;
84346
+ lokaal_opgeslagen_op?: string | null;
84347
+ lokale_pdf_fout?: string | null;
84348
+ lokale_pdf_status?: string | null;
83848
84349
  opgepakt_op?: string | null;
83849
84350
  paginas?: number;
83850
84351
  payload?: import("../integrations/supabase/types").Json;
@@ -83853,6 +84354,7 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
83853
84354
  pogingen?: number;
83854
84355
  printer_id?: string | null;
83855
84356
  render_html?: string | null;
84357
+ resultaat_pdf_base64?: string | null;
83856
84358
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
83857
84359
  updated_at?: string;
83858
84360
  volgende_poging?: string | null;
@@ -84243,6 +84745,7 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
84243
84745
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
84244
84746
  online: boolean;
84245
84747
  papierformaat: string;
84748
+ pdf_map: string | null;
84246
84749
  poort: number | null;
84247
84750
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
84248
84751
  systeemnaam: string;
@@ -84268,6 +84771,7 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
84268
84771
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
84269
84772
  online?: boolean;
84270
84773
  papierformaat?: string;
84774
+ pdf_map?: string | null;
84271
84775
  poort?: number | null;
84272
84776
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
84273
84777
  systeemnaam?: string;
@@ -84293,6 +84797,7 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
84293
84797
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
84294
84798
  online?: boolean;
84295
84799
  papierformaat?: string;
84800
+ pdf_map?: string | null;
84296
84801
  poort?: number | null;
84297
84802
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
84298
84803
  systeemnaam?: string;
@@ -90549,6 +91054,9 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
90549
91054
  is_herprint: boolean;
90550
91055
  kopieen: number;
90551
91056
  layout_id: string | null;
91057
+ lokaal_opgeslagen_op: string | null;
91058
+ lokale_pdf_fout: string | null;
91059
+ lokale_pdf_status: string | null;
90552
91060
  opgepakt_op: string | null;
90553
91061
  paginas: number;
90554
91062
  payload: import("../integrations/supabase/types").Json;
@@ -90557,6 +91065,7 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
90557
91065
  pogingen: number;
90558
91066
  printer_id: string | null;
90559
91067
  render_html: string | null;
91068
+ resultaat_pdf_base64: string | null;
90560
91069
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
90561
91070
  updated_at: string;
90562
91071
  volgende_poging: string | null;
@@ -90648,6 +91157,53 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
90648
91157
  isSetofReturn: true;
90649
91158
  };
90650
91159
  };
91160
+ claim_pdf_print_jobs: {
91161
+ Args: {
91162
+ _max?: number;
91163
+ };
91164
+ Returns: {
91165
+ agent_id: string | null;
91166
+ bron_job_id: string | null;
91167
+ created_at: string;
91168
+ documentnaam: string;
91169
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
91170
+ extern_job_id: string | null;
91171
+ foutmelding: string | null;
91172
+ gebruiker_id: string | null;
91173
+ gebruiker_naam: string;
91174
+ gebruikte_bron: string | null;
91175
+ gebruikte_layout_id: string | null;
91176
+ gestart_op: string | null;
91177
+ herkomst: string | null;
91178
+ id: string;
91179
+ idempotentie_sleutel: string | null;
91180
+ is_herprint: boolean;
91181
+ kopieen: number;
91182
+ layout_id: string | null;
91183
+ lokaal_opgeslagen_op: string | null;
91184
+ lokale_pdf_fout: string | null;
91185
+ lokale_pdf_status: string | null;
91186
+ opgepakt_op: string | null;
91187
+ paginas: number;
91188
+ payload: import("../integrations/supabase/types").Json;
91189
+ pdf_base64: string | null;
91190
+ pdf_url: string | null;
91191
+ pogingen: number;
91192
+ printer_id: string | null;
91193
+ render_html: string | null;
91194
+ resultaat_pdf_base64: string | null;
91195
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
91196
+ updated_at: string;
91197
+ volgende_poging: string | null;
91198
+ voltooid_op: string | null;
91199
+ }[];
91200
+ SetofOptions: {
91201
+ from: "*";
91202
+ to: "print_jobs";
91203
+ isOneToOne: false;
91204
+ isSetofReturn: true;
91205
+ };
91206
+ };
90651
91207
  claim_print_jobs: {
90652
91208
  Args: {
90653
91209
  _agent_id: string;
@@ -90672,6 +91228,9 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
90672
91228
  is_herprint: boolean;
90673
91229
  kopieen: number;
90674
91230
  layout_id: string | null;
91231
+ lokaal_opgeslagen_op: string | null;
91232
+ lokale_pdf_fout: string | null;
91233
+ lokale_pdf_status: string | null;
90675
91234
  opgepakt_op: string | null;
90676
91235
  paginas: number;
90677
91236
  payload: import("../integrations/supabase/types").Json;
@@ -90680,6 +91239,7 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
90680
91239
  pogingen: number;
90681
91240
  printer_id: string | null;
90682
91241
  render_html: string | null;
91242
+ resultaat_pdf_base64: string | null;
90683
91243
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
90684
91244
  updated_at: string;
90685
91245
  volgende_poging: string | null;
@@ -90820,6 +91380,8 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
90820
91380
  order_id: string;
90821
91381
  order_source: string;
90822
91382
  pick_date: string;
91383
+ printed_at: string;
91384
+ printed_today: boolean;
90823
91385
  status: string;
90824
91386
  }[];
90825
91387
  };
@@ -91528,6 +92090,10 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
91528
92090
  };
91529
92091
  Returns: number;
91530
92092
  };
92093
+ logistics_cancel_orphan_tasks: {
92094
+ Args: never;
92095
+ Returns: number;
92096
+ };
91531
92097
  logistics_capacity_day_check: {
91532
92098
  Args: {
91533
92099
  p_from?: string;
@@ -91548,6 +92114,25 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
91548
92114
  };
91549
92115
  Returns: number;
91550
92116
  };
92117
+ logistics_cart_index: {
92118
+ Args: {
92119
+ p_from?: string;
92120
+ p_to?: string;
92121
+ };
92122
+ Returns: {
92123
+ cart_id: string;
92124
+ cart_index: number;
92125
+ cart_label: string;
92126
+ is_shared: boolean;
92127
+ order_number: string;
92128
+ order_source: string;
92129
+ order_uuid: string;
92130
+ pick_date: string;
92131
+ printed_at: string;
92132
+ shifted: boolean;
92133
+ task_status: string;
92134
+ }[];
92135
+ };
91551
92136
  logistics_check_order_allowed: {
91552
92137
  Args: {
91553
92138
  p_lines: import("../integrations/supabase/types").Json;
@@ -91696,6 +92281,17 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
91696
92281
  isSetofReturn: false;
91697
92282
  };
91698
92283
  };
92284
+ logistics_consistency_check: {
92285
+ Args: never;
92286
+ Returns: {
92287
+ agenda_carts: number;
92288
+ control_carts: number;
92289
+ ok: boolean;
92290
+ orphan_tasks: number;
92291
+ pick_date: string;
92292
+ raw_carts: number;
92293
+ }[];
92294
+ };
91699
92295
  logistics_delay_customer_email: {
91700
92296
  Args: {
91701
92297
  p_customer: string;
@@ -91889,6 +92485,25 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
91889
92485
  };
91890
92486
  Returns: number;
91891
92487
  };
92488
+ logistics_order_overview: {
92489
+ Args: {
92490
+ p_from?: string;
92491
+ p_to?: string;
92492
+ };
92493
+ Returns: {
92494
+ cart_count: number;
92495
+ customer_name: string;
92496
+ delivery_date: string;
92497
+ order_number: string;
92498
+ order_source: string;
92499
+ order_uuid: string;
92500
+ pick_date: string;
92501
+ plant_count: number;
92502
+ printed_at: string;
92503
+ shifted: boolean;
92504
+ status: string;
92505
+ }[];
92506
+ };
91892
92507
  logistics_order_pick_day: {
91893
92508
  Args: {
91894
92509
  p_order_ref: string;
@@ -91901,6 +92516,22 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
91901
92516
  };
91902
92517
  Returns: string;
91903
92518
  };
92519
+ logistics_pick_agenda: {
92520
+ Args: {
92521
+ p_from?: string;
92522
+ p_to?: string;
92523
+ };
92524
+ Returns: {
92525
+ cart_count: number;
92526
+ in_preparation: number;
92527
+ order_count: number;
92528
+ orders: import("../integrations/supabase/types").Json;
92529
+ pick_date: string;
92530
+ plant_count: number;
92531
+ ready: number;
92532
+ shifted_count: number;
92533
+ }[];
92534
+ };
91904
92535
  logistics_pick_email_purpose: {
91905
92536
  Args: never;
91906
92537
  Returns: string;
@@ -92060,6 +92691,15 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
92060
92691
  };
92061
92692
  Returns: import("../integrations/supabase/types").Json;
92062
92693
  };
92694
+ logistics_resolve_pick_document: {
92695
+ Args: {
92696
+ _is_herprint: boolean;
92697
+ _queue_item_id: string;
92698
+ _session_id: string;
92699
+ _voorbeeld: boolean;
92700
+ };
92701
+ Returns: import("../integrations/supabase/types").Json;
92702
+ };
92063
92703
  logistics_resolve_settings: {
92064
92704
  Args: {
92065
92705
  p_config_id: string;
@@ -92514,6 +93154,13 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
92514
93154
  };
92515
93155
  Returns: import("../integrations/supabase/types").Json;
92516
93156
  };
93157
+ pick_preview_job: {
93158
+ Args: {
93159
+ _queue_item_id: string;
93160
+ _station_slug: string;
93161
+ };
93162
+ Returns: import("../integrations/supabase/types").Json;
93163
+ };
92517
93164
  pick_print_job_status: {
92518
93165
  Args: {
92519
93166
  _job_id: string;
@@ -92863,6 +93510,12 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
92863
93510
  };
92864
93511
  Returns: string;
92865
93512
  };
93513
+ resolve_print_job_printer_id: {
93514
+ Args: {
93515
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
93516
+ };
93517
+ Returns: string;
93518
+ };
92866
93519
  resolve_product_id_for_item: {
92867
93520
  Args: {
92868
93521
  p_product_name: string;
@@ -93454,7 +94107,7 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
93454
94107
  };
93455
94108
  CompositeTypes: { [_ in never]: never; };
93456
94109
  }, {
93457
- PostgrestVersion: "14.17";
94110
+ PostgrestVersion: "14.5";
93458
94111
  }>;
93459
94112
  userId: string;
93460
94113
  claims: import("@supabase/auth-js").JwtPayload;
@@ -93638,9 +94291,7 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
93638
94291
  notes?: string | null;
93639
94292
  recurrence?: string | null;
93640
94293
  reminders?: import("../integrations/supabase/types").Json;
93641
- source_id
93642
- /** Alle nog niet goedgekeurde karren van vandaag, gefilterd op de Engine. */
93643
- ?: string | null;
94294
+ source_id?: string | null;
93644
94295
  source_module?: string;
93645
94296
  source_type?: string | null;
93646
94297
  start_at?: string;
@@ -93703,9 +94354,7 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
93703
94354
  default_calendar_id?: string;
93704
94355
  default_view?: string;
93705
94356
  settings?: import("../integrations/supabase/types").Json;
93706
- updated_at
93707
- /** Haal alle karren op die vandaag gepickt / klaargezet hadden moeten worden. */
93708
- ?: string;
94357
+ updated_at?: string;
93709
94358
  user_id: string;
93710
94359
  };
93711
94360
  Update: {
@@ -93715,7 +94364,9 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
93715
94364
  default_view?: string;
93716
94365
  settings?: import("../integrations/supabase/types").Json;
93717
94366
  updated_at?: string;
93718
- user_id?: string;
94367
+ user_id
94368
+ /** Haal alle karren op die vandaag gecontroleerd moeten worden (RPC is leidend). */
94369
+ ?: string;
93719
94370
  };
93720
94371
  Relationships: [];
93721
94372
  };
@@ -107137,6 +107788,9 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
107137
107788
  is_herprint: boolean;
107138
107789
  kopieen: number;
107139
107790
  layout_id: string | null;
107791
+ lokaal_opgeslagen_op: string | null;
107792
+ lokale_pdf_fout: string | null;
107793
+ lokale_pdf_status: string | null;
107140
107794
  opgepakt_op: string | null;
107141
107795
  paginas: number;
107142
107796
  payload: import("../integrations/supabase/types").Json;
@@ -107145,6 +107799,7 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
107145
107799
  pogingen: number;
107146
107800
  printer_id: string | null;
107147
107801
  render_html: string | null;
107802
+ resultaat_pdf_base64: string | null;
107148
107803
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
107149
107804
  updated_at: string;
107150
107805
  volgende_poging: string | null;
@@ -107169,6 +107824,9 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
107169
107824
  is_herprint?: boolean;
107170
107825
  kopieen?: number;
107171
107826
  layout_id?: string | null;
107827
+ lokaal_opgeslagen_op?: string | null;
107828
+ lokale_pdf_fout?: string | null;
107829
+ lokale_pdf_status?: string | null;
107172
107830
  opgepakt_op?: string | null;
107173
107831
  paginas?: number;
107174
107832
  payload?: import("../integrations/supabase/types").Json;
@@ -107177,6 +107835,7 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
107177
107835
  pogingen?: number;
107178
107836
  printer_id?: string | null;
107179
107837
  render_html?: string | null;
107838
+ resultaat_pdf_base64?: string | null;
107180
107839
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
107181
107840
  updated_at?: string;
107182
107841
  volgende_poging?: string | null;
@@ -107201,6 +107860,9 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
107201
107860
  is_herprint?: boolean;
107202
107861
  kopieen?: number;
107203
107862
  layout_id?: string | null;
107863
+ lokaal_opgeslagen_op?: string | null;
107864
+ lokale_pdf_fout?: string | null;
107865
+ lokale_pdf_status?: string | null;
107204
107866
  opgepakt_op?: string | null;
107205
107867
  paginas?: number;
107206
107868
  payload?: import("../integrations/supabase/types").Json;
@@ -107209,6 +107871,7 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
107209
107871
  pogingen?: number;
107210
107872
  printer_id?: string | null;
107211
107873
  render_html?: string | null;
107874
+ resultaat_pdf_base64?: string | null;
107212
107875
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
107213
107876
  updated_at?: string;
107214
107877
  volgende_poging?: string | null;
@@ -107599,6 +108262,7 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
107599
108262
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
107600
108263
  online: boolean;
107601
108264
  papierformaat: string;
108265
+ pdf_map: string | null;
107602
108266
  poort: number | null;
107603
108267
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
107604
108268
  systeemnaam: string;
@@ -107624,6 +108288,7 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
107624
108288
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
107625
108289
  online?: boolean;
107626
108290
  papierformaat?: string;
108291
+ pdf_map?: string | null;
107627
108292
  poort?: number | null;
107628
108293
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
107629
108294
  systeemnaam?: string;
@@ -107649,6 +108314,7 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
107649
108314
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
107650
108315
  online?: boolean;
107651
108316
  papierformaat?: string;
108317
+ pdf_map?: string | null;
107652
108318
  poort?: number | null;
107653
108319
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
107654
108320
  systeemnaam?: string;
@@ -113905,6 +114571,9 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
113905
114571
  is_herprint: boolean;
113906
114572
  kopieen: number;
113907
114573
  layout_id: string | null;
114574
+ lokaal_opgeslagen_op: string | null;
114575
+ lokale_pdf_fout: string | null;
114576
+ lokale_pdf_status: string | null;
113908
114577
  opgepakt_op: string | null;
113909
114578
  paginas: number;
113910
114579
  payload: import("../integrations/supabase/types").Json;
@@ -113913,6 +114582,7 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
113913
114582
  pogingen: number;
113914
114583
  printer_id: string | null;
113915
114584
  render_html: string | null;
114585
+ resultaat_pdf_base64: string | null;
113916
114586
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
113917
114587
  updated_at: string;
113918
114588
  volgende_poging: string | null;
@@ -114004,6 +114674,53 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
114004
114674
  isSetofReturn: true;
114005
114675
  };
114006
114676
  };
114677
+ claim_pdf_print_jobs: {
114678
+ Args: {
114679
+ _max?: number;
114680
+ };
114681
+ Returns: {
114682
+ agent_id: string | null;
114683
+ bron_job_id: string | null;
114684
+ created_at: string;
114685
+ documentnaam: string;
114686
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
114687
+ extern_job_id: string | null;
114688
+ foutmelding: string | null;
114689
+ gebruiker_id: string | null;
114690
+ gebruiker_naam: string;
114691
+ gebruikte_bron: string | null;
114692
+ gebruikte_layout_id: string | null;
114693
+ gestart_op: string | null;
114694
+ herkomst: string | null;
114695
+ id: string;
114696
+ idempotentie_sleutel: string | null;
114697
+ is_herprint: boolean;
114698
+ kopieen: number;
114699
+ layout_id: string | null;
114700
+ lokaal_opgeslagen_op: string | null;
114701
+ lokale_pdf_fout: string | null;
114702
+ lokale_pdf_status: string | null;
114703
+ opgepakt_op: string | null;
114704
+ paginas: number;
114705
+ payload: import("../integrations/supabase/types").Json;
114706
+ pdf_base64: string | null;
114707
+ pdf_url: string | null;
114708
+ pogingen: number;
114709
+ printer_id: string | null;
114710
+ render_html: string | null;
114711
+ resultaat_pdf_base64: string | null;
114712
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
114713
+ updated_at: string;
114714
+ volgende_poging: string | null;
114715
+ voltooid_op: string | null;
114716
+ }[];
114717
+ SetofOptions: {
114718
+ from: "*";
114719
+ to: "print_jobs";
114720
+ isOneToOne: false;
114721
+ isSetofReturn: true;
114722
+ };
114723
+ };
114007
114724
  claim_print_jobs: {
114008
114725
  Args: {
114009
114726
  _agent_id: string;
@@ -114028,6 +114745,9 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
114028
114745
  is_herprint: boolean;
114029
114746
  kopieen: number;
114030
114747
  layout_id: string | null;
114748
+ lokaal_opgeslagen_op: string | null;
114749
+ lokale_pdf_fout: string | null;
114750
+ lokale_pdf_status: string | null;
114031
114751
  opgepakt_op: string | null;
114032
114752
  paginas: number;
114033
114753
  payload: import("../integrations/supabase/types").Json;
@@ -114036,6 +114756,7 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
114036
114756
  pogingen: number;
114037
114757
  printer_id: string | null;
114038
114758
  render_html: string | null;
114759
+ resultaat_pdf_base64: string | null;
114039
114760
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
114040
114761
  updated_at: string;
114041
114762
  volgende_poging: string | null;
@@ -114176,6 +114897,8 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
114176
114897
  order_id: string;
114177
114898
  order_source: string;
114178
114899
  pick_date: string;
114900
+ printed_at: string;
114901
+ printed_today: boolean;
114179
114902
  status: string;
114180
114903
  }[];
114181
114904
  };
@@ -114884,6 +115607,10 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
114884
115607
  };
114885
115608
  Returns: number;
114886
115609
  };
115610
+ logistics_cancel_orphan_tasks: {
115611
+ Args: never;
115612
+ Returns: number;
115613
+ };
114887
115614
  logistics_capacity_day_check: {
114888
115615
  Args: {
114889
115616
  p_from?: string;
@@ -114904,6 +115631,25 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
114904
115631
  };
114905
115632
  Returns: number;
114906
115633
  };
115634
+ logistics_cart_index: {
115635
+ Args: {
115636
+ p_from?: string;
115637
+ p_to?: string;
115638
+ };
115639
+ Returns: {
115640
+ cart_id: string;
115641
+ cart_index: number;
115642
+ cart_label: string;
115643
+ is_shared: boolean;
115644
+ order_number: string;
115645
+ order_source: string;
115646
+ order_uuid: string;
115647
+ pick_date: string;
115648
+ printed_at: string;
115649
+ shifted: boolean;
115650
+ task_status: string;
115651
+ }[];
115652
+ };
114907
115653
  logistics_check_order_allowed: {
114908
115654
  Args: {
114909
115655
  p_lines: import("../integrations/supabase/types").Json;
@@ -115052,6 +115798,17 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
115052
115798
  isSetofReturn: false;
115053
115799
  };
115054
115800
  };
115801
+ logistics_consistency_check: {
115802
+ Args: never;
115803
+ Returns: {
115804
+ agenda_carts: number;
115805
+ control_carts: number;
115806
+ ok: boolean;
115807
+ orphan_tasks: number;
115808
+ pick_date: string;
115809
+ raw_carts: number;
115810
+ }[];
115811
+ };
115055
115812
  logistics_delay_customer_email: {
115056
115813
  Args: {
115057
115814
  p_customer: string;
@@ -115245,6 +116002,25 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
115245
116002
  };
115246
116003
  Returns: number;
115247
116004
  };
116005
+ logistics_order_overview: {
116006
+ Args: {
116007
+ p_from?: string;
116008
+ p_to?: string;
116009
+ };
116010
+ Returns: {
116011
+ cart_count: number;
116012
+ customer_name: string;
116013
+ delivery_date: string;
116014
+ order_number: string;
116015
+ order_source: string;
116016
+ order_uuid: string;
116017
+ pick_date: string;
116018
+ plant_count: number;
116019
+ printed_at: string;
116020
+ shifted: boolean;
116021
+ status: string;
116022
+ }[];
116023
+ };
115248
116024
  logistics_order_pick_day: {
115249
116025
  Args: {
115250
116026
  p_order_ref: string;
@@ -115257,6 +116033,22 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
115257
116033
  };
115258
116034
  Returns: string;
115259
116035
  };
116036
+ logistics_pick_agenda: {
116037
+ Args: {
116038
+ p_from?: string;
116039
+ p_to?: string;
116040
+ };
116041
+ Returns: {
116042
+ cart_count: number;
116043
+ in_preparation: number;
116044
+ order_count: number;
116045
+ orders: import("../integrations/supabase/types").Json;
116046
+ pick_date: string;
116047
+ plant_count: number;
116048
+ ready: number;
116049
+ shifted_count: number;
116050
+ }[];
116051
+ };
115260
116052
  logistics_pick_email_purpose: {
115261
116053
  Args: never;
115262
116054
  Returns: string;
@@ -115416,6 +116208,15 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
115416
116208
  };
115417
116209
  Returns: import("../integrations/supabase/types").Json;
115418
116210
  };
116211
+ logistics_resolve_pick_document: {
116212
+ Args: {
116213
+ _is_herprint: boolean;
116214
+ _queue_item_id: string;
116215
+ _session_id: string;
116216
+ _voorbeeld: boolean;
116217
+ };
116218
+ Returns: import("../integrations/supabase/types").Json;
116219
+ };
115419
116220
  logistics_resolve_settings: {
115420
116221
  Args: {
115421
116222
  p_config_id: string;
@@ -115870,6 +116671,13 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
115870
116671
  };
115871
116672
  Returns: import("../integrations/supabase/types").Json;
115872
116673
  };
116674
+ pick_preview_job: {
116675
+ Args: {
116676
+ _queue_item_id: string;
116677
+ _station_slug: string;
116678
+ };
116679
+ Returns: import("../integrations/supabase/types").Json;
116680
+ };
115873
116681
  pick_print_job_status: {
115874
116682
  Args: {
115875
116683
  _job_id: string;
@@ -116219,6 +117027,12 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
116219
117027
  };
116220
117028
  Returns: string;
116221
117029
  };
117030
+ resolve_print_job_printer_id: {
117031
+ Args: {
117032
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
117033
+ };
117034
+ Returns: string;
117035
+ };
116222
117036
  resolve_product_id_for_item: {
116223
117037
  Args: {
116224
117038
  p_product_name: string;
@@ -116810,7 +117624,7 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
116810
117624
  };
116811
117625
  CompositeTypes: { [_ in never]: never; };
116812
117626
  }, {
116813
- PostgrestVersion: "14.17";
117627
+ PostgrestVersion: "14.5";
116814
117628
  }>;
116815
117629
  userId: string;
116816
117630
  claims: import("@supabase/auth-js").JwtPayload;
@@ -116997,9 +117811,7 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
116997
117811
  notes?: string | null;
116998
117812
  recurrence?: string | null;
116999
117813
  reminders?: import("../integrations/supabase/types").Json;
117000
- source_id
117001
- /** Alle nog niet goedgekeurde karren van vandaag, gefilterd op de Engine. */
117002
- ?: string | null;
117814
+ source_id?: string | null;
117003
117815
  source_module?: string;
117004
117816
  source_type?: string | null;
117005
117817
  start_at?: string;
@@ -117062,9 +117874,7 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
117062
117874
  default_calendar_id?: string;
117063
117875
  default_view?: string;
117064
117876
  settings?: import("../integrations/supabase/types").Json;
117065
- updated_at
117066
- /** Haal alle karren op die vandaag gepickt / klaargezet hadden moeten worden. */
117067
- ?: string;
117877
+ updated_at?: string;
117068
117878
  user_id: string;
117069
117879
  };
117070
117880
  Update: {
@@ -117074,7 +117884,9 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
117074
117884
  default_view?: string;
117075
117885
  settings?: import("../integrations/supabase/types").Json;
117076
117886
  updated_at?: string;
117077
- user_id?: string;
117887
+ user_id
117888
+ /** Haal alle karren op die vandaag gecontroleerd moeten worden (RPC is leidend). */
117889
+ ?: string;
117078
117890
  };
117079
117891
  Relationships: [];
117080
117892
  };
@@ -130496,6 +131308,9 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
130496
131308
  is_herprint: boolean;
130497
131309
  kopieen: number;
130498
131310
  layout_id: string | null;
131311
+ lokaal_opgeslagen_op: string | null;
131312
+ lokale_pdf_fout: string | null;
131313
+ lokale_pdf_status: string | null;
130499
131314
  opgepakt_op: string | null;
130500
131315
  paginas: number;
130501
131316
  payload: import("../integrations/supabase/types").Json;
@@ -130504,6 +131319,7 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
130504
131319
  pogingen: number;
130505
131320
  printer_id: string | null;
130506
131321
  render_html: string | null;
131322
+ resultaat_pdf_base64: string | null;
130507
131323
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
130508
131324
  updated_at: string;
130509
131325
  volgende_poging: string | null;
@@ -130528,6 +131344,9 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
130528
131344
  is_herprint?: boolean;
130529
131345
  kopieen?: number;
130530
131346
  layout_id?: string | null;
131347
+ lokaal_opgeslagen_op?: string | null;
131348
+ lokale_pdf_fout?: string | null;
131349
+ lokale_pdf_status?: string | null;
130531
131350
  opgepakt_op?: string | null;
130532
131351
  paginas?: number;
130533
131352
  payload?: import("../integrations/supabase/types").Json;
@@ -130536,6 +131355,7 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
130536
131355
  pogingen?: number;
130537
131356
  printer_id?: string | null;
130538
131357
  render_html?: string | null;
131358
+ resultaat_pdf_base64?: string | null;
130539
131359
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
130540
131360
  updated_at?: string;
130541
131361
  volgende_poging?: string | null;
@@ -130560,6 +131380,9 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
130560
131380
  is_herprint?: boolean;
130561
131381
  kopieen?: number;
130562
131382
  layout_id?: string | null;
131383
+ lokaal_opgeslagen_op?: string | null;
131384
+ lokale_pdf_fout?: string | null;
131385
+ lokale_pdf_status?: string | null;
130563
131386
  opgepakt_op?: string | null;
130564
131387
  paginas?: number;
130565
131388
  payload?: import("../integrations/supabase/types").Json;
@@ -130568,6 +131391,7 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
130568
131391
  pogingen?: number;
130569
131392
  printer_id?: string | null;
130570
131393
  render_html?: string | null;
131394
+ resultaat_pdf_base64?: string | null;
130571
131395
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
130572
131396
  updated_at?: string;
130573
131397
  volgende_poging?: string | null;
@@ -130958,6 +131782,7 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
130958
131782
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
130959
131783
  online: boolean;
130960
131784
  papierformaat: string;
131785
+ pdf_map: string | null;
130961
131786
  poort: number | null;
130962
131787
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
130963
131788
  systeemnaam: string;
@@ -130983,6 +131808,7 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
130983
131808
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
130984
131809
  online?: boolean;
130985
131810
  papierformaat?: string;
131811
+ pdf_map?: string | null;
130986
131812
  poort?: number | null;
130987
131813
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
130988
131814
  systeemnaam?: string;
@@ -131008,6 +131834,7 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
131008
131834
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
131009
131835
  online?: boolean;
131010
131836
  papierformaat?: string;
131837
+ pdf_map?: string | null;
131011
131838
  poort?: number | null;
131012
131839
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
131013
131840
  systeemnaam?: string;
@@ -137264,6 +138091,9 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
137264
138091
  is_herprint: boolean;
137265
138092
  kopieen: number;
137266
138093
  layout_id: string | null;
138094
+ lokaal_opgeslagen_op: string | null;
138095
+ lokale_pdf_fout: string | null;
138096
+ lokale_pdf_status: string | null;
137267
138097
  opgepakt_op: string | null;
137268
138098
  paginas: number;
137269
138099
  payload: import("../integrations/supabase/types").Json;
@@ -137272,6 +138102,7 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
137272
138102
  pogingen: number;
137273
138103
  printer_id: string | null;
137274
138104
  render_html: string | null;
138105
+ resultaat_pdf_base64: string | null;
137275
138106
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
137276
138107
  updated_at: string;
137277
138108
  volgende_poging: string | null;
@@ -137363,6 +138194,53 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
137363
138194
  isSetofReturn: true;
137364
138195
  };
137365
138196
  };
138197
+ claim_pdf_print_jobs: {
138198
+ Args: {
138199
+ _max?: number;
138200
+ };
138201
+ Returns: {
138202
+ agent_id: string | null;
138203
+ bron_job_id: string | null;
138204
+ created_at: string;
138205
+ documentnaam: string;
138206
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
138207
+ extern_job_id: string | null;
138208
+ foutmelding: string | null;
138209
+ gebruiker_id: string | null;
138210
+ gebruiker_naam: string;
138211
+ gebruikte_bron: string | null;
138212
+ gebruikte_layout_id: string | null;
138213
+ gestart_op: string | null;
138214
+ herkomst: string | null;
138215
+ id: string;
138216
+ idempotentie_sleutel: string | null;
138217
+ is_herprint: boolean;
138218
+ kopieen: number;
138219
+ layout_id: string | null;
138220
+ lokaal_opgeslagen_op: string | null;
138221
+ lokale_pdf_fout: string | null;
138222
+ lokale_pdf_status: string | null;
138223
+ opgepakt_op: string | null;
138224
+ paginas: number;
138225
+ payload: import("../integrations/supabase/types").Json;
138226
+ pdf_base64: string | null;
138227
+ pdf_url: string | null;
138228
+ pogingen: number;
138229
+ printer_id: string | null;
138230
+ render_html: string | null;
138231
+ resultaat_pdf_base64: string | null;
138232
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
138233
+ updated_at: string;
138234
+ volgende_poging: string | null;
138235
+ voltooid_op: string | null;
138236
+ }[];
138237
+ SetofOptions: {
138238
+ from: "*";
138239
+ to: "print_jobs";
138240
+ isOneToOne: false;
138241
+ isSetofReturn: true;
138242
+ };
138243
+ };
137366
138244
  claim_print_jobs: {
137367
138245
  Args: {
137368
138246
  _agent_id: string;
@@ -137387,6 +138265,9 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
137387
138265
  is_herprint: boolean;
137388
138266
  kopieen: number;
137389
138267
  layout_id: string | null;
138268
+ lokaal_opgeslagen_op: string | null;
138269
+ lokale_pdf_fout: string | null;
138270
+ lokale_pdf_status: string | null;
137390
138271
  opgepakt_op: string | null;
137391
138272
  paginas: number;
137392
138273
  payload: import("../integrations/supabase/types").Json;
@@ -137395,6 +138276,7 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
137395
138276
  pogingen: number;
137396
138277
  printer_id: string | null;
137397
138278
  render_html: string | null;
138279
+ resultaat_pdf_base64: string | null;
137398
138280
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
137399
138281
  updated_at: string;
137400
138282
  volgende_poging: string | null;
@@ -137535,6 +138417,8 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
137535
138417
  order_id: string;
137536
138418
  order_source: string;
137537
138419
  pick_date: string;
138420
+ printed_at: string;
138421
+ printed_today: boolean;
137538
138422
  status: string;
137539
138423
  }[];
137540
138424
  };
@@ -138243,6 +139127,10 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
138243
139127
  };
138244
139128
  Returns: number;
138245
139129
  };
139130
+ logistics_cancel_orphan_tasks: {
139131
+ Args: never;
139132
+ Returns: number;
139133
+ };
138246
139134
  logistics_capacity_day_check: {
138247
139135
  Args: {
138248
139136
  p_from?: string;
@@ -138263,6 +139151,25 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
138263
139151
  };
138264
139152
  Returns: number;
138265
139153
  };
139154
+ logistics_cart_index: {
139155
+ Args: {
139156
+ p_from?: string;
139157
+ p_to?: string;
139158
+ };
139159
+ Returns: {
139160
+ cart_id: string;
139161
+ cart_index: number;
139162
+ cart_label: string;
139163
+ is_shared: boolean;
139164
+ order_number: string;
139165
+ order_source: string;
139166
+ order_uuid: string;
139167
+ pick_date: string;
139168
+ printed_at: string;
139169
+ shifted: boolean;
139170
+ task_status: string;
139171
+ }[];
139172
+ };
138266
139173
  logistics_check_order_allowed: {
138267
139174
  Args: {
138268
139175
  p_lines: import("../integrations/supabase/types").Json;
@@ -138366,50 +139273,61 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
138366
139273
  isSetofReturn: false;
138367
139274
  };
138368
139275
  };
138369
- logistics_complete_task: {
138370
- Args: {
138371
- p_result?: import("../integrations/supabase/types").Json;
138372
- p_task_id: string;
138373
- };
139276
+ logistics_complete_task: {
139277
+ Args: {
139278
+ p_result?: import("../integrations/supabase/types").Json;
139279
+ p_task_id: string;
139280
+ };
139281
+ Returns: {
139282
+ attempt_log: import("../integrations/supabase/types").Json;
139283
+ attempts: number;
139284
+ buffer_ref: string | null;
139285
+ claimed_at: string | null;
139286
+ claimed_by: string | null;
139287
+ completed_at: string | null;
139288
+ created_at: string;
139289
+ depends_on: string[];
139290
+ due_at: string | null;
139291
+ error: string | null;
139292
+ id: string;
139293
+ last_error: string | null;
139294
+ next_attempt_at: string | null;
139295
+ order_ref: string;
139296
+ owner_module: string;
139297
+ payload: import("../integrations/supabase/types").Json;
139298
+ plan_run_id: string | null;
139299
+ planned_end: string | null;
139300
+ planned_start: string | null;
139301
+ priority: number;
139302
+ result: import("../integrations/supabase/types").Json | null;
139303
+ rule_config_id: string | null;
139304
+ rule_version: number | null;
139305
+ sequence: number;
139306
+ shadow: boolean;
139307
+ started_at: string | null;
139308
+ status: string;
139309
+ strategy_id: string | null;
139310
+ task_type: string;
139311
+ updated_at: string;
139312
+ user_id: string;
139313
+ };
139314
+ SetofOptions: {
139315
+ from: "*";
139316
+ to: "logistics_tasks";
139317
+ isOneToOne: true;
139318
+ isSetofReturn: false;
139319
+ };
139320
+ };
139321
+ logistics_consistency_check: {
139322
+ Args: never;
138374
139323
  Returns: {
138375
- attempt_log: import("../integrations/supabase/types").Json;
138376
- attempts: number;
138377
- buffer_ref: string | null;
138378
- claimed_at: string | null;
138379
- claimed_by: string | null;
138380
- completed_at: string | null;
138381
- created_at: string;
138382
- depends_on: string[];
138383
- due_at: string | null;
138384
- error: string | null;
138385
- id: string;
138386
- last_error: string | null;
138387
- next_attempt_at: string | null;
138388
- order_ref: string;
138389
- owner_module: string;
138390
- payload: import("../integrations/supabase/types").Json;
138391
- plan_run_id: string | null;
138392
- planned_end: string | null;
138393
- planned_start: string | null;
138394
- priority: number;
138395
- result: import("../integrations/supabase/types").Json | null;
138396
- rule_config_id: string | null;
138397
- rule_version: number | null;
138398
- sequence: number;
138399
- shadow: boolean;
138400
- started_at: string | null;
138401
- status: string;
138402
- strategy_id: string | null;
138403
- task_type: string;
138404
- updated_at: string;
138405
- user_id: string;
138406
- };
138407
- SetofOptions: {
138408
- from: "*";
138409
- to: "logistics_tasks";
138410
- isOneToOne: true;
138411
- isSetofReturn: false;
138412
- };
139324
+ agenda_carts: number;
139325
+ control_carts: number;
139326
+ ok: boolean;
139327
+ orphan_tasks: number;
139328
+ pick_date: string;
139329
+ raw_carts: number;
139330
+ }[];
138413
139331
  };
138414
139332
  logistics_delay_customer_email: {
138415
139333
  Args: {
@@ -138604,6 +139522,25 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
138604
139522
  };
138605
139523
  Returns: number;
138606
139524
  };
139525
+ logistics_order_overview: {
139526
+ Args: {
139527
+ p_from?: string;
139528
+ p_to?: string;
139529
+ };
139530
+ Returns: {
139531
+ cart_count: number;
139532
+ customer_name: string;
139533
+ delivery_date: string;
139534
+ order_number: string;
139535
+ order_source: string;
139536
+ order_uuid: string;
139537
+ pick_date: string;
139538
+ plant_count: number;
139539
+ printed_at: string;
139540
+ shifted: boolean;
139541
+ status: string;
139542
+ }[];
139543
+ };
138607
139544
  logistics_order_pick_day: {
138608
139545
  Args: {
138609
139546
  p_order_ref: string;
@@ -138616,6 +139553,22 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
138616
139553
  };
138617
139554
  Returns: string;
138618
139555
  };
139556
+ logistics_pick_agenda: {
139557
+ Args: {
139558
+ p_from?: string;
139559
+ p_to?: string;
139560
+ };
139561
+ Returns: {
139562
+ cart_count: number;
139563
+ in_preparation: number;
139564
+ order_count: number;
139565
+ orders: import("../integrations/supabase/types").Json;
139566
+ pick_date: string;
139567
+ plant_count: number;
139568
+ ready: number;
139569
+ shifted_count: number;
139570
+ }[];
139571
+ };
138619
139572
  logistics_pick_email_purpose: {
138620
139573
  Args: never;
138621
139574
  Returns: string;
@@ -138775,6 +139728,15 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
138775
139728
  };
138776
139729
  Returns: import("../integrations/supabase/types").Json;
138777
139730
  };
139731
+ logistics_resolve_pick_document: {
139732
+ Args: {
139733
+ _is_herprint: boolean;
139734
+ _queue_item_id: string;
139735
+ _session_id: string;
139736
+ _voorbeeld: boolean;
139737
+ };
139738
+ Returns: import("../integrations/supabase/types").Json;
139739
+ };
138778
139740
  logistics_resolve_settings: {
138779
139741
  Args: {
138780
139742
  p_config_id: string;
@@ -139229,6 +140191,13 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
139229
140191
  };
139230
140192
  Returns: import("../integrations/supabase/types").Json;
139231
140193
  };
140194
+ pick_preview_job: {
140195
+ Args: {
140196
+ _queue_item_id: string;
140197
+ _station_slug: string;
140198
+ };
140199
+ Returns: import("../integrations/supabase/types").Json;
140200
+ };
139232
140201
  pick_print_job_status: {
139233
140202
  Args: {
139234
140203
  _job_id: string;
@@ -139578,6 +140547,12 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
139578
140547
  };
139579
140548
  Returns: string;
139580
140549
  };
140550
+ resolve_print_job_printer_id: {
140551
+ Args: {
140552
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
140553
+ };
140554
+ Returns: string;
140555
+ };
139581
140556
  resolve_product_id_for_item: {
139582
140557
  Args: {
139583
140558
  p_product_name: string;
@@ -140169,7 +141144,7 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
140169
141144
  };
140170
141145
  CompositeTypes: { [_ in never]: never; };
140171
141146
  }, {
140172
- PostgrestVersion: "14.17";
141147
+ PostgrestVersion: "14.5";
140173
141148
  }>;
140174
141149
  userId: string;
140175
141150
  claims: import("@supabase/auth-js").JwtPayload;
@@ -140342,9 +141317,7 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
140342
141317
  notes?: string | null;
140343
141318
  recurrence?: string | null;
140344
141319
  reminders?: import("../integrations/supabase/types").Json;
140345
- source_id
140346
- /** Alle nog niet goedgekeurde karren van vandaag, gefilterd op de Engine. */
140347
- ?: string | null;
141320
+ source_id?: string | null;
140348
141321
  source_module?: string;
140349
141322
  source_type?: string | null;
140350
141323
  start_at?: string;
@@ -140407,9 +141380,7 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
140407
141380
  default_calendar_id?: string;
140408
141381
  default_view?: string;
140409
141382
  settings?: import("../integrations/supabase/types").Json;
140410
- updated_at
140411
- /** Haal alle karren op die vandaag gepickt / klaargezet hadden moeten worden. */
140412
- ?: string;
141383
+ updated_at?: string;
140413
141384
  user_id: string;
140414
141385
  };
140415
141386
  Update: {
@@ -140419,7 +141390,9 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
140419
141390
  default_view?: string;
140420
141391
  settings?: import("../integrations/supabase/types").Json;
140421
141392
  updated_at?: string;
140422
- user_id?: string;
141393
+ user_id
141394
+ /** Haal alle karren op die vandaag gecontroleerd moeten worden (RPC is leidend). */
141395
+ ?: string;
140423
141396
  };
140424
141397
  Relationships: [];
140425
141398
  };
@@ -153841,6 +154814,9 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
153841
154814
  is_herprint: boolean;
153842
154815
  kopieen: number;
153843
154816
  layout_id: string | null;
154817
+ lokaal_opgeslagen_op: string | null;
154818
+ lokale_pdf_fout: string | null;
154819
+ lokale_pdf_status: string | null;
153844
154820
  opgepakt_op: string | null;
153845
154821
  paginas: number;
153846
154822
  payload: import("../integrations/supabase/types").Json;
@@ -153849,6 +154825,7 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
153849
154825
  pogingen: number;
153850
154826
  printer_id: string | null;
153851
154827
  render_html: string | null;
154828
+ resultaat_pdf_base64: string | null;
153852
154829
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
153853
154830
  updated_at: string;
153854
154831
  volgende_poging: string | null;
@@ -153873,6 +154850,9 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
153873
154850
  is_herprint?: boolean;
153874
154851
  kopieen?: number;
153875
154852
  layout_id?: string | null;
154853
+ lokaal_opgeslagen_op?: string | null;
154854
+ lokale_pdf_fout?: string | null;
154855
+ lokale_pdf_status?: string | null;
153876
154856
  opgepakt_op?: string | null;
153877
154857
  paginas?: number;
153878
154858
  payload?: import("../integrations/supabase/types").Json;
@@ -153881,6 +154861,7 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
153881
154861
  pogingen?: number;
153882
154862
  printer_id?: string | null;
153883
154863
  render_html?: string | null;
154864
+ resultaat_pdf_base64?: string | null;
153884
154865
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
153885
154866
  updated_at?: string;
153886
154867
  volgende_poging?: string | null;
@@ -153905,6 +154886,9 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
153905
154886
  is_herprint?: boolean;
153906
154887
  kopieen?: number;
153907
154888
  layout_id?: string | null;
154889
+ lokaal_opgeslagen_op?: string | null;
154890
+ lokale_pdf_fout?: string | null;
154891
+ lokale_pdf_status?: string | null;
153908
154892
  opgepakt_op?: string | null;
153909
154893
  paginas?: number;
153910
154894
  payload?: import("../integrations/supabase/types").Json;
@@ -153913,6 +154897,7 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
153913
154897
  pogingen?: number;
153914
154898
  printer_id?: string | null;
153915
154899
  render_html?: string | null;
154900
+ resultaat_pdf_base64?: string | null;
153916
154901
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
153917
154902
  updated_at?: string;
153918
154903
  volgende_poging?: string | null;
@@ -154303,6 +155288,7 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
154303
155288
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
154304
155289
  online: boolean;
154305
155290
  papierformaat: string;
155291
+ pdf_map: string | null;
154306
155292
  poort: number | null;
154307
155293
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
154308
155294
  systeemnaam: string;
@@ -154328,6 +155314,7 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
154328
155314
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
154329
155315
  online?: boolean;
154330
155316
  papierformaat?: string;
155317
+ pdf_map?: string | null;
154331
155318
  poort?: number | null;
154332
155319
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
154333
155320
  systeemnaam?: string;
@@ -154353,6 +155340,7 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
154353
155340
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
154354
155341
  online?: boolean;
154355
155342
  papierformaat?: string;
155343
+ pdf_map?: string | null;
154356
155344
  poort?: number | null;
154357
155345
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
154358
155346
  systeemnaam?: string;
@@ -160609,6 +161597,9 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
160609
161597
  is_herprint: boolean;
160610
161598
  kopieen: number;
160611
161599
  layout_id: string | null;
161600
+ lokaal_opgeslagen_op: string | null;
161601
+ lokale_pdf_fout: string | null;
161602
+ lokale_pdf_status: string | null;
160612
161603
  opgepakt_op: string | null;
160613
161604
  paginas: number;
160614
161605
  payload: import("../integrations/supabase/types").Json;
@@ -160617,6 +161608,7 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
160617
161608
  pogingen: number;
160618
161609
  printer_id: string | null;
160619
161610
  render_html: string | null;
161611
+ resultaat_pdf_base64: string | null;
160620
161612
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
160621
161613
  updated_at: string;
160622
161614
  volgende_poging: string | null;
@@ -160708,6 +161700,53 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
160708
161700
  isSetofReturn: true;
160709
161701
  };
160710
161702
  };
161703
+ claim_pdf_print_jobs: {
161704
+ Args: {
161705
+ _max?: number;
161706
+ };
161707
+ Returns: {
161708
+ agent_id: string | null;
161709
+ bron_job_id: string | null;
161710
+ created_at: string;
161711
+ documentnaam: string;
161712
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
161713
+ extern_job_id: string | null;
161714
+ foutmelding: string | null;
161715
+ gebruiker_id: string | null;
161716
+ gebruiker_naam: string;
161717
+ gebruikte_bron: string | null;
161718
+ gebruikte_layout_id: string | null;
161719
+ gestart_op: string | null;
161720
+ herkomst: string | null;
161721
+ id: string;
161722
+ idempotentie_sleutel: string | null;
161723
+ is_herprint: boolean;
161724
+ kopieen: number;
161725
+ layout_id: string | null;
161726
+ lokaal_opgeslagen_op: string | null;
161727
+ lokale_pdf_fout: string | null;
161728
+ lokale_pdf_status: string | null;
161729
+ opgepakt_op: string | null;
161730
+ paginas: number;
161731
+ payload: import("../integrations/supabase/types").Json;
161732
+ pdf_base64: string | null;
161733
+ pdf_url: string | null;
161734
+ pogingen: number;
161735
+ printer_id: string | null;
161736
+ render_html: string | null;
161737
+ resultaat_pdf_base64: string | null;
161738
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
161739
+ updated_at: string;
161740
+ volgende_poging: string | null;
161741
+ voltooid_op: string | null;
161742
+ }[];
161743
+ SetofOptions: {
161744
+ from: "*";
161745
+ to: "print_jobs";
161746
+ isOneToOne: false;
161747
+ isSetofReturn: true;
161748
+ };
161749
+ };
160711
161750
  claim_print_jobs: {
160712
161751
  Args: {
160713
161752
  _agent_id: string;
@@ -160732,6 +161771,9 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
160732
161771
  is_herprint: boolean;
160733
161772
  kopieen: number;
160734
161773
  layout_id: string | null;
161774
+ lokaal_opgeslagen_op: string | null;
161775
+ lokale_pdf_fout: string | null;
161776
+ lokale_pdf_status: string | null;
160735
161777
  opgepakt_op: string | null;
160736
161778
  paginas: number;
160737
161779
  payload: import("../integrations/supabase/types").Json;
@@ -160740,6 +161782,7 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
160740
161782
  pogingen: number;
160741
161783
  printer_id: string | null;
160742
161784
  render_html: string | null;
161785
+ resultaat_pdf_base64: string | null;
160743
161786
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
160744
161787
  updated_at: string;
160745
161788
  volgende_poging: string | null;
@@ -160880,6 +161923,8 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
160880
161923
  order_id: string;
160881
161924
  order_source: string;
160882
161925
  pick_date: string;
161926
+ printed_at: string;
161927
+ printed_today: boolean;
160883
161928
  status: string;
160884
161929
  }[];
160885
161930
  };
@@ -161588,6 +162633,10 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
161588
162633
  };
161589
162634
  Returns: number;
161590
162635
  };
162636
+ logistics_cancel_orphan_tasks: {
162637
+ Args: never;
162638
+ Returns: number;
162639
+ };
161591
162640
  logistics_capacity_day_check: {
161592
162641
  Args: {
161593
162642
  p_from?: string;
@@ -161608,6 +162657,25 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
161608
162657
  };
161609
162658
  Returns: number;
161610
162659
  };
162660
+ logistics_cart_index: {
162661
+ Args: {
162662
+ p_from?: string;
162663
+ p_to?: string;
162664
+ };
162665
+ Returns: {
162666
+ cart_id: string;
162667
+ cart_index: number;
162668
+ cart_label: string;
162669
+ is_shared: boolean;
162670
+ order_number: string;
162671
+ order_source: string;
162672
+ order_uuid: string;
162673
+ pick_date: string;
162674
+ printed_at: string;
162675
+ shifted: boolean;
162676
+ task_status: string;
162677
+ }[];
162678
+ };
161611
162679
  logistics_check_order_allowed: {
161612
162680
  Args: {
161613
162681
  p_lines: import("../integrations/supabase/types").Json;
@@ -161756,6 +162824,17 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
161756
162824
  isSetofReturn: false;
161757
162825
  };
161758
162826
  };
162827
+ logistics_consistency_check: {
162828
+ Args: never;
162829
+ Returns: {
162830
+ agenda_carts: number;
162831
+ control_carts: number;
162832
+ ok: boolean;
162833
+ orphan_tasks: number;
162834
+ pick_date: string;
162835
+ raw_carts: number;
162836
+ }[];
162837
+ };
161759
162838
  logistics_delay_customer_email: {
161760
162839
  Args: {
161761
162840
  p_customer: string;
@@ -161949,6 +163028,25 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
161949
163028
  };
161950
163029
  Returns: number;
161951
163030
  };
163031
+ logistics_order_overview: {
163032
+ Args: {
163033
+ p_from?: string;
163034
+ p_to?: string;
163035
+ };
163036
+ Returns: {
163037
+ cart_count: number;
163038
+ customer_name: string;
163039
+ delivery_date: string;
163040
+ order_number: string;
163041
+ order_source: string;
163042
+ order_uuid: string;
163043
+ pick_date: string;
163044
+ plant_count: number;
163045
+ printed_at: string;
163046
+ shifted: boolean;
163047
+ status: string;
163048
+ }[];
163049
+ };
161952
163050
  logistics_order_pick_day: {
161953
163051
  Args: {
161954
163052
  p_order_ref: string;
@@ -161961,6 +163059,22 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
161961
163059
  };
161962
163060
  Returns: string;
161963
163061
  };
163062
+ logistics_pick_agenda: {
163063
+ Args: {
163064
+ p_from?: string;
163065
+ p_to?: string;
163066
+ };
163067
+ Returns: {
163068
+ cart_count: number;
163069
+ in_preparation: number;
163070
+ order_count: number;
163071
+ orders: import("../integrations/supabase/types").Json;
163072
+ pick_date: string;
163073
+ plant_count: number;
163074
+ ready: number;
163075
+ shifted_count: number;
163076
+ }[];
163077
+ };
161964
163078
  logistics_pick_email_purpose: {
161965
163079
  Args: never;
161966
163080
  Returns: string;
@@ -162120,6 +163234,15 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
162120
163234
  };
162121
163235
  Returns: import("../integrations/supabase/types").Json;
162122
163236
  };
163237
+ logistics_resolve_pick_document: {
163238
+ Args: {
163239
+ _is_herprint: boolean;
163240
+ _queue_item_id: string;
163241
+ _session_id: string;
163242
+ _voorbeeld: boolean;
163243
+ };
163244
+ Returns: import("../integrations/supabase/types").Json;
163245
+ };
162123
163246
  logistics_resolve_settings: {
162124
163247
  Args: {
162125
163248
  p_config_id: string;
@@ -162574,6 +163697,13 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
162574
163697
  };
162575
163698
  Returns: import("../integrations/supabase/types").Json;
162576
163699
  };
163700
+ pick_preview_job: {
163701
+ Args: {
163702
+ _queue_item_id: string;
163703
+ _station_slug: string;
163704
+ };
163705
+ Returns: import("../integrations/supabase/types").Json;
163706
+ };
162577
163707
  pick_print_job_status: {
162578
163708
  Args: {
162579
163709
  _job_id: string;
@@ -162923,6 +164053,12 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
162923
164053
  };
162924
164054
  Returns: string;
162925
164055
  };
164056
+ resolve_print_job_printer_id: {
164057
+ Args: {
164058
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
164059
+ };
164060
+ Returns: string;
164061
+ };
162926
164062
  resolve_product_id_for_item: {
162927
164063
  Args: {
162928
164064
  p_product_name: string;
@@ -163514,7 +164650,7 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
163514
164650
  };
163515
164651
  CompositeTypes: { [_ in never]: never; };
163516
164652
  }, {
163517
- PostgrestVersion: "14.17";
164653
+ PostgrestVersion: "14.5";
163518
164654
  }>;
163519
164655
  userId: string;
163520
164656
  claims: import("@supabase/auth-js").JwtPayload;
@@ -163712,9 +164848,7 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
163712
164848
  notes?: string | null;
163713
164849
  recurrence?: string | null;
163714
164850
  reminders?: import("../integrations/supabase/types").Json;
163715
- source_id
163716
- /** Alle nog niet goedgekeurde karren van vandaag, gefilterd op de Engine. */
163717
- ?: string | null;
164851
+ source_id?: string | null;
163718
164852
  source_module?: string;
163719
164853
  source_type?: string | null;
163720
164854
  start_at?: string;
@@ -163777,9 +164911,7 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
163777
164911
  default_calendar_id?: string;
163778
164912
  default_view?: string;
163779
164913
  settings?: import("../integrations/supabase/types").Json;
163780
- updated_at
163781
- /** Haal alle karren op die vandaag gepickt / klaargezet hadden moeten worden. */
163782
- ?: string;
164914
+ updated_at?: string;
163783
164915
  user_id: string;
163784
164916
  };
163785
164917
  Update: {
@@ -163789,7 +164921,9 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
163789
164921
  default_view?: string;
163790
164922
  settings?: import("../integrations/supabase/types").Json;
163791
164923
  updated_at?: string;
163792
- user_id?: string;
164924
+ user_id
164925
+ /** Haal alle karren op die vandaag gecontroleerd moeten worden (RPC is leidend). */
164926
+ ?: string;
163793
164927
  };
163794
164928
  Relationships: [];
163795
164929
  };
@@ -177211,6 +178345,9 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
177211
178345
  is_herprint: boolean;
177212
178346
  kopieen: number;
177213
178347
  layout_id: string | null;
178348
+ lokaal_opgeslagen_op: string | null;
178349
+ lokale_pdf_fout: string | null;
178350
+ lokale_pdf_status: string | null;
177214
178351
  opgepakt_op: string | null;
177215
178352
  paginas: number;
177216
178353
  payload: import("../integrations/supabase/types").Json;
@@ -177219,6 +178356,7 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
177219
178356
  pogingen: number;
177220
178357
  printer_id: string | null;
177221
178358
  render_html: string | null;
178359
+ resultaat_pdf_base64: string | null;
177222
178360
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
177223
178361
  updated_at: string;
177224
178362
  volgende_poging: string | null;
@@ -177243,6 +178381,9 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
177243
178381
  is_herprint?: boolean;
177244
178382
  kopieen?: number;
177245
178383
  layout_id?: string | null;
178384
+ lokaal_opgeslagen_op?: string | null;
178385
+ lokale_pdf_fout?: string | null;
178386
+ lokale_pdf_status?: string | null;
177246
178387
  opgepakt_op?: string | null;
177247
178388
  paginas?: number;
177248
178389
  payload?: import("../integrations/supabase/types").Json;
@@ -177251,6 +178392,7 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
177251
178392
  pogingen?: number;
177252
178393
  printer_id?: string | null;
177253
178394
  render_html?: string | null;
178395
+ resultaat_pdf_base64?: string | null;
177254
178396
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
177255
178397
  updated_at?: string;
177256
178398
  volgende_poging?: string | null;
@@ -177275,6 +178417,9 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
177275
178417
  is_herprint?: boolean;
177276
178418
  kopieen?: number;
177277
178419
  layout_id?: string | null;
178420
+ lokaal_opgeslagen_op?: string | null;
178421
+ lokale_pdf_fout?: string | null;
178422
+ lokale_pdf_status?: string | null;
177278
178423
  opgepakt_op?: string | null;
177279
178424
  paginas?: number;
177280
178425
  payload?: import("../integrations/supabase/types").Json;
@@ -177283,6 +178428,7 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
177283
178428
  pogingen?: number;
177284
178429
  printer_id?: string | null;
177285
178430
  render_html?: string | null;
178431
+ resultaat_pdf_base64?: string | null;
177286
178432
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
177287
178433
  updated_at?: string;
177288
178434
  volgende_poging?: string | null;
@@ -177673,6 +178819,7 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
177673
178819
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
177674
178820
  online: boolean;
177675
178821
  papierformaat: string;
178822
+ pdf_map: string | null;
177676
178823
  poort: number | null;
177677
178824
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
177678
178825
  systeemnaam: string;
@@ -177698,6 +178845,7 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
177698
178845
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
177699
178846
  online?: boolean;
177700
178847
  papierformaat?: string;
178848
+ pdf_map?: string | null;
177701
178849
  poort?: number | null;
177702
178850
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
177703
178851
  systeemnaam?: string;
@@ -177723,6 +178871,7 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
177723
178871
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
177724
178872
  online?: boolean;
177725
178873
  papierformaat?: string;
178874
+ pdf_map?: string | null;
177726
178875
  poort?: number | null;
177727
178876
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
177728
178877
  systeemnaam?: string;
@@ -183979,6 +185128,9 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
183979
185128
  is_herprint: boolean;
183980
185129
  kopieen: number;
183981
185130
  layout_id: string | null;
185131
+ lokaal_opgeslagen_op: string | null;
185132
+ lokale_pdf_fout: string | null;
185133
+ lokale_pdf_status: string | null;
183982
185134
  opgepakt_op: string | null;
183983
185135
  paginas: number;
183984
185136
  payload: import("../integrations/supabase/types").Json;
@@ -183987,6 +185139,7 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
183987
185139
  pogingen: number;
183988
185140
  printer_id: string | null;
183989
185141
  render_html: string | null;
185142
+ resultaat_pdf_base64: string | null;
183990
185143
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
183991
185144
  updated_at: string;
183992
185145
  volgende_poging: string | null;
@@ -184078,6 +185231,53 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
184078
185231
  isSetofReturn: true;
184079
185232
  };
184080
185233
  };
185234
+ claim_pdf_print_jobs: {
185235
+ Args: {
185236
+ _max?: number;
185237
+ };
185238
+ Returns: {
185239
+ agent_id: string | null;
185240
+ bron_job_id: string | null;
185241
+ created_at: string;
185242
+ documentnaam: string;
185243
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
185244
+ extern_job_id: string | null;
185245
+ foutmelding: string | null;
185246
+ gebruiker_id: string | null;
185247
+ gebruiker_naam: string;
185248
+ gebruikte_bron: string | null;
185249
+ gebruikte_layout_id: string | null;
185250
+ gestart_op: string | null;
185251
+ herkomst: string | null;
185252
+ id: string;
185253
+ idempotentie_sleutel: string | null;
185254
+ is_herprint: boolean;
185255
+ kopieen: number;
185256
+ layout_id: string | null;
185257
+ lokaal_opgeslagen_op: string | null;
185258
+ lokale_pdf_fout: string | null;
185259
+ lokale_pdf_status: string | null;
185260
+ opgepakt_op: string | null;
185261
+ paginas: number;
185262
+ payload: import("../integrations/supabase/types").Json;
185263
+ pdf_base64: string | null;
185264
+ pdf_url: string | null;
185265
+ pogingen: number;
185266
+ printer_id: string | null;
185267
+ render_html: string | null;
185268
+ resultaat_pdf_base64: string | null;
185269
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
185270
+ updated_at: string;
185271
+ volgende_poging: string | null;
185272
+ voltooid_op: string | null;
185273
+ }[];
185274
+ SetofOptions: {
185275
+ from: "*";
185276
+ to: "print_jobs";
185277
+ isOneToOne: false;
185278
+ isSetofReturn: true;
185279
+ };
185280
+ };
184081
185281
  claim_print_jobs: {
184082
185282
  Args: {
184083
185283
  _agent_id: string;
@@ -184102,6 +185302,9 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
184102
185302
  is_herprint: boolean;
184103
185303
  kopieen: number;
184104
185304
  layout_id: string | null;
185305
+ lokaal_opgeslagen_op: string | null;
185306
+ lokale_pdf_fout: string | null;
185307
+ lokale_pdf_status: string | null;
184105
185308
  opgepakt_op: string | null;
184106
185309
  paginas: number;
184107
185310
  payload: import("../integrations/supabase/types").Json;
@@ -184110,6 +185313,7 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
184110
185313
  pogingen: number;
184111
185314
  printer_id: string | null;
184112
185315
  render_html: string | null;
185316
+ resultaat_pdf_base64: string | null;
184113
185317
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
184114
185318
  updated_at: string;
184115
185319
  volgende_poging: string | null;
@@ -184250,6 +185454,8 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
184250
185454
  order_id: string;
184251
185455
  order_source: string;
184252
185456
  pick_date: string;
185457
+ printed_at: string;
185458
+ printed_today: boolean;
184253
185459
  status: string;
184254
185460
  }[];
184255
185461
  };
@@ -184958,6 +186164,10 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
184958
186164
  };
184959
186165
  Returns: number;
184960
186166
  };
186167
+ logistics_cancel_orphan_tasks: {
186168
+ Args: never;
186169
+ Returns: number;
186170
+ };
184961
186171
  logistics_capacity_day_check: {
184962
186172
  Args: {
184963
186173
  p_from?: string;
@@ -184978,6 +186188,25 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
184978
186188
  };
184979
186189
  Returns: number;
184980
186190
  };
186191
+ logistics_cart_index: {
186192
+ Args: {
186193
+ p_from?: string;
186194
+ p_to?: string;
186195
+ };
186196
+ Returns: {
186197
+ cart_id: string;
186198
+ cart_index: number;
186199
+ cart_label: string;
186200
+ is_shared: boolean;
186201
+ order_number: string;
186202
+ order_source: string;
186203
+ order_uuid: string;
186204
+ pick_date: string;
186205
+ printed_at: string;
186206
+ shifted: boolean;
186207
+ task_status: string;
186208
+ }[];
186209
+ };
184981
186210
  logistics_check_order_allowed: {
184982
186211
  Args: {
184983
186212
  p_lines: import("../integrations/supabase/types").Json;
@@ -185126,6 +186355,17 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
185126
186355
  isSetofReturn: false;
185127
186356
  };
185128
186357
  };
186358
+ logistics_consistency_check: {
186359
+ Args: never;
186360
+ Returns: {
186361
+ agenda_carts: number;
186362
+ control_carts: number;
186363
+ ok: boolean;
186364
+ orphan_tasks: number;
186365
+ pick_date: string;
186366
+ raw_carts: number;
186367
+ }[];
186368
+ };
185129
186369
  logistics_delay_customer_email: {
185130
186370
  Args: {
185131
186371
  p_customer: string;
@@ -185319,6 +186559,25 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
185319
186559
  };
185320
186560
  Returns: number;
185321
186561
  };
186562
+ logistics_order_overview: {
186563
+ Args: {
186564
+ p_from?: string;
186565
+ p_to?: string;
186566
+ };
186567
+ Returns: {
186568
+ cart_count: number;
186569
+ customer_name: string;
186570
+ delivery_date: string;
186571
+ order_number: string;
186572
+ order_source: string;
186573
+ order_uuid: string;
186574
+ pick_date: string;
186575
+ plant_count: number;
186576
+ printed_at: string;
186577
+ shifted: boolean;
186578
+ status: string;
186579
+ }[];
186580
+ };
185322
186581
  logistics_order_pick_day: {
185323
186582
  Args: {
185324
186583
  p_order_ref: string;
@@ -185331,6 +186590,22 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
185331
186590
  };
185332
186591
  Returns: string;
185333
186592
  };
186593
+ logistics_pick_agenda: {
186594
+ Args: {
186595
+ p_from?: string;
186596
+ p_to?: string;
186597
+ };
186598
+ Returns: {
186599
+ cart_count: number;
186600
+ in_preparation: number;
186601
+ order_count: number;
186602
+ orders: import("../integrations/supabase/types").Json;
186603
+ pick_date: string;
186604
+ plant_count: number;
186605
+ ready: number;
186606
+ shifted_count: number;
186607
+ }[];
186608
+ };
185334
186609
  logistics_pick_email_purpose: {
185335
186610
  Args: never;
185336
186611
  Returns: string;
@@ -185490,6 +186765,15 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
185490
186765
  };
185491
186766
  Returns: import("../integrations/supabase/types").Json;
185492
186767
  };
186768
+ logistics_resolve_pick_document: {
186769
+ Args: {
186770
+ _is_herprint: boolean;
186771
+ _queue_item_id: string;
186772
+ _session_id: string;
186773
+ _voorbeeld: boolean;
186774
+ };
186775
+ Returns: import("../integrations/supabase/types").Json;
186776
+ };
185493
186777
  logistics_resolve_settings: {
185494
186778
  Args: {
185495
186779
  p_config_id: string;
@@ -185944,6 +187228,13 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
185944
187228
  };
185945
187229
  Returns: import("../integrations/supabase/types").Json;
185946
187230
  };
187231
+ pick_preview_job: {
187232
+ Args: {
187233
+ _queue_item_id: string;
187234
+ _station_slug: string;
187235
+ };
187236
+ Returns: import("../integrations/supabase/types").Json;
187237
+ };
185947
187238
  pick_print_job_status: {
185948
187239
  Args: {
185949
187240
  _job_id: string;
@@ -186293,6 +187584,12 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
186293
187584
  };
186294
187585
  Returns: string;
186295
187586
  };
187587
+ resolve_print_job_printer_id: {
187588
+ Args: {
187589
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
187590
+ };
187591
+ Returns: string;
187592
+ };
186296
187593
  resolve_product_id_for_item: {
186297
187594
  Args: {
186298
187595
  p_product_name: string;
@@ -186884,7 +188181,7 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
186884
188181
  };
186885
188182
  CompositeTypes: { [_ in never]: never; };
186886
188183
  }, {
186887
- PostgrestVersion: "14.17";
188184
+ PostgrestVersion: "14.5";
186888
188185
  }>;
186889
188186
  userId: string;
186890
188187
  claims: import("@supabase/auth-js").JwtPayload;
@@ -187055,9 +188352,7 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
187055
188352
  notes?: string | null;
187056
188353
  recurrence?: string | null;
187057
188354
  reminders?: import("../integrations/supabase/types").Json;
187058
- source_id
187059
- /** Alle nog niet goedgekeurde karren van vandaag, gefilterd op de Engine. */
187060
- ?: string | null;
188355
+ source_id?: string | null;
187061
188356
  source_module?: string;
187062
188357
  source_type?: string | null;
187063
188358
  start_at?: string;
@@ -187120,9 +188415,7 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
187120
188415
  default_calendar_id?: string;
187121
188416
  default_view?: string;
187122
188417
  settings?: import("../integrations/supabase/types").Json;
187123
- updated_at
187124
- /** Haal alle karren op die vandaag gepickt / klaargezet hadden moeten worden. */
187125
- ?: string;
188418
+ updated_at?: string;
187126
188419
  user_id: string;
187127
188420
  };
187128
188421
  Update: {
@@ -187132,7 +188425,9 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
187132
188425
  default_view?: string;
187133
188426
  settings?: import("../integrations/supabase/types").Json;
187134
188427
  updated_at?: string;
187135
- user_id?: string;
188428
+ user_id
188429
+ /** Haal alle karren op die vandaag gecontroleerd moeten worden (RPC is leidend). */
188430
+ ?: string;
187136
188431
  };
187137
188432
  Relationships: [];
187138
188433
  };
@@ -200554,6 +201849,9 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
200554
201849
  is_herprint: boolean;
200555
201850
  kopieen: number;
200556
201851
  layout_id: string | null;
201852
+ lokaal_opgeslagen_op: string | null;
201853
+ lokale_pdf_fout: string | null;
201854
+ lokale_pdf_status: string | null;
200557
201855
  opgepakt_op: string | null;
200558
201856
  paginas: number;
200559
201857
  payload: import("../integrations/supabase/types").Json;
@@ -200562,6 +201860,7 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
200562
201860
  pogingen: number;
200563
201861
  printer_id: string | null;
200564
201862
  render_html: string | null;
201863
+ resultaat_pdf_base64: string | null;
200565
201864
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
200566
201865
  updated_at: string;
200567
201866
  volgende_poging: string | null;
@@ -200586,6 +201885,9 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
200586
201885
  is_herprint?: boolean;
200587
201886
  kopieen?: number;
200588
201887
  layout_id?: string | null;
201888
+ lokaal_opgeslagen_op?: string | null;
201889
+ lokale_pdf_fout?: string | null;
201890
+ lokale_pdf_status?: string | null;
200589
201891
  opgepakt_op?: string | null;
200590
201892
  paginas?: number;
200591
201893
  payload?: import("../integrations/supabase/types").Json;
@@ -200594,6 +201896,7 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
200594
201896
  pogingen?: number;
200595
201897
  printer_id?: string | null;
200596
201898
  render_html?: string | null;
201899
+ resultaat_pdf_base64?: string | null;
200597
201900
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
200598
201901
  updated_at?: string;
200599
201902
  volgende_poging?: string | null;
@@ -200618,6 +201921,9 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
200618
201921
  is_herprint?: boolean;
200619
201922
  kopieen?: number;
200620
201923
  layout_id?: string | null;
201924
+ lokaal_opgeslagen_op?: string | null;
201925
+ lokale_pdf_fout?: string | null;
201926
+ lokale_pdf_status?: string | null;
200621
201927
  opgepakt_op?: string | null;
200622
201928
  paginas?: number;
200623
201929
  payload?: import("../integrations/supabase/types").Json;
@@ -200626,6 +201932,7 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
200626
201932
  pogingen?: number;
200627
201933
  printer_id?: string | null;
200628
201934
  render_html?: string | null;
201935
+ resultaat_pdf_base64?: string | null;
200629
201936
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
200630
201937
  updated_at?: string;
200631
201938
  volgende_poging?: string | null;
@@ -201016,6 +202323,7 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
201016
202323
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
201017
202324
  online: boolean;
201018
202325
  papierformaat: string;
202326
+ pdf_map: string | null;
201019
202327
  poort: number | null;
201020
202328
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
201021
202329
  systeemnaam: string;
@@ -201041,6 +202349,7 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
201041
202349
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
201042
202350
  online?: boolean;
201043
202351
  papierformaat?: string;
202352
+ pdf_map?: string | null;
201044
202353
  poort?: number | null;
201045
202354
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
201046
202355
  systeemnaam?: string;
@@ -201066,6 +202375,7 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
201066
202375
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
201067
202376
  online?: boolean;
201068
202377
  papierformaat?: string;
202378
+ pdf_map?: string | null;
201069
202379
  poort?: number | null;
201070
202380
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
201071
202381
  systeemnaam?: string;
@@ -207322,6 +208632,9 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
207322
208632
  is_herprint: boolean;
207323
208633
  kopieen: number;
207324
208634
  layout_id: string | null;
208635
+ lokaal_opgeslagen_op: string | null;
208636
+ lokale_pdf_fout: string | null;
208637
+ lokale_pdf_status: string | null;
207325
208638
  opgepakt_op: string | null;
207326
208639
  paginas: number;
207327
208640
  payload: import("../integrations/supabase/types").Json;
@@ -207330,6 +208643,7 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
207330
208643
  pogingen: number;
207331
208644
  printer_id: string | null;
207332
208645
  render_html: string | null;
208646
+ resultaat_pdf_base64: string | null;
207333
208647
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
207334
208648
  updated_at: string;
207335
208649
  volgende_poging: string | null;
@@ -207421,6 +208735,53 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
207421
208735
  isSetofReturn: true;
207422
208736
  };
207423
208737
  };
208738
+ claim_pdf_print_jobs: {
208739
+ Args: {
208740
+ _max?: number;
208741
+ };
208742
+ Returns: {
208743
+ agent_id: string | null;
208744
+ bron_job_id: string | null;
208745
+ created_at: string;
208746
+ documentnaam: string;
208747
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
208748
+ extern_job_id: string | null;
208749
+ foutmelding: string | null;
208750
+ gebruiker_id: string | null;
208751
+ gebruiker_naam: string;
208752
+ gebruikte_bron: string | null;
208753
+ gebruikte_layout_id: string | null;
208754
+ gestart_op: string | null;
208755
+ herkomst: string | null;
208756
+ id: string;
208757
+ idempotentie_sleutel: string | null;
208758
+ is_herprint: boolean;
208759
+ kopieen: number;
208760
+ layout_id: string | null;
208761
+ lokaal_opgeslagen_op: string | null;
208762
+ lokale_pdf_fout: string | null;
208763
+ lokale_pdf_status: string | null;
208764
+ opgepakt_op: string | null;
208765
+ paginas: number;
208766
+ payload: import("../integrations/supabase/types").Json;
208767
+ pdf_base64: string | null;
208768
+ pdf_url: string | null;
208769
+ pogingen: number;
208770
+ printer_id: string | null;
208771
+ render_html: string | null;
208772
+ resultaat_pdf_base64: string | null;
208773
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
208774
+ updated_at: string;
208775
+ volgende_poging: string | null;
208776
+ voltooid_op: string | null;
208777
+ }[];
208778
+ SetofOptions: {
208779
+ from: "*";
208780
+ to: "print_jobs";
208781
+ isOneToOne: false;
208782
+ isSetofReturn: true;
208783
+ };
208784
+ };
207424
208785
  claim_print_jobs: {
207425
208786
  Args: {
207426
208787
  _agent_id: string;
@@ -207445,6 +208806,9 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
207445
208806
  is_herprint: boolean;
207446
208807
  kopieen: number;
207447
208808
  layout_id: string | null;
208809
+ lokaal_opgeslagen_op: string | null;
208810
+ lokale_pdf_fout: string | null;
208811
+ lokale_pdf_status: string | null;
207448
208812
  opgepakt_op: string | null;
207449
208813
  paginas: number;
207450
208814
  payload: import("../integrations/supabase/types").Json;
@@ -207453,6 +208817,7 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
207453
208817
  pogingen: number;
207454
208818
  printer_id: string | null;
207455
208819
  render_html: string | null;
208820
+ resultaat_pdf_base64: string | null;
207456
208821
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
207457
208822
  updated_at: string;
207458
208823
  volgende_poging: string | null;
@@ -207593,6 +208958,8 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
207593
208958
  order_id: string;
207594
208959
  order_source: string;
207595
208960
  pick_date: string;
208961
+ printed_at: string;
208962
+ printed_today: boolean;
207596
208963
  status: string;
207597
208964
  }[];
207598
208965
  };
@@ -208301,6 +209668,10 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
208301
209668
  };
208302
209669
  Returns: number;
208303
209670
  };
209671
+ logistics_cancel_orphan_tasks: {
209672
+ Args: never;
209673
+ Returns: number;
209674
+ };
208304
209675
  logistics_capacity_day_check: {
208305
209676
  Args: {
208306
209677
  p_from?: string;
@@ -208321,6 +209692,25 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
208321
209692
  };
208322
209693
  Returns: number;
208323
209694
  };
209695
+ logistics_cart_index: {
209696
+ Args: {
209697
+ p_from?: string;
209698
+ p_to?: string;
209699
+ };
209700
+ Returns: {
209701
+ cart_id: string;
209702
+ cart_index: number;
209703
+ cart_label: string;
209704
+ is_shared: boolean;
209705
+ order_number: string;
209706
+ order_source: string;
209707
+ order_uuid: string;
209708
+ pick_date: string;
209709
+ printed_at: string;
209710
+ shifted: boolean;
209711
+ task_status: string;
209712
+ }[];
209713
+ };
208324
209714
  logistics_check_order_allowed: {
208325
209715
  Args: {
208326
209716
  p_lines: import("../integrations/supabase/types").Json;
@@ -208469,6 +209859,17 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
208469
209859
  isSetofReturn: false;
208470
209860
  };
208471
209861
  };
209862
+ logistics_consistency_check: {
209863
+ Args: never;
209864
+ Returns: {
209865
+ agenda_carts: number;
209866
+ control_carts: number;
209867
+ ok: boolean;
209868
+ orphan_tasks: number;
209869
+ pick_date: string;
209870
+ raw_carts: number;
209871
+ }[];
209872
+ };
208472
209873
  logistics_delay_customer_email: {
208473
209874
  Args: {
208474
209875
  p_customer: string;
@@ -208662,6 +210063,25 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
208662
210063
  };
208663
210064
  Returns: number;
208664
210065
  };
210066
+ logistics_order_overview: {
210067
+ Args: {
210068
+ p_from?: string;
210069
+ p_to?: string;
210070
+ };
210071
+ Returns: {
210072
+ cart_count: number;
210073
+ customer_name: string;
210074
+ delivery_date: string;
210075
+ order_number: string;
210076
+ order_source: string;
210077
+ order_uuid: string;
210078
+ pick_date: string;
210079
+ plant_count: number;
210080
+ printed_at: string;
210081
+ shifted: boolean;
210082
+ status: string;
210083
+ }[];
210084
+ };
208665
210085
  logistics_order_pick_day: {
208666
210086
  Args: {
208667
210087
  p_order_ref: string;
@@ -208674,6 +210094,22 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
208674
210094
  };
208675
210095
  Returns: string;
208676
210096
  };
210097
+ logistics_pick_agenda: {
210098
+ Args: {
210099
+ p_from?: string;
210100
+ p_to?: string;
210101
+ };
210102
+ Returns: {
210103
+ cart_count: number;
210104
+ in_preparation: number;
210105
+ order_count: number;
210106
+ orders: import("../integrations/supabase/types").Json;
210107
+ pick_date: string;
210108
+ plant_count: number;
210109
+ ready: number;
210110
+ shifted_count: number;
210111
+ }[];
210112
+ };
208677
210113
  logistics_pick_email_purpose: {
208678
210114
  Args: never;
208679
210115
  Returns: string;
@@ -208833,6 +210269,15 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
208833
210269
  };
208834
210270
  Returns: import("../integrations/supabase/types").Json;
208835
210271
  };
210272
+ logistics_resolve_pick_document: {
210273
+ Args: {
210274
+ _is_herprint: boolean;
210275
+ _queue_item_id: string;
210276
+ _session_id: string;
210277
+ _voorbeeld: boolean;
210278
+ };
210279
+ Returns: import("../integrations/supabase/types").Json;
210280
+ };
208836
210281
  logistics_resolve_settings: {
208837
210282
  Args: {
208838
210283
  p_config_id: string;
@@ -209287,6 +210732,13 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
209287
210732
  };
209288
210733
  Returns: import("../integrations/supabase/types").Json;
209289
210734
  };
210735
+ pick_preview_job: {
210736
+ Args: {
210737
+ _queue_item_id: string;
210738
+ _station_slug: string;
210739
+ };
210740
+ Returns: import("../integrations/supabase/types").Json;
210741
+ };
209290
210742
  pick_print_job_status: {
209291
210743
  Args: {
209292
210744
  _job_id: string;
@@ -209636,6 +211088,12 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
209636
211088
  };
209637
211089
  Returns: string;
209638
211090
  };
211091
+ resolve_print_job_printer_id: {
211092
+ Args: {
211093
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
211094
+ };
211095
+ Returns: string;
211096
+ };
209639
211097
  resolve_product_id_for_item: {
209640
211098
  Args: {
209641
211099
  p_product_name: string;
@@ -210227,7 +211685,7 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
210227
211685
  };
210228
211686
  CompositeTypes: { [_ in never]: never; };
210229
211687
  }, {
210230
- PostgrestVersion: "14.17";
211688
+ PostgrestVersion: "14.5";
210231
211689
  }>;
210232
211690
  userId: string;
210233
211691
  claims: import("@supabase/auth-js").JwtPayload;
@@ -210401,9 +211859,7 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
210401
211859
  notes?: string | null;
210402
211860
  recurrence?: string | null;
210403
211861
  reminders?: import("../integrations/supabase/types").Json;
210404
- source_id
210405
- /** Alle nog niet goedgekeurde karren van vandaag, gefilterd op de Engine. */
210406
- ?: string | null;
211862
+ source_id?: string | null;
210407
211863
  source_module?: string;
210408
211864
  source_type?: string | null;
210409
211865
  start_at?: string;
@@ -210466,9 +211922,7 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
210466
211922
  default_calendar_id?: string;
210467
211923
  default_view?: string;
210468
211924
  settings?: import("../integrations/supabase/types").Json;
210469
- updated_at
210470
- /** Haal alle karren op die vandaag gepickt / klaargezet hadden moeten worden. */
210471
- ?: string;
211925
+ updated_at?: string;
210472
211926
  user_id: string;
210473
211927
  };
210474
211928
  Update: {
@@ -210478,7 +211932,9 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
210478
211932
  default_view?: string;
210479
211933
  settings?: import("../integrations/supabase/types").Json;
210480
211934
  updated_at?: string;
210481
- user_id?: string;
211935
+ user_id
211936
+ /** Haal alle karren op die vandaag gecontroleerd moeten worden (RPC is leidend). */
211937
+ ?: string;
210482
211938
  };
210483
211939
  Relationships: [];
210484
211940
  };
@@ -223900,6 +225356,9 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
223900
225356
  is_herprint: boolean;
223901
225357
  kopieen: number;
223902
225358
  layout_id: string | null;
225359
+ lokaal_opgeslagen_op: string | null;
225360
+ lokale_pdf_fout: string | null;
225361
+ lokale_pdf_status: string | null;
223903
225362
  opgepakt_op: string | null;
223904
225363
  paginas: number;
223905
225364
  payload: import("../integrations/supabase/types").Json;
@@ -223908,6 +225367,7 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
223908
225367
  pogingen: number;
223909
225368
  printer_id: string | null;
223910
225369
  render_html: string | null;
225370
+ resultaat_pdf_base64: string | null;
223911
225371
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
223912
225372
  updated_at: string;
223913
225373
  volgende_poging: string | null;
@@ -223932,6 +225392,9 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
223932
225392
  is_herprint?: boolean;
223933
225393
  kopieen?: number;
223934
225394
  layout_id?: string | null;
225395
+ lokaal_opgeslagen_op?: string | null;
225396
+ lokale_pdf_fout?: string | null;
225397
+ lokale_pdf_status?: string | null;
223935
225398
  opgepakt_op?: string | null;
223936
225399
  paginas?: number;
223937
225400
  payload?: import("../integrations/supabase/types").Json;
@@ -223940,6 +225403,7 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
223940
225403
  pogingen?: number;
223941
225404
  printer_id?: string | null;
223942
225405
  render_html?: string | null;
225406
+ resultaat_pdf_base64?: string | null;
223943
225407
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
223944
225408
  updated_at?: string;
223945
225409
  volgende_poging?: string | null;
@@ -223964,6 +225428,9 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
223964
225428
  is_herprint?: boolean;
223965
225429
  kopieen?: number;
223966
225430
  layout_id?: string | null;
225431
+ lokaal_opgeslagen_op?: string | null;
225432
+ lokale_pdf_fout?: string | null;
225433
+ lokale_pdf_status?: string | null;
223967
225434
  opgepakt_op?: string | null;
223968
225435
  paginas?: number;
223969
225436
  payload?: import("../integrations/supabase/types").Json;
@@ -223972,6 +225439,7 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
223972
225439
  pogingen?: number;
223973
225440
  printer_id?: string | null;
223974
225441
  render_html?: string | null;
225442
+ resultaat_pdf_base64?: string | null;
223975
225443
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
223976
225444
  updated_at?: string;
223977
225445
  volgende_poging?: string | null;
@@ -224362,6 +225830,7 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
224362
225830
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
224363
225831
  online: boolean;
224364
225832
  papierformaat: string;
225833
+ pdf_map: string | null;
224365
225834
  poort: number | null;
224366
225835
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
224367
225836
  systeemnaam: string;
@@ -224387,6 +225856,7 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
224387
225856
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
224388
225857
  online?: boolean;
224389
225858
  papierformaat?: string;
225859
+ pdf_map?: string | null;
224390
225860
  poort?: number | null;
224391
225861
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
224392
225862
  systeemnaam?: string;
@@ -224412,6 +225882,7 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
224412
225882
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
224413
225883
  online?: boolean;
224414
225884
  papierformaat?: string;
225885
+ pdf_map?: string | null;
224415
225886
  poort?: number | null;
224416
225887
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
224417
225888
  systeemnaam?: string;
@@ -230668,6 +232139,9 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
230668
232139
  is_herprint: boolean;
230669
232140
  kopieen: number;
230670
232141
  layout_id: string | null;
232142
+ lokaal_opgeslagen_op: string | null;
232143
+ lokale_pdf_fout: string | null;
232144
+ lokale_pdf_status: string | null;
230671
232145
  opgepakt_op: string | null;
230672
232146
  paginas: number;
230673
232147
  payload: import("../integrations/supabase/types").Json;
@@ -230676,6 +232150,7 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
230676
232150
  pogingen: number;
230677
232151
  printer_id: string | null;
230678
232152
  render_html: string | null;
232153
+ resultaat_pdf_base64: string | null;
230679
232154
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
230680
232155
  updated_at: string;
230681
232156
  volgende_poging: string | null;
@@ -230767,6 +232242,53 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
230767
232242
  isSetofReturn: true;
230768
232243
  };
230769
232244
  };
232245
+ claim_pdf_print_jobs: {
232246
+ Args: {
232247
+ _max?: number;
232248
+ };
232249
+ Returns: {
232250
+ agent_id: string | null;
232251
+ bron_job_id: string | null;
232252
+ created_at: string;
232253
+ documentnaam: string;
232254
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
232255
+ extern_job_id: string | null;
232256
+ foutmelding: string | null;
232257
+ gebruiker_id: string | null;
232258
+ gebruiker_naam: string;
232259
+ gebruikte_bron: string | null;
232260
+ gebruikte_layout_id: string | null;
232261
+ gestart_op: string | null;
232262
+ herkomst: string | null;
232263
+ id: string;
232264
+ idempotentie_sleutel: string | null;
232265
+ is_herprint: boolean;
232266
+ kopieen: number;
232267
+ layout_id: string | null;
232268
+ lokaal_opgeslagen_op: string | null;
232269
+ lokale_pdf_fout: string | null;
232270
+ lokale_pdf_status: string | null;
232271
+ opgepakt_op: string | null;
232272
+ paginas: number;
232273
+ payload: import("../integrations/supabase/types").Json;
232274
+ pdf_base64: string | null;
232275
+ pdf_url: string | null;
232276
+ pogingen: number;
232277
+ printer_id: string | null;
232278
+ render_html: string | null;
232279
+ resultaat_pdf_base64: string | null;
232280
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
232281
+ updated_at: string;
232282
+ volgende_poging: string | null;
232283
+ voltooid_op: string | null;
232284
+ }[];
232285
+ SetofOptions: {
232286
+ from: "*";
232287
+ to: "print_jobs";
232288
+ isOneToOne: false;
232289
+ isSetofReturn: true;
232290
+ };
232291
+ };
230770
232292
  claim_print_jobs: {
230771
232293
  Args: {
230772
232294
  _agent_id: string;
@@ -230791,6 +232313,9 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
230791
232313
  is_herprint: boolean;
230792
232314
  kopieen: number;
230793
232315
  layout_id: string | null;
232316
+ lokaal_opgeslagen_op: string | null;
232317
+ lokale_pdf_fout: string | null;
232318
+ lokale_pdf_status: string | null;
230794
232319
  opgepakt_op: string | null;
230795
232320
  paginas: number;
230796
232321
  payload: import("../integrations/supabase/types").Json;
@@ -230799,6 +232324,7 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
230799
232324
  pogingen: number;
230800
232325
  printer_id: string | null;
230801
232326
  render_html: string | null;
232327
+ resultaat_pdf_base64: string | null;
230802
232328
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
230803
232329
  updated_at: string;
230804
232330
  volgende_poging: string | null;
@@ -230939,6 +232465,8 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
230939
232465
  order_id: string;
230940
232466
  order_source: string;
230941
232467
  pick_date: string;
232468
+ printed_at: string;
232469
+ printed_today: boolean;
230942
232470
  status: string;
230943
232471
  }[];
230944
232472
  };
@@ -231647,6 +233175,10 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
231647
233175
  };
231648
233176
  Returns: number;
231649
233177
  };
233178
+ logistics_cancel_orphan_tasks: {
233179
+ Args: never;
233180
+ Returns: number;
233181
+ };
231650
233182
  logistics_capacity_day_check: {
231651
233183
  Args: {
231652
233184
  p_from?: string;
@@ -231667,6 +233199,25 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
231667
233199
  };
231668
233200
  Returns: number;
231669
233201
  };
233202
+ logistics_cart_index: {
233203
+ Args: {
233204
+ p_from?: string;
233205
+ p_to?: string;
233206
+ };
233207
+ Returns: {
233208
+ cart_id: string;
233209
+ cart_index: number;
233210
+ cart_label: string;
233211
+ is_shared: boolean;
233212
+ order_number: string;
233213
+ order_source: string;
233214
+ order_uuid: string;
233215
+ pick_date: string;
233216
+ printed_at: string;
233217
+ shifted: boolean;
233218
+ task_status: string;
233219
+ }[];
233220
+ };
231670
233221
  logistics_check_order_allowed: {
231671
233222
  Args: {
231672
233223
  p_lines: import("../integrations/supabase/types").Json;
@@ -231815,6 +233366,17 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
231815
233366
  isSetofReturn: false;
231816
233367
  };
231817
233368
  };
233369
+ logistics_consistency_check: {
233370
+ Args: never;
233371
+ Returns: {
233372
+ agenda_carts: number;
233373
+ control_carts: number;
233374
+ ok: boolean;
233375
+ orphan_tasks: number;
233376
+ pick_date: string;
233377
+ raw_carts: number;
233378
+ }[];
233379
+ };
231818
233380
  logistics_delay_customer_email: {
231819
233381
  Args: {
231820
233382
  p_customer: string;
@@ -232008,6 +233570,25 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
232008
233570
  };
232009
233571
  Returns: number;
232010
233572
  };
233573
+ logistics_order_overview: {
233574
+ Args: {
233575
+ p_from?: string;
233576
+ p_to?: string;
233577
+ };
233578
+ Returns: {
233579
+ cart_count: number;
233580
+ customer_name: string;
233581
+ delivery_date: string;
233582
+ order_number: string;
233583
+ order_source: string;
233584
+ order_uuid: string;
233585
+ pick_date: string;
233586
+ plant_count: number;
233587
+ printed_at: string;
233588
+ shifted: boolean;
233589
+ status: string;
233590
+ }[];
233591
+ };
232011
233592
  logistics_order_pick_day: {
232012
233593
  Args: {
232013
233594
  p_order_ref: string;
@@ -232020,6 +233601,22 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
232020
233601
  };
232021
233602
  Returns: string;
232022
233603
  };
233604
+ logistics_pick_agenda: {
233605
+ Args: {
233606
+ p_from?: string;
233607
+ p_to?: string;
233608
+ };
233609
+ Returns: {
233610
+ cart_count: number;
233611
+ in_preparation: number;
233612
+ order_count: number;
233613
+ orders: import("../integrations/supabase/types").Json;
233614
+ pick_date: string;
233615
+ plant_count: number;
233616
+ ready: number;
233617
+ shifted_count: number;
233618
+ }[];
233619
+ };
232023
233620
  logistics_pick_email_purpose: {
232024
233621
  Args: never;
232025
233622
  Returns: string;
@@ -232179,6 +233776,15 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
232179
233776
  };
232180
233777
  Returns: import("../integrations/supabase/types").Json;
232181
233778
  };
233779
+ logistics_resolve_pick_document: {
233780
+ Args: {
233781
+ _is_herprint: boolean;
233782
+ _queue_item_id: string;
233783
+ _session_id: string;
233784
+ _voorbeeld: boolean;
233785
+ };
233786
+ Returns: import("../integrations/supabase/types").Json;
233787
+ };
232182
233788
  logistics_resolve_settings: {
232183
233789
  Args: {
232184
233790
  p_config_id: string;
@@ -232633,6 +234239,13 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
232633
234239
  };
232634
234240
  Returns: import("../integrations/supabase/types").Json;
232635
234241
  };
234242
+ pick_preview_job: {
234243
+ Args: {
234244
+ _queue_item_id: string;
234245
+ _station_slug: string;
234246
+ };
234247
+ Returns: import("../integrations/supabase/types").Json;
234248
+ };
232636
234249
  pick_print_job_status: {
232637
234250
  Args: {
232638
234251
  _job_id: string;
@@ -232982,6 +234595,12 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
232982
234595
  };
232983
234596
  Returns: string;
232984
234597
  };
234598
+ resolve_print_job_printer_id: {
234599
+ Args: {
234600
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
234601
+ };
234602
+ Returns: string;
234603
+ };
232985
234604
  resolve_product_id_for_item: {
232986
234605
  Args: {
232987
234606
  p_product_name: string;
@@ -233573,7 +235192,7 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
233573
235192
  };
233574
235193
  CompositeTypes: { [_ in never]: never; };
233575
235194
  }, {
233576
- PostgrestVersion: "14.17";
235195
+ PostgrestVersion: "14.5";
233577
235196
  }>;
233578
235197
  userId: string;
233579
235198
  claims: import("@supabase/auth-js").JwtPayload;