@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
@@ -24,6 +24,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
24
24
  max_workdays_earlier_pick: number;
25
25
  pick_days_before_transport: number;
26
26
  pick_distribution_enabled: boolean;
27
+ pick_weekdays: number[];
27
28
  signup_mail_enabled: boolean;
28
29
  signup_mail_lead_minutes: number;
29
30
  signup_mail_purpose: string;
@@ -37,6 +38,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
37
38
  max_workdays_earlier_pick?: number;
38
39
  pick_days_before_transport?: number;
39
40
  pick_distribution_enabled?: boolean;
41
+ pick_weekdays?: number[];
40
42
  signup_mail_enabled?: boolean;
41
43
  signup_mail_lead_minutes?: number;
42
44
  signup_mail_purpose?: string;
@@ -50,6 +52,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
50
52
  max_workdays_earlier_pick?: number;
51
53
  pick_days_before_transport?: number;
52
54
  pick_distribution_enabled?: boolean;
55
+ pick_weekdays?: number[];
53
56
  signup_mail_enabled?: boolean;
54
57
  signup_mail_lead_minutes?: number;
55
58
  signup_mail_purpose?: string;
@@ -461,6 +464,48 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
461
464
  referencedColumns: ["id"];
462
465
  }];
463
466
  };
467
+ carrier_signup_dispatch_runs: {
468
+ Row: {
469
+ detail: import("../integrations/supabase/types").Json | null;
470
+ error: string | null;
471
+ finished_at: string | null;
472
+ groups: number;
473
+ id: string;
474
+ ok: boolean;
475
+ reason: string | null;
476
+ sent: number;
477
+ skipped: import("../integrations/supabase/types").Json;
478
+ started_at: string;
479
+ unassigned: import("../integrations/supabase/types").Json;
480
+ };
481
+ Insert: {
482
+ detail?: import("../integrations/supabase/types").Json | null;
483
+ error?: string | null;
484
+ finished_at?: string | null;
485
+ groups?: number;
486
+ id?: string;
487
+ ok?: boolean;
488
+ reason?: string | null;
489
+ sent?: number;
490
+ skipped?: import("../integrations/supabase/types").Json;
491
+ started_at?: string;
492
+ unassigned?: import("../integrations/supabase/types").Json;
493
+ };
494
+ Update: {
495
+ detail?: import("../integrations/supabase/types").Json | null;
496
+ error?: string | null;
497
+ finished_at?: string | null;
498
+ groups?: number;
499
+ id?: string;
500
+ ok?: boolean;
501
+ reason?: string | null;
502
+ sent?: number;
503
+ skipped?: import("../integrations/supabase/types").Json;
504
+ started_at?: string;
505
+ unassigned?: import("../integrations/supabase/types").Json;
506
+ };
507
+ Relationships: [];
508
+ };
464
509
  carrier_signup_dispatches: {
465
510
  Row: {
466
511
  carrier_id: string;
@@ -512,6 +557,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
512
557
  contact_person: string | null;
513
558
  created_at: string;
514
559
  delivery_days: number | null;
560
+ delivery_weekdays: number[];
515
561
  email: string | null;
516
562
  id: string;
517
563
  is_default: boolean;
@@ -519,6 +565,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
519
565
  notes: string | null;
520
566
  phone: string | null;
521
567
  pickup_moments: import("../integrations/supabase/types").Json;
568
+ pickup_weekdays: number[];
522
569
  service_cities: string[];
523
570
  service_countries: string[];
524
571
  service_provinces: string[];
@@ -534,6 +581,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
534
581
  contact_person?: string | null;
535
582
  created_at?: string;
536
583
  delivery_days?: number | null;
584
+ delivery_weekdays?: number[];
537
585
  email?: string | null;
538
586
  id?: string;
539
587
  is_default?: boolean;
@@ -541,6 +589,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
541
589
  notes?: string | null;
542
590
  phone?: string | null;
543
591
  pickup_moments?: import("../integrations/supabase/types").Json;
592
+ pickup_weekdays?: number[];
544
593
  service_cities?: string[];
545
594
  service_countries?: string[];
546
595
  service_provinces?: string[];
@@ -556,6 +605,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
556
605
  contact_person?: string | null;
557
606
  created_at?: string;
558
607
  delivery_days?: number | null;
608
+ delivery_weekdays?: number[];
559
609
  email?: string | null;
560
610
  id?: string;
561
611
  is_default?: boolean;
@@ -563,6 +613,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
563
613
  notes?: string | null;
564
614
  phone?: string | null;
565
615
  pickup_moments?: import("../integrations/supabase/types").Json;
616
+ pickup_weekdays?: number[];
566
617
  service_cities?: string[];
567
618
  service_countries?: string[];
568
619
  service_provinces?: string[];
@@ -575,6 +626,180 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
575
626
  };
576
627
  Relationships: [];
577
628
  };
629
+ cart_control_draft: {
630
+ Row: {
631
+ cart_states: import("../integrations/supabase/types").Json;
632
+ checked_keys: import("../integrations/supabase/types").Json;
633
+ draft_date: string;
634
+ form_state: import("../integrations/supabase/types").Json;
635
+ notes: string;
636
+ updated_at: string;
637
+ user_id: string;
638
+ };
639
+ Insert: {
640
+ cart_states?: import("../integrations/supabase/types").Json;
641
+ checked_keys?: import("../integrations/supabase/types").Json;
642
+ draft_date: string;
643
+ form_state?: import("../integrations/supabase/types").Json;
644
+ notes?: string;
645
+ updated_at?: string;
646
+ user_id: string;
647
+ };
648
+ Update: {
649
+ cart_states?: import("../integrations/supabase/types").Json;
650
+ checked_keys?: import("../integrations/supabase/types").Json;
651
+ draft_date?: string;
652
+ form_state?: import("../integrations/supabase/types").Json;
653
+ notes?: string;
654
+ updated_at?: string;
655
+ user_id?: string;
656
+ };
657
+ Relationships: [];
658
+ };
659
+ cart_control_items: {
660
+ Row: {
661
+ action: string;
662
+ block_reason: string | null;
663
+ carrier_name: string | null;
664
+ cart_index: number;
665
+ cart_number_id: string | null;
666
+ cart_number_label: string | null;
667
+ created_at: string;
668
+ customer_name: string | null;
669
+ delivery_date: string | null;
670
+ id: string;
671
+ new_pick_date: string | null;
672
+ order_id: string;
673
+ order_number: string | null;
674
+ order_source: string;
675
+ pickup_date: string | null;
676
+ session_id: string;
677
+ };
678
+ Insert: {
679
+ action: string;
680
+ block_reason?: string | null;
681
+ carrier_name?: string | null;
682
+ cart_index: number;
683
+ cart_number_id?: string | null;
684
+ cart_number_label?: string | null;
685
+ created_at?: string;
686
+ customer_name?: string | null;
687
+ delivery_date?: string | null;
688
+ id?: string;
689
+ new_pick_date?: string | null;
690
+ order_id: string;
691
+ order_number?: string | null;
692
+ order_source: string;
693
+ pickup_date?: string | null;
694
+ session_id: string;
695
+ };
696
+ Update: {
697
+ action?: string;
698
+ block_reason?: string | null;
699
+ carrier_name?: string | null;
700
+ cart_index?: number;
701
+ cart_number_id?: string | null;
702
+ cart_number_label?: string | null;
703
+ created_at?: string;
704
+ customer_name?: string | null;
705
+ delivery_date?: string | null;
706
+ id?: string;
707
+ new_pick_date?: string | null;
708
+ order_id?: string;
709
+ order_number?: string | null;
710
+ order_source?: string;
711
+ pickup_date?: string | null;
712
+ session_id?: string;
713
+ };
714
+ Relationships: [{
715
+ foreignKeyName: "cart_control_items_session_id_fkey";
716
+ columns: ["session_id"];
717
+ isOneToOne: false;
718
+ referencedRelation: "cart_control_sessions";
719
+ referencedColumns: ["id"];
720
+ }];
721
+ };
722
+ cart_control_sessions: {
723
+ Row: {
724
+ blocked_count: number;
725
+ checked_count: number;
726
+ control_date: string;
727
+ created_at: string;
728
+ id: string;
729
+ notes: string | null;
730
+ performed_at: string;
731
+ rescheduled_count: number;
732
+ stock_consumed_at: string | null;
733
+ total_carts: number;
734
+ updated_at: string;
735
+ user_id: string;
736
+ };
737
+ Insert: {
738
+ blocked_count?: number;
739
+ checked_count?: number;
740
+ control_date?: string;
741
+ created_at?: string;
742
+ id?: string;
743
+ notes?: string | null;
744
+ performed_at?: string;
745
+ rescheduled_count?: number;
746
+ stock_consumed_at?: string | null;
747
+ total_carts?: number;
748
+ updated_at?: string;
749
+ user_id: string;
750
+ };
751
+ Update: {
752
+ blocked_count?: number;
753
+ checked_count?: number;
754
+ control_date?: string;
755
+ created_at?: string;
756
+ id?: string;
757
+ notes?: string | null;
758
+ performed_at?: string;
759
+ rescheduled_count?: number;
760
+ stock_consumed_at?: string | null;
761
+ total_carts?: number;
762
+ updated_at?: string;
763
+ user_id?: string;
764
+ };
765
+ Relationships: [];
766
+ };
767
+ cart_numbers: {
768
+ Row: {
769
+ assigned_at: string;
770
+ cart_index: number;
771
+ cart_number: string;
772
+ day_seq: number;
773
+ id: string;
774
+ order_id: string;
775
+ order_source: string;
776
+ pick_date: string;
777
+ status: string;
778
+ };
779
+ Insert: {
780
+ assigned_at?: string;
781
+ cart_index: number;
782
+ cart_number: string;
783
+ day_seq: number;
784
+ id?: string;
785
+ order_id: string;
786
+ order_source: string;
787
+ pick_date: string;
788
+ status?: string;
789
+ };
790
+ Update: {
791
+ assigned_at?: string;
792
+ cart_index?: number;
793
+ cart_number?: string;
794
+ day_seq?: number;
795
+ id?: string;
796
+ order_id?: string;
797
+ order_source?: string;
798
+ pick_date?: string;
799
+ status?: string;
800
+ };
801
+ Relationships: [];
802
+ };
578
803
  cart_pick_overrides: {
579
804
  Row: {
580
805
  cart_index: number;
@@ -1247,6 +1472,54 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
1247
1472
  referencedColumns: ["id"];
1248
1473
  }];
1249
1474
  };
1475
+ dashboard_critical_alerts: {
1476
+ Row: {
1477
+ alert_key: string;
1478
+ alert_type: string;
1479
+ created_at: string;
1480
+ description: string | null;
1481
+ id: string;
1482
+ metadata: import("../integrations/supabase/types").Json | null;
1483
+ priority: string;
1484
+ raised_at: string;
1485
+ related_cart_ids: string[] | null;
1486
+ resolved_at: string | null;
1487
+ title: string;
1488
+ updated_at: string;
1489
+ user_id: string;
1490
+ };
1491
+ Insert: {
1492
+ alert_key: string;
1493
+ alert_type: string;
1494
+ created_at?: string;
1495
+ description?: string | null;
1496
+ id?: string;
1497
+ metadata?: import("../integrations/supabase/types").Json | null;
1498
+ priority?: string;
1499
+ raised_at?: string;
1500
+ related_cart_ids?: string[] | null;
1501
+ resolved_at?: string | null;
1502
+ title: string;
1503
+ updated_at?: string;
1504
+ user_id: string;
1505
+ };
1506
+ Update: {
1507
+ alert_key?: string;
1508
+ alert_type?: string;
1509
+ created_at?: string;
1510
+ description?: string | null;
1511
+ id?: string;
1512
+ metadata?: import("../integrations/supabase/types").Json | null;
1513
+ priority?: string;
1514
+ raised_at?: string;
1515
+ related_cart_ids?: string[] | null;
1516
+ resolved_at?: string | null;
1517
+ title?: string;
1518
+ updated_at?: string;
1519
+ user_id?: string;
1520
+ };
1521
+ Relationships: [];
1522
+ };
1250
1523
  dashboard_daily_reports: {
1251
1524
  Row: {
1252
1525
  created_at: string;
@@ -2749,6 +3022,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
2749
3022
  };
2750
3023
  floricode_sync_state: {
2751
3024
  Row: {
3025
+ cursor_skip: number;
2752
3026
  error_message: string | null;
2753
3027
  last_change_date_time: string | null;
2754
3028
  last_sequence_number: number;
@@ -2758,6 +3032,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
2758
3032
  updated_at: string;
2759
3033
  };
2760
3034
  Insert: {
3035
+ cursor_skip?: number;
2761
3036
  error_message?: string | null;
2762
3037
  last_change_date_time?: string | null;
2763
3038
  last_sequence_number?: number;
@@ -2767,6 +3042,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
2767
3042
  updated_at?: string;
2768
3043
  };
2769
3044
  Update: {
3045
+ cursor_skip?: number;
2770
3046
  error_message?: string | null;
2771
3047
  last_change_date_time?: string | null;
2772
3048
  last_sequence_number?: number;
@@ -5114,6 +5390,93 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
5114
5390
  };
5115
5391
  Relationships: [];
5116
5392
  };
5393
+ manufacture_product_components: {
5394
+ Row: {
5395
+ component_type: string;
5396
+ created_at: string;
5397
+ id: string;
5398
+ manufacture_product_id: string;
5399
+ product_group_id: string | null;
5400
+ quantity: number;
5401
+ trade_item_id: string | null;
5402
+ unit: string;
5403
+ };
5404
+ Insert: {
5405
+ component_type: string;
5406
+ created_at?: string;
5407
+ id?: string;
5408
+ manufacture_product_id: string;
5409
+ product_group_id?: string | null;
5410
+ quantity?: number;
5411
+ trade_item_id?: string | null;
5412
+ unit?: string;
5413
+ };
5414
+ Update: {
5415
+ component_type?: string;
5416
+ created_at?: string;
5417
+ id?: string;
5418
+ manufacture_product_id?: string;
5419
+ product_group_id?: string | null;
5420
+ quantity?: number;
5421
+ trade_item_id?: string | null;
5422
+ unit?: string;
5423
+ };
5424
+ Relationships: [{
5425
+ foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
5426
+ columns: ["manufacture_product_id"];
5427
+ isOneToOne: false;
5428
+ referencedRelation: "manufacture_product_possible_stock_view";
5429
+ referencedColumns: ["manufacture_product_id"];
5430
+ }, {
5431
+ foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
5432
+ columns: ["manufacture_product_id"];
5433
+ isOneToOne: false;
5434
+ referencedRelation: "manufacture_products";
5435
+ referencedColumns: ["id"];
5436
+ }, {
5437
+ foreignKeyName: "manufacture_product_components_product_group_id_fkey";
5438
+ columns: ["product_group_id"];
5439
+ isOneToOne: false;
5440
+ referencedRelation: "product_groups";
5441
+ referencedColumns: ["id"];
5442
+ }];
5443
+ };
5444
+ manufacture_products: {
5445
+ Row: {
5446
+ created_at: string;
5447
+ description: string | null;
5448
+ id: string;
5449
+ is_active: boolean;
5450
+ name: string;
5451
+ produced_stock: number;
5452
+ product_code: string;
5453
+ tenant_id: string;
5454
+ updated_at: string;
5455
+ };
5456
+ Insert: {
5457
+ created_at?: string;
5458
+ description?: string | null;
5459
+ id?: string;
5460
+ is_active?: boolean;
5461
+ name: string;
5462
+ produced_stock?: number;
5463
+ product_code: string;
5464
+ tenant_id: string;
5465
+ updated_at?: string;
5466
+ };
5467
+ Update: {
5468
+ created_at?: string;
5469
+ description?: string | null;
5470
+ id?: string;
5471
+ is_active?: boolean;
5472
+ name?: string;
5473
+ produced_stock?: number;
5474
+ product_code?: string;
5475
+ tenant_id?: string;
5476
+ updated_at?: string;
5477
+ };
5478
+ Relationships: [];
5479
+ };
5117
5480
  monteurs: {
5118
5481
  Row: {
5119
5482
  avatar_url: string | null;
@@ -6074,6 +6437,66 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6074
6437
  };
6075
6438
  Relationships: [];
6076
6439
  };
6440
+ product_group_items: {
6441
+ Row: {
6442
+ created_at: string;
6443
+ id: string;
6444
+ product_group_id: string;
6445
+ quantity: number;
6446
+ trade_item_id: string;
6447
+ };
6448
+ Insert: {
6449
+ created_at?: string;
6450
+ id?: string;
6451
+ product_group_id: string;
6452
+ quantity?: number;
6453
+ trade_item_id: string;
6454
+ };
6455
+ Update: {
6456
+ created_at?: string;
6457
+ id?: string;
6458
+ product_group_id?: string;
6459
+ quantity?: number;
6460
+ trade_item_id?: string;
6461
+ };
6462
+ Relationships: [{
6463
+ foreignKeyName: "product_group_items_product_group_id_fkey";
6464
+ columns: ["product_group_id"];
6465
+ isOneToOne: false;
6466
+ referencedRelation: "product_groups";
6467
+ referencedColumns: ["id"];
6468
+ }];
6469
+ };
6470
+ product_groups: {
6471
+ Row: {
6472
+ created_at: string;
6473
+ description: string | null;
6474
+ id: string;
6475
+ is_active: boolean;
6476
+ name: string;
6477
+ tenant_id: string;
6478
+ updated_at: string;
6479
+ };
6480
+ Insert: {
6481
+ created_at?: string;
6482
+ description?: string | null;
6483
+ id?: string;
6484
+ is_active?: boolean;
6485
+ name: string;
6486
+ tenant_id: string;
6487
+ updated_at?: string;
6488
+ };
6489
+ Update: {
6490
+ created_at?: string;
6491
+ description?: string | null;
6492
+ id?: string;
6493
+ is_active?: boolean;
6494
+ name?: string;
6495
+ tenant_id?: string;
6496
+ updated_at?: string;
6497
+ };
6498
+ Relationships: [];
6499
+ };
6077
6500
  products: {
6078
6501
  Row: {
6079
6502
  barcode: string | null;
@@ -6093,6 +6516,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6093
6516
  purchase_price: number | null;
6094
6517
  quantity: number;
6095
6518
  sale_price: number | null;
6519
+ trade_item_key: string | null;
6096
6520
  unit: string;
6097
6521
  updated_at: string;
6098
6522
  weight: string | null;
@@ -6115,6 +6539,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6115
6539
  purchase_price?: number | null;
6116
6540
  quantity?: number;
6117
6541
  sale_price?: number | null;
6542
+ trade_item_key?: string | null;
6118
6543
  unit?: string;
6119
6544
  updated_at?: string;
6120
6545
  weight?: string | null;
@@ -6137,6 +6562,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6137
6562
  purchase_price?: number | null;
6138
6563
  quantity?: number;
6139
6564
  sale_price?: number | null;
6565
+ trade_item_key?: string | null;
6140
6566
  unit?: string;
6141
6567
  updated_at?: string;
6142
6568
  weight?: string | null;
@@ -6956,6 +7382,60 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6956
7382
  };
6957
7383
  Relationships: [];
6958
7384
  };
7385
+ stock_mutation_log: {
7386
+ Row: {
7387
+ connection_id: string | null;
7388
+ created_at: string;
7389
+ created_by: string | null;
7390
+ id: string;
7391
+ mutation_type: string;
7392
+ order_id: string | null;
7393
+ order_item_id: string | null;
7394
+ order_source: string | null;
7395
+ physical_after: number | null;
7396
+ physical_before: number | null;
7397
+ qty_delta: number;
7398
+ reason: string | null;
7399
+ reserved_after: number | null;
7400
+ reserved_before: number | null;
7401
+ trade_item_key: string;
7402
+ };
7403
+ Insert: {
7404
+ connection_id?: string | null;
7405
+ created_at?: string;
7406
+ created_by?: string | null;
7407
+ id?: string;
7408
+ mutation_type: string;
7409
+ order_id?: string | null;
7410
+ order_item_id?: string | null;
7411
+ order_source?: string | null;
7412
+ physical_after?: number | null;
7413
+ physical_before?: number | null;
7414
+ qty_delta: number;
7415
+ reason?: string | null;
7416
+ reserved_after?: number | null;
7417
+ reserved_before?: number | null;
7418
+ trade_item_key: string;
7419
+ };
7420
+ Update: {
7421
+ connection_id?: string | null;
7422
+ created_at?: string;
7423
+ created_by?: string | null;
7424
+ id?: string;
7425
+ mutation_type?: string;
7426
+ order_id?: string | null;
7427
+ order_item_id?: string | null;
7428
+ order_source?: string | null;
7429
+ physical_after?: number | null;
7430
+ physical_before?: number | null;
7431
+ qty_delta?: number;
7432
+ reason?: string | null;
7433
+ reserved_after?: number | null;
7434
+ reserved_before?: number | null;
7435
+ trade_item_key?: string;
7436
+ };
7437
+ Relationships: [];
7438
+ };
6959
7439
  supplier_products: {
6960
7440
  Row: {
6961
7441
  article_number: string | null;
@@ -7213,7 +7693,13 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7213
7693
  connection_id: string | null;
7214
7694
  created_at: string;
7215
7695
  data: import("../integrations/supabase/types").Json;
7696
+ floriday_id: string | null;
7697
+ floriday_link_error: string | null;
7698
+ floriday_link_status: string;
7216
7699
  id: string;
7700
+ last_floriday_sync_at: string | null;
7701
+ missing_required_fields: string[];
7702
+ source: string;
7217
7703
  updated_at: string;
7218
7704
  user_id: string;
7219
7705
  };
@@ -7221,7 +7707,13 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7221
7707
  connection_id?: string | null;
7222
7708
  created_at?: string;
7223
7709
  data?: import("../integrations/supabase/types").Json;
7710
+ floriday_id?: string | null;
7711
+ floriday_link_error?: string | null;
7712
+ floriday_link_status?: string;
7224
7713
  id?: string;
7714
+ last_floriday_sync_at?: string | null;
7715
+ missing_required_fields?: string[];
7716
+ source?: string;
7225
7717
  updated_at?: string;
7226
7718
  user_id: string;
7227
7719
  };
@@ -7229,7 +7721,55 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7229
7721
  connection_id?: string | null;
7230
7722
  created_at?: string;
7231
7723
  data?: import("../integrations/supabase/types").Json;
7724
+ floriday_id?: string | null;
7725
+ floriday_link_error?: string | null;
7726
+ floriday_link_status?: string;
7727
+ id?: string;
7728
+ last_floriday_sync_at?: string | null;
7729
+ missing_required_fields?: string[];
7730
+ source?: string;
7731
+ updated_at?: string;
7732
+ user_id?: string;
7733
+ };
7734
+ Relationships: [];
7735
+ };
7736
+ trade_item_stock: {
7737
+ Row: {
7738
+ connection_id: string;
7739
+ created_at: string;
7740
+ id: string;
7741
+ incoming_stock: number;
7742
+ minimum_stock: number;
7743
+ notes: string | null;
7744
+ physical_stock: number;
7745
+ reserved_stock: number;
7746
+ trade_item_key: string;
7747
+ updated_at: string;
7748
+ user_id: string;
7749
+ };
7750
+ Insert: {
7751
+ connection_id: string;
7752
+ created_at?: string;
7753
+ id?: string;
7754
+ incoming_stock?: number;
7755
+ minimum_stock?: number;
7756
+ notes?: string | null;
7757
+ physical_stock?: number;
7758
+ reserved_stock?: number;
7759
+ trade_item_key: string;
7760
+ updated_at?: string;
7761
+ user_id: string;
7762
+ };
7763
+ Update: {
7764
+ connection_id?: string;
7765
+ created_at?: string;
7232
7766
  id?: string;
7767
+ incoming_stock?: number;
7768
+ minimum_stock?: number;
7769
+ notes?: string | null;
7770
+ physical_stock?: number;
7771
+ reserved_stock?: number;
7772
+ trade_item_key?: string;
7233
7773
  updated_at?: string;
7234
7774
  user_id?: string;
7235
7775
  };
@@ -7579,6 +8119,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7579
8119
  };
7580
8120
  twinfield_invoice_sync_logs: {
7581
8121
  Row: {
8122
+ action_type: string | null;
7582
8123
  created_at: string;
7583
8124
  details: import("../integrations/supabase/types").Json | null;
7584
8125
  duration_ms: number | null;
@@ -7591,6 +8132,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7591
8132
  user_id: string;
7592
8133
  };
7593
8134
  Insert: {
8135
+ action_type?: string | null;
7594
8136
  created_at?: string;
7595
8137
  details?: import("../integrations/supabase/types").Json | null;
7596
8138
  duration_ms?: number | null;
@@ -7603,6 +8145,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7603
8145
  user_id: string;
7604
8146
  };
7605
8147
  Update: {
8148
+ action_type?: string | null;
7606
8149
  created_at?: string;
7607
8150
  details?: import("../integrations/supabase/types").Json | null;
7608
8151
  duration_ms?: number | null;
@@ -7838,6 +8381,57 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7838
8381
  referencedColumns: ["id"];
7839
8382
  }];
7840
8383
  };
8384
+ twinfield_request_metrics: {
8385
+ Row: {
8386
+ bucket_hour: string;
8387
+ connection_id: string;
8388
+ error_count: number;
8389
+ rate_limited_count: number;
8390
+ request_count: number;
8391
+ updated_at: string;
8392
+ };
8393
+ Insert: {
8394
+ bucket_hour: string;
8395
+ connection_id: string;
8396
+ error_count?: number;
8397
+ rate_limited_count?: number;
8398
+ request_count?: number;
8399
+ updated_at?: string;
8400
+ };
8401
+ Update: {
8402
+ bucket_hour?: string;
8403
+ connection_id?: string;
8404
+ error_count?: number;
8405
+ rate_limited_count?: number;
8406
+ request_count?: number;
8407
+ updated_at?: string;
8408
+ };
8409
+ Relationships: [];
8410
+ };
8411
+ twinfield_session_cache: {
8412
+ Row: {
8413
+ cluster: string;
8414
+ created_at: string;
8415
+ expires_at: string;
8416
+ session_id: string;
8417
+ user_id: string;
8418
+ };
8419
+ Insert: {
8420
+ cluster: string;
8421
+ created_at?: string;
8422
+ expires_at: string;
8423
+ session_id: string;
8424
+ user_id: string;
8425
+ };
8426
+ Update: {
8427
+ cluster?: string;
8428
+ created_at?: string;
8429
+ expires_at?: string;
8430
+ session_id?: string;
8431
+ user_id?: string;
8432
+ };
8433
+ Relationships: [];
8434
+ };
7841
8435
  twinfield_settings: {
7842
8436
  Row: {
7843
8437
  active_environment: string;
@@ -8419,6 +9013,35 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
8419
9013
  };
8420
9014
  Relationships: [];
8421
9015
  };
9016
+ manufacture_product_possible_stock_view: {
9017
+ Row: {
9018
+ component_count: number | null;
9019
+ manufacture_product_id: string | null;
9020
+ possible_stock: number | null;
9021
+ };
9022
+ Relationships: [];
9023
+ };
9024
+ product_group_stock_view: {
9025
+ Row: {
9026
+ item_count: number | null;
9027
+ product_group_id: string | null;
9028
+ total_stock: number | null;
9029
+ };
9030
+ Relationships: [{
9031
+ foreignKeyName: "product_group_items_product_group_id_fkey";
9032
+ columns: ["product_group_id"];
9033
+ isOneToOne: false;
9034
+ referencedRelation: "product_groups";
9035
+ referencedColumns: ["id"];
9036
+ }];
9037
+ };
9038
+ trade_item_stock_view: {
9039
+ Row: {
9040
+ stock: number | null;
9041
+ trade_item_id: string | null;
9042
+ };
9043
+ Relationships: [];
9044
+ };
8422
9045
  v_external_customers_exact: {
8423
9046
  Row: {
8424
9047
  account_number: string | null;
@@ -8674,6 +9297,68 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
8674
9297
  };
8675
9298
  Returns: number;
8676
9299
  };
9300
+ afh_city_code: {
9301
+ Args: {
9302
+ _city: string;
9303
+ _country: string;
9304
+ };
9305
+ Returns: string;
9306
+ };
9307
+ afh_normalize_country: {
9308
+ Args: {
9309
+ _raw: string;
9310
+ };
9311
+ Returns: string;
9312
+ };
9313
+ afh_normalize_nl_province: {
9314
+ Args: {
9315
+ _raw: string;
9316
+ };
9317
+ Returns: string;
9318
+ };
9319
+ afh_subtract_workdays: {
9320
+ Args: {
9321
+ _date: string;
9322
+ _days: number;
9323
+ };
9324
+ Returns: string;
9325
+ };
9326
+ apply_stock_consumption: {
9327
+ Args: {
9328
+ p_order_id: string;
9329
+ p_order_item_id: string;
9330
+ p_qty: number;
9331
+ p_reason: string;
9332
+ p_source: string;
9333
+ p_trade_item_key: string;
9334
+ };
9335
+ Returns: undefined;
9336
+ };
9337
+ apply_stock_reservation: {
9338
+ Args: {
9339
+ p_order_id: string;
9340
+ p_order_item_id: string;
9341
+ p_qty: number;
9342
+ p_reason: string;
9343
+ p_source: string;
9344
+ p_trade_item_key: string;
9345
+ };
9346
+ Returns: undefined;
9347
+ };
9348
+ assign_cart_numbers: {
9349
+ Args: {
9350
+ p_carts: import("../integrations/supabase/types").Json;
9351
+ };
9352
+ Returns: {
9353
+ cart_index: number;
9354
+ cart_number: string;
9355
+ day_seq: number;
9356
+ order_id: string;
9357
+ order_source: string;
9358
+ pick_date: string;
9359
+ status: string;
9360
+ }[];
9361
+ };
8677
9362
  assign_floriday_order_numbers: {
8678
9363
  Args: {
8679
9364
  p_ids: string[];
@@ -8683,6 +9368,12 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
8683
9368
  order_number: string;
8684
9369
  }[];
8685
9370
  };
9371
+ backfill_open_order_reservations: {
9372
+ Args: never;
9373
+ Returns: {
9374
+ processed_items: number;
9375
+ }[];
9376
+ };
8686
9377
  call_exact_route: {
8687
9378
  Args: {
8688
9379
  path: string;
@@ -8693,10 +9384,37 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
8693
9384
  Args: never;
8694
9385
  Returns: number;
8695
9386
  };
9387
+ control_get_todays_carts: {
9388
+ Args: never;
9389
+ Returns: {
9390
+ cart_index: number;
9391
+ cart_number: string;
9392
+ cart_number_id: string;
9393
+ order_id: string;
9394
+ order_source: string;
9395
+ pick_date: string;
9396
+ status: string;
9397
+ }[];
9398
+ };
9399
+ count_distinct_regulatory_products: {
9400
+ Args: never;
9401
+ Returns: number;
9402
+ };
8696
9403
  current_monteur_id: {
8697
9404
  Args: never;
8698
9405
  Returns: string;
8699
9406
  };
9407
+ dashboard_alert_counts: {
9408
+ Args: never;
9409
+ Returns: import("../integrations/supabase/types").Json;
9410
+ };
9411
+ dashboard_alert_rows: {
9412
+ Args: {
9413
+ check_id: string;
9414
+ row_limit?: number;
9415
+ };
9416
+ Returns: import("../integrations/supabase/types").Json;
9417
+ };
8700
9418
  dashboard_list_public_schema: {
8701
9419
  Args: never;
8702
9420
  Returns: {
@@ -8705,6 +9423,12 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
8705
9423
  table_name: string;
8706
9424
  }[];
8707
9425
  };
9426
+ dispatch_carrier_signups_sql: {
9427
+ Args: {
9428
+ _catchup?: string;
9429
+ };
9430
+ Returns: import("../integrations/supabase/types").Json;
9431
+ };
8708
9432
  email_auth_decrypt: {
8709
9433
  Args: {
8710
9434
  cipher: string;
@@ -8777,6 +9501,19 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
8777
9501
  };
8778
9502
  Returns: boolean;
8779
9503
  };
9504
+ find_trade_item_key_by_name: {
9505
+ Args: {
9506
+ p_name: string;
9507
+ };
9508
+ Returns: string;
9509
+ };
9510
+ format_cart_number: {
9511
+ Args: {
9512
+ p_pick_date: string;
9513
+ p_seq: number;
9514
+ };
9515
+ Returns: string;
9516
+ };
8780
9517
  get_active_floriday_connection_public: {
8781
9518
  Args: never;
8782
9519
  Returns: {
@@ -8981,14 +9718,29 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
8981
9718
  };
8982
9719
  Returns: undefined;
8983
9720
  };
9721
+ pickstation_set_cart_status: {
9722
+ Args: {
9723
+ p_cart_index: number;
9724
+ p_order_id: string;
9725
+ p_order_source: string;
9726
+ p_status: string;
9727
+ };
9728
+ Returns: undefined;
9729
+ };
8984
9730
  refresh_floricode_derived_code_lists: {
8985
9731
  Args: never;
8986
9732
  Returns: {
8987
- out_environment: string;
8988
- out_list_name: string;
8989
- out_row_count: number;
9733
+ environment: string;
9734
+ list_name: string;
9735
+ row_count: number;
8990
9736
  }[];
8991
9737
  };
9738
+ refresh_floricode_derived_for_product: {
9739
+ Args: {
9740
+ p_product_code: string;
9741
+ };
9742
+ Returns: number;
9743
+ };
8992
9744
  reset_floriday_sync_cursor: {
8993
9745
  Args: {
8994
9746
  p_connection_id: string;