@flowselections/floriday-authenticatie-module 1.0.15 → 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 (30) 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 +1 -1
@@ -20,6 +20,7 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
20
20
  max_workdays_earlier_pick: number;
21
21
  pick_days_before_transport: number;
22
22
  pick_distribution_enabled: boolean;
23
+ pick_weekdays: number[];
23
24
  signup_mail_enabled: boolean;
24
25
  signup_mail_lead_minutes: number;
25
26
  signup_mail_purpose: string;
@@ -33,6 +34,7 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
33
34
  max_workdays_earlier_pick?: number;
34
35
  pick_days_before_transport?: number;
35
36
  pick_distribution_enabled?: boolean;
37
+ pick_weekdays?: number[];
36
38
  signup_mail_enabled?: boolean;
37
39
  signup_mail_lead_minutes?: number;
38
40
  signup_mail_purpose?: string;
@@ -46,6 +48,7 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
46
48
  max_workdays_earlier_pick?: number;
47
49
  pick_days_before_transport?: number;
48
50
  pick_distribution_enabled?: boolean;
51
+ pick_weekdays?: number[];
49
52
  signup_mail_enabled?: boolean;
50
53
  signup_mail_lead_minutes?: number;
51
54
  signup_mail_purpose?: string;
@@ -457,6 +460,48 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
457
460
  referencedColumns: ["id"];
458
461
  }];
459
462
  };
463
+ carrier_signup_dispatch_runs: {
464
+ Row: {
465
+ detail: import("../integrations/supabase/types").Json | null;
466
+ error: string | null;
467
+ finished_at: string | null;
468
+ groups: number;
469
+ id: string;
470
+ ok: boolean;
471
+ reason: string | null;
472
+ sent: number;
473
+ skipped: import("../integrations/supabase/types").Json;
474
+ started_at: string;
475
+ unassigned: import("../integrations/supabase/types").Json;
476
+ };
477
+ Insert: {
478
+ detail?: import("../integrations/supabase/types").Json | null;
479
+ error?: string | null;
480
+ finished_at?: string | null;
481
+ groups?: number;
482
+ id?: string;
483
+ ok?: boolean;
484
+ reason?: string | null;
485
+ sent?: number;
486
+ skipped?: import("../integrations/supabase/types").Json;
487
+ started_at?: string;
488
+ unassigned?: import("../integrations/supabase/types").Json;
489
+ };
490
+ Update: {
491
+ detail?: import("../integrations/supabase/types").Json | null;
492
+ error?: string | null;
493
+ finished_at?: string | null;
494
+ groups?: number;
495
+ id?: string;
496
+ ok?: boolean;
497
+ reason?: string | null;
498
+ sent?: number;
499
+ skipped?: import("../integrations/supabase/types").Json;
500
+ started_at?: string;
501
+ unassigned?: import("../integrations/supabase/types").Json;
502
+ };
503
+ Relationships: [];
504
+ };
460
505
  carrier_signup_dispatches: {
461
506
  Row: {
462
507
  carrier_id: string;
@@ -508,6 +553,7 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
508
553
  contact_person: string | null;
509
554
  created_at: string;
510
555
  delivery_days: number | null;
556
+ delivery_weekdays: number[];
511
557
  email: string | null;
512
558
  id: string;
513
559
  is_default: boolean;
@@ -515,6 +561,7 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
515
561
  notes: string | null;
516
562
  phone: string | null;
517
563
  pickup_moments: import("../integrations/supabase/types").Json;
564
+ pickup_weekdays: number[];
518
565
  service_cities: string[];
519
566
  service_countries: string[];
520
567
  service_provinces: string[];
@@ -530,6 +577,7 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
530
577
  contact_person?: string | null;
531
578
  created_at?: string;
532
579
  delivery_days?: number | null;
580
+ delivery_weekdays?: number[];
533
581
  email?: string | null;
534
582
  id?: string;
535
583
  is_default?: boolean;
@@ -537,6 +585,7 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
537
585
  notes?: string | null;
538
586
  phone?: string | null;
539
587
  pickup_moments?: import("../integrations/supabase/types").Json;
588
+ pickup_weekdays?: number[];
540
589
  service_cities?: string[];
541
590
  service_countries?: string[];
542
591
  service_provinces?: string[];
@@ -552,6 +601,7 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
552
601
  contact_person?: string | null;
553
602
  created_at?: string;
554
603
  delivery_days?: number | null;
604
+ delivery_weekdays?: number[];
555
605
  email?: string | null;
556
606
  id?: string;
557
607
  is_default?: boolean;
@@ -559,6 +609,7 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
559
609
  notes?: string | null;
560
610
  phone?: string | null;
561
611
  pickup_moments?: import("../integrations/supabase/types").Json;
612
+ pickup_weekdays?: number[];
562
613
  service_cities?: string[];
563
614
  service_countries?: string[];
564
615
  service_provinces?: string[];
@@ -571,6 +622,180 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
571
622
  };
572
623
  Relationships: [];
573
624
  };
625
+ cart_control_draft: {
626
+ Row: {
627
+ cart_states: import("../integrations/supabase/types").Json;
628
+ checked_keys: import("../integrations/supabase/types").Json;
629
+ draft_date: string;
630
+ form_state: import("../integrations/supabase/types").Json;
631
+ notes: string;
632
+ updated_at: string;
633
+ user_id: string;
634
+ };
635
+ Insert: {
636
+ cart_states?: import("../integrations/supabase/types").Json;
637
+ checked_keys?: import("../integrations/supabase/types").Json;
638
+ draft_date: string;
639
+ form_state?: import("../integrations/supabase/types").Json;
640
+ notes?: string;
641
+ updated_at?: string;
642
+ user_id: string;
643
+ };
644
+ Update: {
645
+ cart_states?: import("../integrations/supabase/types").Json;
646
+ checked_keys?: import("../integrations/supabase/types").Json;
647
+ draft_date?: string;
648
+ form_state?: import("../integrations/supabase/types").Json;
649
+ notes?: string;
650
+ updated_at?: string;
651
+ user_id?: string;
652
+ };
653
+ Relationships: [];
654
+ };
655
+ cart_control_items: {
656
+ Row: {
657
+ action: string;
658
+ block_reason: string | null;
659
+ carrier_name: string | null;
660
+ cart_index: number;
661
+ cart_number_id: string | null;
662
+ cart_number_label: string | null;
663
+ created_at: string;
664
+ customer_name: string | null;
665
+ delivery_date: string | null;
666
+ id: string;
667
+ new_pick_date: string | null;
668
+ order_id: string;
669
+ order_number: string | null;
670
+ order_source: string;
671
+ pickup_date: string | null;
672
+ session_id: string;
673
+ };
674
+ Insert: {
675
+ action: string;
676
+ block_reason?: string | null;
677
+ carrier_name?: string | null;
678
+ cart_index: number;
679
+ cart_number_id?: string | null;
680
+ cart_number_label?: string | null;
681
+ created_at?: string;
682
+ customer_name?: string | null;
683
+ delivery_date?: string | null;
684
+ id?: string;
685
+ new_pick_date?: string | null;
686
+ order_id: string;
687
+ order_number?: string | null;
688
+ order_source: string;
689
+ pickup_date?: string | null;
690
+ session_id: string;
691
+ };
692
+ Update: {
693
+ action?: string;
694
+ block_reason?: string | null;
695
+ carrier_name?: string | null;
696
+ cart_index?: number;
697
+ cart_number_id?: string | null;
698
+ cart_number_label?: string | null;
699
+ created_at?: string;
700
+ customer_name?: string | null;
701
+ delivery_date?: string | null;
702
+ id?: string;
703
+ new_pick_date?: string | null;
704
+ order_id?: string;
705
+ order_number?: string | null;
706
+ order_source?: string;
707
+ pickup_date?: string | null;
708
+ session_id?: string;
709
+ };
710
+ Relationships: [{
711
+ foreignKeyName: "cart_control_items_session_id_fkey";
712
+ columns: ["session_id"];
713
+ isOneToOne: false;
714
+ referencedRelation: "cart_control_sessions";
715
+ referencedColumns: ["id"];
716
+ }];
717
+ };
718
+ cart_control_sessions: {
719
+ Row: {
720
+ blocked_count: number;
721
+ checked_count: number;
722
+ control_date: string;
723
+ created_at: string;
724
+ id: string;
725
+ notes: string | null;
726
+ performed_at: string;
727
+ rescheduled_count: number;
728
+ stock_consumed_at: string | null;
729
+ total_carts: number;
730
+ updated_at: string;
731
+ user_id: string;
732
+ };
733
+ Insert: {
734
+ blocked_count?: number;
735
+ checked_count?: number;
736
+ control_date?: string;
737
+ created_at?: string;
738
+ id?: string;
739
+ notes?: string | null;
740
+ performed_at?: string;
741
+ rescheduled_count?: number;
742
+ stock_consumed_at?: string | null;
743
+ total_carts?: number;
744
+ updated_at?: string;
745
+ user_id: string;
746
+ };
747
+ Update: {
748
+ blocked_count?: number;
749
+ checked_count?: number;
750
+ control_date?: string;
751
+ created_at?: string;
752
+ id?: string;
753
+ notes?: string | null;
754
+ performed_at?: string;
755
+ rescheduled_count?: number;
756
+ stock_consumed_at?: string | null;
757
+ total_carts?: number;
758
+ updated_at?: string;
759
+ user_id?: string;
760
+ };
761
+ Relationships: [];
762
+ };
763
+ cart_numbers: {
764
+ Row: {
765
+ assigned_at: string;
766
+ cart_index: number;
767
+ cart_number: string;
768
+ day_seq: number;
769
+ id: string;
770
+ order_id: string;
771
+ order_source: string;
772
+ pick_date: string;
773
+ status: string;
774
+ };
775
+ Insert: {
776
+ assigned_at?: string;
777
+ cart_index: number;
778
+ cart_number: string;
779
+ day_seq: number;
780
+ id?: string;
781
+ order_id: string;
782
+ order_source: string;
783
+ pick_date: string;
784
+ status?: string;
785
+ };
786
+ Update: {
787
+ assigned_at?: string;
788
+ cart_index?: number;
789
+ cart_number?: string;
790
+ day_seq?: number;
791
+ id?: string;
792
+ order_id?: string;
793
+ order_source?: string;
794
+ pick_date?: string;
795
+ status?: string;
796
+ };
797
+ Relationships: [];
798
+ };
574
799
  cart_pick_overrides: {
575
800
  Row: {
576
801
  cart_index: number;
@@ -1243,6 +1468,54 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
1243
1468
  referencedColumns: ["id"];
1244
1469
  }];
1245
1470
  };
1471
+ dashboard_critical_alerts: {
1472
+ Row: {
1473
+ alert_key: string;
1474
+ alert_type: string;
1475
+ created_at: string;
1476
+ description: string | null;
1477
+ id: string;
1478
+ metadata: import("../integrations/supabase/types").Json | null;
1479
+ priority: string;
1480
+ raised_at: string;
1481
+ related_cart_ids: string[] | null;
1482
+ resolved_at: string | null;
1483
+ title: string;
1484
+ updated_at: string;
1485
+ user_id: string;
1486
+ };
1487
+ Insert: {
1488
+ alert_key: string;
1489
+ alert_type: string;
1490
+ created_at?: string;
1491
+ description?: string | null;
1492
+ id?: string;
1493
+ metadata?: import("../integrations/supabase/types").Json | null;
1494
+ priority?: string;
1495
+ raised_at?: string;
1496
+ related_cart_ids?: string[] | null;
1497
+ resolved_at?: string | null;
1498
+ title: string;
1499
+ updated_at?: string;
1500
+ user_id: string;
1501
+ };
1502
+ Update: {
1503
+ alert_key?: string;
1504
+ alert_type?: string;
1505
+ created_at?: string;
1506
+ description?: string | null;
1507
+ id?: string;
1508
+ metadata?: import("../integrations/supabase/types").Json | null;
1509
+ priority?: string;
1510
+ raised_at?: string;
1511
+ related_cart_ids?: string[] | null;
1512
+ resolved_at?: string | null;
1513
+ title?: string;
1514
+ updated_at?: string;
1515
+ user_id?: string;
1516
+ };
1517
+ Relationships: [];
1518
+ };
1246
1519
  dashboard_daily_reports: {
1247
1520
  Row: {
1248
1521
  created_at: string;
@@ -3361,6 +3634,51 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
3361
3634
  referencedColumns: ["id"];
3362
3635
  }];
3363
3636
  };
3637
+ floriday_continuous_stock_queue: {
3638
+ Row: {
3639
+ attempts: number;
3640
+ connection_id: string;
3641
+ created_at: string;
3642
+ gateway_attempt_id: string | null;
3643
+ id: string;
3644
+ last_error: string | null;
3645
+ number_of_pieces: number;
3646
+ sent_at: string | null;
3647
+ status: string;
3648
+ trade_item_id: string;
3649
+ updated_at: string;
3650
+ user_id: string;
3651
+ };
3652
+ Insert: {
3653
+ attempts?: number;
3654
+ connection_id: string;
3655
+ created_at?: string;
3656
+ gateway_attempt_id?: string | null;
3657
+ id?: string;
3658
+ last_error?: string | null;
3659
+ number_of_pieces?: number;
3660
+ sent_at?: string | null;
3661
+ status?: string;
3662
+ trade_item_id: string;
3663
+ updated_at?: string;
3664
+ user_id: string;
3665
+ };
3666
+ Update: {
3667
+ attempts?: number;
3668
+ connection_id?: string;
3669
+ created_at?: string;
3670
+ gateway_attempt_id?: string | null;
3671
+ id?: string;
3672
+ last_error?: string | null;
3673
+ number_of_pieces?: number;
3674
+ sent_at?: string | null;
3675
+ status?: string;
3676
+ trade_item_id?: string;
3677
+ updated_at?: string;
3678
+ user_id?: string;
3679
+ };
3680
+ Relationships: [];
3681
+ };
3364
3682
  floriday_contract_trade_item_groups_cache: {
3365
3683
  Row: {
3366
3684
  connection_id: string;
@@ -4750,52 +5068,250 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
4750
5068
  };
4751
5069
  Relationships: [];
4752
5070
  };
4753
- locations: {
5071
+ local_customer_agreements: {
4754
5072
  Row: {
5073
+ base_price: number | null;
4755
5074
  created_at: string;
5075
+ currency: string;
5076
+ customer_id: string;
4756
5077
  id: string;
4757
- name: string;
4758
- sort_order: number;
5078
+ min_quantity: number;
5079
+ net_price: number;
5080
+ notes: string | null;
5081
+ product_category_id: string | null;
5082
+ product_id: string | null;
4759
5083
  updated_at: string;
5084
+ valid_from: string | null;
5085
+ valid_until: string | null;
4760
5086
  };
4761
5087
  Insert: {
5088
+ base_price?: number | null;
4762
5089
  created_at?: string;
5090
+ currency?: string;
5091
+ customer_id: string;
4763
5092
  id?: string;
4764
- name: string;
4765
- sort_order?: number;
5093
+ min_quantity?: number;
5094
+ net_price: number;
5095
+ notes?: string | null;
5096
+ product_category_id?: string | null;
5097
+ product_id?: string | null;
4766
5098
  updated_at?: string;
5099
+ valid_from?: string | null;
5100
+ valid_until?: string | null;
4767
5101
  };
4768
5102
  Update: {
5103
+ base_price?: number | null;
4769
5104
  created_at?: string;
5105
+ currency?: string;
5106
+ customer_id?: string;
4770
5107
  id?: string;
4771
- name?: string;
4772
- sort_order?: number;
5108
+ min_quantity?: number;
5109
+ net_price?: number;
5110
+ notes?: string | null;
5111
+ product_category_id?: string | null;
5112
+ product_id?: string | null;
4773
5113
  updated_at?: string;
5114
+ valid_from?: string | null;
5115
+ valid_until?: string | null;
4774
5116
  };
4775
- Relationships: [];
5117
+ Relationships: [{
5118
+ foreignKeyName: "local_customer_agreements_customer_id_fkey";
5119
+ columns: ["customer_id"];
5120
+ isOneToOne: false;
5121
+ referencedRelation: "customers";
5122
+ referencedColumns: ["id"];
5123
+ }, {
5124
+ foreignKeyName: "local_customer_agreements_product_category_id_fkey";
5125
+ columns: ["product_category_id"];
5126
+ isOneToOne: false;
5127
+ referencedRelation: "product_categories";
5128
+ referencedColumns: ["id"];
5129
+ }, {
5130
+ foreignKeyName: "local_customer_agreements_product_id_fkey";
5131
+ columns: ["product_id"];
5132
+ isOneToOne: false;
5133
+ referencedRelation: "products";
5134
+ referencedColumns: ["id"];
5135
+ }];
4776
5136
  };
4777
- mailbox_messages: {
5137
+ local_customer_price_groups: {
4778
5138
  Row: {
4779
- body_html: string | null;
4780
- body_text: string | null;
4781
- connection_id: string | null;
4782
5139
  created_at: string;
4783
- error_message: string | null;
4784
- external_id: string | null;
4785
- from_email: string | null;
4786
- from_name: string | null;
5140
+ currency: string;
5141
+ customer_id: string;
5142
+ discount_type: string;
5143
+ discount_value: number;
4787
5144
  id: string;
4788
- message_id: string | null;
4789
- profile_id: string | null;
4790
- raw_size: number | null;
4791
- received_at: string | null;
4792
- status: string;
4793
- subject: string | null;
4794
- uid: number | null;
5145
+ min_quantity: number;
5146
+ notes: string | null;
5147
+ product_category_id: string | null;
5148
+ product_id: string | null;
4795
5149
  updated_at: string;
5150
+ valid_from: string | null;
5151
+ valid_until: string | null;
4796
5152
  };
4797
5153
  Insert: {
4798
- body_html?: string | null;
5154
+ created_at?: string;
5155
+ currency?: string;
5156
+ customer_id: string;
5157
+ discount_type: string;
5158
+ discount_value: number;
5159
+ id?: string;
5160
+ min_quantity?: number;
5161
+ notes?: string | null;
5162
+ product_category_id?: string | null;
5163
+ product_id?: string | null;
5164
+ updated_at?: string;
5165
+ valid_from?: string | null;
5166
+ valid_until?: string | null;
5167
+ };
5168
+ Update: {
5169
+ created_at?: string;
5170
+ currency?: string;
5171
+ customer_id?: string;
5172
+ discount_type?: string;
5173
+ discount_value?: number;
5174
+ id?: string;
5175
+ min_quantity?: number;
5176
+ notes?: string | null;
5177
+ product_category_id?: string | null;
5178
+ product_id?: string | null;
5179
+ updated_at?: string;
5180
+ valid_from?: string | null;
5181
+ valid_until?: string | null;
5182
+ };
5183
+ Relationships: [{
5184
+ foreignKeyName: "local_customer_price_groups_customer_id_fkey";
5185
+ columns: ["customer_id"];
5186
+ isOneToOne: false;
5187
+ referencedRelation: "customers";
5188
+ referencedColumns: ["id"];
5189
+ }, {
5190
+ foreignKeyName: "local_customer_price_groups_product_category_id_fkey";
5191
+ columns: ["product_category_id"];
5192
+ isOneToOne: false;
5193
+ referencedRelation: "product_categories";
5194
+ referencedColumns: ["id"];
5195
+ }, {
5196
+ foreignKeyName: "local_customer_price_groups_product_id_fkey";
5197
+ columns: ["product_id"];
5198
+ isOneToOne: false;
5199
+ referencedRelation: "products";
5200
+ referencedColumns: ["id"];
5201
+ }];
5202
+ };
5203
+ local_customer_sales_strategies: {
5204
+ Row: {
5205
+ created_at: string;
5206
+ currency: string;
5207
+ customer_id: string;
5208
+ discount_type: string;
5209
+ discount_value: number;
5210
+ id: string;
5211
+ min_quantity: number;
5212
+ notes: string | null;
5213
+ product_category_id: string | null;
5214
+ product_id: string | null;
5215
+ updated_at: string;
5216
+ valid_from: string | null;
5217
+ valid_until: string | null;
5218
+ };
5219
+ Insert: {
5220
+ created_at?: string;
5221
+ currency?: string;
5222
+ customer_id: string;
5223
+ discount_type: string;
5224
+ discount_value: number;
5225
+ id?: string;
5226
+ min_quantity?: number;
5227
+ notes?: string | null;
5228
+ product_category_id?: string | null;
5229
+ product_id?: string | null;
5230
+ updated_at?: string;
5231
+ valid_from?: string | null;
5232
+ valid_until?: string | null;
5233
+ };
5234
+ Update: {
5235
+ created_at?: string;
5236
+ currency?: string;
5237
+ customer_id?: string;
5238
+ discount_type?: string;
5239
+ discount_value?: number;
5240
+ id?: string;
5241
+ min_quantity?: number;
5242
+ notes?: string | null;
5243
+ product_category_id?: string | null;
5244
+ product_id?: string | null;
5245
+ updated_at?: string;
5246
+ valid_from?: string | null;
5247
+ valid_until?: string | null;
5248
+ };
5249
+ Relationships: [{
5250
+ foreignKeyName: "local_customer_sales_strategies_customer_id_fkey";
5251
+ columns: ["customer_id"];
5252
+ isOneToOne: false;
5253
+ referencedRelation: "customers";
5254
+ referencedColumns: ["id"];
5255
+ }, {
5256
+ foreignKeyName: "local_customer_sales_strategies_product_category_id_fkey";
5257
+ columns: ["product_category_id"];
5258
+ isOneToOne: false;
5259
+ referencedRelation: "product_categories";
5260
+ referencedColumns: ["id"];
5261
+ }, {
5262
+ foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
5263
+ columns: ["product_id"];
5264
+ isOneToOne: false;
5265
+ referencedRelation: "products";
5266
+ referencedColumns: ["id"];
5267
+ }];
5268
+ };
5269
+ locations: {
5270
+ Row: {
5271
+ created_at: string;
5272
+ id: string;
5273
+ name: string;
5274
+ sort_order: number;
5275
+ updated_at: string;
5276
+ };
5277
+ Insert: {
5278
+ created_at?: string;
5279
+ id?: string;
5280
+ name: string;
5281
+ sort_order?: number;
5282
+ updated_at?: string;
5283
+ };
5284
+ Update: {
5285
+ created_at?: string;
5286
+ id?: string;
5287
+ name?: string;
5288
+ sort_order?: number;
5289
+ updated_at?: string;
5290
+ };
5291
+ Relationships: [];
5292
+ };
5293
+ mailbox_messages: {
5294
+ Row: {
5295
+ body_html: string | null;
5296
+ body_text: string | null;
5297
+ connection_id: string | null;
5298
+ created_at: string;
5299
+ error_message: string | null;
5300
+ external_id: string | null;
5301
+ from_email: string | null;
5302
+ from_name: string | null;
5303
+ id: string;
5304
+ message_id: string | null;
5305
+ profile_id: string | null;
5306
+ raw_size: number | null;
5307
+ received_at: string | null;
5308
+ status: string;
5309
+ subject: string | null;
5310
+ uid: number | null;
5311
+ updated_at: string;
5312
+ };
5313
+ Insert: {
5314
+ body_html?: string | null;
4799
5315
  body_text?: string | null;
4800
5316
  connection_id?: string | null;
4801
5317
  created_at?: string;
@@ -5247,15 +5763,282 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
5247
5763
  role?: string;
5248
5764
  tenant_id?: string;
5249
5765
  updated_at?: string;
5250
- user_id?: string | null;
5766
+ user_id?: string | null;
5767
+ };
5768
+ Relationships: [{
5769
+ foreignKeyName: "monteurs_tenant_id_fkey";
5770
+ columns: ["tenant_id"];
5771
+ isOneToOne: false;
5772
+ referencedRelation: "tenants";
5773
+ referencedColumns: ["id"];
5774
+ }];
5775
+ };
5776
+ nmbrs_component_mapping: {
5777
+ Row: {
5778
+ created_at: string;
5779
+ id: string;
5780
+ source_kind: string;
5781
+ source_value: string | null;
5782
+ updated_at: string;
5783
+ wage_code: string;
5784
+ };
5785
+ Insert: {
5786
+ created_at?: string;
5787
+ id?: string;
5788
+ source_kind: string;
5789
+ source_value?: string | null;
5790
+ updated_at?: string;
5791
+ wage_code: string;
5792
+ };
5793
+ Update: {
5794
+ created_at?: string;
5795
+ id?: string;
5796
+ source_kind?: string;
5797
+ source_value?: string | null;
5798
+ updated_at?: string;
5799
+ wage_code?: string;
5800
+ };
5801
+ Relationships: [{
5802
+ foreignKeyName: "nmbrs_component_mapping_wage_code_fkey";
5803
+ columns: ["wage_code"];
5804
+ isOneToOne: false;
5805
+ referencedRelation: "nmbrs_wage_components";
5806
+ referencedColumns: ["code"];
5807
+ }];
5808
+ };
5809
+ nmbrs_employee_mapping: {
5810
+ Row: {
5811
+ active_from: string | null;
5812
+ active_to: string | null;
5813
+ contract_hours_per_week: number | null;
5814
+ created_at: string;
5815
+ hourly_wage: number | null;
5816
+ id: string;
5817
+ monteur_id: string;
5818
+ nmbrs_company_code: string | null;
5819
+ nmbrs_employee_number: string;
5820
+ updated_at: string;
5821
+ };
5822
+ Insert: {
5823
+ active_from?: string | null;
5824
+ active_to?: string | null;
5825
+ contract_hours_per_week?: number | null;
5826
+ created_at?: string;
5827
+ hourly_wage?: number | null;
5828
+ id?: string;
5829
+ monteur_id: string;
5830
+ nmbrs_company_code?: string | null;
5831
+ nmbrs_employee_number: string;
5832
+ updated_at?: string;
5833
+ };
5834
+ Update: {
5835
+ active_from?: string | null;
5836
+ active_to?: string | null;
5837
+ contract_hours_per_week?: number | null;
5838
+ created_at?: string;
5839
+ hourly_wage?: number | null;
5840
+ id?: string;
5841
+ monteur_id?: string;
5842
+ nmbrs_company_code?: string | null;
5843
+ nmbrs_employee_number?: string;
5844
+ updated_at?: string;
5845
+ };
5846
+ Relationships: [{
5847
+ foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
5848
+ columns: ["monteur_id"];
5849
+ isOneToOne: true;
5850
+ referencedRelation: "monteurs";
5851
+ referencedColumns: ["id"];
5852
+ }];
5853
+ };
5854
+ nmbrs_export_lines: {
5855
+ Row: {
5856
+ amount: number;
5857
+ created_at: string;
5858
+ entry_date: string;
5859
+ hours: number;
5860
+ id: string;
5861
+ monteur_id: string;
5862
+ nmbrs_employee_number: string | null;
5863
+ notes: string | null;
5864
+ run_id: string;
5865
+ source_kind: string | null;
5866
+ source_ref_id: string | null;
5867
+ updated_at: string;
5868
+ wage_code: string;
5869
+ };
5870
+ Insert: {
5871
+ amount?: number;
5872
+ created_at?: string;
5873
+ entry_date: string;
5874
+ hours?: number;
5875
+ id?: string;
5876
+ monteur_id: string;
5877
+ nmbrs_employee_number?: string | null;
5878
+ notes?: string | null;
5879
+ run_id: string;
5880
+ source_kind?: string | null;
5881
+ source_ref_id?: string | null;
5882
+ updated_at?: string;
5883
+ wage_code: string;
5884
+ };
5885
+ Update: {
5886
+ amount?: number;
5887
+ created_at?: string;
5888
+ entry_date?: string;
5889
+ hours?: number;
5890
+ id?: string;
5891
+ monteur_id?: string;
5892
+ nmbrs_employee_number?: string | null;
5893
+ notes?: string | null;
5894
+ run_id?: string;
5895
+ source_kind?: string | null;
5896
+ source_ref_id?: string | null;
5897
+ updated_at?: string;
5898
+ wage_code?: string;
5899
+ };
5900
+ Relationships: [{
5901
+ foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
5902
+ columns: ["monteur_id"];
5903
+ isOneToOne: false;
5904
+ referencedRelation: "monteurs";
5905
+ referencedColumns: ["id"];
5906
+ }, {
5907
+ foreignKeyName: "nmbrs_export_lines_run_id_fkey";
5908
+ columns: ["run_id"];
5909
+ isOneToOne: false;
5910
+ referencedRelation: "nmbrs_export_runs";
5911
+ referencedColumns: ["id"];
5912
+ }, {
5913
+ foreignKeyName: "nmbrs_export_lines_wage_code_fkey";
5914
+ columns: ["wage_code"];
5915
+ isOneToOne: false;
5916
+ referencedRelation: "nmbrs_wage_components";
5917
+ referencedColumns: ["code"];
5918
+ }];
5919
+ };
5920
+ nmbrs_export_runs: {
5921
+ Row: {
5922
+ created_at: string;
5923
+ file_name: string | null;
5924
+ generated_at: string;
5925
+ generated_by: string | null;
5926
+ id: string;
5927
+ notes: string | null;
5928
+ period_end: string;
5929
+ period_label: string;
5930
+ period_start: string;
5931
+ status: string;
5932
+ total_hours: number;
5933
+ total_lines: number;
5934
+ updated_at: string;
5935
+ };
5936
+ Insert: {
5937
+ created_at?: string;
5938
+ file_name?: string | null;
5939
+ generated_at?: string;
5940
+ generated_by?: string | null;
5941
+ id?: string;
5942
+ notes?: string | null;
5943
+ period_end: string;
5944
+ period_label: string;
5945
+ period_start: string;
5946
+ status?: string;
5947
+ total_hours?: number;
5948
+ total_lines?: number;
5949
+ updated_at?: string;
5950
+ };
5951
+ Update: {
5952
+ created_at?: string;
5953
+ file_name?: string | null;
5954
+ generated_at?: string;
5955
+ generated_by?: string | null;
5956
+ id?: string;
5957
+ notes?: string | null;
5958
+ period_end?: string;
5959
+ period_label?: string;
5960
+ period_start?: string;
5961
+ status?: string;
5962
+ total_hours?: number;
5963
+ total_lines?: number;
5964
+ updated_at?: string;
5965
+ };
5966
+ Relationships: [];
5967
+ };
5968
+ nmbrs_settings: {
5969
+ Row: {
5970
+ created_at: string;
5971
+ default_company_code: string | null;
5972
+ id: boolean;
5973
+ include_travel: boolean;
5974
+ overtime_threshold_daily: number;
5975
+ overtime_threshold_weekly: number;
5976
+ period_type: string;
5977
+ updated_at: string;
5978
+ updated_by: string | null;
5979
+ week_start_day: number;
5980
+ };
5981
+ Insert: {
5982
+ created_at?: string;
5983
+ default_company_code?: string | null;
5984
+ id?: boolean;
5985
+ include_travel?: boolean;
5986
+ overtime_threshold_daily?: number;
5987
+ overtime_threshold_weekly?: number;
5988
+ period_type?: string;
5989
+ updated_at?: string;
5990
+ updated_by?: string | null;
5991
+ week_start_day?: number;
5992
+ };
5993
+ Update: {
5994
+ created_at?: string;
5995
+ default_company_code?: string | null;
5996
+ id?: boolean;
5997
+ include_travel?: boolean;
5998
+ overtime_threshold_daily?: number;
5999
+ overtime_threshold_weekly?: number;
6000
+ period_type?: string;
6001
+ updated_at?: string;
6002
+ updated_by?: string | null;
6003
+ week_start_day?: number;
6004
+ };
6005
+ Relationships: [];
6006
+ };
6007
+ nmbrs_wage_components: {
6008
+ Row: {
6009
+ category: string;
6010
+ code: string;
6011
+ created_at: string;
6012
+ id: string;
6013
+ is_active: boolean;
6014
+ label: string;
6015
+ sort_order: number;
6016
+ unit: string;
6017
+ updated_at: string;
6018
+ };
6019
+ Insert: {
6020
+ category: string;
6021
+ code: string;
6022
+ created_at?: string;
6023
+ id?: string;
6024
+ is_active?: boolean;
6025
+ label: string;
6026
+ sort_order?: number;
6027
+ unit: string;
6028
+ updated_at?: string;
6029
+ };
6030
+ Update: {
6031
+ category?: string;
6032
+ code?: string;
6033
+ created_at?: string;
6034
+ id?: string;
6035
+ is_active?: boolean;
6036
+ label?: string;
6037
+ sort_order?: number;
6038
+ unit?: string;
6039
+ updated_at?: string;
5251
6040
  };
5252
- Relationships: [{
5253
- foreignKeyName: "monteurs_tenant_id_fkey";
5254
- columns: ["tenant_id"];
5255
- isOneToOne: false;
5256
- referencedRelation: "tenants";
5257
- referencedColumns: ["id"];
5258
- }];
6041
+ Relationships: [];
5259
6042
  };
5260
6043
  notifications: {
5261
6044
  Row: {
@@ -6239,6 +7022,7 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
6239
7022
  purchase_price: number | null;
6240
7023
  quantity: number;
6241
7024
  sale_price: number | null;
7025
+ trade_item_key: string | null;
6242
7026
  unit: string;
6243
7027
  updated_at: string;
6244
7028
  weight: string | null;
@@ -6261,6 +7045,7 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
6261
7045
  purchase_price?: number | null;
6262
7046
  quantity?: number;
6263
7047
  sale_price?: number | null;
7048
+ trade_item_key?: string | null;
6264
7049
  unit?: string;
6265
7050
  updated_at?: string;
6266
7051
  weight?: string | null;
@@ -6283,6 +7068,7 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
6283
7068
  purchase_price?: number | null;
6284
7069
  quantity?: number;
6285
7070
  sale_price?: number | null;
7071
+ trade_item_key?: string | null;
6286
7072
  unit?: string;
6287
7073
  updated_at?: string;
6288
7074
  weight?: string | null;
@@ -7102,6 +7888,102 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
7102
7888
  };
7103
7889
  Relationships: [];
7104
7890
  };
7891
+ stock_import_runs: {
7892
+ Row: {
7893
+ connection_id: string | null;
7894
+ created_at: string;
7895
+ created_rows: number;
7896
+ errors: import("../integrations/supabase/types").Json;
7897
+ filename: string | null;
7898
+ id: string;
7899
+ mutations: import("../integrations/supabase/types").Json;
7900
+ skipped_rows: number;
7901
+ total_rows: number;
7902
+ updated_rows: number;
7903
+ user_id: string;
7904
+ };
7905
+ Insert: {
7906
+ connection_id?: string | null;
7907
+ created_at?: string;
7908
+ created_rows?: number;
7909
+ errors?: import("../integrations/supabase/types").Json;
7910
+ filename?: string | null;
7911
+ id?: string;
7912
+ mutations?: import("../integrations/supabase/types").Json;
7913
+ skipped_rows?: number;
7914
+ total_rows?: number;
7915
+ updated_rows?: number;
7916
+ user_id: string;
7917
+ };
7918
+ Update: {
7919
+ connection_id?: string | null;
7920
+ created_at?: string;
7921
+ created_rows?: number;
7922
+ errors?: import("../integrations/supabase/types").Json;
7923
+ filename?: string | null;
7924
+ id?: string;
7925
+ mutations?: import("../integrations/supabase/types").Json;
7926
+ skipped_rows?: number;
7927
+ total_rows?: number;
7928
+ updated_rows?: number;
7929
+ user_id?: string;
7930
+ };
7931
+ Relationships: [];
7932
+ };
7933
+ stock_mutation_log: {
7934
+ Row: {
7935
+ connection_id: string | null;
7936
+ created_at: string;
7937
+ created_by: string | null;
7938
+ id: string;
7939
+ mutation_type: string;
7940
+ order_id: string | null;
7941
+ order_item_id: string | null;
7942
+ order_source: string | null;
7943
+ physical_after: number | null;
7944
+ physical_before: number | null;
7945
+ qty_delta: number;
7946
+ reason: string | null;
7947
+ reserved_after: number | null;
7948
+ reserved_before: number | null;
7949
+ trade_item_key: string;
7950
+ };
7951
+ Insert: {
7952
+ connection_id?: string | null;
7953
+ created_at?: string;
7954
+ created_by?: string | null;
7955
+ id?: string;
7956
+ mutation_type: string;
7957
+ order_id?: string | null;
7958
+ order_item_id?: string | null;
7959
+ order_source?: string | null;
7960
+ physical_after?: number | null;
7961
+ physical_before?: number | null;
7962
+ qty_delta: number;
7963
+ reason?: string | null;
7964
+ reserved_after?: number | null;
7965
+ reserved_before?: number | null;
7966
+ trade_item_key: string;
7967
+ };
7968
+ Update: {
7969
+ connection_id?: string | null;
7970
+ created_at?: string;
7971
+ created_by?: string | null;
7972
+ id?: string;
7973
+ mutation_type?: string;
7974
+ order_id?: string | null;
7975
+ order_item_id?: string | null;
7976
+ order_source?: string | null;
7977
+ physical_after?: number | null;
7978
+ physical_before?: number | null;
7979
+ qty_delta?: number;
7980
+ reason?: string | null;
7981
+ reserved_after?: number | null;
7982
+ reserved_before?: number | null;
7983
+ trade_item_key?: string;
7984
+ };
7985
+ Relationships: [];
7986
+ };
7105
7987
  supplier_products: {
7106
7988
  Row: {
7107
7989
  article_number: string | null;
@@ -7359,7 +8241,13 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
7359
8241
  connection_id: string | null;
7360
8242
  created_at: string;
7361
8243
  data: import("../integrations/supabase/types").Json;
8244
+ floriday_id: string | null;
8245
+ floriday_link_error: string | null;
8246
+ floriday_link_status: string;
7362
8247
  id: string;
8248
+ last_floriday_sync_at: string | null;
8249
+ missing_required_fields: string[];
8250
+ source: string;
7363
8251
  updated_at: string;
7364
8252
  user_id: string;
7365
8253
  };
@@ -7367,7 +8255,13 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
7367
8255
  connection_id?: string | null;
7368
8256
  created_at?: string;
7369
8257
  data?: import("../integrations/supabase/types").Json;
8258
+ floriday_id?: string | null;
8259
+ floriday_link_error?: string | null;
8260
+ floriday_link_status?: string;
7370
8261
  id?: string;
8262
+ last_floriday_sync_at?: string | null;
8263
+ missing_required_fields?: string[];
8264
+ source?: string;
7371
8265
  updated_at?: string;
7372
8266
  user_id: string;
7373
8267
  };
@@ -7375,7 +8269,13 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
7375
8269
  connection_id?: string | null;
7376
8270
  created_at?: string;
7377
8271
  data?: import("../integrations/supabase/types").Json;
8272
+ floriday_id?: string | null;
8273
+ floriday_link_error?: string | null;
8274
+ floriday_link_status?: string;
7378
8275
  id?: string;
8276
+ last_floriday_sync_at?: string | null;
8277
+ missing_required_fields?: string[];
8278
+ source?: string;
7379
8279
  updated_at?: string;
7380
8280
  user_id?: string;
7381
8281
  };
@@ -7767,6 +8667,7 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
7767
8667
  };
7768
8668
  twinfield_invoice_sync_logs: {
7769
8669
  Row: {
8670
+ action_type: string | null;
7770
8671
  created_at: string;
7771
8672
  details: import("../integrations/supabase/types").Json | null;
7772
8673
  duration_ms: number | null;
@@ -7779,6 +8680,7 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
7779
8680
  user_id: string;
7780
8681
  };
7781
8682
  Insert: {
8683
+ action_type?: string | null;
7782
8684
  created_at?: string;
7783
8685
  details?: import("../integrations/supabase/types").Json | null;
7784
8686
  duration_ms?: number | null;
@@ -7791,6 +8693,7 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
7791
8693
  user_id: string;
7792
8694
  };
7793
8695
  Update: {
8696
+ action_type?: string | null;
7794
8697
  created_at?: string;
7795
8698
  details?: import("../integrations/supabase/types").Json | null;
7796
8699
  duration_ms?: number | null;
@@ -8026,6 +8929,57 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
8026
8929
  referencedColumns: ["id"];
8027
8930
  }];
8028
8931
  };
8932
+ twinfield_request_metrics: {
8933
+ Row: {
8934
+ bucket_hour: string;
8935
+ connection_id: string;
8936
+ error_count: number;
8937
+ rate_limited_count: number;
8938
+ request_count: number;
8939
+ updated_at: string;
8940
+ };
8941
+ Insert: {
8942
+ bucket_hour: string;
8943
+ connection_id: string;
8944
+ error_count?: number;
8945
+ rate_limited_count?: number;
8946
+ request_count?: number;
8947
+ updated_at?: string;
8948
+ };
8949
+ Update: {
8950
+ bucket_hour?: string;
8951
+ connection_id?: string;
8952
+ error_count?: number;
8953
+ rate_limited_count?: number;
8954
+ request_count?: number;
8955
+ updated_at?: string;
8956
+ };
8957
+ Relationships: [];
8958
+ };
8959
+ twinfield_session_cache: {
8960
+ Row: {
8961
+ cluster: string;
8962
+ created_at: string;
8963
+ expires_at: string;
8964
+ session_id: string;
8965
+ user_id: string;
8966
+ };
8967
+ Insert: {
8968
+ cluster: string;
8969
+ created_at?: string;
8970
+ expires_at: string;
8971
+ session_id: string;
8972
+ user_id: string;
8973
+ };
8974
+ Update: {
8975
+ cluster?: string;
8976
+ created_at?: string;
8977
+ expires_at?: string;
8978
+ session_id?: string;
8979
+ user_id?: string;
8980
+ };
8981
+ Relationships: [];
8982
+ };
8029
8983
  twinfield_settings: {
8030
8984
  Row: {
8031
8985
  active_environment: string;
@@ -8607,6 +9561,44 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
8607
9561
  };
8608
9562
  Relationships: [];
8609
9563
  };
9564
+ floriday_customer_discounts: {
9565
+ Row: {
9566
+ base_price: number | null;
9567
+ buyer_organization_id: string | null;
9568
+ currency: string | null;
9569
+ discount_type: string | null;
9570
+ discount_value: number | null;
9571
+ min_quantity: number | null;
9572
+ net_price: number | null;
9573
+ product_group_id: string | null;
9574
+ raw: import("../integrations/supabase/types").Json | null;
9575
+ source: string | null;
9576
+ source_id: string | null;
9577
+ trade_item_id: string | null;
9578
+ valid_from: string | null;
9579
+ valid_until: string | null;
9580
+ };
9581
+ Relationships: [];
9582
+ };
9583
+ local_customer_discounts: {
9584
+ Row: {
9585
+ base_price: number | null;
9586
+ currency: string | null;
9587
+ customer_id: string | null;
9588
+ discount_type: string | null;
9589
+ discount_value: number | null;
9590
+ min_quantity: number | null;
9591
+ net_price: number | null;
9592
+ product_category_id: string | null;
9593
+ product_id: string | null;
9594
+ product_name: string | null;
9595
+ source: string | null;
9596
+ source_id: string | null;
9597
+ valid_from: string | null;
9598
+ valid_until: string | null;
9599
+ };
9600
+ Relationships: [];
9601
+ };
8610
9602
  manufacture_product_possible_stock_view: {
8611
9603
  Row: {
8612
9604
  component_count: number | null;
@@ -8891,6 +9883,68 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
8891
9883
  };
8892
9884
  Returns: number;
8893
9885
  };
9886
+ afh_city_code: {
9887
+ Args: {
9888
+ _city: string;
9889
+ _country: string;
9890
+ };
9891
+ Returns: string;
9892
+ };
9893
+ afh_normalize_country: {
9894
+ Args: {
9895
+ _raw: string;
9896
+ };
9897
+ Returns: string;
9898
+ };
9899
+ afh_normalize_nl_province: {
9900
+ Args: {
9901
+ _raw: string;
9902
+ };
9903
+ Returns: string;
9904
+ };
9905
+ afh_subtract_workdays: {
9906
+ Args: {
9907
+ _date: string;
9908
+ _days: number;
9909
+ };
9910
+ Returns: string;
9911
+ };
9912
+ apply_stock_consumption: {
9913
+ Args: {
9914
+ p_order_id: string;
9915
+ p_order_item_id: string;
9916
+ p_qty: number;
9917
+ p_reason: string;
9918
+ p_source: string;
9919
+ p_trade_item_key: string;
9920
+ };
9921
+ Returns: undefined;
9922
+ };
9923
+ apply_stock_reservation: {
9924
+ Args: {
9925
+ p_order_id: string;
9926
+ p_order_item_id: string;
9927
+ p_qty: number;
9928
+ p_reason: string;
9929
+ p_source: string;
9930
+ p_trade_item_key: string;
9931
+ };
9932
+ Returns: undefined;
9933
+ };
9934
+ assign_cart_numbers: {
9935
+ Args: {
9936
+ p_carts: import("../integrations/supabase/types").Json;
9937
+ };
9938
+ Returns: {
9939
+ cart_index: number;
9940
+ cart_number: string;
9941
+ day_seq: number;
9942
+ order_id: string;
9943
+ order_source: string;
9944
+ pick_date: string;
9945
+ status: string;
9946
+ }[];
9947
+ };
8894
9948
  assign_floriday_order_numbers: {
8895
9949
  Args: {
8896
9950
  p_ids: string[];
@@ -8900,16 +9954,56 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
8900
9954
  order_number: string;
8901
9955
  }[];
8902
9956
  };
9957
+ backfill_open_order_reservations: {
9958
+ Args: never;
9959
+ Returns: {
9960
+ processed_items: number;
9961
+ }[];
9962
+ };
8903
9963
  call_exact_route: {
8904
9964
  Args: {
8905
9965
  path: string;
8906
9966
  };
8907
9967
  Returns: number;
8908
9968
  };
9969
+ check_offer_product_available_stock: {
9970
+ Args: {
9971
+ p_campaign_product_id: string;
9972
+ p_code: string;
9973
+ p_needed_qty?: number;
9974
+ p_product_name?: string;
9975
+ };
9976
+ Returns: import("../integrations/supabase/types").Json;
9977
+ };
9978
+ check_trade_item_available_stock: {
9979
+ Args: {
9980
+ p_connection_id?: string;
9981
+ p_context?: string;
9982
+ p_needed_qty?: number;
9983
+ p_order_id?: string;
9984
+ p_order_item_id?: string;
9985
+ p_owner_id?: string;
9986
+ p_product_name?: string;
9987
+ p_trade_item_key: string;
9988
+ };
9989
+ Returns: import("../integrations/supabase/types").Json;
9990
+ };
8909
9991
  cleanup_old_bookings: {
8910
9992
  Args: never;
8911
9993
  Returns: number;
8912
9994
  };
9995
+ control_get_todays_carts: {
9996
+ Args: never;
9997
+ Returns: {
9998
+ cart_index: number;
9999
+ cart_number: string;
10000
+ cart_number_id: string;
10001
+ order_id: string;
10002
+ order_source: string;
10003
+ pick_date: string;
10004
+ status: string;
10005
+ }[];
10006
+ };
8913
10007
  count_distinct_regulatory_products: {
8914
10008
  Args: never;
8915
10009
  Returns: number;
@@ -8918,6 +10012,17 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
8918
10012
  Args: never;
8919
10013
  Returns: string;
8920
10014
  };
10015
+ dashboard_alert_counts: {
10016
+ Args: never;
10017
+ Returns: import("../integrations/supabase/types").Json;
10018
+ };
10019
+ dashboard_alert_rows: {
10020
+ Args: {
10021
+ check_id: string;
10022
+ row_limit?: number;
10023
+ };
10024
+ Returns: import("../integrations/supabase/types").Json;
10025
+ };
8921
10026
  dashboard_list_public_schema: {
8922
10027
  Args: never;
8923
10028
  Returns: {
@@ -8926,6 +10031,12 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
8926
10031
  table_name: string;
8927
10032
  }[];
8928
10033
  };
10034
+ dispatch_carrier_signups_sql: {
10035
+ Args: {
10036
+ _catchup?: string;
10037
+ };
10038
+ Returns: import("../integrations/supabase/types").Json;
10039
+ };
8929
10040
  email_auth_decrypt: {
8930
10041
  Args: {
8931
10042
  cipher: string;
@@ -8961,6 +10072,12 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
8961
10072
  status: string;
8962
10073
  }[];
8963
10074
  };
10075
+ ensure_trade_item_stock_row: {
10076
+ Args: {
10077
+ p_key: string;
10078
+ };
10079
+ Returns: undefined;
10080
+ };
8964
10081
  ensure_user_tenant: {
8965
10082
  Args: never;
8966
10083
  Returns: string;
@@ -8998,6 +10115,38 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
8998
10115
  };
8999
10116
  Returns: boolean;
9000
10117
  };
10118
+ find_trade_item_key: {
10119
+ Args: {
10120
+ p_barcode: string;
10121
+ p_name: string;
10122
+ p_product_id: string;
10123
+ };
10124
+ Returns: string;
10125
+ };
10126
+ floriday_effective_price: {
10127
+ Args: {
10128
+ _buyer_id: string;
10129
+ _on_date?: string;
10130
+ _quantity?: number;
10131
+ _trade_item_id: string;
10132
+ };
10133
+ Returns: {
10134
+ base_price: number;
10135
+ currency: string;
10136
+ discount_type: string;
10137
+ discount_value: number;
10138
+ net_price: number;
10139
+ source: string;
10140
+ source_id: string;
10141
+ }[];
10142
+ };
10143
+ format_cart_number: {
10144
+ Args: {
10145
+ p_pick_date: string;
10146
+ p_seq: number;
10147
+ };
10148
+ Returns: string;
10149
+ };
9001
10150
  get_active_floriday_connection_public: {
9002
10151
  Args: never;
9003
10152
  Returns: {
@@ -9011,6 +10160,13 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
9011
10160
  preferred_warehouse_name: string;
9012
10161
  }[];
9013
10162
  };
10163
+ get_active_floriday_context: {
10164
+ Args: never;
10165
+ Returns: {
10166
+ connection_id: string;
10167
+ user_id: string;
10168
+ }[];
10169
+ };
9014
10170
  get_active_twinfield_public: {
9015
10171
  Args: never;
9016
10172
  Returns: {
@@ -9113,6 +10269,18 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
9113
10269
  };
9114
10270
  Returns: import("../integrations/supabase/types").Json;
9115
10271
  };
10272
+ get_offer_recipient_by_code: {
10273
+ Args: {
10274
+ p_code: string;
10275
+ };
10276
+ Returns: {
10277
+ campaign_id: string;
10278
+ clicked_at: string;
10279
+ customer_id: string;
10280
+ id: string;
10281
+ ordered_at: string;
10282
+ }[];
10283
+ };
9116
10284
  get_or_assign_floriday_order_number: {
9117
10285
  Args: {
9118
10286
  p_floriday_id: string;
@@ -9165,6 +10333,34 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
9165
10333
  Args: never;
9166
10334
  Returns: boolean;
9167
10335
  };
10336
+ local_effective_price: {
10337
+ Args: {
10338
+ _customer_id: string;
10339
+ _on_date?: string;
10340
+ _product_id: string;
10341
+ _quantity?: number;
10342
+ };
10343
+ Returns: {
10344
+ currency: string;
10345
+ discount_type: string;
10346
+ discount_value: number;
10347
+ net_price: number;
10348
+ source: string;
10349
+ source_id: string;
10350
+ }[];
10351
+ };
10352
+ mark_offer_clicked: {
10353
+ Args: {
10354
+ p_code: string;
10355
+ };
10356
+ Returns: undefined;
10357
+ };
10358
+ mark_offer_ordered: {
10359
+ Args: {
10360
+ p_code: string;
10361
+ };
10362
+ Returns: undefined;
10363
+ };
9168
10364
  next_order_number: {
9169
10365
  Args: {
9170
10366
  p_prefix: string;
@@ -9184,6 +10380,14 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
9184
10380
  };
9185
10381
  Returns: string;
9186
10382
  };
10383
+ offer_recipient_matches: {
10384
+ Args: {
10385
+ _campaign_id: string;
10386
+ _customer_id: string;
10387
+ _recipient_id: string;
10388
+ };
10389
+ Returns: boolean;
10390
+ };
9187
10391
  pickstation_get_orders_raw: {
9188
10392
  Args: never;
9189
10393
  Returns: import("../integrations/supabase/types").Json;
@@ -9202,6 +10406,22 @@ export declare const getFlorydayCustomerSticker: import("@tanstack/start-client-
9202
10406
  };
9203
10407
  Returns: undefined;
9204
10408
  };
10409
+ pickstation_set_cart_status: {
10410
+ Args: {
10411
+ p_cart_index: number;
10412
+ p_order_id: string;
10413
+ p_order_source: string;
10414
+ p_status: string;
10415
+ };
10416
+ Returns: undefined;
10417
+ };
10418
+ promote_trade_item_key: {
10419
+ Args: {
10420
+ p_new: string;
10421
+ p_old: string;
10422
+ };
10423
+ Returns: undefined;
10424
+ };
9205
10425
  refresh_floricode_derived_code_lists: {
9206
10426
  Args: never;
9207
10427
  Returns: {