@flowselections/floriday-authenticatie-module 1.0.14 → 1.0.16

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 (35) hide show
  1. package/dist-lib/components/settings/FlorydaySettingsCard.d.ts.map +1 -1
  2. package/dist-lib/components/settings/FlorydaySettingsCard.js +2 -2
  3. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1486 -35
  4. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  5. package/dist-lib/integrations/supabase/client.d.ts +1486 -35
  6. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  7. package/dist-lib/integrations/supabase/client.server.d.ts +1486 -35
  8. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  9. package/dist-lib/integrations/supabase/types.d.ts +1515 -34
  10. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  11. package/dist-lib/lib/floricode-product-features.d.ts.map +1 -1
  12. package/dist-lib/lib/floricode-product-features.js +59 -5
  13. package/dist-lib/lib/floricode-regulatory-features.d.ts +15 -0
  14. package/dist-lib/lib/floricode-regulatory-features.d.ts.map +1 -1
  15. package/dist-lib/lib/floricode-regulatory-features.js +77 -21
  16. package/dist-lib/lib/floriday-auction-letters.functions.d.ts +1486 -35
  17. package/dist-lib/lib/floriday-auction-letters.functions.d.ts.map +1 -1
  18. package/dist-lib/lib/floriday-labels.functions.d.ts +1486 -35
  19. package/dist-lib/lib/floriday-labels.functions.d.ts.map +1 -1
  20. package/dist-lib/lib/floriday-public.functions.d.ts +8706 -0
  21. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  22. package/dist-lib/lib/floriday-scopes.d.ts +17 -1
  23. package/dist-lib/lib/floriday-scopes.d.ts.map +1 -1
  24. package/dist-lib/lib/floriday-scopes.js +66 -5
  25. package/dist-lib/lib/floriday-stickers.functions.d.ts +1486 -35
  26. package/dist-lib/lib/floriday-stickers.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/floriday-sync.functions.d.ts +66486 -1
  28. package/dist-lib/lib/floriday-sync.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/floriday-sync.functions.js +92 -2
  30. package/dist-lib/lib/floriday-writes.functions.d.ts +8724 -6
  31. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/floriday.functions.d.ts +26244 -144
  33. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  34. package/dist-lib/lib/floriday.functions.js +13 -2
  35. package/package.json +1 -1
@@ -22,6 +22,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
22
22
  max_workdays_earlier_pick: number;
23
23
  pick_days_before_transport: number;
24
24
  pick_distribution_enabled: boolean;
25
+ pick_weekdays: number[];
25
26
  signup_mail_enabled: boolean;
26
27
  signup_mail_lead_minutes: number;
27
28
  signup_mail_purpose: string;
@@ -35,6 +36,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
35
36
  max_workdays_earlier_pick?: number;
36
37
  pick_days_before_transport?: number;
37
38
  pick_distribution_enabled?: boolean;
39
+ pick_weekdays?: number[];
38
40
  signup_mail_enabled?: boolean;
39
41
  signup_mail_lead_minutes?: number;
40
42
  signup_mail_purpose?: string;
@@ -48,6 +50,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
48
50
  max_workdays_earlier_pick?: number;
49
51
  pick_days_before_transport?: number;
50
52
  pick_distribution_enabled?: boolean;
53
+ pick_weekdays?: number[];
51
54
  signup_mail_enabled?: boolean;
52
55
  signup_mail_lead_minutes?: number;
53
56
  signup_mail_purpose?: string;
@@ -459,6 +462,48 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
459
462
  referencedColumns: ["id"];
460
463
  }];
461
464
  };
465
+ carrier_signup_dispatch_runs: {
466
+ Row: {
467
+ detail: import("../integrations/supabase/types").Json | null;
468
+ error: string | null;
469
+ finished_at: string | null;
470
+ groups: number;
471
+ id: string;
472
+ ok: boolean;
473
+ reason: string | null;
474
+ sent: number;
475
+ skipped: import("../integrations/supabase/types").Json;
476
+ started_at: string;
477
+ unassigned: import("../integrations/supabase/types").Json;
478
+ };
479
+ Insert: {
480
+ detail?: import("../integrations/supabase/types").Json | null;
481
+ error?: string | null;
482
+ finished_at?: string | null;
483
+ groups?: number;
484
+ id?: string;
485
+ ok?: boolean;
486
+ reason?: string | null;
487
+ sent?: number;
488
+ skipped?: import("../integrations/supabase/types").Json;
489
+ started_at?: string;
490
+ unassigned?: import("../integrations/supabase/types").Json;
491
+ };
492
+ Update: {
493
+ detail?: import("../integrations/supabase/types").Json | null;
494
+ error?: string | null;
495
+ finished_at?: string | null;
496
+ groups?: number;
497
+ id?: string;
498
+ ok?: boolean;
499
+ reason?: string | null;
500
+ sent?: number;
501
+ skipped?: import("../integrations/supabase/types").Json;
502
+ started_at?: string;
503
+ unassigned?: import("../integrations/supabase/types").Json;
504
+ };
505
+ Relationships: [];
506
+ };
462
507
  carrier_signup_dispatches: {
463
508
  Row: {
464
509
  carrier_id: string;
@@ -510,6 +555,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
510
555
  contact_person: string | null;
511
556
  created_at: string;
512
557
  delivery_days: number | null;
558
+ delivery_weekdays: number[];
513
559
  email: string | null;
514
560
  id: string;
515
561
  is_default: boolean;
@@ -517,6 +563,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
517
563
  notes: string | null;
518
564
  phone: string | null;
519
565
  pickup_moments: import("../integrations/supabase/types").Json;
566
+ pickup_weekdays: number[];
520
567
  service_cities: string[];
521
568
  service_countries: string[];
522
569
  service_provinces: string[];
@@ -532,6 +579,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
532
579
  contact_person?: string | null;
533
580
  created_at?: string;
534
581
  delivery_days?: number | null;
582
+ delivery_weekdays?: number[];
535
583
  email?: string | null;
536
584
  id?: string;
537
585
  is_default?: boolean;
@@ -539,6 +587,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
539
587
  notes?: string | null;
540
588
  phone?: string | null;
541
589
  pickup_moments?: import("../integrations/supabase/types").Json;
590
+ pickup_weekdays?: number[];
542
591
  service_cities?: string[];
543
592
  service_countries?: string[];
544
593
  service_provinces?: string[];
@@ -554,6 +603,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
554
603
  contact_person?: string | null;
555
604
  created_at?: string;
556
605
  delivery_days?: number | null;
606
+ delivery_weekdays?: number[];
557
607
  email?: string | null;
558
608
  id?: string;
559
609
  is_default?: boolean;
@@ -561,6 +611,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
561
611
  notes?: string | null;
562
612
  phone?: string | null;
563
613
  pickup_moments?: import("../integrations/supabase/types").Json;
614
+ pickup_weekdays?: number[];
564
615
  service_cities?: string[];
565
616
  service_countries?: string[];
566
617
  service_provinces?: string[];
@@ -573,6 +624,180 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
573
624
  };
574
625
  Relationships: [];
575
626
  };
627
+ cart_control_draft: {
628
+ Row: {
629
+ cart_states: import("../integrations/supabase/types").Json;
630
+ checked_keys: import("../integrations/supabase/types").Json;
631
+ draft_date: string;
632
+ form_state: import("../integrations/supabase/types").Json;
633
+ notes: string;
634
+ updated_at: string;
635
+ user_id: string;
636
+ };
637
+ Insert: {
638
+ cart_states?: import("../integrations/supabase/types").Json;
639
+ checked_keys?: import("../integrations/supabase/types").Json;
640
+ draft_date: string;
641
+ form_state?: import("../integrations/supabase/types").Json;
642
+ notes?: string;
643
+ updated_at?: string;
644
+ user_id: string;
645
+ };
646
+ Update: {
647
+ cart_states?: import("../integrations/supabase/types").Json;
648
+ checked_keys?: import("../integrations/supabase/types").Json;
649
+ draft_date?: string;
650
+ form_state?: import("../integrations/supabase/types").Json;
651
+ notes?: string;
652
+ updated_at?: string;
653
+ user_id?: string;
654
+ };
655
+ Relationships: [];
656
+ };
657
+ cart_control_items: {
658
+ Row: {
659
+ action: string;
660
+ block_reason: string | null;
661
+ carrier_name: string | null;
662
+ cart_index: number;
663
+ cart_number_id: string | null;
664
+ cart_number_label: string | null;
665
+ created_at: string;
666
+ customer_name: string | null;
667
+ delivery_date: string | null;
668
+ id: string;
669
+ new_pick_date: string | null;
670
+ order_id: string;
671
+ order_number: string | null;
672
+ order_source: string;
673
+ pickup_date: string | null;
674
+ session_id: string;
675
+ };
676
+ Insert: {
677
+ action: string;
678
+ block_reason?: string | null;
679
+ carrier_name?: string | null;
680
+ cart_index: number;
681
+ cart_number_id?: string | null;
682
+ cart_number_label?: string | null;
683
+ created_at?: string;
684
+ customer_name?: string | null;
685
+ delivery_date?: string | null;
686
+ id?: string;
687
+ new_pick_date?: string | null;
688
+ order_id: string;
689
+ order_number?: string | null;
690
+ order_source: string;
691
+ pickup_date?: string | null;
692
+ session_id: string;
693
+ };
694
+ Update: {
695
+ action?: string;
696
+ block_reason?: string | null;
697
+ carrier_name?: string | null;
698
+ cart_index?: number;
699
+ cart_number_id?: string | null;
700
+ cart_number_label?: string | null;
701
+ created_at?: string;
702
+ customer_name?: string | null;
703
+ delivery_date?: string | null;
704
+ id?: string;
705
+ new_pick_date?: string | null;
706
+ order_id?: string;
707
+ order_number?: string | null;
708
+ order_source?: string;
709
+ pickup_date?: string | null;
710
+ session_id?: string;
711
+ };
712
+ Relationships: [{
713
+ foreignKeyName: "cart_control_items_session_id_fkey";
714
+ columns: ["session_id"];
715
+ isOneToOne: false;
716
+ referencedRelation: "cart_control_sessions";
717
+ referencedColumns: ["id"];
718
+ }];
719
+ };
720
+ cart_control_sessions: {
721
+ Row: {
722
+ blocked_count: number;
723
+ checked_count: number;
724
+ control_date: string;
725
+ created_at: string;
726
+ id: string;
727
+ notes: string | null;
728
+ performed_at: string;
729
+ rescheduled_count: number;
730
+ stock_consumed_at: string | null;
731
+ total_carts: number;
732
+ updated_at: string;
733
+ user_id: string;
734
+ };
735
+ Insert: {
736
+ blocked_count?: number;
737
+ checked_count?: number;
738
+ control_date?: string;
739
+ created_at?: string;
740
+ id?: string;
741
+ notes?: string | null;
742
+ performed_at?: string;
743
+ rescheduled_count?: number;
744
+ stock_consumed_at?: string | null;
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
+ stock_consumed_at?: string | null;
759
+ total_carts?: number;
760
+ updated_at?: string;
761
+ user_id?: string;
762
+ };
763
+ Relationships: [];
764
+ };
765
+ cart_numbers: {
766
+ Row: {
767
+ assigned_at: string;
768
+ cart_index: number;
769
+ cart_number: string;
770
+ day_seq: number;
771
+ id: string;
772
+ order_id: string;
773
+ order_source: string;
774
+ pick_date: string;
775
+ status: string;
776
+ };
777
+ Insert: {
778
+ assigned_at?: string;
779
+ cart_index: number;
780
+ cart_number: string;
781
+ day_seq: number;
782
+ id?: string;
783
+ order_id: string;
784
+ order_source: string;
785
+ pick_date: string;
786
+ status?: string;
787
+ };
788
+ Update: {
789
+ assigned_at?: string;
790
+ cart_index?: number;
791
+ cart_number?: string;
792
+ day_seq?: number;
793
+ id?: string;
794
+ order_id?: string;
795
+ order_source?: string;
796
+ pick_date?: string;
797
+ status?: string;
798
+ };
799
+ Relationships: [];
800
+ };
576
801
  cart_pick_overrides: {
577
802
  Row: {
578
803
  cart_index: number;
@@ -1245,6 +1470,54 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
1245
1470
  referencedColumns: ["id"];
1246
1471
  }];
1247
1472
  };
1473
+ dashboard_critical_alerts: {
1474
+ Row: {
1475
+ alert_key: string;
1476
+ alert_type: string;
1477
+ created_at: string;
1478
+ description: string | null;
1479
+ id: string;
1480
+ metadata: import("../integrations/supabase/types").Json | null;
1481
+ priority: string;
1482
+ raised_at: string;
1483
+ related_cart_ids: string[] | null;
1484
+ resolved_at: string | null;
1485
+ title: string;
1486
+ updated_at: string;
1487
+ user_id: string;
1488
+ };
1489
+ Insert: {
1490
+ alert_key: string;
1491
+ alert_type: string;
1492
+ created_at?: string;
1493
+ description?: string | null;
1494
+ id?: string;
1495
+ metadata?: import("../integrations/supabase/types").Json | null;
1496
+ priority?: string;
1497
+ raised_at?: string;
1498
+ related_cart_ids?: string[] | null;
1499
+ resolved_at?: string | null;
1500
+ title: string;
1501
+ updated_at?: string;
1502
+ user_id: string;
1503
+ };
1504
+ Update: {
1505
+ alert_key?: string;
1506
+ alert_type?: string;
1507
+ created_at?: string;
1508
+ description?: string | null;
1509
+ id?: string;
1510
+ metadata?: import("../integrations/supabase/types").Json | null;
1511
+ priority?: string;
1512
+ raised_at?: string;
1513
+ related_cart_ids?: string[] | null;
1514
+ resolved_at?: string | null;
1515
+ title?: string;
1516
+ updated_at?: string;
1517
+ user_id?: string;
1518
+ };
1519
+ Relationships: [];
1520
+ };
1248
1521
  dashboard_daily_reports: {
1249
1522
  Row: {
1250
1523
  created_at: string;
@@ -2747,6 +3020,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
2747
3020
  };
2748
3021
  floricode_sync_state: {
2749
3022
  Row: {
3023
+ cursor_skip: number;
2750
3024
  error_message: string | null;
2751
3025
  last_change_date_time: string | null;
2752
3026
  last_sequence_number: number;
@@ -2756,6 +3030,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
2756
3030
  updated_at: string;
2757
3031
  };
2758
3032
  Insert: {
3033
+ cursor_skip?: number;
2759
3034
  error_message?: string | null;
2760
3035
  last_change_date_time?: string | null;
2761
3036
  last_sequence_number?: number;
@@ -2765,6 +3040,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
2765
3040
  updated_at?: string;
2766
3041
  };
2767
3042
  Update: {
3043
+ cursor_skip?: number;
2768
3044
  error_message?: string | null;
2769
3045
  last_change_date_time?: string | null;
2770
3046
  last_sequence_number?: number;
@@ -3360,6 +3636,51 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
3360
3636
  referencedColumns: ["id"];
3361
3637
  }];
3362
3638
  };
3639
+ floriday_continuous_stock_queue: {
3640
+ Row: {
3641
+ attempts: number;
3642
+ connection_id: string;
3643
+ created_at: string;
3644
+ gateway_attempt_id: string | null;
3645
+ id: string;
3646
+ last_error: string | null;
3647
+ number_of_pieces: number;
3648
+ sent_at: string | null;
3649
+ status: string;
3650
+ trade_item_id: string;
3651
+ updated_at: string;
3652
+ user_id: string;
3653
+ };
3654
+ Insert: {
3655
+ attempts?: number;
3656
+ connection_id: string;
3657
+ created_at?: string;
3658
+ gateway_attempt_id?: string | null;
3659
+ id?: string;
3660
+ last_error?: string | null;
3661
+ number_of_pieces?: number;
3662
+ sent_at?: string | null;
3663
+ status?: string;
3664
+ trade_item_id: string;
3665
+ updated_at?: string;
3666
+ user_id: string;
3667
+ };
3668
+ Update: {
3669
+ attempts?: number;
3670
+ connection_id?: string;
3671
+ created_at?: string;
3672
+ gateway_attempt_id?: string | null;
3673
+ id?: string;
3674
+ last_error?: string | null;
3675
+ number_of_pieces?: number;
3676
+ sent_at?: string | null;
3677
+ status?: string;
3678
+ trade_item_id?: string;
3679
+ updated_at?: string;
3680
+ user_id?: string;
3681
+ };
3682
+ Relationships: [];
3683
+ };
3363
3684
  floriday_contract_trade_item_groups_cache: {
3364
3685
  Row: {
3365
3686
  connection_id: string;
@@ -4749,53 +5070,251 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
4749
5070
  };
4750
5071
  Relationships: [];
4751
5072
  };
4752
- locations: {
5073
+ local_customer_agreements: {
4753
5074
  Row: {
5075
+ base_price: number | null;
4754
5076
  created_at: string;
5077
+ currency: string;
5078
+ customer_id: string;
4755
5079
  id: string;
4756
- name: string;
4757
- sort_order: number;
5080
+ min_quantity: number;
5081
+ net_price: number;
5082
+ notes: string | null;
5083
+ product_category_id: string | null;
5084
+ product_id: string | null;
4758
5085
  updated_at: string;
5086
+ valid_from: string | null;
5087
+ valid_until: string | null;
4759
5088
  };
4760
5089
  Insert: {
5090
+ base_price?: number | null;
4761
5091
  created_at?: string;
5092
+ currency?: string;
5093
+ customer_id: string;
4762
5094
  id?: string;
4763
- name: string;
4764
- sort_order?: number;
5095
+ min_quantity?: number;
5096
+ net_price: number;
5097
+ notes?: string | null;
5098
+ product_category_id?: string | null;
5099
+ product_id?: string | null;
4765
5100
  updated_at?: string;
5101
+ valid_from?: string | null;
5102
+ valid_until?: string | null;
4766
5103
  };
4767
5104
  Update: {
5105
+ base_price?: number | null;
4768
5106
  created_at?: string;
5107
+ currency?: string;
5108
+ customer_id?: string;
4769
5109
  id?: string;
4770
- name?: string;
4771
- sort_order?: number;
5110
+ min_quantity?: number;
5111
+ net_price?: number;
5112
+ notes?: string | null;
5113
+ product_category_id?: string | null;
5114
+ product_id?: string | null;
4772
5115
  updated_at?: string;
5116
+ valid_from?: string | null;
5117
+ valid_until?: string | null;
4773
5118
  };
4774
- Relationships: [];
5119
+ Relationships: [{
5120
+ foreignKeyName: "local_customer_agreements_customer_id_fkey";
5121
+ columns: ["customer_id"];
5122
+ isOneToOne: false;
5123
+ referencedRelation: "customers";
5124
+ referencedColumns: ["id"];
5125
+ }, {
5126
+ foreignKeyName: "local_customer_agreements_product_category_id_fkey";
5127
+ columns: ["product_category_id"];
5128
+ isOneToOne: false;
5129
+ referencedRelation: "product_categories";
5130
+ referencedColumns: ["id"];
5131
+ }, {
5132
+ foreignKeyName: "local_customer_agreements_product_id_fkey";
5133
+ columns: ["product_id"];
5134
+ isOneToOne: false;
5135
+ referencedRelation: "products";
5136
+ referencedColumns: ["id"];
5137
+ }];
4775
5138
  };
4776
- mailbox_messages: {
5139
+ local_customer_price_groups: {
4777
5140
  Row: {
4778
- body_html: string | null;
4779
- body_text: string | null;
4780
- connection_id: string | null;
4781
5141
  created_at: string;
4782
- error_message: string | null;
4783
- external_id: string | null;
4784
- from_email: string | null;
4785
- from_name: string | null;
5142
+ currency: string;
5143
+ customer_id: string;
5144
+ discount_type: string;
5145
+ discount_value: number;
4786
5146
  id: string;
4787
- message_id: string | null;
4788
- profile_id: string | null;
4789
- raw_size: number | null;
4790
- received_at: string | null;
4791
- status: string;
4792
- subject: string | null;
4793
- uid: number | null;
5147
+ min_quantity: number;
5148
+ notes: string | null;
5149
+ product_category_id: string | null;
5150
+ product_id: string | null;
4794
5151
  updated_at: string;
5152
+ valid_from: string | null;
5153
+ valid_until: string | null;
4795
5154
  };
4796
5155
  Insert: {
4797
- body_html?: string | null;
4798
- body_text?: string | null;
5156
+ created_at?: string;
5157
+ currency?: string;
5158
+ customer_id: string;
5159
+ discount_type: string;
5160
+ discount_value: number;
5161
+ id?: string;
5162
+ min_quantity?: number;
5163
+ notes?: string | null;
5164
+ product_category_id?: string | null;
5165
+ product_id?: string | null;
5166
+ updated_at?: string;
5167
+ valid_from?: string | null;
5168
+ valid_until?: string | null;
5169
+ };
5170
+ Update: {
5171
+ created_at?: string;
5172
+ currency?: string;
5173
+ customer_id?: string;
5174
+ discount_type?: string;
5175
+ discount_value?: number;
5176
+ id?: string;
5177
+ min_quantity?: number;
5178
+ notes?: string | null;
5179
+ product_category_id?: string | null;
5180
+ product_id?: string | null;
5181
+ updated_at?: string;
5182
+ valid_from?: string | null;
5183
+ valid_until?: string | null;
5184
+ };
5185
+ Relationships: [{
5186
+ foreignKeyName: "local_customer_price_groups_customer_id_fkey";
5187
+ columns: ["customer_id"];
5188
+ isOneToOne: false;
5189
+ referencedRelation: "customers";
5190
+ referencedColumns: ["id"];
5191
+ }, {
5192
+ foreignKeyName: "local_customer_price_groups_product_category_id_fkey";
5193
+ columns: ["product_category_id"];
5194
+ isOneToOne: false;
5195
+ referencedRelation: "product_categories";
5196
+ referencedColumns: ["id"];
5197
+ }, {
5198
+ foreignKeyName: "local_customer_price_groups_product_id_fkey";
5199
+ columns: ["product_id"];
5200
+ isOneToOne: false;
5201
+ referencedRelation: "products";
5202
+ referencedColumns: ["id"];
5203
+ }];
5204
+ };
5205
+ local_customer_sales_strategies: {
5206
+ Row: {
5207
+ created_at: string;
5208
+ currency: string;
5209
+ customer_id: string;
5210
+ discount_type: string;
5211
+ discount_value: number;
5212
+ id: string;
5213
+ min_quantity: number;
5214
+ notes: string | null;
5215
+ product_category_id: string | null;
5216
+ product_id: string | null;
5217
+ updated_at: string;
5218
+ valid_from: string | null;
5219
+ valid_until: string | null;
5220
+ };
5221
+ Insert: {
5222
+ created_at?: string;
5223
+ currency?: string;
5224
+ customer_id: string;
5225
+ discount_type: string;
5226
+ discount_value: number;
5227
+ id?: string;
5228
+ min_quantity?: number;
5229
+ notes?: string | null;
5230
+ product_category_id?: string | null;
5231
+ product_id?: string | null;
5232
+ updated_at?: string;
5233
+ valid_from?: string | null;
5234
+ valid_until?: string | null;
5235
+ };
5236
+ Update: {
5237
+ created_at?: string;
5238
+ currency?: string;
5239
+ customer_id?: string;
5240
+ discount_type?: string;
5241
+ discount_value?: number;
5242
+ id?: string;
5243
+ min_quantity?: number;
5244
+ notes?: string | null;
5245
+ product_category_id?: string | null;
5246
+ product_id?: string | null;
5247
+ updated_at?: string;
5248
+ valid_from?: string | null;
5249
+ valid_until?: string | null;
5250
+ };
5251
+ Relationships: [{
5252
+ foreignKeyName: "local_customer_sales_strategies_customer_id_fkey";
5253
+ columns: ["customer_id"];
5254
+ isOneToOne: false;
5255
+ referencedRelation: "customers";
5256
+ referencedColumns: ["id"];
5257
+ }, {
5258
+ foreignKeyName: "local_customer_sales_strategies_product_category_id_fkey";
5259
+ columns: ["product_category_id"];
5260
+ isOneToOne: false;
5261
+ referencedRelation: "product_categories";
5262
+ referencedColumns: ["id"];
5263
+ }, {
5264
+ foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
5265
+ columns: ["product_id"];
5266
+ isOneToOne: false;
5267
+ referencedRelation: "products";
5268
+ referencedColumns: ["id"];
5269
+ }];
5270
+ };
5271
+ locations: {
5272
+ Row: {
5273
+ created_at: string;
5274
+ id: string;
5275
+ name: string;
5276
+ sort_order: number;
5277
+ updated_at: string;
5278
+ };
5279
+ Insert: {
5280
+ created_at?: string;
5281
+ id?: string;
5282
+ name: string;
5283
+ sort_order?: number;
5284
+ updated_at?: string;
5285
+ };
5286
+ Update: {
5287
+ created_at?: string;
5288
+ id?: string;
5289
+ name?: string;
5290
+ sort_order?: number;
5291
+ updated_at?: string;
5292
+ };
5293
+ Relationships: [];
5294
+ };
5295
+ mailbox_messages: {
5296
+ Row: {
5297
+ body_html: string | null;
5298
+ body_text: string | null;
5299
+ connection_id: string | null;
5300
+ created_at: string;
5301
+ error_message: string | null;
5302
+ external_id: string | null;
5303
+ from_email: string | null;
5304
+ from_name: string | null;
5305
+ id: string;
5306
+ message_id: string | null;
5307
+ profile_id: string | null;
5308
+ raw_size: number | null;
5309
+ received_at: string | null;
5310
+ status: string;
5311
+ subject: string | null;
5312
+ uid: number | null;
5313
+ updated_at: string;
5314
+ };
5315
+ Insert: {
5316
+ body_html?: string | null;
5317
+ body_text?: string | null;
4799
5318
  connection_id?: string | null;
4800
5319
  created_at?: string;
4801
5320
  error_message?: string | null;
@@ -5112,6 +5631,93 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
5112
5631
  };
5113
5632
  Relationships: [];
5114
5633
  };
5634
+ manufacture_product_components: {
5635
+ Row: {
5636
+ component_type: string;
5637
+ created_at: string;
5638
+ id: string;
5639
+ manufacture_product_id: string;
5640
+ product_group_id: string | null;
5641
+ quantity: number;
5642
+ trade_item_id: string | null;
5643
+ unit: string;
5644
+ };
5645
+ Insert: {
5646
+ component_type: string;
5647
+ created_at?: string;
5648
+ id?: string;
5649
+ manufacture_product_id: string;
5650
+ product_group_id?: string | null;
5651
+ quantity?: number;
5652
+ trade_item_id?: string | null;
5653
+ unit?: string;
5654
+ };
5655
+ Update: {
5656
+ component_type?: string;
5657
+ created_at?: string;
5658
+ id?: string;
5659
+ manufacture_product_id?: string;
5660
+ product_group_id?: string | null;
5661
+ quantity?: number;
5662
+ trade_item_id?: string | null;
5663
+ unit?: string;
5664
+ };
5665
+ Relationships: [{
5666
+ foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
5667
+ columns: ["manufacture_product_id"];
5668
+ isOneToOne: false;
5669
+ referencedRelation: "manufacture_product_possible_stock_view";
5670
+ referencedColumns: ["manufacture_product_id"];
5671
+ }, {
5672
+ foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
5673
+ columns: ["manufacture_product_id"];
5674
+ isOneToOne: false;
5675
+ referencedRelation: "manufacture_products";
5676
+ referencedColumns: ["id"];
5677
+ }, {
5678
+ foreignKeyName: "manufacture_product_components_product_group_id_fkey";
5679
+ columns: ["product_group_id"];
5680
+ isOneToOne: false;
5681
+ referencedRelation: "product_groups";
5682
+ referencedColumns: ["id"];
5683
+ }];
5684
+ };
5685
+ manufacture_products: {
5686
+ Row: {
5687
+ created_at: string;
5688
+ description: string | null;
5689
+ id: string;
5690
+ is_active: boolean;
5691
+ name: string;
5692
+ produced_stock: number;
5693
+ product_code: string;
5694
+ tenant_id: string;
5695
+ updated_at: string;
5696
+ };
5697
+ Insert: {
5698
+ created_at?: string;
5699
+ description?: string | null;
5700
+ id?: string;
5701
+ is_active?: boolean;
5702
+ name: string;
5703
+ produced_stock?: number;
5704
+ product_code: string;
5705
+ tenant_id: string;
5706
+ updated_at?: string;
5707
+ };
5708
+ Update: {
5709
+ created_at?: string;
5710
+ description?: string | null;
5711
+ id?: string;
5712
+ is_active?: boolean;
5713
+ name?: string;
5714
+ produced_stock?: number;
5715
+ product_code?: string;
5716
+ tenant_id?: string;
5717
+ updated_at?: string;
5718
+ };
5719
+ Relationships: [];
5720
+ };
5115
5721
  monteurs: {
5116
5722
  Row: {
5117
5723
  avatar_url: string | null;
@@ -5169,6 +5775,273 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
5169
5775
  referencedColumns: ["id"];
5170
5776
  }];
5171
5777
  };
5778
+ nmbrs_component_mapping: {
5779
+ Row: {
5780
+ created_at: string;
5781
+ id: string;
5782
+ source_kind: string;
5783
+ source_value: string | null;
5784
+ updated_at: string;
5785
+ wage_code: string;
5786
+ };
5787
+ Insert: {
5788
+ created_at?: string;
5789
+ id?: string;
5790
+ source_kind: string;
5791
+ source_value?: string | null;
5792
+ updated_at?: string;
5793
+ wage_code: string;
5794
+ };
5795
+ Update: {
5796
+ created_at?: string;
5797
+ id?: string;
5798
+ source_kind?: string;
5799
+ source_value?: string | null;
5800
+ updated_at?: string;
5801
+ wage_code?: string;
5802
+ };
5803
+ Relationships: [{
5804
+ foreignKeyName: "nmbrs_component_mapping_wage_code_fkey";
5805
+ columns: ["wage_code"];
5806
+ isOneToOne: false;
5807
+ referencedRelation: "nmbrs_wage_components";
5808
+ referencedColumns: ["code"];
5809
+ }];
5810
+ };
5811
+ nmbrs_employee_mapping: {
5812
+ Row: {
5813
+ active_from: string | null;
5814
+ active_to: string | null;
5815
+ contract_hours_per_week: number | null;
5816
+ created_at: string;
5817
+ hourly_wage: number | null;
5818
+ id: string;
5819
+ monteur_id: string;
5820
+ nmbrs_company_code: string | null;
5821
+ nmbrs_employee_number: string;
5822
+ updated_at: string;
5823
+ };
5824
+ Insert: {
5825
+ active_from?: string | null;
5826
+ active_to?: string | null;
5827
+ contract_hours_per_week?: number | null;
5828
+ created_at?: string;
5829
+ hourly_wage?: number | null;
5830
+ id?: string;
5831
+ monteur_id: string;
5832
+ nmbrs_company_code?: string | null;
5833
+ nmbrs_employee_number: string;
5834
+ updated_at?: string;
5835
+ };
5836
+ Update: {
5837
+ active_from?: string | null;
5838
+ active_to?: string | null;
5839
+ contract_hours_per_week?: number | null;
5840
+ created_at?: string;
5841
+ hourly_wage?: number | null;
5842
+ id?: string;
5843
+ monteur_id?: string;
5844
+ nmbrs_company_code?: string | null;
5845
+ nmbrs_employee_number?: string;
5846
+ updated_at?: string;
5847
+ };
5848
+ Relationships: [{
5849
+ foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
5850
+ columns: ["monteur_id"];
5851
+ isOneToOne: true;
5852
+ referencedRelation: "monteurs";
5853
+ referencedColumns: ["id"];
5854
+ }];
5855
+ };
5856
+ nmbrs_export_lines: {
5857
+ Row: {
5858
+ amount: number;
5859
+ created_at: string;
5860
+ entry_date: string;
5861
+ hours: number;
5862
+ id: string;
5863
+ monteur_id: string;
5864
+ nmbrs_employee_number: string | null;
5865
+ notes: string | null;
5866
+ run_id: string;
5867
+ source_kind: string | null;
5868
+ source_ref_id: string | null;
5869
+ updated_at: string;
5870
+ wage_code: string;
5871
+ };
5872
+ Insert: {
5873
+ amount?: number;
5874
+ created_at?: string;
5875
+ entry_date: string;
5876
+ hours?: number;
5877
+ id?: string;
5878
+ monteur_id: string;
5879
+ nmbrs_employee_number?: string | null;
5880
+ notes?: string | null;
5881
+ run_id: string;
5882
+ source_kind?: string | null;
5883
+ source_ref_id?: string | null;
5884
+ updated_at?: string;
5885
+ wage_code: string;
5886
+ };
5887
+ Update: {
5888
+ amount?: number;
5889
+ created_at?: string;
5890
+ entry_date?: string;
5891
+ hours?: number;
5892
+ id?: string;
5893
+ monteur_id?: string;
5894
+ nmbrs_employee_number?: string | null;
5895
+ notes?: string | null;
5896
+ run_id?: string;
5897
+ source_kind?: string | null;
5898
+ source_ref_id?: string | null;
5899
+ updated_at?: string;
5900
+ wage_code?: string;
5901
+ };
5902
+ Relationships: [{
5903
+ foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
5904
+ columns: ["monteur_id"];
5905
+ isOneToOne: false;
5906
+ referencedRelation: "monteurs";
5907
+ referencedColumns: ["id"];
5908
+ }, {
5909
+ foreignKeyName: "nmbrs_export_lines_run_id_fkey";
5910
+ columns: ["run_id"];
5911
+ isOneToOne: false;
5912
+ referencedRelation: "nmbrs_export_runs";
5913
+ referencedColumns: ["id"];
5914
+ }, {
5915
+ foreignKeyName: "nmbrs_export_lines_wage_code_fkey";
5916
+ columns: ["wage_code"];
5917
+ isOneToOne: false;
5918
+ referencedRelation: "nmbrs_wage_components";
5919
+ referencedColumns: ["code"];
5920
+ }];
5921
+ };
5922
+ nmbrs_export_runs: {
5923
+ Row: {
5924
+ created_at: string;
5925
+ file_name: string | null;
5926
+ generated_at: string;
5927
+ generated_by: string | null;
5928
+ id: string;
5929
+ notes: string | null;
5930
+ period_end: string;
5931
+ period_label: string;
5932
+ period_start: string;
5933
+ status: string;
5934
+ total_hours: number;
5935
+ total_lines: number;
5936
+ updated_at: string;
5937
+ };
5938
+ Insert: {
5939
+ created_at?: string;
5940
+ file_name?: string | null;
5941
+ generated_at?: string;
5942
+ generated_by?: string | null;
5943
+ id?: string;
5944
+ notes?: string | null;
5945
+ period_end: string;
5946
+ period_label: string;
5947
+ period_start: string;
5948
+ status?: string;
5949
+ total_hours?: number;
5950
+ total_lines?: number;
5951
+ updated_at?: string;
5952
+ };
5953
+ Update: {
5954
+ created_at?: string;
5955
+ file_name?: string | null;
5956
+ generated_at?: string;
5957
+ generated_by?: string | null;
5958
+ id?: string;
5959
+ notes?: string | null;
5960
+ period_end?: string;
5961
+ period_label?: string;
5962
+ period_start?: string;
5963
+ status?: string;
5964
+ total_hours?: number;
5965
+ total_lines?: number;
5966
+ updated_at?: string;
5967
+ };
5968
+ Relationships: [];
5969
+ };
5970
+ nmbrs_settings: {
5971
+ Row: {
5972
+ created_at: string;
5973
+ default_company_code: string | null;
5974
+ id: boolean;
5975
+ include_travel: boolean;
5976
+ overtime_threshold_daily: number;
5977
+ overtime_threshold_weekly: number;
5978
+ period_type: string;
5979
+ updated_at: string;
5980
+ updated_by: string | null;
5981
+ week_start_day: number;
5982
+ };
5983
+ Insert: {
5984
+ created_at?: string;
5985
+ default_company_code?: string | null;
5986
+ id?: boolean;
5987
+ include_travel?: boolean;
5988
+ overtime_threshold_daily?: number;
5989
+ overtime_threshold_weekly?: number;
5990
+ period_type?: string;
5991
+ updated_at?: string;
5992
+ updated_by?: string | null;
5993
+ week_start_day?: number;
5994
+ };
5995
+ Update: {
5996
+ created_at?: string;
5997
+ default_company_code?: string | null;
5998
+ id?: boolean;
5999
+ include_travel?: boolean;
6000
+ overtime_threshold_daily?: number;
6001
+ overtime_threshold_weekly?: number;
6002
+ period_type?: string;
6003
+ updated_at?: string;
6004
+ updated_by?: string | null;
6005
+ week_start_day?: number;
6006
+ };
6007
+ Relationships: [];
6008
+ };
6009
+ nmbrs_wage_components: {
6010
+ Row: {
6011
+ category: string;
6012
+ code: string;
6013
+ created_at: string;
6014
+ id: string;
6015
+ is_active: boolean;
6016
+ label: string;
6017
+ sort_order: number;
6018
+ unit: string;
6019
+ updated_at: string;
6020
+ };
6021
+ Insert: {
6022
+ category: string;
6023
+ code: string;
6024
+ created_at?: string;
6025
+ id?: string;
6026
+ is_active?: boolean;
6027
+ label: string;
6028
+ sort_order?: number;
6029
+ unit: string;
6030
+ updated_at?: string;
6031
+ };
6032
+ Update: {
6033
+ category?: string;
6034
+ code?: string;
6035
+ created_at?: string;
6036
+ id?: string;
6037
+ is_active?: boolean;
6038
+ label?: string;
6039
+ sort_order?: number;
6040
+ unit?: string;
6041
+ updated_at?: string;
6042
+ };
6043
+ Relationships: [];
6044
+ };
5172
6045
  notifications: {
5173
6046
  Row: {
5174
6047
  created_at: string;
@@ -6072,6 +6945,66 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
6072
6945
  };
6073
6946
  Relationships: [];
6074
6947
  };
6948
+ product_group_items: {
6949
+ Row: {
6950
+ created_at: string;
6951
+ id: string;
6952
+ product_group_id: string;
6953
+ quantity: number;
6954
+ trade_item_id: string;
6955
+ };
6956
+ Insert: {
6957
+ created_at?: string;
6958
+ id?: string;
6959
+ product_group_id: string;
6960
+ quantity?: number;
6961
+ trade_item_id: string;
6962
+ };
6963
+ Update: {
6964
+ created_at?: string;
6965
+ id?: string;
6966
+ product_group_id?: string;
6967
+ quantity?: number;
6968
+ trade_item_id?: string;
6969
+ };
6970
+ Relationships: [{
6971
+ foreignKeyName: "product_group_items_product_group_id_fkey";
6972
+ columns: ["product_group_id"];
6973
+ isOneToOne: false;
6974
+ referencedRelation: "product_groups";
6975
+ referencedColumns: ["id"];
6976
+ }];
6977
+ };
6978
+ product_groups: {
6979
+ Row: {
6980
+ created_at: string;
6981
+ description: string | null;
6982
+ id: string;
6983
+ is_active: boolean;
6984
+ name: string;
6985
+ tenant_id: string;
6986
+ updated_at: string;
6987
+ };
6988
+ Insert: {
6989
+ created_at?: string;
6990
+ description?: string | null;
6991
+ id?: string;
6992
+ is_active?: boolean;
6993
+ name: string;
6994
+ tenant_id: string;
6995
+ updated_at?: string;
6996
+ };
6997
+ Update: {
6998
+ created_at?: string;
6999
+ description?: string | null;
7000
+ id?: string;
7001
+ is_active?: boolean;
7002
+ name?: string;
7003
+ tenant_id?: string;
7004
+ updated_at?: string;
7005
+ };
7006
+ Relationships: [];
7007
+ };
6075
7008
  products: {
6076
7009
  Row: {
6077
7010
  barcode: string | null;
@@ -6091,6 +7024,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
6091
7024
  purchase_price: number | null;
6092
7025
  quantity: number;
6093
7026
  sale_price: number | null;
7027
+ trade_item_key: string | null;
6094
7028
  unit: string;
6095
7029
  updated_at: string;
6096
7030
  weight: string | null;
@@ -6113,6 +7047,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
6113
7047
  purchase_price?: number | null;
6114
7048
  quantity?: number;
6115
7049
  sale_price?: number | null;
7050
+ trade_item_key?: string | null;
6116
7051
  unit?: string;
6117
7052
  updated_at?: string;
6118
7053
  weight?: string | null;
@@ -6135,6 +7070,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
6135
7070
  purchase_price?: number | null;
6136
7071
  quantity?: number;
6137
7072
  sale_price?: number | null;
7073
+ trade_item_key?: string | null;
6138
7074
  unit?: string;
6139
7075
  updated_at?: string;
6140
7076
  weight?: string | null;
@@ -6937,20 +7873,116 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
6937
7873
  description?: string | null;
6938
7874
  hourly_rate?: number;
6939
7875
  id?: string;
6940
- image_url?: string | null;
6941
- is_active?: boolean;
6942
- name: string;
7876
+ image_url?: string | null;
7877
+ is_active?: boolean;
7878
+ name: string;
7879
+ };
7880
+ Update: {
7881
+ capacity?: number;
7882
+ color_code?: string | null;
7883
+ created_at?: string;
7884
+ description?: string | null;
7885
+ hourly_rate?: number;
7886
+ id?: string;
7887
+ image_url?: string | null;
7888
+ is_active?: boolean;
7889
+ name?: string;
7890
+ };
7891
+ Relationships: [];
7892
+ };
7893
+ stock_import_runs: {
7894
+ Row: {
7895
+ connection_id: string | null;
7896
+ created_at: string;
7897
+ created_rows: number;
7898
+ errors: import("../integrations/supabase/types").Json;
7899
+ filename: string | null;
7900
+ id: string;
7901
+ mutations: import("../integrations/supabase/types").Json;
7902
+ skipped_rows: number;
7903
+ total_rows: number;
7904
+ updated_rows: number;
7905
+ user_id: string;
7906
+ };
7907
+ Insert: {
7908
+ connection_id?: string | null;
7909
+ created_at?: string;
7910
+ created_rows?: number;
7911
+ errors?: import("../integrations/supabase/types").Json;
7912
+ filename?: string | null;
7913
+ id?: string;
7914
+ mutations?: import("../integrations/supabase/types").Json;
7915
+ skipped_rows?: number;
7916
+ total_rows?: number;
7917
+ updated_rows?: number;
7918
+ user_id: string;
7919
+ };
7920
+ Update: {
7921
+ connection_id?: string | null;
7922
+ created_at?: string;
7923
+ created_rows?: number;
7924
+ errors?: import("../integrations/supabase/types").Json;
7925
+ filename?: string | null;
7926
+ id?: string;
7927
+ mutations?: import("../integrations/supabase/types").Json;
7928
+ skipped_rows?: number;
7929
+ total_rows?: number;
7930
+ updated_rows?: number;
7931
+ user_id?: string;
7932
+ };
7933
+ Relationships: [];
7934
+ };
7935
+ stock_mutation_log: {
7936
+ Row: {
7937
+ connection_id: string | null;
7938
+ created_at: string;
7939
+ created_by: string | null;
7940
+ id: string;
7941
+ mutation_type: string;
7942
+ order_id: string | null;
7943
+ order_item_id: string | null;
7944
+ order_source: string | null;
7945
+ physical_after: number | null;
7946
+ physical_before: number | null;
7947
+ qty_delta: number;
7948
+ reason: string | null;
7949
+ reserved_after: number | null;
7950
+ reserved_before: number | null;
7951
+ trade_item_key: string;
7952
+ };
7953
+ Insert: {
7954
+ connection_id?: string | null;
7955
+ created_at?: string;
7956
+ created_by?: string | null;
7957
+ id?: string;
7958
+ mutation_type: string;
7959
+ order_id?: string | null;
7960
+ order_item_id?: string | null;
7961
+ order_source?: string | null;
7962
+ physical_after?: number | null;
7963
+ physical_before?: number | null;
7964
+ qty_delta: number;
7965
+ reason?: string | null;
7966
+ reserved_after?: number | null;
7967
+ reserved_before?: number | null;
7968
+ trade_item_key: string;
6943
7969
  };
6944
7970
  Update: {
6945
- capacity?: number;
6946
- color_code?: string | null;
7971
+ connection_id?: string | null;
6947
7972
  created_at?: string;
6948
- description?: string | null;
6949
- hourly_rate?: number;
7973
+ created_by?: string | null;
6950
7974
  id?: string;
6951
- image_url?: string | null;
6952
- is_active?: boolean;
6953
- name?: string;
7975
+ mutation_type?: string;
7976
+ order_id?: string | null;
7977
+ order_item_id?: string | null;
7978
+ order_source?: string | null;
7979
+ physical_after?: number | null;
7980
+ physical_before?: number | null;
7981
+ qty_delta?: number;
7982
+ reason?: string | null;
7983
+ reserved_after?: number | null;
7984
+ reserved_before?: number | null;
7985
+ trade_item_key?: string;
6954
7986
  };
6955
7987
  Relationships: [];
6956
7988
  };
@@ -7211,7 +8243,13 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7211
8243
  connection_id: string | null;
7212
8244
  created_at: string;
7213
8245
  data: import("../integrations/supabase/types").Json;
8246
+ floriday_id: string | null;
8247
+ floriday_link_error: string | null;
8248
+ floriday_link_status: string;
7214
8249
  id: string;
8250
+ last_floriday_sync_at: string | null;
8251
+ missing_required_fields: string[];
8252
+ source: string;
7215
8253
  updated_at: string;
7216
8254
  user_id: string;
7217
8255
  };
@@ -7219,7 +8257,13 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7219
8257
  connection_id?: string | null;
7220
8258
  created_at?: string;
7221
8259
  data?: import("../integrations/supabase/types").Json;
8260
+ floriday_id?: string | null;
8261
+ floriday_link_error?: string | null;
8262
+ floriday_link_status?: string;
7222
8263
  id?: string;
8264
+ last_floriday_sync_at?: string | null;
8265
+ missing_required_fields?: string[];
8266
+ source?: string;
7223
8267
  updated_at?: string;
7224
8268
  user_id: string;
7225
8269
  };
@@ -7227,7 +8271,55 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7227
8271
  connection_id?: string | null;
7228
8272
  created_at?: string;
7229
8273
  data?: import("../integrations/supabase/types").Json;
8274
+ floriday_id?: string | null;
8275
+ floriday_link_error?: string | null;
8276
+ floriday_link_status?: string;
8277
+ id?: string;
8278
+ last_floriday_sync_at?: string | null;
8279
+ missing_required_fields?: string[];
8280
+ source?: string;
8281
+ updated_at?: string;
8282
+ user_id?: string;
8283
+ };
8284
+ Relationships: [];
8285
+ };
8286
+ trade_item_stock: {
8287
+ Row: {
8288
+ connection_id: string;
8289
+ created_at: string;
8290
+ id: string;
8291
+ incoming_stock: number;
8292
+ minimum_stock: number;
8293
+ notes: string | null;
8294
+ physical_stock: number;
8295
+ reserved_stock: number;
8296
+ trade_item_key: string;
8297
+ updated_at: string;
8298
+ user_id: string;
8299
+ };
8300
+ Insert: {
8301
+ connection_id: string;
8302
+ created_at?: string;
8303
+ id?: string;
8304
+ incoming_stock?: number;
8305
+ minimum_stock?: number;
8306
+ notes?: string | null;
8307
+ physical_stock?: number;
8308
+ reserved_stock?: number;
8309
+ trade_item_key: string;
8310
+ updated_at?: string;
8311
+ user_id: string;
8312
+ };
8313
+ Update: {
8314
+ connection_id?: string;
8315
+ created_at?: string;
7230
8316
  id?: string;
8317
+ incoming_stock?: number;
8318
+ minimum_stock?: number;
8319
+ notes?: string | null;
8320
+ physical_stock?: number;
8321
+ reserved_stock?: number;
8322
+ trade_item_key?: string;
7231
8323
  updated_at?: string;
7232
8324
  user_id?: string;
7233
8325
  };
@@ -7577,6 +8669,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7577
8669
  };
7578
8670
  twinfield_invoice_sync_logs: {
7579
8671
  Row: {
8672
+ action_type: string | null;
7580
8673
  created_at: string;
7581
8674
  details: import("../integrations/supabase/types").Json | null;
7582
8675
  duration_ms: number | null;
@@ -7589,6 +8682,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7589
8682
  user_id: string;
7590
8683
  };
7591
8684
  Insert: {
8685
+ action_type?: string | null;
7592
8686
  created_at?: string;
7593
8687
  details?: import("../integrations/supabase/types").Json | null;
7594
8688
  duration_ms?: number | null;
@@ -7601,6 +8695,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7601
8695
  user_id: string;
7602
8696
  };
7603
8697
  Update: {
8698
+ action_type?: string | null;
7604
8699
  created_at?: string;
7605
8700
  details?: import("../integrations/supabase/types").Json | null;
7606
8701
  duration_ms?: number | null;
@@ -7836,6 +8931,57 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7836
8931
  referencedColumns: ["id"];
7837
8932
  }];
7838
8933
  };
8934
+ twinfield_request_metrics: {
8935
+ Row: {
8936
+ bucket_hour: string;
8937
+ connection_id: string;
8938
+ error_count: number;
8939
+ rate_limited_count: number;
8940
+ request_count: number;
8941
+ updated_at: string;
8942
+ };
8943
+ Insert: {
8944
+ bucket_hour: string;
8945
+ connection_id: string;
8946
+ error_count?: number;
8947
+ rate_limited_count?: number;
8948
+ request_count?: number;
8949
+ updated_at?: string;
8950
+ };
8951
+ Update: {
8952
+ bucket_hour?: string;
8953
+ connection_id?: string;
8954
+ error_count?: number;
8955
+ rate_limited_count?: number;
8956
+ request_count?: number;
8957
+ updated_at?: string;
8958
+ };
8959
+ Relationships: [];
8960
+ };
8961
+ twinfield_session_cache: {
8962
+ Row: {
8963
+ cluster: string;
8964
+ created_at: string;
8965
+ expires_at: string;
8966
+ session_id: string;
8967
+ user_id: string;
8968
+ };
8969
+ Insert: {
8970
+ cluster: string;
8971
+ created_at?: string;
8972
+ expires_at: string;
8973
+ session_id: string;
8974
+ user_id: string;
8975
+ };
8976
+ Update: {
8977
+ cluster?: string;
8978
+ created_at?: string;
8979
+ expires_at?: string;
8980
+ session_id?: string;
8981
+ user_id?: string;
8982
+ };
8983
+ Relationships: [];
8984
+ };
7839
8985
  twinfield_settings: {
7840
8986
  Row: {
7841
8987
  active_environment: string;
@@ -8417,6 +9563,73 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
8417
9563
  };
8418
9564
  Relationships: [];
8419
9565
  };
9566
+ floriday_customer_discounts: {
9567
+ Row: {
9568
+ base_price: number | null;
9569
+ buyer_organization_id: string | null;
9570
+ currency: string | null;
9571
+ discount_type: string | null;
9572
+ discount_value: number | null;
9573
+ min_quantity: number | null;
9574
+ net_price: number | null;
9575
+ product_group_id: string | null;
9576
+ raw: import("../integrations/supabase/types").Json | null;
9577
+ source: string | null;
9578
+ source_id: string | null;
9579
+ trade_item_id: string | null;
9580
+ valid_from: string | null;
9581
+ valid_until: string | null;
9582
+ };
9583
+ Relationships: [];
9584
+ };
9585
+ local_customer_discounts: {
9586
+ Row: {
9587
+ base_price: number | null;
9588
+ currency: string | null;
9589
+ customer_id: string | null;
9590
+ discount_type: string | null;
9591
+ discount_value: number | null;
9592
+ min_quantity: number | null;
9593
+ net_price: number | null;
9594
+ product_category_id: string | null;
9595
+ product_id: string | null;
9596
+ product_name: string | null;
9597
+ source: string | null;
9598
+ source_id: string | null;
9599
+ valid_from: string | null;
9600
+ valid_until: string | null;
9601
+ };
9602
+ Relationships: [];
9603
+ };
9604
+ manufacture_product_possible_stock_view: {
9605
+ Row: {
9606
+ component_count: number | null;
9607
+ manufacture_product_id: string | null;
9608
+ possible_stock: number | null;
9609
+ };
9610
+ Relationships: [];
9611
+ };
9612
+ product_group_stock_view: {
9613
+ Row: {
9614
+ item_count: number | null;
9615
+ product_group_id: string | null;
9616
+ total_stock: number | null;
9617
+ };
9618
+ Relationships: [{
9619
+ foreignKeyName: "product_group_items_product_group_id_fkey";
9620
+ columns: ["product_group_id"];
9621
+ isOneToOne: false;
9622
+ referencedRelation: "product_groups";
9623
+ referencedColumns: ["id"];
9624
+ }];
9625
+ };
9626
+ trade_item_stock_view: {
9627
+ Row: {
9628
+ stock: number | null;
9629
+ trade_item_id: string | null;
9630
+ };
9631
+ Relationships: [];
9632
+ };
8420
9633
  v_external_customers_exact: {
8421
9634
  Row: {
8422
9635
  account_number: string | null;
@@ -8672,6 +9885,68 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
8672
9885
  };
8673
9886
  Returns: number;
8674
9887
  };
9888
+ afh_city_code: {
9889
+ Args: {
9890
+ _city: string;
9891
+ _country: string;
9892
+ };
9893
+ Returns: string;
9894
+ };
9895
+ afh_normalize_country: {
9896
+ Args: {
9897
+ _raw: string;
9898
+ };
9899
+ Returns: string;
9900
+ };
9901
+ afh_normalize_nl_province: {
9902
+ Args: {
9903
+ _raw: string;
9904
+ };
9905
+ Returns: string;
9906
+ };
9907
+ afh_subtract_workdays: {
9908
+ Args: {
9909
+ _date: string;
9910
+ _days: number;
9911
+ };
9912
+ Returns: string;
9913
+ };
9914
+ apply_stock_consumption: {
9915
+ Args: {
9916
+ p_order_id: string;
9917
+ p_order_item_id: string;
9918
+ p_qty: number;
9919
+ p_reason: string;
9920
+ p_source: string;
9921
+ p_trade_item_key: string;
9922
+ };
9923
+ Returns: undefined;
9924
+ };
9925
+ apply_stock_reservation: {
9926
+ Args: {
9927
+ p_order_id: string;
9928
+ p_order_item_id: string;
9929
+ p_qty: number;
9930
+ p_reason: string;
9931
+ p_source: string;
9932
+ p_trade_item_key: string;
9933
+ };
9934
+ Returns: undefined;
9935
+ };
9936
+ assign_cart_numbers: {
9937
+ Args: {
9938
+ p_carts: import("../integrations/supabase/types").Json;
9939
+ };
9940
+ Returns: {
9941
+ cart_index: number;
9942
+ cart_number: string;
9943
+ day_seq: number;
9944
+ order_id: string;
9945
+ order_source: string;
9946
+ pick_date: string;
9947
+ status: string;
9948
+ }[];
9949
+ };
8675
9950
  assign_floriday_order_numbers: {
8676
9951
  Args: {
8677
9952
  p_ids: string[];
@@ -8681,20 +9956,75 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
8681
9956
  order_number: string;
8682
9957
  }[];
8683
9958
  };
9959
+ backfill_open_order_reservations: {
9960
+ Args: never;
9961
+ Returns: {
9962
+ processed_items: number;
9963
+ }[];
9964
+ };
8684
9965
  call_exact_route: {
8685
9966
  Args: {
8686
9967
  path: string;
8687
9968
  };
8688
9969
  Returns: number;
8689
9970
  };
9971
+ check_offer_product_available_stock: {
9972
+ Args: {
9973
+ p_campaign_product_id: string;
9974
+ p_code: string;
9975
+ p_needed_qty?: number;
9976
+ p_product_name?: string;
9977
+ };
9978
+ Returns: import("../integrations/supabase/types").Json;
9979
+ };
9980
+ check_trade_item_available_stock: {
9981
+ Args: {
9982
+ p_connection_id?: string;
9983
+ p_context?: string;
9984
+ p_needed_qty?: number;
9985
+ p_order_id?: string;
9986
+ p_order_item_id?: string;
9987
+ p_owner_id?: string;
9988
+ p_product_name?: string;
9989
+ p_trade_item_key: string;
9990
+ };
9991
+ Returns: import("../integrations/supabase/types").Json;
9992
+ };
8690
9993
  cleanup_old_bookings: {
8691
9994
  Args: never;
8692
9995
  Returns: number;
8693
9996
  };
9997
+ control_get_todays_carts: {
9998
+ Args: never;
9999
+ Returns: {
10000
+ cart_index: number;
10001
+ cart_number: string;
10002
+ cart_number_id: string;
10003
+ order_id: string;
10004
+ order_source: string;
10005
+ pick_date: string;
10006
+ status: string;
10007
+ }[];
10008
+ };
10009
+ count_distinct_regulatory_products: {
10010
+ Args: never;
10011
+ Returns: number;
10012
+ };
8694
10013
  current_monteur_id: {
8695
10014
  Args: never;
8696
10015
  Returns: string;
8697
10016
  };
10017
+ dashboard_alert_counts: {
10018
+ Args: never;
10019
+ Returns: import("../integrations/supabase/types").Json;
10020
+ };
10021
+ dashboard_alert_rows: {
10022
+ Args: {
10023
+ check_id: string;
10024
+ row_limit?: number;
10025
+ };
10026
+ Returns: import("../integrations/supabase/types").Json;
10027
+ };
8698
10028
  dashboard_list_public_schema: {
8699
10029
  Args: never;
8700
10030
  Returns: {
@@ -8703,6 +10033,12 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
8703
10033
  table_name: string;
8704
10034
  }[];
8705
10035
  };
10036
+ dispatch_carrier_signups_sql: {
10037
+ Args: {
10038
+ _catchup?: string;
10039
+ };
10040
+ Returns: import("../integrations/supabase/types").Json;
10041
+ };
8706
10042
  email_auth_decrypt: {
8707
10043
  Args: {
8708
10044
  cipher: string;
@@ -8738,6 +10074,12 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
8738
10074
  status: string;
8739
10075
  }[];
8740
10076
  };
10077
+ ensure_trade_item_stock_row: {
10078
+ Args: {
10079
+ p_key: string;
10080
+ };
10081
+ Returns: undefined;
10082
+ };
8741
10083
  ensure_user_tenant: {
8742
10084
  Args: never;
8743
10085
  Returns: string;
@@ -8775,6 +10117,38 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
8775
10117
  };
8776
10118
  Returns: boolean;
8777
10119
  };
10120
+ find_trade_item_key: {
10121
+ Args: {
10122
+ p_barcode: string;
10123
+ p_name: string;
10124
+ p_product_id: string;
10125
+ };
10126
+ Returns: string;
10127
+ };
10128
+ floriday_effective_price: {
10129
+ Args: {
10130
+ _buyer_id: string;
10131
+ _on_date?: string;
10132
+ _quantity?: number;
10133
+ _trade_item_id: string;
10134
+ };
10135
+ Returns: {
10136
+ base_price: number;
10137
+ currency: string;
10138
+ discount_type: string;
10139
+ discount_value: number;
10140
+ net_price: number;
10141
+ source: string;
10142
+ source_id: string;
10143
+ }[];
10144
+ };
10145
+ format_cart_number: {
10146
+ Args: {
10147
+ p_pick_date: string;
10148
+ p_seq: number;
10149
+ };
10150
+ Returns: string;
10151
+ };
8778
10152
  get_active_floriday_connection_public: {
8779
10153
  Args: never;
8780
10154
  Returns: {
@@ -8788,6 +10162,13 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
8788
10162
  preferred_warehouse_name: string;
8789
10163
  }[];
8790
10164
  };
10165
+ get_active_floriday_context: {
10166
+ Args: never;
10167
+ Returns: {
10168
+ connection_id: string;
10169
+ user_id: string;
10170
+ }[];
10171
+ };
8791
10172
  get_active_twinfield_public: {
8792
10173
  Args: never;
8793
10174
  Returns: {
@@ -8890,6 +10271,18 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
8890
10271
  };
8891
10272
  Returns: import("../integrations/supabase/types").Json;
8892
10273
  };
10274
+ get_offer_recipient_by_code: {
10275
+ Args: {
10276
+ p_code: string;
10277
+ };
10278
+ Returns: {
10279
+ campaign_id: string;
10280
+ clicked_at: string;
10281
+ customer_id: string;
10282
+ id: string;
10283
+ ordered_at: string;
10284
+ }[];
10285
+ };
8893
10286
  get_or_assign_floriday_order_number: {
8894
10287
  Args: {
8895
10288
  p_floriday_id: string;
@@ -8942,6 +10335,34 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
8942
10335
  Args: never;
8943
10336
  Returns: boolean;
8944
10337
  };
10338
+ local_effective_price: {
10339
+ Args: {
10340
+ _customer_id: string;
10341
+ _on_date?: string;
10342
+ _product_id: string;
10343
+ _quantity?: number;
10344
+ };
10345
+ Returns: {
10346
+ currency: string;
10347
+ discount_type: string;
10348
+ discount_value: number;
10349
+ net_price: number;
10350
+ source: string;
10351
+ source_id: string;
10352
+ }[];
10353
+ };
10354
+ mark_offer_clicked: {
10355
+ Args: {
10356
+ p_code: string;
10357
+ };
10358
+ Returns: undefined;
10359
+ };
10360
+ mark_offer_ordered: {
10361
+ Args: {
10362
+ p_code: string;
10363
+ };
10364
+ Returns: undefined;
10365
+ };
8945
10366
  next_order_number: {
8946
10367
  Args: {
8947
10368
  p_prefix: string;
@@ -8961,6 +10382,14 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
8961
10382
  };
8962
10383
  Returns: string;
8963
10384
  };
10385
+ offer_recipient_matches: {
10386
+ Args: {
10387
+ _campaign_id: string;
10388
+ _customer_id: string;
10389
+ _recipient_id: string;
10390
+ };
10391
+ Returns: boolean;
10392
+ };
8964
10393
  pickstation_get_orders_raw: {
8965
10394
  Args: never;
8966
10395
  Returns: import("../integrations/supabase/types").Json;
@@ -8979,6 +10408,22 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
8979
10408
  };
8980
10409
  Returns: undefined;
8981
10410
  };
10411
+ pickstation_set_cart_status: {
10412
+ Args: {
10413
+ p_cart_index: number;
10414
+ p_order_id: string;
10415
+ p_order_source: string;
10416
+ p_status: string;
10417
+ };
10418
+ Returns: undefined;
10419
+ };
10420
+ promote_trade_item_key: {
10421
+ Args: {
10422
+ p_new: string;
10423
+ p_old: string;
10424
+ };
10425
+ Returns: undefined;
10426
+ };
8982
10427
  refresh_floricode_derived_code_lists: {
8983
10428
  Args: never;
8984
10429
  Returns: {
@@ -8987,6 +10432,12 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
8987
10432
  row_count: number;
8988
10433
  }[];
8989
10434
  };
10435
+ refresh_floricode_derived_for_product: {
10436
+ Args: {
10437
+ p_product_code: string;
10438
+ };
10439
+ Returns: number;
10440
+ };
8990
10441
  reset_floriday_sync_cursor: {
8991
10442
  Args: {
8992
10443
  p_connection_id: string;