@flowselections/floriday-afhandeling-module 1.0.37 → 1.0.39

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 (41) 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 +426 -1
  17. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  18. package/dist-lib/integrations/supabase/client.server.d.ts +426 -1
  19. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  20. package/dist-lib/integrations/supabase/moduleClient.d.ts +426 -1
  21. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  22. package/dist-lib/integrations/supabase/previewAuthStorage.d.ts +6 -0
  23. package/dist-lib/integrations/supabase/previewAuthStorage.d.ts.map +1 -0
  24. package/dist-lib/integrations/supabase/previewAuthStorage.js +92 -0
  25. package/dist-lib/integrations/supabase/types.d.ts +436 -1
  26. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  27. package/dist-lib/lib/afhandelingSettings.functions.d.ts +862 -4
  28. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/carrierSignupMail.server.js +26 -26
  30. package/dist-lib/lib/carriers.functions.d.ts +2130 -5
  31. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/cartAssignments.functions.d.ts +2130 -5
  33. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  34. package/dist-lib/lib/cartControl.functions.d.ts +4290 -20
  35. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  36. package/dist-lib/lib/floriday.functions.d.ts +427 -2
  37. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/printing.d.ts +2 -11
  39. package/dist-lib/lib/printing.d.ts.map +1 -1
  40. package/dist-lib/lib/printing.js +8 -64
  41. package/package.json +1 -1
@@ -686,6 +686,99 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
686
686
  };
687
687
  Relationships: [];
688
688
  };
689
+ artikelen_cache: {
690
+ Row: {
691
+ artikelcode: string;
692
+ bron: string;
693
+ bruto_prijs_cent: number | null;
694
+ created_at: string;
695
+ eenheid: string;
696
+ fabrikant: string | null;
697
+ fetched_at: string;
698
+ gtin: string | null;
699
+ id: string;
700
+ naam: string;
701
+ netto_prijs_cent: number | null;
702
+ omschrijving: string | null;
703
+ raw: import("../integrations/supabase/types").Json;
704
+ updated_at: string;
705
+ valuta: string;
706
+ };
707
+ Insert: {
708
+ artikelcode: string;
709
+ bron?: string;
710
+ bruto_prijs_cent?: number | null;
711
+ created_at?: string;
712
+ eenheid?: string;
713
+ fabrikant?: string | null;
714
+ fetched_at?: string;
715
+ gtin?: string | null;
716
+ id?: string;
717
+ naam: string;
718
+ netto_prijs_cent?: number | null;
719
+ omschrijving?: string | null;
720
+ raw?: import("../integrations/supabase/types").Json;
721
+ updated_at?: string;
722
+ valuta?: string;
723
+ };
724
+ Update: {
725
+ artikelcode?: string;
726
+ bron?: string;
727
+ bruto_prijs_cent?: number | null;
728
+ created_at?: string;
729
+ eenheid?: string;
730
+ fabrikant?: string | null;
731
+ fetched_at?: string;
732
+ gtin?: string | null;
733
+ id?: string;
734
+ naam?: string;
735
+ netto_prijs_cent?: number | null;
736
+ omschrijving?: string | null;
737
+ raw?: import("../integrations/supabase/types").Json;
738
+ updated_at?: string;
739
+ valuta?: string;
740
+ };
741
+ Relationships: [];
742
+ };
743
+ artikelen_veldconfig: {
744
+ Row: {
745
+ bron_pad: string;
746
+ created_at: string;
747
+ id: string;
748
+ label: string;
749
+ sort_order: number;
750
+ type: string;
751
+ updated_at: string;
752
+ veld_key: string;
753
+ zichtbaar_in_detail: boolean;
754
+ zichtbaar_in_lijst: boolean;
755
+ };
756
+ Insert: {
757
+ bron_pad: string;
758
+ created_at?: string;
759
+ id?: string;
760
+ label: string;
761
+ sort_order?: number;
762
+ type?: string;
763
+ updated_at?: string;
764
+ veld_key: string;
765
+ zichtbaar_in_detail?: boolean;
766
+ zichtbaar_in_lijst?: boolean;
767
+ };
768
+ Update: {
769
+ bron_pad?: string;
770
+ created_at?: string;
771
+ id?: string;
772
+ label?: string;
773
+ sort_order?: number;
774
+ type?: string;
775
+ updated_at?: string;
776
+ veld_key?: string;
777
+ zichtbaar_in_detail?: boolean;
778
+ zichtbaar_in_lijst?: boolean;
779
+ };
780
+ Relationships: [];
781
+ };
689
782
  booking_items: {
690
783
  Row: {
691
784
  booking_id: string;
@@ -3158,6 +3251,48 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
3158
3251
  };
3159
3252
  Relationships: [];
3160
3253
  };
3254
+ document_printplek_printers: {
3255
+ Row: {
3256
+ created_at: string;
3257
+ documenttype: string;
3258
+ id: string;
3259
+ papierformaat: string | null;
3260
+ print_plek_id: string;
3261
+ printer_id: string | null;
3262
+ updated_at: string;
3263
+ };
3264
+ Insert: {
3265
+ created_at?: string;
3266
+ documenttype: string;
3267
+ id?: string;
3268
+ papierformaat?: string | null;
3269
+ print_plek_id: string;
3270
+ printer_id?: string | null;
3271
+ updated_at?: string;
3272
+ };
3273
+ Update: {
3274
+ created_at?: string;
3275
+ documenttype?: string;
3276
+ id?: string;
3277
+ papierformaat?: string | null;
3278
+ print_plek_id?: string;
3279
+ printer_id?: string | null;
3280
+ updated_at?: string;
3281
+ };
3282
+ Relationships: [{
3283
+ foreignKeyName: "document_printplek_printers_print_plek_id_fkey";
3284
+ columns: ["print_plek_id"];
3285
+ isOneToOne: false;
3286
+ referencedRelation: "print_plekken";
3287
+ referencedColumns: ["id"];
3288
+ }, {
3289
+ foreignKeyName: "document_printplek_printers_printer_id_fkey";
3290
+ columns: ["printer_id"];
3291
+ isOneToOne: false;
3292
+ referencedRelation: "printers";
3293
+ referencedColumns: ["id"];
3294
+ }];
3295
+ };
3161
3296
  document_werkplek_printers: {
3162
3297
  Row: {
3163
3298
  created_at: string;
@@ -9137,6 +9272,10 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
9137
9272
  id: string;
9138
9273
  last_error: string | null;
9139
9274
  last_error_at: string | null;
9275
+ last_error_code: string | null;
9276
+ last_gateway_status: number | null;
9277
+ last_queued_at: string | null;
9278
+ last_response: import("../integrations/supabase/types").Json | null;
9140
9279
  last_sent_hash: string | null;
9141
9280
  locked_by: string | null;
9142
9281
  locked_until: string | null;
@@ -9157,6 +9296,10 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
9157
9296
  id?: string;
9158
9297
  last_error?: string | null;
9159
9298
  last_error_at?: string | null;
9299
+ last_error_code?: string | null;
9300
+ last_gateway_status?: number | null;
9301
+ last_queued_at?: string | null;
9302
+ last_response?: import("../integrations/supabase/types").Json | null;
9160
9303
  last_sent_hash?: string | null;
9161
9304
  locked_by?: string | null;
9162
9305
  locked_until?: string | null;
@@ -9177,6 +9320,10 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
9177
9320
  id?: string;
9178
9321
  last_error?: string | null;
9179
9322
  last_error_at?: string | null;
9323
+ last_error_code?: string | null;
9324
+ last_gateway_status?: number | null;
9325
+ last_queued_at?: string | null;
9326
+ last_response?: import("../integrations/supabase/types").Json | null;
9180
9327
  last_sent_hash?: string | null;
9181
9328
  locked_by?: string | null;
9182
9329
  locked_until?: string | null;
@@ -13346,6 +13493,99 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
13346
13493
  referencedColumns: ["id"];
13347
13494
  }];
13348
13495
  };
13496
+ print_plek_computers: {
13497
+ Row: {
13498
+ computer_naam: string;
13499
+ created_at: string;
13500
+ id: string;
13501
+ print_plek_id: string;
13502
+ updated_at: string;
13503
+ };
13504
+ Insert: {
13505
+ computer_naam: string;
13506
+ created_at?: string;
13507
+ id?: string;
13508
+ print_plek_id: string;
13509
+ updated_at?: string;
13510
+ };
13511
+ Update: {
13512
+ computer_naam?: string;
13513
+ created_at?: string;
13514
+ id?: string;
13515
+ print_plek_id?: string;
13516
+ updated_at?: string;
13517
+ };
13518
+ Relationships: [{
13519
+ foreignKeyName: "print_plek_computers_print_plek_id_fkey";
13520
+ columns: ["print_plek_id"];
13521
+ isOneToOne: false;
13522
+ referencedRelation: "print_plekken";
13523
+ referencedColumns: ["id"];
13524
+ }];
13525
+ };
13526
+ print_plek_koppelingen: {
13527
+ Row: {
13528
+ bron: string;
13529
+ bron_id: string;
13530
+ created_at: string;
13531
+ id: string;
13532
+ label: string | null;
13533
+ print_plek_id: string;
13534
+ updated_at: string;
13535
+ };
13536
+ Insert: {
13537
+ bron: string;
13538
+ bron_id: string;
13539
+ created_at?: string;
13540
+ id?: string;
13541
+ label?: string | null;
13542
+ print_plek_id: string;
13543
+ updated_at?: string;
13544
+ };
13545
+ Update: {
13546
+ bron?: string;
13547
+ bron_id?: string;
13548
+ created_at?: string;
13549
+ id?: string;
13550
+ label?: string | null;
13551
+ print_plek_id?: string;
13552
+ updated_at?: string;
13553
+ };
13554
+ Relationships: [{
13555
+ foreignKeyName: "print_plek_koppelingen_print_plek_id_fkey";
13556
+ columns: ["print_plek_id"];
13557
+ isOneToOne: false;
13558
+ referencedRelation: "print_plekken";
13559
+ referencedColumns: ["id"];
13560
+ }];
13561
+ };
13562
+ print_plekken: {
13563
+ Row: {
13564
+ actief: boolean;
13565
+ created_at: string;
13566
+ id: string;
13567
+ naam: string;
13568
+ omschrijving: string | null;
13569
+ updated_at: string;
13570
+ };
13571
+ Insert: {
13572
+ actief?: boolean;
13573
+ created_at?: string;
13574
+ id?: string;
13575
+ naam: string;
13576
+ omschrijving?: string | null;
13577
+ updated_at?: string;
13578
+ };
13579
+ Update: {
13580
+ actief?: boolean;
13581
+ created_at?: string;
13582
+ id?: string;
13583
+ naam?: string;
13584
+ omschrijving?: string | null;
13585
+ updated_at?: string;
13586
+ };
13587
+ Relationships: [];
13588
+ };
13349
13589
  print_queue_runners: {
13350
13590
  Row: {
13351
13591
  actief: boolean;
@@ -15500,6 +15740,45 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
15500
15740
  };
15501
15741
  Relationships: [];
15502
15742
  };
15743
+ stock_consumption_alerts: {
15744
+ Row: {
15745
+ alert_type: string;
15746
+ created_at: string;
15747
+ id: string;
15748
+ mutation_log_id: string | null;
15749
+ order_id: string | null;
15750
+ order_item_id: string | null;
15751
+ qty: number;
15752
+ reason: string | null;
15753
+ resolved_at: string | null;
15754
+ updated_at: string;
15755
+ };
15756
+ Insert: {
15757
+ alert_type: string;
15758
+ created_at?: string;
15759
+ id?: string;
15760
+ mutation_log_id?: string | null;
15761
+ order_id?: string | null;
15762
+ order_item_id?: string | null;
15763
+ qty?: number;
15764
+ reason?: string | null;
15765
+ resolved_at?: string | null;
15766
+ updated_at?: string;
15767
+ };
15768
+ Update: {
15769
+ alert_type?: string;
15770
+ created_at?: string;
15771
+ id?: string;
15772
+ mutation_log_id?: string | null;
15773
+ order_id?: string | null;
15774
+ order_item_id?: string | null;
15775
+ qty?: number;
15776
+ reason?: string | null;
15777
+ resolved_at?: string | null;
15778
+ updated_at?: string;
15779
+ };
15780
+ Relationships: [];
15781
+ };
15503
15782
  stock_import_runs: {
15504
15783
  Row: {
15505
15784
  connection_id: string | null;
@@ -18353,6 +18632,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
18353
18632
  werkbon_package_items: {
18354
18633
  Row: {
18355
18634
  article_number: string | null;
18635
+ artikel_id: string | null;
18356
18636
  created_at: string;
18357
18637
  gtin: string | null;
18358
18638
  id: string;
@@ -18370,6 +18650,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
18370
18650
  };
18371
18651
  Insert: {
18372
18652
  article_number?: string | null;
18653
+ artikel_id?: string | null;
18373
18654
  created_at?: string;
18374
18655
  gtin?: string | null;
18375
18656
  id?: string;
@@ -18387,6 +18668,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
18387
18668
  };
18388
18669
  Update: {
18389
18670
  article_number?: string | null;
18671
+ artikel_id?: string | null;
18390
18672
  created_at?: string;
18391
18673
  gtin?: string | null;
18392
18674
  id?: string;
@@ -18403,6 +18685,12 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
18403
18685
  updated_at?: string;
18404
18686
  };
18405
18687
  Relationships: [{
18688
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
18689
+ columns: ["artikel_id"];
18690
+ isOneToOne: false;
18691
+ referencedRelation: "artikelen_cache";
18692
+ referencedColumns: ["id"];
18693
+ }, {
18406
18694
  foreignKeyName: "werkbon_package_items_package_id_fkey";
18407
18695
  columns: ["package_id"];
18408
18696
  isOneToOne: false;
@@ -18604,6 +18892,9 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
18604
18892
  scheduled_end_time: string | null;
18605
18893
  scheduled_start_time: string | null;
18606
18894
  sequence_number: number;
18895
+ signature_accepted_at: string | null;
18896
+ signature_by_user_id: string | null;
18897
+ signature_name: string | null;
18607
18898
  source_email_meta: import("../integrations/supabase/types").Json | null;
18608
18899
  source_mailbox_message_id: string | null;
18609
18900
  source_pdf_path: string | null;
@@ -18639,6 +18930,9 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
18639
18930
  scheduled_end_time?: string | null;
18640
18931
  scheduled_start_time?: string | null;
18641
18932
  sequence_number: number;
18933
+ signature_accepted_at?: string | null;
18934
+ signature_by_user_id?: string | null;
18935
+ signature_name?: string | null;
18642
18936
  source_email_meta?: import("../integrations/supabase/types").Json | null;
18643
18937
  source_mailbox_message_id?: string | null;
18644
18938
  source_pdf_path?: string | null;
@@ -18674,6 +18968,9 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
18674
18968
  scheduled_end_time?: string | null;
18675
18969
  scheduled_start_time?: string | null;
18676
18970
  sequence_number?: number;
18971
+ signature_accepted_at?: string | null;
18972
+ signature_by_user_id?: string | null;
18973
+ signature_name?: string | null;
18677
18974
  source_email_meta?: import("../integrations/supabase/types").Json | null;
18678
18975
  source_mailbox_message_id?: string | null;
18679
18976
  source_pdf_path?: string | null;
@@ -19616,6 +19913,20 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
19616
19913
  referencedColumns: ["id"];
19617
19914
  }];
19618
19915
  };
19916
+ v_werkbon_totalen: {
19917
+ Row: {
19918
+ packages_cents: number | null;
19919
+ packages_minutes: number | null;
19920
+ werkbon_id: string | null;
19921
+ };
19922
+ Relationships: [{
19923
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
19924
+ columns: ["werkbon_id"];
19925
+ isOneToOne: false;
19926
+ referencedRelation: "werkbonnen";
19927
+ referencedColumns: ["id"];
19928
+ }];
19929
+ };
19619
19930
  };
19620
19931
  Functions: {
19621
19932
  _floriday_schedule_job: {
@@ -21068,6 +21379,41 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
21068
21379
  };
21069
21380
  Returns: string;
21070
21381
  };
21382
+ logistics_floriday_finish_push_v2: {
21383
+ Args: {
21384
+ _error?: string;
21385
+ _error_code?: string;
21386
+ _fulfillment_order_id?: string;
21387
+ _gateway_status?: number;
21388
+ _id: string;
21389
+ _max_age_hours?: number;
21390
+ _max_attempts?: number;
21391
+ _ok: boolean;
21392
+ _permanent?: boolean;
21393
+ _response?: import("../integrations/supabase/types").Json;
21394
+ _revision: number;
21395
+ _sent_hash?: string;
21396
+ };
21397
+ Returns: string;
21398
+ };
21399
+ logistics_floriday_finish_push_v3: {
21400
+ Args: {
21401
+ _error?: string;
21402
+ _error_code?: string;
21403
+ _fulfillment_order_id?: string;
21404
+ _gateway_status?: number;
21405
+ _id: string;
21406
+ _max_age_hours?: number;
21407
+ _max_attempts?: number;
21408
+ _outcome: string;
21409
+ _permanent?: boolean;
21410
+ _response?: import("../integrations/supabase/types").Json;
21411
+ _revision: number;
21412
+ _sent_hash?: string;
21413
+ _wait_max_age_hours?: number;
21414
+ };
21415
+ Returns: string;
21416
+ };
21071
21417
  logistics_floriday_prune_pushes: {
21072
21418
  Args: {
21073
21419
  _days?: number;
@@ -21128,6 +21474,14 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
21128
21474
  };
21129
21475
  Returns: import("../integrations/supabase/types").Json;
21130
21476
  };
21477
+ logistics_plan_block: {
21478
+ Args: {
21479
+ p_details?: import("../integrations/supabase/types").Json;
21480
+ p_order_ids: string[];
21481
+ p_reason: string;
21482
+ };
21483
+ Returns: number;
21484
+ };
21131
21485
  logistics_plan_buffer_sql: {
21132
21486
  Args: {
21133
21487
  p_buffer_id: string;
@@ -21496,6 +21850,12 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
21496
21850
  verwijderd: number;
21497
21851
  }[];
21498
21852
  };
21853
+ order_departure_proof: {
21854
+ Args: {
21855
+ p_order_id: string;
21856
+ };
21857
+ Returns: import("../integrations/supabase/types").Json;
21858
+ };
21499
21859
  order_number_prefix: {
21500
21860
  Args: {
21501
21861
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -21503,6 +21863,25 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
21503
21863
  };
21504
21864
  Returns: string;
21505
21865
  };
21866
+ pakket_suggesties_voor_tekst: {
21867
+ Args: {
21868
+ _tekst: string;
21869
+ };
21870
+ Returns: {
21871
+ hit_type: string;
21872
+ package_id: string;
21873
+ priority: number;
21874
+ }[];
21875
+ };
21876
+ pakket_voor_reistijd: {
21877
+ Args: {
21878
+ _minuten: number;
21879
+ };
21880
+ Returns: {
21881
+ package_id: string;
21882
+ priority: number;
21883
+ }[];
21884
+ };
21506
21885
  pick_active_printers: {
21507
21886
  Args: never;
21508
21887
  Returns: {
@@ -21703,6 +22082,14 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
21703
22082
  };
21704
22083
  Returns: import("../integrations/supabase/types").Json;
21705
22084
  };
22085
+ pick_print_plekken: {
22086
+ Args: never;
22087
+ Returns: {
22088
+ id: string;
22089
+ naam: string;
22090
+ omschrijving: string;
22091
+ }[];
22092
+ };
21706
22093
  pick_release_expired_locks: {
21707
22094
  Args: never;
21708
22095
  Returns: number;
@@ -21767,6 +22154,13 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
21767
22154
  isSetofReturn: false;
21768
22155
  };
21769
22156
  };
22157
+ pick_set_station_print_plek: {
22158
+ Args: {
22159
+ _print_plek_id: string;
22160
+ _station_id: string;
22161
+ };
22162
+ Returns: string;
22163
+ };
21770
22164
  pick_station_dashboard: {
21771
22165
  Args: never;
21772
22166
  Returns: {
@@ -21779,6 +22173,25 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
21779
22173
  waiting: number;
21780
22174
  }[];
21781
22175
  };
22176
+ pick_station_print_plek: {
22177
+ Args: {
22178
+ _station_id: string;
22179
+ };
22180
+ Returns: {
22181
+ naam: string;
22182
+ omschrijving: string;
22183
+ print_plek_id: string;
22184
+ }[];
22185
+ };
22186
+ pick_station_print_plekken: {
22187
+ Args: never;
22188
+ Returns: {
22189
+ naam: string;
22190
+ omschrijving: string;
22191
+ print_plek_id: string;
22192
+ station_id: string;
22193
+ }[];
22194
+ };
21782
22195
  pick_station_slugify: {
21783
22196
  Args: {
21784
22197
  _id: string;
@@ -22519,6 +22932,18 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
22519
22932
  Args: never;
22520
22933
  Returns: string;
22521
22934
  };
22935
+ werkbon_totalen: {
22936
+ Args: {
22937
+ _werkbon_id: string;
22938
+ };
22939
+ Returns: {
22940
+ materials_cents: number;
22941
+ packages_cents: number;
22942
+ packages_minutes: number;
22943
+ total_cents: number;
22944
+ total_minutes: number;
22945
+ }[];
22946
+ };
22522
22947
  wo_create_from_source: {
22523
22948
  Args: {
22524
22949
  _payload?: import("../integrations/supabase/types").Json;
@@ -22557,7 +22982,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
22557
22982
  };
22558
22983
  CompositeTypes: { [_ in never]: never; };
22559
22984
  }, {
22560
- PostgrestVersion: "14.5";
22985
+ PostgrestVersion: "14.17";
22561
22986
  }>;
22562
22987
  userId: string;
22563
22988
  claims: import("@supabase/auth-js").JwtPayload;
@@ -23246,6 +23671,99 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
23246
23671
  };
23247
23672
  Relationships: [];
23248
23673
  };
23674
+ artikelen_cache: {
23675
+ Row: {
23676
+ artikelcode: string;
23677
+ bron: string;
23678
+ bruto_prijs_cent: number | null;
23679
+ created_at: string;
23680
+ eenheid: string;
23681
+ fabrikant: string | null;
23682
+ fetched_at: string;
23683
+ gtin: string | null;
23684
+ id: string;
23685
+ naam: string;
23686
+ netto_prijs_cent: number | null;
23687
+ omschrijving: string | null;
23688
+ raw: import("../integrations/supabase/types").Json;
23689
+ updated_at: string;
23690
+ valuta: string;
23691
+ };
23692
+ Insert: {
23693
+ artikelcode: string;
23694
+ bron?: string;
23695
+ bruto_prijs_cent?: number | null;
23696
+ created_at?: string;
23697
+ eenheid?: string;
23698
+ fabrikant?: string | null;
23699
+ fetched_at?: string;
23700
+ gtin?: string | null;
23701
+ id?: string;
23702
+ naam: string;
23703
+ netto_prijs_cent?: number | null;
23704
+ omschrijving?: string | null;
23705
+ raw?: import("../integrations/supabase/types").Json;
23706
+ updated_at?: string;
23707
+ valuta?: string;
23708
+ };
23709
+ Update: {
23710
+ artikelcode?: string;
23711
+ bron?: string;
23712
+ bruto_prijs_cent?: number | null;
23713
+ created_at?: string;
23714
+ eenheid?: string;
23715
+ fabrikant?: string | null;
23716
+ fetched_at?: string;
23717
+ gtin?: string | null;
23718
+ id?: string;
23719
+ naam?: string;
23720
+ netto_prijs_cent?: number | null;
23721
+ omschrijving?: string | null;
23722
+ raw?: import("../integrations/supabase/types").Json;
23723
+ updated_at?: string;
23724
+ valuta?: string;
23725
+ };
23726
+ Relationships: [];
23727
+ };
23728
+ artikelen_veldconfig: {
23729
+ Row: {
23730
+ bron_pad: string;
23731
+ created_at: string;
23732
+ id: string;
23733
+ label: string;
23734
+ sort_order: number;
23735
+ type: string;
23736
+ updated_at: string;
23737
+ veld_key: string;
23738
+ zichtbaar_in_detail: boolean;
23739
+ zichtbaar_in_lijst: boolean;
23740
+ };
23741
+ Insert: {
23742
+ bron_pad: string;
23743
+ created_at?: string;
23744
+ id?: string;
23745
+ label: string;
23746
+ sort_order?: number;
23747
+ type?: string;
23748
+ updated_at?: string;
23749
+ veld_key: string;
23750
+ zichtbaar_in_detail?: boolean;
23751
+ zichtbaar_in_lijst?: boolean;
23752
+ };
23753
+ Update: {
23754
+ bron_pad?: string;
23755
+ created_at?: string;
23756
+ id?: string;
23757
+ label?: string;
23758
+ sort_order?: number;
23759
+ type?: string;
23760
+ updated_at?: string;
23761
+ veld_key?: string;
23762
+ zichtbaar_in_detail?: boolean;
23763
+ zichtbaar_in_lijst?: boolean;
23764
+ };
23765
+ Relationships: [];
23766
+ };
23249
23767
  booking_items: {
23250
23768
  Row: {
23251
23769
  booking_id: string;
@@ -25718,6 +26236,48 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
25718
26236
  };
25719
26237
  Relationships: [];
25720
26238
  };
26239
+ document_printplek_printers: {
26240
+ Row: {
26241
+ created_at: string;
26242
+ documenttype: string;
26243
+ id: string;
26244
+ papierformaat: string | null;
26245
+ print_plek_id: string;
26246
+ printer_id: string | null;
26247
+ updated_at: string;
26248
+ };
26249
+ Insert: {
26250
+ created_at?: string;
26251
+ documenttype: string;
26252
+ id?: string;
26253
+ papierformaat?: string | null;
26254
+ print_plek_id: string;
26255
+ printer_id?: string | null;
26256
+ updated_at?: string;
26257
+ };
26258
+ Update: {
26259
+ created_at?: string;
26260
+ documenttype?: string;
26261
+ id?: string;
26262
+ papierformaat?: string | null;
26263
+ print_plek_id?: string;
26264
+ printer_id?: string | null;
26265
+ updated_at?: string;
26266
+ };
26267
+ Relationships: [{
26268
+ foreignKeyName: "document_printplek_printers_print_plek_id_fkey";
26269
+ columns: ["print_plek_id"];
26270
+ isOneToOne: false;
26271
+ referencedRelation: "print_plekken";
26272
+ referencedColumns: ["id"];
26273
+ }, {
26274
+ foreignKeyName: "document_printplek_printers_printer_id_fkey";
26275
+ columns: ["printer_id"];
26276
+ isOneToOne: false;
26277
+ referencedRelation: "printers";
26278
+ referencedColumns: ["id"];
26279
+ }];
26280
+ };
25721
26281
  document_werkplek_printers: {
25722
26282
  Row: {
25723
26283
  created_at: string;
@@ -31697,6 +32257,10 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
31697
32257
  id: string;
31698
32258
  last_error: string | null;
31699
32259
  last_error_at: string | null;
32260
+ last_error_code: string | null;
32261
+ last_gateway_status: number | null;
32262
+ last_queued_at: string | null;
32263
+ last_response: import("../integrations/supabase/types").Json | null;
31700
32264
  last_sent_hash: string | null;
31701
32265
  locked_by: string | null;
31702
32266
  locked_until: string | null;
@@ -31717,6 +32281,10 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
31717
32281
  id?: string;
31718
32282
  last_error?: string | null;
31719
32283
  last_error_at?: string | null;
32284
+ last_error_code?: string | null;
32285
+ last_gateway_status?: number | null;
32286
+ last_queued_at?: string | null;
32287
+ last_response?: import("../integrations/supabase/types").Json | null;
31720
32288
  last_sent_hash?: string | null;
31721
32289
  locked_by?: string | null;
31722
32290
  locked_until?: string | null;
@@ -31737,6 +32305,10 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
31737
32305
  id?: string;
31738
32306
  last_error?: string | null;
31739
32307
  last_error_at?: string | null;
32308
+ last_error_code?: string | null;
32309
+ last_gateway_status?: number | null;
32310
+ last_queued_at?: string | null;
32311
+ last_response?: import("../integrations/supabase/types").Json | null;
31740
32312
  last_sent_hash?: string | null;
31741
32313
  locked_by?: string | null;
31742
32314
  locked_until?: string | null;
@@ -35906,6 +36478,99 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
35906
36478
  referencedColumns: ["id"];
35907
36479
  }];
35908
36480
  };
36481
+ print_plek_computers: {
36482
+ Row: {
36483
+ computer_naam: string;
36484
+ created_at: string;
36485
+ id: string;
36486
+ print_plek_id: string;
36487
+ updated_at: string;
36488
+ };
36489
+ Insert: {
36490
+ computer_naam: string;
36491
+ created_at?: string;
36492
+ id?: string;
36493
+ print_plek_id: string;
36494
+ updated_at?: string;
36495
+ };
36496
+ Update: {
36497
+ computer_naam?: string;
36498
+ created_at?: string;
36499
+ id?: string;
36500
+ print_plek_id?: string;
36501
+ updated_at?: string;
36502
+ };
36503
+ Relationships: [{
36504
+ foreignKeyName: "print_plek_computers_print_plek_id_fkey";
36505
+ columns: ["print_plek_id"];
36506
+ isOneToOne: false;
36507
+ referencedRelation: "print_plekken";
36508
+ referencedColumns: ["id"];
36509
+ }];
36510
+ };
36511
+ print_plek_koppelingen: {
36512
+ Row: {
36513
+ bron: string;
36514
+ bron_id: string;
36515
+ created_at: string;
36516
+ id: string;
36517
+ label: string | null;
36518
+ print_plek_id: string;
36519
+ updated_at: string;
36520
+ };
36521
+ Insert: {
36522
+ bron: string;
36523
+ bron_id: string;
36524
+ created_at?: string;
36525
+ id?: string;
36526
+ label?: string | null;
36527
+ print_plek_id: string;
36528
+ updated_at?: string;
36529
+ };
36530
+ Update: {
36531
+ bron?: string;
36532
+ bron_id?: string;
36533
+ created_at?: string;
36534
+ id?: string;
36535
+ label?: string | null;
36536
+ print_plek_id?: string;
36537
+ updated_at?: string;
36538
+ };
36539
+ Relationships: [{
36540
+ foreignKeyName: "print_plek_koppelingen_print_plek_id_fkey";
36541
+ columns: ["print_plek_id"];
36542
+ isOneToOne: false;
36543
+ referencedRelation: "print_plekken";
36544
+ referencedColumns: ["id"];
36545
+ }];
36546
+ };
36547
+ print_plekken: {
36548
+ Row: {
36549
+ actief: boolean;
36550
+ created_at: string;
36551
+ id: string;
36552
+ naam: string;
36553
+ omschrijving: string | null;
36554
+ updated_at: string;
36555
+ };
36556
+ Insert: {
36557
+ actief?: boolean;
36558
+ created_at?: string;
36559
+ id?: string;
36560
+ naam: string;
36561
+ omschrijving?: string | null;
36562
+ updated_at?: string;
36563
+ };
36564
+ Update: {
36565
+ actief?: boolean;
36566
+ created_at?: string;
36567
+ id?: string;
36568
+ naam?: string;
36569
+ omschrijving?: string | null;
36570
+ updated_at?: string;
36571
+ };
36572
+ Relationships: [];
36573
+ };
35909
36574
  print_queue_runners: {
35910
36575
  Row: {
35911
36576
  actief: boolean;
@@ -38060,6 +38725,45 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
38060
38725
  };
38061
38726
  Relationships: [];
38062
38727
  };
38728
+ stock_consumption_alerts: {
38729
+ Row: {
38730
+ alert_type: string;
38731
+ created_at: string;
38732
+ id: string;
38733
+ mutation_log_id: string | null;
38734
+ order_id: string | null;
38735
+ order_item_id: string | null;
38736
+ qty: number;
38737
+ reason: string | null;
38738
+ resolved_at: string | null;
38739
+ updated_at: string;
38740
+ };
38741
+ Insert: {
38742
+ alert_type: string;
38743
+ created_at?: string;
38744
+ id?: string;
38745
+ mutation_log_id?: string | null;
38746
+ order_id?: string | null;
38747
+ order_item_id?: string | null;
38748
+ qty?: number;
38749
+ reason?: string | null;
38750
+ resolved_at?: string | null;
38751
+ updated_at?: string;
38752
+ };
38753
+ Update: {
38754
+ alert_type?: string;
38755
+ created_at?: string;
38756
+ id?: string;
38757
+ mutation_log_id?: string | null;
38758
+ order_id?: string | null;
38759
+ order_item_id?: string | null;
38760
+ qty?: number;
38761
+ reason?: string | null;
38762
+ resolved_at?: string | null;
38763
+ updated_at?: string;
38764
+ };
38765
+ Relationships: [];
38766
+ };
38063
38767
  stock_import_runs: {
38064
38768
  Row: {
38065
38769
  connection_id: string | null;
@@ -40913,6 +41617,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
40913
41617
  werkbon_package_items: {
40914
41618
  Row: {
40915
41619
  article_number: string | null;
41620
+ artikel_id: string | null;
40916
41621
  created_at: string;
40917
41622
  gtin: string | null;
40918
41623
  id: string;
@@ -40930,6 +41635,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
40930
41635
  };
40931
41636
  Insert: {
40932
41637
  article_number?: string | null;
41638
+ artikel_id?: string | null;
40933
41639
  created_at?: string;
40934
41640
  gtin?: string | null;
40935
41641
  id?: string;
@@ -40947,6 +41653,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
40947
41653
  };
40948
41654
  Update: {
40949
41655
  article_number?: string | null;
41656
+ artikel_id?: string | null;
40950
41657
  created_at?: string;
40951
41658
  gtin?: string | null;
40952
41659
  id?: string;
@@ -40963,6 +41670,12 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
40963
41670
  updated_at?: string;
40964
41671
  };
40965
41672
  Relationships: [{
41673
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
41674
+ columns: ["artikel_id"];
41675
+ isOneToOne: false;
41676
+ referencedRelation: "artikelen_cache";
41677
+ referencedColumns: ["id"];
41678
+ }, {
40966
41679
  foreignKeyName: "werkbon_package_items_package_id_fkey";
40967
41680
  columns: ["package_id"];
40968
41681
  isOneToOne: false;
@@ -41164,6 +41877,9 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
41164
41877
  scheduled_end_time: string | null;
41165
41878
  scheduled_start_time: string | null;
41166
41879
  sequence_number: number;
41880
+ signature_accepted_at: string | null;
41881
+ signature_by_user_id: string | null;
41882
+ signature_name: string | null;
41167
41883
  source_email_meta: import("../integrations/supabase/types").Json | null;
41168
41884
  source_mailbox_message_id: string | null;
41169
41885
  source_pdf_path: string | null;
@@ -41199,6 +41915,9 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
41199
41915
  scheduled_end_time?: string | null;
41200
41916
  scheduled_start_time?: string | null;
41201
41917
  sequence_number: number;
41918
+ signature_accepted_at?: string | null;
41919
+ signature_by_user_id?: string | null;
41920
+ signature_name?: string | null;
41202
41921
  source_email_meta?: import("../integrations/supabase/types").Json | null;
41203
41922
  source_mailbox_message_id?: string | null;
41204
41923
  source_pdf_path?: string | null;
@@ -41234,6 +41953,9 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
41234
41953
  scheduled_end_time?: string | null;
41235
41954
  scheduled_start_time?: string | null;
41236
41955
  sequence_number?: number;
41956
+ signature_accepted_at?: string | null;
41957
+ signature_by_user_id?: string | null;
41958
+ signature_name?: string | null;
41237
41959
  source_email_meta?: import("../integrations/supabase/types").Json | null;
41238
41960
  source_mailbox_message_id?: string | null;
41239
41961
  source_pdf_path?: string | null;
@@ -42176,6 +42898,20 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
42176
42898
  referencedColumns: ["id"];
42177
42899
  }];
42178
42900
  };
42901
+ v_werkbon_totalen: {
42902
+ Row: {
42903
+ packages_cents: number | null;
42904
+ packages_minutes: number | null;
42905
+ werkbon_id: string | null;
42906
+ };
42907
+ Relationships: [{
42908
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
42909
+ columns: ["werkbon_id"];
42910
+ isOneToOne: false;
42911
+ referencedRelation: "werkbonnen";
42912
+ referencedColumns: ["id"];
42913
+ }];
42914
+ };
42179
42915
  };
42180
42916
  Functions: {
42181
42917
  _floriday_schedule_job: {
@@ -43628,6 +44364,41 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
43628
44364
  };
43629
44365
  Returns: string;
43630
44366
  };
44367
+ logistics_floriday_finish_push_v2: {
44368
+ Args: {
44369
+ _error?: string;
44370
+ _error_code?: string;
44371
+ _fulfillment_order_id?: string;
44372
+ _gateway_status?: number;
44373
+ _id: string;
44374
+ _max_age_hours?: number;
44375
+ _max_attempts?: number;
44376
+ _ok: boolean;
44377
+ _permanent?: boolean;
44378
+ _response?: import("../integrations/supabase/types").Json;
44379
+ _revision: number;
44380
+ _sent_hash?: string;
44381
+ };
44382
+ Returns: string;
44383
+ };
44384
+ logistics_floriday_finish_push_v3: {
44385
+ Args: {
44386
+ _error?: string;
44387
+ _error_code?: string;
44388
+ _fulfillment_order_id?: string;
44389
+ _gateway_status?: number;
44390
+ _id: string;
44391
+ _max_age_hours?: number;
44392
+ _max_attempts?: number;
44393
+ _outcome: string;
44394
+ _permanent?: boolean;
44395
+ _response?: import("../integrations/supabase/types").Json;
44396
+ _revision: number;
44397
+ _sent_hash?: string;
44398
+ _wait_max_age_hours?: number;
44399
+ };
44400
+ Returns: string;
44401
+ };
43631
44402
  logistics_floriday_prune_pushes: {
43632
44403
  Args: {
43633
44404
  _days?: number;
@@ -43688,6 +44459,14 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
43688
44459
  };
43689
44460
  Returns: import("../integrations/supabase/types").Json;
43690
44461
  };
44462
+ logistics_plan_block: {
44463
+ Args: {
44464
+ p_details?: import("../integrations/supabase/types").Json;
44465
+ p_order_ids: string[];
44466
+ p_reason: string;
44467
+ };
44468
+ Returns: number;
44469
+ };
43691
44470
  logistics_plan_buffer_sql: {
43692
44471
  Args: {
43693
44472
  p_buffer_id: string;
@@ -44056,6 +44835,12 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
44056
44835
  verwijderd: number;
44057
44836
  }[];
44058
44837
  };
44838
+ order_departure_proof: {
44839
+ Args: {
44840
+ p_order_id: string;
44841
+ };
44842
+ Returns: import("../integrations/supabase/types").Json;
44843
+ };
44059
44844
  order_number_prefix: {
44060
44845
  Args: {
44061
44846
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -44063,6 +44848,25 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
44063
44848
  };
44064
44849
  Returns: string;
44065
44850
  };
44851
+ pakket_suggesties_voor_tekst: {
44852
+ Args: {
44853
+ _tekst: string;
44854
+ };
44855
+ Returns: {
44856
+ hit_type: string;
44857
+ package_id: string;
44858
+ priority: number;
44859
+ }[];
44860
+ };
44861
+ pakket_voor_reistijd: {
44862
+ Args: {
44863
+ _minuten: number;
44864
+ };
44865
+ Returns: {
44866
+ package_id: string;
44867
+ priority: number;
44868
+ }[];
44869
+ };
44066
44870
  pick_active_printers: {
44067
44871
  Args: never;
44068
44872
  Returns: {
@@ -44263,6 +45067,14 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
44263
45067
  };
44264
45068
  Returns: import("../integrations/supabase/types").Json;
44265
45069
  };
45070
+ pick_print_plekken: {
45071
+ Args: never;
45072
+ Returns: {
45073
+ id: string;
45074
+ naam: string;
45075
+ omschrijving: string;
45076
+ }[];
45077
+ };
44266
45078
  pick_release_expired_locks: {
44267
45079
  Args: never;
44268
45080
  Returns: number;
@@ -44327,6 +45139,13 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
44327
45139
  isSetofReturn: false;
44328
45140
  };
44329
45141
  };
45142
+ pick_set_station_print_plek: {
45143
+ Args: {
45144
+ _print_plek_id: string;
45145
+ _station_id: string;
45146
+ };
45147
+ Returns: string;
45148
+ };
44330
45149
  pick_station_dashboard: {
44331
45150
  Args: never;
44332
45151
  Returns: {
@@ -44339,6 +45158,25 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
44339
45158
  waiting: number;
44340
45159
  }[];
44341
45160
  };
45161
+ pick_station_print_plek: {
45162
+ Args: {
45163
+ _station_id: string;
45164
+ };
45165
+ Returns: {
45166
+ naam: string;
45167
+ omschrijving: string;
45168
+ print_plek_id: string;
45169
+ }[];
45170
+ };
45171
+ pick_station_print_plekken: {
45172
+ Args: never;
45173
+ Returns: {
45174
+ naam: string;
45175
+ omschrijving: string;
45176
+ print_plek_id: string;
45177
+ station_id: string;
45178
+ }[];
45179
+ };
44342
45180
  pick_station_slugify: {
44343
45181
  Args: {
44344
45182
  _id: string;
@@ -45079,6 +45917,18 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
45079
45917
  Args: never;
45080
45918
  Returns: string;
45081
45919
  };
45920
+ werkbon_totalen: {
45921
+ Args: {
45922
+ _werkbon_id: string;
45923
+ };
45924
+ Returns: {
45925
+ materials_cents: number;
45926
+ packages_cents: number;
45927
+ packages_minutes: number;
45928
+ total_cents: number;
45929
+ total_minutes: number;
45930
+ }[];
45931
+ };
45082
45932
  wo_create_from_source: {
45083
45933
  Args: {
45084
45934
  _payload?: import("../integrations/supabase/types").Json;
@@ -45117,7 +45967,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
45117
45967
  };
45118
45968
  CompositeTypes: { [_ in never]: never; };
45119
45969
  }, {
45120
- PostgrestVersion: "14.5";
45970
+ PostgrestVersion: "14.17";
45121
45971
  }>;
45122
45972
  userId: string;
45123
45973
  claims: import("@supabase/auth-js").JwtPayload;
@@ -45800,6 +46650,99 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
45800
46650
  };
45801
46651
  Relationships: [];
45802
46652
  };
46653
+ artikelen_cache: {
46654
+ Row: {
46655
+ artikelcode: string;
46656
+ bron: string;
46657
+ bruto_prijs_cent: number | null;
46658
+ created_at: string;
46659
+ eenheid: string;
46660
+ fabrikant: string | null;
46661
+ fetched_at: string;
46662
+ gtin: string | null;
46663
+ id: string;
46664
+ naam: string;
46665
+ netto_prijs_cent: number | null;
46666
+ omschrijving: string | null;
46667
+ raw: import("../integrations/supabase/types").Json;
46668
+ updated_at: string;
46669
+ valuta: string;
46670
+ };
46671
+ Insert: {
46672
+ artikelcode: string;
46673
+ bron?: string;
46674
+ bruto_prijs_cent?: number | null;
46675
+ created_at?: string;
46676
+ eenheid?: string;
46677
+ fabrikant?: string | null;
46678
+ fetched_at?: string;
46679
+ gtin?: string | null;
46680
+ id?: string;
46681
+ naam: string;
46682
+ netto_prijs_cent?: number | null;
46683
+ omschrijving?: string | null;
46684
+ raw?: import("../integrations/supabase/types").Json;
46685
+ updated_at?: string;
46686
+ valuta?: string;
46687
+ };
46688
+ Update: {
46689
+ artikelcode?: string;
46690
+ bron?: string;
46691
+ bruto_prijs_cent?: number | null;
46692
+ created_at?: string;
46693
+ eenheid?: string;
46694
+ fabrikant?: string | null;
46695
+ fetched_at?: string;
46696
+ gtin?: string | null;
46697
+ id?: string;
46698
+ naam?: string;
46699
+ netto_prijs_cent?: number | null;
46700
+ omschrijving?: string | null;
46701
+ raw?: import("../integrations/supabase/types").Json;
46702
+ updated_at?: string;
46703
+ valuta?: string;
46704
+ };
46705
+ Relationships: [];
46706
+ };
46707
+ artikelen_veldconfig: {
46708
+ Row: {
46709
+ bron_pad: string;
46710
+ created_at: string;
46711
+ id: string;
46712
+ label: string;
46713
+ sort_order: number;
46714
+ type: string;
46715
+ updated_at: string;
46716
+ veld_key: string;
46717
+ zichtbaar_in_detail: boolean;
46718
+ zichtbaar_in_lijst: boolean;
46719
+ };
46720
+ Insert: {
46721
+ bron_pad: string;
46722
+ created_at?: string;
46723
+ id?: string;
46724
+ label: string;
46725
+ sort_order?: number;
46726
+ type?: string;
46727
+ updated_at?: string;
46728
+ veld_key: string;
46729
+ zichtbaar_in_detail?: boolean;
46730
+ zichtbaar_in_lijst?: boolean;
46731
+ };
46732
+ Update: {
46733
+ bron_pad?: string;
46734
+ created_at?: string;
46735
+ id?: string;
46736
+ label?: string;
46737
+ sort_order?: number;
46738
+ type?: string;
46739
+ updated_at?: string;
46740
+ veld_key?: string;
46741
+ zichtbaar_in_detail?: boolean;
46742
+ zichtbaar_in_lijst?: boolean;
46743
+ };
46744
+ Relationships: [];
46745
+ };
45803
46746
  booking_items: {
45804
46747
  Row: {
45805
46748
  booking_id: string;
@@ -48272,6 +49215,48 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
48272
49215
  };
48273
49216
  Relationships: [];
48274
49217
  };
49218
+ document_printplek_printers: {
49219
+ Row: {
49220
+ created_at: string;
49221
+ documenttype: string;
49222
+ id: string;
49223
+ papierformaat: string | null;
49224
+ print_plek_id: string;
49225
+ printer_id: string | null;
49226
+ updated_at: string;
49227
+ };
49228
+ Insert: {
49229
+ created_at?: string;
49230
+ documenttype: string;
49231
+ id?: string;
49232
+ papierformaat?: string | null;
49233
+ print_plek_id: string;
49234
+ printer_id?: string | null;
49235
+ updated_at?: string;
49236
+ };
49237
+ Update: {
49238
+ created_at?: string;
49239
+ documenttype?: string;
49240
+ id?: string;
49241
+ papierformaat?: string | null;
49242
+ print_plek_id?: string;
49243
+ printer_id?: string | null;
49244
+ updated_at?: string;
49245
+ };
49246
+ Relationships: [{
49247
+ foreignKeyName: "document_printplek_printers_print_plek_id_fkey";
49248
+ columns: ["print_plek_id"];
49249
+ isOneToOne: false;
49250
+ referencedRelation: "print_plekken";
49251
+ referencedColumns: ["id"];
49252
+ }, {
49253
+ foreignKeyName: "document_printplek_printers_printer_id_fkey";
49254
+ columns: ["printer_id"];
49255
+ isOneToOne: false;
49256
+ referencedRelation: "printers";
49257
+ referencedColumns: ["id"];
49258
+ }];
49259
+ };
48275
49260
  document_werkplek_printers: {
48276
49261
  Row: {
48277
49262
  created_at: string;
@@ -54251,6 +55236,10 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
54251
55236
  id: string;
54252
55237
  last_error: string | null;
54253
55238
  last_error_at: string | null;
55239
+ last_error_code: string | null;
55240
+ last_gateway_status: number | null;
55241
+ last_queued_at: string | null;
55242
+ last_response: import("../integrations/supabase/types").Json | null;
54254
55243
  last_sent_hash: string | null;
54255
55244
  locked_by: string | null;
54256
55245
  locked_until: string | null;
@@ -54271,6 +55260,10 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
54271
55260
  id?: string;
54272
55261
  last_error?: string | null;
54273
55262
  last_error_at?: string | null;
55263
+ last_error_code?: string | null;
55264
+ last_gateway_status?: number | null;
55265
+ last_queued_at?: string | null;
55266
+ last_response?: import("../integrations/supabase/types").Json | null;
54274
55267
  last_sent_hash?: string | null;
54275
55268
  locked_by?: string | null;
54276
55269
  locked_until?: string | null;
@@ -54291,6 +55284,10 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
54291
55284
  id?: string;
54292
55285
  last_error?: string | null;
54293
55286
  last_error_at?: string | null;
55287
+ last_error_code?: string | null;
55288
+ last_gateway_status?: number | null;
55289
+ last_queued_at?: string | null;
55290
+ last_response?: import("../integrations/supabase/types").Json | null;
54294
55291
  last_sent_hash?: string | null;
54295
55292
  locked_by?: string | null;
54296
55293
  locked_until?: string | null;
@@ -58460,6 +59457,99 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
58460
59457
  referencedColumns: ["id"];
58461
59458
  }];
58462
59459
  };
59460
+ print_plek_computers: {
59461
+ Row: {
59462
+ computer_naam: string;
59463
+ created_at: string;
59464
+ id: string;
59465
+ print_plek_id: string;
59466
+ updated_at: string;
59467
+ };
59468
+ Insert: {
59469
+ computer_naam: string;
59470
+ created_at?: string;
59471
+ id?: string;
59472
+ print_plek_id: string;
59473
+ updated_at?: string;
59474
+ };
59475
+ Update: {
59476
+ computer_naam?: string;
59477
+ created_at?: string;
59478
+ id?: string;
59479
+ print_plek_id?: string;
59480
+ updated_at?: string;
59481
+ };
59482
+ Relationships: [{
59483
+ foreignKeyName: "print_plek_computers_print_plek_id_fkey";
59484
+ columns: ["print_plek_id"];
59485
+ isOneToOne: false;
59486
+ referencedRelation: "print_plekken";
59487
+ referencedColumns: ["id"];
59488
+ }];
59489
+ };
59490
+ print_plek_koppelingen: {
59491
+ Row: {
59492
+ bron: string;
59493
+ bron_id: string;
59494
+ created_at: string;
59495
+ id: string;
59496
+ label: string | null;
59497
+ print_plek_id: string;
59498
+ updated_at: string;
59499
+ };
59500
+ Insert: {
59501
+ bron: string;
59502
+ bron_id: string;
59503
+ created_at?: string;
59504
+ id?: string;
59505
+ label?: string | null;
59506
+ print_plek_id: string;
59507
+ updated_at?: string;
59508
+ };
59509
+ Update: {
59510
+ bron?: string;
59511
+ bron_id?: string;
59512
+ created_at?: string;
59513
+ id?: string;
59514
+ label?: string | null;
59515
+ print_plek_id?: string;
59516
+ updated_at?: string;
59517
+ };
59518
+ Relationships: [{
59519
+ foreignKeyName: "print_plek_koppelingen_print_plek_id_fkey";
59520
+ columns: ["print_plek_id"];
59521
+ isOneToOne: false;
59522
+ referencedRelation: "print_plekken";
59523
+ referencedColumns: ["id"];
59524
+ }];
59525
+ };
59526
+ print_plekken: {
59527
+ Row: {
59528
+ actief: boolean;
59529
+ created_at: string;
59530
+ id: string;
59531
+ naam: string;
59532
+ omschrijving: string | null;
59533
+ updated_at: string;
59534
+ };
59535
+ Insert: {
59536
+ actief?: boolean;
59537
+ created_at?: string;
59538
+ id?: string;
59539
+ naam: string;
59540
+ omschrijving?: string | null;
59541
+ updated_at?: string;
59542
+ };
59543
+ Update: {
59544
+ actief?: boolean;
59545
+ created_at?: string;
59546
+ id?: string;
59547
+ naam?: string;
59548
+ omschrijving?: string | null;
59549
+ updated_at?: string;
59550
+ };
59551
+ Relationships: [];
59552
+ };
58463
59553
  print_queue_runners: {
58464
59554
  Row: {
58465
59555
  actief: boolean;
@@ -60614,6 +61704,45 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
60614
61704
  };
60615
61705
  Relationships: [];
60616
61706
  };
61707
+ stock_consumption_alerts: {
61708
+ Row: {
61709
+ alert_type: string;
61710
+ created_at: string;
61711
+ id: string;
61712
+ mutation_log_id: string | null;
61713
+ order_id: string | null;
61714
+ order_item_id: string | null;
61715
+ qty: number;
61716
+ reason: string | null;
61717
+ resolved_at: string | null;
61718
+ updated_at: string;
61719
+ };
61720
+ Insert: {
61721
+ alert_type: string;
61722
+ created_at?: string;
61723
+ id?: string;
61724
+ mutation_log_id?: string | null;
61725
+ order_id?: string | null;
61726
+ order_item_id?: string | null;
61727
+ qty?: number;
61728
+ reason?: string | null;
61729
+ resolved_at?: string | null;
61730
+ updated_at?: string;
61731
+ };
61732
+ Update: {
61733
+ alert_type?: string;
61734
+ created_at?: string;
61735
+ id?: string;
61736
+ mutation_log_id?: string | null;
61737
+ order_id?: string | null;
61738
+ order_item_id?: string | null;
61739
+ qty?: number;
61740
+ reason?: string | null;
61741
+ resolved_at?: string | null;
61742
+ updated_at?: string;
61743
+ };
61744
+ Relationships: [];
61745
+ };
60617
61746
  stock_import_runs: {
60618
61747
  Row: {
60619
61748
  connection_id: string | null;
@@ -63467,6 +64596,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
63467
64596
  werkbon_package_items: {
63468
64597
  Row: {
63469
64598
  article_number: string | null;
64599
+ artikel_id: string | null;
63470
64600
  created_at: string;
63471
64601
  gtin: string | null;
63472
64602
  id: string;
@@ -63484,6 +64614,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
63484
64614
  };
63485
64615
  Insert: {
63486
64616
  article_number?: string | null;
64617
+ artikel_id?: string | null;
63487
64618
  created_at?: string;
63488
64619
  gtin?: string | null;
63489
64620
  id?: string;
@@ -63501,6 +64632,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
63501
64632
  };
63502
64633
  Update: {
63503
64634
  article_number?: string | null;
64635
+ artikel_id?: string | null;
63504
64636
  created_at?: string;
63505
64637
  gtin?: string | null;
63506
64638
  id?: string;
@@ -63517,6 +64649,12 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
63517
64649
  updated_at?: string;
63518
64650
  };
63519
64651
  Relationships: [{
64652
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
64653
+ columns: ["artikel_id"];
64654
+ isOneToOne: false;
64655
+ referencedRelation: "artikelen_cache";
64656
+ referencedColumns: ["id"];
64657
+ }, {
63520
64658
  foreignKeyName: "werkbon_package_items_package_id_fkey";
63521
64659
  columns: ["package_id"];
63522
64660
  isOneToOne: false;
@@ -63718,6 +64856,9 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
63718
64856
  scheduled_end_time: string | null;
63719
64857
  scheduled_start_time: string | null;
63720
64858
  sequence_number: number;
64859
+ signature_accepted_at: string | null;
64860
+ signature_by_user_id: string | null;
64861
+ signature_name: string | null;
63721
64862
  source_email_meta: import("../integrations/supabase/types").Json | null;
63722
64863
  source_mailbox_message_id: string | null;
63723
64864
  source_pdf_path: string | null;
@@ -63753,6 +64894,9 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
63753
64894
  scheduled_end_time?: string | null;
63754
64895
  scheduled_start_time?: string | null;
63755
64896
  sequence_number: number;
64897
+ signature_accepted_at?: string | null;
64898
+ signature_by_user_id?: string | null;
64899
+ signature_name?: string | null;
63756
64900
  source_email_meta?: import("../integrations/supabase/types").Json | null;
63757
64901
  source_mailbox_message_id?: string | null;
63758
64902
  source_pdf_path?: string | null;
@@ -63788,6 +64932,9 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
63788
64932
  scheduled_end_time?: string | null;
63789
64933
  scheduled_start_time?: string | null;
63790
64934
  sequence_number?: number;
64935
+ signature_accepted_at?: string | null;
64936
+ signature_by_user_id?: string | null;
64937
+ signature_name?: string | null;
63791
64938
  source_email_meta?: import("../integrations/supabase/types").Json | null;
63792
64939
  source_mailbox_message_id?: string | null;
63793
64940
  source_pdf_path?: string | null;
@@ -64730,6 +65877,20 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
64730
65877
  referencedColumns: ["id"];
64731
65878
  }];
64732
65879
  };
65880
+ v_werkbon_totalen: {
65881
+ Row: {
65882
+ packages_cents: number | null;
65883
+ packages_minutes: number | null;
65884
+ werkbon_id: string | null;
65885
+ };
65886
+ Relationships: [{
65887
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
65888
+ columns: ["werkbon_id"];
65889
+ isOneToOne: false;
65890
+ referencedRelation: "werkbonnen";
65891
+ referencedColumns: ["id"];
65892
+ }];
65893
+ };
64733
65894
  };
64734
65895
  Functions: {
64735
65896
  _floriday_schedule_job: {
@@ -66182,6 +67343,41 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
66182
67343
  };
66183
67344
  Returns: string;
66184
67345
  };
67346
+ logistics_floriday_finish_push_v2: {
67347
+ Args: {
67348
+ _error?: string;
67349
+ _error_code?: string;
67350
+ _fulfillment_order_id?: string;
67351
+ _gateway_status?: number;
67352
+ _id: string;
67353
+ _max_age_hours?: number;
67354
+ _max_attempts?: number;
67355
+ _ok: boolean;
67356
+ _permanent?: boolean;
67357
+ _response?: import("../integrations/supabase/types").Json;
67358
+ _revision: number;
67359
+ _sent_hash?: string;
67360
+ };
67361
+ Returns: string;
67362
+ };
67363
+ logistics_floriday_finish_push_v3: {
67364
+ Args: {
67365
+ _error?: string;
67366
+ _error_code?: string;
67367
+ _fulfillment_order_id?: string;
67368
+ _gateway_status?: number;
67369
+ _id: string;
67370
+ _max_age_hours?: number;
67371
+ _max_attempts?: number;
67372
+ _outcome: string;
67373
+ _permanent?: boolean;
67374
+ _response?: import("../integrations/supabase/types").Json;
67375
+ _revision: number;
67376
+ _sent_hash?: string;
67377
+ _wait_max_age_hours?: number;
67378
+ };
67379
+ Returns: string;
67380
+ };
66185
67381
  logistics_floriday_prune_pushes: {
66186
67382
  Args: {
66187
67383
  _days?: number;
@@ -66242,6 +67438,14 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
66242
67438
  };
66243
67439
  Returns: import("../integrations/supabase/types").Json;
66244
67440
  };
67441
+ logistics_plan_block: {
67442
+ Args: {
67443
+ p_details?: import("../integrations/supabase/types").Json;
67444
+ p_order_ids: string[];
67445
+ p_reason: string;
67446
+ };
67447
+ Returns: number;
67448
+ };
66245
67449
  logistics_plan_buffer_sql: {
66246
67450
  Args: {
66247
67451
  p_buffer_id: string;
@@ -66610,6 +67814,12 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
66610
67814
  verwijderd: number;
66611
67815
  }[];
66612
67816
  };
67817
+ order_departure_proof: {
67818
+ Args: {
67819
+ p_order_id: string;
67820
+ };
67821
+ Returns: import("../integrations/supabase/types").Json;
67822
+ };
66613
67823
  order_number_prefix: {
66614
67824
  Args: {
66615
67825
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -66617,6 +67827,25 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
66617
67827
  };
66618
67828
  Returns: string;
66619
67829
  };
67830
+ pakket_suggesties_voor_tekst: {
67831
+ Args: {
67832
+ _tekst: string;
67833
+ };
67834
+ Returns: {
67835
+ hit_type: string;
67836
+ package_id: string;
67837
+ priority: number;
67838
+ }[];
67839
+ };
67840
+ pakket_voor_reistijd: {
67841
+ Args: {
67842
+ _minuten: number;
67843
+ };
67844
+ Returns: {
67845
+ package_id: string;
67846
+ priority: number;
67847
+ }[];
67848
+ };
66620
67849
  pick_active_printers: {
66621
67850
  Args: never;
66622
67851
  Returns: {
@@ -66817,6 +68046,14 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
66817
68046
  };
66818
68047
  Returns: import("../integrations/supabase/types").Json;
66819
68048
  };
68049
+ pick_print_plekken: {
68050
+ Args: never;
68051
+ Returns: {
68052
+ id: string;
68053
+ naam: string;
68054
+ omschrijving: string;
68055
+ }[];
68056
+ };
66820
68057
  pick_release_expired_locks: {
66821
68058
  Args: never;
66822
68059
  Returns: number;
@@ -66881,6 +68118,13 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
66881
68118
  isSetofReturn: false;
66882
68119
  };
66883
68120
  };
68121
+ pick_set_station_print_plek: {
68122
+ Args: {
68123
+ _print_plek_id: string;
68124
+ _station_id: string;
68125
+ };
68126
+ Returns: string;
68127
+ };
66884
68128
  pick_station_dashboard: {
66885
68129
  Args: never;
66886
68130
  Returns: {
@@ -66893,6 +68137,25 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
66893
68137
  waiting: number;
66894
68138
  }[];
66895
68139
  };
68140
+ pick_station_print_plek: {
68141
+ Args: {
68142
+ _station_id: string;
68143
+ };
68144
+ Returns: {
68145
+ naam: string;
68146
+ omschrijving: string;
68147
+ print_plek_id: string;
68148
+ }[];
68149
+ };
68150
+ pick_station_print_plekken: {
68151
+ Args: never;
68152
+ Returns: {
68153
+ naam: string;
68154
+ omschrijving: string;
68155
+ print_plek_id: string;
68156
+ station_id: string;
68157
+ }[];
68158
+ };
66896
68159
  pick_station_slugify: {
66897
68160
  Args: {
66898
68161
  _id: string;
@@ -67633,6 +68896,18 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
67633
68896
  Args: never;
67634
68897
  Returns: string;
67635
68898
  };
68899
+ werkbon_totalen: {
68900
+ Args: {
68901
+ _werkbon_id: string;
68902
+ };
68903
+ Returns: {
68904
+ materials_cents: number;
68905
+ packages_cents: number;
68906
+ packages_minutes: number;
68907
+ total_cents: number;
68908
+ total_minutes: number;
68909
+ }[];
68910
+ };
67636
68911
  wo_create_from_source: {
67637
68912
  Args: {
67638
68913
  _payload?: import("../integrations/supabase/types").Json;
@@ -67671,7 +68946,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
67671
68946
  };
67672
68947
  CompositeTypes: { [_ in never]: never; };
67673
68948
  }, {
67674
- PostgrestVersion: "14.5";
68949
+ PostgrestVersion: "14.17";
67675
68950
  }>;
67676
68951
  userId: string;
67677
68952
  claims: import("@supabase/auth-js").JwtPayload;
@@ -68361,6 +69636,99 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
68361
69636
  };
68362
69637
  Relationships: [];
68363
69638
  };
69639
+ artikelen_cache: {
69640
+ Row: {
69641
+ artikelcode: string;
69642
+ bron: string;
69643
+ bruto_prijs_cent: number | null;
69644
+ created_at: string;
69645
+ eenheid: string;
69646
+ fabrikant: string | null;
69647
+ fetched_at: string;
69648
+ gtin: string | null;
69649
+ id: string;
69650
+ naam: string;
69651
+ netto_prijs_cent: number | null;
69652
+ omschrijving: string | null;
69653
+ raw: import("../integrations/supabase/types").Json;
69654
+ updated_at: string;
69655
+ valuta: string;
69656
+ };
69657
+ Insert: {
69658
+ artikelcode: string;
69659
+ bron?: string;
69660
+ bruto_prijs_cent?: number | null;
69661
+ created_at?: string;
69662
+ eenheid?: string;
69663
+ fabrikant?: string | null;
69664
+ fetched_at?: string;
69665
+ gtin?: string | null;
69666
+ id?: string;
69667
+ naam: string;
69668
+ netto_prijs_cent?: number | null;
69669
+ omschrijving?: string | null;
69670
+ raw?: import("../integrations/supabase/types").Json;
69671
+ updated_at?: string;
69672
+ valuta?: string;
69673
+ };
69674
+ Update: {
69675
+ artikelcode?: string;
69676
+ bron?: string;
69677
+ bruto_prijs_cent?: number | null;
69678
+ created_at?: string;
69679
+ eenheid?: string;
69680
+ fabrikant?: string | null;
69681
+ fetched_at?: string;
69682
+ gtin?: string | null;
69683
+ id?: string;
69684
+ naam?: string;
69685
+ netto_prijs_cent?: number | null;
69686
+ omschrijving?: string | null;
69687
+ raw?: import("../integrations/supabase/types").Json;
69688
+ updated_at?: string;
69689
+ valuta?: string;
69690
+ };
69691
+ Relationships: [];
69692
+ };
69693
+ artikelen_veldconfig: {
69694
+ Row: {
69695
+ bron_pad: string;
69696
+ created_at: string;
69697
+ id: string;
69698
+ label: string;
69699
+ sort_order: number;
69700
+ type: string;
69701
+ updated_at: string;
69702
+ veld_key: string;
69703
+ zichtbaar_in_detail: boolean;
69704
+ zichtbaar_in_lijst: boolean;
69705
+ };
69706
+ Insert: {
69707
+ bron_pad: string;
69708
+ created_at?: string;
69709
+ id?: string;
69710
+ label: string;
69711
+ sort_order?: number;
69712
+ type?: string;
69713
+ updated_at?: string;
69714
+ veld_key: string;
69715
+ zichtbaar_in_detail?: boolean;
69716
+ zichtbaar_in_lijst?: boolean;
69717
+ };
69718
+ Update: {
69719
+ bron_pad?: string;
69720
+ created_at?: string;
69721
+ id?: string;
69722
+ label?: string;
69723
+ sort_order?: number;
69724
+ type?: string;
69725
+ updated_at?: string;
69726
+ veld_key?: string;
69727
+ zichtbaar_in_detail?: boolean;
69728
+ zichtbaar_in_lijst?: boolean;
69729
+ };
69730
+ Relationships: [];
69731
+ };
68364
69732
  booking_items: {
68365
69733
  Row: {
68366
69734
  booking_id: string;
@@ -70833,6 +72201,48 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
70833
72201
  };
70834
72202
  Relationships: [];
70835
72203
  };
72204
+ document_printplek_printers: {
72205
+ Row: {
72206
+ created_at: string;
72207
+ documenttype: string;
72208
+ id: string;
72209
+ papierformaat: string | null;
72210
+ print_plek_id: string;
72211
+ printer_id: string | null;
72212
+ updated_at: string;
72213
+ };
72214
+ Insert: {
72215
+ created_at?: string;
72216
+ documenttype: string;
72217
+ id?: string;
72218
+ papierformaat?: string | null;
72219
+ print_plek_id: string;
72220
+ printer_id?: string | null;
72221
+ updated_at?: string;
72222
+ };
72223
+ Update: {
72224
+ created_at?: string;
72225
+ documenttype?: string;
72226
+ id?: string;
72227
+ papierformaat?: string | null;
72228
+ print_plek_id?: string;
72229
+ printer_id?: string | null;
72230
+ updated_at?: string;
72231
+ };
72232
+ Relationships: [{
72233
+ foreignKeyName: "document_printplek_printers_print_plek_id_fkey";
72234
+ columns: ["print_plek_id"];
72235
+ isOneToOne: false;
72236
+ referencedRelation: "print_plekken";
72237
+ referencedColumns: ["id"];
72238
+ }, {
72239
+ foreignKeyName: "document_printplek_printers_printer_id_fkey";
72240
+ columns: ["printer_id"];
72241
+ isOneToOne: false;
72242
+ referencedRelation: "printers";
72243
+ referencedColumns: ["id"];
72244
+ }];
72245
+ };
70836
72246
  document_werkplek_printers: {
70837
72247
  Row: {
70838
72248
  created_at: string;
@@ -76812,6 +78222,10 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
76812
78222
  id: string;
76813
78223
  last_error: string | null;
76814
78224
  last_error_at: string | null;
78225
+ last_error_code: string | null;
78226
+ last_gateway_status: number | null;
78227
+ last_queued_at: string | null;
78228
+ last_response: import("../integrations/supabase/types").Json | null;
76815
78229
  last_sent_hash: string | null;
76816
78230
  locked_by: string | null;
76817
78231
  locked_until: string | null;
@@ -76832,6 +78246,10 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
76832
78246
  id?: string;
76833
78247
  last_error?: string | null;
76834
78248
  last_error_at?: string | null;
78249
+ last_error_code?: string | null;
78250
+ last_gateway_status?: number | null;
78251
+ last_queued_at?: string | null;
78252
+ last_response?: import("../integrations/supabase/types").Json | null;
76835
78253
  last_sent_hash?: string | null;
76836
78254
  locked_by?: string | null;
76837
78255
  locked_until?: string | null;
@@ -76852,6 +78270,10 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
76852
78270
  id?: string;
76853
78271
  last_error?: string | null;
76854
78272
  last_error_at?: string | null;
78273
+ last_error_code?: string | null;
78274
+ last_gateway_status?: number | null;
78275
+ last_queued_at?: string | null;
78276
+ last_response?: import("../integrations/supabase/types").Json | null;
76855
78277
  last_sent_hash?: string | null;
76856
78278
  locked_by?: string | null;
76857
78279
  locked_until?: string | null;
@@ -81021,6 +82443,99 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
81021
82443
  referencedColumns: ["id"];
81022
82444
  }];
81023
82445
  };
82446
+ print_plek_computers: {
82447
+ Row: {
82448
+ computer_naam: string;
82449
+ created_at: string;
82450
+ id: string;
82451
+ print_plek_id: string;
82452
+ updated_at: string;
82453
+ };
82454
+ Insert: {
82455
+ computer_naam: string;
82456
+ created_at?: string;
82457
+ id?: string;
82458
+ print_plek_id: string;
82459
+ updated_at?: string;
82460
+ };
82461
+ Update: {
82462
+ computer_naam?: string;
82463
+ created_at?: string;
82464
+ id?: string;
82465
+ print_plek_id?: string;
82466
+ updated_at?: string;
82467
+ };
82468
+ Relationships: [{
82469
+ foreignKeyName: "print_plek_computers_print_plek_id_fkey";
82470
+ columns: ["print_plek_id"];
82471
+ isOneToOne: false;
82472
+ referencedRelation: "print_plekken";
82473
+ referencedColumns: ["id"];
82474
+ }];
82475
+ };
82476
+ print_plek_koppelingen: {
82477
+ Row: {
82478
+ bron: string;
82479
+ bron_id: string;
82480
+ created_at: string;
82481
+ id: string;
82482
+ label: string | null;
82483
+ print_plek_id: string;
82484
+ updated_at: string;
82485
+ };
82486
+ Insert: {
82487
+ bron: string;
82488
+ bron_id: string;
82489
+ created_at?: string;
82490
+ id?: string;
82491
+ label?: string | null;
82492
+ print_plek_id: string;
82493
+ updated_at?: string;
82494
+ };
82495
+ Update: {
82496
+ bron?: string;
82497
+ bron_id?: string;
82498
+ created_at?: string;
82499
+ id?: string;
82500
+ label?: string | null;
82501
+ print_plek_id?: string;
82502
+ updated_at?: string;
82503
+ };
82504
+ Relationships: [{
82505
+ foreignKeyName: "print_plek_koppelingen_print_plek_id_fkey";
82506
+ columns: ["print_plek_id"];
82507
+ isOneToOne: false;
82508
+ referencedRelation: "print_plekken";
82509
+ referencedColumns: ["id"];
82510
+ }];
82511
+ };
82512
+ print_plekken: {
82513
+ Row: {
82514
+ actief: boolean;
82515
+ created_at: string;
82516
+ id: string;
82517
+ naam: string;
82518
+ omschrijving: string | null;
82519
+ updated_at: string;
82520
+ };
82521
+ Insert: {
82522
+ actief?: boolean;
82523
+ created_at?: string;
82524
+ id?: string;
82525
+ naam: string;
82526
+ omschrijving?: string | null;
82527
+ updated_at?: string;
82528
+ };
82529
+ Update: {
82530
+ actief?: boolean;
82531
+ created_at?: string;
82532
+ id?: string;
82533
+ naam?: string;
82534
+ omschrijving?: string | null;
82535
+ updated_at?: string;
82536
+ };
82537
+ Relationships: [];
82538
+ };
81024
82539
  print_queue_runners: {
81025
82540
  Row: {
81026
82541
  actief: boolean;
@@ -83175,6 +84690,45 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
83175
84690
  };
83176
84691
  Relationships: [];
83177
84692
  };
84693
+ stock_consumption_alerts: {
84694
+ Row: {
84695
+ alert_type: string;
84696
+ created_at: string;
84697
+ id: string;
84698
+ mutation_log_id: string | null;
84699
+ order_id: string | null;
84700
+ order_item_id: string | null;
84701
+ qty: number;
84702
+ reason: string | null;
84703
+ resolved_at: string | null;
84704
+ updated_at: string;
84705
+ };
84706
+ Insert: {
84707
+ alert_type: string;
84708
+ created_at?: string;
84709
+ id?: string;
84710
+ mutation_log_id?: string | null;
84711
+ order_id?: string | null;
84712
+ order_item_id?: string | null;
84713
+ qty?: number;
84714
+ reason?: string | null;
84715
+ resolved_at?: string | null;
84716
+ updated_at?: string;
84717
+ };
84718
+ Update: {
84719
+ alert_type?: string;
84720
+ created_at?: string;
84721
+ id?: string;
84722
+ mutation_log_id?: string | null;
84723
+ order_id?: string | null;
84724
+ order_item_id?: string | null;
84725
+ qty?: number;
84726
+ reason?: string | null;
84727
+ resolved_at?: string | null;
84728
+ updated_at?: string;
84729
+ };
84730
+ Relationships: [];
84731
+ };
83178
84732
  stock_import_runs: {
83179
84733
  Row: {
83180
84734
  connection_id: string | null;
@@ -86028,6 +87582,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
86028
87582
  werkbon_package_items: {
86029
87583
  Row: {
86030
87584
  article_number: string | null;
87585
+ artikel_id: string | null;
86031
87586
  created_at: string;
86032
87587
  gtin: string | null;
86033
87588
  id: string;
@@ -86045,6 +87600,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
86045
87600
  };
86046
87601
  Insert: {
86047
87602
  article_number?: string | null;
87603
+ artikel_id?: string | null;
86048
87604
  created_at?: string;
86049
87605
  gtin?: string | null;
86050
87606
  id?: string;
@@ -86062,6 +87618,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
86062
87618
  };
86063
87619
  Update: {
86064
87620
  article_number?: string | null;
87621
+ artikel_id?: string | null;
86065
87622
  created_at?: string;
86066
87623
  gtin?: string | null;
86067
87624
  id?: string;
@@ -86078,6 +87635,12 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
86078
87635
  updated_at?: string;
86079
87636
  };
86080
87637
  Relationships: [{
87638
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
87639
+ columns: ["artikel_id"];
87640
+ isOneToOne: false;
87641
+ referencedRelation: "artikelen_cache";
87642
+ referencedColumns: ["id"];
87643
+ }, {
86081
87644
  foreignKeyName: "werkbon_package_items_package_id_fkey";
86082
87645
  columns: ["package_id"];
86083
87646
  isOneToOne: false;
@@ -86279,6 +87842,9 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
86279
87842
  scheduled_end_time: string | null;
86280
87843
  scheduled_start_time: string | null;
86281
87844
  sequence_number: number;
87845
+ signature_accepted_at: string | null;
87846
+ signature_by_user_id: string | null;
87847
+ signature_name: string | null;
86282
87848
  source_email_meta: import("../integrations/supabase/types").Json | null;
86283
87849
  source_mailbox_message_id: string | null;
86284
87850
  source_pdf_path: string | null;
@@ -86314,6 +87880,9 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
86314
87880
  scheduled_end_time?: string | null;
86315
87881
  scheduled_start_time?: string | null;
86316
87882
  sequence_number: number;
87883
+ signature_accepted_at?: string | null;
87884
+ signature_by_user_id?: string | null;
87885
+ signature_name?: string | null;
86317
87886
  source_email_meta?: import("../integrations/supabase/types").Json | null;
86318
87887
  source_mailbox_message_id?: string | null;
86319
87888
  source_pdf_path?: string | null;
@@ -86349,6 +87918,9 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
86349
87918
  scheduled_end_time?: string | null;
86350
87919
  scheduled_start_time?: string | null;
86351
87920
  sequence_number?: number;
87921
+ signature_accepted_at?: string | null;
87922
+ signature_by_user_id?: string | null;
87923
+ signature_name?: string | null;
86352
87924
  source_email_meta?: import("../integrations/supabase/types").Json | null;
86353
87925
  source_mailbox_message_id?: string | null;
86354
87926
  source_pdf_path?: string | null;
@@ -87291,6 +88863,20 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
87291
88863
  referencedColumns: ["id"];
87292
88864
  }];
87293
88865
  };
88866
+ v_werkbon_totalen: {
88867
+ Row: {
88868
+ packages_cents: number | null;
88869
+ packages_minutes: number | null;
88870
+ werkbon_id: string | null;
88871
+ };
88872
+ Relationships: [{
88873
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
88874
+ columns: ["werkbon_id"];
88875
+ isOneToOne: false;
88876
+ referencedRelation: "werkbonnen";
88877
+ referencedColumns: ["id"];
88878
+ }];
88879
+ };
87294
88880
  };
87295
88881
  Functions: {
87296
88882
  _floriday_schedule_job: {
@@ -88743,6 +90329,41 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
88743
90329
  };
88744
90330
  Returns: string;
88745
90331
  };
90332
+ logistics_floriday_finish_push_v2: {
90333
+ Args: {
90334
+ _error?: string;
90335
+ _error_code?: string;
90336
+ _fulfillment_order_id?: string;
90337
+ _gateway_status?: number;
90338
+ _id: string;
90339
+ _max_age_hours?: number;
90340
+ _max_attempts?: number;
90341
+ _ok: boolean;
90342
+ _permanent?: boolean;
90343
+ _response?: import("../integrations/supabase/types").Json;
90344
+ _revision: number;
90345
+ _sent_hash?: string;
90346
+ };
90347
+ Returns: string;
90348
+ };
90349
+ logistics_floriday_finish_push_v3: {
90350
+ Args: {
90351
+ _error?: string;
90352
+ _error_code?: string;
90353
+ _fulfillment_order_id?: string;
90354
+ _gateway_status?: number;
90355
+ _id: string;
90356
+ _max_age_hours?: number;
90357
+ _max_attempts?: number;
90358
+ _outcome: string;
90359
+ _permanent?: boolean;
90360
+ _response?: import("../integrations/supabase/types").Json;
90361
+ _revision: number;
90362
+ _sent_hash?: string;
90363
+ _wait_max_age_hours?: number;
90364
+ };
90365
+ Returns: string;
90366
+ };
88746
90367
  logistics_floriday_prune_pushes: {
88747
90368
  Args: {
88748
90369
  _days?: number;
@@ -88803,6 +90424,14 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
88803
90424
  };
88804
90425
  Returns: import("../integrations/supabase/types").Json;
88805
90426
  };
90427
+ logistics_plan_block: {
90428
+ Args: {
90429
+ p_details?: import("../integrations/supabase/types").Json;
90430
+ p_order_ids: string[];
90431
+ p_reason: string;
90432
+ };
90433
+ Returns: number;
90434
+ };
88806
90435
  logistics_plan_buffer_sql: {
88807
90436
  Args: {
88808
90437
  p_buffer_id: string;
@@ -89171,6 +90800,12 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
89171
90800
  verwijderd: number;
89172
90801
  }[];
89173
90802
  };
90803
+ order_departure_proof: {
90804
+ Args: {
90805
+ p_order_id: string;
90806
+ };
90807
+ Returns: import("../integrations/supabase/types").Json;
90808
+ };
89174
90809
  order_number_prefix: {
89175
90810
  Args: {
89176
90811
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -89178,6 +90813,25 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
89178
90813
  };
89179
90814
  Returns: string;
89180
90815
  };
90816
+ pakket_suggesties_voor_tekst: {
90817
+ Args: {
90818
+ _tekst: string;
90819
+ };
90820
+ Returns: {
90821
+ hit_type: string;
90822
+ package_id: string;
90823
+ priority: number;
90824
+ }[];
90825
+ };
90826
+ pakket_voor_reistijd: {
90827
+ Args: {
90828
+ _minuten: number;
90829
+ };
90830
+ Returns: {
90831
+ package_id: string;
90832
+ priority: number;
90833
+ }[];
90834
+ };
89181
90835
  pick_active_printers: {
89182
90836
  Args: never;
89183
90837
  Returns: {
@@ -89378,6 +91032,14 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
89378
91032
  };
89379
91033
  Returns: import("../integrations/supabase/types").Json;
89380
91034
  };
91035
+ pick_print_plekken: {
91036
+ Args: never;
91037
+ Returns: {
91038
+ id: string;
91039
+ naam: string;
91040
+ omschrijving: string;
91041
+ }[];
91042
+ };
89381
91043
  pick_release_expired_locks: {
89382
91044
  Args: never;
89383
91045
  Returns: number;
@@ -89442,6 +91104,13 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
89442
91104
  isSetofReturn: false;
89443
91105
  };
89444
91106
  };
91107
+ pick_set_station_print_plek: {
91108
+ Args: {
91109
+ _print_plek_id: string;
91110
+ _station_id: string;
91111
+ };
91112
+ Returns: string;
91113
+ };
89445
91114
  pick_station_dashboard: {
89446
91115
  Args: never;
89447
91116
  Returns: {
@@ -89454,6 +91123,25 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
89454
91123
  waiting: number;
89455
91124
  }[];
89456
91125
  };
91126
+ pick_station_print_plek: {
91127
+ Args: {
91128
+ _station_id: string;
91129
+ };
91130
+ Returns: {
91131
+ naam: string;
91132
+ omschrijving: string;
91133
+ print_plek_id: string;
91134
+ }[];
91135
+ };
91136
+ pick_station_print_plekken: {
91137
+ Args: never;
91138
+ Returns: {
91139
+ naam: string;
91140
+ omschrijving: string;
91141
+ print_plek_id: string;
91142
+ station_id: string;
91143
+ }[];
91144
+ };
89457
91145
  pick_station_slugify: {
89458
91146
  Args: {
89459
91147
  _id: string;
@@ -90194,6 +91882,18 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
90194
91882
  Args: never;
90195
91883
  Returns: string;
90196
91884
  };
91885
+ werkbon_totalen: {
91886
+ Args: {
91887
+ _werkbon_id: string;
91888
+ };
91889
+ Returns: {
91890
+ materials_cents: number;
91891
+ packages_cents: number;
91892
+ packages_minutes: number;
91893
+ total_cents: number;
91894
+ total_minutes: number;
91895
+ }[];
91896
+ };
90197
91897
  wo_create_from_source: {
90198
91898
  Args: {
90199
91899
  _payload?: import("../integrations/supabase/types").Json;
@@ -90232,7 +91932,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
90232
91932
  };
90233
91933
  CompositeTypes: { [_ in never]: never; };
90234
91934
  }, {
90235
- PostgrestVersion: "14.5";
91935
+ PostgrestVersion: "14.17";
90236
91936
  }>;
90237
91937
  userId: string;
90238
91938
  claims: import("@supabase/auth-js").JwtPayload;
@@ -90922,6 +92622,99 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
90922
92622
  };
90923
92623
  Relationships: [];
90924
92624
  };
92625
+ artikelen_cache: {
92626
+ Row: {
92627
+ artikelcode: string;
92628
+ bron: string;
92629
+ bruto_prijs_cent: number | null;
92630
+ created_at: string;
92631
+ eenheid: string;
92632
+ fabrikant: string | null;
92633
+ fetched_at: string;
92634
+ gtin: string | null;
92635
+ id: string;
92636
+ naam: string;
92637
+ netto_prijs_cent: number | null;
92638
+ omschrijving: string | null;
92639
+ raw: import("../integrations/supabase/types").Json;
92640
+ updated_at: string;
92641
+ valuta: string;
92642
+ };
92643
+ Insert: {
92644
+ artikelcode: string;
92645
+ bron?: string;
92646
+ bruto_prijs_cent?: number | null;
92647
+ created_at?: string;
92648
+ eenheid?: string;
92649
+ fabrikant?: string | null;
92650
+ fetched_at?: string;
92651
+ gtin?: string | null;
92652
+ id?: string;
92653
+ naam: string;
92654
+ netto_prijs_cent?: number | null;
92655
+ omschrijving?: string | null;
92656
+ raw?: import("../integrations/supabase/types").Json;
92657
+ updated_at?: string;
92658
+ valuta?: string;
92659
+ };
92660
+ Update: {
92661
+ artikelcode?: string;
92662
+ bron?: string;
92663
+ bruto_prijs_cent?: number | null;
92664
+ created_at?: string;
92665
+ eenheid?: string;
92666
+ fabrikant?: string | null;
92667
+ fetched_at?: string;
92668
+ gtin?: string | null;
92669
+ id?: string;
92670
+ naam?: string;
92671
+ netto_prijs_cent?: number | null;
92672
+ omschrijving?: string | null;
92673
+ raw?: import("../integrations/supabase/types").Json;
92674
+ updated_at?: string;
92675
+ valuta?: string;
92676
+ };
92677
+ Relationships: [];
92678
+ };
92679
+ artikelen_veldconfig: {
92680
+ Row: {
92681
+ bron_pad: string;
92682
+ created_at: string;
92683
+ id: string;
92684
+ label: string;
92685
+ sort_order: number;
92686
+ type: string;
92687
+ updated_at: string;
92688
+ veld_key: string;
92689
+ zichtbaar_in_detail: boolean;
92690
+ zichtbaar_in_lijst: boolean;
92691
+ };
92692
+ Insert: {
92693
+ bron_pad: string;
92694
+ created_at?: string;
92695
+ id?: string;
92696
+ label: string;
92697
+ sort_order?: number;
92698
+ type?: string;
92699
+ updated_at?: string;
92700
+ veld_key: string;
92701
+ zichtbaar_in_detail?: boolean;
92702
+ zichtbaar_in_lijst?: boolean;
92703
+ };
92704
+ Update: {
92705
+ bron_pad?: string;
92706
+ created_at?: string;
92707
+ id?: string;
92708
+ label?: string;
92709
+ sort_order?: number;
92710
+ type?: string;
92711
+ updated_at?: string;
92712
+ veld_key?: string;
92713
+ zichtbaar_in_detail?: boolean;
92714
+ zichtbaar_in_lijst?: boolean;
92715
+ };
92716
+ Relationships: [];
92717
+ };
90925
92718
  booking_items: {
90926
92719
  Row: {
90927
92720
  booking_id: string;
@@ -93394,6 +95187,48 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
93394
95187
  };
93395
95188
  Relationships: [];
93396
95189
  };
95190
+ document_printplek_printers: {
95191
+ Row: {
95192
+ created_at: string;
95193
+ documenttype: string;
95194
+ id: string;
95195
+ papierformaat: string | null;
95196
+ print_plek_id: string;
95197
+ printer_id: string | null;
95198
+ updated_at: string;
95199
+ };
95200
+ Insert: {
95201
+ created_at?: string;
95202
+ documenttype: string;
95203
+ id?: string;
95204
+ papierformaat?: string | null;
95205
+ print_plek_id: string;
95206
+ printer_id?: string | null;
95207
+ updated_at?: string;
95208
+ };
95209
+ Update: {
95210
+ created_at?: string;
95211
+ documenttype?: string;
95212
+ id?: string;
95213
+ papierformaat?: string | null;
95214
+ print_plek_id?: string;
95215
+ printer_id?: string | null;
95216
+ updated_at?: string;
95217
+ };
95218
+ Relationships: [{
95219
+ foreignKeyName: "document_printplek_printers_print_plek_id_fkey";
95220
+ columns: ["print_plek_id"];
95221
+ isOneToOne: false;
95222
+ referencedRelation: "print_plekken";
95223
+ referencedColumns: ["id"];
95224
+ }, {
95225
+ foreignKeyName: "document_printplek_printers_printer_id_fkey";
95226
+ columns: ["printer_id"];
95227
+ isOneToOne: false;
95228
+ referencedRelation: "printers";
95229
+ referencedColumns: ["id"];
95230
+ }];
95231
+ };
93397
95232
  document_werkplek_printers: {
93398
95233
  Row: {
93399
95234
  created_at: string;
@@ -99373,6 +101208,10 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
99373
101208
  id: string;
99374
101209
  last_error: string | null;
99375
101210
  last_error_at: string | null;
101211
+ last_error_code: string | null;
101212
+ last_gateway_status: number | null;
101213
+ last_queued_at: string | null;
101214
+ last_response: import("../integrations/supabase/types").Json | null;
99376
101215
  last_sent_hash: string | null;
99377
101216
  locked_by: string | null;
99378
101217
  locked_until: string | null;
@@ -99393,6 +101232,10 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
99393
101232
  id?: string;
99394
101233
  last_error?: string | null;
99395
101234
  last_error_at?: string | null;
101235
+ last_error_code?: string | null;
101236
+ last_gateway_status?: number | null;
101237
+ last_queued_at?: string | null;
101238
+ last_response?: import("../integrations/supabase/types").Json | null;
99396
101239
  last_sent_hash?: string | null;
99397
101240
  locked_by?: string | null;
99398
101241
  locked_until?: string | null;
@@ -99413,6 +101256,10 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
99413
101256
  id?: string;
99414
101257
  last_error?: string | null;
99415
101258
  last_error_at?: string | null;
101259
+ last_error_code?: string | null;
101260
+ last_gateway_status?: number | null;
101261
+ last_queued_at?: string | null;
101262
+ last_response?: import("../integrations/supabase/types").Json | null;
99416
101263
  last_sent_hash?: string | null;
99417
101264
  locked_by?: string | null;
99418
101265
  locked_until?: string | null;
@@ -103582,6 +105429,99 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
103582
105429
  referencedColumns: ["id"];
103583
105430
  }];
103584
105431
  };
105432
+ print_plek_computers: {
105433
+ Row: {
105434
+ computer_naam: string;
105435
+ created_at: string;
105436
+ id: string;
105437
+ print_plek_id: string;
105438
+ updated_at: string;
105439
+ };
105440
+ Insert: {
105441
+ computer_naam: string;
105442
+ created_at?: string;
105443
+ id?: string;
105444
+ print_plek_id: string;
105445
+ updated_at?: string;
105446
+ };
105447
+ Update: {
105448
+ computer_naam?: string;
105449
+ created_at?: string;
105450
+ id?: string;
105451
+ print_plek_id?: string;
105452
+ updated_at?: string;
105453
+ };
105454
+ Relationships: [{
105455
+ foreignKeyName: "print_plek_computers_print_plek_id_fkey";
105456
+ columns: ["print_plek_id"];
105457
+ isOneToOne: false;
105458
+ referencedRelation: "print_plekken";
105459
+ referencedColumns: ["id"];
105460
+ }];
105461
+ };
105462
+ print_plek_koppelingen: {
105463
+ Row: {
105464
+ bron: string;
105465
+ bron_id: string;
105466
+ created_at: string;
105467
+ id: string;
105468
+ label: string | null;
105469
+ print_plek_id: string;
105470
+ updated_at: string;
105471
+ };
105472
+ Insert: {
105473
+ bron: string;
105474
+ bron_id: string;
105475
+ created_at?: string;
105476
+ id?: string;
105477
+ label?: string | null;
105478
+ print_plek_id: string;
105479
+ updated_at?: string;
105480
+ };
105481
+ Update: {
105482
+ bron?: string;
105483
+ bron_id?: string;
105484
+ created_at?: string;
105485
+ id?: string;
105486
+ label?: string | null;
105487
+ print_plek_id?: string;
105488
+ updated_at?: string;
105489
+ };
105490
+ Relationships: [{
105491
+ foreignKeyName: "print_plek_koppelingen_print_plek_id_fkey";
105492
+ columns: ["print_plek_id"];
105493
+ isOneToOne: false;
105494
+ referencedRelation: "print_plekken";
105495
+ referencedColumns: ["id"];
105496
+ }];
105497
+ };
105498
+ print_plekken: {
105499
+ Row: {
105500
+ actief: boolean;
105501
+ created_at: string;
105502
+ id: string;
105503
+ naam: string;
105504
+ omschrijving: string | null;
105505
+ updated_at: string;
105506
+ };
105507
+ Insert: {
105508
+ actief?: boolean;
105509
+ created_at?: string;
105510
+ id?: string;
105511
+ naam: string;
105512
+ omschrijving?: string | null;
105513
+ updated_at?: string;
105514
+ };
105515
+ Update: {
105516
+ actief?: boolean;
105517
+ created_at?: string;
105518
+ id?: string;
105519
+ naam?: string;
105520
+ omschrijving?: string | null;
105521
+ updated_at?: string;
105522
+ };
105523
+ Relationships: [];
105524
+ };
103585
105525
  print_queue_runners: {
103586
105526
  Row: {
103587
105527
  actief: boolean;
@@ -105736,6 +107676,45 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
105736
107676
  };
105737
107677
  Relationships: [];
105738
107678
  };
107679
+ stock_consumption_alerts: {
107680
+ Row: {
107681
+ alert_type: string;
107682
+ created_at: string;
107683
+ id: string;
107684
+ mutation_log_id: string | null;
107685
+ order_id: string | null;
107686
+ order_item_id: string | null;
107687
+ qty: number;
107688
+ reason: string | null;
107689
+ resolved_at: string | null;
107690
+ updated_at: string;
107691
+ };
107692
+ Insert: {
107693
+ alert_type: string;
107694
+ created_at?: string;
107695
+ id?: string;
107696
+ mutation_log_id?: string | null;
107697
+ order_id?: string | null;
107698
+ order_item_id?: string | null;
107699
+ qty?: number;
107700
+ reason?: string | null;
107701
+ resolved_at?: string | null;
107702
+ updated_at?: string;
107703
+ };
107704
+ Update: {
107705
+ alert_type?: string;
107706
+ created_at?: string;
107707
+ id?: string;
107708
+ mutation_log_id?: string | null;
107709
+ order_id?: string | null;
107710
+ order_item_id?: string | null;
107711
+ qty?: number;
107712
+ reason?: string | null;
107713
+ resolved_at?: string | null;
107714
+ updated_at?: string;
107715
+ };
107716
+ Relationships: [];
107717
+ };
105739
107718
  stock_import_runs: {
105740
107719
  Row: {
105741
107720
  connection_id: string | null;
@@ -108589,6 +110568,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
108589
110568
  werkbon_package_items: {
108590
110569
  Row: {
108591
110570
  article_number: string | null;
110571
+ artikel_id: string | null;
108592
110572
  created_at: string;
108593
110573
  gtin: string | null;
108594
110574
  id: string;
@@ -108606,6 +110586,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
108606
110586
  };
108607
110587
  Insert: {
108608
110588
  article_number?: string | null;
110589
+ artikel_id?: string | null;
108609
110590
  created_at?: string;
108610
110591
  gtin?: string | null;
108611
110592
  id?: string;
@@ -108623,6 +110604,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
108623
110604
  };
108624
110605
  Update: {
108625
110606
  article_number?: string | null;
110607
+ artikel_id?: string | null;
108626
110608
  created_at?: string;
108627
110609
  gtin?: string | null;
108628
110610
  id?: string;
@@ -108639,6 +110621,12 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
108639
110621
  updated_at?: string;
108640
110622
  };
108641
110623
  Relationships: [{
110624
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
110625
+ columns: ["artikel_id"];
110626
+ isOneToOne: false;
110627
+ referencedRelation: "artikelen_cache";
110628
+ referencedColumns: ["id"];
110629
+ }, {
108642
110630
  foreignKeyName: "werkbon_package_items_package_id_fkey";
108643
110631
  columns: ["package_id"];
108644
110632
  isOneToOne: false;
@@ -108840,6 +110828,9 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
108840
110828
  scheduled_end_time: string | null;
108841
110829
  scheduled_start_time: string | null;
108842
110830
  sequence_number: number;
110831
+ signature_accepted_at: string | null;
110832
+ signature_by_user_id: string | null;
110833
+ signature_name: string | null;
108843
110834
  source_email_meta: import("../integrations/supabase/types").Json | null;
108844
110835
  source_mailbox_message_id: string | null;
108845
110836
  source_pdf_path: string | null;
@@ -108875,6 +110866,9 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
108875
110866
  scheduled_end_time?: string | null;
108876
110867
  scheduled_start_time?: string | null;
108877
110868
  sequence_number: number;
110869
+ signature_accepted_at?: string | null;
110870
+ signature_by_user_id?: string | null;
110871
+ signature_name?: string | null;
108878
110872
  source_email_meta?: import("../integrations/supabase/types").Json | null;
108879
110873
  source_mailbox_message_id?: string | null;
108880
110874
  source_pdf_path?: string | null;
@@ -108910,6 +110904,9 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
108910
110904
  scheduled_end_time?: string | null;
108911
110905
  scheduled_start_time?: string | null;
108912
110906
  sequence_number?: number;
110907
+ signature_accepted_at?: string | null;
110908
+ signature_by_user_id?: string | null;
110909
+ signature_name?: string | null;
108913
110910
  source_email_meta?: import("../integrations/supabase/types").Json | null;
108914
110911
  source_mailbox_message_id?: string | null;
108915
110912
  source_pdf_path?: string | null;
@@ -109852,6 +111849,20 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
109852
111849
  referencedColumns: ["id"];
109853
111850
  }];
109854
111851
  };
111852
+ v_werkbon_totalen: {
111853
+ Row: {
111854
+ packages_cents: number | null;
111855
+ packages_minutes: number | null;
111856
+ werkbon_id: string | null;
111857
+ };
111858
+ Relationships: [{
111859
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
111860
+ columns: ["werkbon_id"];
111861
+ isOneToOne: false;
111862
+ referencedRelation: "werkbonnen";
111863
+ referencedColumns: ["id"];
111864
+ }];
111865
+ };
109855
111866
  };
109856
111867
  Functions: {
109857
111868
  _floriday_schedule_job: {
@@ -111304,6 +113315,41 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
111304
113315
  };
111305
113316
  Returns: string;
111306
113317
  };
113318
+ logistics_floriday_finish_push_v2: {
113319
+ Args: {
113320
+ _error?: string;
113321
+ _error_code?: string;
113322
+ _fulfillment_order_id?: string;
113323
+ _gateway_status?: number;
113324
+ _id: string;
113325
+ _max_age_hours?: number;
113326
+ _max_attempts?: number;
113327
+ _ok: boolean;
113328
+ _permanent?: boolean;
113329
+ _response?: import("../integrations/supabase/types").Json;
113330
+ _revision: number;
113331
+ _sent_hash?: string;
113332
+ };
113333
+ Returns: string;
113334
+ };
113335
+ logistics_floriday_finish_push_v3: {
113336
+ Args: {
113337
+ _error?: string;
113338
+ _error_code?: string;
113339
+ _fulfillment_order_id?: string;
113340
+ _gateway_status?: number;
113341
+ _id: string;
113342
+ _max_age_hours?: number;
113343
+ _max_attempts?: number;
113344
+ _outcome: string;
113345
+ _permanent?: boolean;
113346
+ _response?: import("../integrations/supabase/types").Json;
113347
+ _revision: number;
113348
+ _sent_hash?: string;
113349
+ _wait_max_age_hours?: number;
113350
+ };
113351
+ Returns: string;
113352
+ };
111307
113353
  logistics_floriday_prune_pushes: {
111308
113354
  Args: {
111309
113355
  _days?: number;
@@ -111364,6 +113410,14 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
111364
113410
  };
111365
113411
  Returns: import("../integrations/supabase/types").Json;
111366
113412
  };
113413
+ logistics_plan_block: {
113414
+ Args: {
113415
+ p_details?: import("../integrations/supabase/types").Json;
113416
+ p_order_ids: string[];
113417
+ p_reason: string;
113418
+ };
113419
+ Returns: number;
113420
+ };
111367
113421
  logistics_plan_buffer_sql: {
111368
113422
  Args: {
111369
113423
  p_buffer_id: string;
@@ -111732,6 +113786,12 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
111732
113786
  verwijderd: number;
111733
113787
  }[];
111734
113788
  };
113789
+ order_departure_proof: {
113790
+ Args: {
113791
+ p_order_id: string;
113792
+ };
113793
+ Returns: import("../integrations/supabase/types").Json;
113794
+ };
111735
113795
  order_number_prefix: {
111736
113796
  Args: {
111737
113797
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -111739,6 +113799,25 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
111739
113799
  };
111740
113800
  Returns: string;
111741
113801
  };
113802
+ pakket_suggesties_voor_tekst: {
113803
+ Args: {
113804
+ _tekst: string;
113805
+ };
113806
+ Returns: {
113807
+ hit_type: string;
113808
+ package_id: string;
113809
+ priority: number;
113810
+ }[];
113811
+ };
113812
+ pakket_voor_reistijd: {
113813
+ Args: {
113814
+ _minuten: number;
113815
+ };
113816
+ Returns: {
113817
+ package_id: string;
113818
+ priority: number;
113819
+ }[];
113820
+ };
111742
113821
  pick_active_printers: {
111743
113822
  Args: never;
111744
113823
  Returns: {
@@ -111939,6 +114018,14 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
111939
114018
  };
111940
114019
  Returns: import("../integrations/supabase/types").Json;
111941
114020
  };
114021
+ pick_print_plekken: {
114022
+ Args: never;
114023
+ Returns: {
114024
+ id: string;
114025
+ naam: string;
114026
+ omschrijving: string;
114027
+ }[];
114028
+ };
111942
114029
  pick_release_expired_locks: {
111943
114030
  Args: never;
111944
114031
  Returns: number;
@@ -112003,6 +114090,13 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
112003
114090
  isSetofReturn: false;
112004
114091
  };
112005
114092
  };
114093
+ pick_set_station_print_plek: {
114094
+ Args: {
114095
+ _print_plek_id: string;
114096
+ _station_id: string;
114097
+ };
114098
+ Returns: string;
114099
+ };
112006
114100
  pick_station_dashboard: {
112007
114101
  Args: never;
112008
114102
  Returns: {
@@ -112015,6 +114109,25 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
112015
114109
  waiting: number;
112016
114110
  }[];
112017
114111
  };
114112
+ pick_station_print_plek: {
114113
+ Args: {
114114
+ _station_id: string;
114115
+ };
114116
+ Returns: {
114117
+ naam: string;
114118
+ omschrijving: string;
114119
+ print_plek_id: string;
114120
+ }[];
114121
+ };
114122
+ pick_station_print_plekken: {
114123
+ Args: never;
114124
+ Returns: {
114125
+ naam: string;
114126
+ omschrijving: string;
114127
+ print_plek_id: string;
114128
+ station_id: string;
114129
+ }[];
114130
+ };
112018
114131
  pick_station_slugify: {
112019
114132
  Args: {
112020
114133
  _id: string;
@@ -112755,6 +114868,18 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
112755
114868
  Args: never;
112756
114869
  Returns: string;
112757
114870
  };
114871
+ werkbon_totalen: {
114872
+ Args: {
114873
+ _werkbon_id: string;
114874
+ };
114875
+ Returns: {
114876
+ materials_cents: number;
114877
+ packages_cents: number;
114878
+ packages_minutes: number;
114879
+ total_cents: number;
114880
+ total_minutes: number;
114881
+ }[];
114882
+ };
112758
114883
  wo_create_from_source: {
112759
114884
  Args: {
112760
114885
  _payload?: import("../integrations/supabase/types").Json;
@@ -112793,7 +114918,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
112793
114918
  };
112794
114919
  CompositeTypes: { [_ in never]: never; };
112795
114920
  }, {
112796
- PostgrestVersion: "14.5";
114921
+ PostgrestVersion: "14.17";
112797
114922
  }>;
112798
114923
  userId: string;
112799
114924
  claims: import("@supabase/auth-js").JwtPayload;