@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
@@ -10748,6 +10748,243 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
10748
10748
  };
10749
10749
  Relationships: [];
10750
10750
  };
10751
+ maps_addresses: {
10752
+ Row: {
10753
+ address_hash: string;
10754
+ created_at: string;
10755
+ error_reason: string | null;
10756
+ formatted_address: string | null;
10757
+ id: string;
10758
+ lat: number | null;
10759
+ lng: number | null;
10760
+ place_id: string | null;
10761
+ raw_address: string;
10762
+ resolved_at: string | null;
10763
+ status: string;
10764
+ updated_at: string;
10765
+ };
10766
+ Insert: {
10767
+ address_hash: string;
10768
+ created_at?: string;
10769
+ error_reason?: string | null;
10770
+ formatted_address?: string | null;
10771
+ id?: string;
10772
+ lat?: number | null;
10773
+ lng?: number | null;
10774
+ place_id?: string | null;
10775
+ raw_address: string;
10776
+ resolved_at?: string | null;
10777
+ status?: string;
10778
+ updated_at?: string;
10779
+ };
10780
+ Update: {
10781
+ address_hash?: string;
10782
+ created_at?: string;
10783
+ error_reason?: string | null;
10784
+ formatted_address?: string | null;
10785
+ id?: string;
10786
+ lat?: number | null;
10787
+ lng?: number | null;
10788
+ place_id?: string | null;
10789
+ raw_address?: string;
10790
+ resolved_at?: string | null;
10791
+ status?: string;
10792
+ updated_at?: string;
10793
+ };
10794
+ Relationships: [];
10795
+ };
10796
+ maps_job_lease: {
10797
+ Row: {
10798
+ job: string;
10799
+ locked_until: string;
10800
+ updated_at: string;
10801
+ };
10802
+ Insert: {
10803
+ job: string;
10804
+ locked_until?: string;
10805
+ updated_at?: string;
10806
+ };
10807
+ Update: {
10808
+ job?: string;
10809
+ locked_until?: string;
10810
+ updated_at?: string;
10811
+ };
10812
+ Relationships: [];
10813
+ };
10814
+ maps_request_queue: {
10815
+ Row: {
10816
+ attempts: number;
10817
+ created_at: string;
10818
+ destination_hash: string | null;
10819
+ id: string;
10820
+ kind: string;
10821
+ last_error: string | null;
10822
+ mode: string;
10823
+ origin_hash: string | null;
10824
+ processed_at: string | null;
10825
+ raw_destination: string | null;
10826
+ raw_origin: string | null;
10827
+ requested_by: string | null;
10828
+ status: string;
10829
+ updated_at: string;
10830
+ };
10831
+ Insert: {
10832
+ attempts?: number;
10833
+ created_at?: string;
10834
+ destination_hash?: string | null;
10835
+ id?: string;
10836
+ kind: string;
10837
+ last_error?: string | null;
10838
+ mode?: string;
10839
+ origin_hash?: string | null;
10840
+ processed_at?: string | null;
10841
+ raw_destination?: string | null;
10842
+ raw_origin?: string | null;
10843
+ requested_by?: string | null;
10844
+ status?: string;
10845
+ updated_at?: string;
10846
+ };
10847
+ Update: {
10848
+ attempts?: number;
10849
+ created_at?: string;
10850
+ destination_hash?: string | null;
10851
+ id?: string;
10852
+ kind?: string;
10853
+ last_error?: string | null;
10854
+ mode?: string;
10855
+ origin_hash?: string | null;
10856
+ processed_at?: string | null;
10857
+ raw_destination?: string | null;
10858
+ raw_origin?: string | null;
10859
+ requested_by?: string | null;
10860
+ status?: string;
10861
+ updated_at?: string;
10862
+ };
10863
+ Relationships: [];
10864
+ };
10865
+ maps_settings: {
10866
+ Row: {
10867
+ allow_estimate_fallback: boolean;
10868
+ cache_ttl_days: number;
10869
+ created_at: string;
10870
+ daily_call_limit: number;
10871
+ id: string;
10872
+ last_error: string | null;
10873
+ last_error_at: string | null;
10874
+ last_success_at: string | null;
10875
+ provider: string;
10876
+ updated_at: string;
10877
+ };
10878
+ Insert: {
10879
+ allow_estimate_fallback?: boolean;
10880
+ cache_ttl_days?: number;
10881
+ created_at?: string;
10882
+ daily_call_limit?: number;
10883
+ id?: string;
10884
+ last_error?: string | null;
10885
+ last_error_at?: string | null;
10886
+ last_success_at?: string | null;
10887
+ provider?: string;
10888
+ updated_at?: string;
10889
+ };
10890
+ Update: {
10891
+ allow_estimate_fallback?: boolean;
10892
+ cache_ttl_days?: number;
10893
+ created_at?: string;
10894
+ daily_call_limit?: number;
10895
+ id?: string;
10896
+ last_error?: string | null;
10897
+ last_error_at?: string | null;
10898
+ last_success_at?: string | null;
10899
+ provider?: string;
10900
+ updated_at?: string;
10901
+ };
10902
+ Relationships: [];
10903
+ };
10904
+ maps_travel_times: {
10905
+ Row: {
10906
+ created_at: string;
10907
+ destination_id: string;
10908
+ distance_m: number | null;
10909
+ duration_sec: number;
10910
+ expires_at: string;
10911
+ id: string;
10912
+ mode: string;
10913
+ origin_id: string;
10914
+ source: string;
10915
+ updated_at: string;
10916
+ };
10917
+ Insert: {
10918
+ created_at?: string;
10919
+ destination_id: string;
10920
+ distance_m?: number | null;
10921
+ duration_sec: number;
10922
+ expires_at?: string;
10923
+ id?: string;
10924
+ mode?: string;
10925
+ origin_id: string;
10926
+ source?: string;
10927
+ updated_at?: string;
10928
+ };
10929
+ Update: {
10930
+ created_at?: string;
10931
+ destination_id?: string;
10932
+ distance_m?: number | null;
10933
+ duration_sec?: number;
10934
+ expires_at?: string;
10935
+ id?: string;
10936
+ mode?: string;
10937
+ origin_id?: string;
10938
+ source?: string;
10939
+ updated_at?: string;
10940
+ };
10941
+ Relationships: [{
10942
+ foreignKeyName: "maps_travel_times_destination_id_fkey";
10943
+ columns: ["destination_id"];
10944
+ isOneToOne: false;
10945
+ referencedRelation: "maps_addresses";
10946
+ referencedColumns: ["id"];
10947
+ }, {
10948
+ foreignKeyName: "maps_travel_times_origin_id_fkey";
10949
+ columns: ["origin_id"];
10950
+ isOneToOne: false;
10951
+ referencedRelation: "maps_addresses";
10952
+ referencedColumns: ["id"];
10953
+ }];
10954
+ };
10955
+ maps_usage_log: {
10956
+ Row: {
10957
+ cache_hits: number;
10958
+ call_type: string;
10959
+ created_at: string;
10960
+ day: string;
10961
+ detail: string | null;
10962
+ elements: number;
10963
+ id: string;
10964
+ outcome: string;
10965
+ };
10966
+ Insert: {
10967
+ cache_hits?: number;
10968
+ call_type: string;
10969
+ created_at?: string;
10970
+ day?: string;
10971
+ detail?: string | null;
10972
+ elements?: number;
10973
+ id?: string;
10974
+ outcome?: string;
10975
+ };
10976
+ Update: {
10977
+ cache_hits?: number;
10978
+ call_type?: string;
10979
+ created_at?: string;
10980
+ day?: string;
10981
+ detail?: string | null;
10982
+ elements?: number;
10983
+ id?: string;
10984
+ outcome?: string;
10985
+ };
10986
+ Relationships: [];
10987
+ };
10751
10988
  material_usage: {
10752
10989
  Row: {
10753
10990
  created_at: string;
@@ -13397,6 +13634,39 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
13397
13634
  };
13398
13635
  Relationships: [];
13399
13636
  };
13637
+ print_dedupe_events: {
13638
+ Row: {
13639
+ bestaande_job_id: string | null;
13640
+ created_at: string;
13641
+ detail: string | null;
13642
+ documentnaam: string | null;
13643
+ documenttype: string | null;
13644
+ id: string;
13645
+ idempotentie_sleutel: string;
13646
+ reden: string;
13647
+ };
13648
+ Insert: {
13649
+ bestaande_job_id?: string | null;
13650
+ created_at?: string;
13651
+ detail?: string | null;
13652
+ documentnaam?: string | null;
13653
+ documenttype?: string | null;
13654
+ id?: string;
13655
+ idempotentie_sleutel: string;
13656
+ reden: string;
13657
+ };
13658
+ Update: {
13659
+ bestaande_job_id?: string | null;
13660
+ created_at?: string;
13661
+ detail?: string | null;
13662
+ documentnaam?: string | null;
13663
+ documenttype?: string | null;
13664
+ id?: string;
13665
+ idempotentie_sleutel?: string;
13666
+ reden?: string;
13667
+ };
13668
+ Relationships: [];
13669
+ };
13400
13670
  print_job_logs: {
13401
13671
  Row: {
13402
13672
  created_at: string;
@@ -13438,6 +13708,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
13438
13708
  foutmelding: string | null;
13439
13709
  gebruiker_id: string | null;
13440
13710
  gebruiker_naam: string;
13711
+ gebruikte_bron: string | null;
13712
+ gebruikte_layout_id: string | null;
13441
13713
  gestart_op: string | null;
13442
13714
  herkomst: string | null;
13443
13715
  id: string;
@@ -13468,6 +13740,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
13468
13740
  foutmelding?: string | null;
13469
13741
  gebruiker_id?: string | null;
13470
13742
  gebruiker_naam?: string;
13743
+ gebruikte_bron?: string | null;
13744
+ gebruikte_layout_id?: string | null;
13471
13745
  gestart_op?: string | null;
13472
13746
  herkomst?: string | null;
13473
13747
  id?: string;
@@ -13498,6 +13772,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
13498
13772
  foutmelding?: string | null;
13499
13773
  gebruiker_id?: string | null;
13500
13774
  gebruiker_naam?: string;
13775
+ gebruikte_bron?: string | null;
13776
+ gebruikte_layout_id?: string | null;
13501
13777
  gestart_op?: string | null;
13502
13778
  herkomst?: string | null;
13503
13779
  id?: string;
@@ -13631,6 +13907,39 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
13631
13907
  };
13632
13908
  Relationships: [];
13633
13909
  };
13910
+ print_preview_events: {
13911
+ Row: {
13912
+ code: string | null;
13913
+ created_at: string;
13914
+ detail: import("../integrations/supabase/types").Json;
13915
+ id: string;
13916
+ queue_item_id: string | null;
13917
+ reden: string | null;
13918
+ station_slug: string | null;
13919
+ uitkomst: string;
13920
+ };
13921
+ Insert: {
13922
+ code?: string | null;
13923
+ created_at?: string;
13924
+ detail?: import("../integrations/supabase/types").Json;
13925
+ id?: string;
13926
+ queue_item_id?: string | null;
13927
+ reden?: string | null;
13928
+ station_slug?: string | null;
13929
+ uitkomst?: string;
13930
+ };
13931
+ Update: {
13932
+ code?: string | null;
13933
+ created_at?: string;
13934
+ detail?: import("../integrations/supabase/types").Json;
13935
+ id?: string;
13936
+ queue_item_id?: string | null;
13937
+ reden?: string | null;
13938
+ station_slug?: string | null;
13939
+ uitkomst?: string;
13940
+ };
13941
+ Relationships: [];
13942
+ };
13634
13943
  print_queue_runners: {
13635
13944
  Row: {
13636
13945
  actief: boolean;
@@ -13858,6 +14167,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
13858
14167
  created_at: string;
13859
14168
  driver: string;
13860
14169
  extern_printer_id: string | null;
14170
+ formaten_bijgewerkt_op: string | null;
13861
14171
  id: string;
13862
14172
  ip_adres: string | null;
13863
14173
  laatst_gezien: string | null;
@@ -13865,6 +14175,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
13865
14175
  merk: string;
13866
14176
  naam: string;
13867
14177
  omschrijving: string;
14178
+ ondersteunde_formaten: import("../integrations/supabase/types").Json | null;
14179
+ ondersteunde_laden: import("../integrations/supabase/types").Json | null;
13868
14180
  online: boolean;
13869
14181
  papierformaat: string;
13870
14182
  poort: number | null;
@@ -13880,6 +14192,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
13880
14192
  created_at?: string;
13881
14193
  driver?: string;
13882
14194
  extern_printer_id?: string | null;
14195
+ formaten_bijgewerkt_op?: string | null;
13883
14196
  id?: string;
13884
14197
  ip_adres?: string | null;
13885
14198
  laatst_gezien?: string | null;
@@ -13887,6 +14200,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
13887
14200
  merk?: string;
13888
14201
  naam: string;
13889
14202
  omschrijving?: string;
14203
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
14204
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
13890
14205
  online?: boolean;
13891
14206
  papierformaat?: string;
13892
14207
  poort?: number | null;
@@ -13902,6 +14217,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
13902
14217
  created_at?: string;
13903
14218
  driver?: string;
13904
14219
  extern_printer_id?: string | null;
14220
+ formaten_bijgewerkt_op?: string | null;
13905
14221
  id?: string;
13906
14222
  ip_adres?: string | null;
13907
14223
  laatst_gezien?: string | null;
@@ -13909,6 +14225,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
13909
14225
  merk?: string;
13910
14226
  naam?: string;
13911
14227
  omschrijving?: string;
14228
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
14229
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
13912
14230
  online?: boolean;
13913
14231
  papierformaat?: string;
13914
14232
  poort?: number | null;
@@ -15785,6 +16103,45 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
15785
16103
  };
15786
16104
  Relationships: [];
15787
16105
  };
16106
+ stock_consumption_alerts: {
16107
+ Row: {
16108
+ alert_type: string;
16109
+ created_at: string;
16110
+ id: string;
16111
+ mutation_log_id: string | null;
16112
+ order_id: string | null;
16113
+ order_item_id: string | null;
16114
+ qty: number;
16115
+ reason: string | null;
16116
+ resolved_at: string | null;
16117
+ updated_at: string;
16118
+ };
16119
+ Insert: {
16120
+ alert_type: string;
16121
+ created_at?: string;
16122
+ id?: string;
16123
+ mutation_log_id?: string | null;
16124
+ order_id?: string | null;
16125
+ order_item_id?: string | null;
16126
+ qty?: number;
16127
+ reason?: string | null;
16128
+ resolved_at?: string | null;
16129
+ updated_at?: string;
16130
+ };
16131
+ Update: {
16132
+ alert_type?: string;
16133
+ created_at?: string;
16134
+ id?: string;
16135
+ mutation_log_id?: string | null;
16136
+ order_id?: string | null;
16137
+ order_item_id?: string | null;
16138
+ qty?: number;
16139
+ reason?: string | null;
16140
+ resolved_at?: string | null;
16141
+ updated_at?: string;
16142
+ };
16143
+ Relationships: [];
16144
+ };
15788
16145
  stock_import_runs: {
15789
16146
  Row: {
15790
16147
  connection_id: string | null;
@@ -18638,6 +18995,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
18638
18995
  werkbon_package_items: {
18639
18996
  Row: {
18640
18997
  article_number: string | null;
18998
+ artikel_id: string | null;
18641
18999
  created_at: string;
18642
19000
  gtin: string | null;
18643
19001
  id: string;
@@ -18655,6 +19013,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
18655
19013
  };
18656
19014
  Insert: {
18657
19015
  article_number?: string | null;
19016
+ artikel_id?: string | null;
18658
19017
  created_at?: string;
18659
19018
  gtin?: string | null;
18660
19019
  id?: string;
@@ -18672,6 +19031,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
18672
19031
  };
18673
19032
  Update: {
18674
19033
  article_number?: string | null;
19034
+ artikel_id?: string | null;
18675
19035
  created_at?: string;
18676
19036
  gtin?: string | null;
18677
19037
  id?: string;
@@ -18688,6 +19048,12 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
18688
19048
  updated_at?: string;
18689
19049
  };
18690
19050
  Relationships: [{
19051
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
19052
+ columns: ["artikel_id"];
19053
+ isOneToOne: false;
19054
+ referencedRelation: "artikelen_cache";
19055
+ referencedColumns: ["id"];
19056
+ }, {
18691
19057
  foreignKeyName: "werkbon_package_items_package_id_fkey";
18692
19058
  columns: ["package_id"];
18693
19059
  isOneToOne: false;
@@ -19910,6 +20276,20 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
19910
20276
  referencedColumns: ["id"];
19911
20277
  }];
19912
20278
  };
20279
+ v_werkbon_totalen: {
20280
+ Row: {
20281
+ packages_cents: number | null;
20282
+ packages_minutes: number | null;
20283
+ werkbon_id: string | null;
20284
+ };
20285
+ Relationships: [{
20286
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
20287
+ columns: ["werkbon_id"];
20288
+ isOneToOne: false;
20289
+ referencedRelation: "werkbonnen";
20290
+ referencedColumns: ["id"];
20291
+ }];
20292
+ };
19913
20293
  };
19914
20294
  Functions: {
19915
20295
  _floriday_schedule_job: {
@@ -20096,6 +20476,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
20096
20476
  foutmelding: string | null;
20097
20477
  gebruiker_id: string | null;
20098
20478
  gebruiker_naam: string;
20479
+ gebruikte_bron: string | null;
20480
+ gebruikte_layout_id: string | null;
20099
20481
  gestart_op: string | null;
20100
20482
  herkomst: string | null;
20101
20483
  id: string;
@@ -20217,6 +20599,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
20217
20599
  foutmelding: string | null;
20218
20600
  gebruiker_id: string | null;
20219
20601
  gebruiker_naam: string;
20602
+ gebruikte_bron: string | null;
20603
+ gebruikte_layout_id: string | null;
20220
20604
  gestart_op: string | null;
20221
20605
  herkomst: string | null;
20222
20606
  id: string;
@@ -21273,6 +21657,12 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
21273
21657
  };
21274
21658
  Returns: string;
21275
21659
  };
21660
+ logistics_document_type_map: {
21661
+ Args: {
21662
+ _document_code: string;
21663
+ };
21664
+ Returns: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"][];
21665
+ };
21276
21666
  logistics_emit_event: {
21277
21667
  Args: {
21278
21668
  p_event_type: string;
@@ -21457,6 +21847,14 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
21457
21847
  };
21458
21848
  Returns: import("../integrations/supabase/types").Json;
21459
21849
  };
21850
+ logistics_plan_block: {
21851
+ Args: {
21852
+ p_details?: import("../integrations/supabase/types").Json;
21853
+ p_order_ids: string[];
21854
+ p_reason: string;
21855
+ };
21856
+ Returns: number;
21857
+ };
21460
21858
  logistics_plan_buffer_sql: {
21461
21859
  Args: {
21462
21860
  p_buffer_id: string;
@@ -21825,6 +22223,12 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
21825
22223
  verwijderd: number;
21826
22224
  }[];
21827
22225
  };
22226
+ order_departure_proof: {
22227
+ Args: {
22228
+ p_order_id: string;
22229
+ };
22230
+ Returns: import("../integrations/supabase/types").Json;
22231
+ };
21828
22232
  order_number_prefix: {
21829
22233
  Args: {
21830
22234
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -21832,6 +22236,25 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
21832
22236
  };
21833
22237
  Returns: string;
21834
22238
  };
22239
+ pakket_suggesties_voor_tekst: {
22240
+ Args: {
22241
+ _tekst: string;
22242
+ };
22243
+ Returns: {
22244
+ hit_type: string;
22245
+ package_id: string;
22246
+ priority: number;
22247
+ }[];
22248
+ };
22249
+ pakket_voor_reistijd: {
22250
+ Args: {
22251
+ _minuten: number;
22252
+ };
22253
+ Returns: {
22254
+ package_id: string;
22255
+ priority: number;
22256
+ }[];
22257
+ };
21835
22258
  pick_active_printers: {
21836
22259
  Args: never;
21837
22260
  Returns: {
@@ -22013,6 +22436,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
22013
22436
  };
22014
22437
  pick_enqueue_print_job: {
22015
22438
  Args: {
22439
+ _is_herprint?: boolean;
22016
22440
  _printer_id?: string;
22017
22441
  _queue_item_id: string;
22018
22442
  _session_id?: string;
@@ -22040,6 +22464,10 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
22040
22464
  omschrijving: string;
22041
22465
  }[];
22042
22466
  };
22467
+ pick_reference_data_status: {
22468
+ Args: never;
22469
+ Returns: import("../integrations/supabase/types").Json;
22470
+ };
22043
22471
  pick_release_expired_locks: {
22044
22472
  Args: never;
22045
22473
  Returns: number;
@@ -22104,6 +22532,10 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
22104
22532
  isSetofReturn: false;
22105
22533
  };
22106
22534
  };
22535
+ pick_seed_reference_data: {
22536
+ Args: never;
22537
+ Returns: import("../integrations/supabase/types").Json;
22538
+ };
22107
22539
  pick_set_station_print_plek: {
22108
22540
  Args: {
22109
22541
  _print_plek_id: string;
@@ -22195,6 +22627,24 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
22195
22627
  };
22196
22628
  Returns: undefined;
22197
22629
  };
22630
+ print_preview_toestaan: {
22631
+ Args: {
22632
+ _max?: number;
22633
+ _queue_item_id: string;
22634
+ _station_slug: string;
22635
+ _venster_sec?: number;
22636
+ };
22637
+ Returns: import("../integrations/supabase/types").Json;
22638
+ };
22639
+ print_preview_weiger: {
22640
+ Args: {
22641
+ _code: string;
22642
+ _queue_item_id: string;
22643
+ _reden: string;
22644
+ _station_slug: string;
22645
+ };
22646
+ Returns: undefined;
22647
+ };
22198
22648
  process_logistics_event: {
22199
22649
  Args: {
22200
22650
  p_event_id: string;
@@ -22312,6 +22762,14 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
22312
22762
  };
22313
22763
  Returns: undefined;
22314
22764
  };
22765
+ replace_order_carts: {
22766
+ Args: {
22767
+ p_buffer_id: string;
22768
+ p_carts: import("../integrations/supabase/types").Json;
22769
+ p_order_id: string;
22770
+ };
22771
+ Returns: import("../integrations/supabase/types").Json;
22772
+ };
22315
22773
  reset_floriday_sync_cursor: {
22316
22774
  Args: {
22317
22775
  p_connection_id: string;
@@ -22882,6 +23340,18 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
22882
23340
  Args: never;
22883
23341
  Returns: string;
22884
23342
  };
23343
+ werkbon_totalen: {
23344
+ Args: {
23345
+ _werkbon_id: string;
23346
+ };
23347
+ Returns: {
23348
+ materials_cents: number;
23349
+ packages_cents: number;
23350
+ packages_minutes: number;
23351
+ total_cents: number;
23352
+ total_minutes: number;
23353
+ }[];
23354
+ };
22885
23355
  wo_create_from_source: {
22886
23356
  Args: {
22887
23357
  _payload?: import("../integrations/supabase/types").Json;
@@ -22920,7 +23390,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
22920
23390
  };
22921
23391
  CompositeTypes: { [_ in never]: never; };
22922
23392
  }, {
22923
- PostgrestVersion: "14.5";
23393
+ PostgrestVersion: "14.17";
22924
23394
  }>;
22925
23395
  userId: string;
22926
23396
  claims: import("@supabase/auth-js").JwtPayload;
@@ -33619,6 +34089,243 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
33619
34089
  };
33620
34090
  Relationships: [];
33621
34091
  };
34092
+ maps_addresses: {
34093
+ Row: {
34094
+ address_hash: string;
34095
+ created_at: string;
34096
+ error_reason: string | null;
34097
+ formatted_address: string | null;
34098
+ id: string;
34099
+ lat: number | null;
34100
+ lng: number | null;
34101
+ place_id: string | null;
34102
+ raw_address: string;
34103
+ resolved_at: string | null;
34104
+ status: string;
34105
+ updated_at: string;
34106
+ };
34107
+ Insert: {
34108
+ address_hash: string;
34109
+ created_at?: string;
34110
+ error_reason?: string | null;
34111
+ formatted_address?: string | null;
34112
+ id?: string;
34113
+ lat?: number | null;
34114
+ lng?: number | null;
34115
+ place_id?: string | null;
34116
+ raw_address: string;
34117
+ resolved_at?: string | null;
34118
+ status?: string;
34119
+ updated_at?: string;
34120
+ };
34121
+ Update: {
34122
+ address_hash?: string;
34123
+ created_at?: string;
34124
+ error_reason?: string | null;
34125
+ formatted_address?: string | null;
34126
+ id?: string;
34127
+ lat?: number | null;
34128
+ lng?: number | null;
34129
+ place_id?: string | null;
34130
+ raw_address?: string;
34131
+ resolved_at?: string | null;
34132
+ status?: string;
34133
+ updated_at?: string;
34134
+ };
34135
+ Relationships: [];
34136
+ };
34137
+ maps_job_lease: {
34138
+ Row: {
34139
+ job: string;
34140
+ locked_until: string;
34141
+ updated_at: string;
34142
+ };
34143
+ Insert: {
34144
+ job: string;
34145
+ locked_until?: string;
34146
+ updated_at?: string;
34147
+ };
34148
+ Update: {
34149
+ job?: string;
34150
+ locked_until?: string;
34151
+ updated_at?: string;
34152
+ };
34153
+ Relationships: [];
34154
+ };
34155
+ maps_request_queue: {
34156
+ Row: {
34157
+ attempts: number;
34158
+ created_at: string;
34159
+ destination_hash: string | null;
34160
+ id: string;
34161
+ kind: string;
34162
+ last_error: string | null;
34163
+ mode: string;
34164
+ origin_hash: string | null;
34165
+ processed_at: string | null;
34166
+ raw_destination: string | null;
34167
+ raw_origin: string | null;
34168
+ requested_by: string | null;
34169
+ status: string;
34170
+ updated_at: string;
34171
+ };
34172
+ Insert: {
34173
+ attempts?: number;
34174
+ created_at?: string;
34175
+ destination_hash?: string | null;
34176
+ id?: string;
34177
+ kind: string;
34178
+ last_error?: string | null;
34179
+ mode?: string;
34180
+ origin_hash?: string | null;
34181
+ processed_at?: string | null;
34182
+ raw_destination?: string | null;
34183
+ raw_origin?: string | null;
34184
+ requested_by?: string | null;
34185
+ status?: string;
34186
+ updated_at?: string;
34187
+ };
34188
+ Update: {
34189
+ attempts?: number;
34190
+ created_at?: string;
34191
+ destination_hash?: string | null;
34192
+ id?: string;
34193
+ kind?: string;
34194
+ last_error?: string | null;
34195
+ mode?: string;
34196
+ origin_hash?: string | null;
34197
+ processed_at?: string | null;
34198
+ raw_destination?: string | null;
34199
+ raw_origin?: string | null;
34200
+ requested_by?: string | null;
34201
+ status?: string;
34202
+ updated_at?: string;
34203
+ };
34204
+ Relationships: [];
34205
+ };
34206
+ maps_settings: {
34207
+ Row: {
34208
+ allow_estimate_fallback: boolean;
34209
+ cache_ttl_days: number;
34210
+ created_at: string;
34211
+ daily_call_limit: number;
34212
+ id: string;
34213
+ last_error: string | null;
34214
+ last_error_at: string | null;
34215
+ last_success_at: string | null;
34216
+ provider: string;
34217
+ updated_at: string;
34218
+ };
34219
+ Insert: {
34220
+ allow_estimate_fallback?: boolean;
34221
+ cache_ttl_days?: number;
34222
+ created_at?: string;
34223
+ daily_call_limit?: number;
34224
+ id?: string;
34225
+ last_error?: string | null;
34226
+ last_error_at?: string | null;
34227
+ last_success_at?: string | null;
34228
+ provider?: string;
34229
+ updated_at?: string;
34230
+ };
34231
+ Update: {
34232
+ allow_estimate_fallback?: boolean;
34233
+ cache_ttl_days?: number;
34234
+ created_at?: string;
34235
+ daily_call_limit?: number;
34236
+ id?: string;
34237
+ last_error?: string | null;
34238
+ last_error_at?: string | null;
34239
+ last_success_at?: string | null;
34240
+ provider?: string;
34241
+ updated_at?: string;
34242
+ };
34243
+ Relationships: [];
34244
+ };
34245
+ maps_travel_times: {
34246
+ Row: {
34247
+ created_at: string;
34248
+ destination_id: string;
34249
+ distance_m: number | null;
34250
+ duration_sec: number;
34251
+ expires_at: string;
34252
+ id: string;
34253
+ mode: string;
34254
+ origin_id: string;
34255
+ source: string;
34256
+ updated_at: string;
34257
+ };
34258
+ Insert: {
34259
+ created_at?: string;
34260
+ destination_id: string;
34261
+ distance_m?: number | null;
34262
+ duration_sec: number;
34263
+ expires_at?: string;
34264
+ id?: string;
34265
+ mode?: string;
34266
+ origin_id: string;
34267
+ source?: string;
34268
+ updated_at?: string;
34269
+ };
34270
+ Update: {
34271
+ created_at?: string;
34272
+ destination_id?: string;
34273
+ distance_m?: number | null;
34274
+ duration_sec?: number;
34275
+ expires_at?: string;
34276
+ id?: string;
34277
+ mode?: string;
34278
+ origin_id?: string;
34279
+ source?: string;
34280
+ updated_at?: string;
34281
+ };
34282
+ Relationships: [{
34283
+ foreignKeyName: "maps_travel_times_destination_id_fkey";
34284
+ columns: ["destination_id"];
34285
+ isOneToOne: false;
34286
+ referencedRelation: "maps_addresses";
34287
+ referencedColumns: ["id"];
34288
+ }, {
34289
+ foreignKeyName: "maps_travel_times_origin_id_fkey";
34290
+ columns: ["origin_id"];
34291
+ isOneToOne: false;
34292
+ referencedRelation: "maps_addresses";
34293
+ referencedColumns: ["id"];
34294
+ }];
34295
+ };
34296
+ maps_usage_log: {
34297
+ Row: {
34298
+ cache_hits: number;
34299
+ call_type: string;
34300
+ created_at: string;
34301
+ day: string;
34302
+ detail: string | null;
34303
+ elements: number;
34304
+ id: string;
34305
+ outcome: string;
34306
+ };
34307
+ Insert: {
34308
+ cache_hits?: number;
34309
+ call_type: string;
34310
+ created_at?: string;
34311
+ day?: string;
34312
+ detail?: string | null;
34313
+ elements?: number;
34314
+ id?: string;
34315
+ outcome?: string;
34316
+ };
34317
+ Update: {
34318
+ cache_hits?: number;
34319
+ call_type?: string;
34320
+ created_at?: string;
34321
+ day?: string;
34322
+ detail?: string | null;
34323
+ elements?: number;
34324
+ id?: string;
34325
+ outcome?: string;
34326
+ };
34327
+ Relationships: [];
34328
+ };
33622
34329
  material_usage: {
33623
34330
  Row: {
33624
34331
  created_at: string;
@@ -36268,6 +36975,39 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
36268
36975
  };
36269
36976
  Relationships: [];
36270
36977
  };
36978
+ print_dedupe_events: {
36979
+ Row: {
36980
+ bestaande_job_id: string | null;
36981
+ created_at: string;
36982
+ detail: string | null;
36983
+ documentnaam: string | null;
36984
+ documenttype: string | null;
36985
+ id: string;
36986
+ idempotentie_sleutel: string;
36987
+ reden: string;
36988
+ };
36989
+ Insert: {
36990
+ bestaande_job_id?: string | null;
36991
+ created_at?: string;
36992
+ detail?: string | null;
36993
+ documentnaam?: string | null;
36994
+ documenttype?: string | null;
36995
+ id?: string;
36996
+ idempotentie_sleutel: string;
36997
+ reden: string;
36998
+ };
36999
+ Update: {
37000
+ bestaande_job_id?: string | null;
37001
+ created_at?: string;
37002
+ detail?: string | null;
37003
+ documentnaam?: string | null;
37004
+ documenttype?: string | null;
37005
+ id?: string;
37006
+ idempotentie_sleutel?: string;
37007
+ reden?: string;
37008
+ };
37009
+ Relationships: [];
37010
+ };
36271
37011
  print_job_logs: {
36272
37012
  Row: {
36273
37013
  created_at: string;
@@ -36309,6 +37049,8 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
36309
37049
  foutmelding: string | null;
36310
37050
  gebruiker_id: string | null;
36311
37051
  gebruiker_naam: string;
37052
+ gebruikte_bron: string | null;
37053
+ gebruikte_layout_id: string | null;
36312
37054
  gestart_op: string | null;
36313
37055
  herkomst: string | null;
36314
37056
  id: string;
@@ -36339,6 +37081,8 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
36339
37081
  foutmelding?: string | null;
36340
37082
  gebruiker_id?: string | null;
36341
37083
  gebruiker_naam?: string;
37084
+ gebruikte_bron?: string | null;
37085
+ gebruikte_layout_id?: string | null;
36342
37086
  gestart_op?: string | null;
36343
37087
  herkomst?: string | null;
36344
37088
  id?: string;
@@ -36369,6 +37113,8 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
36369
37113
  foutmelding?: string | null;
36370
37114
  gebruiker_id?: string | null;
36371
37115
  gebruiker_naam?: string;
37116
+ gebruikte_bron?: string | null;
37117
+ gebruikte_layout_id?: string | null;
36372
37118
  gestart_op?: string | null;
36373
37119
  herkomst?: string | null;
36374
37120
  id?: string;
@@ -36502,6 +37248,39 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
36502
37248
  };
36503
37249
  Relationships: [];
36504
37250
  };
37251
+ print_preview_events: {
37252
+ Row: {
37253
+ code: string | null;
37254
+ created_at: string;
37255
+ detail: import("../integrations/supabase/types").Json;
37256
+ id: string;
37257
+ queue_item_id: string | null;
37258
+ reden: string | null;
37259
+ station_slug: string | null;
37260
+ uitkomst: string;
37261
+ };
37262
+ Insert: {
37263
+ code?: string | null;
37264
+ created_at?: string;
37265
+ detail?: import("../integrations/supabase/types").Json;
37266
+ id?: string;
37267
+ queue_item_id?: string | null;
37268
+ reden?: string | null;
37269
+ station_slug?: string | null;
37270
+ uitkomst?: string;
37271
+ };
37272
+ Update: {
37273
+ code?: string | null;
37274
+ created_at?: string;
37275
+ detail?: import("../integrations/supabase/types").Json;
37276
+ id?: string;
37277
+ queue_item_id?: string | null;
37278
+ reden?: string | null;
37279
+ station_slug?: string | null;
37280
+ uitkomst?: string;
37281
+ };
37282
+ Relationships: [];
37283
+ };
36505
37284
  print_queue_runners: {
36506
37285
  Row: {
36507
37286
  actief: boolean;
@@ -36729,6 +37508,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
36729
37508
  created_at: string;
36730
37509
  driver: string;
36731
37510
  extern_printer_id: string | null;
37511
+ formaten_bijgewerkt_op: string | null;
36732
37512
  id: string;
36733
37513
  ip_adres: string | null;
36734
37514
  laatst_gezien: string | null;
@@ -36736,6 +37516,8 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
36736
37516
  merk: string;
36737
37517
  naam: string;
36738
37518
  omschrijving: string;
37519
+ ondersteunde_formaten: import("../integrations/supabase/types").Json | null;
37520
+ ondersteunde_laden: import("../integrations/supabase/types").Json | null;
36739
37521
  online: boolean;
36740
37522
  papierformaat: string;
36741
37523
  poort: number | null;
@@ -36751,6 +37533,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
36751
37533
  created_at?: string;
36752
37534
  driver?: string;
36753
37535
  extern_printer_id?: string | null;
37536
+ formaten_bijgewerkt_op?: string | null;
36754
37537
  id?: string;
36755
37538
  ip_adres?: string | null;
36756
37539
  laatst_gezien?: string | null;
@@ -36758,6 +37541,8 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
36758
37541
  merk?: string;
36759
37542
  naam: string;
36760
37543
  omschrijving?: string;
37544
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
37545
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
36761
37546
  online?: boolean;
36762
37547
  papierformaat?: string;
36763
37548
  poort?: number | null;
@@ -36773,6 +37558,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
36773
37558
  created_at?: string;
36774
37559
  driver?: string;
36775
37560
  extern_printer_id?: string | null;
37561
+ formaten_bijgewerkt_op?: string | null;
36776
37562
  id?: string;
36777
37563
  ip_adres?: string | null;
36778
37564
  laatst_gezien?: string | null;
@@ -36780,6 +37566,8 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
36780
37566
  merk?: string;
36781
37567
  naam?: string;
36782
37568
  omschrijving?: string;
37569
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
37570
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
36783
37571
  online?: boolean;
36784
37572
  papierformaat?: string;
36785
37573
  poort?: number | null;
@@ -38656,6 +39444,45 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
38656
39444
  };
38657
39445
  Relationships: [];
38658
39446
  };
39447
+ stock_consumption_alerts: {
39448
+ Row: {
39449
+ alert_type: string;
39450
+ created_at: string;
39451
+ id: string;
39452
+ mutation_log_id: string | null;
39453
+ order_id: string | null;
39454
+ order_item_id: string | null;
39455
+ qty: number;
39456
+ reason: string | null;
39457
+ resolved_at: string | null;
39458
+ updated_at: string;
39459
+ };
39460
+ Insert: {
39461
+ alert_type: string;
39462
+ created_at?: string;
39463
+ id?: string;
39464
+ mutation_log_id?: string | null;
39465
+ order_id?: string | null;
39466
+ order_item_id?: string | null;
39467
+ qty?: number;
39468
+ reason?: string | null;
39469
+ resolved_at?: string | null;
39470
+ updated_at?: string;
39471
+ };
39472
+ Update: {
39473
+ alert_type?: string;
39474
+ created_at?: string;
39475
+ id?: string;
39476
+ mutation_log_id?: string | null;
39477
+ order_id?: string | null;
39478
+ order_item_id?: string | null;
39479
+ qty?: number;
39480
+ reason?: string | null;
39481
+ resolved_at?: string | null;
39482
+ updated_at?: string;
39483
+ };
39484
+ Relationships: [];
39485
+ };
38659
39486
  stock_import_runs: {
38660
39487
  Row: {
38661
39488
  connection_id: string | null;
@@ -41509,6 +42336,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
41509
42336
  werkbon_package_items: {
41510
42337
  Row: {
41511
42338
  article_number: string | null;
42339
+ artikel_id: string | null;
41512
42340
  created_at: string;
41513
42341
  gtin: string | null;
41514
42342
  id: string;
@@ -41526,6 +42354,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
41526
42354
  };
41527
42355
  Insert: {
41528
42356
  article_number?: string | null;
42357
+ artikel_id?: string | null;
41529
42358
  created_at?: string;
41530
42359
  gtin?: string | null;
41531
42360
  id?: string;
@@ -41543,6 +42372,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
41543
42372
  };
41544
42373
  Update: {
41545
42374
  article_number?: string | null;
42375
+ artikel_id?: string | null;
41546
42376
  created_at?: string;
41547
42377
  gtin?: string | null;
41548
42378
  id?: string;
@@ -41559,6 +42389,12 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
41559
42389
  updated_at?: string;
41560
42390
  };
41561
42391
  Relationships: [{
42392
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
42393
+ columns: ["artikel_id"];
42394
+ isOneToOne: false;
42395
+ referencedRelation: "artikelen_cache";
42396
+ referencedColumns: ["id"];
42397
+ }, {
41562
42398
  foreignKeyName: "werkbon_package_items_package_id_fkey";
41563
42399
  columns: ["package_id"];
41564
42400
  isOneToOne: false;
@@ -42781,6 +43617,20 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
42781
43617
  referencedColumns: ["id"];
42782
43618
  }];
42783
43619
  };
43620
+ v_werkbon_totalen: {
43621
+ Row: {
43622
+ packages_cents: number | null;
43623
+ packages_minutes: number | null;
43624
+ werkbon_id: string | null;
43625
+ };
43626
+ Relationships: [{
43627
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
43628
+ columns: ["werkbon_id"];
43629
+ isOneToOne: false;
43630
+ referencedRelation: "werkbonnen";
43631
+ referencedColumns: ["id"];
43632
+ }];
43633
+ };
42784
43634
  };
42785
43635
  Functions: {
42786
43636
  _floriday_schedule_job: {
@@ -42967,6 +43817,8 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
42967
43817
  foutmelding: string | null;
42968
43818
  gebruiker_id: string | null;
42969
43819
  gebruiker_naam: string;
43820
+ gebruikte_bron: string | null;
43821
+ gebruikte_layout_id: string | null;
42970
43822
  gestart_op: string | null;
42971
43823
  herkomst: string | null;
42972
43824
  id: string;
@@ -43088,6 +43940,8 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
43088
43940
  foutmelding: string | null;
43089
43941
  gebruiker_id: string | null;
43090
43942
  gebruiker_naam: string;
43943
+ gebruikte_bron: string | null;
43944
+ gebruikte_layout_id: string | null;
43091
43945
  gestart_op: string | null;
43092
43946
  herkomst: string | null;
43093
43947
  id: string;
@@ -44144,6 +44998,12 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
44144
44998
  };
44145
44999
  Returns: string;
44146
45000
  };
45001
+ logistics_document_type_map: {
45002
+ Args: {
45003
+ _document_code: string;
45004
+ };
45005
+ Returns: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"][];
45006
+ };
44147
45007
  logistics_emit_event: {
44148
45008
  Args: {
44149
45009
  p_event_type: string;
@@ -44328,6 +45188,14 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
44328
45188
  };
44329
45189
  Returns: import("../integrations/supabase/types").Json;
44330
45190
  };
45191
+ logistics_plan_block: {
45192
+ Args: {
45193
+ p_details?: import("../integrations/supabase/types").Json;
45194
+ p_order_ids: string[];
45195
+ p_reason: string;
45196
+ };
45197
+ Returns: number;
45198
+ };
44331
45199
  logistics_plan_buffer_sql: {
44332
45200
  Args: {
44333
45201
  p_buffer_id: string;
@@ -44696,6 +45564,12 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
44696
45564
  verwijderd: number;
44697
45565
  }[];
44698
45566
  };
45567
+ order_departure_proof: {
45568
+ Args: {
45569
+ p_order_id: string;
45570
+ };
45571
+ Returns: import("../integrations/supabase/types").Json;
45572
+ };
44699
45573
  order_number_prefix: {
44700
45574
  Args: {
44701
45575
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -44703,6 +45577,25 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
44703
45577
  };
44704
45578
  Returns: string;
44705
45579
  };
45580
+ pakket_suggesties_voor_tekst: {
45581
+ Args: {
45582
+ _tekst: string;
45583
+ };
45584
+ Returns: {
45585
+ hit_type: string;
45586
+ package_id: string;
45587
+ priority: number;
45588
+ }[];
45589
+ };
45590
+ pakket_voor_reistijd: {
45591
+ Args: {
45592
+ _minuten: number;
45593
+ };
45594
+ Returns: {
45595
+ package_id: string;
45596
+ priority: number;
45597
+ }[];
45598
+ };
44706
45599
  pick_active_printers: {
44707
45600
  Args: never;
44708
45601
  Returns: {
@@ -44884,6 +45777,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
44884
45777
  };
44885
45778
  pick_enqueue_print_job: {
44886
45779
  Args: {
45780
+ _is_herprint?: boolean;
44887
45781
  _printer_id?: string;
44888
45782
  _queue_item_id: string;
44889
45783
  _session_id?: string;
@@ -44911,6 +45805,10 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
44911
45805
  omschrijving: string;
44912
45806
  }[];
44913
45807
  };
45808
+ pick_reference_data_status: {
45809
+ Args: never;
45810
+ Returns: import("../integrations/supabase/types").Json;
45811
+ };
44914
45812
  pick_release_expired_locks: {
44915
45813
  Args: never;
44916
45814
  Returns: number;
@@ -44975,6 +45873,10 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
44975
45873
  isSetofReturn: false;
44976
45874
  };
44977
45875
  };
45876
+ pick_seed_reference_data: {
45877
+ Args: never;
45878
+ Returns: import("../integrations/supabase/types").Json;
45879
+ };
44978
45880
  pick_set_station_print_plek: {
44979
45881
  Args: {
44980
45882
  _print_plek_id: string;
@@ -45066,6 +45968,24 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
45066
45968
  };
45067
45969
  Returns: undefined;
45068
45970
  };
45971
+ print_preview_toestaan: {
45972
+ Args: {
45973
+ _max?: number;
45974
+ _queue_item_id: string;
45975
+ _station_slug: string;
45976
+ _venster_sec?: number;
45977
+ };
45978
+ Returns: import("../integrations/supabase/types").Json;
45979
+ };
45980
+ print_preview_weiger: {
45981
+ Args: {
45982
+ _code: string;
45983
+ _queue_item_id: string;
45984
+ _reden: string;
45985
+ _station_slug: string;
45986
+ };
45987
+ Returns: undefined;
45988
+ };
45069
45989
  process_logistics_event: {
45070
45990
  Args: {
45071
45991
  p_event_id: string;
@@ -45183,6 +46103,14 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
45183
46103
  };
45184
46104
  Returns: undefined;
45185
46105
  };
46106
+ replace_order_carts: {
46107
+ Args: {
46108
+ p_buffer_id: string;
46109
+ p_carts: import("../integrations/supabase/types").Json;
46110
+ p_order_id: string;
46111
+ };
46112
+ Returns: import("../integrations/supabase/types").Json;
46113
+ };
45186
46114
  reset_floriday_sync_cursor: {
45187
46115
  Args: {
45188
46116
  p_connection_id: string;
@@ -45753,6 +46681,18 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
45753
46681
  Args: never;
45754
46682
  Returns: string;
45755
46683
  };
46684
+ werkbon_totalen: {
46685
+ Args: {
46686
+ _werkbon_id: string;
46687
+ };
46688
+ Returns: {
46689
+ materials_cents: number;
46690
+ packages_cents: number;
46691
+ packages_minutes: number;
46692
+ total_cents: number;
46693
+ total_minutes: number;
46694
+ }[];
46695
+ };
45756
46696
  wo_create_from_source: {
45757
46697
  Args: {
45758
46698
  _payload?: import("../integrations/supabase/types").Json;
@@ -45791,7 +46731,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
45791
46731
  };
45792
46732
  CompositeTypes: { [_ in never]: never; };
45793
46733
  }, {
45794
- PostgrestVersion: "14.5";
46734
+ PostgrestVersion: "14.17";
45795
46735
  }>;
45796
46736
  userId: string;
45797
46737
  claims: import("@supabase/auth-js").JwtPayload;
@@ -56494,6 +57434,243 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
56494
57434
  };
56495
57435
  Relationships: [];
56496
57436
  };
57437
+ maps_addresses: {
57438
+ Row: {
57439
+ address_hash: string;
57440
+ created_at: string;
57441
+ error_reason: string | null;
57442
+ formatted_address: string | null;
57443
+ id: string;
57444
+ lat: number | null;
57445
+ lng: number | null;
57446
+ place_id: string | null;
57447
+ raw_address: string;
57448
+ resolved_at: string | null;
57449
+ status: string;
57450
+ updated_at: string;
57451
+ };
57452
+ Insert: {
57453
+ address_hash: string;
57454
+ created_at?: string;
57455
+ error_reason?: string | null;
57456
+ formatted_address?: string | null;
57457
+ id?: string;
57458
+ lat?: number | null;
57459
+ lng?: number | null;
57460
+ place_id?: string | null;
57461
+ raw_address: string;
57462
+ resolved_at?: string | null;
57463
+ status?: string;
57464
+ updated_at?: string;
57465
+ };
57466
+ Update: {
57467
+ address_hash?: string;
57468
+ created_at?: string;
57469
+ error_reason?: string | null;
57470
+ formatted_address?: string | null;
57471
+ id?: string;
57472
+ lat?: number | null;
57473
+ lng?: number | null;
57474
+ place_id?: string | null;
57475
+ raw_address?: string;
57476
+ resolved_at?: string | null;
57477
+ status?: string;
57478
+ updated_at?: string;
57479
+ };
57480
+ Relationships: [];
57481
+ };
57482
+ maps_job_lease: {
57483
+ Row: {
57484
+ job: string;
57485
+ locked_until: string;
57486
+ updated_at: string;
57487
+ };
57488
+ Insert: {
57489
+ job: string;
57490
+ locked_until?: string;
57491
+ updated_at?: string;
57492
+ };
57493
+ Update: {
57494
+ job?: string;
57495
+ locked_until?: string;
57496
+ updated_at?: string;
57497
+ };
57498
+ Relationships: [];
57499
+ };
57500
+ maps_request_queue: {
57501
+ Row: {
57502
+ attempts: number;
57503
+ created_at: string;
57504
+ destination_hash: string | null;
57505
+ id: string;
57506
+ kind: string;
57507
+ last_error: string | null;
57508
+ mode: string;
57509
+ origin_hash: string | null;
57510
+ processed_at: string | null;
57511
+ raw_destination: string | null;
57512
+ raw_origin: string | null;
57513
+ requested_by: string | null;
57514
+ status: string;
57515
+ updated_at: string;
57516
+ };
57517
+ Insert: {
57518
+ attempts?: number;
57519
+ created_at?: string;
57520
+ destination_hash?: string | null;
57521
+ id?: string;
57522
+ kind: string;
57523
+ last_error?: string | null;
57524
+ mode?: string;
57525
+ origin_hash?: string | null;
57526
+ processed_at?: string | null;
57527
+ raw_destination?: string | null;
57528
+ raw_origin?: string | null;
57529
+ requested_by?: string | null;
57530
+ status?: string;
57531
+ updated_at?: string;
57532
+ };
57533
+ Update: {
57534
+ attempts?: number;
57535
+ created_at?: string;
57536
+ destination_hash?: string | null;
57537
+ id?: string;
57538
+ kind?: string;
57539
+ last_error?: string | null;
57540
+ mode?: string;
57541
+ origin_hash?: string | null;
57542
+ processed_at?: string | null;
57543
+ raw_destination?: string | null;
57544
+ raw_origin?: string | null;
57545
+ requested_by?: string | null;
57546
+ status?: string;
57547
+ updated_at?: string;
57548
+ };
57549
+ Relationships: [];
57550
+ };
57551
+ maps_settings: {
57552
+ Row: {
57553
+ allow_estimate_fallback: boolean;
57554
+ cache_ttl_days: number;
57555
+ created_at: string;
57556
+ daily_call_limit: number;
57557
+ id: string;
57558
+ last_error: string | null;
57559
+ last_error_at: string | null;
57560
+ last_success_at: string | null;
57561
+ provider: string;
57562
+ updated_at: string;
57563
+ };
57564
+ Insert: {
57565
+ allow_estimate_fallback?: boolean;
57566
+ cache_ttl_days?: number;
57567
+ created_at?: string;
57568
+ daily_call_limit?: number;
57569
+ id?: string;
57570
+ last_error?: string | null;
57571
+ last_error_at?: string | null;
57572
+ last_success_at?: string | null;
57573
+ provider?: string;
57574
+ updated_at?: string;
57575
+ };
57576
+ Update: {
57577
+ allow_estimate_fallback?: boolean;
57578
+ cache_ttl_days?: number;
57579
+ created_at?: string;
57580
+ daily_call_limit?: number;
57581
+ id?: string;
57582
+ last_error?: string | null;
57583
+ last_error_at?: string | null;
57584
+ last_success_at?: string | null;
57585
+ provider?: string;
57586
+ updated_at?: string;
57587
+ };
57588
+ Relationships: [];
57589
+ };
57590
+ maps_travel_times: {
57591
+ Row: {
57592
+ created_at: string;
57593
+ destination_id: string;
57594
+ distance_m: number | null;
57595
+ duration_sec: number;
57596
+ expires_at: string;
57597
+ id: string;
57598
+ mode: string;
57599
+ origin_id: string;
57600
+ source: string;
57601
+ updated_at: string;
57602
+ };
57603
+ Insert: {
57604
+ created_at?: string;
57605
+ destination_id: string;
57606
+ distance_m?: number | null;
57607
+ duration_sec: number;
57608
+ expires_at?: string;
57609
+ id?: string;
57610
+ mode?: string;
57611
+ origin_id: string;
57612
+ source?: string;
57613
+ updated_at?: string;
57614
+ };
57615
+ Update: {
57616
+ created_at?: string;
57617
+ destination_id?: string;
57618
+ distance_m?: number | null;
57619
+ duration_sec?: number;
57620
+ expires_at?: string;
57621
+ id?: string;
57622
+ mode?: string;
57623
+ origin_id?: string;
57624
+ source?: string;
57625
+ updated_at?: string;
57626
+ };
57627
+ Relationships: [{
57628
+ foreignKeyName: "maps_travel_times_destination_id_fkey";
57629
+ columns: ["destination_id"];
57630
+ isOneToOne: false;
57631
+ referencedRelation: "maps_addresses";
57632
+ referencedColumns: ["id"];
57633
+ }, {
57634
+ foreignKeyName: "maps_travel_times_origin_id_fkey";
57635
+ columns: ["origin_id"];
57636
+ isOneToOne: false;
57637
+ referencedRelation: "maps_addresses";
57638
+ referencedColumns: ["id"];
57639
+ }];
57640
+ };
57641
+ maps_usage_log: {
57642
+ Row: {
57643
+ cache_hits: number;
57644
+ call_type: string;
57645
+ created_at: string;
57646
+ day: string;
57647
+ detail: string | null;
57648
+ elements: number;
57649
+ id: string;
57650
+ outcome: string;
57651
+ };
57652
+ Insert: {
57653
+ cache_hits?: number;
57654
+ call_type: string;
57655
+ created_at?: string;
57656
+ day?: string;
57657
+ detail?: string | null;
57658
+ elements?: number;
57659
+ id?: string;
57660
+ outcome?: string;
57661
+ };
57662
+ Update: {
57663
+ cache_hits?: number;
57664
+ call_type?: string;
57665
+ created_at?: string;
57666
+ day?: string;
57667
+ detail?: string | null;
57668
+ elements?: number;
57669
+ id?: string;
57670
+ outcome?: string;
57671
+ };
57672
+ Relationships: [];
57673
+ };
56497
57674
  material_usage: {
56498
57675
  Row: {
56499
57676
  created_at: string;
@@ -59143,6 +60320,39 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
59143
60320
  };
59144
60321
  Relationships: [];
59145
60322
  };
60323
+ print_dedupe_events: {
60324
+ Row: {
60325
+ bestaande_job_id: string | null;
60326
+ created_at: string;
60327
+ detail: string | null;
60328
+ documentnaam: string | null;
60329
+ documenttype: string | null;
60330
+ id: string;
60331
+ idempotentie_sleutel: string;
60332
+ reden: string;
60333
+ };
60334
+ Insert: {
60335
+ bestaande_job_id?: string | null;
60336
+ created_at?: string;
60337
+ detail?: string | null;
60338
+ documentnaam?: string | null;
60339
+ documenttype?: string | null;
60340
+ id?: string;
60341
+ idempotentie_sleutel: string;
60342
+ reden: string;
60343
+ };
60344
+ Update: {
60345
+ bestaande_job_id?: string | null;
60346
+ created_at?: string;
60347
+ detail?: string | null;
60348
+ documentnaam?: string | null;
60349
+ documenttype?: string | null;
60350
+ id?: string;
60351
+ idempotentie_sleutel?: string;
60352
+ reden?: string;
60353
+ };
60354
+ Relationships: [];
60355
+ };
59146
60356
  print_job_logs: {
59147
60357
  Row: {
59148
60358
  created_at: string;
@@ -59184,6 +60394,8 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
59184
60394
  foutmelding: string | null;
59185
60395
  gebruiker_id: string | null;
59186
60396
  gebruiker_naam: string;
60397
+ gebruikte_bron: string | null;
60398
+ gebruikte_layout_id: string | null;
59187
60399
  gestart_op: string | null;
59188
60400
  herkomst: string | null;
59189
60401
  id: string;
@@ -59214,6 +60426,8 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
59214
60426
  foutmelding?: string | null;
59215
60427
  gebruiker_id?: string | null;
59216
60428
  gebruiker_naam?: string;
60429
+ gebruikte_bron?: string | null;
60430
+ gebruikte_layout_id?: string | null;
59217
60431
  gestart_op?: string | null;
59218
60432
  herkomst?: string | null;
59219
60433
  id?: string;
@@ -59244,6 +60458,8 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
59244
60458
  foutmelding?: string | null;
59245
60459
  gebruiker_id?: string | null;
59246
60460
  gebruiker_naam?: string;
60461
+ gebruikte_bron?: string | null;
60462
+ gebruikte_layout_id?: string | null;
59247
60463
  gestart_op?: string | null;
59248
60464
  herkomst?: string | null;
59249
60465
  id?: string;
@@ -59377,6 +60593,39 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
59377
60593
  };
59378
60594
  Relationships: [];
59379
60595
  };
60596
+ print_preview_events: {
60597
+ Row: {
60598
+ code: string | null;
60599
+ created_at: string;
60600
+ detail: import("../integrations/supabase/types").Json;
60601
+ id: string;
60602
+ queue_item_id: string | null;
60603
+ reden: string | null;
60604
+ station_slug: string | null;
60605
+ uitkomst: string;
60606
+ };
60607
+ Insert: {
60608
+ code?: string | null;
60609
+ created_at?: string;
60610
+ detail?: import("../integrations/supabase/types").Json;
60611
+ id?: string;
60612
+ queue_item_id?: string | null;
60613
+ reden?: string | null;
60614
+ station_slug?: string | null;
60615
+ uitkomst?: string;
60616
+ };
60617
+ Update: {
60618
+ code?: string | null;
60619
+ created_at?: string;
60620
+ detail?: import("../integrations/supabase/types").Json;
60621
+ id?: string;
60622
+ queue_item_id?: string | null;
60623
+ reden?: string | null;
60624
+ station_slug?: string | null;
60625
+ uitkomst?: string;
60626
+ };
60627
+ Relationships: [];
60628
+ };
59380
60629
  print_queue_runners: {
59381
60630
  Row: {
59382
60631
  actief: boolean;
@@ -59604,6 +60853,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
59604
60853
  created_at: string;
59605
60854
  driver: string;
59606
60855
  extern_printer_id: string | null;
60856
+ formaten_bijgewerkt_op: string | null;
59607
60857
  id: string;
59608
60858
  ip_adres: string | null;
59609
60859
  laatst_gezien: string | null;
@@ -59611,6 +60861,8 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
59611
60861
  merk: string;
59612
60862
  naam: string;
59613
60863
  omschrijving: string;
60864
+ ondersteunde_formaten: import("../integrations/supabase/types").Json | null;
60865
+ ondersteunde_laden: import("../integrations/supabase/types").Json | null;
59614
60866
  online: boolean;
59615
60867
  papierformaat: string;
59616
60868
  poort: number | null;
@@ -59626,6 +60878,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
59626
60878
  created_at?: string;
59627
60879
  driver?: string;
59628
60880
  extern_printer_id?: string | null;
60881
+ formaten_bijgewerkt_op?: string | null;
59629
60882
  id?: string;
59630
60883
  ip_adres?: string | null;
59631
60884
  laatst_gezien?: string | null;
@@ -59633,6 +60886,8 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
59633
60886
  merk?: string;
59634
60887
  naam: string;
59635
60888
  omschrijving?: string;
60889
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
60890
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
59636
60891
  online?: boolean;
59637
60892
  papierformaat?: string;
59638
60893
  poort?: number | null;
@@ -59648,6 +60903,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
59648
60903
  created_at?: string;
59649
60904
  driver?: string;
59650
60905
  extern_printer_id?: string | null;
60906
+ formaten_bijgewerkt_op?: string | null;
59651
60907
  id?: string;
59652
60908
  ip_adres?: string | null;
59653
60909
  laatst_gezien?: string | null;
@@ -59655,6 +60911,8 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
59655
60911
  merk?: string;
59656
60912
  naam?: string;
59657
60913
  omschrijving?: string;
60914
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
60915
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
59658
60916
  online?: boolean;
59659
60917
  papierformaat?: string;
59660
60918
  poort?: number | null;
@@ -61531,6 +62789,45 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
61531
62789
  };
61532
62790
  Relationships: [];
61533
62791
  };
62792
+ stock_consumption_alerts: {
62793
+ Row: {
62794
+ alert_type: string;
62795
+ created_at: string;
62796
+ id: string;
62797
+ mutation_log_id: string | null;
62798
+ order_id: string | null;
62799
+ order_item_id: string | null;
62800
+ qty: number;
62801
+ reason: string | null;
62802
+ resolved_at: string | null;
62803
+ updated_at: string;
62804
+ };
62805
+ Insert: {
62806
+ alert_type: string;
62807
+ created_at?: string;
62808
+ id?: string;
62809
+ mutation_log_id?: string | null;
62810
+ order_id?: string | null;
62811
+ order_item_id?: string | null;
62812
+ qty?: number;
62813
+ reason?: string | null;
62814
+ resolved_at?: string | null;
62815
+ updated_at?: string;
62816
+ };
62817
+ Update: {
62818
+ alert_type?: string;
62819
+ created_at?: string;
62820
+ id?: string;
62821
+ mutation_log_id?: string | null;
62822
+ order_id?: string | null;
62823
+ order_item_id?: string | null;
62824
+ qty?: number;
62825
+ reason?: string | null;
62826
+ resolved_at?: string | null;
62827
+ updated_at?: string;
62828
+ };
62829
+ Relationships: [];
62830
+ };
61534
62831
  stock_import_runs: {
61535
62832
  Row: {
61536
62833
  connection_id: string | null;
@@ -64384,6 +65681,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
64384
65681
  werkbon_package_items: {
64385
65682
  Row: {
64386
65683
  article_number: string | null;
65684
+ artikel_id: string | null;
64387
65685
  created_at: string;
64388
65686
  gtin: string | null;
64389
65687
  id: string;
@@ -64401,6 +65699,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
64401
65699
  };
64402
65700
  Insert: {
64403
65701
  article_number?: string | null;
65702
+ artikel_id?: string | null;
64404
65703
  created_at?: string;
64405
65704
  gtin?: string | null;
64406
65705
  id?: string;
@@ -64418,6 +65717,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
64418
65717
  };
64419
65718
  Update: {
64420
65719
  article_number?: string | null;
65720
+ artikel_id?: string | null;
64421
65721
  created_at?: string;
64422
65722
  gtin?: string | null;
64423
65723
  id?: string;
@@ -64434,6 +65734,12 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
64434
65734
  updated_at?: string;
64435
65735
  };
64436
65736
  Relationships: [{
65737
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
65738
+ columns: ["artikel_id"];
65739
+ isOneToOne: false;
65740
+ referencedRelation: "artikelen_cache";
65741
+ referencedColumns: ["id"];
65742
+ }, {
64437
65743
  foreignKeyName: "werkbon_package_items_package_id_fkey";
64438
65744
  columns: ["package_id"];
64439
65745
  isOneToOne: false;
@@ -65656,6 +66962,20 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
65656
66962
  referencedColumns: ["id"];
65657
66963
  }];
65658
66964
  };
66965
+ v_werkbon_totalen: {
66966
+ Row: {
66967
+ packages_cents: number | null;
66968
+ packages_minutes: number | null;
66969
+ werkbon_id: string | null;
66970
+ };
66971
+ Relationships: [{
66972
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
66973
+ columns: ["werkbon_id"];
66974
+ isOneToOne: false;
66975
+ referencedRelation: "werkbonnen";
66976
+ referencedColumns: ["id"];
66977
+ }];
66978
+ };
65659
66979
  };
65660
66980
  Functions: {
65661
66981
  _floriday_schedule_job: {
@@ -65842,6 +67162,8 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
65842
67162
  foutmelding: string | null;
65843
67163
  gebruiker_id: string | null;
65844
67164
  gebruiker_naam: string;
67165
+ gebruikte_bron: string | null;
67166
+ gebruikte_layout_id: string | null;
65845
67167
  gestart_op: string | null;
65846
67168
  herkomst: string | null;
65847
67169
  id: string;
@@ -65963,6 +67285,8 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
65963
67285
  foutmelding: string | null;
65964
67286
  gebruiker_id: string | null;
65965
67287
  gebruiker_naam: string;
67288
+ gebruikte_bron: string | null;
67289
+ gebruikte_layout_id: string | null;
65966
67290
  gestart_op: string | null;
65967
67291
  herkomst: string | null;
65968
67292
  id: string;
@@ -67019,6 +68343,12 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
67019
68343
  };
67020
68344
  Returns: string;
67021
68345
  };
68346
+ logistics_document_type_map: {
68347
+ Args: {
68348
+ _document_code: string;
68349
+ };
68350
+ Returns: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"][];
68351
+ };
67022
68352
  logistics_emit_event: {
67023
68353
  Args: {
67024
68354
  p_event_type: string;
@@ -67203,6 +68533,14 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
67203
68533
  };
67204
68534
  Returns: import("../integrations/supabase/types").Json;
67205
68535
  };
68536
+ logistics_plan_block: {
68537
+ Args: {
68538
+ p_details?: import("../integrations/supabase/types").Json;
68539
+ p_order_ids: string[];
68540
+ p_reason: string;
68541
+ };
68542
+ Returns: number;
68543
+ };
67206
68544
  logistics_plan_buffer_sql: {
67207
68545
  Args: {
67208
68546
  p_buffer_id: string;
@@ -67571,6 +68909,12 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
67571
68909
  verwijderd: number;
67572
68910
  }[];
67573
68911
  };
68912
+ order_departure_proof: {
68913
+ Args: {
68914
+ p_order_id: string;
68915
+ };
68916
+ Returns: import("../integrations/supabase/types").Json;
68917
+ };
67574
68918
  order_number_prefix: {
67575
68919
  Args: {
67576
68920
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -67578,6 +68922,25 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
67578
68922
  };
67579
68923
  Returns: string;
67580
68924
  };
68925
+ pakket_suggesties_voor_tekst: {
68926
+ Args: {
68927
+ _tekst: string;
68928
+ };
68929
+ Returns: {
68930
+ hit_type: string;
68931
+ package_id: string;
68932
+ priority: number;
68933
+ }[];
68934
+ };
68935
+ pakket_voor_reistijd: {
68936
+ Args: {
68937
+ _minuten: number;
68938
+ };
68939
+ Returns: {
68940
+ package_id: string;
68941
+ priority: number;
68942
+ }[];
68943
+ };
67581
68944
  pick_active_printers: {
67582
68945
  Args: never;
67583
68946
  Returns: {
@@ -67759,6 +69122,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
67759
69122
  };
67760
69123
  pick_enqueue_print_job: {
67761
69124
  Args: {
69125
+ _is_herprint?: boolean;
67762
69126
  _printer_id?: string;
67763
69127
  _queue_item_id: string;
67764
69128
  _session_id?: string;
@@ -67786,6 +69150,10 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
67786
69150
  omschrijving: string;
67787
69151
  }[];
67788
69152
  };
69153
+ pick_reference_data_status: {
69154
+ Args: never;
69155
+ Returns: import("../integrations/supabase/types").Json;
69156
+ };
67789
69157
  pick_release_expired_locks: {
67790
69158
  Args: never;
67791
69159
  Returns: number;
@@ -67850,6 +69218,10 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
67850
69218
  isSetofReturn: false;
67851
69219
  };
67852
69220
  };
69221
+ pick_seed_reference_data: {
69222
+ Args: never;
69223
+ Returns: import("../integrations/supabase/types").Json;
69224
+ };
67853
69225
  pick_set_station_print_plek: {
67854
69226
  Args: {
67855
69227
  _print_plek_id: string;
@@ -67941,6 +69313,24 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
67941
69313
  };
67942
69314
  Returns: undefined;
67943
69315
  };
69316
+ print_preview_toestaan: {
69317
+ Args: {
69318
+ _max?: number;
69319
+ _queue_item_id: string;
69320
+ _station_slug: string;
69321
+ _venster_sec?: number;
69322
+ };
69323
+ Returns: import("../integrations/supabase/types").Json;
69324
+ };
69325
+ print_preview_weiger: {
69326
+ Args: {
69327
+ _code: string;
69328
+ _queue_item_id: string;
69329
+ _reden: string;
69330
+ _station_slug: string;
69331
+ };
69332
+ Returns: undefined;
69333
+ };
67944
69334
  process_logistics_event: {
67945
69335
  Args: {
67946
69336
  p_event_id: string;
@@ -68058,6 +69448,14 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
68058
69448
  };
68059
69449
  Returns: undefined;
68060
69450
  };
69451
+ replace_order_carts: {
69452
+ Args: {
69453
+ p_buffer_id: string;
69454
+ p_carts: import("../integrations/supabase/types").Json;
69455
+ p_order_id: string;
69456
+ };
69457
+ Returns: import("../integrations/supabase/types").Json;
69458
+ };
68061
69459
  reset_floriday_sync_cursor: {
68062
69460
  Args: {
68063
69461
  p_connection_id: string;
@@ -68628,6 +70026,18 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
68628
70026
  Args: never;
68629
70027
  Returns: string;
68630
70028
  };
70029
+ werkbon_totalen: {
70030
+ Args: {
70031
+ _werkbon_id: string;
70032
+ };
70033
+ Returns: {
70034
+ materials_cents: number;
70035
+ packages_cents: number;
70036
+ packages_minutes: number;
70037
+ total_cents: number;
70038
+ total_minutes: number;
70039
+ }[];
70040
+ };
68631
70041
  wo_create_from_source: {
68632
70042
  Args: {
68633
70043
  _payload?: import("../integrations/supabase/types").Json;
@@ -68666,7 +70076,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
68666
70076
  };
68667
70077
  CompositeTypes: { [_ in never]: never; };
68668
70078
  }, {
68669
- PostgrestVersion: "14.5";
70079
+ PostgrestVersion: "14.17";
68670
70080
  }>;
68671
70081
  userId: string;
68672
70082
  claims: import("@supabase/auth-js").JwtPayload;
@@ -79371,6 +80781,243 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
79371
80781
  };
79372
80782
  Relationships: [];
79373
80783
  };
80784
+ maps_addresses: {
80785
+ Row: {
80786
+ address_hash: string;
80787
+ created_at: string;
80788
+ error_reason: string | null;
80789
+ formatted_address: string | null;
80790
+ id: string;
80791
+ lat: number | null;
80792
+ lng: number | null;
80793
+ place_id: string | null;
80794
+ raw_address: string;
80795
+ resolved_at: string | null;
80796
+ status: string;
80797
+ updated_at: string;
80798
+ };
80799
+ Insert: {
80800
+ address_hash: string;
80801
+ created_at?: string;
80802
+ error_reason?: string | null;
80803
+ formatted_address?: string | null;
80804
+ id?: string;
80805
+ lat?: number | null;
80806
+ lng?: number | null;
80807
+ place_id?: string | null;
80808
+ raw_address: string;
80809
+ resolved_at?: string | null;
80810
+ status?: string;
80811
+ updated_at?: string;
80812
+ };
80813
+ Update: {
80814
+ address_hash?: string;
80815
+ created_at?: string;
80816
+ error_reason?: string | null;
80817
+ formatted_address?: string | null;
80818
+ id?: string;
80819
+ lat?: number | null;
80820
+ lng?: number | null;
80821
+ place_id?: string | null;
80822
+ raw_address?: string;
80823
+ resolved_at?: string | null;
80824
+ status?: string;
80825
+ updated_at?: string;
80826
+ };
80827
+ Relationships: [];
80828
+ };
80829
+ maps_job_lease: {
80830
+ Row: {
80831
+ job: string;
80832
+ locked_until: string;
80833
+ updated_at: string;
80834
+ };
80835
+ Insert: {
80836
+ job: string;
80837
+ locked_until?: string;
80838
+ updated_at?: string;
80839
+ };
80840
+ Update: {
80841
+ job?: string;
80842
+ locked_until?: string;
80843
+ updated_at?: string;
80844
+ };
80845
+ Relationships: [];
80846
+ };
80847
+ maps_request_queue: {
80848
+ Row: {
80849
+ attempts: number;
80850
+ created_at: string;
80851
+ destination_hash: string | null;
80852
+ id: string;
80853
+ kind: string;
80854
+ last_error: string | null;
80855
+ mode: string;
80856
+ origin_hash: string | null;
80857
+ processed_at: string | null;
80858
+ raw_destination: string | null;
80859
+ raw_origin: string | null;
80860
+ requested_by: string | null;
80861
+ status: string;
80862
+ updated_at: string;
80863
+ };
80864
+ Insert: {
80865
+ attempts?: number;
80866
+ created_at?: string;
80867
+ destination_hash?: string | null;
80868
+ id?: string;
80869
+ kind: string;
80870
+ last_error?: string | null;
80871
+ mode?: string;
80872
+ origin_hash?: string | null;
80873
+ processed_at?: string | null;
80874
+ raw_destination?: string | null;
80875
+ raw_origin?: string | null;
80876
+ requested_by?: string | null;
80877
+ status?: string;
80878
+ updated_at?: string;
80879
+ };
80880
+ Update: {
80881
+ attempts?: number;
80882
+ created_at?: string;
80883
+ destination_hash?: string | null;
80884
+ id?: string;
80885
+ kind?: string;
80886
+ last_error?: string | null;
80887
+ mode?: string;
80888
+ origin_hash?: string | null;
80889
+ processed_at?: string | null;
80890
+ raw_destination?: string | null;
80891
+ raw_origin?: string | null;
80892
+ requested_by?: string | null;
80893
+ status?: string;
80894
+ updated_at?: string;
80895
+ };
80896
+ Relationships: [];
80897
+ };
80898
+ maps_settings: {
80899
+ Row: {
80900
+ allow_estimate_fallback: boolean;
80901
+ cache_ttl_days: number;
80902
+ created_at: string;
80903
+ daily_call_limit: number;
80904
+ id: string;
80905
+ last_error: string | null;
80906
+ last_error_at: string | null;
80907
+ last_success_at: string | null;
80908
+ provider: string;
80909
+ updated_at: string;
80910
+ };
80911
+ Insert: {
80912
+ allow_estimate_fallback?: boolean;
80913
+ cache_ttl_days?: number;
80914
+ created_at?: string;
80915
+ daily_call_limit?: number;
80916
+ id?: string;
80917
+ last_error?: string | null;
80918
+ last_error_at?: string | null;
80919
+ last_success_at?: string | null;
80920
+ provider?: string;
80921
+ updated_at?: string;
80922
+ };
80923
+ Update: {
80924
+ allow_estimate_fallback?: boolean;
80925
+ cache_ttl_days?: number;
80926
+ created_at?: string;
80927
+ daily_call_limit?: number;
80928
+ id?: string;
80929
+ last_error?: string | null;
80930
+ last_error_at?: string | null;
80931
+ last_success_at?: string | null;
80932
+ provider?: string;
80933
+ updated_at?: string;
80934
+ };
80935
+ Relationships: [];
80936
+ };
80937
+ maps_travel_times: {
80938
+ Row: {
80939
+ created_at: string;
80940
+ destination_id: string;
80941
+ distance_m: number | null;
80942
+ duration_sec: number;
80943
+ expires_at: string;
80944
+ id: string;
80945
+ mode: string;
80946
+ origin_id: string;
80947
+ source: string;
80948
+ updated_at: string;
80949
+ };
80950
+ Insert: {
80951
+ created_at?: string;
80952
+ destination_id: string;
80953
+ distance_m?: number | null;
80954
+ duration_sec: number;
80955
+ expires_at?: string;
80956
+ id?: string;
80957
+ mode?: string;
80958
+ origin_id: string;
80959
+ source?: string;
80960
+ updated_at?: string;
80961
+ };
80962
+ Update: {
80963
+ created_at?: string;
80964
+ destination_id?: string;
80965
+ distance_m?: number | null;
80966
+ duration_sec?: number;
80967
+ expires_at?: string;
80968
+ id?: string;
80969
+ mode?: string;
80970
+ origin_id?: string;
80971
+ source?: string;
80972
+ updated_at?: string;
80973
+ };
80974
+ Relationships: [{
80975
+ foreignKeyName: "maps_travel_times_destination_id_fkey";
80976
+ columns: ["destination_id"];
80977
+ isOneToOne: false;
80978
+ referencedRelation: "maps_addresses";
80979
+ referencedColumns: ["id"];
80980
+ }, {
80981
+ foreignKeyName: "maps_travel_times_origin_id_fkey";
80982
+ columns: ["origin_id"];
80983
+ isOneToOne: false;
80984
+ referencedRelation: "maps_addresses";
80985
+ referencedColumns: ["id"];
80986
+ }];
80987
+ };
80988
+ maps_usage_log: {
80989
+ Row: {
80990
+ cache_hits: number;
80991
+ call_type: string;
80992
+ created_at: string;
80993
+ day: string;
80994
+ detail: string | null;
80995
+ elements: number;
80996
+ id: string;
80997
+ outcome: string;
80998
+ };
80999
+ Insert: {
81000
+ cache_hits?: number;
81001
+ call_type: string;
81002
+ created_at?: string;
81003
+ day?: string;
81004
+ detail?: string | null;
81005
+ elements?: number;
81006
+ id?: string;
81007
+ outcome?: string;
81008
+ };
81009
+ Update: {
81010
+ cache_hits?: number;
81011
+ call_type?: string;
81012
+ created_at?: string;
81013
+ day?: string;
81014
+ detail?: string | null;
81015
+ elements?: number;
81016
+ id?: string;
81017
+ outcome?: string;
81018
+ };
81019
+ Relationships: [];
81020
+ };
79374
81021
  material_usage: {
79375
81022
  Row: {
79376
81023
  created_at: string;
@@ -82020,6 +83667,39 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
82020
83667
  };
82021
83668
  Relationships: [];
82022
83669
  };
83670
+ print_dedupe_events: {
83671
+ Row: {
83672
+ bestaande_job_id: string | null;
83673
+ created_at: string;
83674
+ detail: string | null;
83675
+ documentnaam: string | null;
83676
+ documenttype: string | null;
83677
+ id: string;
83678
+ idempotentie_sleutel: string;
83679
+ reden: string;
83680
+ };
83681
+ Insert: {
83682
+ bestaande_job_id?: string | null;
83683
+ created_at?: string;
83684
+ detail?: string | null;
83685
+ documentnaam?: string | null;
83686
+ documenttype?: string | null;
83687
+ id?: string;
83688
+ idempotentie_sleutel: string;
83689
+ reden: string;
83690
+ };
83691
+ Update: {
83692
+ bestaande_job_id?: string | null;
83693
+ created_at?: string;
83694
+ detail?: string | null;
83695
+ documentnaam?: string | null;
83696
+ documenttype?: string | null;
83697
+ id?: string;
83698
+ idempotentie_sleutel?: string;
83699
+ reden?: string;
83700
+ };
83701
+ Relationships: [];
83702
+ };
82023
83703
  print_job_logs: {
82024
83704
  Row: {
82025
83705
  created_at: string;
@@ -82061,6 +83741,8 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
82061
83741
  foutmelding: string | null;
82062
83742
  gebruiker_id: string | null;
82063
83743
  gebruiker_naam: string;
83744
+ gebruikte_bron: string | null;
83745
+ gebruikte_layout_id: string | null;
82064
83746
  gestart_op: string | null;
82065
83747
  herkomst: string | null;
82066
83748
  id: string;
@@ -82091,6 +83773,8 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
82091
83773
  foutmelding?: string | null;
82092
83774
  gebruiker_id?: string | null;
82093
83775
  gebruiker_naam?: string;
83776
+ gebruikte_bron?: string | null;
83777
+ gebruikte_layout_id?: string | null;
82094
83778
  gestart_op?: string | null;
82095
83779
  herkomst?: string | null;
82096
83780
  id?: string;
@@ -82121,6 +83805,8 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
82121
83805
  foutmelding?: string | null;
82122
83806
  gebruiker_id?: string | null;
82123
83807
  gebruiker_naam?: string;
83808
+ gebruikte_bron?: string | null;
83809
+ gebruikte_layout_id?: string | null;
82124
83810
  gestart_op?: string | null;
82125
83811
  herkomst?: string | null;
82126
83812
  id?: string;
@@ -82254,6 +83940,39 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
82254
83940
  };
82255
83941
  Relationships: [];
82256
83942
  };
83943
+ print_preview_events: {
83944
+ Row: {
83945
+ code: string | null;
83946
+ created_at: string;
83947
+ detail: import("../integrations/supabase/types").Json;
83948
+ id: string;
83949
+ queue_item_id: string | null;
83950
+ reden: string | null;
83951
+ station_slug: string | null;
83952
+ uitkomst: string;
83953
+ };
83954
+ Insert: {
83955
+ code?: string | null;
83956
+ created_at?: string;
83957
+ detail?: import("../integrations/supabase/types").Json;
83958
+ id?: string;
83959
+ queue_item_id?: string | null;
83960
+ reden?: string | null;
83961
+ station_slug?: string | null;
83962
+ uitkomst?: string;
83963
+ };
83964
+ Update: {
83965
+ code?: string | null;
83966
+ created_at?: string;
83967
+ detail?: import("../integrations/supabase/types").Json;
83968
+ id?: string;
83969
+ queue_item_id?: string | null;
83970
+ reden?: string | null;
83971
+ station_slug?: string | null;
83972
+ uitkomst?: string;
83973
+ };
83974
+ Relationships: [];
83975
+ };
82257
83976
  print_queue_runners: {
82258
83977
  Row: {
82259
83978
  actief: boolean;
@@ -82481,6 +84200,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
82481
84200
  created_at: string;
82482
84201
  driver: string;
82483
84202
  extern_printer_id: string | null;
84203
+ formaten_bijgewerkt_op: string | null;
82484
84204
  id: string;
82485
84205
  ip_adres: string | null;
82486
84206
  laatst_gezien: string | null;
@@ -82488,6 +84208,8 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
82488
84208
  merk: string;
82489
84209
  naam: string;
82490
84210
  omschrijving: string;
84211
+ ondersteunde_formaten: import("../integrations/supabase/types").Json | null;
84212
+ ondersteunde_laden: import("../integrations/supabase/types").Json | null;
82491
84213
  online: boolean;
82492
84214
  papierformaat: string;
82493
84215
  poort: number | null;
@@ -82503,6 +84225,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
82503
84225
  created_at?: string;
82504
84226
  driver?: string;
82505
84227
  extern_printer_id?: string | null;
84228
+ formaten_bijgewerkt_op?: string | null;
82506
84229
  id?: string;
82507
84230
  ip_adres?: string | null;
82508
84231
  laatst_gezien?: string | null;
@@ -82510,6 +84233,8 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
82510
84233
  merk?: string;
82511
84234
  naam: string;
82512
84235
  omschrijving?: string;
84236
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
84237
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
82513
84238
  online?: boolean;
82514
84239
  papierformaat?: string;
82515
84240
  poort?: number | null;
@@ -82525,6 +84250,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
82525
84250
  created_at?: string;
82526
84251
  driver?: string;
82527
84252
  extern_printer_id?: string | null;
84253
+ formaten_bijgewerkt_op?: string | null;
82528
84254
  id?: string;
82529
84255
  ip_adres?: string | null;
82530
84256
  laatst_gezien?: string | null;
@@ -82532,6 +84258,8 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
82532
84258
  merk?: string;
82533
84259
  naam?: string;
82534
84260
  omschrijving?: string;
84261
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
84262
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
82535
84263
  online?: boolean;
82536
84264
  papierformaat?: string;
82537
84265
  poort?: number | null;
@@ -84408,6 +86136,45 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
84408
86136
  };
84409
86137
  Relationships: [];
84410
86138
  };
86139
+ stock_consumption_alerts: {
86140
+ Row: {
86141
+ alert_type: string;
86142
+ created_at: string;
86143
+ id: string;
86144
+ mutation_log_id: string | null;
86145
+ order_id: string | null;
86146
+ order_item_id: string | null;
86147
+ qty: number;
86148
+ reason: string | null;
86149
+ resolved_at: string | null;
86150
+ updated_at: string;
86151
+ };
86152
+ Insert: {
86153
+ alert_type: string;
86154
+ created_at?: string;
86155
+ id?: string;
86156
+ mutation_log_id?: string | null;
86157
+ order_id?: string | null;
86158
+ order_item_id?: string | null;
86159
+ qty?: number;
86160
+ reason?: string | null;
86161
+ resolved_at?: string | null;
86162
+ updated_at?: string;
86163
+ };
86164
+ Update: {
86165
+ alert_type?: string;
86166
+ created_at?: string;
86167
+ id?: string;
86168
+ mutation_log_id?: string | null;
86169
+ order_id?: string | null;
86170
+ order_item_id?: string | null;
86171
+ qty?: number;
86172
+ reason?: string | null;
86173
+ resolved_at?: string | null;
86174
+ updated_at?: string;
86175
+ };
86176
+ Relationships: [];
86177
+ };
84411
86178
  stock_import_runs: {
84412
86179
  Row: {
84413
86180
  connection_id: string | null;
@@ -87261,6 +89028,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
87261
89028
  werkbon_package_items: {
87262
89029
  Row: {
87263
89030
  article_number: string | null;
89031
+ artikel_id: string | null;
87264
89032
  created_at: string;
87265
89033
  gtin: string | null;
87266
89034
  id: string;
@@ -87278,6 +89046,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
87278
89046
  };
87279
89047
  Insert: {
87280
89048
  article_number?: string | null;
89049
+ artikel_id?: string | null;
87281
89050
  created_at?: string;
87282
89051
  gtin?: string | null;
87283
89052
  id?: string;
@@ -87295,6 +89064,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
87295
89064
  };
87296
89065
  Update: {
87297
89066
  article_number?: string | null;
89067
+ artikel_id?: string | null;
87298
89068
  created_at?: string;
87299
89069
  gtin?: string | null;
87300
89070
  id?: string;
@@ -87311,6 +89081,12 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
87311
89081
  updated_at?: string;
87312
89082
  };
87313
89083
  Relationships: [{
89084
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
89085
+ columns: ["artikel_id"];
89086
+ isOneToOne: false;
89087
+ referencedRelation: "artikelen_cache";
89088
+ referencedColumns: ["id"];
89089
+ }, {
87314
89090
  foreignKeyName: "werkbon_package_items_package_id_fkey";
87315
89091
  columns: ["package_id"];
87316
89092
  isOneToOne: false;
@@ -88533,6 +90309,20 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
88533
90309
  referencedColumns: ["id"];
88534
90310
  }];
88535
90311
  };
90312
+ v_werkbon_totalen: {
90313
+ Row: {
90314
+ packages_cents: number | null;
90315
+ packages_minutes: number | null;
90316
+ werkbon_id: string | null;
90317
+ };
90318
+ Relationships: [{
90319
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
90320
+ columns: ["werkbon_id"];
90321
+ isOneToOne: false;
90322
+ referencedRelation: "werkbonnen";
90323
+ referencedColumns: ["id"];
90324
+ }];
90325
+ };
88536
90326
  };
88537
90327
  Functions: {
88538
90328
  _floriday_schedule_job: {
@@ -88719,6 +90509,8 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
88719
90509
  foutmelding: string | null;
88720
90510
  gebruiker_id: string | null;
88721
90511
  gebruiker_naam: string;
90512
+ gebruikte_bron: string | null;
90513
+ gebruikte_layout_id: string | null;
88722
90514
  gestart_op: string | null;
88723
90515
  herkomst: string | null;
88724
90516
  id: string;
@@ -88840,6 +90632,8 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
88840
90632
  foutmelding: string | null;
88841
90633
  gebruiker_id: string | null;
88842
90634
  gebruiker_naam: string;
90635
+ gebruikte_bron: string | null;
90636
+ gebruikte_layout_id: string | null;
88843
90637
  gestart_op: string | null;
88844
90638
  herkomst: string | null;
88845
90639
  id: string;
@@ -89896,6 +91690,12 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
89896
91690
  };
89897
91691
  Returns: string;
89898
91692
  };
91693
+ logistics_document_type_map: {
91694
+ Args: {
91695
+ _document_code: string;
91696
+ };
91697
+ Returns: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"][];
91698
+ };
89899
91699
  logistics_emit_event: {
89900
91700
  Args: {
89901
91701
  p_event_type: string;
@@ -90080,6 +91880,14 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
90080
91880
  };
90081
91881
  Returns: import("../integrations/supabase/types").Json;
90082
91882
  };
91883
+ logistics_plan_block: {
91884
+ Args: {
91885
+ p_details?: import("../integrations/supabase/types").Json;
91886
+ p_order_ids: string[];
91887
+ p_reason: string;
91888
+ };
91889
+ Returns: number;
91890
+ };
90083
91891
  logistics_plan_buffer_sql: {
90084
91892
  Args: {
90085
91893
  p_buffer_id: string;
@@ -90448,6 +92256,12 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
90448
92256
  verwijderd: number;
90449
92257
  }[];
90450
92258
  };
92259
+ order_departure_proof: {
92260
+ Args: {
92261
+ p_order_id: string;
92262
+ };
92263
+ Returns: import("../integrations/supabase/types").Json;
92264
+ };
90451
92265
  order_number_prefix: {
90452
92266
  Args: {
90453
92267
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -90455,6 +92269,25 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
90455
92269
  };
90456
92270
  Returns: string;
90457
92271
  };
92272
+ pakket_suggesties_voor_tekst: {
92273
+ Args: {
92274
+ _tekst: string;
92275
+ };
92276
+ Returns: {
92277
+ hit_type: string;
92278
+ package_id: string;
92279
+ priority: number;
92280
+ }[];
92281
+ };
92282
+ pakket_voor_reistijd: {
92283
+ Args: {
92284
+ _minuten: number;
92285
+ };
92286
+ Returns: {
92287
+ package_id: string;
92288
+ priority: number;
92289
+ }[];
92290
+ };
90458
92291
  pick_active_printers: {
90459
92292
  Args: never;
90460
92293
  Returns: {
@@ -90636,6 +92469,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
90636
92469
  };
90637
92470
  pick_enqueue_print_job: {
90638
92471
  Args: {
92472
+ _is_herprint?: boolean;
90639
92473
  _printer_id?: string;
90640
92474
  _queue_item_id: string;
90641
92475
  _session_id?: string;
@@ -90663,6 +92497,10 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
90663
92497
  omschrijving: string;
90664
92498
  }[];
90665
92499
  };
92500
+ pick_reference_data_status: {
92501
+ Args: never;
92502
+ Returns: import("../integrations/supabase/types").Json;
92503
+ };
90666
92504
  pick_release_expired_locks: {
90667
92505
  Args: never;
90668
92506
  Returns: number;
@@ -90727,6 +92565,10 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
90727
92565
  isSetofReturn: false;
90728
92566
  };
90729
92567
  };
92568
+ pick_seed_reference_data: {
92569
+ Args: never;
92570
+ Returns: import("../integrations/supabase/types").Json;
92571
+ };
90730
92572
  pick_set_station_print_plek: {
90731
92573
  Args: {
90732
92574
  _print_plek_id: string;
@@ -90818,6 +92660,24 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
90818
92660
  };
90819
92661
  Returns: undefined;
90820
92662
  };
92663
+ print_preview_toestaan: {
92664
+ Args: {
92665
+ _max?: number;
92666
+ _queue_item_id: string;
92667
+ _station_slug: string;
92668
+ _venster_sec?: number;
92669
+ };
92670
+ Returns: import("../integrations/supabase/types").Json;
92671
+ };
92672
+ print_preview_weiger: {
92673
+ Args: {
92674
+ _code: string;
92675
+ _queue_item_id: string;
92676
+ _reden: string;
92677
+ _station_slug: string;
92678
+ };
92679
+ Returns: undefined;
92680
+ };
90821
92681
  process_logistics_event: {
90822
92682
  Args: {
90823
92683
  p_event_id: string;
@@ -90935,6 +92795,14 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
90935
92795
  };
90936
92796
  Returns: undefined;
90937
92797
  };
92798
+ replace_order_carts: {
92799
+ Args: {
92800
+ p_buffer_id: string;
92801
+ p_carts: import("../integrations/supabase/types").Json;
92802
+ p_order_id: string;
92803
+ };
92804
+ Returns: import("../integrations/supabase/types").Json;
92805
+ };
90938
92806
  reset_floriday_sync_cursor: {
90939
92807
  Args: {
90940
92808
  p_connection_id: string;
@@ -91505,6 +93373,18 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
91505
93373
  Args: never;
91506
93374
  Returns: string;
91507
93375
  };
93376
+ werkbon_totalen: {
93377
+ Args: {
93378
+ _werkbon_id: string;
93379
+ };
93380
+ Returns: {
93381
+ materials_cents: number;
93382
+ packages_cents: number;
93383
+ packages_minutes: number;
93384
+ total_cents: number;
93385
+ total_minutes: number;
93386
+ }[];
93387
+ };
91508
93388
  wo_create_from_source: {
91509
93389
  Args: {
91510
93390
  _payload?: import("../integrations/supabase/types").Json;
@@ -91543,7 +93423,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
91543
93423
  };
91544
93424
  CompositeTypes: { [_ in never]: never; };
91545
93425
  }, {
91546
- PostgrestVersion: "14.5";
93426
+ PostgrestVersion: "14.17";
91547
93427
  }>;
91548
93428
  userId: string;
91549
93429
  claims: import("@supabase/auth-js").JwtPayload;
@@ -102246,6 +104126,243 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
102246
104126
  };
102247
104127
  Relationships: [];
102248
104128
  };
104129
+ maps_addresses: {
104130
+ Row: {
104131
+ address_hash: string;
104132
+ created_at: string;
104133
+ error_reason: string | null;
104134
+ formatted_address: string | null;
104135
+ id: string;
104136
+ lat: number | null;
104137
+ lng: number | null;
104138
+ place_id: string | null;
104139
+ raw_address: string;
104140
+ resolved_at: string | null;
104141
+ status: string;
104142
+ updated_at: string;
104143
+ };
104144
+ Insert: {
104145
+ address_hash: string;
104146
+ created_at?: string;
104147
+ error_reason?: string | null;
104148
+ formatted_address?: string | null;
104149
+ id?: string;
104150
+ lat?: number | null;
104151
+ lng?: number | null;
104152
+ place_id?: string | null;
104153
+ raw_address: string;
104154
+ resolved_at?: string | null;
104155
+ status?: string;
104156
+ updated_at?: string;
104157
+ };
104158
+ Update: {
104159
+ address_hash?: string;
104160
+ created_at?: string;
104161
+ error_reason?: string | null;
104162
+ formatted_address?: string | null;
104163
+ id?: string;
104164
+ lat?: number | null;
104165
+ lng?: number | null;
104166
+ place_id?: string | null;
104167
+ raw_address?: string;
104168
+ resolved_at?: string | null;
104169
+ status?: string;
104170
+ updated_at?: string;
104171
+ };
104172
+ Relationships: [];
104173
+ };
104174
+ maps_job_lease: {
104175
+ Row: {
104176
+ job: string;
104177
+ locked_until: string;
104178
+ updated_at: string;
104179
+ };
104180
+ Insert: {
104181
+ job: string;
104182
+ locked_until?: string;
104183
+ updated_at?: string;
104184
+ };
104185
+ Update: {
104186
+ job?: string;
104187
+ locked_until?: string;
104188
+ updated_at?: string;
104189
+ };
104190
+ Relationships: [];
104191
+ };
104192
+ maps_request_queue: {
104193
+ Row: {
104194
+ attempts: number;
104195
+ created_at: string;
104196
+ destination_hash: string | null;
104197
+ id: string;
104198
+ kind: string;
104199
+ last_error: string | null;
104200
+ mode: string;
104201
+ origin_hash: string | null;
104202
+ processed_at: string | null;
104203
+ raw_destination: string | null;
104204
+ raw_origin: string | null;
104205
+ requested_by: string | null;
104206
+ status: string;
104207
+ updated_at: string;
104208
+ };
104209
+ Insert: {
104210
+ attempts?: number;
104211
+ created_at?: string;
104212
+ destination_hash?: string | null;
104213
+ id?: string;
104214
+ kind: string;
104215
+ last_error?: string | null;
104216
+ mode?: string;
104217
+ origin_hash?: string | null;
104218
+ processed_at?: string | null;
104219
+ raw_destination?: string | null;
104220
+ raw_origin?: string | null;
104221
+ requested_by?: string | null;
104222
+ status?: string;
104223
+ updated_at?: string;
104224
+ };
104225
+ Update: {
104226
+ attempts?: number;
104227
+ created_at?: string;
104228
+ destination_hash?: string | null;
104229
+ id?: string;
104230
+ kind?: string;
104231
+ last_error?: string | null;
104232
+ mode?: string;
104233
+ origin_hash?: string | null;
104234
+ processed_at?: string | null;
104235
+ raw_destination?: string | null;
104236
+ raw_origin?: string | null;
104237
+ requested_by?: string | null;
104238
+ status?: string;
104239
+ updated_at?: string;
104240
+ };
104241
+ Relationships: [];
104242
+ };
104243
+ maps_settings: {
104244
+ Row: {
104245
+ allow_estimate_fallback: boolean;
104246
+ cache_ttl_days: number;
104247
+ created_at: string;
104248
+ daily_call_limit: number;
104249
+ id: string;
104250
+ last_error: string | null;
104251
+ last_error_at: string | null;
104252
+ last_success_at: string | null;
104253
+ provider: string;
104254
+ updated_at: string;
104255
+ };
104256
+ Insert: {
104257
+ allow_estimate_fallback?: boolean;
104258
+ cache_ttl_days?: number;
104259
+ created_at?: string;
104260
+ daily_call_limit?: number;
104261
+ id?: string;
104262
+ last_error?: string | null;
104263
+ last_error_at?: string | null;
104264
+ last_success_at?: string | null;
104265
+ provider?: string;
104266
+ updated_at?: string;
104267
+ };
104268
+ Update: {
104269
+ allow_estimate_fallback?: boolean;
104270
+ cache_ttl_days?: number;
104271
+ created_at?: string;
104272
+ daily_call_limit?: number;
104273
+ id?: string;
104274
+ last_error?: string | null;
104275
+ last_error_at?: string | null;
104276
+ last_success_at?: string | null;
104277
+ provider?: string;
104278
+ updated_at?: string;
104279
+ };
104280
+ Relationships: [];
104281
+ };
104282
+ maps_travel_times: {
104283
+ Row: {
104284
+ created_at: string;
104285
+ destination_id: string;
104286
+ distance_m: number | null;
104287
+ duration_sec: number;
104288
+ expires_at: string;
104289
+ id: string;
104290
+ mode: string;
104291
+ origin_id: string;
104292
+ source: string;
104293
+ updated_at: string;
104294
+ };
104295
+ Insert: {
104296
+ created_at?: string;
104297
+ destination_id: string;
104298
+ distance_m?: number | null;
104299
+ duration_sec: number;
104300
+ expires_at?: string;
104301
+ id?: string;
104302
+ mode?: string;
104303
+ origin_id: string;
104304
+ source?: string;
104305
+ updated_at?: string;
104306
+ };
104307
+ Update: {
104308
+ created_at?: string;
104309
+ destination_id?: string;
104310
+ distance_m?: number | null;
104311
+ duration_sec?: number;
104312
+ expires_at?: string;
104313
+ id?: string;
104314
+ mode?: string;
104315
+ origin_id?: string;
104316
+ source?: string;
104317
+ updated_at?: string;
104318
+ };
104319
+ Relationships: [{
104320
+ foreignKeyName: "maps_travel_times_destination_id_fkey";
104321
+ columns: ["destination_id"];
104322
+ isOneToOne: false;
104323
+ referencedRelation: "maps_addresses";
104324
+ referencedColumns: ["id"];
104325
+ }, {
104326
+ foreignKeyName: "maps_travel_times_origin_id_fkey";
104327
+ columns: ["origin_id"];
104328
+ isOneToOne: false;
104329
+ referencedRelation: "maps_addresses";
104330
+ referencedColumns: ["id"];
104331
+ }];
104332
+ };
104333
+ maps_usage_log: {
104334
+ Row: {
104335
+ cache_hits: number;
104336
+ call_type: string;
104337
+ created_at: string;
104338
+ day: string;
104339
+ detail: string | null;
104340
+ elements: number;
104341
+ id: string;
104342
+ outcome: string;
104343
+ };
104344
+ Insert: {
104345
+ cache_hits?: number;
104346
+ call_type: string;
104347
+ created_at?: string;
104348
+ day?: string;
104349
+ detail?: string | null;
104350
+ elements?: number;
104351
+ id?: string;
104352
+ outcome?: string;
104353
+ };
104354
+ Update: {
104355
+ cache_hits?: number;
104356
+ call_type?: string;
104357
+ created_at?: string;
104358
+ day?: string;
104359
+ detail?: string | null;
104360
+ elements?: number;
104361
+ id?: string;
104362
+ outcome?: string;
104363
+ };
104364
+ Relationships: [];
104365
+ };
102249
104366
  material_usage: {
102250
104367
  Row: {
102251
104368
  created_at: string;
@@ -104895,6 +107012,39 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
104895
107012
  };
104896
107013
  Relationships: [];
104897
107014
  };
107015
+ print_dedupe_events: {
107016
+ Row: {
107017
+ bestaande_job_id: string | null;
107018
+ created_at: string;
107019
+ detail: string | null;
107020
+ documentnaam: string | null;
107021
+ documenttype: string | null;
107022
+ id: string;
107023
+ idempotentie_sleutel: string;
107024
+ reden: string;
107025
+ };
107026
+ Insert: {
107027
+ bestaande_job_id?: string | null;
107028
+ created_at?: string;
107029
+ detail?: string | null;
107030
+ documentnaam?: string | null;
107031
+ documenttype?: string | null;
107032
+ id?: string;
107033
+ idempotentie_sleutel: string;
107034
+ reden: string;
107035
+ };
107036
+ Update: {
107037
+ bestaande_job_id?: string | null;
107038
+ created_at?: string;
107039
+ detail?: string | null;
107040
+ documentnaam?: string | null;
107041
+ documenttype?: string | null;
107042
+ id?: string;
107043
+ idempotentie_sleutel?: string;
107044
+ reden?: string;
107045
+ };
107046
+ Relationships: [];
107047
+ };
104898
107048
  print_job_logs: {
104899
107049
  Row: {
104900
107050
  created_at: string;
@@ -104936,6 +107086,8 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
104936
107086
  foutmelding: string | null;
104937
107087
  gebruiker_id: string | null;
104938
107088
  gebruiker_naam: string;
107089
+ gebruikte_bron: string | null;
107090
+ gebruikte_layout_id: string | null;
104939
107091
  gestart_op: string | null;
104940
107092
  herkomst: string | null;
104941
107093
  id: string;
@@ -104966,6 +107118,8 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
104966
107118
  foutmelding?: string | null;
104967
107119
  gebruiker_id?: string | null;
104968
107120
  gebruiker_naam?: string;
107121
+ gebruikte_bron?: string | null;
107122
+ gebruikte_layout_id?: string | null;
104969
107123
  gestart_op?: string | null;
104970
107124
  herkomst?: string | null;
104971
107125
  id?: string;
@@ -104996,6 +107150,8 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
104996
107150
  foutmelding?: string | null;
104997
107151
  gebruiker_id?: string | null;
104998
107152
  gebruiker_naam?: string;
107153
+ gebruikte_bron?: string | null;
107154
+ gebruikte_layout_id?: string | null;
104999
107155
  gestart_op?: string | null;
105000
107156
  herkomst?: string | null;
105001
107157
  id?: string;
@@ -105129,6 +107285,39 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
105129
107285
  };
105130
107286
  Relationships: [];
105131
107287
  };
107288
+ print_preview_events: {
107289
+ Row: {
107290
+ code: string | null;
107291
+ created_at: string;
107292
+ detail: import("../integrations/supabase/types").Json;
107293
+ id: string;
107294
+ queue_item_id: string | null;
107295
+ reden: string | null;
107296
+ station_slug: string | null;
107297
+ uitkomst: string;
107298
+ };
107299
+ Insert: {
107300
+ code?: string | null;
107301
+ created_at?: string;
107302
+ detail?: import("../integrations/supabase/types").Json;
107303
+ id?: string;
107304
+ queue_item_id?: string | null;
107305
+ reden?: string | null;
107306
+ station_slug?: string | null;
107307
+ uitkomst?: string;
107308
+ };
107309
+ Update: {
107310
+ code?: string | null;
107311
+ created_at?: string;
107312
+ detail?: import("../integrations/supabase/types").Json;
107313
+ id?: string;
107314
+ queue_item_id?: string | null;
107315
+ reden?: string | null;
107316
+ station_slug?: string | null;
107317
+ uitkomst?: string;
107318
+ };
107319
+ Relationships: [];
107320
+ };
105132
107321
  print_queue_runners: {
105133
107322
  Row: {
105134
107323
  actief: boolean;
@@ -105356,6 +107545,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
105356
107545
  created_at: string;
105357
107546
  driver: string;
105358
107547
  extern_printer_id: string | null;
107548
+ formaten_bijgewerkt_op: string | null;
105359
107549
  id: string;
105360
107550
  ip_adres: string | null;
105361
107551
  laatst_gezien: string | null;
@@ -105363,6 +107553,8 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
105363
107553
  merk: string;
105364
107554
  naam: string;
105365
107555
  omschrijving: string;
107556
+ ondersteunde_formaten: import("../integrations/supabase/types").Json | null;
107557
+ ondersteunde_laden: import("../integrations/supabase/types").Json | null;
105366
107558
  online: boolean;
105367
107559
  papierformaat: string;
105368
107560
  poort: number | null;
@@ -105378,6 +107570,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
105378
107570
  created_at?: string;
105379
107571
  driver?: string;
105380
107572
  extern_printer_id?: string | null;
107573
+ formaten_bijgewerkt_op?: string | null;
105381
107574
  id?: string;
105382
107575
  ip_adres?: string | null;
105383
107576
  laatst_gezien?: string | null;
@@ -105385,6 +107578,8 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
105385
107578
  merk?: string;
105386
107579
  naam: string;
105387
107580
  omschrijving?: string;
107581
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
107582
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
105388
107583
  online?: boolean;
105389
107584
  papierformaat?: string;
105390
107585
  poort?: number | null;
@@ -105400,6 +107595,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
105400
107595
  created_at?: string;
105401
107596
  driver?: string;
105402
107597
  extern_printer_id?: string | null;
107598
+ formaten_bijgewerkt_op?: string | null;
105403
107599
  id?: string;
105404
107600
  ip_adres?: string | null;
105405
107601
  laatst_gezien?: string | null;
@@ -105407,6 +107603,8 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
105407
107603
  merk?: string;
105408
107604
  naam?: string;
105409
107605
  omschrijving?: string;
107606
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
107607
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
105410
107608
  online?: boolean;
105411
107609
  papierformaat?: string;
105412
107610
  poort?: number | null;
@@ -107283,6 +109481,45 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
107283
109481
  };
107284
109482
  Relationships: [];
107285
109483
  };
109484
+ stock_consumption_alerts: {
109485
+ Row: {
109486
+ alert_type: string;
109487
+ created_at: string;
109488
+ id: string;
109489
+ mutation_log_id: string | null;
109490
+ order_id: string | null;
109491
+ order_item_id: string | null;
109492
+ qty: number;
109493
+ reason: string | null;
109494
+ resolved_at: string | null;
109495
+ updated_at: string;
109496
+ };
109497
+ Insert: {
109498
+ alert_type: string;
109499
+ created_at?: string;
109500
+ id?: string;
109501
+ mutation_log_id?: string | null;
109502
+ order_id?: string | null;
109503
+ order_item_id?: string | null;
109504
+ qty?: number;
109505
+ reason?: string | null;
109506
+ resolved_at?: string | null;
109507
+ updated_at?: string;
109508
+ };
109509
+ Update: {
109510
+ alert_type?: string;
109511
+ created_at?: string;
109512
+ id?: string;
109513
+ mutation_log_id?: string | null;
109514
+ order_id?: string | null;
109515
+ order_item_id?: string | null;
109516
+ qty?: number;
109517
+ reason?: string | null;
109518
+ resolved_at?: string | null;
109519
+ updated_at?: string;
109520
+ };
109521
+ Relationships: [];
109522
+ };
107286
109523
  stock_import_runs: {
107287
109524
  Row: {
107288
109525
  connection_id: string | null;
@@ -110136,6 +112373,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
110136
112373
  werkbon_package_items: {
110137
112374
  Row: {
110138
112375
  article_number: string | null;
112376
+ artikel_id: string | null;
110139
112377
  created_at: string;
110140
112378
  gtin: string | null;
110141
112379
  id: string;
@@ -110153,6 +112391,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
110153
112391
  };
110154
112392
  Insert: {
110155
112393
  article_number?: string | null;
112394
+ artikel_id?: string | null;
110156
112395
  created_at?: string;
110157
112396
  gtin?: string | null;
110158
112397
  id?: string;
@@ -110170,6 +112409,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
110170
112409
  };
110171
112410
  Update: {
110172
112411
  article_number?: string | null;
112412
+ artikel_id?: string | null;
110173
112413
  created_at?: string;
110174
112414
  gtin?: string | null;
110175
112415
  id?: string;
@@ -110186,6 +112426,12 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
110186
112426
  updated_at?: string;
110187
112427
  };
110188
112428
  Relationships: [{
112429
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
112430
+ columns: ["artikel_id"];
112431
+ isOneToOne: false;
112432
+ referencedRelation: "artikelen_cache";
112433
+ referencedColumns: ["id"];
112434
+ }, {
110189
112435
  foreignKeyName: "werkbon_package_items_package_id_fkey";
110190
112436
  columns: ["package_id"];
110191
112437
  isOneToOne: false;
@@ -111408,6 +113654,20 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
111408
113654
  referencedColumns: ["id"];
111409
113655
  }];
111410
113656
  };
113657
+ v_werkbon_totalen: {
113658
+ Row: {
113659
+ packages_cents: number | null;
113660
+ packages_minutes: number | null;
113661
+ werkbon_id: string | null;
113662
+ };
113663
+ Relationships: [{
113664
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
113665
+ columns: ["werkbon_id"];
113666
+ isOneToOne: false;
113667
+ referencedRelation: "werkbonnen";
113668
+ referencedColumns: ["id"];
113669
+ }];
113670
+ };
111411
113671
  };
111412
113672
  Functions: {
111413
113673
  _floriday_schedule_job: {
@@ -111594,6 +113854,8 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
111594
113854
  foutmelding: string | null;
111595
113855
  gebruiker_id: string | null;
111596
113856
  gebruiker_naam: string;
113857
+ gebruikte_bron: string | null;
113858
+ gebruikte_layout_id: string | null;
111597
113859
  gestart_op: string | null;
111598
113860
  herkomst: string | null;
111599
113861
  id: string;
@@ -111715,6 +113977,8 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
111715
113977
  foutmelding: string | null;
111716
113978
  gebruiker_id: string | null;
111717
113979
  gebruiker_naam: string;
113980
+ gebruikte_bron: string | null;
113981
+ gebruikte_layout_id: string | null;
111718
113982
  gestart_op: string | null;
111719
113983
  herkomst: string | null;
111720
113984
  id: string;
@@ -112771,6 +115035,12 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
112771
115035
  };
112772
115036
  Returns: string;
112773
115037
  };
115038
+ logistics_document_type_map: {
115039
+ Args: {
115040
+ _document_code: string;
115041
+ };
115042
+ Returns: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"][];
115043
+ };
112774
115044
  logistics_emit_event: {
112775
115045
  Args: {
112776
115046
  p_event_type: string;
@@ -112955,6 +115225,14 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
112955
115225
  };
112956
115226
  Returns: import("../integrations/supabase/types").Json;
112957
115227
  };
115228
+ logistics_plan_block: {
115229
+ Args: {
115230
+ p_details?: import("../integrations/supabase/types").Json;
115231
+ p_order_ids: string[];
115232
+ p_reason: string;
115233
+ };
115234
+ Returns: number;
115235
+ };
112958
115236
  logistics_plan_buffer_sql: {
112959
115237
  Args: {
112960
115238
  p_buffer_id: string;
@@ -113323,6 +115601,12 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
113323
115601
  verwijderd: number;
113324
115602
  }[];
113325
115603
  };
115604
+ order_departure_proof: {
115605
+ Args: {
115606
+ p_order_id: string;
115607
+ };
115608
+ Returns: import("../integrations/supabase/types").Json;
115609
+ };
113326
115610
  order_number_prefix: {
113327
115611
  Args: {
113328
115612
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -113330,6 +115614,25 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
113330
115614
  };
113331
115615
  Returns: string;
113332
115616
  };
115617
+ pakket_suggesties_voor_tekst: {
115618
+ Args: {
115619
+ _tekst: string;
115620
+ };
115621
+ Returns: {
115622
+ hit_type: string;
115623
+ package_id: string;
115624
+ priority: number;
115625
+ }[];
115626
+ };
115627
+ pakket_voor_reistijd: {
115628
+ Args: {
115629
+ _minuten: number;
115630
+ };
115631
+ Returns: {
115632
+ package_id: string;
115633
+ priority: number;
115634
+ }[];
115635
+ };
113333
115636
  pick_active_printers: {
113334
115637
  Args: never;
113335
115638
  Returns: {
@@ -113511,6 +115814,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
113511
115814
  };
113512
115815
  pick_enqueue_print_job: {
113513
115816
  Args: {
115817
+ _is_herprint?: boolean;
113514
115818
  _printer_id?: string;
113515
115819
  _queue_item_id: string;
113516
115820
  _session_id?: string;
@@ -113538,6 +115842,10 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
113538
115842
  omschrijving: string;
113539
115843
  }[];
113540
115844
  };
115845
+ pick_reference_data_status: {
115846
+ Args: never;
115847
+ Returns: import("../integrations/supabase/types").Json;
115848
+ };
113541
115849
  pick_release_expired_locks: {
113542
115850
  Args: never;
113543
115851
  Returns: number;
@@ -113602,6 +115910,10 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
113602
115910
  isSetofReturn: false;
113603
115911
  };
113604
115912
  };
115913
+ pick_seed_reference_data: {
115914
+ Args: never;
115915
+ Returns: import("../integrations/supabase/types").Json;
115916
+ };
113605
115917
  pick_set_station_print_plek: {
113606
115918
  Args: {
113607
115919
  _print_plek_id: string;
@@ -113693,6 +116005,24 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
113693
116005
  };
113694
116006
  Returns: undefined;
113695
116007
  };
116008
+ print_preview_toestaan: {
116009
+ Args: {
116010
+ _max?: number;
116011
+ _queue_item_id: string;
116012
+ _station_slug: string;
116013
+ _venster_sec?: number;
116014
+ };
116015
+ Returns: import("../integrations/supabase/types").Json;
116016
+ };
116017
+ print_preview_weiger: {
116018
+ Args: {
116019
+ _code: string;
116020
+ _queue_item_id: string;
116021
+ _reden: string;
116022
+ _station_slug: string;
116023
+ };
116024
+ Returns: undefined;
116025
+ };
113696
116026
  process_logistics_event: {
113697
116027
  Args: {
113698
116028
  p_event_id: string;
@@ -113810,6 +116140,14 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
113810
116140
  };
113811
116141
  Returns: undefined;
113812
116142
  };
116143
+ replace_order_carts: {
116144
+ Args: {
116145
+ p_buffer_id: string;
116146
+ p_carts: import("../integrations/supabase/types").Json;
116147
+ p_order_id: string;
116148
+ };
116149
+ Returns: import("../integrations/supabase/types").Json;
116150
+ };
113813
116151
  reset_floriday_sync_cursor: {
113814
116152
  Args: {
113815
116153
  p_connection_id: string;
@@ -114380,6 +116718,18 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
114380
116718
  Args: never;
114381
116719
  Returns: string;
114382
116720
  };
116721
+ werkbon_totalen: {
116722
+ Args: {
116723
+ _werkbon_id: string;
116724
+ };
116725
+ Returns: {
116726
+ materials_cents: number;
116727
+ packages_cents: number;
116728
+ packages_minutes: number;
116729
+ total_cents: number;
116730
+ total_minutes: number;
116731
+ }[];
116732
+ };
114383
116733
  wo_create_from_source: {
114384
116734
  Args: {
114385
116735
  _payload?: import("../integrations/supabase/types").Json;
@@ -114418,7 +116768,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
114418
116768
  };
114419
116769
  CompositeTypes: { [_ in never]: never; };
114420
116770
  }, {
114421
- PostgrestVersion: "14.5";
116771
+ PostgrestVersion: "14.17";
114422
116772
  }>;
114423
116773
  userId: string;
114424
116774
  claims: import("@supabase/auth-js").JwtPayload;