@flowselections/floriday-authenticatie-module 1.0.15 → 1.0.17

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 (31) 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 +1252 -32
  4. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  5. package/dist-lib/integrations/supabase/client.d.ts +1252 -32
  6. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  7. package/dist-lib/integrations/supabase/client.server.d.ts +1252 -32
  8. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  9. package/dist-lib/integrations/supabase/types.d.ts +1275 -33
  10. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  11. package/dist-lib/lib/floriday-auction-letters.functions.d.ts +1252 -32
  12. package/dist-lib/lib/floriday-auction-letters.functions.d.ts.map +1 -1
  13. package/dist-lib/lib/floriday-labels.functions.d.ts +1252 -32
  14. package/dist-lib/lib/floriday-labels.functions.d.ts.map +1 -1
  15. package/dist-lib/lib/floriday-public.functions.d.ts +7320 -0
  16. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  17. package/dist-lib/lib/floriday-scopes.d.ts +17 -1
  18. package/dist-lib/lib/floriday-scopes.d.ts.map +1 -1
  19. package/dist-lib/lib/floriday-scopes.js +66 -5
  20. package/dist-lib/lib/floriday-stickers.functions.d.ts +1252 -32
  21. package/dist-lib/lib/floriday-stickers.functions.d.ts.map +1 -1
  22. package/dist-lib/lib/floriday-sync.functions.d.ts +59357 -33
  23. package/dist-lib/lib/floriday-sync.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/floriday-sync.functions.js +92 -2
  25. package/dist-lib/lib/floriday-writes.functions.d.ts +7338 -6
  26. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/floriday.functions.d.ts +22086 -144
  28. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/floriday.functions.js +13 -2
  30. package/package.json +3 -2
  31. package/public/flowselections-assets/floriday-authenticatie/floriday-logo.png +0 -0
@@ -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;
@@ -3363,6 +3636,51 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
3363
3636
  referencedColumns: ["id"];
3364
3637
  }];
3365
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
+ };
3366
3684
  floriday_contract_trade_item_groups_cache: {
3367
3685
  Row: {
3368
3686
  connection_id: string;
@@ -4752,52 +5070,250 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
4752
5070
  };
4753
5071
  Relationships: [];
4754
5072
  };
4755
- locations: {
5073
+ local_customer_agreements: {
4756
5074
  Row: {
5075
+ base_price: number | null;
4757
5076
  created_at: string;
5077
+ currency: string;
5078
+ customer_id: string;
4758
5079
  id: string;
4759
- name: string;
4760
- 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;
4761
5085
  updated_at: string;
5086
+ valid_from: string | null;
5087
+ valid_until: string | null;
4762
5088
  };
4763
5089
  Insert: {
5090
+ base_price?: number | null;
4764
5091
  created_at?: string;
5092
+ currency?: string;
5093
+ customer_id: string;
4765
5094
  id?: string;
4766
- name: string;
4767
- 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;
4768
5100
  updated_at?: string;
5101
+ valid_from?: string | null;
5102
+ valid_until?: string | null;
4769
5103
  };
4770
5104
  Update: {
5105
+ base_price?: number | null;
4771
5106
  created_at?: string;
5107
+ currency?: string;
5108
+ customer_id?: string;
4772
5109
  id?: string;
4773
- name?: string;
4774
- 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;
4775
5115
  updated_at?: string;
5116
+ valid_from?: string | null;
5117
+ valid_until?: string | null;
4776
5118
  };
4777
- 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
+ }];
4778
5138
  };
4779
- mailbox_messages: {
5139
+ local_customer_price_groups: {
4780
5140
  Row: {
4781
- body_html: string | null;
4782
- body_text: string | null;
4783
- connection_id: string | null;
4784
5141
  created_at: string;
4785
- error_message: string | null;
4786
- external_id: string | null;
4787
- from_email: string | null;
4788
- from_name: string | null;
5142
+ currency: string;
5143
+ customer_id: string;
5144
+ discount_type: string;
5145
+ discount_value: number;
4789
5146
  id: string;
4790
- message_id: string | null;
4791
- profile_id: string | null;
4792
- raw_size: number | null;
4793
- received_at: string | null;
4794
- status: string;
4795
- subject: string | null;
4796
- uid: number | null;
5147
+ min_quantity: number;
5148
+ notes: string | null;
5149
+ product_category_id: string | null;
5150
+ product_id: string | null;
4797
5151
  updated_at: string;
5152
+ valid_from: string | null;
5153
+ valid_until: string | null;
4798
5154
  };
4799
5155
  Insert: {
4800
- body_html?: 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;
4801
5317
  body_text?: string | null;
4802
5318
  connection_id?: string | null;
4803
5319
  created_at?: string;
@@ -5249,15 +5765,282 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
5249
5765
  role?: string;
5250
5766
  tenant_id?: string;
5251
5767
  updated_at?: string;
5252
- user_id?: string | null;
5768
+ user_id?: string | null;
5769
+ };
5770
+ Relationships: [{
5771
+ foreignKeyName: "monteurs_tenant_id_fkey";
5772
+ columns: ["tenant_id"];
5773
+ isOneToOne: false;
5774
+ referencedRelation: "tenants";
5775
+ referencedColumns: ["id"];
5776
+ }];
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;
5253
6042
  };
5254
- Relationships: [{
5255
- foreignKeyName: "monteurs_tenant_id_fkey";
5256
- columns: ["tenant_id"];
5257
- isOneToOne: false;
5258
- referencedRelation: "tenants";
5259
- referencedColumns: ["id"];
5260
- }];
6043
+ Relationships: [];
5261
6044
  };
5262
6045
  notifications: {
5263
6046
  Row: {
@@ -6241,6 +7024,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
6241
7024
  purchase_price: number | null;
6242
7025
  quantity: number;
6243
7026
  sale_price: number | null;
7027
+ trade_item_key: string | null;
6244
7028
  unit: string;
6245
7029
  updated_at: string;
6246
7030
  weight: string | null;
@@ -6263,6 +7047,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
6263
7047
  purchase_price?: number | null;
6264
7048
  quantity?: number;
6265
7049
  sale_price?: number | null;
7050
+ trade_item_key?: string | null;
6266
7051
  unit?: string;
6267
7052
  updated_at?: string;
6268
7053
  weight?: string | null;
@@ -6285,6 +7070,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
6285
7070
  purchase_price?: number | null;
6286
7071
  quantity?: number;
6287
7072
  sale_price?: number | null;
7073
+ trade_item_key?: string | null;
6288
7074
  unit?: string;
6289
7075
  updated_at?: string;
6290
7076
  weight?: string | null;
@@ -7104,6 +7890,102 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7104
7890
  };
7105
7891
  Relationships: [];
7106
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;
7969
+ };
7970
+ Update: {
7971
+ connection_id?: string | null;
7972
+ created_at?: string;
7973
+ created_by?: string | null;
7974
+ id?: 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;
7986
+ };
7987
+ Relationships: [];
7988
+ };
7107
7989
  supplier_products: {
7108
7990
  Row: {
7109
7991
  article_number: string | null;
@@ -7361,7 +8243,13 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7361
8243
  connection_id: string | null;
7362
8244
  created_at: string;
7363
8245
  data: import("../integrations/supabase/types").Json;
8246
+ floriday_id: string | null;
8247
+ floriday_link_error: string | null;
8248
+ floriday_link_status: string;
7364
8249
  id: string;
8250
+ last_floriday_sync_at: string | null;
8251
+ missing_required_fields: string[];
8252
+ source: string;
7365
8253
  updated_at: string;
7366
8254
  user_id: string;
7367
8255
  };
@@ -7369,7 +8257,13 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7369
8257
  connection_id?: string | null;
7370
8258
  created_at?: string;
7371
8259
  data?: import("../integrations/supabase/types").Json;
8260
+ floriday_id?: string | null;
8261
+ floriday_link_error?: string | null;
8262
+ floriday_link_status?: string;
7372
8263
  id?: string;
8264
+ last_floriday_sync_at?: string | null;
8265
+ missing_required_fields?: string[];
8266
+ source?: string;
7373
8267
  updated_at?: string;
7374
8268
  user_id: string;
7375
8269
  };
@@ -7377,7 +8271,13 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7377
8271
  connection_id?: string | null;
7378
8272
  created_at?: string;
7379
8273
  data?: import("../integrations/supabase/types").Json;
8274
+ floriday_id?: string | null;
8275
+ floriday_link_error?: string | null;
8276
+ floriday_link_status?: string;
7380
8277
  id?: string;
8278
+ last_floriday_sync_at?: string | null;
8279
+ missing_required_fields?: string[];
8280
+ source?: string;
7381
8281
  updated_at?: string;
7382
8282
  user_id?: string;
7383
8283
  };
@@ -7769,6 +8669,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7769
8669
  };
7770
8670
  twinfield_invoice_sync_logs: {
7771
8671
  Row: {
8672
+ action_type: string | null;
7772
8673
  created_at: string;
7773
8674
  details: import("../integrations/supabase/types").Json | null;
7774
8675
  duration_ms: number | null;
@@ -7781,6 +8682,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7781
8682
  user_id: string;
7782
8683
  };
7783
8684
  Insert: {
8685
+ action_type?: string | null;
7784
8686
  created_at?: string;
7785
8687
  details?: import("../integrations/supabase/types").Json | null;
7786
8688
  duration_ms?: number | null;
@@ -7793,6 +8695,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7793
8695
  user_id: string;
7794
8696
  };
7795
8697
  Update: {
8698
+ action_type?: string | null;
7796
8699
  created_at?: string;
7797
8700
  details?: import("../integrations/supabase/types").Json | null;
7798
8701
  duration_ms?: number | null;
@@ -8028,6 +8931,57 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
8028
8931
  referencedColumns: ["id"];
8029
8932
  }];
8030
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
+ };
8031
8985
  twinfield_settings: {
8032
8986
  Row: {
8033
8987
  active_environment: string;
@@ -8609,6 +9563,44 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
8609
9563
  };
8610
9564
  Relationships: [];
8611
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
+ };
8612
9604
  manufacture_product_possible_stock_view: {
8613
9605
  Row: {
8614
9606
  component_count: number | null;
@@ -8893,6 +9885,68 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
8893
9885
  };
8894
9886
  Returns: number;
8895
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
+ };
8896
9950
  assign_floriday_order_numbers: {
8897
9951
  Args: {
8898
9952
  p_ids: string[];
@@ -8902,16 +9956,56 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
8902
9956
  order_number: string;
8903
9957
  }[];
8904
9958
  };
9959
+ backfill_open_order_reservations: {
9960
+ Args: never;
9961
+ Returns: {
9962
+ processed_items: number;
9963
+ }[];
9964
+ };
8905
9965
  call_exact_route: {
8906
9966
  Args: {
8907
9967
  path: string;
8908
9968
  };
8909
9969
  Returns: number;
8910
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
+ };
8911
9993
  cleanup_old_bookings: {
8912
9994
  Args: never;
8913
9995
  Returns: number;
8914
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
+ };
8915
10009
  count_distinct_regulatory_products: {
8916
10010
  Args: never;
8917
10011
  Returns: number;
@@ -8920,6 +10014,17 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
8920
10014
  Args: never;
8921
10015
  Returns: string;
8922
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
+ };
8923
10028
  dashboard_list_public_schema: {
8924
10029
  Args: never;
8925
10030
  Returns: {
@@ -8928,6 +10033,12 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
8928
10033
  table_name: string;
8929
10034
  }[];
8930
10035
  };
10036
+ dispatch_carrier_signups_sql: {
10037
+ Args: {
10038
+ _catchup?: string;
10039
+ };
10040
+ Returns: import("../integrations/supabase/types").Json;
10041
+ };
8931
10042
  email_auth_decrypt: {
8932
10043
  Args: {
8933
10044
  cipher: string;
@@ -8963,6 +10074,12 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
8963
10074
  status: string;
8964
10075
  }[];
8965
10076
  };
10077
+ ensure_trade_item_stock_row: {
10078
+ Args: {
10079
+ p_key: string;
10080
+ };
10081
+ Returns: undefined;
10082
+ };
8966
10083
  ensure_user_tenant: {
8967
10084
  Args: never;
8968
10085
  Returns: string;
@@ -9000,6 +10117,38 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
9000
10117
  };
9001
10118
  Returns: boolean;
9002
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
+ };
9003
10152
  get_active_floriday_connection_public: {
9004
10153
  Args: never;
9005
10154
  Returns: {
@@ -9013,6 +10162,13 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
9013
10162
  preferred_warehouse_name: string;
9014
10163
  }[];
9015
10164
  };
10165
+ get_active_floriday_context: {
10166
+ Args: never;
10167
+ Returns: {
10168
+ connection_id: string;
10169
+ user_id: string;
10170
+ }[];
10171
+ };
9016
10172
  get_active_twinfield_public: {
9017
10173
  Args: never;
9018
10174
  Returns: {
@@ -9115,6 +10271,18 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
9115
10271
  };
9116
10272
  Returns: import("../integrations/supabase/types").Json;
9117
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
+ };
9118
10286
  get_or_assign_floriday_order_number: {
9119
10287
  Args: {
9120
10288
  p_floriday_id: string;
@@ -9167,6 +10335,34 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
9167
10335
  Args: never;
9168
10336
  Returns: boolean;
9169
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
+ };
9170
10366
  next_order_number: {
9171
10367
  Args: {
9172
10368
  p_prefix: string;
@@ -9186,6 +10382,14 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
9186
10382
  };
9187
10383
  Returns: string;
9188
10384
  };
10385
+ offer_recipient_matches: {
10386
+ Args: {
10387
+ _campaign_id: string;
10388
+ _customer_id: string;
10389
+ _recipient_id: string;
10390
+ };
10391
+ Returns: boolean;
10392
+ };
9189
10393
  pickstation_get_orders_raw: {
9190
10394
  Args: never;
9191
10395
  Returns: import("../integrations/supabase/types").Json;
@@ -9204,6 +10408,22 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
9204
10408
  };
9205
10409
  Returns: undefined;
9206
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
+ };
9207
10427
  refresh_floricode_derived_code_lists: {
9208
10428
  Args: never;
9209
10429
  Returns: {