@flowselections/mailbox-orders 1.0.4 → 1.0.5

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.
@@ -8,6 +8,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8
8
  max_workdays_earlier_pick: number;
9
9
  pick_days_before_transport: number;
10
10
  pick_distribution_enabled: boolean;
11
+ pick_weekdays: number[];
11
12
  signup_mail_enabled: boolean;
12
13
  signup_mail_lead_minutes: number;
13
14
  signup_mail_purpose: string;
@@ -21,6 +22,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
21
22
  max_workdays_earlier_pick?: number;
22
23
  pick_days_before_transport?: number;
23
24
  pick_distribution_enabled?: boolean;
25
+ pick_weekdays?: number[];
24
26
  signup_mail_enabled?: boolean;
25
27
  signup_mail_lead_minutes?: number;
26
28
  signup_mail_purpose?: string;
@@ -34,6 +36,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
34
36
  max_workdays_earlier_pick?: number;
35
37
  pick_days_before_transport?: number;
36
38
  pick_distribution_enabled?: boolean;
39
+ pick_weekdays?: number[];
37
40
  signup_mail_enabled?: boolean;
38
41
  signup_mail_lead_minutes?: number;
39
42
  signup_mail_purpose?: string;
@@ -445,6 +448,48 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
445
448
  referencedColumns: ["id"];
446
449
  }];
447
450
  };
451
+ carrier_signup_dispatch_runs: {
452
+ Row: {
453
+ detail: import("./types").Json | null;
454
+ error: string | null;
455
+ finished_at: string | null;
456
+ groups: number;
457
+ id: string;
458
+ ok: boolean;
459
+ reason: string | null;
460
+ sent: number;
461
+ skipped: import("./types").Json;
462
+ started_at: string;
463
+ unassigned: import("./types").Json;
464
+ };
465
+ Insert: {
466
+ detail?: import("./types").Json | null;
467
+ error?: string | null;
468
+ finished_at?: string | null;
469
+ groups?: number;
470
+ id?: string;
471
+ ok?: boolean;
472
+ reason?: string | null;
473
+ sent?: number;
474
+ skipped?: import("./types").Json;
475
+ started_at?: string;
476
+ unassigned?: import("./types").Json;
477
+ };
478
+ Update: {
479
+ detail?: import("./types").Json | null;
480
+ error?: string | null;
481
+ finished_at?: string | null;
482
+ groups?: number;
483
+ id?: string;
484
+ ok?: boolean;
485
+ reason?: string | null;
486
+ sent?: number;
487
+ skipped?: import("./types").Json;
488
+ started_at?: string;
489
+ unassigned?: import("./types").Json;
490
+ };
491
+ Relationships: [];
492
+ };
448
493
  carrier_signup_dispatches: {
449
494
  Row: {
450
495
  carrier_id: string;
@@ -496,6 +541,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
496
541
  contact_person: string | null;
497
542
  created_at: string;
498
543
  delivery_days: number | null;
544
+ delivery_weekdays: number[];
499
545
  email: string | null;
500
546
  id: string;
501
547
  is_default: boolean;
@@ -503,6 +549,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
503
549
  notes: string | null;
504
550
  phone: string | null;
505
551
  pickup_moments: import("./types").Json;
552
+ pickup_weekdays: number[];
506
553
  service_cities: string[];
507
554
  service_countries: string[];
508
555
  service_provinces: string[];
@@ -518,6 +565,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
518
565
  contact_person?: string | null;
519
566
  created_at?: string;
520
567
  delivery_days?: number | null;
568
+ delivery_weekdays?: number[];
521
569
  email?: string | null;
522
570
  id?: string;
523
571
  is_default?: boolean;
@@ -525,6 +573,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
525
573
  notes?: string | null;
526
574
  phone?: string | null;
527
575
  pickup_moments?: import("./types").Json;
576
+ pickup_weekdays?: number[];
528
577
  service_cities?: string[];
529
578
  service_countries?: string[];
530
579
  service_provinces?: string[];
@@ -540,6 +589,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
540
589
  contact_person?: string | null;
541
590
  created_at?: string;
542
591
  delivery_days?: number | null;
592
+ delivery_weekdays?: number[];
543
593
  email?: string | null;
544
594
  id?: string;
545
595
  is_default?: boolean;
@@ -547,6 +597,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
547
597
  notes?: string | null;
548
598
  phone?: string | null;
549
599
  pickup_moments?: import("./types").Json;
600
+ pickup_weekdays?: number[];
550
601
  service_cities?: string[];
551
602
  service_countries?: string[];
552
603
  service_provinces?: string[];
@@ -559,6 +610,177 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
559
610
  };
560
611
  Relationships: [];
561
612
  };
613
+ cart_control_draft: {
614
+ Row: {
615
+ cart_states: import("./types").Json;
616
+ checked_keys: import("./types").Json;
617
+ draft_date: string;
618
+ form_state: import("./types").Json;
619
+ notes: string;
620
+ updated_at: string;
621
+ user_id: string;
622
+ };
623
+ Insert: {
624
+ cart_states?: import("./types").Json;
625
+ checked_keys?: import("./types").Json;
626
+ draft_date: string;
627
+ form_state?: import("./types").Json;
628
+ notes?: string;
629
+ updated_at?: string;
630
+ user_id: string;
631
+ };
632
+ Update: {
633
+ cart_states?: import("./types").Json;
634
+ checked_keys?: import("./types").Json;
635
+ draft_date?: string;
636
+ form_state?: import("./types").Json;
637
+ notes?: string;
638
+ updated_at?: string;
639
+ user_id?: string;
640
+ };
641
+ Relationships: [];
642
+ };
643
+ cart_control_items: {
644
+ Row: {
645
+ action: string;
646
+ block_reason: string | null;
647
+ carrier_name: string | null;
648
+ cart_index: number;
649
+ cart_number_id: string | null;
650
+ cart_number_label: string | null;
651
+ created_at: string;
652
+ customer_name: string | null;
653
+ delivery_date: string | null;
654
+ id: string;
655
+ new_pick_date: string | null;
656
+ order_id: string;
657
+ order_number: string | null;
658
+ order_source: string;
659
+ pickup_date: string | null;
660
+ session_id: string;
661
+ };
662
+ Insert: {
663
+ action: string;
664
+ block_reason?: string | null;
665
+ carrier_name?: string | null;
666
+ cart_index: number;
667
+ cart_number_id?: string | null;
668
+ cart_number_label?: string | null;
669
+ created_at?: string;
670
+ customer_name?: string | null;
671
+ delivery_date?: string | null;
672
+ id?: string;
673
+ new_pick_date?: string | null;
674
+ order_id: string;
675
+ order_number?: string | null;
676
+ order_source: string;
677
+ pickup_date?: string | null;
678
+ session_id: string;
679
+ };
680
+ Update: {
681
+ action?: string;
682
+ block_reason?: string | null;
683
+ carrier_name?: string | null;
684
+ cart_index?: number;
685
+ cart_number_id?: string | null;
686
+ cart_number_label?: string | null;
687
+ created_at?: string;
688
+ customer_name?: string | null;
689
+ delivery_date?: string | null;
690
+ id?: string;
691
+ new_pick_date?: string | null;
692
+ order_id?: string;
693
+ order_number?: string | null;
694
+ order_source?: string;
695
+ pickup_date?: string | null;
696
+ session_id?: string;
697
+ };
698
+ Relationships: [{
699
+ foreignKeyName: "cart_control_items_session_id_fkey";
700
+ columns: ["session_id"];
701
+ isOneToOne: false;
702
+ referencedRelation: "cart_control_sessions";
703
+ referencedColumns: ["id"];
704
+ }];
705
+ };
706
+ cart_control_sessions: {
707
+ Row: {
708
+ blocked_count: number;
709
+ checked_count: number;
710
+ control_date: string;
711
+ created_at: string;
712
+ id: string;
713
+ notes: string | null;
714
+ performed_at: string;
715
+ rescheduled_count: number;
716
+ total_carts: number;
717
+ updated_at: string;
718
+ user_id: string;
719
+ };
720
+ Insert: {
721
+ blocked_count?: number;
722
+ checked_count?: number;
723
+ control_date?: string;
724
+ created_at?: string;
725
+ id?: string;
726
+ notes?: string | null;
727
+ performed_at?: string;
728
+ rescheduled_count?: number;
729
+ total_carts?: number;
730
+ updated_at?: string;
731
+ user_id: string;
732
+ };
733
+ Update: {
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
+ total_carts?: number;
743
+ updated_at?: string;
744
+ user_id?: string;
745
+ };
746
+ Relationships: [];
747
+ };
748
+ cart_numbers: {
749
+ Row: {
750
+ assigned_at: string;
751
+ cart_index: number;
752
+ cart_number: string;
753
+ day_seq: number;
754
+ id: string;
755
+ order_id: string;
756
+ order_source: string;
757
+ pick_date: string;
758
+ status: string;
759
+ };
760
+ Insert: {
761
+ assigned_at?: string;
762
+ cart_index: number;
763
+ cart_number: string;
764
+ day_seq: number;
765
+ id?: string;
766
+ order_id: string;
767
+ order_source: string;
768
+ pick_date: string;
769
+ status?: string;
770
+ };
771
+ Update: {
772
+ assigned_at?: string;
773
+ cart_index?: number;
774
+ cart_number?: string;
775
+ day_seq?: number;
776
+ id?: string;
777
+ order_id?: string;
778
+ order_source?: string;
779
+ pick_date?: string;
780
+ status?: string;
781
+ };
782
+ Relationships: [];
783
+ };
562
784
  cart_pick_overrides: {
563
785
  Row: {
564
786
  cart_index: number;
@@ -1231,6 +1453,54 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1231
1453
  referencedColumns: ["id"];
1232
1454
  }];
1233
1455
  };
1456
+ dashboard_critical_alerts: {
1457
+ Row: {
1458
+ alert_key: string;
1459
+ alert_type: string;
1460
+ created_at: string;
1461
+ description: string | null;
1462
+ id: string;
1463
+ metadata: import("./types").Json | null;
1464
+ priority: string;
1465
+ raised_at: string;
1466
+ related_cart_ids: string[] | null;
1467
+ resolved_at: string | null;
1468
+ title: string;
1469
+ updated_at: string;
1470
+ user_id: string;
1471
+ };
1472
+ Insert: {
1473
+ alert_key: string;
1474
+ alert_type: string;
1475
+ created_at?: string;
1476
+ description?: string | null;
1477
+ id?: string;
1478
+ metadata?: import("./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
+ Update: {
1488
+ alert_key?: string;
1489
+ alert_type?: string;
1490
+ created_at?: string;
1491
+ description?: string | null;
1492
+ id?: string;
1493
+ metadata?: import("./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
+ Relationships: [];
1503
+ };
1234
1504
  dashboard_daily_reports: {
1235
1505
  Row: {
1236
1506
  created_at: string;
@@ -2733,6 +3003,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2733
3003
  };
2734
3004
  floricode_sync_state: {
2735
3005
  Row: {
3006
+ cursor_skip: number;
2736
3007
  error_message: string | null;
2737
3008
  last_change_date_time: string | null;
2738
3009
  last_sequence_number: number;
@@ -2742,6 +3013,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2742
3013
  updated_at: string;
2743
3014
  };
2744
3015
  Insert: {
3016
+ cursor_skip?: number;
2745
3017
  error_message?: string | null;
2746
3018
  last_change_date_time?: string | null;
2747
3019
  last_sequence_number?: number;
@@ -2751,6 +3023,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2751
3023
  updated_at?: string;
2752
3024
  };
2753
3025
  Update: {
3026
+ cursor_skip?: number;
2754
3027
  error_message?: string | null;
2755
3028
  last_change_date_time?: string | null;
2756
3029
  last_sequence_number?: number;
@@ -3898,6 +4171,24 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3898
4171
  };
3899
4172
  Relationships: [];
3900
4173
  };
4174
+ floriday_order_number_map: {
4175
+ Row: {
4176
+ created_at: string;
4177
+ floriday_id: string;
4178
+ order_number: string;
4179
+ };
4180
+ Insert: {
4181
+ created_at?: string;
4182
+ floriday_id: string;
4183
+ order_number: string;
4184
+ };
4185
+ Update: {
4186
+ created_at?: string;
4187
+ floriday_id?: string;
4188
+ order_number?: string;
4189
+ };
4190
+ Relationships: [];
4191
+ };
3901
4192
  floriday_packings_cache: {
3902
4193
  Row: {
3903
4194
  connection_id: string;
@@ -5080,6 +5371,93 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5080
5371
  };
5081
5372
  Relationships: [];
5082
5373
  };
5374
+ manufacture_product_components: {
5375
+ Row: {
5376
+ component_type: string;
5377
+ created_at: string;
5378
+ id: string;
5379
+ manufacture_product_id: string;
5380
+ product_group_id: string | null;
5381
+ quantity: number;
5382
+ trade_item_id: string | null;
5383
+ unit: string;
5384
+ };
5385
+ Insert: {
5386
+ component_type: string;
5387
+ created_at?: string;
5388
+ id?: string;
5389
+ manufacture_product_id: string;
5390
+ product_group_id?: string | null;
5391
+ quantity?: number;
5392
+ trade_item_id?: string | null;
5393
+ unit?: string;
5394
+ };
5395
+ Update: {
5396
+ component_type?: string;
5397
+ created_at?: string;
5398
+ id?: string;
5399
+ manufacture_product_id?: string;
5400
+ product_group_id?: string | null;
5401
+ quantity?: number;
5402
+ trade_item_id?: string | null;
5403
+ unit?: string;
5404
+ };
5405
+ Relationships: [{
5406
+ foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
5407
+ columns: ["manufacture_product_id"];
5408
+ isOneToOne: false;
5409
+ referencedRelation: "manufacture_product_possible_stock_view";
5410
+ referencedColumns: ["manufacture_product_id"];
5411
+ }, {
5412
+ foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
5413
+ columns: ["manufacture_product_id"];
5414
+ isOneToOne: false;
5415
+ referencedRelation: "manufacture_products";
5416
+ referencedColumns: ["id"];
5417
+ }, {
5418
+ foreignKeyName: "manufacture_product_components_product_group_id_fkey";
5419
+ columns: ["product_group_id"];
5420
+ isOneToOne: false;
5421
+ referencedRelation: "product_groups";
5422
+ referencedColumns: ["id"];
5423
+ }];
5424
+ };
5425
+ manufacture_products: {
5426
+ Row: {
5427
+ created_at: string;
5428
+ description: string | null;
5429
+ id: string;
5430
+ is_active: boolean;
5431
+ name: string;
5432
+ produced_stock: number;
5433
+ product_code: string;
5434
+ tenant_id: string;
5435
+ updated_at: string;
5436
+ };
5437
+ Insert: {
5438
+ created_at?: string;
5439
+ description?: string | null;
5440
+ id?: string;
5441
+ is_active?: boolean;
5442
+ name: string;
5443
+ produced_stock?: number;
5444
+ product_code: string;
5445
+ tenant_id: string;
5446
+ updated_at?: string;
5447
+ };
5448
+ Update: {
5449
+ created_at?: string;
5450
+ description?: string | null;
5451
+ id?: string;
5452
+ is_active?: boolean;
5453
+ name?: string;
5454
+ produced_stock?: number;
5455
+ product_code?: string;
5456
+ tenant_id?: string;
5457
+ updated_at?: string;
5458
+ };
5459
+ Relationships: [];
5460
+ };
5083
5461
  monteurs: {
5084
5462
  Row: {
5085
5463
  avatar_url: string | null;
@@ -5743,6 +6121,24 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5743
6121
  referencedColumns: ["id"];
5744
6122
  }];
5745
6123
  };
6124
+ order_number_counters: {
6125
+ Row: {
6126
+ last_value: number;
6127
+ updated_at: string;
6128
+ year: number;
6129
+ };
6130
+ Insert: {
6131
+ last_value?: number;
6132
+ updated_at?: string;
6133
+ year: number;
6134
+ };
6135
+ Update: {
6136
+ last_value?: number;
6137
+ updated_at?: string;
6138
+ year?: number;
6139
+ };
6140
+ Relationships: [];
6141
+ };
5746
6142
  orders: {
5747
6143
  Row: {
5748
6144
  created_at: string;
@@ -5755,6 +6151,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5755
6151
  notes: string | null;
5756
6152
  order_date: string;
5757
6153
  order_number: string;
6154
+ order_source: string;
5758
6155
  status: string;
5759
6156
  total: string;
5760
6157
  updated_at: string;
@@ -5770,6 +6167,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5770
6167
  notes?: string | null;
5771
6168
  order_date?: string;
5772
6169
  order_number: string;
6170
+ order_source?: string;
5773
6171
  status?: string;
5774
6172
  total?: string;
5775
6173
  updated_at?: string;
@@ -5785,6 +6183,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5785
6183
  notes?: string | null;
5786
6184
  order_date?: string;
5787
6185
  order_number?: string;
6186
+ order_source?: string;
5788
6187
  status?: string;
5789
6188
  total?: string;
5790
6189
  updated_at?: string;
@@ -6019,6 +6418,66 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6019
6418
  };
6020
6419
  Relationships: [];
6021
6420
  };
6421
+ product_group_items: {
6422
+ Row: {
6423
+ created_at: string;
6424
+ id: string;
6425
+ product_group_id: string;
6426
+ quantity: number;
6427
+ trade_item_id: string;
6428
+ };
6429
+ Insert: {
6430
+ created_at?: string;
6431
+ id?: string;
6432
+ product_group_id: string;
6433
+ quantity?: number;
6434
+ trade_item_id: string;
6435
+ };
6436
+ Update: {
6437
+ created_at?: string;
6438
+ id?: string;
6439
+ product_group_id?: string;
6440
+ quantity?: number;
6441
+ trade_item_id?: string;
6442
+ };
6443
+ Relationships: [{
6444
+ foreignKeyName: "product_group_items_product_group_id_fkey";
6445
+ columns: ["product_group_id"];
6446
+ isOneToOne: false;
6447
+ referencedRelation: "product_groups";
6448
+ referencedColumns: ["id"];
6449
+ }];
6450
+ };
6451
+ product_groups: {
6452
+ Row: {
6453
+ created_at: string;
6454
+ description: string | null;
6455
+ id: string;
6456
+ is_active: boolean;
6457
+ name: string;
6458
+ tenant_id: string;
6459
+ updated_at: string;
6460
+ };
6461
+ Insert: {
6462
+ created_at?: string;
6463
+ description?: string | null;
6464
+ id?: string;
6465
+ is_active?: boolean;
6466
+ name: string;
6467
+ tenant_id: string;
6468
+ updated_at?: string;
6469
+ };
6470
+ Update: {
6471
+ created_at?: string;
6472
+ description?: string | null;
6473
+ id?: string;
6474
+ is_active?: boolean;
6475
+ name?: string;
6476
+ tenant_id?: string;
6477
+ updated_at?: string;
6478
+ };
6479
+ Relationships: [];
6480
+ };
6022
6481
  products: {
6023
6482
  Row: {
6024
6483
  barcode: string | null;
@@ -7158,7 +7617,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7158
7617
  connection_id: string | null;
7159
7618
  created_at: string;
7160
7619
  data: import("./types").Json;
7620
+ floriday_id: string | null;
7621
+ floriday_link_error: string | null;
7622
+ floriday_link_status: string;
7161
7623
  id: string;
7624
+ last_floriday_sync_at: string | null;
7625
+ missing_required_fields: string[];
7626
+ source: string;
7162
7627
  updated_at: string;
7163
7628
  user_id: string;
7164
7629
  };
@@ -7166,7 +7631,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7166
7631
  connection_id?: string | null;
7167
7632
  created_at?: string;
7168
7633
  data?: import("./types").Json;
7634
+ floriday_id?: string | null;
7635
+ floriday_link_error?: string | null;
7636
+ floriday_link_status?: string;
7169
7637
  id?: string;
7638
+ last_floriday_sync_at?: string | null;
7639
+ missing_required_fields?: string[];
7640
+ source?: string;
7170
7641
  updated_at?: string;
7171
7642
  user_id: string;
7172
7643
  };
@@ -7174,7 +7645,55 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7174
7645
  connection_id?: string | null;
7175
7646
  created_at?: string;
7176
7647
  data?: import("./types").Json;
7648
+ floriday_id?: string | null;
7649
+ floriday_link_error?: string | null;
7650
+ floriday_link_status?: string;
7651
+ id?: string;
7652
+ last_floriday_sync_at?: string | null;
7653
+ missing_required_fields?: string[];
7654
+ source?: string;
7655
+ updated_at?: string;
7656
+ user_id?: string;
7657
+ };
7658
+ Relationships: [];
7659
+ };
7660
+ trade_item_stock: {
7661
+ Row: {
7662
+ connection_id: string;
7663
+ created_at: string;
7664
+ id: string;
7665
+ incoming_stock: number;
7666
+ minimum_stock: number;
7667
+ notes: string | null;
7668
+ physical_stock: number;
7669
+ reserved_stock: number;
7670
+ trade_item_key: string;
7671
+ updated_at: string;
7672
+ user_id: string;
7673
+ };
7674
+ Insert: {
7675
+ connection_id: string;
7676
+ created_at?: string;
7677
+ id?: string;
7678
+ incoming_stock?: number;
7679
+ minimum_stock?: number;
7680
+ notes?: string | null;
7681
+ physical_stock?: number;
7682
+ reserved_stock?: number;
7683
+ trade_item_key: string;
7684
+ updated_at?: string;
7685
+ user_id: string;
7686
+ };
7687
+ Update: {
7688
+ connection_id?: string;
7689
+ created_at?: string;
7177
7690
  id?: string;
7691
+ incoming_stock?: number;
7692
+ minimum_stock?: number;
7693
+ notes?: string | null;
7694
+ physical_stock?: number;
7695
+ reserved_stock?: number;
7696
+ trade_item_key?: string;
7178
7697
  updated_at?: string;
7179
7698
  user_id?: string;
7180
7699
  };
@@ -7524,6 +8043,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7524
8043
  };
7525
8044
  twinfield_invoice_sync_logs: {
7526
8045
  Row: {
8046
+ action_type: string | null;
7527
8047
  created_at: string;
7528
8048
  details: import("./types").Json | null;
7529
8049
  duration_ms: number | null;
@@ -7536,6 +8056,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7536
8056
  user_id: string;
7537
8057
  };
7538
8058
  Insert: {
8059
+ action_type?: string | null;
7539
8060
  created_at?: string;
7540
8061
  details?: import("./types").Json | null;
7541
8062
  duration_ms?: number | null;
@@ -7548,6 +8069,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7548
8069
  user_id: string;
7549
8070
  };
7550
8071
  Update: {
8072
+ action_type?: string | null;
7551
8073
  created_at?: string;
7552
8074
  details?: import("./types").Json | null;
7553
8075
  duration_ms?: number | null;
@@ -7783,6 +8305,57 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7783
8305
  referencedColumns: ["id"];
7784
8306
  }];
7785
8307
  };
8308
+ twinfield_request_metrics: {
8309
+ Row: {
8310
+ bucket_hour: string;
8311
+ connection_id: string;
8312
+ error_count: number;
8313
+ rate_limited_count: number;
8314
+ request_count: number;
8315
+ updated_at: string;
8316
+ };
8317
+ Insert: {
8318
+ bucket_hour: string;
8319
+ connection_id: string;
8320
+ error_count?: number;
8321
+ rate_limited_count?: number;
8322
+ request_count?: number;
8323
+ updated_at?: string;
8324
+ };
8325
+ Update: {
8326
+ bucket_hour?: string;
8327
+ connection_id?: string;
8328
+ error_count?: number;
8329
+ rate_limited_count?: number;
8330
+ request_count?: number;
8331
+ updated_at?: string;
8332
+ };
8333
+ Relationships: [];
8334
+ };
8335
+ twinfield_session_cache: {
8336
+ Row: {
8337
+ cluster: string;
8338
+ created_at: string;
8339
+ expires_at: string;
8340
+ session_id: string;
8341
+ user_id: string;
8342
+ };
8343
+ Insert: {
8344
+ cluster: string;
8345
+ created_at?: string;
8346
+ expires_at: string;
8347
+ session_id: string;
8348
+ user_id: string;
8349
+ };
8350
+ Update: {
8351
+ cluster?: string;
8352
+ created_at?: string;
8353
+ expires_at?: string;
8354
+ session_id?: string;
8355
+ user_id?: string;
8356
+ };
8357
+ Relationships: [];
8358
+ };
7786
8359
  twinfield_settings: {
7787
8360
  Row: {
7788
8361
  active_environment: string;
@@ -8364,6 +8937,35 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8364
8937
  };
8365
8938
  Relationships: [];
8366
8939
  };
8940
+ manufacture_product_possible_stock_view: {
8941
+ Row: {
8942
+ component_count: number | null;
8943
+ manufacture_product_id: string | null;
8944
+ possible_stock: number | null;
8945
+ };
8946
+ Relationships: [];
8947
+ };
8948
+ product_group_stock_view: {
8949
+ Row: {
8950
+ item_count: number | null;
8951
+ product_group_id: string | null;
8952
+ total_stock: number | null;
8953
+ };
8954
+ Relationships: [{
8955
+ foreignKeyName: "product_group_items_product_group_id_fkey";
8956
+ columns: ["product_group_id"];
8957
+ isOneToOne: false;
8958
+ referencedRelation: "product_groups";
8959
+ referencedColumns: ["id"];
8960
+ }];
8961
+ };
8962
+ trade_item_stock_view: {
8963
+ Row: {
8964
+ stock: number | null;
8965
+ trade_item_id: string | null;
8966
+ };
8967
+ Relationships: [];
8968
+ };
8367
8969
  v_external_customers_exact: {
8368
8970
  Row: {
8369
8971
  account_number: string | null;
@@ -8619,6 +9221,29 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8619
9221
  };
8620
9222
  Returns: number;
8621
9223
  };
9224
+ assign_cart_numbers: {
9225
+ Args: {
9226
+ p_carts: import("./types").Json;
9227
+ };
9228
+ Returns: {
9229
+ cart_index: number;
9230
+ cart_number: string;
9231
+ day_seq: number;
9232
+ order_id: string;
9233
+ order_source: string;
9234
+ pick_date: string;
9235
+ status: string;
9236
+ }[];
9237
+ };
9238
+ assign_floriday_order_numbers: {
9239
+ Args: {
9240
+ p_ids: string[];
9241
+ };
9242
+ Returns: {
9243
+ floriday_id: string;
9244
+ order_number: string;
9245
+ }[];
9246
+ };
8622
9247
  call_exact_route: {
8623
9248
  Args: {
8624
9249
  path: string;
@@ -8629,10 +9254,37 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8629
9254
  Args: never;
8630
9255
  Returns: number;
8631
9256
  };
9257
+ control_get_todays_carts: {
9258
+ Args: never;
9259
+ Returns: {
9260
+ cart_index: number;
9261
+ cart_number: string;
9262
+ cart_number_id: string;
9263
+ order_id: string;
9264
+ order_source: string;
9265
+ pick_date: string;
9266
+ status: string;
9267
+ }[];
9268
+ };
9269
+ count_distinct_regulatory_products: {
9270
+ Args: never;
9271
+ Returns: number;
9272
+ };
8632
9273
  current_monteur_id: {
8633
9274
  Args: never;
8634
9275
  Returns: string;
8635
9276
  };
9277
+ dashboard_alert_counts: {
9278
+ Args: never;
9279
+ Returns: import("./types").Json;
9280
+ };
9281
+ dashboard_alert_rows: {
9282
+ Args: {
9283
+ check_id: string;
9284
+ row_limit?: number;
9285
+ };
9286
+ Returns: import("./types").Json;
9287
+ };
8636
9288
  dashboard_list_public_schema: {
8637
9289
  Args: never;
8638
9290
  Returns: {
@@ -8713,6 +9365,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8713
9365
  };
8714
9366
  Returns: boolean;
8715
9367
  };
9368
+ format_cart_number: {
9369
+ Args: {
9370
+ p_pick_date: string;
9371
+ p_seq: number;
9372
+ };
9373
+ Returns: string;
9374
+ };
8716
9375
  get_active_floriday_connection_public: {
8717
9376
  Args: never;
8718
9377
  Returns: {
@@ -8828,6 +9487,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8828
9487
  };
8829
9488
  Returns: import("./types").Json;
8830
9489
  };
9490
+ get_or_assign_floriday_order_number: {
9491
+ Args: {
9492
+ p_floriday_id: string;
9493
+ };
9494
+ Returns: string;
9495
+ };
8831
9496
  get_room_busy_windows: {
8832
9497
  Args: {
8833
9498
  p_from: string;
@@ -8874,6 +9539,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8874
9539
  Args: never;
8875
9540
  Returns: boolean;
8876
9541
  };
9542
+ next_order_number: {
9543
+ Args: {
9544
+ p_prefix: string;
9545
+ };
9546
+ Returns: string;
9547
+ };
8877
9548
  next_work_order_number: {
8878
9549
  Args: {
8879
9550
  p_parent_work_order_id?: string;
@@ -8905,14 +9576,29 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8905
9576
  };
8906
9577
  Returns: undefined;
8907
9578
  };
9579
+ pickstation_set_cart_status: {
9580
+ Args: {
9581
+ p_cart_index: number;
9582
+ p_order_id: string;
9583
+ p_order_source: string;
9584
+ p_status: string;
9585
+ };
9586
+ Returns: undefined;
9587
+ };
8908
9588
  refresh_floricode_derived_code_lists: {
8909
9589
  Args: never;
8910
9590
  Returns: {
8911
- out_environment: string;
8912
- out_list_name: string;
8913
- out_row_count: number;
9591
+ environment: string;
9592
+ list_name: string;
9593
+ row_count: number;
8914
9594
  }[];
8915
9595
  };
9596
+ refresh_floricode_derived_for_product: {
9597
+ Args: {
9598
+ p_product_code: string;
9599
+ };
9600
+ Returns: number;
9601
+ };
8916
9602
  reset_floriday_sync_cursor: {
8917
9603
  Args: {
8918
9604
  p_connection_id: string;