@flowselections/floriday-afhandeling-module 1.0.39 → 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 +527 -1
  21. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  22. package/dist-lib/integrations/supabase/client.server.d.ts +527 -1
  23. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  24. package/dist-lib/integrations/supabase/moduleClient.d.ts +527 -1
  25. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  26. package/dist-lib/integrations/supabase/types.d.ts +530 -1
  27. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  28. package/dist-lib/lib/afhandelingSettings.functions.d.ts +1056 -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 +2635 -5
  32. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/cartAssignments.functions.d.ts +2635 -5
  34. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/cartControl.functions.d.ts +5330 -81
  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 +528 -2
  39. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  40. package/package.json +1 -1
@@ -51,7 +51,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
51
51
  created_at?: string;
52
52
  extra_pick_days_with_stickers?: number;
53
53
  id?: string;
54
- max_workdays_earlier_pick? /** Print de afleverbrief automatisch zodra hij beschikbaar is in de cache. */: number;
54
+ max_workdays_earlier_pick?: number;
55
55
  pick_days_before_transport?: number;
56
56
  pick_distribution_enabled?: boolean;
57
57
  pick_weekdays?: number[];
@@ -10716,6 +10716,243 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10716
10716
  };
10717
10717
  Relationships: [];
10718
10718
  };
10719
+ maps_addresses: {
10720
+ Row: {
10721
+ address_hash: string;
10722
+ created_at: string;
10723
+ error_reason: string | null;
10724
+ formatted_address: string | null;
10725
+ id: string;
10726
+ lat: number | null;
10727
+ lng: number | null;
10728
+ place_id: string | null;
10729
+ raw_address: string;
10730
+ resolved_at: string | null;
10731
+ status: string;
10732
+ updated_at: string;
10733
+ };
10734
+ Insert: {
10735
+ address_hash: string;
10736
+ created_at?: string;
10737
+ error_reason?: string | null;
10738
+ formatted_address?: string | null;
10739
+ id?: string;
10740
+ lat?: number | null;
10741
+ lng?: number | null;
10742
+ place_id?: string | null;
10743
+ raw_address: string;
10744
+ resolved_at?: string | null;
10745
+ status?: string;
10746
+ updated_at?: string;
10747
+ };
10748
+ Update: {
10749
+ address_hash?: string;
10750
+ created_at?: string;
10751
+ error_reason?: string | null;
10752
+ formatted_address?: string | null;
10753
+ id?: string;
10754
+ lat?: number | null;
10755
+ lng?: number | null;
10756
+ place_id?: string | null;
10757
+ raw_address?: string;
10758
+ resolved_at?: string | null;
10759
+ status?: string;
10760
+ updated_at?: string;
10761
+ };
10762
+ Relationships: [];
10763
+ };
10764
+ maps_job_lease: {
10765
+ Row: {
10766
+ job: string;
10767
+ locked_until: string;
10768
+ updated_at: string;
10769
+ };
10770
+ Insert: {
10771
+ job: string;
10772
+ locked_until?: string;
10773
+ updated_at?: string;
10774
+ };
10775
+ Update: {
10776
+ job?: string;
10777
+ locked_until?: string;
10778
+ updated_at?: string;
10779
+ };
10780
+ Relationships: [];
10781
+ };
10782
+ maps_request_queue: {
10783
+ Row: {
10784
+ attempts: number;
10785
+ created_at: string;
10786
+ destination_hash: string | null;
10787
+ id: string;
10788
+ kind: string;
10789
+ last_error: string | null;
10790
+ mode: string;
10791
+ origin_hash: string | null;
10792
+ processed_at: string | null;
10793
+ raw_destination: string | null;
10794
+ raw_origin: string | null;
10795
+ requested_by: string | null;
10796
+ status: string;
10797
+ updated_at: string;
10798
+ };
10799
+ Insert: {
10800
+ attempts?: number;
10801
+ created_at?: string;
10802
+ destination_hash?: string | null;
10803
+ id?: string;
10804
+ kind: string;
10805
+ last_error?: string | null;
10806
+ mode?: string;
10807
+ origin_hash?: string | null;
10808
+ processed_at?: string | null;
10809
+ raw_destination?: string | null;
10810
+ raw_origin?: string | null;
10811
+ requested_by?: string | null;
10812
+ status?: string;
10813
+ updated_at?: string;
10814
+ };
10815
+ Update: {
10816
+ attempts?: number;
10817
+ created_at?: string;
10818
+ destination_hash?: string | null;
10819
+ id?: string;
10820
+ kind?: string;
10821
+ last_error?: string | null;
10822
+ mode?: string;
10823
+ origin_hash?: string | null;
10824
+ processed_at?: string | null;
10825
+ raw_destination?: string | null;
10826
+ raw_origin?: string | null;
10827
+ requested_by?: string | null;
10828
+ status?: string;
10829
+ updated_at?: string;
10830
+ };
10831
+ Relationships: [];
10832
+ };
10833
+ maps_settings: {
10834
+ Row: {
10835
+ allow_estimate_fallback: boolean;
10836
+ cache_ttl_days: number;
10837
+ created_at: string;
10838
+ daily_call_limit: number;
10839
+ id: string;
10840
+ last_error: string | null;
10841
+ last_error_at: string | null;
10842
+ last_success_at: string | null;
10843
+ provider: string;
10844
+ updated_at: string;
10845
+ };
10846
+ Insert: {
10847
+ allow_estimate_fallback?: boolean;
10848
+ cache_ttl_days?: number;
10849
+ created_at?: string;
10850
+ daily_call_limit?: number;
10851
+ id?: string;
10852
+ last_error?: string | null;
10853
+ last_error_at?: string | null;
10854
+ last_success_at?: string | null;
10855
+ provider?: string;
10856
+ updated_at?: string;
10857
+ };
10858
+ Update: {
10859
+ allow_estimate_fallback?: boolean;
10860
+ cache_ttl_days?: number;
10861
+ created_at?: string;
10862
+ daily_call_limit?: number;
10863
+ id?: string;
10864
+ last_error?: string | null;
10865
+ last_error_at?: string | null;
10866
+ last_success_at?: string | null;
10867
+ provider?: string;
10868
+ updated_at?: string;
10869
+ };
10870
+ Relationships: [];
10871
+ };
10872
+ maps_travel_times: {
10873
+ Row: {
10874
+ created_at: string;
10875
+ destination_id: string;
10876
+ distance_m: number | null;
10877
+ duration_sec: number;
10878
+ expires_at: string;
10879
+ id: string;
10880
+ mode: string;
10881
+ origin_id: string;
10882
+ source: string;
10883
+ updated_at: string;
10884
+ };
10885
+ Insert: {
10886
+ created_at?: string;
10887
+ destination_id: string;
10888
+ distance_m?: number | null;
10889
+ duration_sec: number;
10890
+ expires_at?: string;
10891
+ id?: string;
10892
+ mode?: string;
10893
+ origin_id: string;
10894
+ source?: string;
10895
+ updated_at?: string;
10896
+ };
10897
+ Update: {
10898
+ created_at?: string;
10899
+ destination_id?: string;
10900
+ distance_m?: number | null;
10901
+ duration_sec?: number;
10902
+ expires_at?: string;
10903
+ id?: string;
10904
+ mode?: string;
10905
+ origin_id?: string;
10906
+ source?: string;
10907
+ updated_at?: string;
10908
+ };
10909
+ Relationships: [{
10910
+ foreignKeyName: "maps_travel_times_destination_id_fkey";
10911
+ columns: ["destination_id"];
10912
+ isOneToOne: false;
10913
+ referencedRelation: "maps_addresses";
10914
+ referencedColumns: ["id"];
10915
+ }, {
10916
+ foreignKeyName: "maps_travel_times_origin_id_fkey";
10917
+ columns: ["origin_id"];
10918
+ isOneToOne: false;
10919
+ referencedRelation: "maps_addresses";
10920
+ referencedColumns: ["id"];
10921
+ }];
10922
+ };
10923
+ maps_usage_log: {
10924
+ Row: {
10925
+ cache_hits: number;
10926
+ call_type: string;
10927
+ created_at: string;
10928
+ day: string;
10929
+ detail: string | null;
10930
+ elements: number;
10931
+ id: string;
10932
+ outcome: string;
10933
+ };
10934
+ Insert: {
10935
+ cache_hits?: number;
10936
+ call_type: string;
10937
+ created_at?: string;
10938
+ day?: string;
10939
+ detail?: string | null;
10940
+ elements?: number;
10941
+ id?: string;
10942
+ outcome?: string;
10943
+ };
10944
+ Update: {
10945
+ cache_hits?: number;
10946
+ call_type?: string;
10947
+ created_at?: string;
10948
+ day?: string;
10949
+ detail?: string | null;
10950
+ elements?: number;
10951
+ id?: string;
10952
+ outcome?: string;
10953
+ };
10954
+ Relationships: [];
10955
+ };
10719
10956
  material_usage: {
10720
10957
  Row: {
10721
10958
  created_at: string;
@@ -13365,6 +13602,39 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
13365
13602
  };
13366
13603
  Relationships: [];
13367
13604
  };
13605
+ print_dedupe_events: {
13606
+ Row: {
13607
+ bestaande_job_id: string | null;
13608
+ created_at: string;
13609
+ detail: string | null;
13610
+ documentnaam: string | null;
13611
+ documenttype: string | null;
13612
+ id: string;
13613
+ idempotentie_sleutel: string;
13614
+ reden: string;
13615
+ };
13616
+ Insert: {
13617
+ bestaande_job_id?: string | null;
13618
+ created_at?: string;
13619
+ detail?: string | null;
13620
+ documentnaam?: string | null;
13621
+ documenttype?: string | null;
13622
+ id?: string;
13623
+ idempotentie_sleutel: string;
13624
+ reden: string;
13625
+ };
13626
+ Update: {
13627
+ bestaande_job_id?: string | null;
13628
+ created_at?: string;
13629
+ detail?: string | null;
13630
+ documentnaam?: string | null;
13631
+ documenttype?: string | null;
13632
+ id?: string;
13633
+ idempotentie_sleutel?: string;
13634
+ reden?: string;
13635
+ };
13636
+ Relationships: [];
13637
+ };
13368
13638
  print_job_logs: {
13369
13639
  Row: {
13370
13640
  created_at: string;
@@ -13406,6 +13676,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
13406
13676
  foutmelding: string | null;
13407
13677
  gebruiker_id: string | null;
13408
13678
  gebruiker_naam: string;
13679
+ gebruikte_bron: string | null;
13680
+ gebruikte_layout_id: string | null;
13409
13681
  gestart_op: string | null;
13410
13682
  herkomst: string | null;
13411
13683
  id: string;
@@ -13413,6 +13685,9 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
13413
13685
  is_herprint: boolean;
13414
13686
  kopieen: number;
13415
13687
  layout_id: string | null;
13688
+ lokaal_opgeslagen_op: string | null;
13689
+ lokale_pdf_fout: string | null;
13690
+ lokale_pdf_status: string | null;
13416
13691
  opgepakt_op: string | null;
13417
13692
  paginas: number;
13418
13693
  payload: import("../integrations/supabase/types").Json;
@@ -13421,6 +13696,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
13421
13696
  pogingen: number;
13422
13697
  printer_id: string | null;
13423
13698
  render_html: string | null;
13699
+ resultaat_pdf_base64: string | null;
13424
13700
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13425
13701
  updated_at: string;
13426
13702
  volgende_poging: string | null;
@@ -13436,6 +13712,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
13436
13712
  foutmelding?: string | null;
13437
13713
  gebruiker_id?: string | null;
13438
13714
  gebruiker_naam?: string;
13715
+ gebruikte_bron?: string | null;
13716
+ gebruikte_layout_id?: string | null;
13439
13717
  gestart_op?: string | null;
13440
13718
  herkomst?: string | null;
13441
13719
  id?: string;
@@ -13443,6 +13721,9 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
13443
13721
  is_herprint?: boolean;
13444
13722
  kopieen?: number;
13445
13723
  layout_id?: string | null;
13724
+ lokaal_opgeslagen_op?: string | null;
13725
+ lokale_pdf_fout?: string | null;
13726
+ lokale_pdf_status?: string | null;
13446
13727
  opgepakt_op?: string | null;
13447
13728
  paginas?: number;
13448
13729
  payload?: import("../integrations/supabase/types").Json;
@@ -13451,6 +13732,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
13451
13732
  pogingen?: number;
13452
13733
  printer_id?: string | null;
13453
13734
  render_html?: string | null;
13735
+ resultaat_pdf_base64?: string | null;
13454
13736
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13455
13737
  updated_at?: string;
13456
13738
  volgende_poging?: string | null;
@@ -13466,6 +13748,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
13466
13748
  foutmelding?: string | null;
13467
13749
  gebruiker_id?: string | null;
13468
13750
  gebruiker_naam?: string;
13751
+ gebruikte_bron?: string | null;
13752
+ gebruikte_layout_id?: string | null;
13469
13753
  gestart_op?: string | null;
13470
13754
  herkomst?: string | null;
13471
13755
  id?: string;
@@ -13473,6 +13757,9 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
13473
13757
  is_herprint?: boolean;
13474
13758
  kopieen?: number;
13475
13759
  layout_id?: string | null;
13760
+ lokaal_opgeslagen_op?: string | null;
13761
+ lokale_pdf_fout?: string | null;
13762
+ lokale_pdf_status?: string | null;
13476
13763
  opgepakt_op?: string | null;
13477
13764
  paginas?: number;
13478
13765
  payload?: import("../integrations/supabase/types").Json;
@@ -13481,6 +13768,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
13481
13768
  pogingen?: number;
13482
13769
  printer_id?: string | null;
13483
13770
  render_html?: string | null;
13771
+ resultaat_pdf_base64?: string | null;
13484
13772
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13485
13773
  updated_at?: string;
13486
13774
  volgende_poging?: string | null;
@@ -13599,6 +13887,39 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
13599
13887
  };
13600
13888
  Relationships: [];
13601
13889
  };
13890
+ print_preview_events: {
13891
+ Row: {
13892
+ code: string | null;
13893
+ created_at: string;
13894
+ detail: import("../integrations/supabase/types").Json;
13895
+ id: string;
13896
+ queue_item_id: string | null;
13897
+ reden: string | null;
13898
+ station_slug: string | null;
13899
+ uitkomst: string;
13900
+ };
13901
+ Insert: {
13902
+ code?: string | null;
13903
+ created_at?: string;
13904
+ detail?: import("../integrations/supabase/types").Json;
13905
+ id?: string;
13906
+ queue_item_id?: string | null;
13907
+ reden?: string | null;
13908
+ station_slug?: string | null;
13909
+ uitkomst?: string;
13910
+ };
13911
+ Update: {
13912
+ code?: string | null;
13913
+ created_at?: string;
13914
+ detail?: import("../integrations/supabase/types").Json;
13915
+ id?: string;
13916
+ queue_item_id?: string | null;
13917
+ reden?: string | null;
13918
+ station_slug?: string | null;
13919
+ uitkomst?: string;
13920
+ };
13921
+ Relationships: [];
13922
+ };
13602
13923
  print_queue_runners: {
13603
13924
  Row: {
13604
13925
  actief: boolean;
@@ -13826,6 +14147,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
13826
14147
  created_at: string;
13827
14148
  driver: string;
13828
14149
  extern_printer_id: string | null;
14150
+ formaten_bijgewerkt_op: string | null;
13829
14151
  id: string;
13830
14152
  ip_adres: string | null;
13831
14153
  laatst_gezien: string | null;
@@ -13833,8 +14155,11 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
13833
14155
  merk: string;
13834
14156
  naam: string;
13835
14157
  omschrijving: string;
14158
+ ondersteunde_formaten: import("../integrations/supabase/types").Json | null;
14159
+ ondersteunde_laden: import("../integrations/supabase/types").Json | null;
13836
14160
  online: boolean;
13837
14161
  papierformaat: string;
14162
+ pdf_map: string | null;
13838
14163
  poort: number | null;
13839
14164
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
13840
14165
  systeemnaam: string;
@@ -13848,6 +14173,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
13848
14173
  created_at?: string;
13849
14174
  driver?: string;
13850
14175
  extern_printer_id?: string | null;
14176
+ formaten_bijgewerkt_op?: string | null;
13851
14177
  id?: string;
13852
14178
  ip_adres?: string | null;
13853
14179
  laatst_gezien?: string | null;
@@ -13855,8 +14181,11 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
13855
14181
  merk?: string;
13856
14182
  naam: string;
13857
14183
  omschrijving?: string;
14184
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
14185
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
13858
14186
  online?: boolean;
13859
14187
  papierformaat?: string;
14188
+ pdf_map?: string | null;
13860
14189
  poort?: number | null;
13861
14190
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
13862
14191
  systeemnaam?: string;
@@ -13870,6 +14199,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
13870
14199
  created_at?: string;
13871
14200
  driver?: string;
13872
14201
  extern_printer_id?: string | null;
14202
+ formaten_bijgewerkt_op?: string | null;
13873
14203
  id?: string;
13874
14204
  ip_adres?: string | null;
13875
14205
  laatst_gezien?: string | null;
@@ -13877,8 +14207,11 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
13877
14207
  merk?: string;
13878
14208
  naam?: string;
13879
14209
  omschrijving?: string;
14210
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
14211
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
13880
14212
  online?: boolean;
13881
14213
  papierformaat?: string;
14214
+ pdf_map?: string | null;
13882
14215
  poort?: number | null;
13883
14216
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
13884
14217
  systeemnaam?: string;
@@ -20126,6 +20459,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
20126
20459
  foutmelding: string | null;
20127
20460
  gebruiker_id: string | null;
20128
20461
  gebruiker_naam: string;
20462
+ gebruikte_bron: string | null;
20463
+ gebruikte_layout_id: string | null;
20129
20464
  gestart_op: string | null;
20130
20465
  herkomst: string | null;
20131
20466
  id: string;
@@ -20133,6 +20468,9 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
20133
20468
  is_herprint: boolean;
20134
20469
  kopieen: number;
20135
20470
  layout_id: string | null;
20471
+ lokaal_opgeslagen_op: string | null;
20472
+ lokale_pdf_fout: string | null;
20473
+ lokale_pdf_status: string | null;
20136
20474
  opgepakt_op: string | null;
20137
20475
  paginas: number;
20138
20476
  payload: import("../integrations/supabase/types").Json;
@@ -20141,6 +20479,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
20141
20479
  pogingen: number;
20142
20480
  printer_id: string | null;
20143
20481
  render_html: string | null;
20482
+ resultaat_pdf_base64: string | null;
20144
20483
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20145
20484
  updated_at: string;
20146
20485
  volgende_poging: string | null;
@@ -20232,6 +20571,53 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
20232
20571
  isSetofReturn: true;
20233
20572
  };
20234
20573
  };
20574
+ claim_pdf_print_jobs: {
20575
+ Args: {
20576
+ _max?: number;
20577
+ };
20578
+ Returns: {
20579
+ agent_id: string | null;
20580
+ bron_job_id: string | null;
20581
+ created_at: string;
20582
+ documentnaam: string;
20583
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
20584
+ extern_job_id: string | null;
20585
+ foutmelding: string | null;
20586
+ gebruiker_id: string | null;
20587
+ gebruiker_naam: string;
20588
+ gebruikte_bron: string | null;
20589
+ gebruikte_layout_id: string | null;
20590
+ gestart_op: string | null;
20591
+ herkomst: string | null;
20592
+ id: string;
20593
+ idempotentie_sleutel: string | null;
20594
+ is_herprint: boolean;
20595
+ kopieen: number;
20596
+ layout_id: string | null;
20597
+ lokaal_opgeslagen_op: string | null;
20598
+ lokale_pdf_fout: string | null;
20599
+ lokale_pdf_status: string | null;
20600
+ opgepakt_op: string | null;
20601
+ paginas: number;
20602
+ payload: import("../integrations/supabase/types").Json;
20603
+ pdf_base64: string | null;
20604
+ pdf_url: string | null;
20605
+ pogingen: number;
20606
+ printer_id: string | null;
20607
+ render_html: string | null;
20608
+ resultaat_pdf_base64: string | null;
20609
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20610
+ updated_at: string;
20611
+ volgende_poging: string | null;
20612
+ voltooid_op: string | null;
20613
+ }[];
20614
+ SetofOptions: {
20615
+ from: "*";
20616
+ to: "print_jobs";
20617
+ isOneToOne: false;
20618
+ isSetofReturn: true;
20619
+ };
20620
+ };
20235
20621
  claim_print_jobs: {
20236
20622
  Args: {
20237
20623
  _agent_id: string;
@@ -20247,6 +20633,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
20247
20633
  foutmelding: string | null;
20248
20634
  gebruiker_id: string | null;
20249
20635
  gebruiker_naam: string;
20636
+ gebruikte_bron: string | null;
20637
+ gebruikte_layout_id: string | null;
20250
20638
  gestart_op: string | null;
20251
20639
  herkomst: string | null;
20252
20640
  id: string;
@@ -20254,6 +20642,9 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
20254
20642
  is_herprint: boolean;
20255
20643
  kopieen: number;
20256
20644
  layout_id: string | null;
20645
+ lokaal_opgeslagen_op: string | null;
20646
+ lokale_pdf_fout: string | null;
20647
+ lokale_pdf_status: string | null;
20257
20648
  opgepakt_op: string | null;
20258
20649
  paginas: number;
20259
20650
  payload: import("../integrations/supabase/types").Json;
@@ -20262,6 +20653,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
20262
20653
  pogingen: number;
20263
20654
  printer_id: string | null;
20264
20655
  render_html: string | null;
20656
+ resultaat_pdf_base64: string | null;
20265
20657
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20266
20658
  updated_at: string;
20267
20659
  volgende_poging: string | null;
@@ -20402,6 +20794,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
20402
20794
  order_id: string;
20403
20795
  order_source: string;
20404
20796
  pick_date: string;
20797
+ printed_at: string;
20798
+ printed_today: boolean;
20405
20799
  status: string;
20406
20800
  }[];
20407
20801
  };
@@ -21110,6 +21504,10 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
21110
21504
  };
21111
21505
  Returns: number;
21112
21506
  };
21507
+ logistics_cancel_orphan_tasks: {
21508
+ Args: never;
21509
+ Returns: number;
21510
+ };
21113
21511
  logistics_capacity_day_check: {
21114
21512
  Args: {
21115
21513
  p_from?: string;
@@ -21130,6 +21528,25 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
21130
21528
  };
21131
21529
  Returns: number;
21132
21530
  };
21531
+ logistics_cart_index: {
21532
+ Args: {
21533
+ p_from?: string;
21534
+ p_to?: string;
21535
+ };
21536
+ Returns: {
21537
+ cart_id: string;
21538
+ cart_index: number;
21539
+ cart_label: string;
21540
+ is_shared: boolean;
21541
+ order_number: string;
21542
+ order_source: string;
21543
+ order_uuid: string;
21544
+ pick_date: string;
21545
+ printed_at: string;
21546
+ shifted: boolean;
21547
+ task_status: string;
21548
+ }[];
21549
+ };
21133
21550
  logistics_check_order_allowed: {
21134
21551
  Args: {
21135
21552
  p_lines: import("../integrations/supabase/types").Json;
@@ -21278,6 +21695,17 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
21278
21695
  isSetofReturn: false;
21279
21696
  };
21280
21697
  };
21698
+ logistics_consistency_check: {
21699
+ Args: never;
21700
+ Returns: {
21701
+ agenda_carts: number;
21702
+ control_carts: number;
21703
+ ok: boolean;
21704
+ orphan_tasks: number;
21705
+ pick_date: string;
21706
+ raw_carts: number;
21707
+ }[];
21708
+ };
21281
21709
  logistics_delay_customer_email: {
21282
21710
  Args: {
21283
21711
  p_customer: string;
@@ -21303,6 +21731,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
21303
21731
  };
21304
21732
  Returns: string;
21305
21733
  };
21734
+ logistics_document_type_map: {
21735
+ Args: {
21736
+ _document_code: string;
21737
+ };
21738
+ Returns: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"][];
21739
+ };
21306
21740
  logistics_emit_event: {
21307
21741
  Args: {
21308
21742
  p_event_type: string;
@@ -21465,6 +21899,25 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
21465
21899
  };
21466
21900
  Returns: number;
21467
21901
  };
21902
+ logistics_order_overview: {
21903
+ Args: {
21904
+ p_from?: string;
21905
+ p_to?: string;
21906
+ };
21907
+ Returns: {
21908
+ cart_count: number;
21909
+ customer_name: string;
21910
+ delivery_date: string;
21911
+ order_number: string;
21912
+ order_source: string;
21913
+ order_uuid: string;
21914
+ pick_date: string;
21915
+ plant_count: number;
21916
+ printed_at: string;
21917
+ shifted: boolean;
21918
+ status: string;
21919
+ }[];
21920
+ };
21468
21921
  logistics_order_pick_day: {
21469
21922
  Args: {
21470
21923
  p_order_ref: string;
@@ -21477,6 +21930,22 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
21477
21930
  };
21478
21931
  Returns: string;
21479
21932
  };
21933
+ logistics_pick_agenda: {
21934
+ Args: {
21935
+ p_from?: string;
21936
+ p_to?: string;
21937
+ };
21938
+ Returns: {
21939
+ cart_count: number;
21940
+ in_preparation: number;
21941
+ order_count: number;
21942
+ orders: import("../integrations/supabase/types").Json;
21943
+ pick_date: string;
21944
+ plant_count: number;
21945
+ ready: number;
21946
+ shifted_count: number;
21947
+ }[];
21948
+ };
21480
21949
  logistics_pick_email_purpose: {
21481
21950
  Args: never;
21482
21951
  Returns: string;
@@ -21636,6 +22105,15 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
21636
22105
  };
21637
22106
  Returns: import("../integrations/supabase/types").Json;
21638
22107
  };
22108
+ logistics_resolve_pick_document: {
22109
+ Args: {
22110
+ _is_herprint: boolean;
22111
+ _queue_item_id: string;
22112
+ _session_id: string;
22113
+ _voorbeeld: boolean;
22114
+ };
22115
+ Returns: import("../integrations/supabase/types").Json;
22116
+ };
21639
22117
  logistics_resolve_settings: {
21640
22118
  Args: {
21641
22119
  p_config_id: string;
@@ -22076,6 +22554,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
22076
22554
  };
22077
22555
  pick_enqueue_print_job: {
22078
22556
  Args: {
22557
+ _is_herprint?: boolean;
22079
22558
  _printer_id?: string;
22080
22559
  _queue_item_id: string;
22081
22560
  _session_id?: string;
@@ -22089,6 +22568,13 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
22089
22568
  };
22090
22569
  Returns: import("../integrations/supabase/types").Json;
22091
22570
  };
22571
+ pick_preview_job: {
22572
+ Args: {
22573
+ _queue_item_id: string;
22574
+ _station_slug: string;
22575
+ };
22576
+ Returns: import("../integrations/supabase/types").Json;
22577
+ };
22092
22578
  pick_print_job_status: {
22093
22579
  Args: {
22094
22580
  _job_id: string;
@@ -22103,6 +22589,10 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
22103
22589
  omschrijving: string;
22104
22590
  }[];
22105
22591
  };
22592
+ pick_reference_data_status: {
22593
+ Args: never;
22594
+ Returns: import("../integrations/supabase/types").Json;
22595
+ };
22106
22596
  pick_release_expired_locks: {
22107
22597
  Args: never;
22108
22598
  Returns: number;
@@ -22167,6 +22657,10 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
22167
22657
  isSetofReturn: false;
22168
22658
  };
22169
22659
  };
22660
+ pick_seed_reference_data: {
22661
+ Args: never;
22662
+ Returns: import("../integrations/supabase/types").Json;
22663
+ };
22170
22664
  pick_set_station_print_plek: {
22171
22665
  Args: {
22172
22666
  _print_plek_id: string;
@@ -22258,6 +22752,24 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
22258
22752
  };
22259
22753
  Returns: undefined;
22260
22754
  };
22755
+ print_preview_toestaan: {
22756
+ Args: {
22757
+ _max?: number;
22758
+ _queue_item_id: string;
22759
+ _station_slug: string;
22760
+ _venster_sec?: number;
22761
+ };
22762
+ Returns: import("../integrations/supabase/types").Json;
22763
+ };
22764
+ print_preview_weiger: {
22765
+ Args: {
22766
+ _code: string;
22767
+ _queue_item_id: string;
22768
+ _reden: string;
22769
+ _station_slug: string;
22770
+ };
22771
+ Returns: undefined;
22772
+ };
22261
22773
  process_logistics_event: {
22262
22774
  Args: {
22263
22775
  p_event_id: string;
@@ -22375,6 +22887,14 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
22375
22887
  };
22376
22888
  Returns: undefined;
22377
22889
  };
22890
+ replace_order_carts: {
22891
+ Args: {
22892
+ p_buffer_id: string;
22893
+ p_carts: import("../integrations/supabase/types").Json;
22894
+ p_order_id: string;
22895
+ };
22896
+ Returns: import("../integrations/supabase/types").Json;
22897
+ };
22378
22898
  reset_floriday_sync_cursor: {
22379
22899
  Args: {
22380
22900
  p_connection_id: string;
@@ -22404,6 +22924,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
22404
22924
  };
22405
22925
  Returns: string;
22406
22926
  };
22927
+ resolve_print_job_printer_id: {
22928
+ Args: {
22929
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
22930
+ };
22931
+ Returns: string;
22932
+ };
22407
22933
  resolve_product_id_for_item: {
22408
22934
  Args: {
22409
22935
  p_product_name: string;
@@ -22995,7 +23521,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
22995
23521
  };
22996
23522
  CompositeTypes: { [_ in never]: never; };
22997
23523
  }, {
22998
- PostgrestVersion: "14.17";
23524
+ PostgrestVersion: "14.5";
22999
23525
  }>;
23000
23526
  userId: string;
23001
23527
  claims: import("@supabase/auth-js").JwtPayload;
@@ -23027,7 +23553,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
23027
23553
  created_at?: string;
23028
23554
  extra_pick_days_with_stickers?: number;
23029
23555
  id?: string;
23030
- max_workdays_earlier_pick? /** Print de afleverbrief automatisch zodra hij beschikbaar is in de cache. */: number;
23556
+ max_workdays_earlier_pick?: number;
23031
23557
  pick_days_before_transport?: number;
23032
23558
  pick_distribution_enabled?: boolean;
23033
23559
  pick_weekdays?: number[];
@@ -33692,6 +34218,243 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
33692
34218
  };
33693
34219
  Relationships: [];
33694
34220
  };
34221
+ maps_addresses: {
34222
+ Row: {
34223
+ address_hash: string;
34224
+ created_at: string;
34225
+ error_reason: string | null;
34226
+ formatted_address: string | null;
34227
+ id: string;
34228
+ lat: number | null;
34229
+ lng: number | null;
34230
+ place_id: string | null;
34231
+ raw_address: string;
34232
+ resolved_at: string | null;
34233
+ status: string;
34234
+ updated_at: string;
34235
+ };
34236
+ Insert: {
34237
+ address_hash: string;
34238
+ created_at?: string;
34239
+ error_reason?: string | null;
34240
+ formatted_address?: string | null;
34241
+ id?: string;
34242
+ lat?: number | null;
34243
+ lng?: number | null;
34244
+ place_id?: string | null;
34245
+ raw_address: string;
34246
+ resolved_at?: string | null;
34247
+ status?: string;
34248
+ updated_at?: string;
34249
+ };
34250
+ Update: {
34251
+ address_hash?: string;
34252
+ created_at?: string;
34253
+ error_reason?: string | null;
34254
+ formatted_address?: string | null;
34255
+ id?: string;
34256
+ lat?: number | null;
34257
+ lng?: number | null;
34258
+ place_id?: string | null;
34259
+ raw_address?: string;
34260
+ resolved_at?: string | null;
34261
+ status?: string;
34262
+ updated_at?: string;
34263
+ };
34264
+ Relationships: [];
34265
+ };
34266
+ maps_job_lease: {
34267
+ Row: {
34268
+ job: string;
34269
+ locked_until: string;
34270
+ updated_at: string;
34271
+ };
34272
+ Insert: {
34273
+ job: string;
34274
+ locked_until?: string;
34275
+ updated_at?: string;
34276
+ };
34277
+ Update: {
34278
+ job?: string;
34279
+ locked_until?: string;
34280
+ updated_at?: string;
34281
+ };
34282
+ Relationships: [];
34283
+ };
34284
+ maps_request_queue: {
34285
+ Row: {
34286
+ attempts: number;
34287
+ created_at: string;
34288
+ destination_hash: string | null;
34289
+ id: string;
34290
+ kind: string;
34291
+ last_error: string | null;
34292
+ mode: string;
34293
+ origin_hash: string | null;
34294
+ processed_at: string | null;
34295
+ raw_destination: string | null;
34296
+ raw_origin: string | null;
34297
+ requested_by: string | null;
34298
+ status: string;
34299
+ updated_at: string;
34300
+ };
34301
+ Insert: {
34302
+ attempts?: number;
34303
+ created_at?: string;
34304
+ destination_hash?: string | null;
34305
+ id?: string;
34306
+ kind: string;
34307
+ last_error?: string | null;
34308
+ mode?: string;
34309
+ origin_hash?: string | null;
34310
+ processed_at?: string | null;
34311
+ raw_destination?: string | null;
34312
+ raw_origin?: string | null;
34313
+ requested_by?: string | null;
34314
+ status?: string;
34315
+ updated_at?: string;
34316
+ };
34317
+ Update: {
34318
+ attempts?: number;
34319
+ created_at?: string;
34320
+ destination_hash?: string | null;
34321
+ id?: string;
34322
+ kind?: string;
34323
+ last_error?: string | null;
34324
+ mode?: string;
34325
+ origin_hash?: string | null;
34326
+ processed_at?: string | null;
34327
+ raw_destination?: string | null;
34328
+ raw_origin?: string | null;
34329
+ requested_by?: string | null;
34330
+ status?: string;
34331
+ updated_at?: string;
34332
+ };
34333
+ Relationships: [];
34334
+ };
34335
+ maps_settings: {
34336
+ Row: {
34337
+ allow_estimate_fallback: boolean;
34338
+ cache_ttl_days: number;
34339
+ created_at: string;
34340
+ daily_call_limit: number;
34341
+ id: string;
34342
+ last_error: string | null;
34343
+ last_error_at: string | null;
34344
+ last_success_at: string | null;
34345
+ provider: string;
34346
+ updated_at: string;
34347
+ };
34348
+ Insert: {
34349
+ allow_estimate_fallback?: boolean;
34350
+ cache_ttl_days?: number;
34351
+ created_at?: string;
34352
+ daily_call_limit?: number;
34353
+ id?: string;
34354
+ last_error?: string | null;
34355
+ last_error_at?: string | null;
34356
+ last_success_at?: string | null;
34357
+ provider?: string;
34358
+ updated_at?: string;
34359
+ };
34360
+ Update: {
34361
+ allow_estimate_fallback?: boolean;
34362
+ cache_ttl_days?: number;
34363
+ created_at?: string;
34364
+ daily_call_limit?: number;
34365
+ id?: string;
34366
+ last_error?: string | null;
34367
+ last_error_at?: string | null;
34368
+ last_success_at?: string | null;
34369
+ provider?: string;
34370
+ updated_at?: string;
34371
+ };
34372
+ Relationships: [];
34373
+ };
34374
+ maps_travel_times: {
34375
+ Row: {
34376
+ created_at: string;
34377
+ destination_id: string;
34378
+ distance_m: number | null;
34379
+ duration_sec: number;
34380
+ expires_at: string;
34381
+ id: string;
34382
+ mode: string;
34383
+ origin_id: string;
34384
+ source: string;
34385
+ updated_at: string;
34386
+ };
34387
+ Insert: {
34388
+ created_at?: string;
34389
+ destination_id: string;
34390
+ distance_m?: number | null;
34391
+ duration_sec: number;
34392
+ expires_at?: string;
34393
+ id?: string;
34394
+ mode?: string;
34395
+ origin_id: string;
34396
+ source?: string;
34397
+ updated_at?: string;
34398
+ };
34399
+ Update: {
34400
+ created_at?: string;
34401
+ destination_id?: string;
34402
+ distance_m?: number | null;
34403
+ duration_sec?: number;
34404
+ expires_at?: string;
34405
+ id?: string;
34406
+ mode?: string;
34407
+ origin_id?: string;
34408
+ source?: string;
34409
+ updated_at?: string;
34410
+ };
34411
+ Relationships: [{
34412
+ foreignKeyName: "maps_travel_times_destination_id_fkey";
34413
+ columns: ["destination_id"];
34414
+ isOneToOne: false;
34415
+ referencedRelation: "maps_addresses";
34416
+ referencedColumns: ["id"];
34417
+ }, {
34418
+ foreignKeyName: "maps_travel_times_origin_id_fkey";
34419
+ columns: ["origin_id"];
34420
+ isOneToOne: false;
34421
+ referencedRelation: "maps_addresses";
34422
+ referencedColumns: ["id"];
34423
+ }];
34424
+ };
34425
+ maps_usage_log: {
34426
+ Row: {
34427
+ cache_hits: number;
34428
+ call_type: string;
34429
+ created_at: string;
34430
+ day: string;
34431
+ detail: string | null;
34432
+ elements: number;
34433
+ id: string;
34434
+ outcome: string;
34435
+ };
34436
+ Insert: {
34437
+ cache_hits?: number;
34438
+ call_type: string;
34439
+ created_at?: string;
34440
+ day?: string;
34441
+ detail?: string | null;
34442
+ elements?: number;
34443
+ id?: string;
34444
+ outcome?: string;
34445
+ };
34446
+ Update: {
34447
+ cache_hits?: number;
34448
+ call_type?: string;
34449
+ created_at?: string;
34450
+ day?: string;
34451
+ detail?: string | null;
34452
+ elements?: number;
34453
+ id?: string;
34454
+ outcome?: string;
34455
+ };
34456
+ Relationships: [];
34457
+ };
33695
34458
  material_usage: {
33696
34459
  Row: {
33697
34460
  created_at: string;
@@ -36341,6 +37104,39 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
36341
37104
  };
36342
37105
  Relationships: [];
36343
37106
  };
37107
+ print_dedupe_events: {
37108
+ Row: {
37109
+ bestaande_job_id: string | null;
37110
+ created_at: string;
37111
+ detail: string | null;
37112
+ documentnaam: string | null;
37113
+ documenttype: string | null;
37114
+ id: string;
37115
+ idempotentie_sleutel: string;
37116
+ reden: string;
37117
+ };
37118
+ Insert: {
37119
+ bestaande_job_id?: string | null;
37120
+ created_at?: string;
37121
+ detail?: string | null;
37122
+ documentnaam?: string | null;
37123
+ documenttype?: string | null;
37124
+ id?: string;
37125
+ idempotentie_sleutel: string;
37126
+ reden: string;
37127
+ };
37128
+ Update: {
37129
+ bestaande_job_id?: string | null;
37130
+ created_at?: string;
37131
+ detail?: string | null;
37132
+ documentnaam?: string | null;
37133
+ documenttype?: string | null;
37134
+ id?: string;
37135
+ idempotentie_sleutel?: string;
37136
+ reden?: string;
37137
+ };
37138
+ Relationships: [];
37139
+ };
36344
37140
  print_job_logs: {
36345
37141
  Row: {
36346
37142
  created_at: string;
@@ -36382,6 +37178,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
36382
37178
  foutmelding: string | null;
36383
37179
  gebruiker_id: string | null;
36384
37180
  gebruiker_naam: string;
37181
+ gebruikte_bron: string | null;
37182
+ gebruikte_layout_id: string | null;
36385
37183
  gestart_op: string | null;
36386
37184
  herkomst: string | null;
36387
37185
  id: string;
@@ -36389,6 +37187,9 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
36389
37187
  is_herprint: boolean;
36390
37188
  kopieen: number;
36391
37189
  layout_id: string | null;
37190
+ lokaal_opgeslagen_op: string | null;
37191
+ lokale_pdf_fout: string | null;
37192
+ lokale_pdf_status: string | null;
36392
37193
  opgepakt_op: string | null;
36393
37194
  paginas: number;
36394
37195
  payload: import("../integrations/supabase/types").Json;
@@ -36397,6 +37198,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
36397
37198
  pogingen: number;
36398
37199
  printer_id: string | null;
36399
37200
  render_html: string | null;
37201
+ resultaat_pdf_base64: string | null;
36400
37202
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36401
37203
  updated_at: string;
36402
37204
  volgende_poging: string | null;
@@ -36412,6 +37214,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
36412
37214
  foutmelding?: string | null;
36413
37215
  gebruiker_id?: string | null;
36414
37216
  gebruiker_naam?: string;
37217
+ gebruikte_bron?: string | null;
37218
+ gebruikte_layout_id?: string | null;
36415
37219
  gestart_op?: string | null;
36416
37220
  herkomst?: string | null;
36417
37221
  id?: string;
@@ -36419,6 +37223,9 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
36419
37223
  is_herprint?: boolean;
36420
37224
  kopieen?: number;
36421
37225
  layout_id?: string | null;
37226
+ lokaal_opgeslagen_op?: string | null;
37227
+ lokale_pdf_fout?: string | null;
37228
+ lokale_pdf_status?: string | null;
36422
37229
  opgepakt_op?: string | null;
36423
37230
  paginas?: number;
36424
37231
  payload?: import("../integrations/supabase/types").Json;
@@ -36427,6 +37234,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
36427
37234
  pogingen?: number;
36428
37235
  printer_id?: string | null;
36429
37236
  render_html?: string | null;
37237
+ resultaat_pdf_base64?: string | null;
36430
37238
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36431
37239
  updated_at?: string;
36432
37240
  volgende_poging?: string | null;
@@ -36442,6 +37250,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
36442
37250
  foutmelding?: string | null;
36443
37251
  gebruiker_id?: string | null;
36444
37252
  gebruiker_naam?: string;
37253
+ gebruikte_bron?: string | null;
37254
+ gebruikte_layout_id?: string | null;
36445
37255
  gestart_op?: string | null;
36446
37256
  herkomst?: string | null;
36447
37257
  id?: string;
@@ -36449,6 +37259,9 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
36449
37259
  is_herprint?: boolean;
36450
37260
  kopieen?: number;
36451
37261
  layout_id?: string | null;
37262
+ lokaal_opgeslagen_op?: string | null;
37263
+ lokale_pdf_fout?: string | null;
37264
+ lokale_pdf_status?: string | null;
36452
37265
  opgepakt_op?: string | null;
36453
37266
  paginas?: number;
36454
37267
  payload?: import("../integrations/supabase/types").Json;
@@ -36457,6 +37270,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
36457
37270
  pogingen?: number;
36458
37271
  printer_id?: string | null;
36459
37272
  render_html?: string | null;
37273
+ resultaat_pdf_base64?: string | null;
36460
37274
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36461
37275
  updated_at?: string;
36462
37276
  volgende_poging?: string | null;
@@ -36575,6 +37389,39 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
36575
37389
  };
36576
37390
  Relationships: [];
36577
37391
  };
37392
+ print_preview_events: {
37393
+ Row: {
37394
+ code: string | null;
37395
+ created_at: string;
37396
+ detail: import("../integrations/supabase/types").Json;
37397
+ id: string;
37398
+ queue_item_id: string | null;
37399
+ reden: string | null;
37400
+ station_slug: string | null;
37401
+ uitkomst: string;
37402
+ };
37403
+ Insert: {
37404
+ code?: string | null;
37405
+ created_at?: string;
37406
+ detail?: import("../integrations/supabase/types").Json;
37407
+ id?: string;
37408
+ queue_item_id?: string | null;
37409
+ reden?: string | null;
37410
+ station_slug?: string | null;
37411
+ uitkomst?: string;
37412
+ };
37413
+ Update: {
37414
+ code?: string | null;
37415
+ created_at?: string;
37416
+ detail?: import("../integrations/supabase/types").Json;
37417
+ id?: string;
37418
+ queue_item_id?: string | null;
37419
+ reden?: string | null;
37420
+ station_slug?: string | null;
37421
+ uitkomst?: string;
37422
+ };
37423
+ Relationships: [];
37424
+ };
36578
37425
  print_queue_runners: {
36579
37426
  Row: {
36580
37427
  actief: boolean;
@@ -36802,6 +37649,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
36802
37649
  created_at: string;
36803
37650
  driver: string;
36804
37651
  extern_printer_id: string | null;
37652
+ formaten_bijgewerkt_op: string | null;
36805
37653
  id: string;
36806
37654
  ip_adres: string | null;
36807
37655
  laatst_gezien: string | null;
@@ -36809,8 +37657,11 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
36809
37657
  merk: string;
36810
37658
  naam: string;
36811
37659
  omschrijving: string;
37660
+ ondersteunde_formaten: import("../integrations/supabase/types").Json | null;
37661
+ ondersteunde_laden: import("../integrations/supabase/types").Json | null;
36812
37662
  online: boolean;
36813
37663
  papierformaat: string;
37664
+ pdf_map: string | null;
36814
37665
  poort: number | null;
36815
37666
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
36816
37667
  systeemnaam: string;
@@ -36824,6 +37675,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
36824
37675
  created_at?: string;
36825
37676
  driver?: string;
36826
37677
  extern_printer_id?: string | null;
37678
+ formaten_bijgewerkt_op?: string | null;
36827
37679
  id?: string;
36828
37680
  ip_adres?: string | null;
36829
37681
  laatst_gezien?: string | null;
@@ -36831,8 +37683,11 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
36831
37683
  merk?: string;
36832
37684
  naam: string;
36833
37685
  omschrijving?: string;
37686
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
37687
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
36834
37688
  online?: boolean;
36835
37689
  papierformaat?: string;
37690
+ pdf_map?: string | null;
36836
37691
  poort?: number | null;
36837
37692
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
36838
37693
  systeemnaam?: string;
@@ -36846,6 +37701,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
36846
37701
  created_at?: string;
36847
37702
  driver?: string;
36848
37703
  extern_printer_id?: string | null;
37704
+ formaten_bijgewerkt_op?: string | null;
36849
37705
  id?: string;
36850
37706
  ip_adres?: string | null;
36851
37707
  laatst_gezien?: string | null;
@@ -36853,8 +37709,11 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
36853
37709
  merk?: string;
36854
37710
  naam?: string;
36855
37711
  omschrijving?: string;
37712
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
37713
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
36856
37714
  online?: boolean;
36857
37715
  papierformaat?: string;
37716
+ pdf_map?: string | null;
36858
37717
  poort?: number | null;
36859
37718
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
36860
37719
  systeemnaam?: string;
@@ -43102,6 +43961,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
43102
43961
  foutmelding: string | null;
43103
43962
  gebruiker_id: string | null;
43104
43963
  gebruiker_naam: string;
43964
+ gebruikte_bron: string | null;
43965
+ gebruikte_layout_id: string | null;
43105
43966
  gestart_op: string | null;
43106
43967
  herkomst: string | null;
43107
43968
  id: string;
@@ -43109,6 +43970,9 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
43109
43970
  is_herprint: boolean;
43110
43971
  kopieen: number;
43111
43972
  layout_id: string | null;
43973
+ lokaal_opgeslagen_op: string | null;
43974
+ lokale_pdf_fout: string | null;
43975
+ lokale_pdf_status: string | null;
43112
43976
  opgepakt_op: string | null;
43113
43977
  paginas: number;
43114
43978
  payload: import("../integrations/supabase/types").Json;
@@ -43117,6 +43981,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
43117
43981
  pogingen: number;
43118
43982
  printer_id: string | null;
43119
43983
  render_html: string | null;
43984
+ resultaat_pdf_base64: string | null;
43120
43985
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43121
43986
  updated_at: string;
43122
43987
  volgende_poging: string | null;
@@ -43208,6 +44073,53 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
43208
44073
  isSetofReturn: true;
43209
44074
  };
43210
44075
  };
44076
+ claim_pdf_print_jobs: {
44077
+ Args: {
44078
+ _max?: number;
44079
+ };
44080
+ Returns: {
44081
+ agent_id: string | null;
44082
+ bron_job_id: string | null;
44083
+ created_at: string;
44084
+ documentnaam: string;
44085
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
44086
+ extern_job_id: string | null;
44087
+ foutmelding: string | null;
44088
+ gebruiker_id: string | null;
44089
+ gebruiker_naam: string;
44090
+ gebruikte_bron: string | null;
44091
+ gebruikte_layout_id: string | null;
44092
+ gestart_op: string | null;
44093
+ herkomst: string | null;
44094
+ id: string;
44095
+ idempotentie_sleutel: string | null;
44096
+ is_herprint: boolean;
44097
+ kopieen: number;
44098
+ layout_id: string | null;
44099
+ lokaal_opgeslagen_op: string | null;
44100
+ lokale_pdf_fout: string | null;
44101
+ lokale_pdf_status: string | null;
44102
+ opgepakt_op: string | null;
44103
+ paginas: number;
44104
+ payload: import("../integrations/supabase/types").Json;
44105
+ pdf_base64: string | null;
44106
+ pdf_url: string | null;
44107
+ pogingen: number;
44108
+ printer_id: string | null;
44109
+ render_html: string | null;
44110
+ resultaat_pdf_base64: string | null;
44111
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
44112
+ updated_at: string;
44113
+ volgende_poging: string | null;
44114
+ voltooid_op: string | null;
44115
+ }[];
44116
+ SetofOptions: {
44117
+ from: "*";
44118
+ to: "print_jobs";
44119
+ isOneToOne: false;
44120
+ isSetofReturn: true;
44121
+ };
44122
+ };
43211
44123
  claim_print_jobs: {
43212
44124
  Args: {
43213
44125
  _agent_id: string;
@@ -43223,6 +44135,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
43223
44135
  foutmelding: string | null;
43224
44136
  gebruiker_id: string | null;
43225
44137
  gebruiker_naam: string;
44138
+ gebruikte_bron: string | null;
44139
+ gebruikte_layout_id: string | null;
43226
44140
  gestart_op: string | null;
43227
44141
  herkomst: string | null;
43228
44142
  id: string;
@@ -43230,6 +44144,9 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
43230
44144
  is_herprint: boolean;
43231
44145
  kopieen: number;
43232
44146
  layout_id: string | null;
44147
+ lokaal_opgeslagen_op: string | null;
44148
+ lokale_pdf_fout: string | null;
44149
+ lokale_pdf_status: string | null;
43233
44150
  opgepakt_op: string | null;
43234
44151
  paginas: number;
43235
44152
  payload: import("../integrations/supabase/types").Json;
@@ -43238,6 +44155,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
43238
44155
  pogingen: number;
43239
44156
  printer_id: string | null;
43240
44157
  render_html: string | null;
44158
+ resultaat_pdf_base64: string | null;
43241
44159
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43242
44160
  updated_at: string;
43243
44161
  volgende_poging: string | null;
@@ -43378,6 +44296,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
43378
44296
  order_id: string;
43379
44297
  order_source: string;
43380
44298
  pick_date: string;
44299
+ printed_at: string;
44300
+ printed_today: boolean;
43381
44301
  status: string;
43382
44302
  }[];
43383
44303
  };
@@ -44086,6 +45006,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
44086
45006
  };
44087
45007
  Returns: number;
44088
45008
  };
45009
+ logistics_cancel_orphan_tasks: {
45010
+ Args: never;
45011
+ Returns: number;
45012
+ };
44089
45013
  logistics_capacity_day_check: {
44090
45014
  Args: {
44091
45015
  p_from?: string;
@@ -44106,6 +45030,25 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
44106
45030
  };
44107
45031
  Returns: number;
44108
45032
  };
45033
+ logistics_cart_index: {
45034
+ Args: {
45035
+ p_from?: string;
45036
+ p_to?: string;
45037
+ };
45038
+ Returns: {
45039
+ cart_id: string;
45040
+ cart_index: number;
45041
+ cart_label: string;
45042
+ is_shared: boolean;
45043
+ order_number: string;
45044
+ order_source: string;
45045
+ order_uuid: string;
45046
+ pick_date: string;
45047
+ printed_at: string;
45048
+ shifted: boolean;
45049
+ task_status: string;
45050
+ }[];
45051
+ };
44109
45052
  logistics_check_order_allowed: {
44110
45053
  Args: {
44111
45054
  p_lines: import("../integrations/supabase/types").Json;
@@ -44254,6 +45197,17 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
44254
45197
  isSetofReturn: false;
44255
45198
  };
44256
45199
  };
45200
+ logistics_consistency_check: {
45201
+ Args: never;
45202
+ Returns: {
45203
+ agenda_carts: number;
45204
+ control_carts: number;
45205
+ ok: boolean;
45206
+ orphan_tasks: number;
45207
+ pick_date: string;
45208
+ raw_carts: number;
45209
+ }[];
45210
+ };
44257
45211
  logistics_delay_customer_email: {
44258
45212
  Args: {
44259
45213
  p_customer: string;
@@ -44279,6 +45233,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
44279
45233
  };
44280
45234
  Returns: string;
44281
45235
  };
45236
+ logistics_document_type_map: {
45237
+ Args: {
45238
+ _document_code: string;
45239
+ };
45240
+ Returns: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"][];
45241
+ };
44282
45242
  logistics_emit_event: {
44283
45243
  Args: {
44284
45244
  p_event_type: string;
@@ -44441,6 +45401,25 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
44441
45401
  };
44442
45402
  Returns: number;
44443
45403
  };
45404
+ logistics_order_overview: {
45405
+ Args: {
45406
+ p_from?: string;
45407
+ p_to?: string;
45408
+ };
45409
+ Returns: {
45410
+ cart_count: number;
45411
+ customer_name: string;
45412
+ delivery_date: string;
45413
+ order_number: string;
45414
+ order_source: string;
45415
+ order_uuid: string;
45416
+ pick_date: string;
45417
+ plant_count: number;
45418
+ printed_at: string;
45419
+ shifted: boolean;
45420
+ status: string;
45421
+ }[];
45422
+ };
44444
45423
  logistics_order_pick_day: {
44445
45424
  Args: {
44446
45425
  p_order_ref: string;
@@ -44453,6 +45432,22 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
44453
45432
  };
44454
45433
  Returns: string;
44455
45434
  };
45435
+ logistics_pick_agenda: {
45436
+ Args: {
45437
+ p_from?: string;
45438
+ p_to?: string;
45439
+ };
45440
+ Returns: {
45441
+ cart_count: number;
45442
+ in_preparation: number;
45443
+ order_count: number;
45444
+ orders: import("../integrations/supabase/types").Json;
45445
+ pick_date: string;
45446
+ plant_count: number;
45447
+ ready: number;
45448
+ shifted_count: number;
45449
+ }[];
45450
+ };
44456
45451
  logistics_pick_email_purpose: {
44457
45452
  Args: never;
44458
45453
  Returns: string;
@@ -44612,6 +45607,15 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
44612
45607
  };
44613
45608
  Returns: import("../integrations/supabase/types").Json;
44614
45609
  };
45610
+ logistics_resolve_pick_document: {
45611
+ Args: {
45612
+ _is_herprint: boolean;
45613
+ _queue_item_id: string;
45614
+ _session_id: string;
45615
+ _voorbeeld: boolean;
45616
+ };
45617
+ Returns: import("../integrations/supabase/types").Json;
45618
+ };
44615
45619
  logistics_resolve_settings: {
44616
45620
  Args: {
44617
45621
  p_config_id: string;
@@ -45052,6 +46056,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
45052
46056
  };
45053
46057
  pick_enqueue_print_job: {
45054
46058
  Args: {
46059
+ _is_herprint?: boolean;
45055
46060
  _printer_id?: string;
45056
46061
  _queue_item_id: string;
45057
46062
  _session_id?: string;
@@ -45065,6 +46070,13 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
45065
46070
  };
45066
46071
  Returns: import("../integrations/supabase/types").Json;
45067
46072
  };
46073
+ pick_preview_job: {
46074
+ Args: {
46075
+ _queue_item_id: string;
46076
+ _station_slug: string;
46077
+ };
46078
+ Returns: import("../integrations/supabase/types").Json;
46079
+ };
45068
46080
  pick_print_job_status: {
45069
46081
  Args: {
45070
46082
  _job_id: string;
@@ -45079,6 +46091,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
45079
46091
  omschrijving: string;
45080
46092
  }[];
45081
46093
  };
46094
+ pick_reference_data_status: {
46095
+ Args: never;
46096
+ Returns: import("../integrations/supabase/types").Json;
46097
+ };
45082
46098
  pick_release_expired_locks: {
45083
46099
  Args: never;
45084
46100
  Returns: number;
@@ -45143,6 +46159,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
45143
46159
  isSetofReturn: false;
45144
46160
  };
45145
46161
  };
46162
+ pick_seed_reference_data: {
46163
+ Args: never;
46164
+ Returns: import("../integrations/supabase/types").Json;
46165
+ };
45146
46166
  pick_set_station_print_plek: {
45147
46167
  Args: {
45148
46168
  _print_plek_id: string;
@@ -45234,6 +46254,24 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
45234
46254
  };
45235
46255
  Returns: undefined;
45236
46256
  };
46257
+ print_preview_toestaan: {
46258
+ Args: {
46259
+ _max?: number;
46260
+ _queue_item_id: string;
46261
+ _station_slug: string;
46262
+ _venster_sec?: number;
46263
+ };
46264
+ Returns: import("../integrations/supabase/types").Json;
46265
+ };
46266
+ print_preview_weiger: {
46267
+ Args: {
46268
+ _code: string;
46269
+ _queue_item_id: string;
46270
+ _reden: string;
46271
+ _station_slug: string;
46272
+ };
46273
+ Returns: undefined;
46274
+ };
45237
46275
  process_logistics_event: {
45238
46276
  Args: {
45239
46277
  p_event_id: string;
@@ -45351,6 +46389,14 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
45351
46389
  };
45352
46390
  Returns: undefined;
45353
46391
  };
46392
+ replace_order_carts: {
46393
+ Args: {
46394
+ p_buffer_id: string;
46395
+ p_carts: import("../integrations/supabase/types").Json;
46396
+ p_order_id: string;
46397
+ };
46398
+ Returns: import("../integrations/supabase/types").Json;
46399
+ };
45354
46400
  reset_floriday_sync_cursor: {
45355
46401
  Args: {
45356
46402
  p_connection_id: string;
@@ -45380,6 +46426,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
45380
46426
  };
45381
46427
  Returns: string;
45382
46428
  };
46429
+ resolve_print_job_printer_id: {
46430
+ Args: {
46431
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
46432
+ };
46433
+ Returns: string;
46434
+ };
45383
46435
  resolve_product_id_for_item: {
45384
46436
  Args: {
45385
46437
  p_product_name: string;
@@ -45971,7 +47023,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
45971
47023
  };
45972
47024
  CompositeTypes: { [_ in never]: never; };
45973
47025
  }, {
45974
- PostgrestVersion: "14.17";
47026
+ PostgrestVersion: "14.5";
45975
47027
  }>;
45976
47028
  userId: string;
45977
47029
  claims: import("@supabase/auth-js").JwtPayload;