@flowselections/floriday-afhandeling-module 1.0.10 → 1.0.11

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 +2 -0
  5. package/dist-lib/components/afhandeling/ControlePage.d.ts.map +1 -0
  6. package/dist-lib/components/afhandeling/ControlePage.js +456 -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 +629 -3
  32. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  33. package/dist-lib/integrations/supabase/client.d.ts +629 -3
  34. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  35. package/dist-lib/integrations/supabase/client.server.d.ts +629 -3
  36. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  37. package/dist-lib/integrations/supabase/types.d.ts +639 -3
  38. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  39. package/dist-lib/lib/afhandelingSettings.functions.d.ts +1318 -62
  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 +3151 -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 +3145 -15
  49. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  50. package/dist-lib/lib/cartControl.functions.d.ts +99259 -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 +629 -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 +1 -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,177 @@ 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
+ total_carts: number;
733
+ updated_at: string;
734
+ user_id: string;
735
+ };
736
+ Insert: {
737
+ blocked_count?: number;
738
+ checked_count?: number;
739
+ control_date?: string;
740
+ created_at?: string;
741
+ id?: string;
742
+ notes?: string | null;
743
+ performed_at?: string;
744
+ rescheduled_count?: number;
745
+ total_carts?: number;
746
+ updated_at?: string;
747
+ user_id: string;
748
+ };
749
+ Update: {
750
+ blocked_count?: number;
751
+ checked_count?: number;
752
+ control_date?: string;
753
+ created_at?: string;
754
+ id?: string;
755
+ notes?: string | null;
756
+ performed_at?: string;
757
+ rescheduled_count?: number;
758
+ total_carts?: number;
759
+ updated_at?: string;
760
+ user_id?: string;
761
+ };
762
+ Relationships: [];
763
+ };
764
+ cart_numbers: {
765
+ Row: {
766
+ assigned_at: string;
767
+ cart_index: number;
768
+ cart_number: string;
769
+ day_seq: number;
770
+ id: string;
771
+ order_id: string;
772
+ order_source: string;
773
+ pick_date: string;
774
+ status: string;
775
+ };
776
+ Insert: {
777
+ assigned_at?: string;
778
+ cart_index: number;
779
+ cart_number: string;
780
+ day_seq: number;
781
+ id?: string;
782
+ order_id: string;
783
+ order_source: string;
784
+ pick_date: string;
785
+ status?: string;
786
+ };
787
+ Update: {
788
+ assigned_at?: string;
789
+ cart_index?: number;
790
+ cart_number?: string;
791
+ day_seq?: number;
792
+ id?: string;
793
+ order_id?: string;
794
+ order_source?: string;
795
+ pick_date?: string;
796
+ status?: string;
797
+ };
798
+ Relationships: [];
799
+ };
578
800
  cart_pick_overrides: {
579
801
  Row: {
580
802
  cart_index: number;
@@ -1247,6 +1469,54 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
1247
1469
  referencedColumns: ["id"];
1248
1470
  }];
1249
1471
  };
1472
+ dashboard_critical_alerts: {
1473
+ Row: {
1474
+ alert_key: string;
1475
+ alert_type: string;
1476
+ created_at: string;
1477
+ description: string | null;
1478
+ id: string;
1479
+ metadata: import("../integrations/supabase/types").Json | null;
1480
+ priority: string;
1481
+ raised_at: string;
1482
+ related_cart_ids: string[] | null;
1483
+ resolved_at: string | null;
1484
+ title: string;
1485
+ updated_at: string;
1486
+ user_id: string;
1487
+ };
1488
+ Insert: {
1489
+ alert_key: string;
1490
+ alert_type: string;
1491
+ created_at?: string;
1492
+ description?: string | null;
1493
+ id?: string;
1494
+ metadata?: import("../integrations/supabase/types").Json | null;
1495
+ priority?: string;
1496
+ raised_at?: string;
1497
+ related_cart_ids?: string[] | null;
1498
+ resolved_at?: string | null;
1499
+ title: string;
1500
+ updated_at?: string;
1501
+ user_id: string;
1502
+ };
1503
+ Update: {
1504
+ alert_key?: string;
1505
+ alert_type?: string;
1506
+ created_at?: string;
1507
+ description?: string | null;
1508
+ id?: string;
1509
+ metadata?: import("../integrations/supabase/types").Json | null;
1510
+ priority?: string;
1511
+ raised_at?: string;
1512
+ related_cart_ids?: string[] | null;
1513
+ resolved_at?: string | null;
1514
+ title?: string;
1515
+ updated_at?: string;
1516
+ user_id?: string;
1517
+ };
1518
+ Relationships: [];
1519
+ };
1250
1520
  dashboard_daily_reports: {
1251
1521
  Row: {
1252
1522
  created_at: string;
@@ -2749,6 +3019,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
2749
3019
  };
2750
3020
  floricode_sync_state: {
2751
3021
  Row: {
3022
+ cursor_skip: number;
2752
3023
  error_message: string | null;
2753
3024
  last_change_date_time: string | null;
2754
3025
  last_sequence_number: number;
@@ -2758,6 +3029,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
2758
3029
  updated_at: string;
2759
3030
  };
2760
3031
  Insert: {
3032
+ cursor_skip?: number;
2761
3033
  error_message?: string | null;
2762
3034
  last_change_date_time?: string | null;
2763
3035
  last_sequence_number?: number;
@@ -2767,6 +3039,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
2767
3039
  updated_at?: string;
2768
3040
  };
2769
3041
  Update: {
3042
+ cursor_skip?: number;
2770
3043
  error_message?: string | null;
2771
3044
  last_change_date_time?: string | null;
2772
3045
  last_sequence_number?: number;
@@ -5114,6 +5387,93 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
5114
5387
  };
5115
5388
  Relationships: [];
5116
5389
  };
5390
+ manufacture_product_components: {
5391
+ Row: {
5392
+ component_type: string;
5393
+ created_at: string;
5394
+ id: string;
5395
+ manufacture_product_id: string;
5396
+ product_group_id: string | null;
5397
+ quantity: number;
5398
+ trade_item_id: string | null;
5399
+ unit: string;
5400
+ };
5401
+ Insert: {
5402
+ component_type: string;
5403
+ created_at?: string;
5404
+ id?: string;
5405
+ manufacture_product_id: string;
5406
+ product_group_id?: string | null;
5407
+ quantity?: number;
5408
+ trade_item_id?: string | null;
5409
+ unit?: string;
5410
+ };
5411
+ Update: {
5412
+ component_type?: string;
5413
+ created_at?: string;
5414
+ id?: string;
5415
+ manufacture_product_id?: string;
5416
+ product_group_id?: string | null;
5417
+ quantity?: number;
5418
+ trade_item_id?: string | null;
5419
+ unit?: string;
5420
+ };
5421
+ Relationships: [{
5422
+ foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
5423
+ columns: ["manufacture_product_id"];
5424
+ isOneToOne: false;
5425
+ referencedRelation: "manufacture_product_possible_stock_view";
5426
+ referencedColumns: ["manufacture_product_id"];
5427
+ }, {
5428
+ foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
5429
+ columns: ["manufacture_product_id"];
5430
+ isOneToOne: false;
5431
+ referencedRelation: "manufacture_products";
5432
+ referencedColumns: ["id"];
5433
+ }, {
5434
+ foreignKeyName: "manufacture_product_components_product_group_id_fkey";
5435
+ columns: ["product_group_id"];
5436
+ isOneToOne: false;
5437
+ referencedRelation: "product_groups";
5438
+ referencedColumns: ["id"];
5439
+ }];
5440
+ };
5441
+ manufacture_products: {
5442
+ Row: {
5443
+ created_at: string;
5444
+ description: string | null;
5445
+ id: string;
5446
+ is_active: boolean;
5447
+ name: string;
5448
+ produced_stock: number;
5449
+ product_code: string;
5450
+ tenant_id: string;
5451
+ updated_at: string;
5452
+ };
5453
+ Insert: {
5454
+ created_at?: string;
5455
+ description?: string | null;
5456
+ id?: string;
5457
+ is_active?: boolean;
5458
+ name: string;
5459
+ produced_stock?: number;
5460
+ product_code: string;
5461
+ tenant_id: string;
5462
+ updated_at?: string;
5463
+ };
5464
+ Update: {
5465
+ created_at?: string;
5466
+ description?: string | null;
5467
+ id?: string;
5468
+ is_active?: boolean;
5469
+ name?: string;
5470
+ produced_stock?: number;
5471
+ product_code?: string;
5472
+ tenant_id?: string;
5473
+ updated_at?: string;
5474
+ };
5475
+ Relationships: [];
5476
+ };
5117
5477
  monteurs: {
5118
5478
  Row: {
5119
5479
  avatar_url: string | null;
@@ -6074,6 +6434,66 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6074
6434
  };
6075
6435
  Relationships: [];
6076
6436
  };
6437
+ product_group_items: {
6438
+ Row: {
6439
+ created_at: string;
6440
+ id: string;
6441
+ product_group_id: string;
6442
+ quantity: number;
6443
+ trade_item_id: string;
6444
+ };
6445
+ Insert: {
6446
+ created_at?: string;
6447
+ id?: string;
6448
+ product_group_id: string;
6449
+ quantity?: number;
6450
+ trade_item_id: string;
6451
+ };
6452
+ Update: {
6453
+ created_at?: string;
6454
+ id?: string;
6455
+ product_group_id?: string;
6456
+ quantity?: number;
6457
+ trade_item_id?: string;
6458
+ };
6459
+ Relationships: [{
6460
+ foreignKeyName: "product_group_items_product_group_id_fkey";
6461
+ columns: ["product_group_id"];
6462
+ isOneToOne: false;
6463
+ referencedRelation: "product_groups";
6464
+ referencedColumns: ["id"];
6465
+ }];
6466
+ };
6467
+ product_groups: {
6468
+ Row: {
6469
+ created_at: string;
6470
+ description: string | null;
6471
+ id: string;
6472
+ is_active: boolean;
6473
+ name: string;
6474
+ tenant_id: string;
6475
+ updated_at: string;
6476
+ };
6477
+ Insert: {
6478
+ created_at?: string;
6479
+ description?: string | null;
6480
+ id?: string;
6481
+ is_active?: boolean;
6482
+ name: string;
6483
+ tenant_id: string;
6484
+ updated_at?: string;
6485
+ };
6486
+ Update: {
6487
+ created_at?: string;
6488
+ description?: string | null;
6489
+ id?: string;
6490
+ is_active?: boolean;
6491
+ name?: string;
6492
+ tenant_id?: string;
6493
+ updated_at?: string;
6494
+ };
6495
+ Relationships: [];
6496
+ };
6077
6497
  products: {
6078
6498
  Row: {
6079
6499
  barcode: string | null;
@@ -7213,7 +7633,13 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7213
7633
  connection_id: string | null;
7214
7634
  created_at: string;
7215
7635
  data: import("../integrations/supabase/types").Json;
7636
+ floriday_id: string | null;
7637
+ floriday_link_error: string | null;
7638
+ floriday_link_status: string;
7216
7639
  id: string;
7640
+ last_floriday_sync_at: string | null;
7641
+ missing_required_fields: string[];
7642
+ source: string;
7217
7643
  updated_at: string;
7218
7644
  user_id: string;
7219
7645
  };
@@ -7221,7 +7647,13 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7221
7647
  connection_id?: string | null;
7222
7648
  created_at?: string;
7223
7649
  data?: import("../integrations/supabase/types").Json;
7650
+ floriday_id?: string | null;
7651
+ floriday_link_error?: string | null;
7652
+ floriday_link_status?: string;
7224
7653
  id?: string;
7654
+ last_floriday_sync_at?: string | null;
7655
+ missing_required_fields?: string[];
7656
+ source?: string;
7225
7657
  updated_at?: string;
7226
7658
  user_id: string;
7227
7659
  };
@@ -7229,7 +7661,55 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7229
7661
  connection_id?: string | null;
7230
7662
  created_at?: string;
7231
7663
  data?: import("../integrations/supabase/types").Json;
7664
+ floriday_id?: string | null;
7665
+ floriday_link_error?: string | null;
7666
+ floriday_link_status?: string;
7232
7667
  id?: string;
7668
+ last_floriday_sync_at?: string | null;
7669
+ missing_required_fields?: string[];
7670
+ source?: string;
7671
+ updated_at?: string;
7672
+ user_id?: string;
7673
+ };
7674
+ Relationships: [];
7675
+ };
7676
+ trade_item_stock: {
7677
+ Row: {
7678
+ connection_id: string;
7679
+ created_at: string;
7680
+ id: string;
7681
+ incoming_stock: number;
7682
+ minimum_stock: number;
7683
+ notes: string | null;
7684
+ physical_stock: number;
7685
+ reserved_stock: number;
7686
+ trade_item_key: string;
7687
+ updated_at: string;
7688
+ user_id: string;
7689
+ };
7690
+ Insert: {
7691
+ connection_id: string;
7692
+ created_at?: string;
7693
+ id?: string;
7694
+ incoming_stock?: number;
7695
+ minimum_stock?: number;
7696
+ notes?: string | null;
7697
+ physical_stock?: number;
7698
+ reserved_stock?: number;
7699
+ trade_item_key: string;
7700
+ updated_at?: string;
7701
+ user_id: string;
7702
+ };
7703
+ Update: {
7704
+ connection_id?: string;
7705
+ created_at?: string;
7706
+ id?: string;
7707
+ incoming_stock?: number;
7708
+ minimum_stock?: number;
7709
+ notes?: string | null;
7710
+ physical_stock?: number;
7711
+ reserved_stock?: number;
7712
+ trade_item_key?: string;
7233
7713
  updated_at?: string;
7234
7714
  user_id?: string;
7235
7715
  };
@@ -7579,6 +8059,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7579
8059
  };
7580
8060
  twinfield_invoice_sync_logs: {
7581
8061
  Row: {
8062
+ action_type: string | null;
7582
8063
  created_at: string;
7583
8064
  details: import("../integrations/supabase/types").Json | null;
7584
8065
  duration_ms: number | null;
@@ -7591,6 +8072,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7591
8072
  user_id: string;
7592
8073
  };
7593
8074
  Insert: {
8075
+ action_type?: string | null;
7594
8076
  created_at?: string;
7595
8077
  details?: import("../integrations/supabase/types").Json | null;
7596
8078
  duration_ms?: number | null;
@@ -7603,6 +8085,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7603
8085
  user_id: string;
7604
8086
  };
7605
8087
  Update: {
8088
+ action_type?: string | null;
7606
8089
  created_at?: string;
7607
8090
  details?: import("../integrations/supabase/types").Json | null;
7608
8091
  duration_ms?: number | null;
@@ -7838,6 +8321,57 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7838
8321
  referencedColumns: ["id"];
7839
8322
  }];
7840
8323
  };
8324
+ twinfield_request_metrics: {
8325
+ Row: {
8326
+ bucket_hour: string;
8327
+ connection_id: string;
8328
+ error_count: number;
8329
+ rate_limited_count: number;
8330
+ request_count: number;
8331
+ updated_at: string;
8332
+ };
8333
+ Insert: {
8334
+ bucket_hour: string;
8335
+ connection_id: string;
8336
+ error_count?: number;
8337
+ rate_limited_count?: number;
8338
+ request_count?: number;
8339
+ updated_at?: string;
8340
+ };
8341
+ Update: {
8342
+ bucket_hour?: string;
8343
+ connection_id?: string;
8344
+ error_count?: number;
8345
+ rate_limited_count?: number;
8346
+ request_count?: number;
8347
+ updated_at?: string;
8348
+ };
8349
+ Relationships: [];
8350
+ };
8351
+ twinfield_session_cache: {
8352
+ Row: {
8353
+ cluster: string;
8354
+ created_at: string;
8355
+ expires_at: string;
8356
+ session_id: string;
8357
+ user_id: string;
8358
+ };
8359
+ Insert: {
8360
+ cluster: string;
8361
+ created_at?: string;
8362
+ expires_at: string;
8363
+ session_id: string;
8364
+ user_id: string;
8365
+ };
8366
+ Update: {
8367
+ cluster?: string;
8368
+ created_at?: string;
8369
+ expires_at?: string;
8370
+ session_id?: string;
8371
+ user_id?: string;
8372
+ };
8373
+ Relationships: [];
8374
+ };
7841
8375
  twinfield_settings: {
7842
8376
  Row: {
7843
8377
  active_environment: string;
@@ -8419,6 +8953,35 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
8419
8953
  };
8420
8954
  Relationships: [];
8421
8955
  };
8956
+ manufacture_product_possible_stock_view: {
8957
+ Row: {
8958
+ component_count: number | null;
8959
+ manufacture_product_id: string | null;
8960
+ possible_stock: number | null;
8961
+ };
8962
+ Relationships: [];
8963
+ };
8964
+ product_group_stock_view: {
8965
+ Row: {
8966
+ item_count: number | null;
8967
+ product_group_id: string | null;
8968
+ total_stock: number | null;
8969
+ };
8970
+ Relationships: [{
8971
+ foreignKeyName: "product_group_items_product_group_id_fkey";
8972
+ columns: ["product_group_id"];
8973
+ isOneToOne: false;
8974
+ referencedRelation: "product_groups";
8975
+ referencedColumns: ["id"];
8976
+ }];
8977
+ };
8978
+ trade_item_stock_view: {
8979
+ Row: {
8980
+ stock: number | null;
8981
+ trade_item_id: string | null;
8982
+ };
8983
+ Relationships: [];
8984
+ };
8422
8985
  v_external_customers_exact: {
8423
8986
  Row: {
8424
8987
  account_number: string | null;
@@ -8674,6 +9237,20 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
8674
9237
  };
8675
9238
  Returns: number;
8676
9239
  };
9240
+ assign_cart_numbers: {
9241
+ Args: {
9242
+ p_carts: import("../integrations/supabase/types").Json;
9243
+ };
9244
+ Returns: {
9245
+ cart_index: number;
9246
+ cart_number: string;
9247
+ day_seq: number;
9248
+ order_id: string;
9249
+ order_source: string;
9250
+ pick_date: string;
9251
+ status: string;
9252
+ }[];
9253
+ };
8677
9254
  assign_floriday_order_numbers: {
8678
9255
  Args: {
8679
9256
  p_ids: string[];
@@ -8693,10 +9270,37 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
8693
9270
  Args: never;
8694
9271
  Returns: number;
8695
9272
  };
9273
+ control_get_todays_carts: {
9274
+ Args: never;
9275
+ Returns: {
9276
+ cart_index: number;
9277
+ cart_number: string;
9278
+ cart_number_id: string;
9279
+ order_id: string;
9280
+ order_source: string;
9281
+ pick_date: string;
9282
+ status: string;
9283
+ }[];
9284
+ };
9285
+ count_distinct_regulatory_products: {
9286
+ Args: never;
9287
+ Returns: number;
9288
+ };
8696
9289
  current_monteur_id: {
8697
9290
  Args: never;
8698
9291
  Returns: string;
8699
9292
  };
9293
+ dashboard_alert_counts: {
9294
+ Args: never;
9295
+ Returns: import("../integrations/supabase/types").Json;
9296
+ };
9297
+ dashboard_alert_rows: {
9298
+ Args: {
9299
+ check_id: string;
9300
+ row_limit?: number;
9301
+ };
9302
+ Returns: import("../integrations/supabase/types").Json;
9303
+ };
8700
9304
  dashboard_list_public_schema: {
8701
9305
  Args: never;
8702
9306
  Returns: {
@@ -8777,6 +9381,13 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
8777
9381
  };
8778
9382
  Returns: boolean;
8779
9383
  };
9384
+ format_cart_number: {
9385
+ Args: {
9386
+ p_pick_date: string;
9387
+ p_seq: number;
9388
+ };
9389
+ Returns: string;
9390
+ };
8780
9391
  get_active_floriday_connection_public: {
8781
9392
  Args: never;
8782
9393
  Returns: {
@@ -8981,14 +9592,29 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
8981
9592
  };
8982
9593
  Returns: undefined;
8983
9594
  };
9595
+ pickstation_set_cart_status: {
9596
+ Args: {
9597
+ p_cart_index: number;
9598
+ p_order_id: string;
9599
+ p_order_source: string;
9600
+ p_status: string;
9601
+ };
9602
+ Returns: undefined;
9603
+ };
8984
9604
  refresh_floricode_derived_code_lists: {
8985
9605
  Args: never;
8986
9606
  Returns: {
8987
- out_environment: string;
8988
- out_list_name: string;
8989
- out_row_count: number;
9607
+ environment: string;
9608
+ list_name: string;
9609
+ row_count: number;
8990
9610
  }[];
8991
9611
  };
9612
+ refresh_floricode_derived_for_product: {
9613
+ Args: {
9614
+ p_product_code: string;
9615
+ };
9616
+ Returns: number;
9617
+ };
8992
9618
  reset_floriday_sync_cursor: {
8993
9619
  Args: {
8994
9620
  p_connection_id: string;