@flowselections/floriday-afhandeling-module 1.0.38 → 1.0.40

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 (38) 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 +1 -3
  4. package/dist-lib/components/afhandeling/DagDetailDialog.d.ts.map +1 -1
  5. package/dist-lib/components/afhandeling/DagDetailDialog.js +5 -38
  6. package/dist-lib/components/afhandeling/LeveringenPage.d.ts.map +1 -1
  7. package/dist-lib/components/afhandeling/LeveringenPage.js +1 -1
  8. package/dist-lib/components/afhandeling/WeekAgendaView.d.ts +1 -3
  9. package/dist-lib/components/afhandeling/WeekAgendaView.d.ts.map +1 -1
  10. package/dist-lib/components/afhandeling/WeekAgendaView.js +6 -57
  11. package/dist-lib/components/pickstation/PakbonTemplate.js +70 -70
  12. package/dist-lib/components/settings/AfhandelingSettingsCard.d.ts.map +1 -1
  13. package/dist-lib/components/settings/AfhandelingSettingsCard.js +4 -55
  14. package/dist-lib/hooks/useOrderPlanning.d.ts.map +1 -1
  15. package/dist-lib/hooks/useOrderPlanning.js +6 -27
  16. package/dist-lib/integrations/supabase/auth-middleware.d.ts +471 -1
  17. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  18. package/dist-lib/integrations/supabase/client.server.d.ts +471 -1
  19. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  20. package/dist-lib/integrations/supabase/moduleClient.d.ts +471 -1
  21. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  22. package/dist-lib/integrations/supabase/types.d.ts +477 -1
  23. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  24. package/dist-lib/lib/afhandelingSettings.functions.d.ts +952 -4
  25. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/carrierSignupMail.server.js +26 -26
  27. package/dist-lib/lib/carriers.functions.d.ts +2355 -5
  28. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/cartAssignments.functions.d.ts +2355 -5
  30. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/cartControl.functions.d.ts +4740 -20
  32. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/floriday.functions.d.ts +472 -2
  34. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/printing.d.ts +2 -11
  36. package/dist-lib/lib/printing.d.ts.map +1 -1
  37. package/dist-lib/lib/printing.js +8 -64
  38. package/package.json +1 -1
@@ -1,4 +1,12 @@
1
1
  import type { SupabaseClient } from "@supabase/supabase-js";
2
+ /**
3
+ * Let op: de planning- en printvelden (pickDaysBeforeTransport,
4
+ * extraPickDaysWithStickers, pickWeekdays, pickDistributionEnabled,
5
+ * maxWorkdaysEarlierPick, autoProcessPaused, autoPrintDeliveryNote) zijn
6
+ * legacy. De Logistics Engine bepaalt de pickplanning en de Layout maker de
7
+ * printerkeuze. De kolommen blijven bestaan, maar de UI leest of schrijft ze
8
+ * niet meer. Alleen de aanmeldmail-instellingen zijn nog in gebruik.
9
+ */
2
10
  export interface AfhandelingSettings {
3
11
  pickDaysBeforeTransport: number;
4
12
  transportRegisterDaysBefore: number;
@@ -43,7 +51,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
43
51
  created_at?: string;
44
52
  extra_pick_days_with_stickers?: number;
45
53
  id?: string;
46
- max_workdays_earlier_pick?: number;
54
+ max_workdays_earlier_pick? /** Print de afleverbrief automatisch zodra hij beschikbaar is in de cache. */: number;
47
55
  pick_days_before_transport?: number;
48
56
  pick_distribution_enabled?: boolean;
49
57
  pick_weekdays?: number[];
@@ -10708,6 +10716,243 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10708
10716
  };
10709
10717
  Relationships: [];
10710
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
+ };
10711
10956
  material_usage: {
10712
10957
  Row: {
10713
10958
  created_at: string;
@@ -13357,6 +13602,39 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
13357
13602
  };
13358
13603
  Relationships: [];
13359
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
+ };
13360
13638
  print_job_logs: {
13361
13639
  Row: {
13362
13640
  created_at: string;
@@ -13398,6 +13676,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
13398
13676
  foutmelding: string | null;
13399
13677
  gebruiker_id: string | null;
13400
13678
  gebruiker_naam: string;
13679
+ gebruikte_bron: string | null;
13680
+ gebruikte_layout_id: string | null;
13401
13681
  gestart_op: string | null;
13402
13682
  herkomst: string | null;
13403
13683
  id: string;
@@ -13428,6 +13708,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
13428
13708
  foutmelding?: string | null;
13429
13709
  gebruiker_id?: string | null;
13430
13710
  gebruiker_naam?: string;
13711
+ gebruikte_bron?: string | null;
13712
+ gebruikte_layout_id?: string | null;
13431
13713
  gestart_op?: string | null;
13432
13714
  herkomst?: string | null;
13433
13715
  id?: string;
@@ -13458,6 +13740,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
13458
13740
  foutmelding?: string | null;
13459
13741
  gebruiker_id?: string | null;
13460
13742
  gebruiker_naam?: string;
13743
+ gebruikte_bron?: string | null;
13744
+ gebruikte_layout_id?: string | null;
13461
13745
  gestart_op?: string | null;
13462
13746
  herkomst?: string | null;
13463
13747
  id?: string;
@@ -13591,6 +13875,39 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
13591
13875
  };
13592
13876
  Relationships: [];
13593
13877
  };
13878
+ print_preview_events: {
13879
+ Row: {
13880
+ code: string | null;
13881
+ created_at: string;
13882
+ detail: import("../integrations/supabase/types").Json;
13883
+ id: string;
13884
+ queue_item_id: string | null;
13885
+ reden: string | null;
13886
+ station_slug: string | null;
13887
+ uitkomst: string;
13888
+ };
13889
+ Insert: {
13890
+ code?: string | null;
13891
+ created_at?: string;
13892
+ detail?: import("../integrations/supabase/types").Json;
13893
+ id?: string;
13894
+ queue_item_id?: string | null;
13895
+ reden?: string | null;
13896
+ station_slug?: string | null;
13897
+ uitkomst?: string;
13898
+ };
13899
+ Update: {
13900
+ code?: string | null;
13901
+ created_at?: string;
13902
+ detail?: import("../integrations/supabase/types").Json;
13903
+ id?: string;
13904
+ queue_item_id?: string | null;
13905
+ reden?: string | null;
13906
+ station_slug?: string | null;
13907
+ uitkomst?: string;
13908
+ };
13909
+ Relationships: [];
13910
+ };
13594
13911
  print_queue_runners: {
13595
13912
  Row: {
13596
13913
  actief: boolean;
@@ -13818,6 +14135,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
13818
14135
  created_at: string;
13819
14136
  driver: string;
13820
14137
  extern_printer_id: string | null;
14138
+ formaten_bijgewerkt_op: string | null;
13821
14139
  id: string;
13822
14140
  ip_adres: string | null;
13823
14141
  laatst_gezien: string | null;
@@ -13825,6 +14143,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
13825
14143
  merk: string;
13826
14144
  naam: string;
13827
14145
  omschrijving: string;
14146
+ ondersteunde_formaten: import("../integrations/supabase/types").Json | null;
14147
+ ondersteunde_laden: import("../integrations/supabase/types").Json | null;
13828
14148
  online: boolean;
13829
14149
  papierformaat: string;
13830
14150
  poort: number | null;
@@ -13840,6 +14160,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
13840
14160
  created_at?: string;
13841
14161
  driver?: string;
13842
14162
  extern_printer_id?: string | null;
14163
+ formaten_bijgewerkt_op?: string | null;
13843
14164
  id?: string;
13844
14165
  ip_adres?: string | null;
13845
14166
  laatst_gezien?: string | null;
@@ -13847,6 +14168,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
13847
14168
  merk?: string;
13848
14169
  naam: string;
13849
14170
  omschrijving?: string;
14171
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
14172
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
13850
14173
  online?: boolean;
13851
14174
  papierformaat?: string;
13852
14175
  poort?: number | null;
@@ -13862,6 +14185,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
13862
14185
  created_at?: string;
13863
14186
  driver?: string;
13864
14187
  extern_printer_id?: string | null;
14188
+ formaten_bijgewerkt_op?: string | null;
13865
14189
  id?: string;
13866
14190
  ip_adres?: string | null;
13867
14191
  laatst_gezien?: string | null;
@@ -13869,6 +14193,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
13869
14193
  merk?: string;
13870
14194
  naam?: string;
13871
14195
  omschrijving?: string;
14196
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
14197
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
13872
14198
  online?: boolean;
13873
14199
  papierformaat?: string;
13874
14200
  poort?: number | null;
@@ -15745,6 +16071,45 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
15745
16071
  };
15746
16072
  Relationships: [];
15747
16073
  };
16074
+ stock_consumption_alerts: {
16075
+ Row: {
16076
+ alert_type: string;
16077
+ created_at: string;
16078
+ id: string;
16079
+ mutation_log_id: string | null;
16080
+ order_id: string | null;
16081
+ order_item_id: string | null;
16082
+ qty: number;
16083
+ reason: string | null;
16084
+ resolved_at: string | null;
16085
+ updated_at: string;
16086
+ };
16087
+ Insert: {
16088
+ alert_type: string;
16089
+ created_at?: string;
16090
+ id?: string;
16091
+ mutation_log_id?: string | null;
16092
+ order_id?: string | null;
16093
+ order_item_id?: string | null;
16094
+ qty?: number;
16095
+ reason?: string | null;
16096
+ resolved_at?: string | null;
16097
+ updated_at?: string;
16098
+ };
16099
+ Update: {
16100
+ alert_type?: string;
16101
+ created_at?: string;
16102
+ id?: string;
16103
+ mutation_log_id?: string | null;
16104
+ order_id?: string | null;
16105
+ order_item_id?: string | null;
16106
+ qty?: number;
16107
+ reason?: string | null;
16108
+ resolved_at?: string | null;
16109
+ updated_at?: string;
16110
+ };
16111
+ Relationships: [];
16112
+ };
15748
16113
  stock_import_runs: {
15749
16114
  Row: {
15750
16115
  connection_id: string | null;
@@ -18598,6 +18963,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
18598
18963
  werkbon_package_items: {
18599
18964
  Row: {
18600
18965
  article_number: string | null;
18966
+ artikel_id: string | null;
18601
18967
  created_at: string;
18602
18968
  gtin: string | null;
18603
18969
  id: string;
@@ -18615,6 +18981,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
18615
18981
  };
18616
18982
  Insert: {
18617
18983
  article_number?: string | null;
18984
+ artikel_id?: string | null;
18618
18985
  created_at?: string;
18619
18986
  gtin?: string | null;
18620
18987
  id?: string;
@@ -18632,6 +18999,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
18632
18999
  };
18633
19000
  Update: {
18634
19001
  article_number?: string | null;
19002
+ artikel_id?: string | null;
18635
19003
  created_at?: string;
18636
19004
  gtin?: string | null;
18637
19005
  id?: string;
@@ -18648,6 +19016,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
18648
19016
  updated_at?: string;
18649
19017
  };
18650
19018
  Relationships: [{
19019
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
19020
+ columns: ["artikel_id"];
19021
+ isOneToOne: false;
19022
+ referencedRelation: "artikelen_cache";
19023
+ referencedColumns: ["id"];
19024
+ }, {
18651
19025
  foreignKeyName: "werkbon_package_items_package_id_fkey";
18652
19026
  columns: ["package_id"];
18653
19027
  isOneToOne: false;
@@ -19870,6 +20244,20 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
19870
20244
  referencedColumns: ["id"];
19871
20245
  }];
19872
20246
  };
20247
+ v_werkbon_totalen: {
20248
+ Row: {
20249
+ packages_cents: number | null;
20250
+ packages_minutes: number | null;
20251
+ werkbon_id: string | null;
20252
+ };
20253
+ Relationships: [{
20254
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
20255
+ columns: ["werkbon_id"];
20256
+ isOneToOne: false;
20257
+ referencedRelation: "werkbonnen";
20258
+ referencedColumns: ["id"];
20259
+ }];
20260
+ };
19873
20261
  };
19874
20262
  Functions: {
19875
20263
  _floriday_schedule_job: {
@@ -20056,6 +20444,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
20056
20444
  foutmelding: string | null;
20057
20445
  gebruiker_id: string | null;
20058
20446
  gebruiker_naam: string;
20447
+ gebruikte_bron: string | null;
20448
+ gebruikte_layout_id: string | null;
20059
20449
  gestart_op: string | null;
20060
20450
  herkomst: string | null;
20061
20451
  id: string;
@@ -20177,6 +20567,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
20177
20567
  foutmelding: string | null;
20178
20568
  gebruiker_id: string | null;
20179
20569
  gebruiker_naam: string;
20570
+ gebruikte_bron: string | null;
20571
+ gebruikte_layout_id: string | null;
20180
20572
  gestart_op: string | null;
20181
20573
  herkomst: string | null;
20182
20574
  id: string;
@@ -21233,6 +21625,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
21233
21625
  };
21234
21626
  Returns: string;
21235
21627
  };
21628
+ logistics_document_type_map: {
21629
+ Args: {
21630
+ _document_code: string;
21631
+ };
21632
+ Returns: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"][];
21633
+ };
21236
21634
  logistics_emit_event: {
21237
21635
  Args: {
21238
21636
  p_event_type: string;
@@ -21417,6 +21815,14 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
21417
21815
  };
21418
21816
  Returns: import("../integrations/supabase/types").Json;
21419
21817
  };
21818
+ logistics_plan_block: {
21819
+ Args: {
21820
+ p_details?: import("../integrations/supabase/types").Json;
21821
+ p_order_ids: string[];
21822
+ p_reason: string;
21823
+ };
21824
+ Returns: number;
21825
+ };
21420
21826
  logistics_plan_buffer_sql: {
21421
21827
  Args: {
21422
21828
  p_buffer_id: string;
@@ -21785,6 +22191,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
21785
22191
  verwijderd: number;
21786
22192
  }[];
21787
22193
  };
22194
+ order_departure_proof: {
22195
+ Args: {
22196
+ p_order_id: string;
22197
+ };
22198
+ Returns: import("../integrations/supabase/types").Json;
22199
+ };
21788
22200
  order_number_prefix: {
21789
22201
  Args: {
21790
22202
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -21792,6 +22204,25 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
21792
22204
  };
21793
22205
  Returns: string;
21794
22206
  };
22207
+ pakket_suggesties_voor_tekst: {
22208
+ Args: {
22209
+ _tekst: string;
22210
+ };
22211
+ Returns: {
22212
+ hit_type: string;
22213
+ package_id: string;
22214
+ priority: number;
22215
+ }[];
22216
+ };
22217
+ pakket_voor_reistijd: {
22218
+ Args: {
22219
+ _minuten: number;
22220
+ };
22221
+ Returns: {
22222
+ package_id: string;
22223
+ priority: number;
22224
+ }[];
22225
+ };
21795
22226
  pick_active_printers: {
21796
22227
  Args: never;
21797
22228
  Returns: {
@@ -21973,6 +22404,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
21973
22404
  };
21974
22405
  pick_enqueue_print_job: {
21975
22406
  Args: {
22407
+ _is_herprint?: boolean;
21976
22408
  _printer_id?: string;
21977
22409
  _queue_item_id: string;
21978
22410
  _session_id?: string;
@@ -22000,6 +22432,10 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
22000
22432
  omschrijving: string;
22001
22433
  }[];
22002
22434
  };
22435
+ pick_reference_data_status: {
22436
+ Args: never;
22437
+ Returns: import("../integrations/supabase/types").Json;
22438
+ };
22003
22439
  pick_release_expired_locks: {
22004
22440
  Args: never;
22005
22441
  Returns: number;
@@ -22064,6 +22500,10 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
22064
22500
  isSetofReturn: false;
22065
22501
  };
22066
22502
  };
22503
+ pick_seed_reference_data: {
22504
+ Args: never;
22505
+ Returns: import("../integrations/supabase/types").Json;
22506
+ };
22067
22507
  pick_set_station_print_plek: {
22068
22508
  Args: {
22069
22509
  _print_plek_id: string;
@@ -22155,6 +22595,24 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
22155
22595
  };
22156
22596
  Returns: undefined;
22157
22597
  };
22598
+ print_preview_toestaan: {
22599
+ Args: {
22600
+ _max?: number;
22601
+ _queue_item_id: string;
22602
+ _station_slug: string;
22603
+ _venster_sec?: number;
22604
+ };
22605
+ Returns: import("../integrations/supabase/types").Json;
22606
+ };
22607
+ print_preview_weiger: {
22608
+ Args: {
22609
+ _code: string;
22610
+ _queue_item_id: string;
22611
+ _reden: string;
22612
+ _station_slug: string;
22613
+ };
22614
+ Returns: undefined;
22615
+ };
22158
22616
  process_logistics_event: {
22159
22617
  Args: {
22160
22618
  p_event_id: string;
@@ -22272,6 +22730,14 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
22272
22730
  };
22273
22731
  Returns: undefined;
22274
22732
  };
22733
+ replace_order_carts: {
22734
+ Args: {
22735
+ p_buffer_id: string;
22736
+ p_carts: import("../integrations/supabase/types").Json;
22737
+ p_order_id: string;
22738
+ };
22739
+ Returns: import("../integrations/supabase/types").Json;
22740
+ };
22275
22741
  reset_floriday_sync_cursor: {
22276
22742
  Args: {
22277
22743
  p_connection_id: string;
@@ -22842,6 +23308,18 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
22842
23308
  Args: never;
22843
23309
  Returns: string;
22844
23310
  };
23311
+ werkbon_totalen: {
23312
+ Args: {
23313
+ _werkbon_id: string;
23314
+ };
23315
+ Returns: {
23316
+ materials_cents: number;
23317
+ packages_cents: number;
23318
+ packages_minutes: number;
23319
+ total_cents: number;
23320
+ total_minutes: number;
23321
+ }[];
23322
+ };
22845
23323
  wo_create_from_source: {
22846
23324
  Args: {
22847
23325
  _payload?: import("../integrations/supabase/types").Json;
@@ -22880,7 +23358,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
22880
23358
  };
22881
23359
  CompositeTypes: { [_ in never]: never; };
22882
23360
  }, {
22883
- PostgrestVersion: "14.5";
23361
+ PostgrestVersion: "14.17";
22884
23362
  }>;
22885
23363
  userId: string;
22886
23364
  claims: import("@supabase/auth-js").JwtPayload;
@@ -22912,7 +23390,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
22912
23390
  created_at?: string;
22913
23391
  extra_pick_days_with_stickers?: number;
22914
23392
  id?: string;
22915
- max_workdays_earlier_pick?: number;
23393
+ max_workdays_earlier_pick? /** Print de afleverbrief automatisch zodra hij beschikbaar is in de cache. */: number;
22916
23394
  pick_days_before_transport?: number;
22917
23395
  pick_distribution_enabled?: boolean;
22918
23396
  pick_weekdays?: number[];
@@ -33577,6 +34055,243 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
33577
34055
  };
33578
34056
  Relationships: [];
33579
34057
  };
34058
+ maps_addresses: {
34059
+ Row: {
34060
+ address_hash: string;
34061
+ created_at: string;
34062
+ error_reason: string | null;
34063
+ formatted_address: string | null;
34064
+ id: string;
34065
+ lat: number | null;
34066
+ lng: number | null;
34067
+ place_id: string | null;
34068
+ raw_address: string;
34069
+ resolved_at: string | null;
34070
+ status: string;
34071
+ updated_at: string;
34072
+ };
34073
+ Insert: {
34074
+ address_hash: string;
34075
+ created_at?: string;
34076
+ error_reason?: string | null;
34077
+ formatted_address?: string | null;
34078
+ id?: string;
34079
+ lat?: number | null;
34080
+ lng?: number | null;
34081
+ place_id?: string | null;
34082
+ raw_address: string;
34083
+ resolved_at?: string | null;
34084
+ status?: string;
34085
+ updated_at?: string;
34086
+ };
34087
+ Update: {
34088
+ address_hash?: string;
34089
+ created_at?: string;
34090
+ error_reason?: string | null;
34091
+ formatted_address?: string | null;
34092
+ id?: string;
34093
+ lat?: number | null;
34094
+ lng?: number | null;
34095
+ place_id?: string | null;
34096
+ raw_address?: string;
34097
+ resolved_at?: string | null;
34098
+ status?: string;
34099
+ updated_at?: string;
34100
+ };
34101
+ Relationships: [];
34102
+ };
34103
+ maps_job_lease: {
34104
+ Row: {
34105
+ job: string;
34106
+ locked_until: string;
34107
+ updated_at: string;
34108
+ };
34109
+ Insert: {
34110
+ job: string;
34111
+ locked_until?: string;
34112
+ updated_at?: string;
34113
+ };
34114
+ Update: {
34115
+ job?: string;
34116
+ locked_until?: string;
34117
+ updated_at?: string;
34118
+ };
34119
+ Relationships: [];
34120
+ };
34121
+ maps_request_queue: {
34122
+ Row: {
34123
+ attempts: number;
34124
+ created_at: string;
34125
+ destination_hash: string | null;
34126
+ id: string;
34127
+ kind: string;
34128
+ last_error: string | null;
34129
+ mode: string;
34130
+ origin_hash: string | null;
34131
+ processed_at: string | null;
34132
+ raw_destination: string | null;
34133
+ raw_origin: string | null;
34134
+ requested_by: string | null;
34135
+ status: string;
34136
+ updated_at: string;
34137
+ };
34138
+ Insert: {
34139
+ attempts?: number;
34140
+ created_at?: string;
34141
+ destination_hash?: string | null;
34142
+ id?: string;
34143
+ kind: string;
34144
+ last_error?: string | null;
34145
+ mode?: string;
34146
+ origin_hash?: string | null;
34147
+ processed_at?: string | null;
34148
+ raw_destination?: string | null;
34149
+ raw_origin?: string | null;
34150
+ requested_by?: string | null;
34151
+ status?: string;
34152
+ updated_at?: string;
34153
+ };
34154
+ Update: {
34155
+ attempts?: number;
34156
+ created_at?: string;
34157
+ destination_hash?: string | null;
34158
+ id?: string;
34159
+ kind?: string;
34160
+ last_error?: string | null;
34161
+ mode?: string;
34162
+ origin_hash?: string | null;
34163
+ processed_at?: string | null;
34164
+ raw_destination?: string | null;
34165
+ raw_origin?: string | null;
34166
+ requested_by?: string | null;
34167
+ status?: string;
34168
+ updated_at?: string;
34169
+ };
34170
+ Relationships: [];
34171
+ };
34172
+ maps_settings: {
34173
+ Row: {
34174
+ allow_estimate_fallback: boolean;
34175
+ cache_ttl_days: number;
34176
+ created_at: string;
34177
+ daily_call_limit: number;
34178
+ id: string;
34179
+ last_error: string | null;
34180
+ last_error_at: string | null;
34181
+ last_success_at: string | null;
34182
+ provider: string;
34183
+ updated_at: string;
34184
+ };
34185
+ Insert: {
34186
+ allow_estimate_fallback?: boolean;
34187
+ cache_ttl_days?: number;
34188
+ created_at?: string;
34189
+ daily_call_limit?: number;
34190
+ id?: string;
34191
+ last_error?: string | null;
34192
+ last_error_at?: string | null;
34193
+ last_success_at?: string | null;
34194
+ provider?: string;
34195
+ updated_at?: string;
34196
+ };
34197
+ Update: {
34198
+ allow_estimate_fallback?: boolean;
34199
+ cache_ttl_days?: number;
34200
+ created_at?: string;
34201
+ daily_call_limit?: number;
34202
+ id?: string;
34203
+ last_error?: string | null;
34204
+ last_error_at?: string | null;
34205
+ last_success_at?: string | null;
34206
+ provider?: string;
34207
+ updated_at?: string;
34208
+ };
34209
+ Relationships: [];
34210
+ };
34211
+ maps_travel_times: {
34212
+ Row: {
34213
+ created_at: string;
34214
+ destination_id: string;
34215
+ distance_m: number | null;
34216
+ duration_sec: number;
34217
+ expires_at: string;
34218
+ id: string;
34219
+ mode: string;
34220
+ origin_id: string;
34221
+ source: string;
34222
+ updated_at: string;
34223
+ };
34224
+ Insert: {
34225
+ created_at?: string;
34226
+ destination_id: string;
34227
+ distance_m?: number | null;
34228
+ duration_sec: number;
34229
+ expires_at?: string;
34230
+ id?: string;
34231
+ mode?: string;
34232
+ origin_id: string;
34233
+ source?: string;
34234
+ updated_at?: string;
34235
+ };
34236
+ Update: {
34237
+ created_at?: string;
34238
+ destination_id?: string;
34239
+ distance_m?: number | null;
34240
+ duration_sec?: number;
34241
+ expires_at?: string;
34242
+ id?: string;
34243
+ mode?: string;
34244
+ origin_id?: string;
34245
+ source?: string;
34246
+ updated_at?: string;
34247
+ };
34248
+ Relationships: [{
34249
+ foreignKeyName: "maps_travel_times_destination_id_fkey";
34250
+ columns: ["destination_id"];
34251
+ isOneToOne: false;
34252
+ referencedRelation: "maps_addresses";
34253
+ referencedColumns: ["id"];
34254
+ }, {
34255
+ foreignKeyName: "maps_travel_times_origin_id_fkey";
34256
+ columns: ["origin_id"];
34257
+ isOneToOne: false;
34258
+ referencedRelation: "maps_addresses";
34259
+ referencedColumns: ["id"];
34260
+ }];
34261
+ };
34262
+ maps_usage_log: {
34263
+ Row: {
34264
+ cache_hits: number;
34265
+ call_type: string;
34266
+ created_at: string;
34267
+ day: string;
34268
+ detail: string | null;
34269
+ elements: number;
34270
+ id: string;
34271
+ outcome: string;
34272
+ };
34273
+ Insert: {
34274
+ cache_hits?: number;
34275
+ call_type: string;
34276
+ created_at?: string;
34277
+ day?: string;
34278
+ detail?: string | null;
34279
+ elements?: number;
34280
+ id?: string;
34281
+ outcome?: string;
34282
+ };
34283
+ Update: {
34284
+ cache_hits?: number;
34285
+ call_type?: string;
34286
+ created_at?: string;
34287
+ day?: string;
34288
+ detail?: string | null;
34289
+ elements?: number;
34290
+ id?: string;
34291
+ outcome?: string;
34292
+ };
34293
+ Relationships: [];
34294
+ };
33580
34295
  material_usage: {
33581
34296
  Row: {
33582
34297
  created_at: string;
@@ -36226,6 +36941,39 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
36226
36941
  };
36227
36942
  Relationships: [];
36228
36943
  };
36944
+ print_dedupe_events: {
36945
+ Row: {
36946
+ bestaande_job_id: string | null;
36947
+ created_at: string;
36948
+ detail: string | null;
36949
+ documentnaam: string | null;
36950
+ documenttype: string | null;
36951
+ id: string;
36952
+ idempotentie_sleutel: string;
36953
+ reden: string;
36954
+ };
36955
+ Insert: {
36956
+ bestaande_job_id?: string | null;
36957
+ created_at?: string;
36958
+ detail?: string | null;
36959
+ documentnaam?: string | null;
36960
+ documenttype?: string | null;
36961
+ id?: string;
36962
+ idempotentie_sleutel: string;
36963
+ reden: string;
36964
+ };
36965
+ Update: {
36966
+ bestaande_job_id?: string | null;
36967
+ created_at?: string;
36968
+ detail?: string | null;
36969
+ documentnaam?: string | null;
36970
+ documenttype?: string | null;
36971
+ id?: string;
36972
+ idempotentie_sleutel?: string;
36973
+ reden?: string;
36974
+ };
36975
+ Relationships: [];
36976
+ };
36229
36977
  print_job_logs: {
36230
36978
  Row: {
36231
36979
  created_at: string;
@@ -36267,6 +37015,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
36267
37015
  foutmelding: string | null;
36268
37016
  gebruiker_id: string | null;
36269
37017
  gebruiker_naam: string;
37018
+ gebruikte_bron: string | null;
37019
+ gebruikte_layout_id: string | null;
36270
37020
  gestart_op: string | null;
36271
37021
  herkomst: string | null;
36272
37022
  id: string;
@@ -36297,6 +37047,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
36297
37047
  foutmelding?: string | null;
36298
37048
  gebruiker_id?: string | null;
36299
37049
  gebruiker_naam?: string;
37050
+ gebruikte_bron?: string | null;
37051
+ gebruikte_layout_id?: string | null;
36300
37052
  gestart_op?: string | null;
36301
37053
  herkomst?: string | null;
36302
37054
  id?: string;
@@ -36327,6 +37079,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
36327
37079
  foutmelding?: string | null;
36328
37080
  gebruiker_id?: string | null;
36329
37081
  gebruiker_naam?: string;
37082
+ gebruikte_bron?: string | null;
37083
+ gebruikte_layout_id?: string | null;
36330
37084
  gestart_op?: string | null;
36331
37085
  herkomst?: string | null;
36332
37086
  id?: string;
@@ -36460,6 +37214,39 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
36460
37214
  };
36461
37215
  Relationships: [];
36462
37216
  };
37217
+ print_preview_events: {
37218
+ Row: {
37219
+ code: string | null;
37220
+ created_at: string;
37221
+ detail: import("../integrations/supabase/types").Json;
37222
+ id: string;
37223
+ queue_item_id: string | null;
37224
+ reden: string | null;
37225
+ station_slug: string | null;
37226
+ uitkomst: string;
37227
+ };
37228
+ Insert: {
37229
+ code?: string | null;
37230
+ created_at?: string;
37231
+ detail?: import("../integrations/supabase/types").Json;
37232
+ id?: string;
37233
+ queue_item_id?: string | null;
37234
+ reden?: string | null;
37235
+ station_slug?: string | null;
37236
+ uitkomst?: string;
37237
+ };
37238
+ Update: {
37239
+ code?: string | null;
37240
+ created_at?: string;
37241
+ detail?: import("../integrations/supabase/types").Json;
37242
+ id?: string;
37243
+ queue_item_id?: string | null;
37244
+ reden?: string | null;
37245
+ station_slug?: string | null;
37246
+ uitkomst?: string;
37247
+ };
37248
+ Relationships: [];
37249
+ };
36463
37250
  print_queue_runners: {
36464
37251
  Row: {
36465
37252
  actief: boolean;
@@ -36687,6 +37474,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
36687
37474
  created_at: string;
36688
37475
  driver: string;
36689
37476
  extern_printer_id: string | null;
37477
+ formaten_bijgewerkt_op: string | null;
36690
37478
  id: string;
36691
37479
  ip_adres: string | null;
36692
37480
  laatst_gezien: string | null;
@@ -36694,6 +37482,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
36694
37482
  merk: string;
36695
37483
  naam: string;
36696
37484
  omschrijving: string;
37485
+ ondersteunde_formaten: import("../integrations/supabase/types").Json | null;
37486
+ ondersteunde_laden: import("../integrations/supabase/types").Json | null;
36697
37487
  online: boolean;
36698
37488
  papierformaat: string;
36699
37489
  poort: number | null;
@@ -36709,6 +37499,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
36709
37499
  created_at?: string;
36710
37500
  driver?: string;
36711
37501
  extern_printer_id?: string | null;
37502
+ formaten_bijgewerkt_op?: string | null;
36712
37503
  id?: string;
36713
37504
  ip_adres?: string | null;
36714
37505
  laatst_gezien?: string | null;
@@ -36716,6 +37507,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
36716
37507
  merk?: string;
36717
37508
  naam: string;
36718
37509
  omschrijving?: string;
37510
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
37511
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
36719
37512
  online?: boolean;
36720
37513
  papierformaat?: string;
36721
37514
  poort?: number | null;
@@ -36731,6 +37524,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
36731
37524
  created_at?: string;
36732
37525
  driver?: string;
36733
37526
  extern_printer_id?: string | null;
37527
+ formaten_bijgewerkt_op?: string | null;
36734
37528
  id?: string;
36735
37529
  ip_adres?: string | null;
36736
37530
  laatst_gezien?: string | null;
@@ -36738,6 +37532,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
36738
37532
  merk?: string;
36739
37533
  naam?: string;
36740
37534
  omschrijving?: string;
37535
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
37536
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
36741
37537
  online?: boolean;
36742
37538
  papierformaat?: string;
36743
37539
  poort?: number | null;
@@ -38614,6 +39410,45 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
38614
39410
  };
38615
39411
  Relationships: [];
38616
39412
  };
39413
+ stock_consumption_alerts: {
39414
+ Row: {
39415
+ alert_type: string;
39416
+ created_at: string;
39417
+ id: string;
39418
+ mutation_log_id: string | null;
39419
+ order_id: string | null;
39420
+ order_item_id: string | null;
39421
+ qty: number;
39422
+ reason: string | null;
39423
+ resolved_at: string | null;
39424
+ updated_at: string;
39425
+ };
39426
+ Insert: {
39427
+ alert_type: string;
39428
+ created_at?: string;
39429
+ id?: string;
39430
+ mutation_log_id?: string | null;
39431
+ order_id?: string | null;
39432
+ order_item_id?: string | null;
39433
+ qty?: number;
39434
+ reason?: string | null;
39435
+ resolved_at?: string | null;
39436
+ updated_at?: string;
39437
+ };
39438
+ Update: {
39439
+ alert_type?: string;
39440
+ created_at?: string;
39441
+ id?: string;
39442
+ mutation_log_id?: string | null;
39443
+ order_id?: string | null;
39444
+ order_item_id?: string | null;
39445
+ qty?: number;
39446
+ reason?: string | null;
39447
+ resolved_at?: string | null;
39448
+ updated_at?: string;
39449
+ };
39450
+ Relationships: [];
39451
+ };
38617
39452
  stock_import_runs: {
38618
39453
  Row: {
38619
39454
  connection_id: string | null;
@@ -41467,6 +42302,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
41467
42302
  werkbon_package_items: {
41468
42303
  Row: {
41469
42304
  article_number: string | null;
42305
+ artikel_id: string | null;
41470
42306
  created_at: string;
41471
42307
  gtin: string | null;
41472
42308
  id: string;
@@ -41484,6 +42320,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
41484
42320
  };
41485
42321
  Insert: {
41486
42322
  article_number?: string | null;
42323
+ artikel_id?: string | null;
41487
42324
  created_at?: string;
41488
42325
  gtin?: string | null;
41489
42326
  id?: string;
@@ -41501,6 +42338,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
41501
42338
  };
41502
42339
  Update: {
41503
42340
  article_number?: string | null;
42341
+ artikel_id?: string | null;
41504
42342
  created_at?: string;
41505
42343
  gtin?: string | null;
41506
42344
  id?: string;
@@ -41517,6 +42355,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
41517
42355
  updated_at?: string;
41518
42356
  };
41519
42357
  Relationships: [{
42358
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
42359
+ columns: ["artikel_id"];
42360
+ isOneToOne: false;
42361
+ referencedRelation: "artikelen_cache";
42362
+ referencedColumns: ["id"];
42363
+ }, {
41520
42364
  foreignKeyName: "werkbon_package_items_package_id_fkey";
41521
42365
  columns: ["package_id"];
41522
42366
  isOneToOne: false;
@@ -42739,6 +43583,20 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
42739
43583
  referencedColumns: ["id"];
42740
43584
  }];
42741
43585
  };
43586
+ v_werkbon_totalen: {
43587
+ Row: {
43588
+ packages_cents: number | null;
43589
+ packages_minutes: number | null;
43590
+ werkbon_id: string | null;
43591
+ };
43592
+ Relationships: [{
43593
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
43594
+ columns: ["werkbon_id"];
43595
+ isOneToOne: false;
43596
+ referencedRelation: "werkbonnen";
43597
+ referencedColumns: ["id"];
43598
+ }];
43599
+ };
42742
43600
  };
42743
43601
  Functions: {
42744
43602
  _floriday_schedule_job: {
@@ -42925,6 +43783,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
42925
43783
  foutmelding: string | null;
42926
43784
  gebruiker_id: string | null;
42927
43785
  gebruiker_naam: string;
43786
+ gebruikte_bron: string | null;
43787
+ gebruikte_layout_id: string | null;
42928
43788
  gestart_op: string | null;
42929
43789
  herkomst: string | null;
42930
43790
  id: string;
@@ -43046,6 +43906,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
43046
43906
  foutmelding: string | null;
43047
43907
  gebruiker_id: string | null;
43048
43908
  gebruiker_naam: string;
43909
+ gebruikte_bron: string | null;
43910
+ gebruikte_layout_id: string | null;
43049
43911
  gestart_op: string | null;
43050
43912
  herkomst: string | null;
43051
43913
  id: string;
@@ -44102,6 +44964,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
44102
44964
  };
44103
44965
  Returns: string;
44104
44966
  };
44967
+ logistics_document_type_map: {
44968
+ Args: {
44969
+ _document_code: string;
44970
+ };
44971
+ Returns: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"][];
44972
+ };
44105
44973
  logistics_emit_event: {
44106
44974
  Args: {
44107
44975
  p_event_type: string;
@@ -44286,6 +45154,14 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
44286
45154
  };
44287
45155
  Returns: import("../integrations/supabase/types").Json;
44288
45156
  };
45157
+ logistics_plan_block: {
45158
+ Args: {
45159
+ p_details?: import("../integrations/supabase/types").Json;
45160
+ p_order_ids: string[];
45161
+ p_reason: string;
45162
+ };
45163
+ Returns: number;
45164
+ };
44289
45165
  logistics_plan_buffer_sql: {
44290
45166
  Args: {
44291
45167
  p_buffer_id: string;
@@ -44654,6 +45530,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
44654
45530
  verwijderd: number;
44655
45531
  }[];
44656
45532
  };
45533
+ order_departure_proof: {
45534
+ Args: {
45535
+ p_order_id: string;
45536
+ };
45537
+ Returns: import("../integrations/supabase/types").Json;
45538
+ };
44657
45539
  order_number_prefix: {
44658
45540
  Args: {
44659
45541
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -44661,6 +45543,25 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
44661
45543
  };
44662
45544
  Returns: string;
44663
45545
  };
45546
+ pakket_suggesties_voor_tekst: {
45547
+ Args: {
45548
+ _tekst: string;
45549
+ };
45550
+ Returns: {
45551
+ hit_type: string;
45552
+ package_id: string;
45553
+ priority: number;
45554
+ }[];
45555
+ };
45556
+ pakket_voor_reistijd: {
45557
+ Args: {
45558
+ _minuten: number;
45559
+ };
45560
+ Returns: {
45561
+ package_id: string;
45562
+ priority: number;
45563
+ }[];
45564
+ };
44664
45565
  pick_active_printers: {
44665
45566
  Args: never;
44666
45567
  Returns: {
@@ -44842,6 +45743,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
44842
45743
  };
44843
45744
  pick_enqueue_print_job: {
44844
45745
  Args: {
45746
+ _is_herprint?: boolean;
44845
45747
  _printer_id?: string;
44846
45748
  _queue_item_id: string;
44847
45749
  _session_id?: string;
@@ -44869,6 +45771,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
44869
45771
  omschrijving: string;
44870
45772
  }[];
44871
45773
  };
45774
+ pick_reference_data_status: {
45775
+ Args: never;
45776
+ Returns: import("../integrations/supabase/types").Json;
45777
+ };
44872
45778
  pick_release_expired_locks: {
44873
45779
  Args: never;
44874
45780
  Returns: number;
@@ -44933,6 +45839,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
44933
45839
  isSetofReturn: false;
44934
45840
  };
44935
45841
  };
45842
+ pick_seed_reference_data: {
45843
+ Args: never;
45844
+ Returns: import("../integrations/supabase/types").Json;
45845
+ };
44936
45846
  pick_set_station_print_plek: {
44937
45847
  Args: {
44938
45848
  _print_plek_id: string;
@@ -45024,6 +45934,24 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
45024
45934
  };
45025
45935
  Returns: undefined;
45026
45936
  };
45937
+ print_preview_toestaan: {
45938
+ Args: {
45939
+ _max?: number;
45940
+ _queue_item_id: string;
45941
+ _station_slug: string;
45942
+ _venster_sec?: number;
45943
+ };
45944
+ Returns: import("../integrations/supabase/types").Json;
45945
+ };
45946
+ print_preview_weiger: {
45947
+ Args: {
45948
+ _code: string;
45949
+ _queue_item_id: string;
45950
+ _reden: string;
45951
+ _station_slug: string;
45952
+ };
45953
+ Returns: undefined;
45954
+ };
45027
45955
  process_logistics_event: {
45028
45956
  Args: {
45029
45957
  p_event_id: string;
@@ -45141,6 +46069,14 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
45141
46069
  };
45142
46070
  Returns: undefined;
45143
46071
  };
46072
+ replace_order_carts: {
46073
+ Args: {
46074
+ p_buffer_id: string;
46075
+ p_carts: import("../integrations/supabase/types").Json;
46076
+ p_order_id: string;
46077
+ };
46078
+ Returns: import("../integrations/supabase/types").Json;
46079
+ };
45144
46080
  reset_floriday_sync_cursor: {
45145
46081
  Args: {
45146
46082
  p_connection_id: string;
@@ -45711,6 +46647,18 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
45711
46647
  Args: never;
45712
46648
  Returns: string;
45713
46649
  };
46650
+ werkbon_totalen: {
46651
+ Args: {
46652
+ _werkbon_id: string;
46653
+ };
46654
+ Returns: {
46655
+ materials_cents: number;
46656
+ packages_cents: number;
46657
+ packages_minutes: number;
46658
+ total_cents: number;
46659
+ total_minutes: number;
46660
+ }[];
46661
+ };
45714
46662
  wo_create_from_source: {
45715
46663
  Args: {
45716
46664
  _payload?: import("../integrations/supabase/types").Json;
@@ -45749,7 +46697,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
45749
46697
  };
45750
46698
  CompositeTypes: { [_ in never]: never; };
45751
46699
  }, {
45752
- PostgrestVersion: "14.5";
46700
+ PostgrestVersion: "14.17";
45753
46701
  }>;
45754
46702
  userId: string;
45755
46703
  claims: import("@supabase/auth-js").JwtPayload;