@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
@@ -10703,6 +10703,243 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
10703
10703
  };
10704
10704
  Relationships: [];
10705
10705
  };
10706
+ maps_addresses: {
10707
+ Row: {
10708
+ address_hash: string;
10709
+ created_at: string;
10710
+ error_reason: string | null;
10711
+ formatted_address: string | null;
10712
+ id: string;
10713
+ lat: number | null;
10714
+ lng: number | null;
10715
+ place_id: string | null;
10716
+ raw_address: string;
10717
+ resolved_at: string | null;
10718
+ status: string;
10719
+ updated_at: string;
10720
+ };
10721
+ Insert: {
10722
+ address_hash: string;
10723
+ created_at?: string;
10724
+ error_reason?: string | null;
10725
+ formatted_address?: string | null;
10726
+ id?: string;
10727
+ lat?: number | null;
10728
+ lng?: number | null;
10729
+ place_id?: string | null;
10730
+ raw_address: string;
10731
+ resolved_at?: string | null;
10732
+ status?: string;
10733
+ updated_at?: string;
10734
+ };
10735
+ Update: {
10736
+ address_hash?: string;
10737
+ created_at?: string;
10738
+ error_reason?: string | null;
10739
+ formatted_address?: string | null;
10740
+ id?: string;
10741
+ lat?: number | null;
10742
+ lng?: number | null;
10743
+ place_id?: string | null;
10744
+ raw_address?: string;
10745
+ resolved_at?: string | null;
10746
+ status?: string;
10747
+ updated_at?: string;
10748
+ };
10749
+ Relationships: [];
10750
+ };
10751
+ maps_job_lease: {
10752
+ Row: {
10753
+ job: string;
10754
+ locked_until: string;
10755
+ updated_at: string;
10756
+ };
10757
+ Insert: {
10758
+ job: string;
10759
+ locked_until?: string;
10760
+ updated_at?: string;
10761
+ };
10762
+ Update: {
10763
+ job?: string;
10764
+ locked_until?: string;
10765
+ updated_at?: string;
10766
+ };
10767
+ Relationships: [];
10768
+ };
10769
+ maps_request_queue: {
10770
+ Row: {
10771
+ attempts: number;
10772
+ created_at: string;
10773
+ destination_hash: string | null;
10774
+ id: string;
10775
+ kind: string;
10776
+ last_error: string | null;
10777
+ mode: string;
10778
+ origin_hash: string | null;
10779
+ processed_at: string | null;
10780
+ raw_destination: string | null;
10781
+ raw_origin: string | null;
10782
+ requested_by: string | null;
10783
+ status: string;
10784
+ updated_at: string;
10785
+ };
10786
+ Insert: {
10787
+ attempts?: number;
10788
+ created_at?: string;
10789
+ destination_hash?: string | null;
10790
+ id?: string;
10791
+ kind: string;
10792
+ last_error?: string | null;
10793
+ mode?: string;
10794
+ origin_hash?: string | null;
10795
+ processed_at?: string | null;
10796
+ raw_destination?: string | null;
10797
+ raw_origin?: string | null;
10798
+ requested_by?: string | null;
10799
+ status?: string;
10800
+ updated_at?: string;
10801
+ };
10802
+ Update: {
10803
+ attempts?: number;
10804
+ created_at?: string;
10805
+ destination_hash?: string | null;
10806
+ id?: string;
10807
+ kind?: string;
10808
+ last_error?: string | null;
10809
+ mode?: string;
10810
+ origin_hash?: string | null;
10811
+ processed_at?: string | null;
10812
+ raw_destination?: string | null;
10813
+ raw_origin?: string | null;
10814
+ requested_by?: string | null;
10815
+ status?: string;
10816
+ updated_at?: string;
10817
+ };
10818
+ Relationships: [];
10819
+ };
10820
+ maps_settings: {
10821
+ Row: {
10822
+ allow_estimate_fallback: boolean;
10823
+ cache_ttl_days: number;
10824
+ created_at: string;
10825
+ daily_call_limit: number;
10826
+ id: string;
10827
+ last_error: string | null;
10828
+ last_error_at: string | null;
10829
+ last_success_at: string | null;
10830
+ provider: string;
10831
+ updated_at: string;
10832
+ };
10833
+ Insert: {
10834
+ allow_estimate_fallback?: boolean;
10835
+ cache_ttl_days?: number;
10836
+ created_at?: string;
10837
+ daily_call_limit?: number;
10838
+ id?: string;
10839
+ last_error?: string | null;
10840
+ last_error_at?: string | null;
10841
+ last_success_at?: string | null;
10842
+ provider?: string;
10843
+ updated_at?: string;
10844
+ };
10845
+ Update: {
10846
+ allow_estimate_fallback?: boolean;
10847
+ cache_ttl_days?: number;
10848
+ created_at?: string;
10849
+ daily_call_limit?: number;
10850
+ id?: string;
10851
+ last_error?: string | null;
10852
+ last_error_at?: string | null;
10853
+ last_success_at?: string | null;
10854
+ provider?: string;
10855
+ updated_at?: string;
10856
+ };
10857
+ Relationships: [];
10858
+ };
10859
+ maps_travel_times: {
10860
+ Row: {
10861
+ created_at: string;
10862
+ destination_id: string;
10863
+ distance_m: number | null;
10864
+ duration_sec: number;
10865
+ expires_at: string;
10866
+ id: string;
10867
+ mode: string;
10868
+ origin_id: string;
10869
+ source: string;
10870
+ updated_at: string;
10871
+ };
10872
+ Insert: {
10873
+ created_at?: string;
10874
+ destination_id: string;
10875
+ distance_m?: number | null;
10876
+ duration_sec: number;
10877
+ expires_at?: string;
10878
+ id?: string;
10879
+ mode?: string;
10880
+ origin_id: string;
10881
+ source?: string;
10882
+ updated_at?: string;
10883
+ };
10884
+ Update: {
10885
+ created_at?: string;
10886
+ destination_id?: string;
10887
+ distance_m?: number | null;
10888
+ duration_sec?: number;
10889
+ expires_at?: string;
10890
+ id?: string;
10891
+ mode?: string;
10892
+ origin_id?: string;
10893
+ source?: string;
10894
+ updated_at?: string;
10895
+ };
10896
+ Relationships: [{
10897
+ foreignKeyName: "maps_travel_times_destination_id_fkey";
10898
+ columns: ["destination_id"];
10899
+ isOneToOne: false;
10900
+ referencedRelation: "maps_addresses";
10901
+ referencedColumns: ["id"];
10902
+ }, {
10903
+ foreignKeyName: "maps_travel_times_origin_id_fkey";
10904
+ columns: ["origin_id"];
10905
+ isOneToOne: false;
10906
+ referencedRelation: "maps_addresses";
10907
+ referencedColumns: ["id"];
10908
+ }];
10909
+ };
10910
+ maps_usage_log: {
10911
+ Row: {
10912
+ cache_hits: number;
10913
+ call_type: string;
10914
+ created_at: string;
10915
+ day: string;
10916
+ detail: string | null;
10917
+ elements: number;
10918
+ id: string;
10919
+ outcome: string;
10920
+ };
10921
+ Insert: {
10922
+ cache_hits?: number;
10923
+ call_type: string;
10924
+ created_at?: string;
10925
+ day?: string;
10926
+ detail?: string | null;
10927
+ elements?: number;
10928
+ id?: string;
10929
+ outcome?: string;
10930
+ };
10931
+ Update: {
10932
+ cache_hits?: number;
10933
+ call_type?: string;
10934
+ created_at?: string;
10935
+ day?: string;
10936
+ detail?: string | null;
10937
+ elements?: number;
10938
+ id?: string;
10939
+ outcome?: string;
10940
+ };
10941
+ Relationships: [];
10942
+ };
10706
10943
  material_usage: {
10707
10944
  Row: {
10708
10945
  created_at: string;
@@ -13352,6 +13589,39 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
13352
13589
  };
13353
13590
  Relationships: [];
13354
13591
  };
13592
+ print_dedupe_events: {
13593
+ Row: {
13594
+ bestaande_job_id: string | null;
13595
+ created_at: string;
13596
+ detail: string | null;
13597
+ documentnaam: string | null;
13598
+ documenttype: string | null;
13599
+ id: string;
13600
+ idempotentie_sleutel: string;
13601
+ reden: string;
13602
+ };
13603
+ Insert: {
13604
+ bestaande_job_id?: string | null;
13605
+ created_at?: string;
13606
+ detail?: string | null;
13607
+ documentnaam?: string | null;
13608
+ documenttype?: string | null;
13609
+ id?: string;
13610
+ idempotentie_sleutel: string;
13611
+ reden: string;
13612
+ };
13613
+ Update: {
13614
+ bestaande_job_id?: string | null;
13615
+ created_at?: string;
13616
+ detail?: string | null;
13617
+ documentnaam?: string | null;
13618
+ documenttype?: string | null;
13619
+ id?: string;
13620
+ idempotentie_sleutel?: string;
13621
+ reden?: string;
13622
+ };
13623
+ Relationships: [];
13624
+ };
13355
13625
  print_job_logs: {
13356
13626
  Row: {
13357
13627
  created_at: string;
@@ -13393,6 +13663,8 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
13393
13663
  foutmelding: string | null;
13394
13664
  gebruiker_id: string | null;
13395
13665
  gebruiker_naam: string;
13666
+ gebruikte_bron: string | null;
13667
+ gebruikte_layout_id: string | null;
13396
13668
  gestart_op: string | null;
13397
13669
  herkomst: string | null;
13398
13670
  id: string;
@@ -13423,6 +13695,8 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
13423
13695
  foutmelding?: string | null;
13424
13696
  gebruiker_id?: string | null;
13425
13697
  gebruiker_naam?: string;
13698
+ gebruikte_bron?: string | null;
13699
+ gebruikte_layout_id?: string | null;
13426
13700
  gestart_op?: string | null;
13427
13701
  herkomst?: string | null;
13428
13702
  id?: string;
@@ -13453,6 +13727,8 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
13453
13727
  foutmelding?: string | null;
13454
13728
  gebruiker_id?: string | null;
13455
13729
  gebruiker_naam?: string;
13730
+ gebruikte_bron?: string | null;
13731
+ gebruikte_layout_id?: string | null;
13456
13732
  gestart_op?: string | null;
13457
13733
  herkomst?: string | null;
13458
13734
  id?: string;
@@ -13586,6 +13862,39 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
13586
13862
  };
13587
13863
  Relationships: [];
13588
13864
  };
13865
+ print_preview_events: {
13866
+ Row: {
13867
+ code: string | null;
13868
+ created_at: string;
13869
+ detail: import("../integrations/supabase/types").Json;
13870
+ id: string;
13871
+ queue_item_id: string | null;
13872
+ reden: string | null;
13873
+ station_slug: string | null;
13874
+ uitkomst: string;
13875
+ };
13876
+ Insert: {
13877
+ code?: string | null;
13878
+ created_at?: string;
13879
+ detail?: import("../integrations/supabase/types").Json;
13880
+ id?: string;
13881
+ queue_item_id?: string | null;
13882
+ reden?: string | null;
13883
+ station_slug?: string | null;
13884
+ uitkomst?: string;
13885
+ };
13886
+ Update: {
13887
+ code?: string | null;
13888
+ created_at?: string;
13889
+ detail?: import("../integrations/supabase/types").Json;
13890
+ id?: string;
13891
+ queue_item_id?: string | null;
13892
+ reden?: string | null;
13893
+ station_slug?: string | null;
13894
+ uitkomst?: string;
13895
+ };
13896
+ Relationships: [];
13897
+ };
13589
13898
  print_queue_runners: {
13590
13899
  Row: {
13591
13900
  actief: boolean;
@@ -13813,6 +14122,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
13813
14122
  created_at: string;
13814
14123
  driver: string;
13815
14124
  extern_printer_id: string | null;
14125
+ formaten_bijgewerkt_op: string | null;
13816
14126
  id: string;
13817
14127
  ip_adres: string | null;
13818
14128
  laatst_gezien: string | null;
@@ -13820,6 +14130,8 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
13820
14130
  merk: string;
13821
14131
  naam: string;
13822
14132
  omschrijving: string;
14133
+ ondersteunde_formaten: import("../integrations/supabase/types").Json | null;
14134
+ ondersteunde_laden: import("../integrations/supabase/types").Json | null;
13823
14135
  online: boolean;
13824
14136
  papierformaat: string;
13825
14137
  poort: number | null;
@@ -13835,6 +14147,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
13835
14147
  created_at?: string;
13836
14148
  driver?: string;
13837
14149
  extern_printer_id?: string | null;
14150
+ formaten_bijgewerkt_op?: string | null;
13838
14151
  id?: string;
13839
14152
  ip_adres?: string | null;
13840
14153
  laatst_gezien?: string | null;
@@ -13842,6 +14155,8 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
13842
14155
  merk?: string;
13843
14156
  naam: string;
13844
14157
  omschrijving?: string;
14158
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
14159
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
13845
14160
  online?: boolean;
13846
14161
  papierformaat?: string;
13847
14162
  poort?: number | null;
@@ -13857,6 +14172,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
13857
14172
  created_at?: string;
13858
14173
  driver?: string;
13859
14174
  extern_printer_id?: string | null;
14175
+ formaten_bijgewerkt_op?: string | null;
13860
14176
  id?: string;
13861
14177
  ip_adres?: string | null;
13862
14178
  laatst_gezien?: string | null;
@@ -13864,6 +14180,8 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
13864
14180
  merk?: string;
13865
14181
  naam?: string;
13866
14182
  omschrijving?: string;
14183
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
14184
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
13867
14185
  online?: boolean;
13868
14186
  papierformaat?: string;
13869
14187
  poort?: number | null;
@@ -15740,6 +16058,45 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
15740
16058
  };
15741
16059
  Relationships: [];
15742
16060
  };
16061
+ stock_consumption_alerts: {
16062
+ Row: {
16063
+ alert_type: string;
16064
+ created_at: string;
16065
+ id: string;
16066
+ mutation_log_id: string | null;
16067
+ order_id: string | null;
16068
+ order_item_id: string | null;
16069
+ qty: number;
16070
+ reason: string | null;
16071
+ resolved_at: string | null;
16072
+ updated_at: string;
16073
+ };
16074
+ Insert: {
16075
+ alert_type: string;
16076
+ created_at?: string;
16077
+ id?: string;
16078
+ mutation_log_id?: string | null;
16079
+ order_id?: string | null;
16080
+ order_item_id?: string | null;
16081
+ qty?: number;
16082
+ reason?: string | null;
16083
+ resolved_at?: string | null;
16084
+ updated_at?: string;
16085
+ };
16086
+ Update: {
16087
+ alert_type?: string;
16088
+ created_at?: string;
16089
+ id?: string;
16090
+ mutation_log_id?: string | null;
16091
+ order_id?: string | null;
16092
+ order_item_id?: string | null;
16093
+ qty?: number;
16094
+ reason?: string | null;
16095
+ resolved_at?: string | null;
16096
+ updated_at?: string;
16097
+ };
16098
+ Relationships: [];
16099
+ };
15743
16100
  stock_import_runs: {
15744
16101
  Row: {
15745
16102
  connection_id: string | null;
@@ -18593,6 +18950,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
18593
18950
  werkbon_package_items: {
18594
18951
  Row: {
18595
18952
  article_number: string | null;
18953
+ artikel_id: string | null;
18596
18954
  created_at: string;
18597
18955
  gtin: string | null;
18598
18956
  id: string;
@@ -18610,6 +18968,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
18610
18968
  };
18611
18969
  Insert: {
18612
18970
  article_number?: string | null;
18971
+ artikel_id?: string | null;
18613
18972
  created_at?: string;
18614
18973
  gtin?: string | null;
18615
18974
  id?: string;
@@ -18627,6 +18986,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
18627
18986
  };
18628
18987
  Update: {
18629
18988
  article_number?: string | null;
18989
+ artikel_id?: string | null;
18630
18990
  created_at?: string;
18631
18991
  gtin?: string | null;
18632
18992
  id?: string;
@@ -18643,6 +19003,12 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
18643
19003
  updated_at?: string;
18644
19004
  };
18645
19005
  Relationships: [{
19006
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
19007
+ columns: ["artikel_id"];
19008
+ isOneToOne: false;
19009
+ referencedRelation: "artikelen_cache";
19010
+ referencedColumns: ["id"];
19011
+ }, {
18646
19012
  foreignKeyName: "werkbon_package_items_package_id_fkey";
18647
19013
  columns: ["package_id"];
18648
19014
  isOneToOne: false;
@@ -19865,6 +20231,20 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
19865
20231
  referencedColumns: ["id"];
19866
20232
  }];
19867
20233
  };
20234
+ v_werkbon_totalen: {
20235
+ Row: {
20236
+ packages_cents: number | null;
20237
+ packages_minutes: number | null;
20238
+ werkbon_id: string | null;
20239
+ };
20240
+ Relationships: [{
20241
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
20242
+ columns: ["werkbon_id"];
20243
+ isOneToOne: false;
20244
+ referencedRelation: "werkbonnen";
20245
+ referencedColumns: ["id"];
20246
+ }];
20247
+ };
19868
20248
  };
19869
20249
  Functions: {
19870
20250
  _floriday_schedule_job: {
@@ -20051,6 +20431,8 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
20051
20431
  foutmelding: string | null;
20052
20432
  gebruiker_id: string | null;
20053
20433
  gebruiker_naam: string;
20434
+ gebruikte_bron: string | null;
20435
+ gebruikte_layout_id: string | null;
20054
20436
  gestart_op: string | null;
20055
20437
  herkomst: string | null;
20056
20438
  id: string;
@@ -20172,6 +20554,8 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
20172
20554
  foutmelding: string | null;
20173
20555
  gebruiker_id: string | null;
20174
20556
  gebruiker_naam: string;
20557
+ gebruikte_bron: string | null;
20558
+ gebruikte_layout_id: string | null;
20175
20559
  gestart_op: string | null;
20176
20560
  herkomst: string | null;
20177
20561
  id: string;
@@ -21228,6 +21612,12 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
21228
21612
  };
21229
21613
  Returns: string;
21230
21614
  };
21615
+ logistics_document_type_map: {
21616
+ Args: {
21617
+ _document_code: string;
21618
+ };
21619
+ Returns: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"][];
21620
+ };
21231
21621
  logistics_emit_event: {
21232
21622
  Args: {
21233
21623
  p_event_type: string;
@@ -21412,6 +21802,14 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
21412
21802
  };
21413
21803
  Returns: import("../integrations/supabase/types").Json;
21414
21804
  };
21805
+ logistics_plan_block: {
21806
+ Args: {
21807
+ p_details?: import("../integrations/supabase/types").Json;
21808
+ p_order_ids: string[];
21809
+ p_reason: string;
21810
+ };
21811
+ Returns: number;
21812
+ };
21415
21813
  logistics_plan_buffer_sql: {
21416
21814
  Args: {
21417
21815
  p_buffer_id: string;
@@ -21780,6 +22178,12 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
21780
22178
  verwijderd: number;
21781
22179
  }[];
21782
22180
  };
22181
+ order_departure_proof: {
22182
+ Args: {
22183
+ p_order_id: string;
22184
+ };
22185
+ Returns: import("../integrations/supabase/types").Json;
22186
+ };
21783
22187
  order_number_prefix: {
21784
22188
  Args: {
21785
22189
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -21787,6 +22191,25 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
21787
22191
  };
21788
22192
  Returns: string;
21789
22193
  };
22194
+ pakket_suggesties_voor_tekst: {
22195
+ Args: {
22196
+ _tekst: string;
22197
+ };
22198
+ Returns: {
22199
+ hit_type: string;
22200
+ package_id: string;
22201
+ priority: number;
22202
+ }[];
22203
+ };
22204
+ pakket_voor_reistijd: {
22205
+ Args: {
22206
+ _minuten: number;
22207
+ };
22208
+ Returns: {
22209
+ package_id: string;
22210
+ priority: number;
22211
+ }[];
22212
+ };
21790
22213
  pick_active_printers: {
21791
22214
  Args: never;
21792
22215
  Returns: {
@@ -21968,6 +22391,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
21968
22391
  };
21969
22392
  pick_enqueue_print_job: {
21970
22393
  Args: {
22394
+ _is_herprint?: boolean;
21971
22395
  _printer_id?: string;
21972
22396
  _queue_item_id: string;
21973
22397
  _session_id?: string;
@@ -21995,6 +22419,10 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
21995
22419
  omschrijving: string;
21996
22420
  }[];
21997
22421
  };
22422
+ pick_reference_data_status: {
22423
+ Args: never;
22424
+ Returns: import("../integrations/supabase/types").Json;
22425
+ };
21998
22426
  pick_release_expired_locks: {
21999
22427
  Args: never;
22000
22428
  Returns: number;
@@ -22059,6 +22487,10 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
22059
22487
  isSetofReturn: false;
22060
22488
  };
22061
22489
  };
22490
+ pick_seed_reference_data: {
22491
+ Args: never;
22492
+ Returns: import("../integrations/supabase/types").Json;
22493
+ };
22062
22494
  pick_set_station_print_plek: {
22063
22495
  Args: {
22064
22496
  _print_plek_id: string;
@@ -22150,6 +22582,24 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
22150
22582
  };
22151
22583
  Returns: undefined;
22152
22584
  };
22585
+ print_preview_toestaan: {
22586
+ Args: {
22587
+ _max?: number;
22588
+ _queue_item_id: string;
22589
+ _station_slug: string;
22590
+ _venster_sec?: number;
22591
+ };
22592
+ Returns: import("../integrations/supabase/types").Json;
22593
+ };
22594
+ print_preview_weiger: {
22595
+ Args: {
22596
+ _code: string;
22597
+ _queue_item_id: string;
22598
+ _reden: string;
22599
+ _station_slug: string;
22600
+ };
22601
+ Returns: undefined;
22602
+ };
22153
22603
  process_logistics_event: {
22154
22604
  Args: {
22155
22605
  p_event_id: string;
@@ -22267,6 +22717,14 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
22267
22717
  };
22268
22718
  Returns: undefined;
22269
22719
  };
22720
+ replace_order_carts: {
22721
+ Args: {
22722
+ p_buffer_id: string;
22723
+ p_carts: import("../integrations/supabase/types").Json;
22724
+ p_order_id: string;
22725
+ };
22726
+ Returns: import("../integrations/supabase/types").Json;
22727
+ };
22270
22728
  reset_floriday_sync_cursor: {
22271
22729
  Args: {
22272
22730
  p_connection_id: string;
@@ -22837,6 +23295,18 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
22837
23295
  Args: never;
22838
23296
  Returns: string;
22839
23297
  };
23298
+ werkbon_totalen: {
23299
+ Args: {
23300
+ _werkbon_id: string;
23301
+ };
23302
+ Returns: {
23303
+ materials_cents: number;
23304
+ packages_cents: number;
23305
+ packages_minutes: number;
23306
+ total_cents: number;
23307
+ total_minutes: number;
23308
+ }[];
23309
+ };
22840
23310
  wo_create_from_source: {
22841
23311
  Args: {
22842
23312
  _payload?: import("../integrations/supabase/types").Json;
@@ -22875,7 +23345,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
22875
23345
  };
22876
23346
  CompositeTypes: { [_ in never]: never; };
22877
23347
  }, {
22878
- PostgrestVersion: "14.5";
23348
+ PostgrestVersion: "14.17";
22879
23349
  }>;
22880
23350
  userId: string;
22881
23351
  claims: import("@supabase/auth-js").JwtPayload;
@@ -33581,6 +34051,243 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
33581
34051
  };
33582
34052
  Relationships: [];
33583
34053
  };
34054
+ maps_addresses: {
34055
+ Row: {
34056
+ address_hash: string;
34057
+ created_at: string;
34058
+ error_reason: string | null;
34059
+ formatted_address: string | null;
34060
+ id: string;
34061
+ lat: number | null;
34062
+ lng: number | null;
34063
+ place_id: string | null;
34064
+ raw_address: string;
34065
+ resolved_at: string | null;
34066
+ status: string;
34067
+ updated_at: string;
34068
+ };
34069
+ Insert: {
34070
+ address_hash: string;
34071
+ created_at?: string;
34072
+ error_reason?: string | null;
34073
+ formatted_address?: string | null;
34074
+ id?: string;
34075
+ lat?: number | null;
34076
+ lng?: number | null;
34077
+ place_id?: string | null;
34078
+ raw_address: string;
34079
+ resolved_at?: string | null;
34080
+ status?: string;
34081
+ updated_at?: string;
34082
+ };
34083
+ Update: {
34084
+ address_hash?: string;
34085
+ created_at?: string;
34086
+ error_reason?: string | null;
34087
+ formatted_address?: string | null;
34088
+ id?: string;
34089
+ lat?: number | null;
34090
+ lng?: number | null;
34091
+ place_id?: string | null;
34092
+ raw_address?: string;
34093
+ resolved_at?: string | null;
34094
+ status?: string;
34095
+ updated_at?: string;
34096
+ };
34097
+ Relationships: [];
34098
+ };
34099
+ maps_job_lease: {
34100
+ Row: {
34101
+ job: string;
34102
+ locked_until: string;
34103
+ updated_at: string;
34104
+ };
34105
+ Insert: {
34106
+ job: string;
34107
+ locked_until?: string;
34108
+ updated_at?: string;
34109
+ };
34110
+ Update: {
34111
+ job?: string;
34112
+ locked_until?: string;
34113
+ updated_at?: string;
34114
+ };
34115
+ Relationships: [];
34116
+ };
34117
+ maps_request_queue: {
34118
+ Row: {
34119
+ attempts: number;
34120
+ created_at: string;
34121
+ destination_hash: string | null;
34122
+ id: string;
34123
+ kind: string;
34124
+ last_error: string | null;
34125
+ mode: string;
34126
+ origin_hash: string | null;
34127
+ processed_at: string | null;
34128
+ raw_destination: string | null;
34129
+ raw_origin: string | null;
34130
+ requested_by: string | null;
34131
+ status: string;
34132
+ updated_at: string;
34133
+ };
34134
+ Insert: {
34135
+ attempts?: number;
34136
+ created_at?: string;
34137
+ destination_hash?: string | null;
34138
+ id?: string;
34139
+ kind: string;
34140
+ last_error?: string | null;
34141
+ mode?: string;
34142
+ origin_hash?: string | null;
34143
+ processed_at?: string | null;
34144
+ raw_destination?: string | null;
34145
+ raw_origin?: string | null;
34146
+ requested_by?: string | null;
34147
+ status?: string;
34148
+ updated_at?: string;
34149
+ };
34150
+ Update: {
34151
+ attempts?: number;
34152
+ created_at?: string;
34153
+ destination_hash?: string | null;
34154
+ id?: string;
34155
+ kind?: string;
34156
+ last_error?: string | null;
34157
+ mode?: string;
34158
+ origin_hash?: string | null;
34159
+ processed_at?: string | null;
34160
+ raw_destination?: string | null;
34161
+ raw_origin?: string | null;
34162
+ requested_by?: string | null;
34163
+ status?: string;
34164
+ updated_at?: string;
34165
+ };
34166
+ Relationships: [];
34167
+ };
34168
+ maps_settings: {
34169
+ Row: {
34170
+ allow_estimate_fallback: boolean;
34171
+ cache_ttl_days: number;
34172
+ created_at: string;
34173
+ daily_call_limit: number;
34174
+ id: string;
34175
+ last_error: string | null;
34176
+ last_error_at: string | null;
34177
+ last_success_at: string | null;
34178
+ provider: string;
34179
+ updated_at: string;
34180
+ };
34181
+ Insert: {
34182
+ allow_estimate_fallback?: boolean;
34183
+ cache_ttl_days?: number;
34184
+ created_at?: string;
34185
+ daily_call_limit?: number;
34186
+ id?: string;
34187
+ last_error?: string | null;
34188
+ last_error_at?: string | null;
34189
+ last_success_at?: string | null;
34190
+ provider?: string;
34191
+ updated_at?: string;
34192
+ };
34193
+ Update: {
34194
+ allow_estimate_fallback?: boolean;
34195
+ cache_ttl_days?: number;
34196
+ created_at?: string;
34197
+ daily_call_limit?: number;
34198
+ id?: string;
34199
+ last_error?: string | null;
34200
+ last_error_at?: string | null;
34201
+ last_success_at?: string | null;
34202
+ provider?: string;
34203
+ updated_at?: string;
34204
+ };
34205
+ Relationships: [];
34206
+ };
34207
+ maps_travel_times: {
34208
+ Row: {
34209
+ created_at: string;
34210
+ destination_id: string;
34211
+ distance_m: number | null;
34212
+ duration_sec: number;
34213
+ expires_at: string;
34214
+ id: string;
34215
+ mode: string;
34216
+ origin_id: string;
34217
+ source: string;
34218
+ updated_at: string;
34219
+ };
34220
+ Insert: {
34221
+ created_at?: string;
34222
+ destination_id: string;
34223
+ distance_m?: number | null;
34224
+ duration_sec: number;
34225
+ expires_at?: string;
34226
+ id?: string;
34227
+ mode?: string;
34228
+ origin_id: string;
34229
+ source?: string;
34230
+ updated_at?: string;
34231
+ };
34232
+ Update: {
34233
+ created_at?: string;
34234
+ destination_id?: string;
34235
+ distance_m?: number | null;
34236
+ duration_sec?: number;
34237
+ expires_at?: string;
34238
+ id?: string;
34239
+ mode?: string;
34240
+ origin_id?: string;
34241
+ source?: string;
34242
+ updated_at?: string;
34243
+ };
34244
+ Relationships: [{
34245
+ foreignKeyName: "maps_travel_times_destination_id_fkey";
34246
+ columns: ["destination_id"];
34247
+ isOneToOne: false;
34248
+ referencedRelation: "maps_addresses";
34249
+ referencedColumns: ["id"];
34250
+ }, {
34251
+ foreignKeyName: "maps_travel_times_origin_id_fkey";
34252
+ columns: ["origin_id"];
34253
+ isOneToOne: false;
34254
+ referencedRelation: "maps_addresses";
34255
+ referencedColumns: ["id"];
34256
+ }];
34257
+ };
34258
+ maps_usage_log: {
34259
+ Row: {
34260
+ cache_hits: number;
34261
+ call_type: string;
34262
+ created_at: string;
34263
+ day: string;
34264
+ detail: string | null;
34265
+ elements: number;
34266
+ id: string;
34267
+ outcome: string;
34268
+ };
34269
+ Insert: {
34270
+ cache_hits?: number;
34271
+ call_type: string;
34272
+ created_at?: string;
34273
+ day?: string;
34274
+ detail?: string | null;
34275
+ elements?: number;
34276
+ id?: string;
34277
+ outcome?: string;
34278
+ };
34279
+ Update: {
34280
+ cache_hits?: number;
34281
+ call_type?: string;
34282
+ created_at?: string;
34283
+ day?: string;
34284
+ detail?: string | null;
34285
+ elements?: number;
34286
+ id?: string;
34287
+ outcome?: string;
34288
+ };
34289
+ Relationships: [];
34290
+ };
33584
34291
  material_usage: {
33585
34292
  Row: {
33586
34293
  created_at: string;
@@ -36230,6 +36937,39 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
36230
36937
  };
36231
36938
  Relationships: [];
36232
36939
  };
36940
+ print_dedupe_events: {
36941
+ Row: {
36942
+ bestaande_job_id: string | null;
36943
+ created_at: string;
36944
+ detail: string | null;
36945
+ documentnaam: string | null;
36946
+ documenttype: string | null;
36947
+ id: string;
36948
+ idempotentie_sleutel: string;
36949
+ reden: string;
36950
+ };
36951
+ Insert: {
36952
+ bestaande_job_id?: string | null;
36953
+ created_at?: string;
36954
+ detail?: string | null;
36955
+ documentnaam?: string | null;
36956
+ documenttype?: string | null;
36957
+ id?: string;
36958
+ idempotentie_sleutel: string;
36959
+ reden: string;
36960
+ };
36961
+ Update: {
36962
+ bestaande_job_id?: string | null;
36963
+ created_at?: string;
36964
+ detail?: string | null;
36965
+ documentnaam?: string | null;
36966
+ documenttype?: string | null;
36967
+ id?: string;
36968
+ idempotentie_sleutel?: string;
36969
+ reden?: string;
36970
+ };
36971
+ Relationships: [];
36972
+ };
36233
36973
  print_job_logs: {
36234
36974
  Row: {
36235
36975
  created_at: string;
@@ -36271,6 +37011,8 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
36271
37011
  foutmelding: string | null;
36272
37012
  gebruiker_id: string | null;
36273
37013
  gebruiker_naam: string;
37014
+ gebruikte_bron: string | null;
37015
+ gebruikte_layout_id: string | null;
36274
37016
  gestart_op: string | null;
36275
37017
  herkomst: string | null;
36276
37018
  id: string;
@@ -36301,6 +37043,8 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
36301
37043
  foutmelding?: string | null;
36302
37044
  gebruiker_id?: string | null;
36303
37045
  gebruiker_naam?: string;
37046
+ gebruikte_bron?: string | null;
37047
+ gebruikte_layout_id?: string | null;
36304
37048
  gestart_op?: string | null;
36305
37049
  herkomst?: string | null;
36306
37050
  id?: string;
@@ -36331,6 +37075,8 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
36331
37075
  foutmelding?: string | null;
36332
37076
  gebruiker_id?: string | null;
36333
37077
  gebruiker_naam?: string;
37078
+ gebruikte_bron?: string | null;
37079
+ gebruikte_layout_id?: string | null;
36334
37080
  gestart_op?: string | null;
36335
37081
  herkomst?: string | null;
36336
37082
  id?: string;
@@ -36464,6 +37210,39 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
36464
37210
  };
36465
37211
  Relationships: [];
36466
37212
  };
37213
+ print_preview_events: {
37214
+ Row: {
37215
+ code: string | null;
37216
+ created_at: string;
37217
+ detail: import("../integrations/supabase/types").Json;
37218
+ id: string;
37219
+ queue_item_id: string | null;
37220
+ reden: string | null;
37221
+ station_slug: string | null;
37222
+ uitkomst: string;
37223
+ };
37224
+ Insert: {
37225
+ code?: string | null;
37226
+ created_at?: string;
37227
+ detail?: import("../integrations/supabase/types").Json;
37228
+ id?: string;
37229
+ queue_item_id?: string | null;
37230
+ reden?: string | null;
37231
+ station_slug?: string | null;
37232
+ uitkomst?: string;
37233
+ };
37234
+ Update: {
37235
+ code?: string | null;
37236
+ created_at?: string;
37237
+ detail?: import("../integrations/supabase/types").Json;
37238
+ id?: string;
37239
+ queue_item_id?: string | null;
37240
+ reden?: string | null;
37241
+ station_slug?: string | null;
37242
+ uitkomst?: string;
37243
+ };
37244
+ Relationships: [];
37245
+ };
36467
37246
  print_queue_runners: {
36468
37247
  Row: {
36469
37248
  actief: boolean;
@@ -36691,6 +37470,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
36691
37470
  created_at: string;
36692
37471
  driver: string;
36693
37472
  extern_printer_id: string | null;
37473
+ formaten_bijgewerkt_op: string | null;
36694
37474
  id: string;
36695
37475
  ip_adres: string | null;
36696
37476
  laatst_gezien: string | null;
@@ -36698,6 +37478,8 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
36698
37478
  merk: string;
36699
37479
  naam: string;
36700
37480
  omschrijving: string;
37481
+ ondersteunde_formaten: import("../integrations/supabase/types").Json | null;
37482
+ ondersteunde_laden: import("../integrations/supabase/types").Json | null;
36701
37483
  online: boolean;
36702
37484
  papierformaat: string;
36703
37485
  poort: number | null;
@@ -36713,6 +37495,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
36713
37495
  created_at?: string;
36714
37496
  driver?: string;
36715
37497
  extern_printer_id?: string | null;
37498
+ formaten_bijgewerkt_op?: string | null;
36716
37499
  id?: string;
36717
37500
  ip_adres?: string | null;
36718
37501
  laatst_gezien?: string | null;
@@ -36720,6 +37503,8 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
36720
37503
  merk?: string;
36721
37504
  naam: string;
36722
37505
  omschrijving?: string;
37506
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
37507
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
36723
37508
  online?: boolean;
36724
37509
  papierformaat?: string;
36725
37510
  poort?: number | null;
@@ -36735,6 +37520,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
36735
37520
  created_at?: string;
36736
37521
  driver?: string;
36737
37522
  extern_printer_id?: string | null;
37523
+ formaten_bijgewerkt_op?: string | null;
36738
37524
  id?: string;
36739
37525
  ip_adres?: string | null;
36740
37526
  laatst_gezien?: string | null;
@@ -36742,6 +37528,8 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
36742
37528
  merk?: string;
36743
37529
  naam?: string;
36744
37530
  omschrijving?: string;
37531
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
37532
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
36745
37533
  online?: boolean;
36746
37534
  papierformaat?: string;
36747
37535
  poort?: number | null;
@@ -38618,6 +39406,45 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
38618
39406
  };
38619
39407
  Relationships: [];
38620
39408
  };
39409
+ stock_consumption_alerts: {
39410
+ Row: {
39411
+ alert_type: string;
39412
+ created_at: string;
39413
+ id: string;
39414
+ mutation_log_id: string | null;
39415
+ order_id: string | null;
39416
+ order_item_id: string | null;
39417
+ qty: number;
39418
+ reason: string | null;
39419
+ resolved_at: string | null;
39420
+ updated_at: string;
39421
+ };
39422
+ Insert: {
39423
+ alert_type: string;
39424
+ created_at?: string;
39425
+ id?: string;
39426
+ mutation_log_id?: string | null;
39427
+ order_id?: string | null;
39428
+ order_item_id?: string | null;
39429
+ qty?: number;
39430
+ reason?: string | null;
39431
+ resolved_at?: string | null;
39432
+ updated_at?: string;
39433
+ };
39434
+ Update: {
39435
+ alert_type?: string;
39436
+ created_at?: string;
39437
+ id?: string;
39438
+ mutation_log_id?: string | null;
39439
+ order_id?: string | null;
39440
+ order_item_id?: string | null;
39441
+ qty?: number;
39442
+ reason?: string | null;
39443
+ resolved_at?: string | null;
39444
+ updated_at?: string;
39445
+ };
39446
+ Relationships: [];
39447
+ };
38621
39448
  stock_import_runs: {
38622
39449
  Row: {
38623
39450
  connection_id: string | null;
@@ -41471,6 +42298,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
41471
42298
  werkbon_package_items: {
41472
42299
  Row: {
41473
42300
  article_number: string | null;
42301
+ artikel_id: string | null;
41474
42302
  created_at: string;
41475
42303
  gtin: string | null;
41476
42304
  id: string;
@@ -41488,6 +42316,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
41488
42316
  };
41489
42317
  Insert: {
41490
42318
  article_number?: string | null;
42319
+ artikel_id?: string | null;
41491
42320
  created_at?: string;
41492
42321
  gtin?: string | null;
41493
42322
  id?: string;
@@ -41505,6 +42334,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
41505
42334
  };
41506
42335
  Update: {
41507
42336
  article_number?: string | null;
42337
+ artikel_id?: string | null;
41508
42338
  created_at?: string;
41509
42339
  gtin?: string | null;
41510
42340
  id?: string;
@@ -41521,6 +42351,12 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
41521
42351
  updated_at?: string;
41522
42352
  };
41523
42353
  Relationships: [{
42354
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
42355
+ columns: ["artikel_id"];
42356
+ isOneToOne: false;
42357
+ referencedRelation: "artikelen_cache";
42358
+ referencedColumns: ["id"];
42359
+ }, {
41524
42360
  foreignKeyName: "werkbon_package_items_package_id_fkey";
41525
42361
  columns: ["package_id"];
41526
42362
  isOneToOne: false;
@@ -42743,6 +43579,20 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
42743
43579
  referencedColumns: ["id"];
42744
43580
  }];
42745
43581
  };
43582
+ v_werkbon_totalen: {
43583
+ Row: {
43584
+ packages_cents: number | null;
43585
+ packages_minutes: number | null;
43586
+ werkbon_id: string | null;
43587
+ };
43588
+ Relationships: [{
43589
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
43590
+ columns: ["werkbon_id"];
43591
+ isOneToOne: false;
43592
+ referencedRelation: "werkbonnen";
43593
+ referencedColumns: ["id"];
43594
+ }];
43595
+ };
42746
43596
  };
42747
43597
  Functions: {
42748
43598
  _floriday_schedule_job: {
@@ -42929,6 +43779,8 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
42929
43779
  foutmelding: string | null;
42930
43780
  gebruiker_id: string | null;
42931
43781
  gebruiker_naam: string;
43782
+ gebruikte_bron: string | null;
43783
+ gebruikte_layout_id: string | null;
42932
43784
  gestart_op: string | null;
42933
43785
  herkomst: string | null;
42934
43786
  id: string;
@@ -43050,6 +43902,8 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
43050
43902
  foutmelding: string | null;
43051
43903
  gebruiker_id: string | null;
43052
43904
  gebruiker_naam: string;
43905
+ gebruikte_bron: string | null;
43906
+ gebruikte_layout_id: string | null;
43053
43907
  gestart_op: string | null;
43054
43908
  herkomst: string | null;
43055
43909
  id: string;
@@ -44106,6 +44960,12 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
44106
44960
  };
44107
44961
  Returns: string;
44108
44962
  };
44963
+ logistics_document_type_map: {
44964
+ Args: {
44965
+ _document_code: string;
44966
+ };
44967
+ Returns: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"][];
44968
+ };
44109
44969
  logistics_emit_event: {
44110
44970
  Args: {
44111
44971
  p_event_type: string;
@@ -44290,6 +45150,14 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
44290
45150
  };
44291
45151
  Returns: import("../integrations/supabase/types").Json;
44292
45152
  };
45153
+ logistics_plan_block: {
45154
+ Args: {
45155
+ p_details?: import("../integrations/supabase/types").Json;
45156
+ p_order_ids: string[];
45157
+ p_reason: string;
45158
+ };
45159
+ Returns: number;
45160
+ };
44293
45161
  logistics_plan_buffer_sql: {
44294
45162
  Args: {
44295
45163
  p_buffer_id: string;
@@ -44658,6 +45526,12 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
44658
45526
  verwijderd: number;
44659
45527
  }[];
44660
45528
  };
45529
+ order_departure_proof: {
45530
+ Args: {
45531
+ p_order_id: string;
45532
+ };
45533
+ Returns: import("../integrations/supabase/types").Json;
45534
+ };
44661
45535
  order_number_prefix: {
44662
45536
  Args: {
44663
45537
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -44665,6 +45539,25 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
44665
45539
  };
44666
45540
  Returns: string;
44667
45541
  };
45542
+ pakket_suggesties_voor_tekst: {
45543
+ Args: {
45544
+ _tekst: string;
45545
+ };
45546
+ Returns: {
45547
+ hit_type: string;
45548
+ package_id: string;
45549
+ priority: number;
45550
+ }[];
45551
+ };
45552
+ pakket_voor_reistijd: {
45553
+ Args: {
45554
+ _minuten: number;
45555
+ };
45556
+ Returns: {
45557
+ package_id: string;
45558
+ priority: number;
45559
+ }[];
45560
+ };
44668
45561
  pick_active_printers: {
44669
45562
  Args: never;
44670
45563
  Returns: {
@@ -44846,6 +45739,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
44846
45739
  };
44847
45740
  pick_enqueue_print_job: {
44848
45741
  Args: {
45742
+ _is_herprint?: boolean;
44849
45743
  _printer_id?: string;
44850
45744
  _queue_item_id: string;
44851
45745
  _session_id?: string;
@@ -44873,6 +45767,10 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
44873
45767
  omschrijving: string;
44874
45768
  }[];
44875
45769
  };
45770
+ pick_reference_data_status: {
45771
+ Args: never;
45772
+ Returns: import("../integrations/supabase/types").Json;
45773
+ };
44876
45774
  pick_release_expired_locks: {
44877
45775
  Args: never;
44878
45776
  Returns: number;
@@ -44937,6 +45835,10 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
44937
45835
  isSetofReturn: false;
44938
45836
  };
44939
45837
  };
45838
+ pick_seed_reference_data: {
45839
+ Args: never;
45840
+ Returns: import("../integrations/supabase/types").Json;
45841
+ };
44940
45842
  pick_set_station_print_plek: {
44941
45843
  Args: {
44942
45844
  _print_plek_id: string;
@@ -45028,6 +45930,24 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
45028
45930
  };
45029
45931
  Returns: undefined;
45030
45932
  };
45933
+ print_preview_toestaan: {
45934
+ Args: {
45935
+ _max?: number;
45936
+ _queue_item_id: string;
45937
+ _station_slug: string;
45938
+ _venster_sec?: number;
45939
+ };
45940
+ Returns: import("../integrations/supabase/types").Json;
45941
+ };
45942
+ print_preview_weiger: {
45943
+ Args: {
45944
+ _code: string;
45945
+ _queue_item_id: string;
45946
+ _reden: string;
45947
+ _station_slug: string;
45948
+ };
45949
+ Returns: undefined;
45950
+ };
45031
45951
  process_logistics_event: {
45032
45952
  Args: {
45033
45953
  p_event_id: string;
@@ -45145,6 +46065,14 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
45145
46065
  };
45146
46066
  Returns: undefined;
45147
46067
  };
46068
+ replace_order_carts: {
46069
+ Args: {
46070
+ p_buffer_id: string;
46071
+ p_carts: import("../integrations/supabase/types").Json;
46072
+ p_order_id: string;
46073
+ };
46074
+ Returns: import("../integrations/supabase/types").Json;
46075
+ };
45148
46076
  reset_floriday_sync_cursor: {
45149
46077
  Args: {
45150
46078
  p_connection_id: string;
@@ -45715,6 +46643,18 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
45715
46643
  Args: never;
45716
46644
  Returns: string;
45717
46645
  };
46646
+ werkbon_totalen: {
46647
+ Args: {
46648
+ _werkbon_id: string;
46649
+ };
46650
+ Returns: {
46651
+ materials_cents: number;
46652
+ packages_cents: number;
46653
+ packages_minutes: number;
46654
+ total_cents: number;
46655
+ total_minutes: number;
46656
+ }[];
46657
+ };
45718
46658
  wo_create_from_source: {
45719
46659
  Args: {
45720
46660
  _payload?: import("../integrations/supabase/types").Json;
@@ -45753,7 +46693,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
45753
46693
  };
45754
46694
  CompositeTypes: { [_ in never]: never; };
45755
46695
  }, {
45756
- PostgrestVersion: "14.5";
46696
+ PostgrestVersion: "14.17";
45757
46697
  }>;
45758
46698
  userId: string;
45759
46699
  claims: import("@supabase/auth-js").JwtPayload;
@@ -56453,6 +57393,243 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
56453
57393
  };
56454
57394
  Relationships: [];
56455
57395
  };
57396
+ maps_addresses: {
57397
+ Row: {
57398
+ address_hash: string;
57399
+ created_at: string;
57400
+ error_reason: string | null;
57401
+ formatted_address: string | null;
57402
+ id: string;
57403
+ lat: number | null;
57404
+ lng: number | null;
57405
+ place_id: string | null;
57406
+ raw_address: string;
57407
+ resolved_at: string | null;
57408
+ status: string;
57409
+ updated_at: string;
57410
+ };
57411
+ Insert: {
57412
+ address_hash: string;
57413
+ created_at?: string;
57414
+ error_reason?: string | null;
57415
+ formatted_address?: string | null;
57416
+ id?: string;
57417
+ lat?: number | null;
57418
+ lng?: number | null;
57419
+ place_id?: string | null;
57420
+ raw_address: string;
57421
+ resolved_at?: string | null;
57422
+ status?: string;
57423
+ updated_at?: string;
57424
+ };
57425
+ Update: {
57426
+ address_hash?: string;
57427
+ created_at?: string;
57428
+ error_reason?: string | null;
57429
+ formatted_address?: string | null;
57430
+ id?: string;
57431
+ lat?: number | null;
57432
+ lng?: number | null;
57433
+ place_id?: string | null;
57434
+ raw_address?: string;
57435
+ resolved_at?: string | null;
57436
+ status?: string;
57437
+ updated_at?: string;
57438
+ };
57439
+ Relationships: [];
57440
+ };
57441
+ maps_job_lease: {
57442
+ Row: {
57443
+ job: string;
57444
+ locked_until: string;
57445
+ updated_at: string;
57446
+ };
57447
+ Insert: {
57448
+ job: string;
57449
+ locked_until?: string;
57450
+ updated_at?: string;
57451
+ };
57452
+ Update: {
57453
+ job?: string;
57454
+ locked_until?: string;
57455
+ updated_at?: string;
57456
+ };
57457
+ Relationships: [];
57458
+ };
57459
+ maps_request_queue: {
57460
+ Row: {
57461
+ attempts: number;
57462
+ created_at: string;
57463
+ destination_hash: string | null;
57464
+ id: string;
57465
+ kind: string;
57466
+ last_error: string | null;
57467
+ mode: string;
57468
+ origin_hash: string | null;
57469
+ processed_at: string | null;
57470
+ raw_destination: string | null;
57471
+ raw_origin: string | null;
57472
+ requested_by: string | null;
57473
+ status: string;
57474
+ updated_at: string;
57475
+ };
57476
+ Insert: {
57477
+ attempts?: number;
57478
+ created_at?: string;
57479
+ destination_hash?: string | null;
57480
+ id?: string;
57481
+ kind: string;
57482
+ last_error?: string | null;
57483
+ mode?: string;
57484
+ origin_hash?: string | null;
57485
+ processed_at?: string | null;
57486
+ raw_destination?: string | null;
57487
+ raw_origin?: string | null;
57488
+ requested_by?: string | null;
57489
+ status?: string;
57490
+ updated_at?: string;
57491
+ };
57492
+ Update: {
57493
+ attempts?: number;
57494
+ created_at?: string;
57495
+ destination_hash?: string | null;
57496
+ id?: string;
57497
+ kind?: string;
57498
+ last_error?: string | null;
57499
+ mode?: string;
57500
+ origin_hash?: string | null;
57501
+ processed_at?: string | null;
57502
+ raw_destination?: string | null;
57503
+ raw_origin?: string | null;
57504
+ requested_by?: string | null;
57505
+ status?: string;
57506
+ updated_at?: string;
57507
+ };
57508
+ Relationships: [];
57509
+ };
57510
+ maps_settings: {
57511
+ Row: {
57512
+ allow_estimate_fallback: boolean;
57513
+ cache_ttl_days: number;
57514
+ created_at: string;
57515
+ daily_call_limit: number;
57516
+ id: string;
57517
+ last_error: string | null;
57518
+ last_error_at: string | null;
57519
+ last_success_at: string | null;
57520
+ provider: string;
57521
+ updated_at: string;
57522
+ };
57523
+ Insert: {
57524
+ allow_estimate_fallback?: boolean;
57525
+ cache_ttl_days?: number;
57526
+ created_at?: string;
57527
+ daily_call_limit?: number;
57528
+ id?: string;
57529
+ last_error?: string | null;
57530
+ last_error_at?: string | null;
57531
+ last_success_at?: string | null;
57532
+ provider?: string;
57533
+ updated_at?: string;
57534
+ };
57535
+ Update: {
57536
+ allow_estimate_fallback?: boolean;
57537
+ cache_ttl_days?: number;
57538
+ created_at?: string;
57539
+ daily_call_limit?: number;
57540
+ id?: string;
57541
+ last_error?: string | null;
57542
+ last_error_at?: string | null;
57543
+ last_success_at?: string | null;
57544
+ provider?: string;
57545
+ updated_at?: string;
57546
+ };
57547
+ Relationships: [];
57548
+ };
57549
+ maps_travel_times: {
57550
+ Row: {
57551
+ created_at: string;
57552
+ destination_id: string;
57553
+ distance_m: number | null;
57554
+ duration_sec: number;
57555
+ expires_at: string;
57556
+ id: string;
57557
+ mode: string;
57558
+ origin_id: string;
57559
+ source: string;
57560
+ updated_at: string;
57561
+ };
57562
+ Insert: {
57563
+ created_at?: string;
57564
+ destination_id: string;
57565
+ distance_m?: number | null;
57566
+ duration_sec: number;
57567
+ expires_at?: string;
57568
+ id?: string;
57569
+ mode?: string;
57570
+ origin_id: string;
57571
+ source?: string;
57572
+ updated_at?: string;
57573
+ };
57574
+ Update: {
57575
+ created_at?: string;
57576
+ destination_id?: string;
57577
+ distance_m?: number | null;
57578
+ duration_sec?: number;
57579
+ expires_at?: string;
57580
+ id?: string;
57581
+ mode?: string;
57582
+ origin_id?: string;
57583
+ source?: string;
57584
+ updated_at?: string;
57585
+ };
57586
+ Relationships: [{
57587
+ foreignKeyName: "maps_travel_times_destination_id_fkey";
57588
+ columns: ["destination_id"];
57589
+ isOneToOne: false;
57590
+ referencedRelation: "maps_addresses";
57591
+ referencedColumns: ["id"];
57592
+ }, {
57593
+ foreignKeyName: "maps_travel_times_origin_id_fkey";
57594
+ columns: ["origin_id"];
57595
+ isOneToOne: false;
57596
+ referencedRelation: "maps_addresses";
57597
+ referencedColumns: ["id"];
57598
+ }];
57599
+ };
57600
+ maps_usage_log: {
57601
+ Row: {
57602
+ cache_hits: number;
57603
+ call_type: string;
57604
+ created_at: string;
57605
+ day: string;
57606
+ detail: string | null;
57607
+ elements: number;
57608
+ id: string;
57609
+ outcome: string;
57610
+ };
57611
+ Insert: {
57612
+ cache_hits?: number;
57613
+ call_type: string;
57614
+ created_at?: string;
57615
+ day?: string;
57616
+ detail?: string | null;
57617
+ elements?: number;
57618
+ id?: string;
57619
+ outcome?: string;
57620
+ };
57621
+ Update: {
57622
+ cache_hits?: number;
57623
+ call_type?: string;
57624
+ created_at?: string;
57625
+ day?: string;
57626
+ detail?: string | null;
57627
+ elements?: number;
57628
+ id?: string;
57629
+ outcome?: string;
57630
+ };
57631
+ Relationships: [];
57632
+ };
56456
57633
  material_usage: {
56457
57634
  Row: {
56458
57635
  created_at: string;
@@ -59102,6 +60279,39 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
59102
60279
  };
59103
60280
  Relationships: [];
59104
60281
  };
60282
+ print_dedupe_events: {
60283
+ Row: {
60284
+ bestaande_job_id: string | null;
60285
+ created_at: string;
60286
+ detail: string | null;
60287
+ documentnaam: string | null;
60288
+ documenttype: string | null;
60289
+ id: string;
60290
+ idempotentie_sleutel: string;
60291
+ reden: string;
60292
+ };
60293
+ Insert: {
60294
+ bestaande_job_id?: string | null;
60295
+ created_at?: string;
60296
+ detail?: string | null;
60297
+ documentnaam?: string | null;
60298
+ documenttype?: string | null;
60299
+ id?: string;
60300
+ idempotentie_sleutel: string;
60301
+ reden: string;
60302
+ };
60303
+ Update: {
60304
+ bestaande_job_id?: string | null;
60305
+ created_at?: string;
60306
+ detail?: string | null;
60307
+ documentnaam?: string | null;
60308
+ documenttype?: string | null;
60309
+ id?: string;
60310
+ idempotentie_sleutel?: string;
60311
+ reden?: string;
60312
+ };
60313
+ Relationships: [];
60314
+ };
59105
60315
  print_job_logs: {
59106
60316
  Row: {
59107
60317
  created_at: string;
@@ -59143,6 +60353,8 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
59143
60353
  foutmelding: string | null;
59144
60354
  gebruiker_id: string | null;
59145
60355
  gebruiker_naam: string;
60356
+ gebruikte_bron: string | null;
60357
+ gebruikte_layout_id: string | null;
59146
60358
  gestart_op: string | null;
59147
60359
  herkomst: string | null;
59148
60360
  id: string;
@@ -59173,6 +60385,8 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
59173
60385
  foutmelding?: string | null;
59174
60386
  gebruiker_id?: string | null;
59175
60387
  gebruiker_naam?: string;
60388
+ gebruikte_bron?: string | null;
60389
+ gebruikte_layout_id?: string | null;
59176
60390
  gestart_op?: string | null;
59177
60391
  herkomst?: string | null;
59178
60392
  id?: string;
@@ -59203,6 +60417,8 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
59203
60417
  foutmelding?: string | null;
59204
60418
  gebruiker_id?: string | null;
59205
60419
  gebruiker_naam?: string;
60420
+ gebruikte_bron?: string | null;
60421
+ gebruikte_layout_id?: string | null;
59206
60422
  gestart_op?: string | null;
59207
60423
  herkomst?: string | null;
59208
60424
  id?: string;
@@ -59336,6 +60552,39 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
59336
60552
  };
59337
60553
  Relationships: [];
59338
60554
  };
60555
+ print_preview_events: {
60556
+ Row: {
60557
+ code: string | null;
60558
+ created_at: string;
60559
+ detail: import("../integrations/supabase/types").Json;
60560
+ id: string;
60561
+ queue_item_id: string | null;
60562
+ reden: string | null;
60563
+ station_slug: string | null;
60564
+ uitkomst: string;
60565
+ };
60566
+ Insert: {
60567
+ code?: string | null;
60568
+ created_at?: string;
60569
+ detail?: import("../integrations/supabase/types").Json;
60570
+ id?: string;
60571
+ queue_item_id?: string | null;
60572
+ reden?: string | null;
60573
+ station_slug?: string | null;
60574
+ uitkomst?: string;
60575
+ };
60576
+ Update: {
60577
+ code?: string | null;
60578
+ created_at?: string;
60579
+ detail?: import("../integrations/supabase/types").Json;
60580
+ id?: string;
60581
+ queue_item_id?: string | null;
60582
+ reden?: string | null;
60583
+ station_slug?: string | null;
60584
+ uitkomst?: string;
60585
+ };
60586
+ Relationships: [];
60587
+ };
59339
60588
  print_queue_runners: {
59340
60589
  Row: {
59341
60590
  actief: boolean;
@@ -59563,6 +60812,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
59563
60812
  created_at: string;
59564
60813
  driver: string;
59565
60814
  extern_printer_id: string | null;
60815
+ formaten_bijgewerkt_op: string | null;
59566
60816
  id: string;
59567
60817
  ip_adres: string | null;
59568
60818
  laatst_gezien: string | null;
@@ -59570,6 +60820,8 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
59570
60820
  merk: string;
59571
60821
  naam: string;
59572
60822
  omschrijving: string;
60823
+ ondersteunde_formaten: import("../integrations/supabase/types").Json | null;
60824
+ ondersteunde_laden: import("../integrations/supabase/types").Json | null;
59573
60825
  online: boolean;
59574
60826
  papierformaat: string;
59575
60827
  poort: number | null;
@@ -59585,6 +60837,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
59585
60837
  created_at?: string;
59586
60838
  driver?: string;
59587
60839
  extern_printer_id?: string | null;
60840
+ formaten_bijgewerkt_op?: string | null;
59588
60841
  id?: string;
59589
60842
  ip_adres?: string | null;
59590
60843
  laatst_gezien?: string | null;
@@ -59592,6 +60845,8 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
59592
60845
  merk?: string;
59593
60846
  naam: string;
59594
60847
  omschrijving?: string;
60848
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
60849
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
59595
60850
  online?: boolean;
59596
60851
  papierformaat?: string;
59597
60852
  poort?: number | null;
@@ -59607,6 +60862,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
59607
60862
  created_at?: string;
59608
60863
  driver?: string;
59609
60864
  extern_printer_id?: string | null;
60865
+ formaten_bijgewerkt_op?: string | null;
59610
60866
  id?: string;
59611
60867
  ip_adres?: string | null;
59612
60868
  laatst_gezien?: string | null;
@@ -59614,6 +60870,8 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
59614
60870
  merk?: string;
59615
60871
  naam?: string;
59616
60872
  omschrijving?: string;
60873
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
60874
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
59617
60875
  online?: boolean;
59618
60876
  papierformaat?: string;
59619
60877
  poort?: number | null;
@@ -61490,6 +62748,45 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
61490
62748
  };
61491
62749
  Relationships: [];
61492
62750
  };
62751
+ stock_consumption_alerts: {
62752
+ Row: {
62753
+ alert_type: string;
62754
+ created_at: string;
62755
+ id: string;
62756
+ mutation_log_id: string | null;
62757
+ order_id: string | null;
62758
+ order_item_id: string | null;
62759
+ qty: number;
62760
+ reason: string | null;
62761
+ resolved_at: string | null;
62762
+ updated_at: string;
62763
+ };
62764
+ Insert: {
62765
+ alert_type: string;
62766
+ created_at?: string;
62767
+ id?: string;
62768
+ mutation_log_id?: string | null;
62769
+ order_id?: string | null;
62770
+ order_item_id?: string | null;
62771
+ qty?: number;
62772
+ reason?: string | null;
62773
+ resolved_at?: string | null;
62774
+ updated_at?: string;
62775
+ };
62776
+ Update: {
62777
+ alert_type?: string;
62778
+ created_at?: string;
62779
+ id?: string;
62780
+ mutation_log_id?: string | null;
62781
+ order_id?: string | null;
62782
+ order_item_id?: string | null;
62783
+ qty?: number;
62784
+ reason?: string | null;
62785
+ resolved_at?: string | null;
62786
+ updated_at?: string;
62787
+ };
62788
+ Relationships: [];
62789
+ };
61493
62790
  stock_import_runs: {
61494
62791
  Row: {
61495
62792
  connection_id: string | null;
@@ -64343,6 +65640,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
64343
65640
  werkbon_package_items: {
64344
65641
  Row: {
64345
65642
  article_number: string | null;
65643
+ artikel_id: string | null;
64346
65644
  created_at: string;
64347
65645
  gtin: string | null;
64348
65646
  id: string;
@@ -64360,6 +65658,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
64360
65658
  };
64361
65659
  Insert: {
64362
65660
  article_number?: string | null;
65661
+ artikel_id?: string | null;
64363
65662
  created_at?: string;
64364
65663
  gtin?: string | null;
64365
65664
  id?: string;
@@ -64377,6 +65676,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
64377
65676
  };
64378
65677
  Update: {
64379
65678
  article_number?: string | null;
65679
+ artikel_id?: string | null;
64380
65680
  created_at?: string;
64381
65681
  gtin?: string | null;
64382
65682
  id?: string;
@@ -64393,6 +65693,12 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
64393
65693
  updated_at?: string;
64394
65694
  };
64395
65695
  Relationships: [{
65696
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
65697
+ columns: ["artikel_id"];
65698
+ isOneToOne: false;
65699
+ referencedRelation: "artikelen_cache";
65700
+ referencedColumns: ["id"];
65701
+ }, {
64396
65702
  foreignKeyName: "werkbon_package_items_package_id_fkey";
64397
65703
  columns: ["package_id"];
64398
65704
  isOneToOne: false;
@@ -65615,6 +66921,20 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
65615
66921
  referencedColumns: ["id"];
65616
66922
  }];
65617
66923
  };
66924
+ v_werkbon_totalen: {
66925
+ Row: {
66926
+ packages_cents: number | null;
66927
+ packages_minutes: number | null;
66928
+ werkbon_id: string | null;
66929
+ };
66930
+ Relationships: [{
66931
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
66932
+ columns: ["werkbon_id"];
66933
+ isOneToOne: false;
66934
+ referencedRelation: "werkbonnen";
66935
+ referencedColumns: ["id"];
66936
+ }];
66937
+ };
65618
66938
  };
65619
66939
  Functions: {
65620
66940
  _floriday_schedule_job: {
@@ -65801,6 +67121,8 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
65801
67121
  foutmelding: string | null;
65802
67122
  gebruiker_id: string | null;
65803
67123
  gebruiker_naam: string;
67124
+ gebruikte_bron: string | null;
67125
+ gebruikte_layout_id: string | null;
65804
67126
  gestart_op: string | null;
65805
67127
  herkomst: string | null;
65806
67128
  id: string;
@@ -65922,6 +67244,8 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
65922
67244
  foutmelding: string | null;
65923
67245
  gebruiker_id: string | null;
65924
67246
  gebruiker_naam: string;
67247
+ gebruikte_bron: string | null;
67248
+ gebruikte_layout_id: string | null;
65925
67249
  gestart_op: string | null;
65926
67250
  herkomst: string | null;
65927
67251
  id: string;
@@ -66978,6 +68302,12 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
66978
68302
  };
66979
68303
  Returns: string;
66980
68304
  };
68305
+ logistics_document_type_map: {
68306
+ Args: {
68307
+ _document_code: string;
68308
+ };
68309
+ Returns: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"][];
68310
+ };
66981
68311
  logistics_emit_event: {
66982
68312
  Args: {
66983
68313
  p_event_type: string;
@@ -67162,6 +68492,14 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
67162
68492
  };
67163
68493
  Returns: import("../integrations/supabase/types").Json;
67164
68494
  };
68495
+ logistics_plan_block: {
68496
+ Args: {
68497
+ p_details?: import("../integrations/supabase/types").Json;
68498
+ p_order_ids: string[];
68499
+ p_reason: string;
68500
+ };
68501
+ Returns: number;
68502
+ };
67165
68503
  logistics_plan_buffer_sql: {
67166
68504
  Args: {
67167
68505
  p_buffer_id: string;
@@ -67530,6 +68868,12 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
67530
68868
  verwijderd: number;
67531
68869
  }[];
67532
68870
  };
68871
+ order_departure_proof: {
68872
+ Args: {
68873
+ p_order_id: string;
68874
+ };
68875
+ Returns: import("../integrations/supabase/types").Json;
68876
+ };
67533
68877
  order_number_prefix: {
67534
68878
  Args: {
67535
68879
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -67537,6 +68881,25 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
67537
68881
  };
67538
68882
  Returns: string;
67539
68883
  };
68884
+ pakket_suggesties_voor_tekst: {
68885
+ Args: {
68886
+ _tekst: string;
68887
+ };
68888
+ Returns: {
68889
+ hit_type: string;
68890
+ package_id: string;
68891
+ priority: number;
68892
+ }[];
68893
+ };
68894
+ pakket_voor_reistijd: {
68895
+ Args: {
68896
+ _minuten: number;
68897
+ };
68898
+ Returns: {
68899
+ package_id: string;
68900
+ priority: number;
68901
+ }[];
68902
+ };
67540
68903
  pick_active_printers: {
67541
68904
  Args: never;
67542
68905
  Returns: {
@@ -67718,6 +69081,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
67718
69081
  };
67719
69082
  pick_enqueue_print_job: {
67720
69083
  Args: {
69084
+ _is_herprint?: boolean;
67721
69085
  _printer_id?: string;
67722
69086
  _queue_item_id: string;
67723
69087
  _session_id?: string;
@@ -67745,6 +69109,10 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
67745
69109
  omschrijving: string;
67746
69110
  }[];
67747
69111
  };
69112
+ pick_reference_data_status: {
69113
+ Args: never;
69114
+ Returns: import("../integrations/supabase/types").Json;
69115
+ };
67748
69116
  pick_release_expired_locks: {
67749
69117
  Args: never;
67750
69118
  Returns: number;
@@ -67809,6 +69177,10 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
67809
69177
  isSetofReturn: false;
67810
69178
  };
67811
69179
  };
69180
+ pick_seed_reference_data: {
69181
+ Args: never;
69182
+ Returns: import("../integrations/supabase/types").Json;
69183
+ };
67812
69184
  pick_set_station_print_plek: {
67813
69185
  Args: {
67814
69186
  _print_plek_id: string;
@@ -67900,6 +69272,24 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
67900
69272
  };
67901
69273
  Returns: undefined;
67902
69274
  };
69275
+ print_preview_toestaan: {
69276
+ Args: {
69277
+ _max?: number;
69278
+ _queue_item_id: string;
69279
+ _station_slug: string;
69280
+ _venster_sec?: number;
69281
+ };
69282
+ Returns: import("../integrations/supabase/types").Json;
69283
+ };
69284
+ print_preview_weiger: {
69285
+ Args: {
69286
+ _code: string;
69287
+ _queue_item_id: string;
69288
+ _reden: string;
69289
+ _station_slug: string;
69290
+ };
69291
+ Returns: undefined;
69292
+ };
67903
69293
  process_logistics_event: {
67904
69294
  Args: {
67905
69295
  p_event_id: string;
@@ -68017,6 +69407,14 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
68017
69407
  };
68018
69408
  Returns: undefined;
68019
69409
  };
69410
+ replace_order_carts: {
69411
+ Args: {
69412
+ p_buffer_id: string;
69413
+ p_carts: import("../integrations/supabase/types").Json;
69414
+ p_order_id: string;
69415
+ };
69416
+ Returns: import("../integrations/supabase/types").Json;
69417
+ };
68020
69418
  reset_floriday_sync_cursor: {
68021
69419
  Args: {
68022
69420
  p_connection_id: string;
@@ -68587,6 +69985,18 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
68587
69985
  Args: never;
68588
69986
  Returns: string;
68589
69987
  };
69988
+ werkbon_totalen: {
69989
+ Args: {
69990
+ _werkbon_id: string;
69991
+ };
69992
+ Returns: {
69993
+ materials_cents: number;
69994
+ packages_cents: number;
69995
+ packages_minutes: number;
69996
+ total_cents: number;
69997
+ total_minutes: number;
69998
+ }[];
69999
+ };
68590
70000
  wo_create_from_source: {
68591
70001
  Args: {
68592
70002
  _payload?: import("../integrations/supabase/types").Json;
@@ -68625,7 +70035,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
68625
70035
  };
68626
70036
  CompositeTypes: { [_ in never]: never; };
68627
70037
  }, {
68628
- PostgrestVersion: "14.5";
70038
+ PostgrestVersion: "14.17";
68629
70039
  }>;
68630
70040
  userId: string;
68631
70041
  claims: import("@supabase/auth-js").JwtPayload;
@@ -79332,6 +80742,243 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
79332
80742
  };
79333
80743
  Relationships: [];
79334
80744
  };
80745
+ maps_addresses: {
80746
+ Row: {
80747
+ address_hash: string;
80748
+ created_at: string;
80749
+ error_reason: string | null;
80750
+ formatted_address: string | null;
80751
+ id: string;
80752
+ lat: number | null;
80753
+ lng: number | null;
80754
+ place_id: string | null;
80755
+ raw_address: string;
80756
+ resolved_at: string | null;
80757
+ status: string;
80758
+ updated_at: string;
80759
+ };
80760
+ Insert: {
80761
+ address_hash: string;
80762
+ created_at?: string;
80763
+ error_reason?: string | null;
80764
+ formatted_address?: string | null;
80765
+ id?: string;
80766
+ lat?: number | null;
80767
+ lng?: number | null;
80768
+ place_id?: string | null;
80769
+ raw_address: string;
80770
+ resolved_at?: string | null;
80771
+ status?: string;
80772
+ updated_at?: string;
80773
+ };
80774
+ Update: {
80775
+ address_hash?: string;
80776
+ created_at?: string;
80777
+ error_reason?: string | null;
80778
+ formatted_address?: string | null;
80779
+ id?: string;
80780
+ lat?: number | null;
80781
+ lng?: number | null;
80782
+ place_id?: string | null;
80783
+ raw_address?: string;
80784
+ resolved_at?: string | null;
80785
+ status?: string;
80786
+ updated_at?: string;
80787
+ };
80788
+ Relationships: [];
80789
+ };
80790
+ maps_job_lease: {
80791
+ Row: {
80792
+ job: string;
80793
+ locked_until: string;
80794
+ updated_at: string;
80795
+ };
80796
+ Insert: {
80797
+ job: string;
80798
+ locked_until?: string;
80799
+ updated_at?: string;
80800
+ };
80801
+ Update: {
80802
+ job?: string;
80803
+ locked_until?: string;
80804
+ updated_at?: string;
80805
+ };
80806
+ Relationships: [];
80807
+ };
80808
+ maps_request_queue: {
80809
+ Row: {
80810
+ attempts: number;
80811
+ created_at: string;
80812
+ destination_hash: string | null;
80813
+ id: string;
80814
+ kind: string;
80815
+ last_error: string | null;
80816
+ mode: string;
80817
+ origin_hash: string | null;
80818
+ processed_at: string | null;
80819
+ raw_destination: string | null;
80820
+ raw_origin: string | null;
80821
+ requested_by: string | null;
80822
+ status: string;
80823
+ updated_at: string;
80824
+ };
80825
+ Insert: {
80826
+ attempts?: number;
80827
+ created_at?: string;
80828
+ destination_hash?: string | null;
80829
+ id?: string;
80830
+ kind: string;
80831
+ last_error?: string | null;
80832
+ mode?: string;
80833
+ origin_hash?: string | null;
80834
+ processed_at?: string | null;
80835
+ raw_destination?: string | null;
80836
+ raw_origin?: string | null;
80837
+ requested_by?: string | null;
80838
+ status?: string;
80839
+ updated_at?: string;
80840
+ };
80841
+ Update: {
80842
+ attempts?: number;
80843
+ created_at?: string;
80844
+ destination_hash?: string | null;
80845
+ id?: string;
80846
+ kind?: string;
80847
+ last_error?: string | null;
80848
+ mode?: string;
80849
+ origin_hash?: string | null;
80850
+ processed_at?: string | null;
80851
+ raw_destination?: string | null;
80852
+ raw_origin?: string | null;
80853
+ requested_by?: string | null;
80854
+ status?: string;
80855
+ updated_at?: string;
80856
+ };
80857
+ Relationships: [];
80858
+ };
80859
+ maps_settings: {
80860
+ Row: {
80861
+ allow_estimate_fallback: boolean;
80862
+ cache_ttl_days: number;
80863
+ created_at: string;
80864
+ daily_call_limit: number;
80865
+ id: string;
80866
+ last_error: string | null;
80867
+ last_error_at: string | null;
80868
+ last_success_at: string | null;
80869
+ provider: string;
80870
+ updated_at: string;
80871
+ };
80872
+ Insert: {
80873
+ allow_estimate_fallback?: boolean;
80874
+ cache_ttl_days?: number;
80875
+ created_at?: string;
80876
+ daily_call_limit?: number;
80877
+ id?: string;
80878
+ last_error?: string | null;
80879
+ last_error_at?: string | null;
80880
+ last_success_at?: string | null;
80881
+ provider?: string;
80882
+ updated_at?: string;
80883
+ };
80884
+ Update: {
80885
+ allow_estimate_fallback?: boolean;
80886
+ cache_ttl_days?: number;
80887
+ created_at?: string;
80888
+ daily_call_limit?: number;
80889
+ id?: string;
80890
+ last_error?: string | null;
80891
+ last_error_at?: string | null;
80892
+ last_success_at?: string | null;
80893
+ provider?: string;
80894
+ updated_at?: string;
80895
+ };
80896
+ Relationships: [];
80897
+ };
80898
+ maps_travel_times: {
80899
+ Row: {
80900
+ created_at: string;
80901
+ destination_id: string;
80902
+ distance_m: number | null;
80903
+ duration_sec: number;
80904
+ expires_at: string;
80905
+ id: string;
80906
+ mode: string;
80907
+ origin_id: string;
80908
+ source: string;
80909
+ updated_at: string;
80910
+ };
80911
+ Insert: {
80912
+ created_at?: string;
80913
+ destination_id: string;
80914
+ distance_m?: number | null;
80915
+ duration_sec: number;
80916
+ expires_at?: string;
80917
+ id?: string;
80918
+ mode?: string;
80919
+ origin_id: string;
80920
+ source?: string;
80921
+ updated_at?: string;
80922
+ };
80923
+ Update: {
80924
+ created_at?: string;
80925
+ destination_id?: string;
80926
+ distance_m?: number | null;
80927
+ duration_sec?: number;
80928
+ expires_at?: string;
80929
+ id?: string;
80930
+ mode?: string;
80931
+ origin_id?: string;
80932
+ source?: string;
80933
+ updated_at?: string;
80934
+ };
80935
+ Relationships: [{
80936
+ foreignKeyName: "maps_travel_times_destination_id_fkey";
80937
+ columns: ["destination_id"];
80938
+ isOneToOne: false;
80939
+ referencedRelation: "maps_addresses";
80940
+ referencedColumns: ["id"];
80941
+ }, {
80942
+ foreignKeyName: "maps_travel_times_origin_id_fkey";
80943
+ columns: ["origin_id"];
80944
+ isOneToOne: false;
80945
+ referencedRelation: "maps_addresses";
80946
+ referencedColumns: ["id"];
80947
+ }];
80948
+ };
80949
+ maps_usage_log: {
80950
+ Row: {
80951
+ cache_hits: number;
80952
+ call_type: string;
80953
+ created_at: string;
80954
+ day: string;
80955
+ detail: string | null;
80956
+ elements: number;
80957
+ id: string;
80958
+ outcome: string;
80959
+ };
80960
+ Insert: {
80961
+ cache_hits?: number;
80962
+ call_type: string;
80963
+ created_at?: string;
80964
+ day?: string;
80965
+ detail?: string | null;
80966
+ elements?: number;
80967
+ id?: string;
80968
+ outcome?: string;
80969
+ };
80970
+ Update: {
80971
+ cache_hits?: number;
80972
+ call_type?: string;
80973
+ created_at?: string;
80974
+ day?: string;
80975
+ detail?: string | null;
80976
+ elements?: number;
80977
+ id?: string;
80978
+ outcome?: string;
80979
+ };
80980
+ Relationships: [];
80981
+ };
79335
80982
  material_usage: {
79336
80983
  Row: {
79337
80984
  created_at: string;
@@ -81981,6 +83628,39 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
81981
83628
  };
81982
83629
  Relationships: [];
81983
83630
  };
83631
+ print_dedupe_events: {
83632
+ Row: {
83633
+ bestaande_job_id: string | null;
83634
+ created_at: string;
83635
+ detail: string | null;
83636
+ documentnaam: string | null;
83637
+ documenttype: string | null;
83638
+ id: string;
83639
+ idempotentie_sleutel: string;
83640
+ reden: string;
83641
+ };
83642
+ Insert: {
83643
+ bestaande_job_id?: string | null;
83644
+ created_at?: string;
83645
+ detail?: string | null;
83646
+ documentnaam?: string | null;
83647
+ documenttype?: string | null;
83648
+ id?: string;
83649
+ idempotentie_sleutel: string;
83650
+ reden: string;
83651
+ };
83652
+ Update: {
83653
+ bestaande_job_id?: string | null;
83654
+ created_at?: string;
83655
+ detail?: string | null;
83656
+ documentnaam?: string | null;
83657
+ documenttype?: string | null;
83658
+ id?: string;
83659
+ idempotentie_sleutel?: string;
83660
+ reden?: string;
83661
+ };
83662
+ Relationships: [];
83663
+ };
81984
83664
  print_job_logs: {
81985
83665
  Row: {
81986
83666
  created_at: string;
@@ -82022,6 +83702,8 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
82022
83702
  foutmelding: string | null;
82023
83703
  gebruiker_id: string | null;
82024
83704
  gebruiker_naam: string;
83705
+ gebruikte_bron: string | null;
83706
+ gebruikte_layout_id: string | null;
82025
83707
  gestart_op: string | null;
82026
83708
  herkomst: string | null;
82027
83709
  id: string;
@@ -82052,6 +83734,8 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
82052
83734
  foutmelding?: string | null;
82053
83735
  gebruiker_id?: string | null;
82054
83736
  gebruiker_naam?: string;
83737
+ gebruikte_bron?: string | null;
83738
+ gebruikte_layout_id?: string | null;
82055
83739
  gestart_op?: string | null;
82056
83740
  herkomst?: string | null;
82057
83741
  id?: string;
@@ -82082,6 +83766,8 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
82082
83766
  foutmelding?: string | null;
82083
83767
  gebruiker_id?: string | null;
82084
83768
  gebruiker_naam?: string;
83769
+ gebruikte_bron?: string | null;
83770
+ gebruikte_layout_id?: string | null;
82085
83771
  gestart_op?: string | null;
82086
83772
  herkomst?: string | null;
82087
83773
  id?: string;
@@ -82215,6 +83901,39 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
82215
83901
  };
82216
83902
  Relationships: [];
82217
83903
  };
83904
+ print_preview_events: {
83905
+ Row: {
83906
+ code: string | null;
83907
+ created_at: string;
83908
+ detail: import("../integrations/supabase/types").Json;
83909
+ id: string;
83910
+ queue_item_id: string | null;
83911
+ reden: string | null;
83912
+ station_slug: string | null;
83913
+ uitkomst: string;
83914
+ };
83915
+ Insert: {
83916
+ code?: string | null;
83917
+ created_at?: string;
83918
+ detail?: import("../integrations/supabase/types").Json;
83919
+ id?: string;
83920
+ queue_item_id?: string | null;
83921
+ reden?: string | null;
83922
+ station_slug?: string | null;
83923
+ uitkomst?: string;
83924
+ };
83925
+ Update: {
83926
+ code?: string | null;
83927
+ created_at?: string;
83928
+ detail?: import("../integrations/supabase/types").Json;
83929
+ id?: string;
83930
+ queue_item_id?: string | null;
83931
+ reden?: string | null;
83932
+ station_slug?: string | null;
83933
+ uitkomst?: string;
83934
+ };
83935
+ Relationships: [];
83936
+ };
82218
83937
  print_queue_runners: {
82219
83938
  Row: {
82220
83939
  actief: boolean;
@@ -82442,6 +84161,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
82442
84161
  created_at: string;
82443
84162
  driver: string;
82444
84163
  extern_printer_id: string | null;
84164
+ formaten_bijgewerkt_op: string | null;
82445
84165
  id: string;
82446
84166
  ip_adres: string | null;
82447
84167
  laatst_gezien: string | null;
@@ -82449,6 +84169,8 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
82449
84169
  merk: string;
82450
84170
  naam: string;
82451
84171
  omschrijving: string;
84172
+ ondersteunde_formaten: import("../integrations/supabase/types").Json | null;
84173
+ ondersteunde_laden: import("../integrations/supabase/types").Json | null;
82452
84174
  online: boolean;
82453
84175
  papierformaat: string;
82454
84176
  poort: number | null;
@@ -82464,6 +84186,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
82464
84186
  created_at?: string;
82465
84187
  driver?: string;
82466
84188
  extern_printer_id?: string | null;
84189
+ formaten_bijgewerkt_op?: string | null;
82467
84190
  id?: string;
82468
84191
  ip_adres?: string | null;
82469
84192
  laatst_gezien?: string | null;
@@ -82471,6 +84194,8 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
82471
84194
  merk?: string;
82472
84195
  naam: string;
82473
84196
  omschrijving?: string;
84197
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
84198
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
82474
84199
  online?: boolean;
82475
84200
  papierformaat?: string;
82476
84201
  poort?: number | null;
@@ -82486,6 +84211,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
82486
84211
  created_at?: string;
82487
84212
  driver?: string;
82488
84213
  extern_printer_id?: string | null;
84214
+ formaten_bijgewerkt_op?: string | null;
82489
84215
  id?: string;
82490
84216
  ip_adres?: string | null;
82491
84217
  laatst_gezien?: string | null;
@@ -82493,6 +84219,8 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
82493
84219
  merk?: string;
82494
84220
  naam?: string;
82495
84221
  omschrijving?: string;
84222
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
84223
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
82496
84224
  online?: boolean;
82497
84225
  papierformaat?: string;
82498
84226
  poort?: number | null;
@@ -84369,6 +86097,45 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
84369
86097
  };
84370
86098
  Relationships: [];
84371
86099
  };
86100
+ stock_consumption_alerts: {
86101
+ Row: {
86102
+ alert_type: string;
86103
+ created_at: string;
86104
+ id: string;
86105
+ mutation_log_id: string | null;
86106
+ order_id: string | null;
86107
+ order_item_id: string | null;
86108
+ qty: number;
86109
+ reason: string | null;
86110
+ resolved_at: string | null;
86111
+ updated_at: string;
86112
+ };
86113
+ Insert: {
86114
+ alert_type: string;
86115
+ created_at?: string;
86116
+ id?: string;
86117
+ mutation_log_id?: string | null;
86118
+ order_id?: string | null;
86119
+ order_item_id?: string | null;
86120
+ qty?: number;
86121
+ reason?: string | null;
86122
+ resolved_at?: string | null;
86123
+ updated_at?: string;
86124
+ };
86125
+ Update: {
86126
+ alert_type?: string;
86127
+ created_at?: string;
86128
+ id?: string;
86129
+ mutation_log_id?: string | null;
86130
+ order_id?: string | null;
86131
+ order_item_id?: string | null;
86132
+ qty?: number;
86133
+ reason?: string | null;
86134
+ resolved_at?: string | null;
86135
+ updated_at?: string;
86136
+ };
86137
+ Relationships: [];
86138
+ };
84372
86139
  stock_import_runs: {
84373
86140
  Row: {
84374
86141
  connection_id: string | null;
@@ -87222,6 +88989,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
87222
88989
  werkbon_package_items: {
87223
88990
  Row: {
87224
88991
  article_number: string | null;
88992
+ artikel_id: string | null;
87225
88993
  created_at: string;
87226
88994
  gtin: string | null;
87227
88995
  id: string;
@@ -87239,6 +89007,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
87239
89007
  };
87240
89008
  Insert: {
87241
89009
  article_number?: string | null;
89010
+ artikel_id?: string | null;
87242
89011
  created_at?: string;
87243
89012
  gtin?: string | null;
87244
89013
  id?: string;
@@ -87256,6 +89025,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
87256
89025
  };
87257
89026
  Update: {
87258
89027
  article_number?: string | null;
89028
+ artikel_id?: string | null;
87259
89029
  created_at?: string;
87260
89030
  gtin?: string | null;
87261
89031
  id?: string;
@@ -87272,6 +89042,12 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
87272
89042
  updated_at?: string;
87273
89043
  };
87274
89044
  Relationships: [{
89045
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
89046
+ columns: ["artikel_id"];
89047
+ isOneToOne: false;
89048
+ referencedRelation: "artikelen_cache";
89049
+ referencedColumns: ["id"];
89050
+ }, {
87275
89051
  foreignKeyName: "werkbon_package_items_package_id_fkey";
87276
89052
  columns: ["package_id"];
87277
89053
  isOneToOne: false;
@@ -88494,6 +90270,20 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
88494
90270
  referencedColumns: ["id"];
88495
90271
  }];
88496
90272
  };
90273
+ v_werkbon_totalen: {
90274
+ Row: {
90275
+ packages_cents: number | null;
90276
+ packages_minutes: number | null;
90277
+ werkbon_id: string | null;
90278
+ };
90279
+ Relationships: [{
90280
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
90281
+ columns: ["werkbon_id"];
90282
+ isOneToOne: false;
90283
+ referencedRelation: "werkbonnen";
90284
+ referencedColumns: ["id"];
90285
+ }];
90286
+ };
88497
90287
  };
88498
90288
  Functions: {
88499
90289
  _floriday_schedule_job: {
@@ -88680,6 +90470,8 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
88680
90470
  foutmelding: string | null;
88681
90471
  gebruiker_id: string | null;
88682
90472
  gebruiker_naam: string;
90473
+ gebruikte_bron: string | null;
90474
+ gebruikte_layout_id: string | null;
88683
90475
  gestart_op: string | null;
88684
90476
  herkomst: string | null;
88685
90477
  id: string;
@@ -88801,6 +90593,8 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
88801
90593
  foutmelding: string | null;
88802
90594
  gebruiker_id: string | null;
88803
90595
  gebruiker_naam: string;
90596
+ gebruikte_bron: string | null;
90597
+ gebruikte_layout_id: string | null;
88804
90598
  gestart_op: string | null;
88805
90599
  herkomst: string | null;
88806
90600
  id: string;
@@ -89857,6 +91651,12 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
89857
91651
  };
89858
91652
  Returns: string;
89859
91653
  };
91654
+ logistics_document_type_map: {
91655
+ Args: {
91656
+ _document_code: string;
91657
+ };
91658
+ Returns: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"][];
91659
+ };
89860
91660
  logistics_emit_event: {
89861
91661
  Args: {
89862
91662
  p_event_type: string;
@@ -90041,6 +91841,14 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
90041
91841
  };
90042
91842
  Returns: import("../integrations/supabase/types").Json;
90043
91843
  };
91844
+ logistics_plan_block: {
91845
+ Args: {
91846
+ p_details?: import("../integrations/supabase/types").Json;
91847
+ p_order_ids: string[];
91848
+ p_reason: string;
91849
+ };
91850
+ Returns: number;
91851
+ };
90044
91852
  logistics_plan_buffer_sql: {
90045
91853
  Args: {
90046
91854
  p_buffer_id: string;
@@ -90409,6 +92217,12 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
90409
92217
  verwijderd: number;
90410
92218
  }[];
90411
92219
  };
92220
+ order_departure_proof: {
92221
+ Args: {
92222
+ p_order_id: string;
92223
+ };
92224
+ Returns: import("../integrations/supabase/types").Json;
92225
+ };
90412
92226
  order_number_prefix: {
90413
92227
  Args: {
90414
92228
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -90416,6 +92230,25 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
90416
92230
  };
90417
92231
  Returns: string;
90418
92232
  };
92233
+ pakket_suggesties_voor_tekst: {
92234
+ Args: {
92235
+ _tekst: string;
92236
+ };
92237
+ Returns: {
92238
+ hit_type: string;
92239
+ package_id: string;
92240
+ priority: number;
92241
+ }[];
92242
+ };
92243
+ pakket_voor_reistijd: {
92244
+ Args: {
92245
+ _minuten: number;
92246
+ };
92247
+ Returns: {
92248
+ package_id: string;
92249
+ priority: number;
92250
+ }[];
92251
+ };
90419
92252
  pick_active_printers: {
90420
92253
  Args: never;
90421
92254
  Returns: {
@@ -90597,6 +92430,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
90597
92430
  };
90598
92431
  pick_enqueue_print_job: {
90599
92432
  Args: {
92433
+ _is_herprint?: boolean;
90600
92434
  _printer_id?: string;
90601
92435
  _queue_item_id: string;
90602
92436
  _session_id?: string;
@@ -90624,6 +92458,10 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
90624
92458
  omschrijving: string;
90625
92459
  }[];
90626
92460
  };
92461
+ pick_reference_data_status: {
92462
+ Args: never;
92463
+ Returns: import("../integrations/supabase/types").Json;
92464
+ };
90627
92465
  pick_release_expired_locks: {
90628
92466
  Args: never;
90629
92467
  Returns: number;
@@ -90688,6 +92526,10 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
90688
92526
  isSetofReturn: false;
90689
92527
  };
90690
92528
  };
92529
+ pick_seed_reference_data: {
92530
+ Args: never;
92531
+ Returns: import("../integrations/supabase/types").Json;
92532
+ };
90691
92533
  pick_set_station_print_plek: {
90692
92534
  Args: {
90693
92535
  _print_plek_id: string;
@@ -90779,6 +92621,24 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
90779
92621
  };
90780
92622
  Returns: undefined;
90781
92623
  };
92624
+ print_preview_toestaan: {
92625
+ Args: {
92626
+ _max?: number;
92627
+ _queue_item_id: string;
92628
+ _station_slug: string;
92629
+ _venster_sec?: number;
92630
+ };
92631
+ Returns: import("../integrations/supabase/types").Json;
92632
+ };
92633
+ print_preview_weiger: {
92634
+ Args: {
92635
+ _code: string;
92636
+ _queue_item_id: string;
92637
+ _reden: string;
92638
+ _station_slug: string;
92639
+ };
92640
+ Returns: undefined;
92641
+ };
90782
92642
  process_logistics_event: {
90783
92643
  Args: {
90784
92644
  p_event_id: string;
@@ -90896,6 +92756,14 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
90896
92756
  };
90897
92757
  Returns: undefined;
90898
92758
  };
92759
+ replace_order_carts: {
92760
+ Args: {
92761
+ p_buffer_id: string;
92762
+ p_carts: import("../integrations/supabase/types").Json;
92763
+ p_order_id: string;
92764
+ };
92765
+ Returns: import("../integrations/supabase/types").Json;
92766
+ };
90899
92767
  reset_floriday_sync_cursor: {
90900
92768
  Args: {
90901
92769
  p_connection_id: string;
@@ -91466,6 +93334,18 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
91466
93334
  Args: never;
91467
93335
  Returns: string;
91468
93336
  };
93337
+ werkbon_totalen: {
93338
+ Args: {
93339
+ _werkbon_id: string;
93340
+ };
93341
+ Returns: {
93342
+ materials_cents: number;
93343
+ packages_cents: number;
93344
+ packages_minutes: number;
93345
+ total_cents: number;
93346
+ total_minutes: number;
93347
+ }[];
93348
+ };
91469
93349
  wo_create_from_source: {
91470
93350
  Args: {
91471
93351
  _payload?: import("../integrations/supabase/types").Json;
@@ -91504,7 +93384,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
91504
93384
  };
91505
93385
  CompositeTypes: { [_ in never]: never; };
91506
93386
  }, {
91507
- PostgrestVersion: "14.5";
93387
+ PostgrestVersion: "14.17";
91508
93388
  }>;
91509
93389
  userId: string;
91510
93390
  claims: import("@supabase/auth-js").JwtPayload;
@@ -102211,6 +104091,243 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
102211
104091
  };
102212
104092
  Relationships: [];
102213
104093
  };
104094
+ maps_addresses: {
104095
+ Row: {
104096
+ address_hash: string;
104097
+ created_at: string;
104098
+ error_reason: string | null;
104099
+ formatted_address: string | null;
104100
+ id: string;
104101
+ lat: number | null;
104102
+ lng: number | null;
104103
+ place_id: string | null;
104104
+ raw_address: string;
104105
+ resolved_at: string | null;
104106
+ status: string;
104107
+ updated_at: string;
104108
+ };
104109
+ Insert: {
104110
+ address_hash: string;
104111
+ created_at?: string;
104112
+ error_reason?: string | null;
104113
+ formatted_address?: string | null;
104114
+ id?: string;
104115
+ lat?: number | null;
104116
+ lng?: number | null;
104117
+ place_id?: string | null;
104118
+ raw_address: string;
104119
+ resolved_at?: string | null;
104120
+ status?: string;
104121
+ updated_at?: string;
104122
+ };
104123
+ Update: {
104124
+ address_hash?: string;
104125
+ created_at?: string;
104126
+ error_reason?: string | null;
104127
+ formatted_address?: string | null;
104128
+ id?: string;
104129
+ lat?: number | null;
104130
+ lng?: number | null;
104131
+ place_id?: string | null;
104132
+ raw_address?: string;
104133
+ resolved_at?: string | null;
104134
+ status?: string;
104135
+ updated_at?: string;
104136
+ };
104137
+ Relationships: [];
104138
+ };
104139
+ maps_job_lease: {
104140
+ Row: {
104141
+ job: string;
104142
+ locked_until: string;
104143
+ updated_at: string;
104144
+ };
104145
+ Insert: {
104146
+ job: string;
104147
+ locked_until?: string;
104148
+ updated_at?: string;
104149
+ };
104150
+ Update: {
104151
+ job?: string;
104152
+ locked_until?: string;
104153
+ updated_at?: string;
104154
+ };
104155
+ Relationships: [];
104156
+ };
104157
+ maps_request_queue: {
104158
+ Row: {
104159
+ attempts: number;
104160
+ created_at: string;
104161
+ destination_hash: string | null;
104162
+ id: string;
104163
+ kind: string;
104164
+ last_error: string | null;
104165
+ mode: string;
104166
+ origin_hash: string | null;
104167
+ processed_at: string | null;
104168
+ raw_destination: string | null;
104169
+ raw_origin: string | null;
104170
+ requested_by: string | null;
104171
+ status: string;
104172
+ updated_at: string;
104173
+ };
104174
+ Insert: {
104175
+ attempts?: number;
104176
+ created_at?: string;
104177
+ destination_hash?: string | null;
104178
+ id?: string;
104179
+ kind: string;
104180
+ last_error?: string | null;
104181
+ mode?: string;
104182
+ origin_hash?: string | null;
104183
+ processed_at?: string | null;
104184
+ raw_destination?: string | null;
104185
+ raw_origin?: string | null;
104186
+ requested_by?: string | null;
104187
+ status?: string;
104188
+ updated_at?: string;
104189
+ };
104190
+ Update: {
104191
+ attempts?: number;
104192
+ created_at?: string;
104193
+ destination_hash?: string | null;
104194
+ id?: string;
104195
+ kind?: string;
104196
+ last_error?: string | null;
104197
+ mode?: string;
104198
+ origin_hash?: string | null;
104199
+ processed_at?: string | null;
104200
+ raw_destination?: string | null;
104201
+ raw_origin?: string | null;
104202
+ requested_by?: string | null;
104203
+ status?: string;
104204
+ updated_at?: string;
104205
+ };
104206
+ Relationships: [];
104207
+ };
104208
+ maps_settings: {
104209
+ Row: {
104210
+ allow_estimate_fallback: boolean;
104211
+ cache_ttl_days: number;
104212
+ created_at: string;
104213
+ daily_call_limit: number;
104214
+ id: string;
104215
+ last_error: string | null;
104216
+ last_error_at: string | null;
104217
+ last_success_at: string | null;
104218
+ provider: string;
104219
+ updated_at: string;
104220
+ };
104221
+ Insert: {
104222
+ allow_estimate_fallback?: boolean;
104223
+ cache_ttl_days?: number;
104224
+ created_at?: string;
104225
+ daily_call_limit?: number;
104226
+ id?: string;
104227
+ last_error?: string | null;
104228
+ last_error_at?: string | null;
104229
+ last_success_at?: string | null;
104230
+ provider?: string;
104231
+ updated_at?: string;
104232
+ };
104233
+ Update: {
104234
+ allow_estimate_fallback?: boolean;
104235
+ cache_ttl_days?: number;
104236
+ created_at?: string;
104237
+ daily_call_limit?: number;
104238
+ id?: string;
104239
+ last_error?: string | null;
104240
+ last_error_at?: string | null;
104241
+ last_success_at?: string | null;
104242
+ provider?: string;
104243
+ updated_at?: string;
104244
+ };
104245
+ Relationships: [];
104246
+ };
104247
+ maps_travel_times: {
104248
+ Row: {
104249
+ created_at: string;
104250
+ destination_id: string;
104251
+ distance_m: number | null;
104252
+ duration_sec: number;
104253
+ expires_at: string;
104254
+ id: string;
104255
+ mode: string;
104256
+ origin_id: string;
104257
+ source: string;
104258
+ updated_at: string;
104259
+ };
104260
+ Insert: {
104261
+ created_at?: string;
104262
+ destination_id: string;
104263
+ distance_m?: number | null;
104264
+ duration_sec: number;
104265
+ expires_at?: string;
104266
+ id?: string;
104267
+ mode?: string;
104268
+ origin_id: string;
104269
+ source?: string;
104270
+ updated_at?: string;
104271
+ };
104272
+ Update: {
104273
+ created_at?: string;
104274
+ destination_id?: string;
104275
+ distance_m?: number | null;
104276
+ duration_sec?: number;
104277
+ expires_at?: string;
104278
+ id?: string;
104279
+ mode?: string;
104280
+ origin_id?: string;
104281
+ source?: string;
104282
+ updated_at?: string;
104283
+ };
104284
+ Relationships: [{
104285
+ foreignKeyName: "maps_travel_times_destination_id_fkey";
104286
+ columns: ["destination_id"];
104287
+ isOneToOne: false;
104288
+ referencedRelation: "maps_addresses";
104289
+ referencedColumns: ["id"];
104290
+ }, {
104291
+ foreignKeyName: "maps_travel_times_origin_id_fkey";
104292
+ columns: ["origin_id"];
104293
+ isOneToOne: false;
104294
+ referencedRelation: "maps_addresses";
104295
+ referencedColumns: ["id"];
104296
+ }];
104297
+ };
104298
+ maps_usage_log: {
104299
+ Row: {
104300
+ cache_hits: number;
104301
+ call_type: string;
104302
+ created_at: string;
104303
+ day: string;
104304
+ detail: string | null;
104305
+ elements: number;
104306
+ id: string;
104307
+ outcome: string;
104308
+ };
104309
+ Insert: {
104310
+ cache_hits?: number;
104311
+ call_type: string;
104312
+ created_at?: string;
104313
+ day?: string;
104314
+ detail?: string | null;
104315
+ elements?: number;
104316
+ id?: string;
104317
+ outcome?: string;
104318
+ };
104319
+ Update: {
104320
+ cache_hits?: number;
104321
+ call_type?: string;
104322
+ created_at?: string;
104323
+ day?: string;
104324
+ detail?: string | null;
104325
+ elements?: number;
104326
+ id?: string;
104327
+ outcome?: string;
104328
+ };
104329
+ Relationships: [];
104330
+ };
102214
104331
  material_usage: {
102215
104332
  Row: {
102216
104333
  created_at: string;
@@ -104860,6 +106977,39 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
104860
106977
  };
104861
106978
  Relationships: [];
104862
106979
  };
106980
+ print_dedupe_events: {
106981
+ Row: {
106982
+ bestaande_job_id: string | null;
106983
+ created_at: string;
106984
+ detail: string | null;
106985
+ documentnaam: string | null;
106986
+ documenttype: string | null;
106987
+ id: string;
106988
+ idempotentie_sleutel: string;
106989
+ reden: string;
106990
+ };
106991
+ Insert: {
106992
+ bestaande_job_id?: string | null;
106993
+ created_at?: string;
106994
+ detail?: string | null;
106995
+ documentnaam?: string | null;
106996
+ documenttype?: string | null;
106997
+ id?: string;
106998
+ idempotentie_sleutel: string;
106999
+ reden: string;
107000
+ };
107001
+ Update: {
107002
+ bestaande_job_id?: string | null;
107003
+ created_at?: string;
107004
+ detail?: string | null;
107005
+ documentnaam?: string | null;
107006
+ documenttype?: string | null;
107007
+ id?: string;
107008
+ idempotentie_sleutel?: string;
107009
+ reden?: string;
107010
+ };
107011
+ Relationships: [];
107012
+ };
104863
107013
  print_job_logs: {
104864
107014
  Row: {
104865
107015
  created_at: string;
@@ -104901,6 +107051,8 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
104901
107051
  foutmelding: string | null;
104902
107052
  gebruiker_id: string | null;
104903
107053
  gebruiker_naam: string;
107054
+ gebruikte_bron: string | null;
107055
+ gebruikte_layout_id: string | null;
104904
107056
  gestart_op: string | null;
104905
107057
  herkomst: string | null;
104906
107058
  id: string;
@@ -104931,6 +107083,8 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
104931
107083
  foutmelding?: string | null;
104932
107084
  gebruiker_id?: string | null;
104933
107085
  gebruiker_naam?: string;
107086
+ gebruikte_bron?: string | null;
107087
+ gebruikte_layout_id?: string | null;
104934
107088
  gestart_op?: string | null;
104935
107089
  herkomst?: string | null;
104936
107090
  id?: string;
@@ -104961,6 +107115,8 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
104961
107115
  foutmelding?: string | null;
104962
107116
  gebruiker_id?: string | null;
104963
107117
  gebruiker_naam?: string;
107118
+ gebruikte_bron?: string | null;
107119
+ gebruikte_layout_id?: string | null;
104964
107120
  gestart_op?: string | null;
104965
107121
  herkomst?: string | null;
104966
107122
  id?: string;
@@ -105094,6 +107250,39 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
105094
107250
  };
105095
107251
  Relationships: [];
105096
107252
  };
107253
+ print_preview_events: {
107254
+ Row: {
107255
+ code: string | null;
107256
+ created_at: string;
107257
+ detail: import("../integrations/supabase/types").Json;
107258
+ id: string;
107259
+ queue_item_id: string | null;
107260
+ reden: string | null;
107261
+ station_slug: string | null;
107262
+ uitkomst: string;
107263
+ };
107264
+ Insert: {
107265
+ code?: string | null;
107266
+ created_at?: string;
107267
+ detail?: import("../integrations/supabase/types").Json;
107268
+ id?: string;
107269
+ queue_item_id?: string | null;
107270
+ reden?: string | null;
107271
+ station_slug?: string | null;
107272
+ uitkomst?: string;
107273
+ };
107274
+ Update: {
107275
+ code?: string | null;
107276
+ created_at?: string;
107277
+ detail?: import("../integrations/supabase/types").Json;
107278
+ id?: string;
107279
+ queue_item_id?: string | null;
107280
+ reden?: string | null;
107281
+ station_slug?: string | null;
107282
+ uitkomst?: string;
107283
+ };
107284
+ Relationships: [];
107285
+ };
105097
107286
  print_queue_runners: {
105098
107287
  Row: {
105099
107288
  actief: boolean;
@@ -105321,6 +107510,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
105321
107510
  created_at: string;
105322
107511
  driver: string;
105323
107512
  extern_printer_id: string | null;
107513
+ formaten_bijgewerkt_op: string | null;
105324
107514
  id: string;
105325
107515
  ip_adres: string | null;
105326
107516
  laatst_gezien: string | null;
@@ -105328,6 +107518,8 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
105328
107518
  merk: string;
105329
107519
  naam: string;
105330
107520
  omschrijving: string;
107521
+ ondersteunde_formaten: import("../integrations/supabase/types").Json | null;
107522
+ ondersteunde_laden: import("../integrations/supabase/types").Json | null;
105331
107523
  online: boolean;
105332
107524
  papierformaat: string;
105333
107525
  poort: number | null;
@@ -105343,6 +107535,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
105343
107535
  created_at?: string;
105344
107536
  driver?: string;
105345
107537
  extern_printer_id?: string | null;
107538
+ formaten_bijgewerkt_op?: string | null;
105346
107539
  id?: string;
105347
107540
  ip_adres?: string | null;
105348
107541
  laatst_gezien?: string | null;
@@ -105350,6 +107543,8 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
105350
107543
  merk?: string;
105351
107544
  naam: string;
105352
107545
  omschrijving?: string;
107546
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
107547
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
105353
107548
  online?: boolean;
105354
107549
  papierformaat?: string;
105355
107550
  poort?: number | null;
@@ -105365,6 +107560,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
105365
107560
  created_at?: string;
105366
107561
  driver?: string;
105367
107562
  extern_printer_id?: string | null;
107563
+ formaten_bijgewerkt_op?: string | null;
105368
107564
  id?: string;
105369
107565
  ip_adres?: string | null;
105370
107566
  laatst_gezien?: string | null;
@@ -105372,6 +107568,8 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
105372
107568
  merk?: string;
105373
107569
  naam?: string;
105374
107570
  omschrijving?: string;
107571
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
107572
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
105375
107573
  online?: boolean;
105376
107574
  papierformaat?: string;
105377
107575
  poort?: number | null;
@@ -107248,6 +109446,45 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
107248
109446
  };
107249
109447
  Relationships: [];
107250
109448
  };
109449
+ stock_consumption_alerts: {
109450
+ Row: {
109451
+ alert_type: string;
109452
+ created_at: string;
109453
+ id: string;
109454
+ mutation_log_id: string | null;
109455
+ order_id: string | null;
109456
+ order_item_id: string | null;
109457
+ qty: number;
109458
+ reason: string | null;
109459
+ resolved_at: string | null;
109460
+ updated_at: string;
109461
+ };
109462
+ Insert: {
109463
+ alert_type: string;
109464
+ created_at?: string;
109465
+ id?: string;
109466
+ mutation_log_id?: string | null;
109467
+ order_id?: string | null;
109468
+ order_item_id?: string | null;
109469
+ qty?: number;
109470
+ reason?: string | null;
109471
+ resolved_at?: string | null;
109472
+ updated_at?: string;
109473
+ };
109474
+ Update: {
109475
+ alert_type?: string;
109476
+ created_at?: string;
109477
+ id?: string;
109478
+ mutation_log_id?: string | null;
109479
+ order_id?: string | null;
109480
+ order_item_id?: string | null;
109481
+ qty?: number;
109482
+ reason?: string | null;
109483
+ resolved_at?: string | null;
109484
+ updated_at?: string;
109485
+ };
109486
+ Relationships: [];
109487
+ };
107251
109488
  stock_import_runs: {
107252
109489
  Row: {
107253
109490
  connection_id: string | null;
@@ -110101,6 +112338,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
110101
112338
  werkbon_package_items: {
110102
112339
  Row: {
110103
112340
  article_number: string | null;
112341
+ artikel_id: string | null;
110104
112342
  created_at: string;
110105
112343
  gtin: string | null;
110106
112344
  id: string;
@@ -110118,6 +112356,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
110118
112356
  };
110119
112357
  Insert: {
110120
112358
  article_number?: string | null;
112359
+ artikel_id?: string | null;
110121
112360
  created_at?: string;
110122
112361
  gtin?: string | null;
110123
112362
  id?: string;
@@ -110135,6 +112374,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
110135
112374
  };
110136
112375
  Update: {
110137
112376
  article_number?: string | null;
112377
+ artikel_id?: string | null;
110138
112378
  created_at?: string;
110139
112379
  gtin?: string | null;
110140
112380
  id?: string;
@@ -110151,6 +112391,12 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
110151
112391
  updated_at?: string;
110152
112392
  };
110153
112393
  Relationships: [{
112394
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
112395
+ columns: ["artikel_id"];
112396
+ isOneToOne: false;
112397
+ referencedRelation: "artikelen_cache";
112398
+ referencedColumns: ["id"];
112399
+ }, {
110154
112400
  foreignKeyName: "werkbon_package_items_package_id_fkey";
110155
112401
  columns: ["package_id"];
110156
112402
  isOneToOne: false;
@@ -111373,6 +113619,20 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
111373
113619
  referencedColumns: ["id"];
111374
113620
  }];
111375
113621
  };
113622
+ v_werkbon_totalen: {
113623
+ Row: {
113624
+ packages_cents: number | null;
113625
+ packages_minutes: number | null;
113626
+ werkbon_id: string | null;
113627
+ };
113628
+ Relationships: [{
113629
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
113630
+ columns: ["werkbon_id"];
113631
+ isOneToOne: false;
113632
+ referencedRelation: "werkbonnen";
113633
+ referencedColumns: ["id"];
113634
+ }];
113635
+ };
111376
113636
  };
111377
113637
  Functions: {
111378
113638
  _floriday_schedule_job: {
@@ -111559,6 +113819,8 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
111559
113819
  foutmelding: string | null;
111560
113820
  gebruiker_id: string | null;
111561
113821
  gebruiker_naam: string;
113822
+ gebruikte_bron: string | null;
113823
+ gebruikte_layout_id: string | null;
111562
113824
  gestart_op: string | null;
111563
113825
  herkomst: string | null;
111564
113826
  id: string;
@@ -111680,6 +113942,8 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
111680
113942
  foutmelding: string | null;
111681
113943
  gebruiker_id: string | null;
111682
113944
  gebruiker_naam: string;
113945
+ gebruikte_bron: string | null;
113946
+ gebruikte_layout_id: string | null;
111683
113947
  gestart_op: string | null;
111684
113948
  herkomst: string | null;
111685
113949
  id: string;
@@ -112736,6 +115000,12 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
112736
115000
  };
112737
115001
  Returns: string;
112738
115002
  };
115003
+ logistics_document_type_map: {
115004
+ Args: {
115005
+ _document_code: string;
115006
+ };
115007
+ Returns: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"][];
115008
+ };
112739
115009
  logistics_emit_event: {
112740
115010
  Args: {
112741
115011
  p_event_type: string;
@@ -112920,6 +115190,14 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
112920
115190
  };
112921
115191
  Returns: import("../integrations/supabase/types").Json;
112922
115192
  };
115193
+ logistics_plan_block: {
115194
+ Args: {
115195
+ p_details?: import("../integrations/supabase/types").Json;
115196
+ p_order_ids: string[];
115197
+ p_reason: string;
115198
+ };
115199
+ Returns: number;
115200
+ };
112923
115201
  logistics_plan_buffer_sql: {
112924
115202
  Args: {
112925
115203
  p_buffer_id: string;
@@ -113288,6 +115566,12 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
113288
115566
  verwijderd: number;
113289
115567
  }[];
113290
115568
  };
115569
+ order_departure_proof: {
115570
+ Args: {
115571
+ p_order_id: string;
115572
+ };
115573
+ Returns: import("../integrations/supabase/types").Json;
115574
+ };
113291
115575
  order_number_prefix: {
113292
115576
  Args: {
113293
115577
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -113295,6 +115579,25 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
113295
115579
  };
113296
115580
  Returns: string;
113297
115581
  };
115582
+ pakket_suggesties_voor_tekst: {
115583
+ Args: {
115584
+ _tekst: string;
115585
+ };
115586
+ Returns: {
115587
+ hit_type: string;
115588
+ package_id: string;
115589
+ priority: number;
115590
+ }[];
115591
+ };
115592
+ pakket_voor_reistijd: {
115593
+ Args: {
115594
+ _minuten: number;
115595
+ };
115596
+ Returns: {
115597
+ package_id: string;
115598
+ priority: number;
115599
+ }[];
115600
+ };
113298
115601
  pick_active_printers: {
113299
115602
  Args: never;
113300
115603
  Returns: {
@@ -113476,6 +115779,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
113476
115779
  };
113477
115780
  pick_enqueue_print_job: {
113478
115781
  Args: {
115782
+ _is_herprint?: boolean;
113479
115783
  _printer_id?: string;
113480
115784
  _queue_item_id: string;
113481
115785
  _session_id?: string;
@@ -113503,6 +115807,10 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
113503
115807
  omschrijving: string;
113504
115808
  }[];
113505
115809
  };
115810
+ pick_reference_data_status: {
115811
+ Args: never;
115812
+ Returns: import("../integrations/supabase/types").Json;
115813
+ };
113506
115814
  pick_release_expired_locks: {
113507
115815
  Args: never;
113508
115816
  Returns: number;
@@ -113567,6 +115875,10 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
113567
115875
  isSetofReturn: false;
113568
115876
  };
113569
115877
  };
115878
+ pick_seed_reference_data: {
115879
+ Args: never;
115880
+ Returns: import("../integrations/supabase/types").Json;
115881
+ };
113570
115882
  pick_set_station_print_plek: {
113571
115883
  Args: {
113572
115884
  _print_plek_id: string;
@@ -113658,6 +115970,24 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
113658
115970
  };
113659
115971
  Returns: undefined;
113660
115972
  };
115973
+ print_preview_toestaan: {
115974
+ Args: {
115975
+ _max?: number;
115976
+ _queue_item_id: string;
115977
+ _station_slug: string;
115978
+ _venster_sec?: number;
115979
+ };
115980
+ Returns: import("../integrations/supabase/types").Json;
115981
+ };
115982
+ print_preview_weiger: {
115983
+ Args: {
115984
+ _code: string;
115985
+ _queue_item_id: string;
115986
+ _reden: string;
115987
+ _station_slug: string;
115988
+ };
115989
+ Returns: undefined;
115990
+ };
113661
115991
  process_logistics_event: {
113662
115992
  Args: {
113663
115993
  p_event_id: string;
@@ -113775,6 +116105,14 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
113775
116105
  };
113776
116106
  Returns: undefined;
113777
116107
  };
116108
+ replace_order_carts: {
116109
+ Args: {
116110
+ p_buffer_id: string;
116111
+ p_carts: import("../integrations/supabase/types").Json;
116112
+ p_order_id: string;
116113
+ };
116114
+ Returns: import("../integrations/supabase/types").Json;
116115
+ };
113778
116116
  reset_floriday_sync_cursor: {
113779
116117
  Args: {
113780
116118
  p_connection_id: string;
@@ -114345,6 +116683,18 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
114345
116683
  Args: never;
114346
116684
  Returns: string;
114347
116685
  };
116686
+ werkbon_totalen: {
116687
+ Args: {
116688
+ _werkbon_id: string;
116689
+ };
116690
+ Returns: {
116691
+ materials_cents: number;
116692
+ packages_cents: number;
116693
+ packages_minutes: number;
116694
+ total_cents: number;
116695
+ total_minutes: number;
116696
+ }[];
116697
+ };
114348
116698
  wo_create_from_source: {
114349
116699
  Args: {
114350
116700
  _payload?: import("../integrations/supabase/types").Json;
@@ -114383,7 +116733,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
114383
116733
  };
114384
116734
  CompositeTypes: { [_ in never]: never; };
114385
116735
  }, {
114386
- PostgrestVersion: "14.5";
116736
+ PostgrestVersion: "14.17";
114387
116737
  }>;
114388
116738
  userId: string;
114389
116739
  claims: import("@supabase/auth-js").JwtPayload;