@flowselections/floriday-afhandeling-module 1.0.10 → 1.0.12

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 (69) hide show
  1. package/dist-lib/components/afhandeling/ControleLijstPrint.d.ts +7 -0
  2. package/dist-lib/components/afhandeling/ControleLijstPrint.d.ts.map +1 -0
  3. package/dist-lib/components/afhandeling/ControleLijstPrint.js +67 -0
  4. package/dist-lib/components/afhandeling/ControlePage.d.ts +4 -0
  5. package/dist-lib/components/afhandeling/ControlePage.d.ts.map +1 -0
  6. package/dist-lib/components/afhandeling/ControlePage.js +460 -0
  7. package/dist-lib/components/afhandeling/DagDetailDialog.d.ts.map +1 -1
  8. package/dist-lib/components/afhandeling/DagDetailDialog.js +9 -5
  9. package/dist-lib/components/afhandeling/VervoerderForm.d.ts.map +1 -1
  10. package/dist-lib/components/afhandeling/VervoerderForm.js +10 -1
  11. package/dist-lib/components/afhandeling/VervoerdersPage.d.ts.map +1 -1
  12. package/dist-lib/components/afhandeling/VervoerdersPage.js +3 -2
  13. package/dist-lib/components/afhandeling/WeekAgendaView.d.ts.map +1 -1
  14. package/dist-lib/components/afhandeling/WeekAgendaView.js +15 -5
  15. package/dist-lib/components/afhandeling/WeekdayPicker.d.ts +12 -0
  16. package/dist-lib/components/afhandeling/WeekdayPicker.d.ts.map +1 -0
  17. package/dist-lib/components/afhandeling/WeekdayPicker.js +30 -0
  18. package/dist-lib/components/pickstation/PakbonTemplate.d.ts +1 -0
  19. package/dist-lib/components/pickstation/PakbonTemplate.d.ts.map +1 -1
  20. package/dist-lib/components/pickstation/PakbonTemplate.js +31 -8
  21. package/dist-lib/components/settings/AfhandelingSettingsCard.d.ts.map +1 -1
  22. package/dist-lib/components/settings/AfhandelingSettingsCard.js +9 -2
  23. package/dist-lib/components/ui/responsive-dialog.d.ts +20 -0
  24. package/dist-lib/components/ui/responsive-dialog.d.ts.map +1 -0
  25. package/dist-lib/components/ui/responsive-dialog.js +44 -0
  26. package/dist-lib/hooks/useOrderPlanning.d.ts.map +1 -1
  27. package/dist-lib/hooks/useOrderPlanning.js +17 -6
  28. package/dist-lib/index.d.ts +1 -0
  29. package/dist-lib/index.d.ts.map +1 -1
  30. package/dist-lib/index.js +4 -2
  31. package/dist-lib/integrations/supabase/auth-middleware.d.ts +755 -3
  32. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  33. package/dist-lib/integrations/supabase/client.d.ts +755 -3
  34. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  35. package/dist-lib/integrations/supabase/client.server.d.ts +755 -3
  36. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  37. package/dist-lib/integrations/supabase/types.d.ts +765 -3
  38. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  39. package/dist-lib/lib/afhandelingSettings.functions.d.ts +1565 -57
  40. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  41. package/dist-lib/lib/afhandelingSettings.functions.js +16 -1
  42. package/dist-lib/lib/carrierMatch.server.d.ts +27 -0
  43. package/dist-lib/lib/carrierMatch.server.d.ts.map +1 -0
  44. package/dist-lib/lib/carrierMatch.server.js +75 -0
  45. package/dist-lib/lib/carriers.functions.d.ts +3781 -15
  46. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  47. package/dist-lib/lib/carriers.functions.js +17 -2
  48. package/dist-lib/lib/cartAssignments.functions.d.ts +3775 -15
  49. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  50. package/dist-lib/lib/cartControl.functions.d.ts +100519 -0
  51. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -0
  52. package/dist-lib/lib/cartControl.functions.js +489 -0
  53. package/dist-lib/lib/cartRescheduling.d.ts +30 -0
  54. package/dist-lib/lib/cartRescheduling.d.ts.map +1 -0
  55. package/dist-lib/lib/cartRescheduling.js +71 -0
  56. package/dist-lib/lib/floriday.functions.d.ts +755 -3
  57. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  58. package/dist-lib/lib/pickstationI18n.d.ts +8 -0
  59. package/dist-lib/lib/pickstationI18n.d.ts.map +1 -1
  60. package/dist-lib/lib/pickstationI18n.js +48 -0
  61. package/dist-lib/lib/pickstationOrders.server.d.ts +1 -0
  62. package/dist-lib/lib/pickstationOrders.server.d.ts.map +1 -1
  63. package/dist-lib/lib/pickstationOrders.server.js +94 -7
  64. package/dist-lib/lib/pickstationTypes.d.ts +12 -0
  65. package/dist-lib/lib/pickstationTypes.d.ts.map +1 -1
  66. package/dist-lib/lib/planning.d.ts +23 -0
  67. package/dist-lib/lib/planning.d.ts.map +1 -1
  68. package/dist-lib/lib/planning.js +66 -6
  69. package/package.json +6 -1
@@ -7,6 +7,8 @@ export interface AfhandelingSettings {
7
7
  signupMailEnabled: boolean;
8
8
  signupMailLeadMinutes: number;
9
9
  signupMailPurpose: string;
10
+ /** ISO-dagnummers (1=ma … 7=zo) waarop gepickt mag worden. */
11
+ pickWeekdays: number[];
10
12
  }
11
13
  export declare const getAfhandelingSettings: import("@tanstack/start-client-core").OptionalFetcher<readonly [import("@tanstack/start-client-core").FunctionMiddlewareAfterServer<{}, unknown, undefined, {
12
14
  supabase: SupabaseClient<import("../integrations/supabase/types").Database, "public", "public", {
@@ -18,6 +20,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
18
20
  max_workdays_earlier_pick: number;
19
21
  pick_days_before_transport: number;
20
22
  pick_distribution_enabled: boolean;
23
+ pick_weekdays: number[];
21
24
  signup_mail_enabled: boolean;
22
25
  signup_mail_lead_minutes: number;
23
26
  signup_mail_purpose: string;
@@ -31,6 +34,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
31
34
  max_workdays_earlier_pick?: number;
32
35
  pick_days_before_transport?: number;
33
36
  pick_distribution_enabled?: boolean;
37
+ pick_weekdays?: number[];
34
38
  signup_mail_enabled?: boolean;
35
39
  signup_mail_lead_minutes?: number;
36
40
  signup_mail_purpose?: string;
@@ -44,6 +48,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
44
48
  max_workdays_earlier_pick?: number;
45
49
  pick_days_before_transport?: number;
46
50
  pick_distribution_enabled?: boolean;
51
+ pick_weekdays?: number[];
47
52
  signup_mail_enabled?: boolean;
48
53
  signup_mail_lead_minutes?: number;
49
54
  signup_mail_purpose?: string;
@@ -455,6 +460,48 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
455
460
  referencedColumns: ["id"];
456
461
  }];
457
462
  };
463
+ carrier_signup_dispatch_runs: {
464
+ Row: {
465
+ detail: import("../integrations/supabase/types").Json | null;
466
+ error: string | null;
467
+ finished_at: string | null;
468
+ groups: number;
469
+ id: string;
470
+ ok: boolean;
471
+ reason: string | null;
472
+ sent: number;
473
+ skipped: import("../integrations/supabase/types").Json;
474
+ started_at: string;
475
+ unassigned: import("../integrations/supabase/types").Json;
476
+ };
477
+ Insert: {
478
+ detail?: import("../integrations/supabase/types").Json | null;
479
+ error?: string | null;
480
+ finished_at?: string | null;
481
+ groups?: number;
482
+ id?: string;
483
+ ok?: boolean;
484
+ reason?: string | null;
485
+ sent?: number;
486
+ skipped?: import("../integrations/supabase/types").Json;
487
+ started_at?: string;
488
+ unassigned?: import("../integrations/supabase/types").Json;
489
+ };
490
+ Update: {
491
+ detail?: import("../integrations/supabase/types").Json | null;
492
+ error?: string | null;
493
+ finished_at?: string | null;
494
+ groups?: number;
495
+ id?: string;
496
+ ok?: boolean;
497
+ reason?: string | null;
498
+ sent?: number;
499
+ skipped?: import("../integrations/supabase/types").Json;
500
+ started_at?: string;
501
+ unassigned?: import("../integrations/supabase/types").Json;
502
+ };
503
+ Relationships: [];
504
+ };
458
505
  carrier_signup_dispatches: {
459
506
  Row: {
460
507
  carrier_id: string;
@@ -506,6 +553,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
506
553
  contact_person: string | null;
507
554
  created_at: string;
508
555
  delivery_days: number | null;
556
+ delivery_weekdays: number[];
509
557
  email: string | null;
510
558
  id: string;
511
559
  is_default: boolean;
@@ -513,6 +561,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
513
561
  notes: string | null;
514
562
  phone: string | null;
515
563
  pickup_moments: import("../integrations/supabase/types").Json;
564
+ pickup_weekdays: number[];
516
565
  service_cities: string[];
517
566
  service_countries: string[];
518
567
  service_provinces: string[];
@@ -528,6 +577,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
528
577
  contact_person?: string | null;
529
578
  created_at?: string;
530
579
  delivery_days?: number | null;
580
+ delivery_weekdays?: number[];
531
581
  email?: string | null;
532
582
  id?: string;
533
583
  is_default?: boolean;
@@ -535,6 +585,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
535
585
  notes?: string | null;
536
586
  phone?: string | null;
537
587
  pickup_moments?: import("../integrations/supabase/types").Json;
588
+ pickup_weekdays?: number[];
538
589
  service_cities?: string[];
539
590
  service_countries?: string[];
540
591
  service_provinces?: string[];
@@ -550,6 +601,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
550
601
  contact_person?: string | null;
551
602
  created_at?: string;
552
603
  delivery_days?: number | null;
604
+ delivery_weekdays?: number[];
553
605
  email?: string | null;
554
606
  id?: string;
555
607
  is_default?: boolean;
@@ -557,6 +609,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
557
609
  notes?: string | null;
558
610
  phone?: string | null;
559
611
  pickup_moments?: import("../integrations/supabase/types").Json;
612
+ pickup_weekdays?: number[];
560
613
  service_cities?: string[];
561
614
  service_countries?: string[];
562
615
  service_provinces?: string[];
@@ -569,6 +622,180 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
569
622
  };
570
623
  Relationships: [];
571
624
  };
625
+ cart_control_draft: {
626
+ Row: {
627
+ cart_states: import("../integrations/supabase/types").Json;
628
+ checked_keys: import("../integrations/supabase/types").Json;
629
+ draft_date: string;
630
+ form_state: import("../integrations/supabase/types").Json;
631
+ notes: string;
632
+ updated_at: string;
633
+ user_id: string;
634
+ };
635
+ Insert: {
636
+ cart_states?: import("../integrations/supabase/types").Json;
637
+ checked_keys?: import("../integrations/supabase/types").Json;
638
+ draft_date: string;
639
+ form_state?: import("../integrations/supabase/types").Json;
640
+ notes?: string;
641
+ updated_at?: string;
642
+ user_id: string;
643
+ };
644
+ Update: {
645
+ cart_states?: import("../integrations/supabase/types").Json;
646
+ checked_keys?: import("../integrations/supabase/types").Json;
647
+ draft_date?: string;
648
+ form_state?: import("../integrations/supabase/types").Json;
649
+ notes?: string;
650
+ updated_at?: string;
651
+ user_id?: string;
652
+ };
653
+ Relationships: [];
654
+ };
655
+ cart_control_items: {
656
+ Row: {
657
+ action: string;
658
+ block_reason: string | null;
659
+ carrier_name: string | null;
660
+ cart_index: number;
661
+ cart_number_id: string | null;
662
+ cart_number_label: string | null;
663
+ created_at: string;
664
+ customer_name: string | null;
665
+ delivery_date: string | null;
666
+ id: string;
667
+ new_pick_date: string | null;
668
+ order_id: string;
669
+ order_number: string | null;
670
+ order_source: string;
671
+ pickup_date: string | null;
672
+ session_id: string;
673
+ };
674
+ Insert: {
675
+ action: string;
676
+ block_reason?: string | null;
677
+ carrier_name?: string | null;
678
+ cart_index: number;
679
+ cart_number_id?: string | null;
680
+ cart_number_label?: string | null;
681
+ created_at?: string;
682
+ customer_name?: string | null;
683
+ delivery_date?: string | null;
684
+ id?: string;
685
+ new_pick_date?: string | null;
686
+ order_id: string;
687
+ order_number?: string | null;
688
+ order_source: string;
689
+ pickup_date?: string | null;
690
+ session_id: string;
691
+ };
692
+ Update: {
693
+ action?: string;
694
+ block_reason?: string | null;
695
+ carrier_name?: string | null;
696
+ cart_index?: number;
697
+ cart_number_id?: string | null;
698
+ cart_number_label?: string | null;
699
+ created_at?: string;
700
+ customer_name?: string | null;
701
+ delivery_date?: string | null;
702
+ id?: string;
703
+ new_pick_date?: string | null;
704
+ order_id?: string;
705
+ order_number?: string | null;
706
+ order_source?: string;
707
+ pickup_date?: string | null;
708
+ session_id?: string;
709
+ };
710
+ Relationships: [{
711
+ foreignKeyName: "cart_control_items_session_id_fkey";
712
+ columns: ["session_id"];
713
+ isOneToOne: false;
714
+ referencedRelation: "cart_control_sessions";
715
+ referencedColumns: ["id"];
716
+ }];
717
+ };
718
+ cart_control_sessions: {
719
+ Row: {
720
+ blocked_count: number;
721
+ checked_count: number;
722
+ control_date: string;
723
+ created_at: string;
724
+ id: string;
725
+ notes: string | null;
726
+ performed_at: string;
727
+ rescheduled_count: number;
728
+ stock_consumed_at: string | null;
729
+ total_carts: number;
730
+ updated_at: string;
731
+ user_id: string;
732
+ };
733
+ Insert: {
734
+ blocked_count?: number;
735
+ checked_count?: number;
736
+ control_date?: string;
737
+ created_at?: string;
738
+ id?: string;
739
+ notes?: string | null;
740
+ performed_at?: string;
741
+ rescheduled_count?: number;
742
+ stock_consumed_at?: string | null;
743
+ total_carts?: number;
744
+ updated_at?: string;
745
+ user_id: string;
746
+ };
747
+ Update: {
748
+ blocked_count?: number;
749
+ checked_count?: number;
750
+ control_date?: string;
751
+ created_at?: string;
752
+ id?: string;
753
+ notes?: string | null;
754
+ performed_at?: string;
755
+ rescheduled_count?: number;
756
+ stock_consumed_at?: string | null;
757
+ total_carts?: number;
758
+ updated_at?: string;
759
+ user_id?: string;
760
+ };
761
+ Relationships: [];
762
+ };
763
+ cart_numbers: {
764
+ Row: {
765
+ assigned_at: string;
766
+ cart_index: number;
767
+ cart_number: string;
768
+ day_seq: number;
769
+ id: string;
770
+ order_id: string;
771
+ order_source: string;
772
+ pick_date: string;
773
+ status: string;
774
+ };
775
+ Insert: {
776
+ assigned_at?: string;
777
+ cart_index: number;
778
+ cart_number: string;
779
+ day_seq: number;
780
+ id?: string;
781
+ order_id: string;
782
+ order_source: string;
783
+ pick_date: string;
784
+ status?: string;
785
+ };
786
+ Update: {
787
+ assigned_at?: string;
788
+ cart_index?: number;
789
+ cart_number?: string;
790
+ day_seq?: number;
791
+ id?: string;
792
+ order_id?: string;
793
+ order_source?: string;
794
+ pick_date?: string;
795
+ status?: string;
796
+ };
797
+ Relationships: [];
798
+ };
572
799
  cart_pick_overrides: {
573
800
  Row: {
574
801
  cart_index: number;
@@ -1241,6 +1468,54 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
1241
1468
  referencedColumns: ["id"];
1242
1469
  }];
1243
1470
  };
1471
+ dashboard_critical_alerts: {
1472
+ Row: {
1473
+ alert_key: string;
1474
+ alert_type: string;
1475
+ created_at: string;
1476
+ description: string | null;
1477
+ id: string;
1478
+ metadata: import("../integrations/supabase/types").Json | null;
1479
+ priority: string;
1480
+ raised_at: string;
1481
+ related_cart_ids: string[] | null;
1482
+ resolved_at: string | null;
1483
+ title: string;
1484
+ updated_at: string;
1485
+ user_id: string;
1486
+ };
1487
+ Insert: {
1488
+ alert_key: string;
1489
+ alert_type: string;
1490
+ created_at?: string;
1491
+ description?: string | null;
1492
+ id?: string;
1493
+ metadata?: import("../integrations/supabase/types").Json | null;
1494
+ priority?: string;
1495
+ raised_at?: string;
1496
+ related_cart_ids?: string[] | null;
1497
+ resolved_at?: string | null;
1498
+ title: string;
1499
+ updated_at?: string;
1500
+ user_id: string;
1501
+ };
1502
+ Update: {
1503
+ alert_key?: string;
1504
+ alert_type?: string;
1505
+ created_at?: string;
1506
+ description?: string | null;
1507
+ id?: string;
1508
+ metadata?: import("../integrations/supabase/types").Json | null;
1509
+ priority?: string;
1510
+ raised_at?: string;
1511
+ related_cart_ids?: string[] | null;
1512
+ resolved_at?: string | null;
1513
+ title?: string;
1514
+ updated_at?: string;
1515
+ user_id?: string;
1516
+ };
1517
+ Relationships: [];
1518
+ };
1244
1519
  dashboard_daily_reports: {
1245
1520
  Row: {
1246
1521
  created_at: string;
@@ -2743,6 +3018,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
2743
3018
  };
2744
3019
  floricode_sync_state: {
2745
3020
  Row: {
3021
+ cursor_skip: number;
2746
3022
  error_message: string | null;
2747
3023
  last_change_date_time: string | null;
2748
3024
  last_sequence_number: number;
@@ -2752,6 +3028,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
2752
3028
  updated_at: string;
2753
3029
  };
2754
3030
  Insert: {
3031
+ cursor_skip?: number;
2755
3032
  error_message?: string | null;
2756
3033
  last_change_date_time?: string | null;
2757
3034
  last_sequence_number?: number;
@@ -2761,6 +3038,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
2761
3038
  updated_at?: string;
2762
3039
  };
2763
3040
  Update: {
3041
+ cursor_skip?: number;
2764
3042
  error_message?: string | null;
2765
3043
  last_change_date_time?: string | null;
2766
3044
  last_sequence_number?: number;
@@ -5108,6 +5386,93 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
5108
5386
  };
5109
5387
  Relationships: [];
5110
5388
  };
5389
+ manufacture_product_components: {
5390
+ Row: {
5391
+ component_type: string;
5392
+ created_at: string;
5393
+ id: string;
5394
+ manufacture_product_id: string;
5395
+ product_group_id: string | null;
5396
+ quantity: number;
5397
+ trade_item_id: string | null;
5398
+ unit: string;
5399
+ };
5400
+ Insert: {
5401
+ component_type: string;
5402
+ created_at?: string;
5403
+ id?: string;
5404
+ manufacture_product_id: string;
5405
+ product_group_id?: string | null;
5406
+ quantity?: number;
5407
+ trade_item_id?: string | null;
5408
+ unit?: string;
5409
+ };
5410
+ Update: {
5411
+ component_type?: string;
5412
+ created_at?: string;
5413
+ id?: string;
5414
+ manufacture_product_id?: string;
5415
+ product_group_id?: string | null;
5416
+ quantity?: number;
5417
+ trade_item_id?: string | null;
5418
+ unit?: string;
5419
+ };
5420
+ Relationships: [{
5421
+ foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
5422
+ columns: ["manufacture_product_id"];
5423
+ isOneToOne: false;
5424
+ referencedRelation: "manufacture_product_possible_stock_view";
5425
+ referencedColumns: ["manufacture_product_id"];
5426
+ }, {
5427
+ foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
5428
+ columns: ["manufacture_product_id"];
5429
+ isOneToOne: false;
5430
+ referencedRelation: "manufacture_products";
5431
+ referencedColumns: ["id"];
5432
+ }, {
5433
+ foreignKeyName: "manufacture_product_components_product_group_id_fkey";
5434
+ columns: ["product_group_id"];
5435
+ isOneToOne: false;
5436
+ referencedRelation: "product_groups";
5437
+ referencedColumns: ["id"];
5438
+ }];
5439
+ };
5440
+ manufacture_products: {
5441
+ Row: {
5442
+ created_at: string;
5443
+ description: string | null;
5444
+ id: string;
5445
+ is_active: boolean;
5446
+ name: string;
5447
+ produced_stock: number;
5448
+ product_code: string;
5449
+ tenant_id: string;
5450
+ updated_at: string;
5451
+ };
5452
+ Insert: {
5453
+ created_at?: string;
5454
+ description?: string | null;
5455
+ id?: string;
5456
+ is_active?: boolean;
5457
+ name: string;
5458
+ produced_stock?: number;
5459
+ product_code: string;
5460
+ tenant_id: string;
5461
+ updated_at?: string;
5462
+ };
5463
+ Update: {
5464
+ created_at?: string;
5465
+ description?: string | null;
5466
+ id?: string;
5467
+ is_active?: boolean;
5468
+ name?: string;
5469
+ produced_stock?: number;
5470
+ product_code?: string;
5471
+ tenant_id?: string;
5472
+ updated_at?: string;
5473
+ };
5474
+ Relationships: [];
5475
+ };
5111
5476
  monteurs: {
5112
5477
  Row: {
5113
5478
  avatar_url: string | null;
@@ -6068,60 +6433,122 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
6068
6433
  };
6069
6434
  Relationships: [];
6070
6435
  };
6071
- products: {
6436
+ product_group_items: {
6072
6437
  Row: {
6073
- barcode: string | null;
6074
- batch: string;
6075
- crates_per_layer: number;
6076
6438
  created_at: string;
6077
- custom_fields: import("../integrations/supabase/types").Json;
6078
6439
  id: string;
6079
- image_url: string | null;
6080
- incoming_quantity: number;
6081
- layers_per_cart: number;
6082
- location: string;
6083
- min_quantity: number;
6084
- plants_per_crate: number;
6085
- product: string;
6086
- product_type: string;
6087
- purchase_price: number | null;
6440
+ product_group_id: string;
6088
6441
  quantity: number;
6089
- sale_price: number | null;
6090
- unit: string;
6091
- updated_at: string;
6092
- weight: string | null;
6442
+ trade_item_id: string;
6093
6443
  };
6094
6444
  Insert: {
6095
- barcode?: string | null;
6096
- batch: string;
6097
- crates_per_layer?: number;
6098
6445
  created_at?: string;
6099
- custom_fields?: import("../integrations/supabase/types").Json;
6100
6446
  id?: string;
6101
- image_url?: string | null;
6102
- incoming_quantity?: number;
6103
- layers_per_cart?: number;
6104
- location: string;
6105
- min_quantity?: number;
6106
- plants_per_crate?: number;
6107
- product: string;
6108
- product_type?: string;
6109
- purchase_price?: number | null;
6447
+ product_group_id: string;
6110
6448
  quantity?: number;
6111
- sale_price?: number | null;
6112
- unit?: string;
6113
- updated_at?: string;
6114
- weight?: string | null;
6449
+ trade_item_id: string;
6115
6450
  };
6116
6451
  Update: {
6117
- barcode?: string | null;
6118
- batch?: string;
6119
- crates_per_layer?: number;
6120
6452
  created_at?: string;
6121
- custom_fields?: import("../integrations/supabase/types").Json;
6122
6453
  id?: string;
6123
- image_url?: string | null;
6124
- incoming_quantity?: number;
6454
+ product_group_id?: string;
6455
+ quantity?: number;
6456
+ trade_item_id?: string;
6457
+ };
6458
+ Relationships: [{
6459
+ foreignKeyName: "product_group_items_product_group_id_fkey";
6460
+ columns: ["product_group_id"];
6461
+ isOneToOne: false;
6462
+ referencedRelation: "product_groups";
6463
+ referencedColumns: ["id"];
6464
+ }];
6465
+ };
6466
+ product_groups: {
6467
+ Row: {
6468
+ created_at: string;
6469
+ description: string | null;
6470
+ id: string;
6471
+ is_active: boolean;
6472
+ name: string;
6473
+ tenant_id: string;
6474
+ updated_at: string;
6475
+ };
6476
+ Insert: {
6477
+ created_at?: string;
6478
+ description?: string | null;
6479
+ id?: string;
6480
+ is_active?: boolean;
6481
+ name: string;
6482
+ tenant_id: string;
6483
+ updated_at?: string;
6484
+ };
6485
+ Update: {
6486
+ created_at?: string;
6487
+ description?: string | null;
6488
+ id?: string;
6489
+ is_active?: boolean;
6490
+ name?: string;
6491
+ tenant_id?: string;
6492
+ updated_at?: string;
6493
+ };
6494
+ Relationships: [];
6495
+ };
6496
+ products: {
6497
+ Row: {
6498
+ barcode: string | null;
6499
+ batch: string;
6500
+ crates_per_layer: number;
6501
+ created_at: string;
6502
+ custom_fields: import("../integrations/supabase/types").Json;
6503
+ id: string;
6504
+ image_url: string | null;
6505
+ incoming_quantity: number;
6506
+ layers_per_cart: number;
6507
+ location: string;
6508
+ min_quantity: number;
6509
+ plants_per_crate: number;
6510
+ product: string;
6511
+ product_type: string;
6512
+ purchase_price: number | null;
6513
+ quantity: number;
6514
+ sale_price: number | null;
6515
+ trade_item_key: string | null;
6516
+ unit: string;
6517
+ updated_at: string;
6518
+ weight: string | null;
6519
+ };
6520
+ Insert: {
6521
+ barcode?: string | null;
6522
+ batch: string;
6523
+ crates_per_layer?: number;
6524
+ created_at?: string;
6525
+ custom_fields?: import("../integrations/supabase/types").Json;
6526
+ id?: string;
6527
+ image_url?: string | null;
6528
+ incoming_quantity?: number;
6529
+ layers_per_cart?: number;
6530
+ location: string;
6531
+ min_quantity?: number;
6532
+ plants_per_crate?: number;
6533
+ product: string;
6534
+ product_type?: string;
6535
+ purchase_price?: number | null;
6536
+ quantity?: number;
6537
+ sale_price?: number | null;
6538
+ trade_item_key?: string | null;
6539
+ unit?: string;
6540
+ updated_at?: string;
6541
+ weight?: string | null;
6542
+ };
6543
+ Update: {
6544
+ barcode?: string | null;
6545
+ batch?: string;
6546
+ crates_per_layer?: number;
6547
+ created_at?: string;
6548
+ custom_fields?: import("../integrations/supabase/types").Json;
6549
+ id?: string;
6550
+ image_url?: string | null;
6551
+ incoming_quantity?: number;
6125
6552
  layers_per_cart?: number;
6126
6553
  location?: string;
6127
6554
  min_quantity?: number;
@@ -6131,6 +6558,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
6131
6558
  purchase_price?: number | null;
6132
6559
  quantity?: number;
6133
6560
  sale_price?: number | null;
6561
+ trade_item_key?: string | null;
6134
6562
  unit?: string;
6135
6563
  updated_at?: string;
6136
6564
  weight?: string | null;
@@ -6950,6 +7378,60 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
6950
7378
  };
6951
7379
  Relationships: [];
6952
7380
  };
7381
+ stock_mutation_log: {
7382
+ Row: {
7383
+ connection_id: string | null;
7384
+ created_at: string;
7385
+ created_by: string | null;
7386
+ id: string;
7387
+ mutation_type: string;
7388
+ order_id: string | null;
7389
+ order_item_id: string | null;
7390
+ order_source: string | null;
7391
+ physical_after: number | null;
7392
+ physical_before: number | null;
7393
+ qty_delta: number;
7394
+ reason: string | null;
7395
+ reserved_after: number | null;
7396
+ reserved_before: number | null;
7397
+ trade_item_key: string;
7398
+ };
7399
+ Insert: {
7400
+ connection_id?: string | null;
7401
+ created_at?: string;
7402
+ created_by?: string | null;
7403
+ id?: string;
7404
+ mutation_type: string;
7405
+ order_id?: string | null;
7406
+ order_item_id?: string | null;
7407
+ order_source?: string | null;
7408
+ physical_after?: number | null;
7409
+ physical_before?: number | null;
7410
+ qty_delta: number;
7411
+ reason?: string | null;
7412
+ reserved_after?: number | null;
7413
+ reserved_before?: number | null;
7414
+ trade_item_key: string;
7415
+ };
7416
+ Update: {
7417
+ connection_id?: string | null;
7418
+ created_at?: string;
7419
+ created_by?: string | null;
7420
+ id?: string;
7421
+ mutation_type?: string;
7422
+ order_id?: string | null;
7423
+ order_item_id?: string | null;
7424
+ order_source?: string | null;
7425
+ physical_after?: number | null;
7426
+ physical_before?: number | null;
7427
+ qty_delta?: number;
7428
+ reason?: string | null;
7429
+ reserved_after?: number | null;
7430
+ reserved_before?: number | null;
7431
+ trade_item_key?: string;
7432
+ };
7433
+ Relationships: [];
7434
+ };
6953
7435
  supplier_products: {
6954
7436
  Row: {
6955
7437
  article_number: string | null;
@@ -7207,7 +7689,13 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
7207
7689
  connection_id: string | null;
7208
7690
  created_at: string;
7209
7691
  data: import("../integrations/supabase/types").Json;
7692
+ floriday_id: string | null;
7693
+ floriday_link_error: string | null;
7694
+ floriday_link_status: string;
7210
7695
  id: string;
7696
+ last_floriday_sync_at: string | null;
7697
+ missing_required_fields: string[];
7698
+ source: string;
7211
7699
  updated_at: string;
7212
7700
  user_id: string;
7213
7701
  };
@@ -7215,7 +7703,13 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
7215
7703
  connection_id?: string | null;
7216
7704
  created_at?: string;
7217
7705
  data?: import("../integrations/supabase/types").Json;
7706
+ floriday_id?: string | null;
7707
+ floriday_link_error?: string | null;
7708
+ floriday_link_status?: string;
7218
7709
  id?: string;
7710
+ last_floriday_sync_at?: string | null;
7711
+ missing_required_fields?: string[];
7712
+ source?: string;
7219
7713
  updated_at?: string;
7220
7714
  user_id: string;
7221
7715
  };
@@ -7223,7 +7717,55 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
7223
7717
  connection_id?: string | null;
7224
7718
  created_at?: string;
7225
7719
  data?: import("../integrations/supabase/types").Json;
7720
+ floriday_id?: string | null;
7721
+ floriday_link_error?: string | null;
7722
+ floriday_link_status?: string;
7226
7723
  id?: string;
7724
+ last_floriday_sync_at?: string | null;
7725
+ missing_required_fields?: string[];
7726
+ source?: string;
7727
+ updated_at?: string;
7728
+ user_id?: string;
7729
+ };
7730
+ Relationships: [];
7731
+ };
7732
+ trade_item_stock: {
7733
+ Row: {
7734
+ connection_id: string;
7735
+ created_at: string;
7736
+ id: string;
7737
+ incoming_stock: number;
7738
+ minimum_stock: number;
7739
+ notes: string | null;
7740
+ physical_stock: number;
7741
+ reserved_stock: number;
7742
+ trade_item_key: string;
7743
+ updated_at: string;
7744
+ user_id: string;
7745
+ };
7746
+ Insert: {
7747
+ connection_id: string;
7748
+ created_at?: string;
7749
+ id?: string;
7750
+ incoming_stock?: number;
7751
+ minimum_stock?: number;
7752
+ notes?: string | null;
7753
+ physical_stock?: number;
7754
+ reserved_stock?: number;
7755
+ trade_item_key: string;
7756
+ updated_at?: string;
7757
+ user_id: string;
7758
+ };
7759
+ Update: {
7760
+ connection_id?: string;
7761
+ created_at?: string;
7762
+ id?: string;
7763
+ incoming_stock?: number;
7764
+ minimum_stock?: number;
7765
+ notes?: string | null;
7766
+ physical_stock?: number;
7767
+ reserved_stock?: number;
7768
+ trade_item_key?: string;
7227
7769
  updated_at?: string;
7228
7770
  user_id?: string;
7229
7771
  };
@@ -7573,6 +8115,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
7573
8115
  };
7574
8116
  twinfield_invoice_sync_logs: {
7575
8117
  Row: {
8118
+ action_type: string | null;
7576
8119
  created_at: string;
7577
8120
  details: import("../integrations/supabase/types").Json | null;
7578
8121
  duration_ms: number | null;
@@ -7585,6 +8128,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
7585
8128
  user_id: string;
7586
8129
  };
7587
8130
  Insert: {
8131
+ action_type?: string | null;
7588
8132
  created_at?: string;
7589
8133
  details?: import("../integrations/supabase/types").Json | null;
7590
8134
  duration_ms?: number | null;
@@ -7597,6 +8141,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
7597
8141
  user_id: string;
7598
8142
  };
7599
8143
  Update: {
8144
+ action_type?: string | null;
7600
8145
  created_at?: string;
7601
8146
  details?: import("../integrations/supabase/types").Json | null;
7602
8147
  duration_ms?: number | null;
@@ -7832,6 +8377,57 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
7832
8377
  referencedColumns: ["id"];
7833
8378
  }];
7834
8379
  };
8380
+ twinfield_request_metrics: {
8381
+ Row: {
8382
+ bucket_hour: string;
8383
+ connection_id: string;
8384
+ error_count: number;
8385
+ rate_limited_count: number;
8386
+ request_count: number;
8387
+ updated_at: string;
8388
+ };
8389
+ Insert: {
8390
+ bucket_hour: string;
8391
+ connection_id: string;
8392
+ error_count?: number;
8393
+ rate_limited_count?: number;
8394
+ request_count?: number;
8395
+ updated_at?: string;
8396
+ };
8397
+ Update: {
8398
+ bucket_hour?: string;
8399
+ connection_id?: string;
8400
+ error_count?: number;
8401
+ rate_limited_count?: number;
8402
+ request_count?: number;
8403
+ updated_at?: string;
8404
+ };
8405
+ Relationships: [];
8406
+ };
8407
+ twinfield_session_cache: {
8408
+ Row: {
8409
+ cluster: string;
8410
+ created_at: string;
8411
+ expires_at: string;
8412
+ session_id: string;
8413
+ user_id: string;
8414
+ };
8415
+ Insert: {
8416
+ cluster: string;
8417
+ created_at?: string;
8418
+ expires_at: string;
8419
+ session_id: string;
8420
+ user_id: string;
8421
+ };
8422
+ Update: {
8423
+ cluster?: string;
8424
+ created_at?: string;
8425
+ expires_at?: string;
8426
+ session_id?: string;
8427
+ user_id?: string;
8428
+ };
8429
+ Relationships: [];
8430
+ };
7835
8431
  twinfield_settings: {
7836
8432
  Row: {
7837
8433
  active_environment: string;
@@ -8413,6 +9009,35 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
8413
9009
  };
8414
9010
  Relationships: [];
8415
9011
  };
9012
+ manufacture_product_possible_stock_view: {
9013
+ Row: {
9014
+ component_count: number | null;
9015
+ manufacture_product_id: string | null;
9016
+ possible_stock: number | null;
9017
+ };
9018
+ Relationships: [];
9019
+ };
9020
+ product_group_stock_view: {
9021
+ Row: {
9022
+ item_count: number | null;
9023
+ product_group_id: string | null;
9024
+ total_stock: number | null;
9025
+ };
9026
+ Relationships: [{
9027
+ foreignKeyName: "product_group_items_product_group_id_fkey";
9028
+ columns: ["product_group_id"];
9029
+ isOneToOne: false;
9030
+ referencedRelation: "product_groups";
9031
+ referencedColumns: ["id"];
9032
+ }];
9033
+ };
9034
+ trade_item_stock_view: {
9035
+ Row: {
9036
+ stock: number | null;
9037
+ trade_item_id: string | null;
9038
+ };
9039
+ Relationships: [];
9040
+ };
8416
9041
  v_external_customers_exact: {
8417
9042
  Row: {
8418
9043
  account_number: string | null;
@@ -8668,6 +9293,68 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
8668
9293
  };
8669
9294
  Returns: number;
8670
9295
  };
9296
+ afh_city_code: {
9297
+ Args: {
9298
+ _city: string;
9299
+ _country: string;
9300
+ };
9301
+ Returns: string;
9302
+ };
9303
+ afh_normalize_country: {
9304
+ Args: {
9305
+ _raw: string;
9306
+ };
9307
+ Returns: string;
9308
+ };
9309
+ afh_normalize_nl_province: {
9310
+ Args: {
9311
+ _raw: string;
9312
+ };
9313
+ Returns: string;
9314
+ };
9315
+ afh_subtract_workdays: {
9316
+ Args: {
9317
+ _date: string;
9318
+ _days: number;
9319
+ };
9320
+ Returns: string;
9321
+ };
9322
+ apply_stock_consumption: {
9323
+ Args: {
9324
+ p_order_id: string;
9325
+ p_order_item_id: string;
9326
+ p_qty: number;
9327
+ p_reason: string;
9328
+ p_source: string;
9329
+ p_trade_item_key: string;
9330
+ };
9331
+ Returns: undefined;
9332
+ };
9333
+ apply_stock_reservation: {
9334
+ Args: {
9335
+ p_order_id: string;
9336
+ p_order_item_id: string;
9337
+ p_qty: number;
9338
+ p_reason: string;
9339
+ p_source: string;
9340
+ p_trade_item_key: string;
9341
+ };
9342
+ Returns: undefined;
9343
+ };
9344
+ assign_cart_numbers: {
9345
+ Args: {
9346
+ p_carts: import("../integrations/supabase/types").Json;
9347
+ };
9348
+ Returns: {
9349
+ cart_index: number;
9350
+ cart_number: string;
9351
+ day_seq: number;
9352
+ order_id: string;
9353
+ order_source: string;
9354
+ pick_date: string;
9355
+ status: string;
9356
+ }[];
9357
+ };
8671
9358
  assign_floriday_order_numbers: {
8672
9359
  Args: {
8673
9360
  p_ids: string[];
@@ -8677,6 +9364,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
8677
9364
  order_number: string;
8678
9365
  }[];
8679
9366
  };
9367
+ backfill_open_order_reservations: {
9368
+ Args: never;
9369
+ Returns: {
9370
+ processed_items: number;
9371
+ }[];
9372
+ };
8680
9373
  call_exact_route: {
8681
9374
  Args: {
8682
9375
  path: string;
@@ -8687,10 +9380,37 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
8687
9380
  Args: never;
8688
9381
  Returns: number;
8689
9382
  };
9383
+ control_get_todays_carts: {
9384
+ Args: never;
9385
+ Returns: {
9386
+ cart_index: number;
9387
+ cart_number: string;
9388
+ cart_number_id: string;
9389
+ order_id: string;
9390
+ order_source: string;
9391
+ pick_date: string;
9392
+ status: string;
9393
+ }[];
9394
+ };
9395
+ count_distinct_regulatory_products: {
9396
+ Args: never;
9397
+ Returns: number;
9398
+ };
8690
9399
  current_monteur_id: {
8691
9400
  Args: never;
8692
9401
  Returns: string;
8693
9402
  };
9403
+ dashboard_alert_counts: {
9404
+ Args: never;
9405
+ Returns: import("../integrations/supabase/types").Json;
9406
+ };
9407
+ dashboard_alert_rows: {
9408
+ Args: {
9409
+ check_id: string;
9410
+ row_limit?: number;
9411
+ };
9412
+ Returns: import("../integrations/supabase/types").Json;
9413
+ };
8694
9414
  dashboard_list_public_schema: {
8695
9415
  Args: never;
8696
9416
  Returns: {
@@ -8699,6 +9419,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
8699
9419
  table_name: string;
8700
9420
  }[];
8701
9421
  };
9422
+ dispatch_carrier_signups_sql: {
9423
+ Args: {
9424
+ _catchup?: string;
9425
+ };
9426
+ Returns: import("../integrations/supabase/types").Json;
9427
+ };
8702
9428
  email_auth_decrypt: {
8703
9429
  Args: {
8704
9430
  cipher: string;
@@ -8771,6 +9497,19 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
8771
9497
  };
8772
9498
  Returns: boolean;
8773
9499
  };
9500
+ find_trade_item_key_by_name: {
9501
+ Args: {
9502
+ p_name: string;
9503
+ };
9504
+ Returns: string;
9505
+ };
9506
+ format_cart_number: {
9507
+ Args: {
9508
+ p_pick_date: string;
9509
+ p_seq: number;
9510
+ };
9511
+ Returns: string;
9512
+ };
8774
9513
  get_active_floriday_connection_public: {
8775
9514
  Args: never;
8776
9515
  Returns: {
@@ -8975,14 +9714,29 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
8975
9714
  };
8976
9715
  Returns: undefined;
8977
9716
  };
9717
+ pickstation_set_cart_status: {
9718
+ Args: {
9719
+ p_cart_index: number;
9720
+ p_order_id: string;
9721
+ p_order_source: string;
9722
+ p_status: string;
9723
+ };
9724
+ Returns: undefined;
9725
+ };
8978
9726
  refresh_floricode_derived_code_lists: {
8979
9727
  Args: never;
8980
9728
  Returns: {
8981
- out_environment: string;
8982
- out_list_name: string;
8983
- out_row_count: number;
9729
+ environment: string;
9730
+ list_name: string;
9731
+ row_count: number;
8984
9732
  }[];
8985
9733
  };
9734
+ refresh_floricode_derived_for_product: {
9735
+ Args: {
9736
+ p_product_code: string;
9737
+ };
9738
+ Returns: number;
9739
+ };
8986
9740
  reset_floriday_sync_cursor: {
8987
9741
  Args: {
8988
9742
  p_connection_id: string;
@@ -9303,6 +10057,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
9303
10057
  max_workdays_earlier_pick: number;
9304
10058
  pick_days_before_transport: number;
9305
10059
  pick_distribution_enabled: boolean;
10060
+ pick_weekdays: number[];
9306
10061
  signup_mail_enabled: boolean;
9307
10062
  signup_mail_lead_minutes: number;
9308
10063
  signup_mail_purpose: string;
@@ -9316,6 +10071,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
9316
10071
  max_workdays_earlier_pick?: number;
9317
10072
  pick_days_before_transport?: number;
9318
10073
  pick_distribution_enabled?: boolean;
10074
+ pick_weekdays?: number[];
9319
10075
  signup_mail_enabled?: boolean;
9320
10076
  signup_mail_lead_minutes?: number;
9321
10077
  signup_mail_purpose?: string;
@@ -9329,6 +10085,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
9329
10085
  max_workdays_earlier_pick?: number;
9330
10086
  pick_days_before_transport?: number;
9331
10087
  pick_distribution_enabled?: boolean;
10088
+ pick_weekdays?: number[];
9332
10089
  signup_mail_enabled?: boolean;
9333
10090
  signup_mail_lead_minutes?: number;
9334
10091
  signup_mail_purpose?: string;
@@ -9740,6 +10497,48 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
9740
10497
  referencedColumns: ["id"];
9741
10498
  }];
9742
10499
  };
10500
+ carrier_signup_dispatch_runs: {
10501
+ Row: {
10502
+ detail: import("../integrations/supabase/types").Json | null;
10503
+ error: string | null;
10504
+ finished_at: string | null;
10505
+ groups: number;
10506
+ id: string;
10507
+ ok: boolean;
10508
+ reason: string | null;
10509
+ sent: number;
10510
+ skipped: import("../integrations/supabase/types").Json;
10511
+ started_at: string;
10512
+ unassigned: import("../integrations/supabase/types").Json;
10513
+ };
10514
+ Insert: {
10515
+ detail?: import("../integrations/supabase/types").Json | null;
10516
+ error?: string | null;
10517
+ finished_at?: string | null;
10518
+ groups?: number;
10519
+ id?: string;
10520
+ ok?: boolean;
10521
+ reason?: string | null;
10522
+ sent?: number;
10523
+ skipped?: import("../integrations/supabase/types").Json;
10524
+ started_at?: string;
10525
+ unassigned?: import("../integrations/supabase/types").Json;
10526
+ };
10527
+ Update: {
10528
+ detail?: import("../integrations/supabase/types").Json | null;
10529
+ error?: string | null;
10530
+ finished_at?: string | null;
10531
+ groups?: number;
10532
+ id?: string;
10533
+ ok?: boolean;
10534
+ reason?: string | null;
10535
+ sent?: number;
10536
+ skipped?: import("../integrations/supabase/types").Json;
10537
+ started_at?: string;
10538
+ unassigned?: import("../integrations/supabase/types").Json;
10539
+ };
10540
+ Relationships: [];
10541
+ };
9743
10542
  carrier_signup_dispatches: {
9744
10543
  Row: {
9745
10544
  carrier_id: string;
@@ -9791,6 +10590,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
9791
10590
  contact_person: string | null;
9792
10591
  created_at: string;
9793
10592
  delivery_days: number | null;
10593
+ delivery_weekdays: number[];
9794
10594
  email: string | null;
9795
10595
  id: string;
9796
10596
  is_default: boolean;
@@ -9798,6 +10598,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
9798
10598
  notes: string | null;
9799
10599
  phone: string | null;
9800
10600
  pickup_moments: import("../integrations/supabase/types").Json;
10601
+ pickup_weekdays: number[];
9801
10602
  service_cities: string[];
9802
10603
  service_countries: string[];
9803
10604
  service_provinces: string[];
@@ -9813,6 +10614,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
9813
10614
  contact_person?: string | null;
9814
10615
  created_at?: string;
9815
10616
  delivery_days?: number | null;
10617
+ delivery_weekdays?: number[];
9816
10618
  email?: string | null;
9817
10619
  id?: string;
9818
10620
  is_default?: boolean;
@@ -9820,6 +10622,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
9820
10622
  notes?: string | null;
9821
10623
  phone?: string | null;
9822
10624
  pickup_moments?: import("../integrations/supabase/types").Json;
10625
+ pickup_weekdays?: number[];
9823
10626
  service_cities?: string[];
9824
10627
  service_countries?: string[];
9825
10628
  service_provinces?: string[];
@@ -9835,6 +10638,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
9835
10638
  contact_person?: string | null;
9836
10639
  created_at?: string;
9837
10640
  delivery_days?: number | null;
10641
+ delivery_weekdays?: number[];
9838
10642
  email?: string | null;
9839
10643
  id?: string;
9840
10644
  is_default?: boolean;
@@ -9842,6 +10646,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
9842
10646
  notes?: string | null;
9843
10647
  phone?: string | null;
9844
10648
  pickup_moments?: import("../integrations/supabase/types").Json;
10649
+ pickup_weekdays?: number[];
9845
10650
  service_cities?: string[];
9846
10651
  service_countries?: string[];
9847
10652
  service_provinces?: string[];
@@ -9854,6 +10659,180 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
9854
10659
  };
9855
10660
  Relationships: [];
9856
10661
  };
10662
+ cart_control_draft: {
10663
+ Row: {
10664
+ cart_states: import("../integrations/supabase/types").Json;
10665
+ checked_keys: import("../integrations/supabase/types").Json;
10666
+ draft_date: string;
10667
+ form_state: import("../integrations/supabase/types").Json;
10668
+ notes: string;
10669
+ updated_at: string;
10670
+ user_id: string;
10671
+ };
10672
+ Insert: {
10673
+ cart_states?: import("../integrations/supabase/types").Json;
10674
+ checked_keys?: import("../integrations/supabase/types").Json;
10675
+ draft_date: string;
10676
+ form_state?: import("../integrations/supabase/types").Json;
10677
+ notes?: string;
10678
+ updated_at?: string;
10679
+ user_id: string;
10680
+ };
10681
+ Update: {
10682
+ cart_states?: import("../integrations/supabase/types").Json;
10683
+ checked_keys?: import("../integrations/supabase/types").Json;
10684
+ draft_date?: string;
10685
+ form_state?: import("../integrations/supabase/types").Json;
10686
+ notes?: string;
10687
+ updated_at?: string;
10688
+ user_id?: string;
10689
+ };
10690
+ Relationships: [];
10691
+ };
10692
+ cart_control_items: {
10693
+ Row: {
10694
+ action: string;
10695
+ block_reason: string | null;
10696
+ carrier_name: string | null;
10697
+ cart_index: number;
10698
+ cart_number_id: string | null;
10699
+ cart_number_label: string | null;
10700
+ created_at: string;
10701
+ customer_name: string | null;
10702
+ delivery_date: string | null;
10703
+ id: string;
10704
+ new_pick_date: string | null;
10705
+ order_id: string;
10706
+ order_number: string | null;
10707
+ order_source: string;
10708
+ pickup_date: string | null;
10709
+ session_id: string;
10710
+ };
10711
+ Insert: {
10712
+ action: string;
10713
+ block_reason?: string | null;
10714
+ carrier_name?: string | null;
10715
+ cart_index: number;
10716
+ cart_number_id?: string | null;
10717
+ cart_number_label?: string | null;
10718
+ created_at?: string;
10719
+ customer_name?: string | null;
10720
+ delivery_date?: string | null;
10721
+ id?: string;
10722
+ new_pick_date?: string | null;
10723
+ order_id: string;
10724
+ order_number?: string | null;
10725
+ order_source: string;
10726
+ pickup_date?: string | null;
10727
+ session_id: string;
10728
+ };
10729
+ Update: {
10730
+ action?: string;
10731
+ block_reason?: string | null;
10732
+ carrier_name?: string | null;
10733
+ cart_index?: number;
10734
+ cart_number_id?: string | null;
10735
+ cart_number_label?: string | null;
10736
+ created_at?: string;
10737
+ customer_name?: string | null;
10738
+ delivery_date?: string | null;
10739
+ id?: string;
10740
+ new_pick_date?: string | null;
10741
+ order_id?: string;
10742
+ order_number?: string | null;
10743
+ order_source?: string;
10744
+ pickup_date?: string | null;
10745
+ session_id?: string;
10746
+ };
10747
+ Relationships: [{
10748
+ foreignKeyName: "cart_control_items_session_id_fkey";
10749
+ columns: ["session_id"];
10750
+ isOneToOne: false;
10751
+ referencedRelation: "cart_control_sessions";
10752
+ referencedColumns: ["id"];
10753
+ }];
10754
+ };
10755
+ cart_control_sessions: {
10756
+ Row: {
10757
+ blocked_count: number;
10758
+ checked_count: number;
10759
+ control_date: string;
10760
+ created_at: string;
10761
+ id: string;
10762
+ notes: string | null;
10763
+ performed_at: string;
10764
+ rescheduled_count: number;
10765
+ stock_consumed_at: string | null;
10766
+ total_carts: number;
10767
+ updated_at: string;
10768
+ user_id: string;
10769
+ };
10770
+ Insert: {
10771
+ blocked_count?: number;
10772
+ checked_count?: number;
10773
+ control_date?: string;
10774
+ created_at?: string;
10775
+ id?: string;
10776
+ notes?: string | null;
10777
+ performed_at?: string;
10778
+ rescheduled_count?: number;
10779
+ stock_consumed_at?: string | null;
10780
+ total_carts?: number;
10781
+ updated_at?: string;
10782
+ user_id: string;
10783
+ };
10784
+ Update: {
10785
+ blocked_count?: number;
10786
+ checked_count?: number;
10787
+ control_date?: string;
10788
+ created_at?: string;
10789
+ id?: string;
10790
+ notes?: string | null;
10791
+ performed_at?: string;
10792
+ rescheduled_count?: number;
10793
+ stock_consumed_at?: string | null;
10794
+ total_carts?: number;
10795
+ updated_at?: string;
10796
+ user_id?: string;
10797
+ };
10798
+ Relationships: [];
10799
+ };
10800
+ cart_numbers: {
10801
+ Row: {
10802
+ assigned_at: string;
10803
+ cart_index: number;
10804
+ cart_number: string;
10805
+ day_seq: number;
10806
+ id: string;
10807
+ order_id: string;
10808
+ order_source: string;
10809
+ pick_date: string;
10810
+ status: string;
10811
+ };
10812
+ Insert: {
10813
+ assigned_at?: string;
10814
+ cart_index: number;
10815
+ cart_number: string;
10816
+ day_seq: number;
10817
+ id?: string;
10818
+ order_id: string;
10819
+ order_source: string;
10820
+ pick_date: string;
10821
+ status?: string;
10822
+ };
10823
+ Update: {
10824
+ assigned_at?: string;
10825
+ cart_index?: number;
10826
+ cart_number?: string;
10827
+ day_seq?: number;
10828
+ id?: string;
10829
+ order_id?: string;
10830
+ order_source?: string;
10831
+ pick_date?: string;
10832
+ status?: string;
10833
+ };
10834
+ Relationships: [];
10835
+ };
9857
10836
  cart_pick_overrides: {
9858
10837
  Row: {
9859
10838
  cart_index: number;
@@ -10526,6 +11505,54 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
10526
11505
  referencedColumns: ["id"];
10527
11506
  }];
10528
11507
  };
11508
+ dashboard_critical_alerts: {
11509
+ Row: {
11510
+ alert_key: string;
11511
+ alert_type: string;
11512
+ created_at: string;
11513
+ description: string | null;
11514
+ id: string;
11515
+ metadata: import("../integrations/supabase/types").Json | null;
11516
+ priority: string;
11517
+ raised_at: string;
11518
+ related_cart_ids: string[] | null;
11519
+ resolved_at: string | null;
11520
+ title: string;
11521
+ updated_at: string;
11522
+ user_id: string;
11523
+ };
11524
+ Insert: {
11525
+ alert_key: string;
11526
+ alert_type: string;
11527
+ created_at?: string;
11528
+ description?: string | null;
11529
+ id?: string;
11530
+ metadata?: import("../integrations/supabase/types").Json | null;
11531
+ priority?: string;
11532
+ raised_at?: string;
11533
+ related_cart_ids?: string[] | null;
11534
+ resolved_at?: string | null;
11535
+ title: string;
11536
+ updated_at?: string;
11537
+ user_id: string;
11538
+ };
11539
+ Update: {
11540
+ alert_key?: string;
11541
+ alert_type?: string;
11542
+ created_at?: string;
11543
+ description?: string | null;
11544
+ id?: string;
11545
+ metadata?: import("../integrations/supabase/types").Json | null;
11546
+ priority?: string;
11547
+ raised_at?: string;
11548
+ related_cart_ids?: string[] | null;
11549
+ resolved_at?: string | null;
11550
+ title?: string;
11551
+ updated_at?: string;
11552
+ user_id?: string;
11553
+ };
11554
+ Relationships: [];
11555
+ };
10529
11556
  dashboard_daily_reports: {
10530
11557
  Row: {
10531
11558
  created_at: string;
@@ -12028,6 +13055,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
12028
13055
  };
12029
13056
  floricode_sync_state: {
12030
13057
  Row: {
13058
+ cursor_skip: number;
12031
13059
  error_message: string | null;
12032
13060
  last_change_date_time: string | null;
12033
13061
  last_sequence_number: number;
@@ -12037,6 +13065,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
12037
13065
  updated_at: string;
12038
13066
  };
12039
13067
  Insert: {
13068
+ cursor_skip?: number;
12040
13069
  error_message?: string | null;
12041
13070
  last_change_date_time?: string | null;
12042
13071
  last_sequence_number?: number;
@@ -12046,6 +13075,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
12046
13075
  updated_at?: string;
12047
13076
  };
12048
13077
  Update: {
13078
+ cursor_skip?: number;
12049
13079
  error_message?: string | null;
12050
13080
  last_change_date_time?: string | null;
12051
13081
  last_sequence_number?: number;
@@ -14378,17 +15408,104 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
14378
15408
  };
14379
15409
  Update: {
14380
15410
  created_at?: string;
14381
- folder?: string;
15411
+ folder?: string;
15412
+ id?: string;
15413
+ imap_host?: string;
15414
+ imap_port?: number;
15415
+ imap_use_tls?: boolean;
15416
+ imap_username?: string;
15417
+ last_error?: string | null;
15418
+ last_polled_at?: string | null;
15419
+ last_uid_seen?: number;
15420
+ polling_enabled?: boolean;
15421
+ singleton?: boolean;
15422
+ updated_at?: string;
15423
+ };
15424
+ Relationships: [];
15425
+ };
15426
+ manufacture_product_components: {
15427
+ Row: {
15428
+ component_type: string;
15429
+ created_at: string;
15430
+ id: string;
15431
+ manufacture_product_id: string;
15432
+ product_group_id: string | null;
15433
+ quantity: number;
15434
+ trade_item_id: string | null;
15435
+ unit: string;
15436
+ };
15437
+ Insert: {
15438
+ component_type: string;
15439
+ created_at?: string;
15440
+ id?: string;
15441
+ manufacture_product_id: string;
15442
+ product_group_id?: string | null;
15443
+ quantity?: number;
15444
+ trade_item_id?: string | null;
15445
+ unit?: string;
15446
+ };
15447
+ Update: {
15448
+ component_type?: string;
15449
+ created_at?: string;
15450
+ id?: string;
15451
+ manufacture_product_id?: string;
15452
+ product_group_id?: string | null;
15453
+ quantity?: number;
15454
+ trade_item_id?: string | null;
15455
+ unit?: string;
15456
+ };
15457
+ Relationships: [{
15458
+ foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
15459
+ columns: ["manufacture_product_id"];
15460
+ isOneToOne: false;
15461
+ referencedRelation: "manufacture_product_possible_stock_view";
15462
+ referencedColumns: ["manufacture_product_id"];
15463
+ }, {
15464
+ foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
15465
+ columns: ["manufacture_product_id"];
15466
+ isOneToOne: false;
15467
+ referencedRelation: "manufacture_products";
15468
+ referencedColumns: ["id"];
15469
+ }, {
15470
+ foreignKeyName: "manufacture_product_components_product_group_id_fkey";
15471
+ columns: ["product_group_id"];
15472
+ isOneToOne: false;
15473
+ referencedRelation: "product_groups";
15474
+ referencedColumns: ["id"];
15475
+ }];
15476
+ };
15477
+ manufacture_products: {
15478
+ Row: {
15479
+ created_at: string;
15480
+ description: string | null;
15481
+ id: string;
15482
+ is_active: boolean;
15483
+ name: string;
15484
+ produced_stock: number;
15485
+ product_code: string;
15486
+ tenant_id: string;
15487
+ updated_at: string;
15488
+ };
15489
+ Insert: {
15490
+ created_at?: string;
15491
+ description?: string | null;
15492
+ id?: string;
15493
+ is_active?: boolean;
15494
+ name: string;
15495
+ produced_stock?: number;
15496
+ product_code: string;
15497
+ tenant_id: string;
15498
+ updated_at?: string;
15499
+ };
15500
+ Update: {
15501
+ created_at?: string;
15502
+ description?: string | null;
14382
15503
  id?: string;
14383
- imap_host?: string;
14384
- imap_port?: number;
14385
- imap_use_tls?: boolean;
14386
- imap_username?: string;
14387
- last_error?: string | null;
14388
- last_polled_at?: string | null;
14389
- last_uid_seen?: number;
14390
- polling_enabled?: boolean;
14391
- singleton?: boolean;
15504
+ is_active?: boolean;
15505
+ name?: string;
15506
+ produced_stock?: number;
15507
+ product_code?: string;
15508
+ tenant_id?: string;
14392
15509
  updated_at?: string;
14393
15510
  };
14394
15511
  Relationships: [];
@@ -15353,6 +16470,66 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
15353
16470
  };
15354
16471
  Relationships: [];
15355
16472
  };
16473
+ product_group_items: {
16474
+ Row: {
16475
+ created_at: string;
16476
+ id: string;
16477
+ product_group_id: string;
16478
+ quantity: number;
16479
+ trade_item_id: string;
16480
+ };
16481
+ Insert: {
16482
+ created_at?: string;
16483
+ id?: string;
16484
+ product_group_id: string;
16485
+ quantity?: number;
16486
+ trade_item_id: string;
16487
+ };
16488
+ Update: {
16489
+ created_at?: string;
16490
+ id?: string;
16491
+ product_group_id?: string;
16492
+ quantity?: number;
16493
+ trade_item_id?: string;
16494
+ };
16495
+ Relationships: [{
16496
+ foreignKeyName: "product_group_items_product_group_id_fkey";
16497
+ columns: ["product_group_id"];
16498
+ isOneToOne: false;
16499
+ referencedRelation: "product_groups";
16500
+ referencedColumns: ["id"];
16501
+ }];
16502
+ };
16503
+ product_groups: {
16504
+ Row: {
16505
+ created_at: string;
16506
+ description: string | null;
16507
+ id: string;
16508
+ is_active: boolean;
16509
+ name: string;
16510
+ tenant_id: string;
16511
+ updated_at: string;
16512
+ };
16513
+ Insert: {
16514
+ created_at?: string;
16515
+ description?: string | null;
16516
+ id?: string;
16517
+ is_active?: boolean;
16518
+ name: string;
16519
+ tenant_id: string;
16520
+ updated_at?: string;
16521
+ };
16522
+ Update: {
16523
+ created_at?: string;
16524
+ description?: string | null;
16525
+ id?: string;
16526
+ is_active?: boolean;
16527
+ name?: string;
16528
+ tenant_id?: string;
16529
+ updated_at?: string;
16530
+ };
16531
+ Relationships: [];
16532
+ };
15356
16533
  products: {
15357
16534
  Row: {
15358
16535
  barcode: string | null;
@@ -15372,6 +16549,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
15372
16549
  purchase_price: number | null;
15373
16550
  quantity: number;
15374
16551
  sale_price: number | null;
16552
+ trade_item_key: string | null;
15375
16553
  unit: string;
15376
16554
  updated_at: string;
15377
16555
  weight: string | null;
@@ -15394,6 +16572,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
15394
16572
  purchase_price?: number | null;
15395
16573
  quantity?: number;
15396
16574
  sale_price?: number | null;
16575
+ trade_item_key?: string | null;
15397
16576
  unit?: string;
15398
16577
  updated_at?: string;
15399
16578
  weight?: string | null;
@@ -15416,6 +16595,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
15416
16595
  purchase_price?: number | null;
15417
16596
  quantity?: number;
15418
16597
  sale_price?: number | null;
16598
+ trade_item_key?: string | null;
15419
16599
  unit?: string;
15420
16600
  updated_at?: string;
15421
16601
  weight?: string | null;
@@ -16235,6 +17415,60 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
16235
17415
  };
16236
17416
  Relationships: [];
16237
17417
  };
17418
+ stock_mutation_log: {
17419
+ Row: {
17420
+ connection_id: string | null;
17421
+ created_at: string;
17422
+ created_by: string | null;
17423
+ id: string;
17424
+ mutation_type: string;
17425
+ order_id: string | null;
17426
+ order_item_id: string | null;
17427
+ order_source: string | null;
17428
+ physical_after: number | null;
17429
+ physical_before: number | null;
17430
+ qty_delta: number;
17431
+ reason: string | null;
17432
+ reserved_after: number | null;
17433
+ reserved_before: number | null;
17434
+ trade_item_key: string;
17435
+ };
17436
+ Insert: {
17437
+ connection_id?: string | null;
17438
+ created_at?: string;
17439
+ created_by?: string | null;
17440
+ id?: string;
17441
+ mutation_type: string;
17442
+ order_id?: string | null;
17443
+ order_item_id?: string | null;
17444
+ order_source?: string | null;
17445
+ physical_after?: number | null;
17446
+ physical_before?: number | null;
17447
+ qty_delta: number;
17448
+ reason?: string | null;
17449
+ reserved_after?: number | null;
17450
+ reserved_before?: number | null;
17451
+ trade_item_key: string;
17452
+ };
17453
+ Update: {
17454
+ connection_id?: string | null;
17455
+ created_at?: string;
17456
+ created_by?: string | null;
17457
+ id?: string;
17458
+ mutation_type?: string;
17459
+ order_id?: string | null;
17460
+ order_item_id?: string | null;
17461
+ order_source?: string | null;
17462
+ physical_after?: number | null;
17463
+ physical_before?: number | null;
17464
+ qty_delta?: number;
17465
+ reason?: string | null;
17466
+ reserved_after?: number | null;
17467
+ reserved_before?: number | null;
17468
+ trade_item_key?: string;
17469
+ };
17470
+ Relationships: [];
17471
+ };
16238
17472
  supplier_products: {
16239
17473
  Row: {
16240
17474
  article_number: string | null;
@@ -16492,7 +17726,13 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
16492
17726
  connection_id: string | null;
16493
17727
  created_at: string;
16494
17728
  data: import("../integrations/supabase/types").Json;
17729
+ floriday_id: string | null;
17730
+ floriday_link_error: string | null;
17731
+ floriday_link_status: string;
16495
17732
  id: string;
17733
+ last_floriday_sync_at: string | null;
17734
+ missing_required_fields: string[];
17735
+ source: string;
16496
17736
  updated_at: string;
16497
17737
  user_id: string;
16498
17738
  };
@@ -16500,7 +17740,13 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
16500
17740
  connection_id?: string | null;
16501
17741
  created_at?: string;
16502
17742
  data?: import("../integrations/supabase/types").Json;
17743
+ floriday_id?: string | null;
17744
+ floriday_link_error?: string | null;
17745
+ floriday_link_status?: string;
16503
17746
  id?: string;
17747
+ last_floriday_sync_at?: string | null;
17748
+ missing_required_fields?: string[];
17749
+ source?: string;
16504
17750
  updated_at?: string;
16505
17751
  user_id: string;
16506
17752
  };
@@ -16508,7 +17754,55 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
16508
17754
  connection_id?: string | null;
16509
17755
  created_at?: string;
16510
17756
  data?: import("../integrations/supabase/types").Json;
17757
+ floriday_id?: string | null;
17758
+ floriday_link_error?: string | null;
17759
+ floriday_link_status?: string;
17760
+ id?: string;
17761
+ last_floriday_sync_at?: string | null;
17762
+ missing_required_fields?: string[];
17763
+ source?: string;
17764
+ updated_at?: string;
17765
+ user_id?: string;
17766
+ };
17767
+ Relationships: [];
17768
+ };
17769
+ trade_item_stock: {
17770
+ Row: {
17771
+ connection_id: string;
17772
+ created_at: string;
17773
+ id: string;
17774
+ incoming_stock: number;
17775
+ minimum_stock: number;
17776
+ notes: string | null;
17777
+ physical_stock: number;
17778
+ reserved_stock: number;
17779
+ trade_item_key: string;
17780
+ updated_at: string;
17781
+ user_id: string;
17782
+ };
17783
+ Insert: {
17784
+ connection_id: string;
17785
+ created_at?: string;
17786
+ id?: string;
17787
+ incoming_stock?: number;
17788
+ minimum_stock?: number;
17789
+ notes?: string | null;
17790
+ physical_stock?: number;
17791
+ reserved_stock?: number;
17792
+ trade_item_key: string;
17793
+ updated_at?: string;
17794
+ user_id: string;
17795
+ };
17796
+ Update: {
17797
+ connection_id?: string;
17798
+ created_at?: string;
16511
17799
  id?: string;
17800
+ incoming_stock?: number;
17801
+ minimum_stock?: number;
17802
+ notes?: string | null;
17803
+ physical_stock?: number;
17804
+ reserved_stock?: number;
17805
+ trade_item_key?: string;
16512
17806
  updated_at?: string;
16513
17807
  user_id?: string;
16514
17808
  };
@@ -16858,6 +18152,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
16858
18152
  };
16859
18153
  twinfield_invoice_sync_logs: {
16860
18154
  Row: {
18155
+ action_type: string | null;
16861
18156
  created_at: string;
16862
18157
  details: import("../integrations/supabase/types").Json | null;
16863
18158
  duration_ms: number | null;
@@ -16870,6 +18165,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
16870
18165
  user_id: string;
16871
18166
  };
16872
18167
  Insert: {
18168
+ action_type?: string | null;
16873
18169
  created_at?: string;
16874
18170
  details?: import("../integrations/supabase/types").Json | null;
16875
18171
  duration_ms?: number | null;
@@ -16882,6 +18178,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
16882
18178
  user_id: string;
16883
18179
  };
16884
18180
  Update: {
18181
+ action_type?: string | null;
16885
18182
  created_at?: string;
16886
18183
  details?: import("../integrations/supabase/types").Json | null;
16887
18184
  duration_ms?: number | null;
@@ -17117,6 +18414,57 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
17117
18414
  referencedColumns: ["id"];
17118
18415
  }];
17119
18416
  };
18417
+ twinfield_request_metrics: {
18418
+ Row: {
18419
+ bucket_hour: string;
18420
+ connection_id: string;
18421
+ error_count: number;
18422
+ rate_limited_count: number;
18423
+ request_count: number;
18424
+ updated_at: string;
18425
+ };
18426
+ Insert: {
18427
+ bucket_hour: string;
18428
+ connection_id: string;
18429
+ error_count?: number;
18430
+ rate_limited_count?: number;
18431
+ request_count?: number;
18432
+ updated_at?: string;
18433
+ };
18434
+ Update: {
18435
+ bucket_hour?: string;
18436
+ connection_id?: string;
18437
+ error_count?: number;
18438
+ rate_limited_count?: number;
18439
+ request_count?: number;
18440
+ updated_at?: string;
18441
+ };
18442
+ Relationships: [];
18443
+ };
18444
+ twinfield_session_cache: {
18445
+ Row: {
18446
+ cluster: string;
18447
+ created_at: string;
18448
+ expires_at: string;
18449
+ session_id: string;
18450
+ user_id: string;
18451
+ };
18452
+ Insert: {
18453
+ cluster: string;
18454
+ created_at?: string;
18455
+ expires_at: string;
18456
+ session_id: string;
18457
+ user_id: string;
18458
+ };
18459
+ Update: {
18460
+ cluster?: string;
18461
+ created_at?: string;
18462
+ expires_at?: string;
18463
+ session_id?: string;
18464
+ user_id?: string;
18465
+ };
18466
+ Relationships: [];
18467
+ };
17120
18468
  twinfield_settings: {
17121
18469
  Row: {
17122
18470
  active_environment: string;
@@ -17698,6 +19046,35 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
17698
19046
  };
17699
19047
  Relationships: [];
17700
19048
  };
19049
+ manufacture_product_possible_stock_view: {
19050
+ Row: {
19051
+ component_count: number | null;
19052
+ manufacture_product_id: string | null;
19053
+ possible_stock: number | null;
19054
+ };
19055
+ Relationships: [];
19056
+ };
19057
+ product_group_stock_view: {
19058
+ Row: {
19059
+ item_count: number | null;
19060
+ product_group_id: string | null;
19061
+ total_stock: number | null;
19062
+ };
19063
+ Relationships: [{
19064
+ foreignKeyName: "product_group_items_product_group_id_fkey";
19065
+ columns: ["product_group_id"];
19066
+ isOneToOne: false;
19067
+ referencedRelation: "product_groups";
19068
+ referencedColumns: ["id"];
19069
+ }];
19070
+ };
19071
+ trade_item_stock_view: {
19072
+ Row: {
19073
+ stock: number | null;
19074
+ trade_item_id: string | null;
19075
+ };
19076
+ Relationships: [];
19077
+ };
17701
19078
  v_external_customers_exact: {
17702
19079
  Row: {
17703
19080
  account_number: string | null;
@@ -17953,6 +19330,68 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
17953
19330
  };
17954
19331
  Returns: number;
17955
19332
  };
19333
+ afh_city_code: {
19334
+ Args: {
19335
+ _city: string;
19336
+ _country: string;
19337
+ };
19338
+ Returns: string;
19339
+ };
19340
+ afh_normalize_country: {
19341
+ Args: {
19342
+ _raw: string;
19343
+ };
19344
+ Returns: string;
19345
+ };
19346
+ afh_normalize_nl_province: {
19347
+ Args: {
19348
+ _raw: string;
19349
+ };
19350
+ Returns: string;
19351
+ };
19352
+ afh_subtract_workdays: {
19353
+ Args: {
19354
+ _date: string;
19355
+ _days: number;
19356
+ };
19357
+ Returns: string;
19358
+ };
19359
+ apply_stock_consumption: {
19360
+ Args: {
19361
+ p_order_id: string;
19362
+ p_order_item_id: string;
19363
+ p_qty: number;
19364
+ p_reason: string;
19365
+ p_source: string;
19366
+ p_trade_item_key: string;
19367
+ };
19368
+ Returns: undefined;
19369
+ };
19370
+ apply_stock_reservation: {
19371
+ Args: {
19372
+ p_order_id: string;
19373
+ p_order_item_id: string;
19374
+ p_qty: number;
19375
+ p_reason: string;
19376
+ p_source: string;
19377
+ p_trade_item_key: string;
19378
+ };
19379
+ Returns: undefined;
19380
+ };
19381
+ assign_cart_numbers: {
19382
+ Args: {
19383
+ p_carts: import("../integrations/supabase/types").Json;
19384
+ };
19385
+ Returns: {
19386
+ cart_index: number;
19387
+ cart_number: string;
19388
+ day_seq: number;
19389
+ order_id: string;
19390
+ order_source: string;
19391
+ pick_date: string;
19392
+ status: string;
19393
+ }[];
19394
+ };
17956
19395
  assign_floriday_order_numbers: {
17957
19396
  Args: {
17958
19397
  p_ids: string[];
@@ -17962,6 +19401,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
17962
19401
  order_number: string;
17963
19402
  }[];
17964
19403
  };
19404
+ backfill_open_order_reservations: {
19405
+ Args: never;
19406
+ Returns: {
19407
+ processed_items: number;
19408
+ }[];
19409
+ };
17965
19410
  call_exact_route: {
17966
19411
  Args: {
17967
19412
  path: string;
@@ -17972,10 +19417,37 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
17972
19417
  Args: never;
17973
19418
  Returns: number;
17974
19419
  };
19420
+ control_get_todays_carts: {
19421
+ Args: never;
19422
+ Returns: {
19423
+ cart_index: number;
19424
+ cart_number: string;
19425
+ cart_number_id: string;
19426
+ order_id: string;
19427
+ order_source: string;
19428
+ pick_date: string;
19429
+ status: string;
19430
+ }[];
19431
+ };
19432
+ count_distinct_regulatory_products: {
19433
+ Args: never;
19434
+ Returns: number;
19435
+ };
17975
19436
  current_monteur_id: {
17976
19437
  Args: never;
17977
19438
  Returns: string;
17978
19439
  };
19440
+ dashboard_alert_counts: {
19441
+ Args: never;
19442
+ Returns: import("../integrations/supabase/types").Json;
19443
+ };
19444
+ dashboard_alert_rows: {
19445
+ Args: {
19446
+ check_id: string;
19447
+ row_limit?: number;
19448
+ };
19449
+ Returns: import("../integrations/supabase/types").Json;
19450
+ };
17979
19451
  dashboard_list_public_schema: {
17980
19452
  Args: never;
17981
19453
  Returns: {
@@ -17984,6 +19456,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
17984
19456
  table_name: string;
17985
19457
  }[];
17986
19458
  };
19459
+ dispatch_carrier_signups_sql: {
19460
+ Args: {
19461
+ _catchup?: string;
19462
+ };
19463
+ Returns: import("../integrations/supabase/types").Json;
19464
+ };
17987
19465
  email_auth_decrypt: {
17988
19466
  Args: {
17989
19467
  cipher: string;
@@ -18056,6 +19534,19 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
18056
19534
  };
18057
19535
  Returns: boolean;
18058
19536
  };
19537
+ find_trade_item_key_by_name: {
19538
+ Args: {
19539
+ p_name: string;
19540
+ };
19541
+ Returns: string;
19542
+ };
19543
+ format_cart_number: {
19544
+ Args: {
19545
+ p_pick_date: string;
19546
+ p_seq: number;
19547
+ };
19548
+ Returns: string;
19549
+ };
18059
19550
  get_active_floriday_connection_public: {
18060
19551
  Args: never;
18061
19552
  Returns: {
@@ -18260,14 +19751,29 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
18260
19751
  };
18261
19752
  Returns: undefined;
18262
19753
  };
19754
+ pickstation_set_cart_status: {
19755
+ Args: {
19756
+ p_cart_index: number;
19757
+ p_order_id: string;
19758
+ p_order_source: string;
19759
+ p_status: string;
19760
+ };
19761
+ Returns: undefined;
19762
+ };
18263
19763
  refresh_floricode_derived_code_lists: {
18264
19764
  Args: never;
18265
19765
  Returns: {
18266
- out_environment: string;
18267
- out_list_name: string;
18268
- out_row_count: number;
19766
+ environment: string;
19767
+ list_name: string;
19768
+ row_count: number;
18269
19769
  }[];
18270
19770
  };
19771
+ refresh_floricode_derived_for_product: {
19772
+ Args: {
19773
+ p_product_code: string;
19774
+ };
19775
+ Returns: number;
19776
+ };
18271
19777
  reset_floriday_sync_cursor: {
18272
19778
  Args: {
18273
19779
  p_connection_id: string;
@@ -18585,6 +20091,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
18585
20091
  signupMailEnabled?: boolean;
18586
20092
  signupMailLeadMinutes?: number;
18587
20093
  signupMailPurpose?: string;
20094
+ pickWeekdays?: number[];
18588
20095
  }) => {
18589
20096
  pickDaysBeforeTransport: number | undefined;
18590
20097
  transportRegisterDaysBefore: number | undefined;
@@ -18593,5 +20100,6 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
18593
20100
  signupMailEnabled: boolean | undefined;
18594
20101
  signupMailLeadMinutes: number | undefined;
18595
20102
  signupMailPurpose: string | undefined;
20103
+ pickWeekdays: number[] | undefined;
18596
20104
  }, Promise<AfhandelingSettings>>;
18597
20105
  //# sourceMappingURL=afhandelingSettings.functions.d.ts.map